html[data-theme="gold"] {
  --color-gold: #e3b74a;
  --color-gold-soft: #f7deb0;
  --color-gold-deep: #a7791a;
}

html[data-theme="midnight"] {
  --color-background: #02050d;
  --color-background-soft: #07101c;
  --color-surface: rgba(12, 20, 36, 0.92);
  --color-surface-strong: rgba(10, 18, 34, 0.98);
  --color-surface-soft: rgba(122, 167, 255, 0.08);
  --color-line: rgba(122, 167, 255, 0.18);
  --color-line-soft: rgba(122, 167, 255, 0.10);
  --color-text: #eef5ff;
  --color-muted: #c2cfdf;
  --color-muted-2: #8ea3bf;
  --color-gold: #7aa7ff;
  --color-gold-soft: #d8e5ff;
  --color-gold-deep: #3d6ccf;
  --color-blue: #9ec1ff;
}

html[data-theme="midnight"] body,
html[data-theme="midnight"] html {
  background:
    radial-gradient(circle at 12% 8%, rgba(122, 167, 255, 0.16), transparent 26%),
    radial-gradient(circle at 88% 12%, rgba(61, 108, 207, 0.20), transparent 24%),
    linear-gradient(180deg, #030814 0%, #02050d 100%);
}

html[data-theme="emerald"] {
  --color-background: #04100a;
  --color-background-soft: #071811;
  --color-surface: rgba(10, 24, 18, 0.92);
  --color-surface-strong: rgba(8, 26, 18, 0.98);
  --color-surface-soft: rgba(143, 212, 107, 0.08);
  --color-line: rgba(143, 212, 107, 0.16);
  --color-line-soft: rgba(143, 212, 107, 0.10);
  --color-text: #f2fff7;
  --color-muted: #c2d9cb;
  --color-muted-2: #8da89a;
  --color-gold: #8fd46b;
  --color-gold-soft: #daf6c8;
  --color-gold-deep: #3e8b47;
  --color-emerald: #8fd46b;
}

html[data-theme="emerald"] body,
html[data-theme="emerald"] html {
  background:
    radial-gradient(circle at 10% 7%, rgba(143, 212, 107, 0.16), transparent 26%),
    radial-gradient(circle at 86% 12%, rgba(227, 183, 74, 0.10), transparent 24%),
    linear-gradient(180deg, #04100a 0%, #031109 100%);
}

html[data-theme="light"] {
  --color-background: #f2f4f8;
  --color-background-soft: #f8fafc;
  --color-surface: rgba(255, 255, 255, 0.95);
  --color-surface-strong: rgba(255, 255, 255, 0.98);
  --color-surface-soft: rgba(19, 22, 28, 0.04);
  --color-line: rgba(13, 17, 24, 0.08);
  --color-line-soft: rgba(13, 17, 24, 0.05);
  --color-text: #111827;
  --color-muted: #465064;
  --color-muted-2: #6b7280;
  --color-gold: #b78621;
  --color-gold-soft: #f5dfb1;
  --color-gold-deep: #8b6110;
  --shadow-main: 0 26px 70px rgba(16, 24, 40, 0.10);
  --shadow-card: 0 20px 44px rgba(16, 24, 40, 0.08);
}

html[data-theme="light"] body,
html[data-theme="light"] html {
  background:
    radial-gradient(circle at 12% 8%, rgba(183, 134, 33, 0.10), transparent 28%),
    radial-gradient(circle at 86% 10%, rgba(122, 167, 255, 0.10), transparent 25%),
    linear-gradient(180deg, #f9fafc 0%, #eef2f7 100%);
}

html[data-theme="light"] body::before {
  opacity: 0.16;
  background-image: linear-gradient(rgba(17,24,39,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(17,24,39,0.03) 1px, transparent 1px);
}

html[data-theme="light"] .site-header-shell,
html[data-theme="light"] .site-top-notice-shell,
html[data-theme="light"] .icon-dropdown-panel,
html[data-theme="light"] .search-suggestions-panel,
html[data-theme="light"] .mobile-menu-shell,
html[data-theme="light"] .site-footer-shell {
  background: rgba(255, 255, 255, 0.78);
}

html[data-theme="light"] .site-header-shell.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
}

html[data-theme="light"] .top-notice-pill,
html[data-theme="light"] .icon-pill-button,
html[data-theme="light"] .header-search-form,
html[data-theme="light"] .dropdown-action-item,
html[data-theme="light"] .search-suggestion-item,
html[data-theme="light"] .header-nav-link,
html[data-theme="light"] .mobile-nav-link,
html[data-theme="light"] .footer-link-row a,
html[data-theme="light"] .footer-logout-button {
  background: rgba(17, 24, 39, 0.03);
}

html[data-theme="light"] .portal-card,
html[data-theme="light"] .category-card,
html[data-theme="light"] .product-pricing-card,
html[data-theme="light"] .wallet-balance-card,
html[data-theme="light"] .wallet-panel-card,
html[data-theme="light"] .notification-card,
html[data-theme="light"] .ticket-card,
html[data-theme="light"] .placeholder-card,
html[data-theme="light"] .admin-product-card,
html[data-theme="light"] .gateway-provider-card,
html[data-theme="light"] .wallet-ledger-card,
html[data-theme="light"] .topup-card,
html[data-theme="light"] .ticket-thread-card,
html[data-theme="light"] .hero-panel-card,
html[data-theme="light"] .metric-showcase-card,
html[data-theme="light"] .profile-card-box,
html[data-theme="light"] .quick-links-card,
html[data-theme="light"] .developer-panel-card,
html[data-theme="light"] .trial-shortcuts-card,
html[data-theme="light"] .table-shell-card,
html[data-theme="light"] .locked-panel-card,
html[data-theme="light"] .service-image-card,
html[data-theme="light"] .service-card-shell {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.98));
}

.theme-switcher-grid,
.dashboard-quick-grid,
.dashboard-support-grid,
.home-search-grid {
  display: grid;
  gap: 16px;
}

.theme-switcher-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.theme-option-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
  text-align: start;
  cursor: pointer;
}

.theme-preview-line {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.theme-preview-line span {
  display: block;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
}

.theme-option-card.is-active {
  border-color: rgba(255, 215, 128, 0.22) !important;
  box-shadow: 0 18px 42px rgba(227, 183, 74, 0.14);
}

.dashboard-quick-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-quick-card,
.home-search-card,
.product-sales-note,
.dashboard-trial-status {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 18px;
}

.dashboard-quick-card strong,
.dashboard-trial-status strong {
  display: block;
  font-size: 1.05rem;
}

.dashboard-inline-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.dashboard-inline-metrics .tag-chip {
  background: rgba(255,255,255,0.05);
}

.dashboard-support-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.home-search-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.home-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 14px;
}

.home-search-form input {
  min-height: 48px;
}

.home-search-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.product-sales-note {
  margin-top: 14px;
  color: var(--color-muted);
}

.product-sales-note strong {
  display: block;
  color: var(--color-text);
  margin-bottom: 8px;
}

.sales-note-placeholder {
  opacity: 0.85;
  font-style: italic;
}

.card-edit-note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(255,255,255,0.10);
  color: var(--color-muted);
  font-size: 0.92rem;
}

.notification-summary-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

.theme-card-actions,
.quick-link-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.admin-form-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-form-grid-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.home-search-result-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.home-search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

.home-search-result-item span {
  color: var(--color-muted-2);
  font-size: 0.88rem;
}

@media (max-width: 1180px) {
  .theme-switcher-grid,
  .dashboard-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .dashboard-support-grid,
  .home-search-grid,
  .admin-form-grid-two,
  .admin-form-grid-three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .theme-switcher-grid,
  .dashboard-quick-grid {
    grid-template-columns: 1fr;
  }

  .home-search-form {
    grid-template-columns: 1fr;
  }
}
