/* Global Hi Doge theme presets. The server selects the preset before first paint. */
html[data-site-theme-preset="charcoal"] {
  color-scheme: dark;
  --site-surface-raised: #292F36;
  --site-surface-muted: #1B2026;
  --site-border: rgba(226, 232, 239, .11);
  --site-border-accent: color-mix(in srgb, var(--gold, #D9B65B) 28%, transparent);
  --site-shadow: 0 22px 70px rgba(0, 0, 0, .34);
}

html[data-site-theme-preset="charcoal"] body {
  background:
    radial-gradient(ellipse at 78% 0%, color-mix(in srgb, var(--gold, #D9B65B) 8%, transparent), transparent 42%),
    radial-gradient(ellipse at 8% 78%, rgba(116, 132, 151, .07), transparent 42%),
    linear-gradient(180deg, var(--bg, #15181C) 0%, #111418 100%) !important;
  color: var(--text, #EEF0F2);
}

html[data-site-theme-preset="charcoal"] .site-header,
html[data-site-theme-preset="charcoal"] .dashboard-topbar,
html[data-site-theme-preset="charcoal"] .member-topbar,
html[data-site-theme-preset="charcoal"] .member-header,
html[data-site-theme-preset="charcoal"] .mobile-bottom-nav,
html[data-site-theme-preset="charcoal"] .member-bottom-nav,
html[data-site-theme-preset="charcoal"] .site-footer {
  background-color: rgba(27, 32, 38, .94);
  border-color: var(--site-border);
  backdrop-filter: blur(16px);
}

html[data-site-theme-preset="charcoal"] .section-shell > .card,
html[data-site-theme-preset="charcoal"] .feature-card,
html[data-site-theme-preset="charcoal"] .stat-card,
html[data-site-theme-preset="charcoal"] .auth-card,
html[data-site-theme-preset="charcoal"] .faq-card,
html[data-site-theme-preset="charcoal"] .faq-item,
html[data-site-theme-preset="charcoal"] .member-card,
html[data-site-theme-preset="charcoal"] .member-panel,
html[data-site-theme-preset="charcoal"] .dashboard-stat,
html[data-site-theme-preset="charcoal"] .dashboard-dot-panel,
html[data-site-theme-preset="charcoal"] .dashboard-action-card,
html[data-site-theme-preset="charcoal"] .exchange-card,
html[data-site-theme-preset="charcoal"] .support-contact-card,
html[data-site-theme-preset="charcoal"] .page-card,
html[data-site-theme-preset="charcoal"] .member-page-card,
html[data-site-theme-preset="charcoal"] .modal-card,
html[data-site-theme-preset="charcoal"] .modal-panel,
html[data-site-theme-preset="charcoal"] .market-chart-card,
html[data-site-theme-preset="charcoal"] .market-price-card,
html[data-site-theme-preset="charcoal"] .my-contract-card,
html[data-site-theme-preset="charcoal"] .my-contracts-modal,
html[data-site-theme-preset="charcoal"] .transaction-history-panel,
html[data-site-theme-preset="charcoal"] .verification-status-card,
html[data-site-theme-preset="charcoal"] .verification-privacy-card,
html[data-site-theme-preset="charcoal"] .hd-cms-section-inner {
  background-color: var(--panel, #22272D);
  border-color: var(--site-border);
  box-shadow: var(--site-shadow);
}

html[data-site-theme-preset="charcoal"] .dashboard-stat-collected {
  background: linear-gradient(112deg, color-mix(in srgb, var(--gold, #D9B65B) 8%, transparent), rgba(34, 39, 45, .97) 42%, rgba(27, 32, 38, .96));
  border-color: var(--site-border-accent);
}

html[data-site-theme-preset="charcoal"] .dashboard-action-card:not(.withdrawal-card):not(.deposit-card) {
  background: linear-gradient(145deg, #252B32, #1B2026);
  border-color: var(--site-border);
}

html[data-site-theme-preset="charcoal"] .support-thread-button,
html[data-site-theme-preset="charcoal"] .thread-message,
html[data-site-theme-preset="charcoal"] .settings-panel,
html[data-site-theme-preset="charcoal"] .form-panel,
html[data-site-theme-preset="charcoal"] .exchange-modal-content {
  background-color: var(--site-surface-raised, #292F36);
  border-color: var(--site-border);
}

html[data-site-theme-preset="charcoal"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
html[data-site-theme-preset="charcoal"] select,
html[data-site-theme-preset="charcoal"] textarea {
  background-color: #191E24;
  border-color: rgba(226, 232, 239, .15);
  color: var(--text, #EEF0F2);
}

html[data-site-theme-preset="charcoal"] .nav-link:hover,
html[data-site-theme-preset="charcoal"] .nav-link.active,
html[data-site-theme-preset="charcoal"] .member-nav-link.active,
html[data-site-theme-preset="charcoal"] .mobile-bottom-nav a.active,
html[data-site-theme-preset="charcoal"] .member-bottom-nav a.active {
  background: color-mix(in srgb, var(--gold, #D9B65B) 11%, transparent);
  border-color: color-mix(in srgb, var(--gold, #D9B65B) 25%, transparent);
  color: var(--gold-bright, #E8CB83);
}

html[data-site-theme-preset="charcoal"] .admin-settings-card,
html[data-site-theme-preset="charcoal"] .admin-subcard,
html[data-site-theme-preset="charcoal"] .admin-login-card {
  background: linear-gradient(145deg, #232930, #1A1F25);
  border-color: var(--site-border);
}

html[data-site-theme-preset="charcoal"] .admin-save,
html[data-site-theme-preset="charcoal"] .button-gold,
html[data-site-theme-preset="charcoal"] .btn-primary {
  background: linear-gradient(135deg, color-mix(in srgb, var(--gold, #F0D58B) 86%, white), color-mix(in srgb, var(--gold, #C7A34F) 82%, black));
  border-color: rgba(241, 216, 142, .55);
  color: #1B1B18;
}

html[data-site-theme-preset="charcoal"] .admin-field-hint,
html[data-site-theme-preset="charcoal"] .muted,
html[data-site-theme-preset="charcoal"] small {
  color: var(--muted, #A3ABB4);
}

html[data-site-theme-preset="charcoal"] .doge-market,
html[data-site-theme-preset="charcoal"] .how-section,
html[data-site-theme-preset="charcoal"] .faq-answer,
html[data-site-theme-preset="charcoal"] .exchange-box-stage,
html[data-site-theme-preset="charcoal"] .exchange-window-frame {
  color: var(--text, #EEF0F2);
}

html[data-site-theme-preset="charcoal"] .modal-backdrop {
  background: rgba(5, 7, 10, .78);
  backdrop-filter: blur(8px);
}

html[data-site-theme-preset="charcoal"] .market-chart-card,
html[data-site-theme-preset="charcoal"] .market-price-card,
html[data-site-theme-preset="charcoal"] .my-contract-card,
html[data-site-theme-preset="charcoal"] .transaction-history-panel,
html[data-site-theme-preset="charcoal"] .verification-status-card {
  border-color: var(--site-border);
}

@media (prefers-reduced-motion: reduce) {
  html[data-site-theme-preset="charcoal"] *,
  html[data-site-theme-preset="charcoal"] *::before,
  html[data-site-theme-preset="charcoal"] *::after {
    scroll-behavior: auto !important;
  }
}

/* Brighter graphite preset: lighter slate surfaces while keeping the gold Hi Doge identity. */
/* Global Hi Doge theme presets. The server selects the preset before first paint. */
html[data-site-theme-preset="charcoal-light"] {
  color-scheme: dark;
  --site-surface-raised: #46515D;
  --site-surface-muted: #333D47;
  --site-border: rgba(226, 232, 239, .11);
  --site-border-accent: color-mix(in srgb, var(--gold, #D9B65B) 28%, transparent);
  --site-shadow: 0 22px 70px rgba(0, 0, 0, .34);
}

html[data-site-theme-preset="charcoal-light"] body {
  background:
    radial-gradient(ellipse at 78% 0%, color-mix(in srgb, var(--gold, #D9B65B) 8%, transparent), transparent 42%),
    radial-gradient(ellipse at 8% 78%, rgba(210, 220, 230, .10), transparent 42%),
    linear-gradient(180deg, var(--bg, #15181C) 0%, #252D35 100%) !important;
  color: var(--text, #EEF0F2);
}

html[data-site-theme-preset="charcoal-light"] .site-header,
html[data-site-theme-preset="charcoal-light"] .dashboard-topbar,
html[data-site-theme-preset="charcoal-light"] .member-topbar,
html[data-site-theme-preset="charcoal-light"] .member-header,
html[data-site-theme-preset="charcoal-light"] .mobile-bottom-nav,
html[data-site-theme-preset="charcoal-light"] .member-bottom-nav,
html[data-site-theme-preset="charcoal-light"] .site-footer {
  background-color: rgba(53, 63, 74, .96);
  border-color: var(--site-border);
  backdrop-filter: blur(16px);
}

html[data-site-theme-preset="charcoal-light"] .section-shell > .card,
html[data-site-theme-preset="charcoal-light"] .feature-card,
html[data-site-theme-preset="charcoal-light"] .stat-card,
html[data-site-theme-preset="charcoal-light"] .auth-card,
html[data-site-theme-preset="charcoal-light"] .faq-card,
html[data-site-theme-preset="charcoal-light"] .faq-item,
html[data-site-theme-preset="charcoal-light"] .member-card,
html[data-site-theme-preset="charcoal-light"] .member-panel,
html[data-site-theme-preset="charcoal-light"] .dashboard-stat,
html[data-site-theme-preset="charcoal-light"] .dashboard-dot-panel,
html[data-site-theme-preset="charcoal-light"] .dashboard-action-card,
html[data-site-theme-preset="charcoal-light"] .exchange-card,
html[data-site-theme-preset="charcoal-light"] .support-contact-card,
html[data-site-theme-preset="charcoal-light"] .page-card,
html[data-site-theme-preset="charcoal-light"] .member-page-card,
html[data-site-theme-preset="charcoal-light"] .modal-card,
html[data-site-theme-preset="charcoal-light"] .modal-panel,
html[data-site-theme-preset="charcoal-light"] .market-chart-card,
html[data-site-theme-preset="charcoal-light"] .market-price-card,
html[data-site-theme-preset="charcoal-light"] .my-contract-card,
html[data-site-theme-preset="charcoal-light"] .my-contracts-modal,
html[data-site-theme-preset="charcoal-light"] .transaction-history-panel,
html[data-site-theme-preset="charcoal-light"] .verification-status-card,
html[data-site-theme-preset="charcoal-light"] .verification-privacy-card,
html[data-site-theme-preset="charcoal-light"] .hd-cms-section-inner {
  background-color: var(--panel, #3B4651);
  border-color: var(--site-border);
  box-shadow: var(--site-shadow);
}

html[data-site-theme-preset="charcoal-light"] .dashboard-stat-collected {
  background: linear-gradient(112deg, color-mix(in srgb, var(--gold, #D9B65B) 8%, transparent), rgba(61, 72, 84, .97) 42%, rgba(51, 61, 72, .96));
  border-color: var(--site-border-accent);
}

html[data-site-theme-preset="charcoal-light"] .dashboard-action-card:not(.withdrawal-card):not(.deposit-card) {
  background: linear-gradient(145deg, #414D59, #333D47);
  border-color: var(--site-border);
}

html[data-site-theme-preset="charcoal-light"] .support-thread-button,
html[data-site-theme-preset="charcoal-light"] .thread-message,
html[data-site-theme-preset="charcoal-light"] .settings-panel,
html[data-site-theme-preset="charcoal-light"] .form-panel,
html[data-site-theme-preset="charcoal-light"] .exchange-modal-content {
  background-color: var(--site-surface-raised, #46515D);
  border-color: var(--site-border);
}

html[data-site-theme-preset="charcoal-light"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
html[data-site-theme-preset="charcoal-light"] select,
html[data-site-theme-preset="charcoal-light"] textarea {
  background-color: #303B46;
  border-color: rgba(255, 255, 255, .22);
  color: var(--text, #EEF0F2);
}

html[data-site-theme-preset="charcoal-light"] .nav-link:hover,
html[data-site-theme-preset="charcoal-light"] .nav-link.active,
html[data-site-theme-preset="charcoal-light"] .member-nav-link.active,
html[data-site-theme-preset="charcoal-light"] .mobile-bottom-nav a.active,
html[data-site-theme-preset="charcoal-light"] .member-bottom-nav a.active {
  background: color-mix(in srgb, var(--gold, #D9B65B) 11%, transparent);
  border-color: color-mix(in srgb, var(--gold, #D9B65B) 25%, transparent);
  color: var(--gold-bright, #E8CB83);
}

html[data-site-theme-preset="charcoal-light"] .admin-settings-card,
html[data-site-theme-preset="charcoal-light"] .admin-subcard,
html[data-site-theme-preset="charcoal-light"] .admin-login-card {
  background: linear-gradient(145deg, #46515D, #36414C);
  border-color: var(--site-border);
}

html[data-site-theme-preset="charcoal-light"] .admin-save,
html[data-site-theme-preset="charcoal-light"] .button-gold,
html[data-site-theme-preset="charcoal-light"] .btn-primary {
  background: linear-gradient(135deg, color-mix(in srgb, var(--gold, #F0D58B) 86%, white), color-mix(in srgb, var(--gold, #C7A34F) 82%, black));
  border-color: rgba(241, 216, 142, .55);
  color: #1B1B18;
}

html[data-site-theme-preset="charcoal-light"] .admin-field-hint,
html[data-site-theme-preset="charcoal-light"] .muted,
html[data-site-theme-preset="charcoal-light"] small {
  color: var(--muted, #A3ABB4);
}

html[data-site-theme-preset="charcoal-light"] .doge-market,
html[data-site-theme-preset="charcoal-light"] .how-section,
html[data-site-theme-preset="charcoal-light"] .faq-answer,
html[data-site-theme-preset="charcoal-light"] .exchange-box-stage,
html[data-site-theme-preset="charcoal-light"] .exchange-window-frame {
  color: var(--text, #EEF0F2);
}

html[data-site-theme-preset="charcoal-light"] .modal-backdrop {
  background: rgba(10, 14, 19, .68);
  backdrop-filter: blur(8px);
}

html[data-site-theme-preset="charcoal-light"] .market-chart-card,
html[data-site-theme-preset="charcoal-light"] .market-price-card,
html[data-site-theme-preset="charcoal-light"] .my-contract-card,
html[data-site-theme-preset="charcoal-light"] .transaction-history-panel,
html[data-site-theme-preset="charcoal-light"] .verification-status-card {
  border-color: var(--site-border);
}

@media (prefers-reduced-motion: reduce) {
  html[data-site-theme-preset="charcoal-light"] *,
  html[data-site-theme-preset="charcoal-light"] *::before,
  html[data-site-theme-preset="charcoal-light"] *::after {
    scroll-behavior: auto !important;
  }
}

