/* ============================================
   theme.css — Central Theme Variables
   Dark mode = current project appearance (default)
   Light mode = Luxury Gold Trading palette
   ============================================ */

/* Smooth theme transition */
html {
  transition: background-color 0.3s ease;
}
html *,
html *::before,
html *::after {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* جلوگیری از بکگراند سفید autofill مرورگر روی همه اینپوت‌ها */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px var(--input-bg) inset !important;
    -webkit-text-fill-color: var(--input-text) !important;
    transition: background-color 5000s ease-in-out 0s;
}

:root {
  /* ── Core Colors ── */
  --gold: #d4af37;
  --gold-light: #ffd873;
  --green: #2ecc71;
  --green-dark: #1a6b3f;
  --red: #e53935;
  --red-dark: #922b21;
  --blue: #3498db;
  --blue-dark: #1a5276;
  --orange: #f39c12;
  --cream: #e8dcc0;
  --yellow: #e0b13c;
  --yellow-dark: #3a2e10;

  /* ── Text ── */
  --text-primary: #f5f0e6;
  --text-secondary: #a09888;
  --text: #f7f4ee;
  --muted: #b9b0a2;

  /* ── Backgrounds ── */
  --bg-dark: #1a1714;
  --bg-card: #1c2a22;
  --bg-card-alt: #2b3931;
  --surface: #131c16;
  --surface-soft: rgba(255,255,255,0.035);
  --glass-bg: rgba(255, 255, 255, .045);
  --page-bg: linear-gradient(155deg, #2b2720 0%, #211d18 52%, #15120f 100%);
  --header-bg: linear-gradient(145deg, rgba(26, 81, 56, .98), rgba(13, 46, 32, .98));

  /* ── Borders ── */
  --border-subtle: rgba(255,255,255,0.08);
  --glass-border: 1px solid rgba(255, 255, 255, .09);
  --gold-border: 1px solid rgba(214, 178, 92, .28);
  --stroke: rgba(255,255,255,0.07);
  --stroke-gold: rgba(212,175,55,0.28);

  /* ── Shadows ── */
  --shadow-card: 0 8px 24px rgba(0,0,0,0.28);
  --shadow-deep: 0 16px 40px rgba(0, 0, 0, 0.45);

  /* ── Layout ── */
  --sidebar-width: 100px;
  --topbar-height: 60px;
  --bottombar-height: 70px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;

  /* ── Navigation ── */
  --nav-bg: #023D38;
  --nav-bg-sidebar: linear-gradient(180deg, #023D38 0%, #012a27 100%);
  --nav-border: rgba(212,175,55,0.15);
  --nav-border-sidebar: rgba(212, 175, 55, 0.12);

  /* ── Dashboard Cards ── */
  --gauge-bg: #14251d;
  --card-top-border: linear-gradient(90deg, transparent, #d6b25c, #ffd873, #d6b25c, transparent);
  --card-sheen: rgba(255,215,120,0.10);

  /* ── Dashboard Body ── */
  --body-bg: linear-gradient(160deg, #2b2720 0%, #211d18 55%, #171410 100%);

  /* ── Accent / Interactive ── */
  --accent: var(--gold);
  --accent-hover: var(--gold-light);
  --accent-bg: rgba(212,175,55,0.08);
  --accent-border: rgba(212,175,55,0.35);
  --accent-glow: rgba(212,175,55,0.28);

  /* ── Alert Box Info ── */
  --alert-info-bg: #1e3826;

  /* ── Login ── */
  --login-bg: #003b24;
  --login-surface: #002b1a;
  --login-card: #002415;
  --login-border: rgba(212, 175, 55, 0.3);
  --login-input-bg: #003b24;
  --login-input-border: #005a36;
  --login-input-focus-bg: #004d2f;

  /* ── Buy/Sell ── */
  --buy-bg-gradient: linear-gradient(180deg, #0c9f51, #217548, #083a1f);
  --sell-bg-gradient: linear-gradient(180deg, #ad1b1b, #7f2323, #3a0808);
  --buy-card-gradient: linear-gradient(135deg, rgba(0,216,127,.14), rgba(0,216,127,.05));
  --sell-card-gradient: linear-gradient(135deg, rgba(255,95,109,.14), rgba(255,95,109,.05));

  /* ── Green Theme (date cards, profile header) ── */
  --green-gradient: linear-gradient(145deg, #1c7048, #124b31);
  --green-gradient-dark: linear-gradient(145deg, #1a5138, #0d2e20);

  /* ── Input ── */
  --input-bg: rgba(255,255,255,0.05);
  --input-border: rgba(255,255,255,0.1);
  --input-focus-border: var(--gold);
  --input-focus-shadow: 0 0 0 3px rgba(212,175,55,0.15);
  --input-focus-bg: rgba(255,255,255,0.08);
  --input-text: #fff;
  --input-placeholder: rgba(255,255,255,0.3);

  /* ── Scrollbar ── */
  --scrollbar-thumb: rgba(255,255,255,0.2);
  --scrollbar-thumb-glass: rgba(255, 255, 255, .09);
}

/* ═══════════════════════════════════════
   LIGHT MODE — Luxury Gold Trading Palette
═══════════════════════════════════════ */
[data-theme="light"] {
  /* ── Core Colors ── */
  --gold: #C9A15B;
  --gold-light: #D8B77A;
  --green: #2ecc71;
  --green-dark: #1a6b3f;
  --red: #e53935;
  --red-dark: #922b21;
  --blue: #3498db;
  --blue-dark: #1a5276;
  --orange: #d4953a;
  --cream: #EDE2D8;
  --yellow: #d4953a;
  --yellow-dark: #6b4f2a;

  /* ── Text ── */
  --text-primary: #443628;
  --text-secondary: #816B51;
  --text: #443628;
  --muted: #816B51;

  /* ── Backgrounds ── */
  --bg-dark: #fff2e2;
  --bg-card: #FAF7F2;
  --bg-card-alt: #EDE2D8;
  --surface: #FAF7F2;
  --surface-soft: rgba(0,0,0,0.02);
  --glass-bg: rgba(0, 0, 0, .03);
  --page-bg: linear-gradient(160deg, #F5EFE7 0%, #FAF7F2 55%, #F5EFE7 100%);
  --header-bg: linear-gradient(145deg, rgba(201, 161, 91, .12), rgba(201, 161, 91, .06));

  /* ── Borders ── */
  --border-subtle: rgba(0,0,0,0.06);
  --glass-border: 1px solid rgba(0, 0, 0, .08);
  --gold-border: 1px solid rgba(201, 161, 91, .25);
  --stroke: rgba(0,0,0,0.06);
  --stroke-gold: rgba(201,161,91,0.3);

  /* ── Shadows ── */
  --shadow-card: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-deep: 0 8px 24px rgba(0, 0, 0, 0.1);

  /* ── Navigation ── */
  --nav-bg: #443627;
  --nav-bg-sidebar: linear-gradient(180deg, #512B04 0%, #3a1e03 100%);
  --nav-border: rgba(201,161,91,0.2);
  --nav-border-sidebar: rgba(201, 161, 91, 0.15);

  /* ── Dashboard Cards ── */
  --gauge-bg: #FAF7F2;
  --card-top-border: linear-gradient(90deg, transparent, #C9A15B, #D8B77A, #C9A15B, transparent);
  --card-sheen: rgba(201,161,91,0.08);

  /* ── Dashboard Body ── */
  --body-bg: linear-gradient(160deg, #F5EFE7 0%, #FAF7F2 55%, #F5EFE7 100%);

  /* ── Accent / Interactive ── */
  --accent: #C9A15B;
  --accent-hover: #B8893E;
  --accent-bg: rgba(201,161,91,0.1);
  --accent-border: rgba(201,161,91,0.35);
  --accent-glow: rgba(201,161,91,0.2);

  /* ── Alert Box Info ── */
  --alert-info-bg: #EDE2D8;

  /* ── Login ── */
  --login-bg: #F5EFE7;
  --login-surface: #FAF7F2;
  --login-card: #FAF7F2;
  --login-border: rgba(201, 161, 91, 0.3);
  --login-input-bg: #F5EFE7;
  --login-input-border: #D2BFA8;
  --login-input-focus-bg: #FAF7F2;

  /* ── Buy/Sell ── */
  --buy-bg-gradient: linear-gradient(180deg, #2ecc71, #27ae60, #1e8449);
  --sell-bg-gradient: linear-gradient(180deg, #ff6b6b, #e74c3c, #b93222);
  --buy-card-gradient: linear-gradient(135deg, rgba(46,204,113,.1), rgba(46,204,113,.03));
  --sell-card-gradient: linear-gradient(135deg, rgba(229,57,53,.1), rgba(229,57,53,.03));

  /* ── Green Theme (date cards, profile header) ── */
  --green-gradient: linear-gradient(145deg, #FAF7F2, #EDE2D8);
  --green-gradient-dark: linear-gradient(145deg, #FAF7F2, #EDE2D8);

  /* ── Input ── */
  --input-bg: rgba(0,0,0,0.03);
  --input-border: rgba(0,0,0,0.1);
  --input-focus-border: #C9A15B;
  --input-focus-shadow: 0 0 0 3px rgba(201,161,91,0.15);
  --input-focus-bg: rgba(0,0,0,0.04);
  --input-text: #443628;
  --input-placeholder: rgba(68,54,40,0.4);

  /* ── Scrollbar ── */
  --scrollbar-thumb: rgba(0,0,0,0.15);
  --scrollbar-thumb-glass: rgba(0, 0, 0, .08);

  /* ── Button gradients for light mode ── */
  --btn-primary-bg: linear-gradient(135deg, #fbbf24, #f59e0b);
  --btn-primary-hover-bg: linear-gradient(135deg, #f59e0b, #d97706);
  --btn-primary-text: #1a1a1a;
  --btn-buy-bg: linear-gradient(180deg, #2ecc71, #27ae60, #1e8449);
  --btn-sell-bg: linear-gradient(180deg, #ff6b6b, #e74c3c, #b93222);
}

/* ═══════════════════════════════════════
   LIGHT MODE — Global text color overrides
   Fixes hardcoded #fff text in dark-only styles
═══════════════════════════════════════ */
[data-theme="light"] body,
[data-theme="light"] .stat-value,
[data-theme="light"] .card-type,
[data-theme="light"] .price-row .number,
[data-theme="light"] .gauge-info .amount,
[data-theme="light"] .date-val,
[data-theme="light"] .customer-name,
[data-theme="light"] .t-val,
[data-theme="light"] .user-name,
[data-theme="light"] .profile-name,
[data-theme="light"] .form-info strong {
  color: var(--text-primary) !important;
}

/* info-value stays white on dark card backgrounds (card-buy / card-sell) */
[data-theme="light"] .info-value {
  color: #fff !important;
}
[data-theme="light"] .info-icon,
[data-theme="light"] .info-icon svg {
  color: #fff !important;
}
[data-theme="light"] .card-warning {
  background: #e8dcc0 !important;
  color: #5a4a1e !important;
}

/* Navigation text stays light on dark nav */
[data-theme="light"] .bnav-item,
[data-theme="light"] .nav-item,
[data-theme="light"] .nav-links .nav-item {
  color: rgba(255,255,255,0.7) !important;
}
[data-theme="light"] .bnav-item.active,
[data-theme="light"] .bnav-item:hover,
[data-theme="light"] .nav-item.active,
[data-theme="light"] .nav-item:hover {
  color: var(--gold) !important;
}

/* Sidebar text stays light on dark sidebar */
[data-theme="light"] .brand-name { color: var(--gold) !important; }
[data-theme="light"] .brand-sub { color: rgba(255,255,255,0.6) !important; }
[data-theme="light"] .sidebar-footer { color: rgba(255,255,255,0.5) !important; }

/* Status tags on colored backgrounds stay white */
[data-theme="light"] .status-tag,
[data-theme="light"] .circle-badge,
[data-theme="light"] .btn-3d,
[data-theme="light"] .card-buy .card-type,
[data-theme="light"] .card-sell .card-type {
  color: #fff !important;
}

/* Input text in dark-on-light */
[data-theme="light"] .search-input,
[data-theme="light"] .input-group input,
[data-theme="light"] .jp-select,
[data-theme="light"] .form-group input[type="text"] {
  color: var(--input-text) !important;
}
[data-theme="light"] .search-input::placeholder,
[data-theme="light"] .input-group input::placeholder,
[data-theme="light"] .jp-select option {
  color: var(--input-placeholder) !important;
  background: var(--surface) !important;
}

/* Page header titles */
[data-theme="light"] .page-header h2,
[data-theme="light"] .page-heading,
[data-theme="light"] .page-header h1,
[data-theme="light"] .page-header h1 span {
  color: var(--text-primary) !important;
}
[data-theme="light"] .page-header h1 span,
[data-theme="light"] .page-header .subtitle {
  color: var(--text-secondary) !important;
}

/* Stat labels */
[data-theme="light"] .stat-label,
[data-theme="light"] .legend-text,
[data-theme="light"] .orders-count {
  color: var(--text-secondary) !important;
}

/* Alert text on colored backgrounds stays colored */
[data-theme="light"] .alert-success,
[data-theme="light"] .alert-danger,
[data-theme="light"] .alert-info {
  color: inherit !important;
}

/* Buy/Sell buttons — keep white on green/red backgrounds */
[data-theme="light"] .btn-buy,
[data-theme="light"] .btn-sell,
[data-theme="light"] .btn-3d {
  color: #fff !important;
}

/* Login submit button → gold gradient */
[data-theme="light"] .btn-submit {
  background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
  color: #1a1a1a !important;
}
[data-theme="light"] .btn-submit:hover {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
}

/* Buy gold submit button → gold gradient */
[data-theme="light"] .buy-card .btn-submit {
  background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
  color: #1a1a1a !important;
}

/* Card overlay and close button text */
[data-theme="light"] .overlay-label {
  color: var(--text-secondary) !important;
}
[data-theme="light"] .close-btn {
  color: var(--text-secondary) !important;
  background: var(--surface-soft) !important;
  border-color: var(--border-subtle) !important;
}

/* Toggle icon in orders */
[data-theme="light"] .toggle-icon svg {
  color: var(--text-primary) !important;
}
[data-theme="light"] .toggle-icon {
  background: var(--surface-soft) !important;
  border-color: var(--border-subtle) !important;
}

/* Pagination links */
[data-theme="light"] .page-link {
  color: var(--text-primary) !important;
  background: var(--surface-soft) !important;
}
[data-theme="light"] .page-link.current {
  background: var(--gold) !important;
  color: #fff !important;
}
[data-theme="light"] .page-dots {
  color: var(--text-secondary) !important;
}

/* Empty state */
[data-theme="light"] .empty-title {
  color: var(--text-primary) !important;
}

/* Admin-specific: stat values on dark cards */
[data-theme="light"] .stat-card strong {
  color: var(--gold) !important;
}
[data-theme="light"] .stat-card span {
  color: var(--text-secondary) !important;
}

/* Admin header */
[data-theme="light"] .admin-header h1 {
  color: var(--gold) !important;
}
[data-theme="light"] .admin-header p {
  color: var(--text-secondary) !important;
}
[data-theme="light"] .card h2 {
  color: var(--gold) !important;
}

/* Card warning on cream background */

/* Profile support phone */
[data-theme="light"] .support-phone:hover {
  color: var(--gold-dark) !important;
}

/* g.css specific overrides */

[data-theme="light"] .pc-value {
  color: var(--text-primary) !important;
}
[data-theme="light"] .buy-card .pc-value {
  color: #2ecc71 !important;
}
[data-theme="light"] .sell-card .pc-value {
  color: #e53935 !important;
}

[data-theme="light"] .filter-btn.active {
  background: var(--gold) !important;
  color: #fff !important;
}

/* Login subtitle */
[data-theme="light"] .logo-area p {
  color: var(--text-secondary) !important;
}
[data-theme="light"] .error-msg {
  color: var(--red) !important;
}

/* Live price box */
[data-theme="light"] .live-price-box span {
  color: var(--text-secondary) !important;
}
[data-theme="light"] .price-row-live strong,
[data-theme="light"] .live-price-box strong {
  color: #B8893E !important;
  -webkit-text-fill-color: #B8893E !important;
  background: none !important;
}

/* Gauge overlay */
[data-theme="light"] .gauge-overlay {
  background: rgba(0,0,0,0.08) !important;
}
[data-theme="light"] .eye-btn {
  background: var(--accent-bg) !important;
  border-color: var(--accent-border) !important;
  color: var(--gold) !important;
}

/* Scrollbar */
[data-theme="light"] ::-webkit-scrollbar-track {
  background: var(--surface) !important;
}
[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb) !important;
}

/* Date chip in dash1 */
[data-theme="light"] .date-chip {
  color: var(--gold) !important;
  border-color: var(--accent-border) !important;
  background: var(--surface) !important;
}

/* Section title bar */
[data-theme="light"] .section-title::before {
  background: linear-gradient(180deg, var(--gold-light), var(--gold)) !important;
}

/* Admin date-card in orders */
[data-theme="light"] .date-card.active .order-details {
  border-top: 1px solid var(--border-subtle) !important;
}

/* Search clear button */
[data-theme="light"] .search-clear {
  color: var(--text-primary) !important;
}

/* Export btn */
[data-theme="light"] .btn-export {
  color: #fff !important;
}

/* Refresh btn */
[data-theme="light"] .refresh-btn {
  color: var(--gold) !important;
  background: var(--surface-soft) !important;
  border-color: var(--accent-border) !important;
}/* Admin page bg fix */
[data-theme="light"] .admin-container {
    color: var(--text-primary) !important;
}

/* ── Admin Page Light Mode ── */

/* کارت‌ها */
[data-theme="light"] .card {
    background: linear-gradient(160deg, #FAF7F2, #F5EFE7) !important;
    border: 1px solid rgba(201,161,91,0.15) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06) !important;
}
[data-theme="light"] .card h2 {
    color: #B8893E !important;
}
[data-theme="light"] .card-heading {
    border-bottom-color: rgba(201,161,91,0.12) !important;
}
[data-theme="light"] .card-description {
    color: #816B51 !important;
}

/* هدر ادمین */
[data-theme="light"] .admin-header {
    background: linear-gradient(145deg, rgba(201,161,91,0.08), rgba(245,239,231,0.9)) !important;
    border: 1px solid rgba(201,161,91,0.15) !important;
}
[data-theme="light"] .admin-header h1 {
    color: #B8893E !important;
}
[data-theme="light"] .admin-header p {
    color: #816B51 !important;
}

/* کارت‌های آمار */
[data-theme="light"] .stat-card {
    background: #FAF7F2 !important;
    border: 1px solid rgba(201,161,91,0.15) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05) !important;
}
[data-theme="light"] .stat-card span {
    color: #816B51 !important;
}
[data-theme="light"] .stat-card strong {
    color: #B8893E !important;
}

/* فرم‌ها */
[data-theme="light"] .form-group label {
    color: #443628 !important;
}
[data-theme="light"] .form-control {
    background: #FAF7F2 !important;
    color: #443628 !important;
    border: 1px solid #D2BFA8 !important;
}
[data-theme="light"] .form-control:hover {
    border-color: #C9A15B !important;
}
[data-theme="light"] .form-control:focus {
    background: #fff !important;
    border-color: #C9A15B !important;
    box-shadow: 0 0 0 3px rgba(201,161,91,0.15) !important;
}
[data-theme="light"] select.form-control option {
    color: #443628 !important;
    background: #FAF7F2 !important;
}
[data-theme="light"] textarea.form-control {
    background: #FAF7F2 !important;
    color: #443628 !important;
}
[data-theme="light"] .form-help {
    color: #816B51 !important;
}
[data-theme="light"] .pwt-datepicker-input {
    background: #FAF7F2 !important;
    border-color: #D2BFA8 !important;
    color: #443628 !important;
}

/* دکمه‌ها */
[data-theme="light"] .btn-secondary {
    color: #443628 !important;
    background: rgba(0,0,0,0.04) !important;
    border-color: rgba(201,161,91,0.2) !important;
}
[data-theme="light"] .btn-danger {
    color: #c0392b !important;
    background: rgba(229,57,53,0.08) !important;
    border-color: rgba(229,57,53,0.2) !important;
}

/* نوت اکسپورت */
[data-theme="light"] .export-note {
    color: #816B51 !important;
    background: rgba(201,161,91,0.06) !important;
    border-color: rgba(201,161,91,0.2) !important;
}

/* آیتم‌های اطلاعیه */
[data-theme="light"] .announcement-item {
    background: rgba(0,0,0,0.02) !important;
    border: 1px solid rgba(201,161,91,0.1) !important;
}
[data-theme="light"] .announcement-title-row {
    border-bottom-color: rgba(201,161,91,0.1) !important;
}
[data-theme="light"] .announcement-title-row strong {
    color: #B8893E !important;
}
[data-theme="light"] .announcement-main p {
    color: #443628 !important;
}
[data-theme="light"] .announcement-main time {
    color: #816B51 !important;
}

/* بج‌ها */
[data-theme="light"] .file-badge {
    color: #1a6b3f !important;
    background: rgba(46,204,113,0.1) !important;
    border-color: rgba(46,204,113,0.2) !important;
}
[data-theme="light"] .type-info {
    color: #1a5276 !important;
    background: rgba(52,152,219,0.1) !important;
}
[data-theme="light"] .type-success {
    color: #1a6b3f !important;
    background: rgba(46,204,113,0.1) !important;
}
[data-theme="light"] .type-danger {
    color: #922b21 !important;
    background: rgba(229,57,53,0.08) !important;
}
[data-theme="light"] .state-badge {
    color: #816B51 !important;
    background: rgba(0,0,0,0.04) !important;
}
[data-theme="light"] .state-badge.is-active {
    color: #B8893E !important;
    background: rgba(201,161,91,0.1) !important;
}

/* alert ها */
[data-theme="light"] .alert-info {
    color: #1a5276 !important;
    background: rgba(52,152,219,0.08) !important;
    border-color: rgba(52,152,219,0.2) !important;
}
[data-theme="light"] .alert-success {
    color: #1a6b3f !important;
    background: rgba(46,204,113,0.08) !important;
    border-color: rgba(46,204,113,0.2) !important;
}
[data-theme="light"] .alert-warning {
    color: #6b4f2a !important;
    background: rgba(212,161,91,0.08) !important;
    border-color: rgba(212,161,91,0.2) !important;
}
[data-theme="light"] .alert-danger {
    color: #922b21 !important;
    background: rgba(229,57,53,0.06) !important;
    border-color: rgba(229,57,53,0.15) !important;
}
[data-theme="light"] .alert-dismiss {
    background: rgba(0,0,0,0.04) !important;
    color: #816B51 !important;
}

/* empty state */
[data-theme="light"] .empty-state {
    border-color: rgba(201,161,91,0.15) !important;
}
[data-theme="light"] .empty-state strong {
    color: #443628 !important;
}
[data-theme="light"] .empty-state span {
    color: #816B51 !important;
}

/* status-dot */
[data-theme="light"] .status-dot {
    color: #816B51 !important;
}

/* sidenav light */
[data-theme="light"] .sidebar {
    background: linear-gradient(180deg, #512B04 0%, #3a1e03 100%) !important;
    border-left-color: rgba(201,161,91,0.15) !important;
}
[data-theme="light"] .sidebar-brand {
    border-bottom-color: rgba(201,161,91,0.1) !important;
}

/* ── Buy/Sell Trade Card Light Mode ── */
[data-theme="light"] .trade-card,
[data-theme="light"] .buy-card {
    background: linear-gradient(160deg, #FAF7F2, #F5EFE7) !important;
    border: 1px solid rgba(201,161,91,0.2) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06) !important;
}
[data-theme="light"] .trade-header h2,
[data-theme="light"] .buy-card h2 {
    color: #B8893E !important;
}
[data-theme="light"] .trade-header {
    border-bottom-color: rgba(201,161,91,0.15) !important;
}

/* Live price box */
[data-theme="light"] .live-price-box {
    background: rgba(201,161,91,0.08) !important;
    border-color: rgba(201,161,91,0.2) !important;
}
[data-theme="light"] .live-price-box span,
[data-theme="light"] .price-row-live span {
    color: #816B51 !important;
}
[data-theme="light"] .live-price-box strong,
[data-theme="light"] .price-row-live strong {
    color: #B8893E !important;
    -webkit-text-fill-color: #B8893E !important;
    background: none !important;
}

/* Input labels */
[data-theme="light"] .input-group label {
    color: #443628 !important;
}
[data-theme="light"] .input-group input {
    background: #FAF7F2 !important;
    color: #443628 !important;
    border-color: #D2BFA8 !important;
}
[data-theme="light"] .input-group input::placeholder {
    color: rgba(68,54,40,0.4) !important;
}
[data-theme="light"] .input-group input:focus {
    border-color: #C9A15B !important;
    background: #fcf7f1 !important;
    box-shadow: 0 0 0 3px rgba(201,161,91,0.15) !important;
}

/* Refresh button */
[data-theme="light"] .refresh-btn {
    background: linear-gradient(135deg, rgba(201,161,91,0.1), rgba(201,161,91,0.03)) !important;
    border-color: rgba(201,161,91,0.3) !important;
    color: #B8893E !important;
}
[data-theme="light"] .refresh-btn:hover {
    background: linear-gradient(135deg, rgba(201,161,91,0.18), rgba(201,161,91,0.08)) !important;
    border-color: #C9A15B !important;
    box-shadow: 0 4px 16px rgba(201,161,91,0.15) !important;
}
[data-theme="light"] .refresh-btn.success {
    border-color: #2ecc71 !important;
    background: rgba(46,204,113,0.08) !important;
    color: #1a8a4a !important;
}
[data-theme="light"] .refresh-btn.error {
    border-color: #e53935 !important;
    background: rgba(229,57,53,0.08) !important;
    color: #c0392b !important;
}

/* Alt button */
[data-theme="light"] .btn-alt {
    border-color: rgba(201,161,91,0.3) !important;
    color: #B8893E !important;
}
[data-theme="light"] .btn-alt:hover {
    background: rgba(201,161,91,0.08) !important;
    border-color: #C9A15B !important;
}

/* Autofill for light mode */
[data-theme="light"] .input-group input:-webkit-autofill,
[data-theme="light"] .input-group input:-webkit-autofill:hover,
[data-theme="light"] .input-group input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #FAF7F2 inset !important;
    -webkit-text-fill-color: #443628 !important;
}

/* ── Price Cards Light Mode ── */
[data-theme="light"] .price-card {
  background: linear-gradient(160deg, #FAF7F2, #F5EFE7);
  border: 1px solid rgba(201,161,91,0.15);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
[data-theme="light"] .price-card:hover {
  box-shadow: 0 8px 32px rgba(201,161,91,0.15), 0 2px 8px rgba(0,0,0,0.06);
  border-color: rgba(201,161,91,0.35);
}
[data-theme="light"] .price-card::after {
  background: linear-gradient(90deg, transparent, rgba(201,161,91,0.08), transparent);
}
[data-theme="light"] .pc-title {
  color: #B8893E;
  background: linear-gradient(180deg, rgba(201,161,91,0.08) 0%, transparent 100%);
  border-bottom-color: rgba(201,161,91,0.15);
}
[data-theme="light"] .pc-label {
  color: #816B51;
}
[data-theme="light"] .pc-row > div {
  background: rgba(0,0,0,0.015);
}
[data-theme="light"] .pc-row > div:first-child {
  border-left-color: rgba(201,161,91,0.12);
}
[data-theme="light"] .pc-value {
  color: #443628 !important;
}
[data-theme="light"] .pc-value.buy {
  color: #1a8a4a !important;
}
[data-theme="light"] .pc-value.sell {
  color: #c0392b !important;
}

/* ── Chart Light Mode ── */
[data-theme="light"] .chart-section {
  background: linear-gradient(160deg, #FAF7F2, #F5EFE7);
  border: 1px solid rgba(201,161,91,0.15);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
[data-theme="light"] .chart-title {
  color: #B8893E;
}
[data-theme="light"] .chart-title svg {
  color: #C9A15B;
}
[data-theme="light"] .chart-tab {
  color: #816B51;
}
[data-theme="light"] .chart-tab.active {
  background: #C9A15B;
  color: #fff;
  box-shadow: 0 2px 8px rgba(201,161,91,0.3);
}
[data-theme="light"] .chart-tab:hover:not(.active) {
  color: #443628;
}
[data-theme="light"] .chart-stat-label {
  color: #816B51;
}
[data-theme="light"] .chart-stat-value {
  color: #443628;
}
[data-theme="light"] .chart-stat-value.buy {
  color: #1a8a4a;
}
[data-theme="light"] .chart-stat-value.sell {
  color: #c0392b;
}
[data-theme="light"] .chart-stat::after {
  background: rgba(201,161,91,0.12);
}

/* ═══════════════════════════════════════
   g.php Order Cards — Uniform Light Mode
   ═══════════════════════════════════════ */

/* order-card light overrides moved to orders_admin.css */
[data-theme="light"] .go-card-buy {
  background: linear-gradient(180deg, #0c9f51, #217548, #083A1F) !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
}
[data-theme="light"] .go-card-sell {
  background: linear-gradient(180deg, #ad1b1b, #7F2323, #3A0808) !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
}
[data-theme="light"] .go-card-buy::after {
  background: linear-gradient(90deg, transparent, rgba(46,204,113,0.5), transparent) !important;
}
[data-theme="light"] .go-card-sell::after {
  background: linear-gradient(90deg, transparent, rgba(229,57,53,0.5), transparent) !important;
}

/* هدر کارت */
[data-theme="light"] .go-card-top {
  border-bottom-color: rgba(255,255,255,0.15) !important;
}
[data-theme="light"] .go-order-type {
  background: rgba(255,255,255,0.15) !important;
  border-color: rgba(255,255,255,0.25) !important;
  color: #fff !important;
}
[data-theme="light"] .go-type-dot {
  background: #fff !important;
}
[data-theme="light"] .go-order-id {
  background: rgba(255,255,255,0.1) !important;
  border-color: rgba(255,255,255,0.15) !important;
  color: rgba(255,255,255,0.8) !important;
}

/* orders.php card-info — semi-transparent on dark card bg */

/* نام مشتری */
[data-theme="light"] .go-customer {
  color: #fff !important;
}

/* باکس‌های جزئیات — روی بکگراند تیره کارت */
[data-theme="light"] .go-detail {
  background: rgba(255,255,255,0.1) !important;
  border-color: rgba(255,255,255,0.12) !important;
}
[data-theme="light"] .go-detail .go-dl {
  color: rgba(255,255,255,0.7) !important;
}
[data-theme="light"] .go-detail .go-dv {
  color: #fff !important;
}
[data-theme="light"] .go-detail.go-highlight .go-dv {
  color: var(--gold-light) !important;
}

/* ردیف مبلغ کل */
[data-theme="light"] .go-total {
  background: rgba(255,255,255,0.1) !important;
  border-color: rgba(255,255,255,0.15) !important;
}
[data-theme="light"] .go-total .go-tl {
  color: rgba(255,255,255,0.7) !important;
}
[data-theme="light"] .go-total .go-tv {
  color: #fff !important;
}

/* فوتر کارت */
[data-theme="light"] .go-card-footer {
  border-top-color: rgba(255,255,255,0.1) !important;
}
[data-theme="light"] .go-time {
  color: rgba(255,255,255,0.6) !important;
}
[data-theme="light"] .go-time svg {
  color: rgba(255,255,255,0.5) !important;
}

/* فیلتر و سرچ */
[data-theme="light"] .filter-btn {
  border-color: rgba(201,161,91,0.2) !important;
  color: #816B51 !important;
}
[data-theme="light"] .filter-btn:hover {
  border-color: #C9A15B !important;
  color: #443628 !important;
}
[data-theme="light"] .filter-btn.active {
  background: #C9A15B !important;
  color: #fff !important;
  border-color: #C9A15B !important;
}
[data-theme="light"] .filter-count {
  background: rgba(0,0,0,0.06) !important;
  color: #816B51 !important;
}

/* بخش جستجو — رفع سفیدی اینپوت */
[data-theme="light"] .search-filter-section {
  background: #fffcf7 !important;
  border: 1px solid rgba(201,161,91,0.12) !important;
}
[data-theme="light"] .search-input {
  background: #FAF7F2 !important;
  color: #443628 !important;
  border: 1px solid rgba(201,161,91,0.15) !important;
}
[data-theme="light"] .search-input:focus {
  border-color: #C9A15B !important;
  background: #FAF7F2 !important;
  box-shadow: 0 0 0 3px rgba(201,161,91,0.12) !important;
}
[data-theme="light"] .search-input::placeholder {
  color: rgba(68,54,40,0.45) !important;
}
[data-theme="light"] .search-input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px rgba(250,247,242,0.95) inset !important;
  -webkit-text-fill-color: #443628 !important;
}
[data-theme="light"] .search-icon {
  color: #816B51 !important;
}
[data-theme="light"] .search-submit-btn {
  background: linear-gradient(135deg, #C9A15B, #D8B77A) !important;
  border-radius: 0 var(--radius-md) var(--radius-md) 0 !important;
}
[data-theme="light"] .search-submit-btn:hover {
  background: linear-gradient(135deg, #D8B77A, #C9A15B) !important;
  box-shadow: 0 4px 16px rgba(201,161,91,0.4) !important;
}

/* section title */
[data-theme="light"] .section-title {
  color: #443628 !important;
}
[data-theme="light"] .orders-count {
  color: #816B51 !important;
}

/* stat cards in g.php */
[data-theme="light"] .stat-card.gold {
  background: #FAF7F2 !important;
  border-color: rgba(201,161,91,0.15) !important;
}
[data-theme="light"] .stat-card.buy {
  background: #FAF7F2 !important;
  border-color: rgba(46,204,113,0.15) !important;
}
[data-theme="light"] .stat-card.sell {
  background: #FAF7F2 !important;
  border-color: rgba(229,57,53,0.15) !important;
}
[data-theme="light"] .stat-card.value {
  background: #FAF7F2 !important;
  border-color: rgba(124,106,255,0.15) !important;
}
[data-theme="light"] .gold .stat-icon {
  background: rgba(201,161,91,0.12) !important;
}
[data-theme="light"] .buy .stat-icon {
  background: rgba(46,204,113,0.1) !important;
}
[data-theme="light"] .sell .stat-icon {
  background: rgba(229,57,53,0.08) !important;
}
[data-theme="light"] .value .stat-icon {
  background: rgba(124,106,255,0.08) !important;
}
[data-theme="light"] .detail-item strong {
    color: #060606 !important;
}
