/*
 * تم «طلایی مات» برای پنل نماینده‌هایی که زیرمجموعه‌ی مدیر مستقل هستند.
 * فقط وقتی فعال می‌شود که روی <html> مقدار data-skin="gold" ست شده باشد.
 *
 * ⚠ بخش «خودکار» این فایل با اسکریپت gen_skin.py از style.css ساخته شده (رنگ‌های آبی → طلایی،
 *   گرادیان‌ها → رنگ تخت). اگر style.css را عوض کردید، اسکریپت را دوباره اجرا کنید.
 */
html[data-skin="gold"] {
  --bg: #0b0a07;
  --panel: #131109;
  --panel-2: #1b1810;
  --border: #302b1b;
  --text: #f6f1e3;
  --text-dim: #aaa188;
  --accent: #c9a227;
  --accent-soft: #8c6f17;
  --accent-2: #e6cb6b;
  --gold: #c9a227;
  --shadow: none;
  color-scheme: dark;
}
html[data-skin="gold"] body { background: var(--bg) !important; background-image: none !important; }
html[data-skin="gold"] ::selection { background: rgba(201, 162, 39, 0.35); color: #fff; }

/* ---- مات: بدون سایه، درخشش، شیشه‌ای و براقی ---- */
html[data-skin="gold"] *,
html[data-skin="gold"] *::before,
html[data-skin="gold"] *::after {
  box-shadow: none !important;
  text-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
html[data-skin="gold"] :focus-visible { outline: 2px solid #c9a227; outline-offset: 2px; }

/* آیکن‌های SVG که رنگ آبی را مستقیم در attribute دارند */
html[data-skin="gold"] [stroke="#1e3a8a"] { stroke: #c9a227; }
html[data-skin="gold"] [fill="#1e3a8a"] { fill: #c9a227; }

/* ---- بخش خودکار (از style.css) ---- */
html[data-skin="gold"] ::selection {
  background: rgba(201, 162, 39, 0.3);
}
html[data-skin="gold"] .maint-overlay {
  background: #101010;
}
html[data-skin="gold"] .maint-aurora {
  background: var(--accent);
}
html[data-skin="gold"] .maint-title {
  background: #fff;
}
html[data-skin="gold"] .nav-item.active {
  background: rgba(201, 162, 39, 0.14);
  border: 1px solid rgba(201, 162, 39, 0.35);
}
html[data-skin="gold"] .btn {
  box-shadow: 0 4px 16px rgba(201, 162, 39, .3);
}
html[data-skin="gold"] .login-wrap {
  background: #101010;
}
html[data-skin="gold"] .blob-3 {
  background: #c9a227;
}
html[data-skin="gold"] .login-box.glass {
  border: 1px solid rgba(201, 162, 39, .25);
}
html[data-skin="gold"] .login-logo .dot {
  box-shadow: 0 10px 34px rgba(201, 162, 39, .45), 0 0 0 6px rgba(201, 162, 39, .12);
}
html[data-skin="gold"] .chip {
  color: #e6cb6b;
}
html[data-skin="gold"] .dot-btn {
  color: #e6cb6b;
}
html[data-skin="gold"] .dashed-box {
  color: #e6cb6b;
}
html[data-skin="gold"] .search-box input:focus {
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.18);
}
html[data-skin="gold"] .selected-plan-bar .sp-chip {
  background: rgba(201, 162, 39, 0.18);
  border: 1px solid rgba(201, 162, 39, 0.35);
}
html[data-skin="gold"] .announcement-bar.type-info {
  background: #5a4510;
  color: #f3e6b3;
}
html[data-skin="gold"] .ticket-row.unread {
  border-color: rgba(201, 162, 39, .45);
  background: rgba(201, 162, 39, .08);
}
html[data-skin="gold"] .ticket-msg.staff {
  background: rgba(201, 162, 39, .18);
  border: 1px solid rgba(201, 162, 39, .35);
}
html[data-skin="gold"] .badge.priority-normal {
  background: rgba(201, 162, 39, .15);
  color: #d8b54a;
}
html[data-skin="gold"] .badge.status-open {
  background: rgba(201, 162, 39, .15);
  color: #d8b54a;
}
html[data-skin="gold"] .pay-method-btn {
  background: rgba(18, 18, 18, 0.9);
}
html[data-skin="gold"] .pay-method-btn:hover {
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(201, 162, 39, 0.15);
}
html[data-skin="gold"] .pay-method-btn.active {
  border-color: rgba(201, 162, 39, 0.7);
  background: rgba(26, 26, 26, 0.95);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.35),
    0 14px 32px rgba(201, 162, 39, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
html[data-skin="gold"] .pay-method-glow {
  background: none;
}
html[data-skin="gold"] .gateway-theme {
  background: rgba(20, 36, 48, 0.95);
  border-color: rgba(201, 162, 39, 0.2);
}
html[data-skin="gold"] .gateway-theme::before {
  background: none;
}
html[data-skin="gold"] .card-theme {
  background: rgba(12, 22, 42, 0.95);
  border-color: rgba(201, 162, 39, 0.28);
}
html[data-skin="gold"] .card-theme::before {
  background: none;
}
html[data-skin="gold"] .voucher-theme {
  background: rgba(28, 36, 24, 0.95);
}
html[data-skin="gold"] .voucher-theme::before {
  background: none;
}
html[data-skin="gold"] .pay-offer-box {
  background: rgba(53, 208, 127, 0.12);
}
html[data-skin="gold"] .pay-bank-card {
  background: #171717;
}
html[data-skin="gold"] .pay-bank-card:hover {
  border-color: rgba(201, 162, 39, 0.4);
}
html[data-skin="gold"] .pay-bank-card-shine {
  background: none;
}
html[data-skin="gold"] .receipt-drop-zone:hover,
html[data-skin="gold"] .receipt-drop-zone.drag-over {
  background: rgba(201, 162, 39, 0.08);
}
html[data-skin="gold"] .gateway-btn {
  background: #c9a227 !important;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.35) !important;
}
html[data-skin="gold"] .card-btn {
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.35) !important;
}
html[data-skin="gold"] .voucher-btn {
  background: #35d07f !important;
}
html[data-skin="gold"] .pay-btn-shine {
  background: none;
}
html[data-skin="gold"] .pay-method-card {
  background: rgba(18, 18, 18, 0.95);
}
html[data-skin="gold"] .pay-method-card:hover {
  border-color: rgba(201, 162, 39, 0.5);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(201, 162, 39, 0.2);
  background: rgba(24, 24, 24, 0.98);
}
html[data-skin="gold"] .pay-back-btn:hover {
  background: rgba(201, 162, 39, 0.12);
  border-color: rgba(201, 162, 39, 0.35);
}
html[data-skin="gold"] .pay-main-cta {
  background: var(--accent);
  box-shadow: 0 12px 32px rgba(201, 162, 39, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}
html[data-skin="gold"] .pay-main-cta:hover {
  box-shadow: 0 18px 40px rgba(201, 162, 39, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}
html[data-skin="gold"] .pay-main-cta-shine {
  background: none;
}
html[data-skin="gold"] .pay-method-pill {
  background: rgba(18, 18, 18, 0.95);
}
html[data-skin="gold"] .pay-method-pill:hover {
  border-color: rgba(201, 162, 39, 0.45);
}
html[data-skin="gold"] .pay-method-pill.active {
  border-color: rgba(201, 162, 39, 0.75);
  background: rgba(26, 26, 26, 0.98);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.35), 0 12px 28px rgba(201, 162, 39, 0.2);
}
html[data-skin="gold"] body {
  background: var(--bg);
}
html[data-skin="gold"] .sidebar {
  background: var(--panel);
}
html[data-skin="gold"] .brand-logo {
  box-shadow: 0 0 0 2px rgba(201, 162, 39, .25), 0 6px 16px -6px rgba(201, 162, 39, .5);
}
html[data-skin="gold"] .nav-item.active {
  background: rgba(201, 162, 39, .16);
  border-color: rgba(201, 162, 39, .28);
}
html[data-skin="gold"] .nav-item.active::after {
  box-shadow: 0 0 12px rgba(201, 162, 39, .7);
}
html[data-skin="gold"] .nav-item.active .nav-icon-box {
  box-shadow: 0 6px 14px -6px rgba(201, 162, 39, .8);
}
html[data-skin="gold"] .card::before {
  background: rgba(201, 162, 39, .55);
}
html[data-skin="gold"] .quick-card:hover {
  border-color: rgba(201, 162, 39, .5);
}
html[data-skin="gold"] .btn {
  background: #c9a227;
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 8px 20px -8px rgba(201, 162, 39, .6);
}
html[data-skin="gold"] .btn.danger {
  background: #fd8a9b;
}
html[data-skin="gold"] .badge.good {
  border-color: rgba(201, 162, 39, .25);
  background: rgba(201, 162, 39, .12);
}
html[data-skin="gold"] .pay-method-pill:hover {
  border-color: rgba(201, 162, 39, .45);
}
html[data-skin="gold"] .pay-method-pill.active {
  box-shadow: 0 0 0 1px var(--accent), 0 18px 40px -18px rgba(201, 162, 39, .55);
}
html[data-skin="gold"] body {
  background: #050505;
}
html[data-skin="gold"] .btn,
html[data-skin="gold"] .gold-btn {
  background: #c9a227;
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 8px 20px -8px rgba(201, 162, 39, .55);
}
html[data-skin="gold"] .sub-card.gold-card {
  background: #121212;
}
html[data-skin="gold"] .sub-card.gold-card::before {
  background: #c9a227;
}
html[data-skin="gold"] .sub-card.gold-card:hover {
  border-color: rgba(201, 162, 39, .45);
  box-shadow: 0 18px 40px -16px rgba(0,0,0,.8), 0 0 0 1px rgba(201, 162, 39, .15);
}
html[data-skin="gold"] .chip {
  color: #e6cb6b;
}
html[data-skin="gold"] .progress-fill.gold {
  background: #8c6f17;
  box-shadow: 0 0 14px rgba(201, 162, 39, .45);
}
html[data-skin="gold"] .dashed-box {
  color: #e6cb6b;
}
html[data-skin="gold"] .link-row {
  border-color: rgba(201, 162, 39, .6);
}
html[data-skin="gold"] .link-row input {
  color: #e6cb6b;
}
html[data-skin="gold"] .dot-btn {
  color: #e6cb6b;
}
html[data-skin="gold"] .dot-btn:hover {
  border-color: #c9a227;
}
html[data-skin="gold"] .nav-item.active {
  background: rgba(201, 162, 39, .16);
  border-color: rgba(201, 162, 39, .35);
}
html[data-skin="gold"] .nav-item.active::after {
  background: #c9a227;
  box-shadow: 0 0 12px rgba(201, 162, 39, .7);
}
html[data-skin="gold"] .nav-item.active .nav-icon-box {
  background: #c9a227;
}
html[data-skin="gold"] .brand-logo {
  box-shadow: 0 0 0 2px rgba(201, 162, 39, .3), 0 6px 16px -6px rgba(201, 162, 39, .5);
}
html[data-skin="gold"] tbody tr:hover td {
  background: rgba(201, 162, 39, .05);
}
html[data-skin="gold"] .link-row {
  border-color: rgba(201, 162, 39, .38);
}
html[data-skin="gold"] .progress-fill.gold {
  background: #8c6f17;
}
html[data-skin="gold"] .sub-card.gold-card::before {
  background: rgba(201, 162, 39, .7);
}
html[data-skin="gold"] .btn,
html[data-skin="gold"] .gold-btn {
  background: #c9a227;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 6px 16px -8px rgba(201, 162, 39, .45);
}
html[data-skin="gold"] body {
  background: #050505;
}
html[data-skin="gold"] .nav-item.active {
  background-color: rgba(201, 162, 39, .14) !important;
}
html[data-skin="gold"] .btn,
html[data-skin="gold"] .gold-btn,
html[data-skin="gold"] .gateway-btn,
html[data-skin="gold"] .pay-main-cta,
html[data-skin="gold"] .nav-item.active .nav-icon-box,
html[data-skin="gold"] .role-toggle button.active {
  background-color: #c9a227 !important;
}
html[data-skin="gold"] .btn:hover,
html[data-skin="gold"] .gold-btn:hover {
  background-color: #8c6f17 !important;
}
html[data-skin="gold"] .card .value.accent,
html[data-skin="gold"] .login-box h1,
html[data-skin="gold"] .nav-item.active,
html[data-skin="gold"] .nav-item:hover,
html[data-skin="gold"] .sidebar-collapse-btn:hover,
html[data-skin="gold"] .maint-timer .unit b {
  color: #e6cb6b !important;
}
html[data-skin="gold"] .nav-item.active {
  border-color: rgba(201, 162, 39, .7) !important;
  background-color: rgba(201, 162, 39, .25) !important;
}
html[data-skin="gold"] .nav-item.active::after,
html[data-skin="gold"] .brand-logo-fallback,
html[data-skin="gold"] .progress-fill.gold,
html[data-skin="gold"] .maint-dots span {
  background-color: #c9a227 !important;
}
html[data-skin="gold"] .reseller-avatar {
  background: rgba(201, 162, 39, .25);
  border: 1px solid rgba(201, 162, 39, .45);
  color: #e6cb6b;
}
html[data-skin="gold"] .um-filter-pill.active {
  background: rgba(201, 162, 39, .25);
  border-color: rgba(201, 162, 39, .55);
}

/* ---- خوانایی: متن دکمه‌های طلایی تیره باشد ---- */
html[data-skin="gold"] .btn:not(.secondary):not(.danger):not(.success),
html[data-skin="gold"] .gold-btn { color: #1b1606 !important; border-color: transparent; }
html[data-skin="gold"] .btn:not(.secondary):not(.danger):not(.success):hover,
html[data-skin="gold"] .gold-btn:hover { background: #d8b54a !important; }
html[data-skin="gold"] .progress-fill.gold { background: #c9a227 !important; }
