/* ==========================================================================
   LAPBUFFXU UNIFIED THEME SYSTEM (LIGHT / DARK SYNCHRONIZATION)
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Base Theme Variables & Smooth Transitions
   -------------------------------------------------------------------------- */
:root {
  --theme-transition-duration: .22s;
  --theme-transition-timing: cubic-bezier(.22, .8, .25, 1);
}

html {
  transition: background-color var(--theme-transition-duration) var(--theme-transition-timing),
              color var(--theme-transition-duration) var(--theme-transition-timing);
}

body,
.site-header,
.category-product-section,
.home-product-card,
.product-card,
.service-card,
.orders-table-card,
.deposit-create-card,
.deposit-history-card,
.referral-card,
.free-account-card,
.auth-card,
.site-footer,
.recent-orders-strip {
  transition: background var(--theme-transition-duration) var(--theme-transition-timing),
              background-color var(--theme-transition-duration) var(--theme-transition-timing),
              border-color var(--theme-transition-duration) var(--theme-transition-timing),
              color var(--theme-transition-duration) var(--theme-transition-timing),
              box-shadow var(--theme-transition-duration) var(--theme-transition-timing);
}

/* --------------------------------------------------------------------------
   1. Essential Structural Component Layouts (Common to both Light & Dark)
   -------------------------------------------------------------------------- */

/* Public header: keep it fixed and visible while scrolling */
.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 2000 !important;
  display: flex !important;
  align-items: center !important;
  min-height: 84px !important;
  height: 84px !important;
  padding-inline: max(24px, calc((100% - 1320px) / 2)) !important;
  box-sizing: border-box !important;
}
main { padding-top: 84px !important; }
.site-logo {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 220px !important;
  height: 100% !important;
  max-height: 100% !important;
  flex: 0 0 auto !important;
}
.site-logo img {
  display: block !important;
  max-height: 56px !important;
  height: auto !important;
  width: auto !important;
  max-width: 220px !important;
  object-fit: contain !important;
  margin: auto 0 !important;
}
.site-nav > a, .nav-trigger { padding: 12px 14px !important; font-size: 15px !important; }
.account-trigger { padding: 10px !important; }

@media (max-width: 800px) {
  .site-header {
    min-height: 72px !important;
    height: 72px !important;
    padding-inline: 16px !important;
  }
  .site-logo {
    display: flex !important;
    align-items: center !important;
    width: min(190px, 34vw) !important;
    height: 100% !important;
  }
  .site-logo img {
    max-height: 48px !important;
    height: auto !important;
    width: auto !important;
    max-width: min(190px, 34vw) !important;
    object-fit: contain !important;
    margin: auto 0 !important;
  }
  main { padding-top: 72px !important; }
}

@media (max-width: 520px) {
  .site-header {
    min-height: 64px !important;
    height: 64px !important;
    padding-inline: 12px !important;
  }
  .site-logo {
    display: flex !important;
    align-items: center !important;
    width: min(160px, 44vw) !important;
    height: 100% !important;
  }
  .site-logo img {
    max-height: 40px !important;
    height: auto !important;
    width: auto !important;
    max-width: min(160px, 44vw) !important;
    object-fit: contain !important;
    margin: auto 0 !important;
  }
  main { padding-top: 64px !important; }
}

/* Category section base geometry */
.category-product-section { border-radius: 1.5rem !important; }
@media (max-width: 800px) {
  .category-product-section { padding: 1rem !important; }
  .orders-table-card, .order-detail-card, .referral-card { border-radius: 1rem !important; }
}

/* Homepage social proof running marquee */
.recent-orders-strip {
  margin: 1.5rem 0 2.25rem;
  padding: 1.15rem 1.25rem;
  border-radius: 1.25rem;
}
.recent-orders-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.recent-orders-eyebrow { margin: 0 0 .2rem; font-size: .67rem; font-weight: 800; letter-spacing: .14em; }
.recent-orders-heading h2 { margin: 0; font-size: 1.2rem; }
.recent-orders-live { display: inline-flex; align-items: center; gap: .45rem; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.recent-orders-live i { width: .45rem; height: .45rem; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 .25rem rgba(52, 211, 153, .12); }
.recent-orders-viewport { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.recent-orders-track { display: flex; width: max-content; animation: recent-orders-marquee 34s linear infinite; }
.recent-orders-set { display: flex; gap: .7rem; padding-right: .7rem; }
.recent-order-item { display: flex; align-items: center; gap: .7rem; width: clamp(280px, 30vw, 390px); min-width: clamp(280px, 30vw, 390px); padding: .78rem .85rem; border-radius: .85rem; }
.recent-order-icon { display: grid; flex: 0 0 1.8rem; width: 1.8rem; height: 1.8rem; place-items: center; border-radius: 50%; font-weight: 900; }
.recent-order-copy { min-width: 0; flex: 1; }
.recent-order-copy strong, .recent-order-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-order-copy strong { font-size: .82rem; }
.recent-order-copy small { margin-top: .18rem; font-size: .69rem; }
.recent-order-total { font-size: .8rem; white-space: nowrap; }
.recent-orders-strip:hover .recent-orders-track { animation-play-state: paused; }
@keyframes recent-orders-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .recent-orders-track { animation: none; } }
@media (max-width: 800px) { .recent-order-item { width: min(78vw, 330px); min-width: min(78vw, 330px); } }
@media (max-width: 520px) { .recent-orders-heading { align-items: flex-start; flex-direction: column; } }

/* Hero notice layout */
.premium-hero--notice { grid-template-columns: minmax(0, 1.15fr) minmax(22rem, .85fr); }
.premium-hero--notice .premium-hero__content { padding: clamp(1.5rem, 3vw, 3rem); }
.premium-hero--notice .hero-notice { max-height: 31rem; overflow: auto; margin: 0; padding: 1rem 1.1rem; }
.premium-hero--notice .hero-notice h2 { font-size: 1.15rem; }
.premium-hero--notice .hero-notice .home-announcement__body { font-size: .82rem; }
@media (max-width: 800px) {
  .premium-hero--notice { display: block !important; width: calc(100% - 1.5rem); min-height: auto; margin: 1rem auto 0; border-radius: 1.25rem; }
  .premium-hero--notice .premium-hero__visual { display: none; }
  .premium-hero--notice .premium-hero__content { padding: 1rem; }
  .premium-hero--notice .hero-notice { max-height: none; }
}

/* Product media gallery and optional video link */
.product-media-showcase { margin-top: 1.25rem; padding: 1rem; border-radius: 1rem; }
.product-media-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; }
.product-media-item { display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: .75rem; }
.product-media-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.product-media-item:hover img { transform: scale(1.04); }
.product-video-link { display: inline-flex; align-items: center; gap: .45rem; margin-top: .85rem; padding: .65rem .85rem; border-radius: .65rem; font-weight: 750; }
.detail-media-showcase { width: min(90%, 77.5rem); margin: 1.25rem auto 0; }
@media (max-width: 800px) { .product-media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Commerce notification badge */
.commerce-notification-badge {
  display: inline-flex;
  align-items: center;
  margin-top: .9rem;
  min-height: 2.25rem;
  padding: .25rem .5rem;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: .55rem;
  background: rgba(255, 255, 255, .96);
  transition: transform .2s ease, box-shadow .2s ease;
}
.commerce-notification-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
}
.commerce-notification-badge img {
  display: block;
  width: 142px;
  height: auto;
  max-height: 51px;
  object-fit: contain;
}
@media (max-width: 800px) {
  .commerce-notification-badge img { width: 128px; }
}

/* Watermark */
body {
  position: relative;
  isolation: isolate;
}
body::after {
  position: fixed;
  inset: 50% auto auto 50%;
  z-index: -1;
  width: max-content;
  content: 'LAPBUFFXU.COM';
  font-size: clamp(4rem, 13vw, 12rem);
  font-weight: 900;
  letter-spacing: .12em;
  line-height: 1;
  pointer-events: none;
  text-transform: uppercase;
  transform: translate(-50%, -50%) rotate(-12deg);
  white-space: nowrap;
}
@media (max-width: 800px) {
  body::after {
    font-size: 18vw;
    letter-spacing: .08em;
  }
}

.footer-bottom {
  text-align: center;
}

/* Auth card geometry */
.auth-success { padding: .75rem .85rem; border-radius: .75rem; font-size: .85rem; line-height: 1.5; }
.auth-dev-link { margin-top: .75rem; padding: .65rem .8rem; border-radius: .7rem; font-size: .78rem; }
.auth-single-card { width: min(100%, 31rem) !important; }
.auth-shell { width: 100% !important; max-width: none !important; margin-inline: 0 !important; justify-items: center !important; align-items: start !important; }
.auth-shell > .auth-card { margin-inline: auto !important; }
.auth-card,
.auth-face,
.auth-single-card {
  border-radius: 24px !important;
  overflow: hidden !important;
}
.auth-card .auth-form,
.auth-card form,
.auth-form {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* --------------------------------------------------------------------------
   2. Theme Switcher Buttons (Desktop Header & Mobile Navigation)
   -------------------------------------------------------------------------- */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  user-select: none;
  white-space: nowrap;
  outline: none;
  transition: all .2s ease;
}

.theme-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.theme-toggle-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

/* Visibility based on active theme */
html[data-theme="dark"] .theme-toggle-icon--sun { display: none !important; }
html[data-theme="dark"] .theme-toggle-icon--moon { display: inline-flex !important; }

html[data-theme="light"] .theme-toggle-icon--moon { display: none !important; }
html[data-theme="light"] .theme-toggle-icon--sun { display: inline-flex !important; }

/* Dark mode button styling */
html[data-theme="dark"] .theme-toggle-btn {
  background: #10192b;
  border: 1px solid rgba(148, 163, 184, .2);
  color: #dbeafe;
}
html[data-theme="dark"] .theme-toggle-btn:hover {
  background: #172744;
  border-color: #4f8cff;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(79, 140, 255, .2);
}

/* Light mode button styling */
html[data-theme="light"] .theme-toggle-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #1e293b;
}
html[data-theme="light"] .theme-toggle-btn:hover {
  background: #e2e8f0;
  border-color: #2563eb;
  color: #2563eb;
  box-shadow: 0 4px 14px rgba(37, 99, 235, .12);
}

/* Mobile full-width nav theme switcher */
.mobile-theme-toggle {
  width: 100%;
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}

html[data-theme="dark"] .mobile-theme-toggle {
  color: #cbd5e1 !important;
}
html[data-theme="dark"] .mobile-theme-toggle:hover {
  background: #172744 !important;
  color: #9ec0ff !important;
}

html[data-theme="light"] .mobile-theme-toggle {
  color: #334155 !important;
}
html[data-theme="light"] .mobile-theme-toggle:hover {
  background: #f1f5f9 !important;
  color: #2563eb !important;
}

@media (max-width: 640px) {
  .theme-toggle-btn {
    padding: 0;
    width: 38px;
    justify-content: center;
  }
  .theme-toggle-text {
    display: none;
  }
}

/* ==========================================================================
   3. DARK MODE SPECIFICATION (data-theme="dark")
   ========================================================================== */
html[data-theme="dark"] {
  --theme-bg: #050812;
  --theme-surface: #101a2d;
  --theme-surface-raised: #131f35;
  --theme-line: rgba(148, 163, 184, .18);
  --theme-text: #f1f5f9;
  --theme-muted: #94a3b8;
  --theme-blue: #76a8ff;
}

html[data-theme="dark"] body {
  background-color: #050812 !important;
  background-image:
    radial-gradient(circle at 8% 12%, rgba(61, 113, 226, .15), transparent 25rem),
    radial-gradient(circle at 92% 28%, rgba(110, 78, 220, .12), transparent 28rem),
    radial-gradient(circle at 50% 100%, rgba(21, 93, 176, .1), transparent 32rem),
    linear-gradient(rgba(91, 140, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 140, 255, .035) 1px, transparent 1px) !important;
  background-size: auto, auto, auto, 56px 56px, 56px 56px !important;
  color: #f1f5f9 !important;
}

html[data-theme="dark"] body::after {
  color: rgba(126, 166, 255, .035) !important;
}

/* Dark Header */
html[data-theme="dark"] .site-header {
  background: rgba(7, 11, 20, .92) !important;
  border-bottom: 1px solid rgba(148, 163, 184, .16) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3) !important;
  backdrop-filter: blur(16px) !important;
}
html[data-theme="dark"] .site-logo .logo { color: #f1f5f9 !important; }
html[data-theme="dark"] .site-nav > a,
html[data-theme="dark"] .nav-trigger { color: #b5c0d2 !important; }
html[data-theme="dark"] .site-nav > a:hover,
html[data-theme="dark"] .nav-trigger:hover {
  color: #fff !important;
  background: rgba(79, 140, 255, .14) !important;
}
html[data-theme="dark"] .dropdown,
html[data-theme="dark"] .account-panel,
html[data-theme="dark"] .mobile-nav-dropdown {
  background: #10192b !important;
  border: 1px solid rgba(148, 163, 184, .16) !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, .38) !important;
}
html[data-theme="dark"] .dropdown a,
html[data-theme="dark"] .account-panel a,
html[data-theme="dark"] .account-panel button,
html[data-theme="dark"] .mobile-nav-item,
html[data-theme="dark"] .mobile-products-toggle,
html[data-theme="dark"] .mobile-products-submenu a {
  color: #b8c4d8 !important;
}
html[data-theme="dark"] .dropdown a:hover,
html[data-theme="dark"] .dropdown a.active,
html[data-theme="dark"] .account-panel a:hover,
html[data-theme="dark"] .account-panel button:hover,
html[data-theme="dark"] .mobile-nav-item:hover,
html[data-theme="dark"] .mobile-products-submenu a:hover {
  background: #172746 !important;
  color: #9ec0ff !important;
}
html[data-theme="dark"] .account-trigger {
  background: #10192b !important;
  border: 1px solid rgba(148, 163, 184, .18) !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .hamburger {
  background: #10192b !important;
  color: #76a8ff !important;
  border: 1px solid rgba(148, 163, 184, .18) !important;
}

/* Dark Shared Surfaces */
html[data-theme="dark"] .category-product-section,
html[data-theme="dark"] .home-product-card,
html[data-theme="dark"] .product-card,
html[data-theme="dark"] .child-product-card,
html[data-theme="dark"] .product-parent-card,
html[data-theme="dark"] .service-card,
html[data-theme="dark"] .service-detail-card,
html[data-theme="dark"] .service-order-detail-card,
html[data-theme="dark"] .orders-stat-card,
html[data-theme="dark"] .orders-filter,
html[data-theme="dark"] .orders-table-card,
html[data-theme="dark"] .order-detail-card,
html[data-theme="dark"] .deposit-create-card,
html[data-theme="dark"] .deposit-history-card,
html[data-theme="dark"] .referral-share-card,
html[data-theme="dark"] .referral-card,
html[data-theme="dark"] .free-account-card,
html[data-theme="dark"] .card,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .form:not(.auth-form),
html[data-theme="dark"] .auth-card {
  background: linear-gradient(145deg, rgba(19, 30, 51, .97), rgba(14, 22, 39, .97)) !important;
  border: 1px solid rgba(148, 163, 184, .18) !important;
  color: #f1f5f9 !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .24) !important;
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .form:not(.auth-form) {
  border-radius: 20px !important;
}

html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .auth-face,
html[data-theme="dark"] .auth-single-card {
  border-radius: 24px !important;
  overflow: hidden !important;
}

html[data-theme="dark"] .auth-card .auth-form,
html[data-theme="dark"] .auth-card form,
html[data-theme="dark"] .auth-form,
html[data-theme="dark"] form.auth-form {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

html[data-theme="dark"] .home-product-card:hover,
html[data-theme="dark"] .product-card:hover,
html[data-theme="dark"] .service-card:hover {
  border-color: rgba(79, 140, 255, .46) !important;
  box-shadow: 0 22px 52px rgba(0, 0, 0, .35) !important;
}

html[data-theme="dark"] .home-product-image,
html[data-theme="dark"] .product-card__image,
html[data-theme="dark"] .service-card__image,
html[data-theme="dark"] .child-product-card__image,
html[data-theme="dark"] .order-product img,
html[data-theme="dark"] .order-detail-product img {
  background: #0b1220 !important;
}

html[data-theme="dark"] .home-product-body,
html[data-theme="dark"] .product-card__body,
html[data-theme="dark"] .child-product-card .card-body,
html[data-theme="dark"] .service-card__body {
  background: transparent !important;
}

html[data-theme="dark"] .home-product-body h3,
html[data-theme="dark"] .product-card__name,
html[data-theme="dark"] .service-card h2 a,
html[data-theme="dark"] .service-detail-card__content h1,
html[data-theme="dark"] .service-order-detail-card h1,
html[data-theme="dark"] .orders-heading h1,
html[data-theme="dark"] .orders-table-header h2,
html[data-theme="dark"] .category-heading-main h2,
html[data-theme="dark"] .referral-heading h1,
html[data-theme="dark"] .referral-card h2,
html[data-theme="dark"] .free-account-card h1,
html[data-theme="dark"] .legal-page h1,
html[data-theme="dark"] .store-page .category-title {
  color: #f1f5f9 !important;
}

html[data-theme="dark"] .home-product-stats,
html[data-theme="dark"] .product-card__meta,
html[data-theme="dark"] .service-card p,
html[data-theme="dark"] .muted,
html[data-theme="dark"] .lead,
html[data-theme="dark"] .orders-heading p,
html[data-theme="dark"] .referral-card p,
html[data-theme="dark"] .referral-card ol,
html[data-theme="dark"] .free-account-description {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .home-product-price,
html[data-theme="dark"] .product-card__price,
html[data-theme="dark"] .service-card__footer strong,
html[data-theme="dark"] .referral-code,
html[data-theme="dark"] .referral-stats strong,
html[data-theme="dark"] .price {
  color: #76a8ff !important;
}

html[data-theme="dark"] .category-heading-rule,
html[data-theme="dark"] .home-product-stats,
html[data-theme="dark"] .row,
html[data-theme="dark"] .orders-table td,
html[data-theme="dark"] .referral-history td {
  border-color: rgba(148, 163, 184, .18) !important;
}

html[data-theme="dark"] .category-view-all,
html[data-theme="dark"] .child-products-breadcrumb a,
html[data-theme="dark"] .order-back {
  background: #111d32 !important;
  border: 1px solid rgba(148, 163, 184, .18) !important;
  color: #cbdcf7 !important;
}

html[data-theme="dark"] .orders-button--ghost,
html[data-theme="dark"] .orders-page-button,
html[data-theme="dark"] .order-action--mobile,
html[data-theme="dark"] .service-button--ghost {
  background: #111d32 !important;
  color: #cbdcf7 !important;
  border: 1px solid rgba(148, 163, 184, .18) !important;
}

html[data-theme="dark"] .orders-table-card table,
html[data-theme="dark"] .orders-table-card tbody,
html[data-theme="dark"] .orders-table-card tr {
  background: transparent !important;
  color: #f1f5f9 !important;
}
html[data-theme="dark"] .orders-table th,
html[data-theme="dark"] .referral-history th {
  background: #0d1729 !important;
  color: #94a3b8 !important;
}
html[data-theme="dark"] .orders-table tbody tr:hover {
  background: rgba(79, 140, 255, .06) !important;
}

html[data-theme="dark"] .orders-filter input,
html[data-theme="dark"] .orders-filter select,
html[data-theme="dark"] .deposit-create-card input,
html[data-theme="dark"] .deposit-create-card select,
html[data-theme="dark"] .referral-link-row input,
html[data-theme="dark"] .auth-form input,
html[data-theme="dark"] .service-question input,
html[data-theme="dark"] .service-question textarea,
html[data-theme="dark"] .service-question select {
  background: #0a1120 !important;
  color: #f1f5f9 !important;
  border: 1px solid rgba(148, 163, 184, .25) !important;
}

html[data-theme="dark"] .order-detail-summary,
html[data-theme="dark"] .delivery-item-new {
  background: rgba(8, 15, 30, .58) !important;
  color: #f1f5f9 !important;
  border: 1px solid rgba(148, 163, 184, .18) !important;
}
html[data-theme="dark"] .delivery-toggle,
html[data-theme="dark"] .delivery-copy {
  background: #111d32 !important;
  color: #cbdcf7 !important;
  border: 1px solid rgba(148, 163, 184, .18) !important;
}
html[data-theme="dark"] .delivery-toggle:hover,
html[data-theme="dark"] .delivery-copy:hover {
  background: #182844 !important;
  color: #60a5fa !important;
  border-color: #3b82f6 !important;
}

html[data-theme="dark"] .delivery-secret {
  background: #0a1120 !important;
  color: #dbeafe !important;
  border: 1px solid rgba(255, 255, 255, .07) !important;
}
html[data-theme="dark"] .delivery-secret.is-hidden {
  color: transparent !important;
  user-select: none !important;
  background: repeating-linear-gradient(135deg, #101c30 0, #101c30 6px, #162640 6px, #162640 12px) !important;
  border-color: rgba(255, 255, 255, .05) !important;
}
html[data-theme="dark"] .delivery-secret.is-hidden::selection {
  background: transparent !important;
  color: transparent !important;
}

/* Dark Dialogs & Modals */
html[data-theme="dark"] .purchase-dialog,
html[data-theme="dark"] .announcement-dialog,
html[data-theme="dark"] .service-modal__dialog {
  background: linear-gradient(145deg, #131e33, #0e1627) !important;
  border: 1px solid rgba(148, 163, 184, .22) !important;
  color: #f1f5f9 !important;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .5) !important;
}
html[data-theme="dark"] .purchase-summary,
html[data-theme="dark"] .delivery-item {
  background: rgba(8, 15, 30, .58) !important;
  border: 1px solid rgba(148, 163, 184, .18) !important;
}
html[data-theme="dark"] .announcement-close,
html[data-theme="dark"] .purchase-close,
html[data-theme="dark"] .service-modal__close {
  background: #17233b !important;
  color: #dbeafe !important;
  border: 1px solid rgba(148, 163, 184, .18) !important;
}

/* Dark Recent Orders Strip */
html[data-theme="dark"] .recent-orders-strip {
  background: linear-gradient(145deg, rgba(19, 30, 51, .9), rgba(10, 18, 33, .92)) !important;
  border: 1px solid rgba(148, 163, 184, .18) !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .18) !important;
}
html[data-theme="dark"] .recent-orders-heading h2 { color: #f1f5f9 !important; }
html[data-theme="dark"] .recent-order-item {
  background: rgba(7, 14, 28, .58) !important;
  border: 1px solid rgba(148, 163, 184, .13) !important;
}
html[data-theme="dark"] .recent-order-icon {
  background: rgba(52, 211, 153, .14) !important;
  color: #6ee7b7 !important;
}
html[data-theme="dark"] .recent-order-copy strong { color: #e5edff !important; }
html[data-theme="dark"] .recent-order-total { color: #8eb7ff !important; }

/* Dark Product Media Showcase */
html[data-theme="dark"] .product-media-showcase {
  background: rgba(16, 26, 45, .72) !important;
  border: 1px solid rgba(148, 163, 184, .18) !important;
}
html[data-theme="dark"] .product-media-item {
  background: #0a1120 !important;
  border: 1px solid rgba(148, 163, 184, .16) !important;
}
html[data-theme="dark"] .product-video-link {
  background: #172746 !important;
  color: #9ec0ff !important;
}

/* Dark Deposit & Banking */
html[data-theme="dark"] .deposit-method-switch {
  background: #0b1220 !important;
  border: 1px solid rgba(148, 163, 184, .18) !important;
}
html[data-theme="dark"] .deposit-method-tab { color: #94a3b8 !important; }
html[data-theme="dark"] .deposit-method-tab[aria-selected="true"] {
  background: #172746 !important;
  color: #9ec0ff !important;
}
html[data-theme="dark"] .deposit-qr-frame {
  background: #0a1120 !important;
  border: 1px solid rgba(148, 163, 184, .18) !important;
}
html[data-theme="dark"] .deposit-transfer-info {
  background: #111c30 !important;
  border: 1px solid rgba(148, 163, 184, .18) !important;
  color: #cbd5e1 !important;
}
html[data-theme="dark"] .card-deposit-panel,
html[data-theme="dark"] .card-choice,
html[data-theme="dark"] .card-deposit-history {
  background: #0e1627 !important;
  border-color: rgba(148, 163, 184, .18) !important;
  color: #cbd5e1 !important;
}
html[data-theme="dark"] .card-choice:has(input:checked) {
  background: #172746 !important;
  border-color: #4f8cff !important;
  color: #dbeafe !important;
}

/* Dark Auth Shell */
html[data-theme="dark"] .auth-shell {
  background:
    radial-gradient(circle at 14% 18%, rgba(48, 91, 190, .22), transparent 28%),
    radial-gradient(circle at 86% 76%, rgba(32, 61, 126, .18), transparent 30%),
    #070b14 !important;
}
html[data-theme="dark"] .auth-card {
  background: linear-gradient(145deg, rgba(19, 30, 51, .98), rgba(12, 19, 34, .98)) !important;
  border: 1px solid rgba(148, 163, 184, .20) !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  box-shadow: 0 25px 70px rgba(0, 0, 0, .45) !important;
}

/* Dark Footer */
html[data-theme="dark"] .site-footer {
  background: #060a12 !important;
  border-top: 1px solid rgba(148, 163, 184, .16) !important;
}
html[data-theme="dark"] .footer-logo,
html[data-theme="dark"] .footer-logo .logo,
html[data-theme="dark"] .footer-column-title {
  color: #eaf1ff !important;
}
html[data-theme="dark"] .footer-links a,
html[data-theme="dark"] .footer-brand p,
html[data-theme="dark"] .footer-bottom {
  color: #93a3bb !important;
}

/* Dark Special Cards & Components */
html[data-theme="dark"] .child-product-card__image { background: #0b1220 !important; }
html[data-theme="dark"] .child-product-card .card-body { background: transparent !important; }
html[data-theme="dark"] .parent-card-link-label { background: #172746 !important; color: #9ec0ff !important; }

html[data-theme="dark"] .support-float__link {
  background: #111d32 !important;
  border-color: rgba(148, 163, 184, .25) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .45) !important;
}
html[data-theme="dark"] .support-float__tooltip {
  background: #0a1120 !important;
  color: #f1f5f9 !important;
  border: 1px solid rgba(148, 163, 184, .2) !important;
}
html[data-theme="dark"] .announcement-dialog-close-button {
  background: #17233b !important;
  color: #dbeafe !important;
  border: 1px solid rgba(148, 163, 184, .2) !important;
}
html[data-theme="dark"] .service-answer-row {
  border-color: rgba(148, 163, 184, .14) !important;
}
html[data-theme="dark"] .service-answer-row span {
  color: #94a3b8 !important;
}
html[data-theme="dark"] .service-answer-row strong {
  color: #f1f5f9 !important;
}
html[data-theme="dark"] .service-feedback {
  background: #111c30 !important;
  border: 1px solid rgba(148, 163, 184, .18) !important;
  color: #cbd5e1 !important;
}
html[data-theme="dark"] .auth-password-toggle {
  background: #172744 !important;
  color: #cbd5e1 !important;
  border: 1px solid rgba(148, 163, 184, .25) !important;
}

/* ==========================================================================
   4. LIGHT MODE SPECIFICATION (data-theme="light")
   ========================================================================== */
html[data-theme="light"] {
  --theme-bg: #f8fafc;
  --theme-surface: #ffffff;
  --theme-surface-raised: #ffffff;
  --theme-line: #e2e8f0;
  --theme-text: #0f172a;
  --theme-muted: #64748b;
  --theme-blue: #2563eb;
}

html[data-theme="light"] body {
  background-color: #f8fafc !important;
  background-image:
    radial-gradient(circle at 10% 10%, rgba(59, 130, 246, .08), transparent 25rem),
    radial-gradient(circle at 90% 20%, rgba(139, 92, 246, .06), transparent 28rem),
    radial-gradient(circle at 50% 100%, rgba(59, 130, 246, .05), transparent 32rem),
    linear-gradient(rgba(148, 163, 184, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .08) 1px, transparent 1px) !important;
  background-size: auto, auto, auto, 56px 56px, 56px 56px !important;
  color: #0f172a !important;
}

html[data-theme="light"] body::after {
  color: rgba(37, 99, 235, .025) !important;
}

/* Light Header */
html[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, .94) !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, .06) !important;
  backdrop-filter: blur(16px) !important;
}
html[data-theme="light"] .site-logo .logo { color: #0f172a !important; }
html[data-theme="light"] .site-nav > a,
html[data-theme="light"] .nav-trigger {
  color: #475569 !important;
}
html[data-theme="light"] .site-nav > a:hover,
html[data-theme="light"] .nav-trigger:hover {
  color: #2563eb !important;
  background: #eef2ff !important;
}
html[data-theme="light"] .dropdown,
html[data-theme="light"] .account-panel,
html[data-theme="light"] .mobile-nav-dropdown {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .12) !important;
}
html[data-theme="light"] .dropdown a,
html[data-theme="light"] .account-panel a,
html[data-theme="light"] .account-panel button,
html[data-theme="light"] .mobile-nav-item,
html[data-theme="light"] .mobile-products-toggle,
html[data-theme="light"] .mobile-products-submenu a {
  color: #334155 !important;
}
html[data-theme="light"] .dropdown a:hover,
html[data-theme="light"] .dropdown a.active,
html[data-theme="light"] .account-panel a:hover,
html[data-theme="light"] .account-panel button:hover,
html[data-theme="light"] .mobile-nav-item:hover,
html[data-theme="light"] .mobile-products-submenu a:hover {
  background: #f1f5f9 !important;
  color: #2563eb !important;
}
html[data-theme="light"] .account-trigger {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .05) !important;
}
html[data-theme="light"] .account-panel-summary {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
}
html[data-theme="light"] .account-panel-summary small { color: #64748b !important; }
html[data-theme="light"] .account-panel-summary b { color: #2563eb !important; }
html[data-theme="light"] .hamburger {
  background: #eef2ff !important;
  color: #2563eb !important;
  border: 1px solid #cbd5e1 !important;
}

/* Light Shared Surfaces */
html[data-theme="light"] .category-product-section,
html[data-theme="light"] .home-product-card,
html[data-theme="light"] .product-card,
html[data-theme="light"] .child-product-card,
html[data-theme="light"] .product-parent-card,
html[data-theme="light"] .service-card,
html[data-theme="light"] .service-detail-card,
html[data-theme="light"] .service-order-detail-card,
html[data-theme="light"] .orders-stat-card,
html[data-theme="light"] .orders-filter,
html[data-theme="light"] .orders-table-card,
html[data-theme="light"] .order-detail-card,
html[data-theme="light"] .deposit-create-card,
html[data-theme="light"] .deposit-history-card,
html[data-theme="light"] .referral-share-card,
html[data-theme="light"] .referral-card,
html[data-theme="light"] .free-account-card,
html[data-theme="light"] .card,
html[data-theme="light"] .panel,
html[data-theme="light"] .form:not(.auth-form),
html[data-theme="light"] .auth-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  box-shadow: 0 4px 18px rgba(15, 23, 42, .05) !important;
}

html[data-theme="light"] .card,
html[data-theme="light"] .panel,
html[data-theme="light"] .form:not(.auth-form) {
  border-radius: 20px !important;
}

html[data-theme="light"] .auth-card,
html[data-theme="light"] .auth-face,
html[data-theme="light"] .auth-single-card {
  border-radius: 24px !important;
  overflow: hidden !important;
}

html[data-theme="light"] .auth-card .auth-form,
html[data-theme="light"] .auth-card form,
html[data-theme="light"] .auth-form,
html[data-theme="light"] form.auth-form {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

html[data-theme="light"] .home-product-card:hover,
html[data-theme="light"] .product-card:hover,
html[data-theme="light"] .service-card:hover,
html[data-theme="light"] .card:hover {
  border-color: #93c5fd !important;
  box-shadow: 0 16px 32px rgba(37, 99, 235, .10) !important;
}

html[data-theme="light"] .home-product-image,
html[data-theme="light"] .product-card__image,
html[data-theme="light"] .service-card__image,
html[data-theme="light"] .child-product-card__image,
html[data-theme="light"] .order-product img,
html[data-theme="light"] .order-detail-product img {
  background: #f8fafc !important;
}

html[data-theme="light"] .home-product-body,
html[data-theme="light"] .product-card__body,
html[data-theme="light"] .child-product-card .card-body,
html[data-theme="light"] .service-card__body {
  background: #ffffff !important;
}

html[data-theme="light"] .home-product-body h3,
html[data-theme="light"] .product-card__name,
html[data-theme="light"] .service-card h2 a,
html[data-theme="light"] .service-detail-card__content h1,
html[data-theme="light"] .service-order-detail-card h1,
html[data-theme="light"] .orders-heading h1,
html[data-theme="light"] .orders-table-header h2,
html[data-theme="light"] .category-heading-main h2,
html[data-theme="light"] .referral-heading h1,
html[data-theme="light"] .referral-card h2,
html[data-theme="light"] .free-account-card h1,
html[data-theme="light"] .legal-page h1,
html[data-theme="light"] .store-page .category-title,
html[data-theme="light"] .page-title h1,
html[data-theme="light"] .detail h1,
html[data-theme="light"] .dashboard h1,
html[data-theme="light"] .deposit-page h1,
html[data-theme="light"] .dash-head h1,
html[data-theme="light"] .panel h2,
html[data-theme="light"] .form h2,
html[data-theme="light"] .qr h1,
html[data-theme="light"] .order-detail-heading h1,
html[data-theme="light"] .order-delivery-heading h2 {
  color: #0f172a !important;
  font-weight: 800 !important;
}

html[data-theme="light"] .home-product-stats,
html[data-theme="light"] .product-card__meta,
html[data-theme="light"] .service-card p,
html[data-theme="light"] .muted,
html[data-theme="light"] .lead,
html[data-theme="light"] .orders-heading p,
html[data-theme="light"] .referral-card p,
html[data-theme="light"] .referral-card ol,
html[data-theme="light"] .free-account-description,
html[data-theme="light"] .legal-page .lead,
html[data-theme="light"] .dash-head .muted,
html[data-theme="light"] .order-purchased-at,
html[data-theme="light"] .order-delivery-heading p,
html[data-theme="light"] .panel p.muted,
html[data-theme="light"] .form p.muted {
  color: #475569 !important;
  font-weight: 500 !important;
}

html[data-theme="light"] .home-product-price,
html[data-theme="light"] .product-card__price,
html[data-theme="light"] .service-card__footer strong,
html[data-theme="light"] .referral-code,
html[data-theme="light"] .referral-stats strong,
html[data-theme="light"] .price,
html[data-theme="light"] .order-detail-price {
  color: #2563eb !important;
  font-weight: 800 !important;
}

html[data-theme="light"] .home-product-sold {
  color: #475569 !important;
  font-weight: 600 !important;
}
html[data-theme="light"] .home-product-sold b {
  color: #1e293b !important;
  font-weight: 750 !important;
}

html[data-theme="light"] .category-heading-rule,
html[data-theme="light"] .home-product-stats,
html[data-theme="light"] .row,
html[data-theme="light"] .orders-table td,
html[data-theme="light"] .referral-history td {
  border-color: #e2e8f0 !important;
}

html[data-theme="light"] .row span,
html[data-theme="light"] .panel label,
html[data-theme="light"] .deposit-create-card label,
html[data-theme="light"] .orders-filter-field > span {
  color: #334155 !important;
  font-weight: 650 !important;
}

html[data-theme="light"] .row b,
html[data-theme="light"] .row strong,
html[data-theme="light"] .panel .row b,
html[data-theme="light"] .panel .row strong,
html[data-theme="light"] .deposit-grid .row b,
html[data-theme="light"] .deposit-grid .row strong {
  color: #0f172a !important;
  font-weight: 750 !important;
}

html[data-theme="light"] .orders-stat-card strong {
  color: #0f172a !important;
  font-weight: 850 !important;
}
html[data-theme="light"] .orders-stat-card small {
  color: #475569 !important;
  font-weight: 600 !important;
}

html[data-theme="light"] .order-product strong,
html[data-theme="light"] .order-total,
html[data-theme="light"] .order-detail-summary-item strong {
  color: #0f172a !important;
  font-weight: 750 !important;
}

html[data-theme="light"] .order-unit-price,
html[data-theme="light"] .order-detail-summary-item small {
  color: #475569 !important;
  font-weight: 600 !important;
}

html[data-theme="light"] .order-id {
  color: #2563eb !important;
  font-weight: 800 !important;
}

html[data-theme="light"] .category-view-all,
html[data-theme="light"] .child-products-breadcrumb a,
html[data-theme="light"] .order-back {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #1e293b !important;
  font-weight: 700 !important;
}

html[data-theme="light"] .orders-button--ghost,
html[data-theme="light"] .orders-page-button,
html[data-theme="light"] .order-action--mobile,
html[data-theme="light"] .service-button--ghost {
  background: #f1f5f9 !important;
  color: #1e293b !important;
  border: 1px solid #cbd5e1 !important;
  font-weight: 700 !important;
}
html[data-theme="light"] .orders-button--ghost:hover,
html[data-theme="light"] .service-button--ghost:hover {
  background: #e2e8f0 !important;
  color: #2563eb !important;
  border-color: #93c5fd !important;
}

html[data-theme="light"] .orders-table-card table,
html[data-theme="light"] .orders-table-card tbody,
html[data-theme="light"] .orders-table-card tr {
  background: transparent !important;
  color: #1e293b !important;
}
html[data-theme="light"] .orders-table th,
html[data-theme="light"] .referral-history th {
  background: #f8fafc !important;
  color: #334155 !important;
  font-weight: 800 !important;
  border-bottom: 2px solid #e2e8f0 !important;
}
html[data-theme="light"] .orders-table tbody tr:hover {
  background: #f8fafc !important;
}

html[data-theme="light"] .orders-filter input,
html[data-theme="light"] .orders-filter select,
html[data-theme="light"] .deposit-create-card input,
html[data-theme="light"] .deposit-create-card select,
html[data-theme="light"] .referral-link-row input,
html[data-theme="light"] .auth-form input,
html[data-theme="light"] .service-question input,
html[data-theme="light"] .service-question textarea,
html[data-theme="light"] .service-question select {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
}
html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder {
  color: #94a3b8 !important;
}
html[data-theme="light"] input:focus,
html[data-theme="light"] select:focus,
html[data-theme="light"] textarea:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .15) !important;
  outline: none !important;
}

html[data-theme="light"] .order-detail-summary,
html[data-theme="light"] .delivery-item-new {
  background: #f8fafc !important;
  color: #1e293b !important;
  border: 1px solid #e2e8f0 !important;
}
html[data-theme="light"] .delivery-toggle,
html[data-theme="light"] .delivery-copy {
  background: #ffffff !important;
  color: #4338ca !important;
  border: 1px solid #cbd5e1 !important;
}
html[data-theme="light"] .delivery-toggle:hover,
html[data-theme="light"] .delivery-copy:hover {
  background: #f8fafc !important;
  border-color: #818cf8 !important;
  color: #312e81 !important;
}

html[data-theme="light"] .delivery-secret {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
}
html[data-theme="light"] .delivery-secret.is-hidden {
  color: transparent !important;
  user-select: none !important;
  background: repeating-linear-gradient(135deg, #eef0f5 0, #eef0f5 6px, #e7e9f0 6px, #e7e9f0 12px) !important;
  border-color: #cbd5e1 !important;
}
html[data-theme="light"] .delivery-secret.is-hidden::selection {
  background: transparent !important;
  color: transparent !important;
}

/* Light Dialogs & Modals */
html[data-theme="light"] .purchase-dialog,
html[data-theme="light"] .announcement-dialog,
html[data-theme="light"] .service-modal__dialog {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  box-shadow: 0 25px 60px rgba(15, 23, 42, .22) !important;
}
html[data-theme="light"] .purchase-dialog h2,
html[data-theme="light"] .announcement-dialog-title,
html[data-theme="light"] .service-modal__dialog h2 {
  color: #0f172a !important;
}
html[data-theme="light"] .purchase-dialog p,
html[data-theme="light"] .announcement-dialog-body,
html[data-theme="light"] .announcement-dialog-body p,
html[data-theme="light"] .announcement-dialog-body li,
html[data-theme="light"] .service-modal__intro {
  color: #334155 !important;
}
html[data-theme="light"] .purchase-summary,
html[data-theme="light"] .delivery-item {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}
html[data-theme="light"] .announcement-close,
html[data-theme="light"] .purchase-close,
html[data-theme="light"] .service-modal__close {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
}

/* Light Recent Orders Strip */
html[data-theme="light"] .recent-orders-strip {
  background: linear-gradient(145deg, #ffffff, #f8fafc) !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 18px rgba(15, 23, 42, .04) !important;
}
html[data-theme="light"] .recent-orders-heading h2 { color: #0f172a !important; }
html[data-theme="light"] .recent-orders-eyebrow { color: #2563eb !important; }
html[data-theme="light"] .recent-order-item {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .04) !important;
}
html[data-theme="light"] .recent-order-icon {
  background: rgba(16, 185, 129, .12) !important;
  color: #059669 !important;
}
html[data-theme="light"] .recent-order-copy strong { color: #0f172a !important; }
html[data-theme="light"] .recent-order-copy small { color: #64748b !important; }
html[data-theme="light"] .recent-order-total {
  color: #2563eb !important;
  font-weight: 750 !important;
}

/* Light Product Media Showcase */
html[data-theme="light"] .product-media-showcase {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
}
html[data-theme="light"] .product-media-item {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}
html[data-theme="light"] .product-video-link {
  background: #eef2ff !important;
  color: #2563eb !important;
}

/* Light Deposit & Banking */
html[data-theme="light"] .deposit-method-switch {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
}
html[data-theme="light"] .deposit-method-tab { color: #64748b !important; }
html[data-theme="light"] .deposit-method-tab[aria-selected="true"] {
  background: #ffffff !important;
  color: #2563eb !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .08) !important;
}
html[data-theme="light"] .deposit-qr-frame {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
}
html[data-theme="light"] .deposit-transfer-info {
  background: #f8fafc !important;
  border: 1px dashed #cbd5e1 !important;
  color: #1e293b !important;
}
html[data-theme="light"] .deposit-transfer-info > span {
  color: #475569 !important;
  font-weight: 650 !important;
}
html[data-theme="light"] .deposit-transfer-info b {
  color: #1d4ed8 !important;
  font-weight: 800 !important;
}
html[data-theme="light"] .deposit-transfer-info small {
  color: #334155 !important;
  font-weight: 600 !important;
}
html[data-theme="light"] .card-deposit-panel,
html[data-theme="light"] .card-choice,
html[data-theme="light"] .card-deposit-history {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
}
html[data-theme="light"] .card-choice span {
  color: #0f172a !important;
  font-weight: 700 !important;
}
html[data-theme="light"] .card-choice small {
  color: #475569 !important;
  font-weight: 600 !important;
}
html[data-theme="light"] .card-choice:has(input:checked) {
  background: #eef2ff !important;
  border-color: #3b82f6 !important;
  color: #1d4ed8 !important;
}
html[data-theme="light"] .card-choice:has(input:checked) span {
  color: #1d4ed8 !important;
  font-weight: 800 !important;
}
html[data-theme="light"] .card-input-field span,
html[data-theme="light"] .card-deposit-fieldset legend,
html[data-theme="light"] .card-section-title h3 {
  color: #0f172a !important;
  font-weight: 750 !important;
}
html[data-theme="light"] .card-section-title span {
  color: #475569 !important;
  font-weight: 600 !important;
}
html[data-theme="light"] .card-history-row strong {
  color: #0f172a !important;
  font-weight: 750 !important;
}
html[data-theme="light"] .card-history-row small {
  color: #475569 !important;
  font-weight: 500 !important;
}

/* Light Auth Shell */
html[data-theme="light"] .auth-shell {
  background:
    radial-gradient(circle at 14% 18%, rgba(59, 130, 246, .12), transparent 28%),
    radial-gradient(circle at 86% 76%, rgba(139, 92, 246, .08), transparent 30%),
    #f8fafc !important;
}
html[data-theme="light"] .auth-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .08) !important;
}
html[data-theme="light"] .auth-face h1,
html[data-theme="light"] .auth-form h2 {
  color: #0f172a !important;
}
html[data-theme="light"] .auth-form label { color: #1e293b !important; font-weight: 700 !important; }
html[data-theme="light"] .auth-note,
html[data-theme="light"] .auth-form p,
html[data-theme="light"] .auth-form .field-help {
  color: #475569 !important;
  font-weight: 500 !important;
}

/* Light Dashboard */
html[data-theme="light"] .dashboard .dash-grid > .panel {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 18px rgba(15, 23, 42, .04) !important;
  color: #1e293b !important;
}
html[data-theme="light"] .dashboard .dash-grid > .panel h2 { color: #0f172a !important; font-weight: 800 !important; }
html[data-theme="light"] .dashboard .dash-grid > .panel .row { border-top-color: #e2e8f0 !important; }
html[data-theme="light"] .dashboard .dash-grid > .panel .row > span { color: #475569 !important; font-weight: 600 !important; }
html[data-theme="light"] .dashboard .dash-grid > .panel .row b,
html[data-theme="light"] .dashboard .dash-grid > .panel .row strong { color: #0f172a !important; font-weight: 750 !important; }

/* Light Announcement */
html[data-theme="light"] .home-announcement,
html[data-theme="light"] .hero-notice {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 18px rgba(15, 23, 42, .04) !important;
}
html[data-theme="light"] .home-announcement h2,
html[data-theme="light"] .hero-notice h2 {
  color: #0f172a !important;
  font-weight: 850 !important;
}
html[data-theme="light"] .home-announcement__body,
html[data-theme="light"] .home-announcement__body *,
html[data-theme="light"] .hero-notice,
html[data-theme="light"] .hero-notice * {
  color: #1e293b !important;
}
html[data-theme="light"] .home-announcement__body strong,
html[data-theme="light"] .home-announcement__body b,
html[data-theme="light"] .hero-notice strong,
html[data-theme="light"] .hero-notice b {
  color: #0f172a !important;
  font-weight: 750 !important;
}
html[data-theme="light"] .home-announcement__links a,
html[data-theme="light"] .hero-notice a {
  color: #2563eb !important;
  font-weight: 700 !important;
}

/* Light Services Page */
html[data-theme="light"] .services-page .services-heading {
  border-bottom-color: #e2e8f0 !important;
}
html[data-theme="light"] .services-page .service-page-title {
  color: #0f172a !important;
}
html[data-theme="light"] .services-page .service-card__status {
  background: #ecfdf5 !important;
  color: #059669 !important;
}
html[data-theme="light"] .services-page .service-detail-description {
  color: #475569 !important;
}

/* Light Footer */
html[data-theme="light"] .site-footer {
  background: #ffffff !important;
  border-top: 1px solid #e2e8f0 !important;
}
html[data-theme="light"] .footer-logo,
html[data-theme="light"] .footer-logo .logo,
html[data-theme="light"] .footer-column-title {
  color: #0f172a !important;
}
html[data-theme="light"] .footer-links a,
html[data-theme="light"] .footer-brand p,
html[data-theme="light"] .footer-bottom {
  color: #64748b !important;
}
html[data-theme="light"] .footer-links a:hover {
  color: #2563eb !important;
}

/* Light Special Cards & Components */
html[data-theme="light"] .parent-card-link-label { background: #eef2ff !important; color: #2563eb !important; }

html[data-theme="light"] .support-float__link {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 8px 22px rgba(30, 39, 78, .14) !important;
}
html[data-theme="light"] .support-float__tooltip {
  background: #0f172a !important;
  color: #ffffff !important;
}
html[data-theme="light"] .announcement-dialog-close-button {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
}

/* OTP Mailbox (/ma-otp) synchronization */
html[data-theme="light"] .mail-panel {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08) !important;
}
html[data-theme="light"] .mail-panel h1 {
  color: #0f172a !important;
}
html[data-theme="light"] .mail-intro {
  color: #475569 !important;
  font-weight: 500 !important;
}
html[data-theme="light"] .mail-status-bar {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #334155 !important;
}
html[data-theme="light"] .mail-status-bar b {
  color: #2563eb !important;
}
html[data-theme="light"] .mail-login-form label {
  color: #334155 !important;
}
html[data-theme="light"] .mail-login-form input {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}
html[data-theme="light"] .mail-toggle-btn {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}
html[data-theme="light"] .mail-toggle-btn:hover {
  background: #e2e8f0 !important;
  color: #2563eb !important;
}
html[data-theme="light"] .mail-row {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
}
html[data-theme="light"] .mail-row:hover {
  border-color: #3b82f6 !important;
}

/* Service Order Detail synchronization */
html[data-theme="light"] .service-answer-row {
  border-color: #e2e8f0 !important;
}
html[data-theme="light"] .service-answer-row span {
  color: #475569 !important;
  font-weight: 600 !important;
}
html[data-theme="light"] .service-answer-row strong {
  color: #0f172a !important;
  font-weight: 750 !important;
}
html[data-theme="light"] .service-feedback {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
}

/* Deposit QR & Result states synchronization */
html[data-theme="light"] .qr.panel {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05) !important;
}
html[data-theme="light"] .qr.panel h1 {
  color: #0f172a !important;
  font-weight: 850 !important;
}
html[data-theme="light"] .btn-create-new-deposit {
  background: #2563eb !important;
  color: #ffffff !important;
}
html[data-theme="light"] .deposit-terminal-state .deposit-result {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #334155 !important;
}

/* Auth password toggle synchronization */
html[data-theme="light"] .auth-password-toggle {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
}

/* Hero notice in Light Mode (fixes screenshot 1) */
html[data-theme="light"] .premium-hero--notice .hero-notice {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .08) !important;
}
html[data-theme="light"] .premium-hero--notice .hero-notice h2 {
  color: #0f172a !important;
  font-weight: 850 !important;
}
html[data-theme="light"] .premium-hero--notice .hero-notice .home-announcement__body,
html[data-theme="light"] .premium-hero--notice .hero-notice .home-announcement__body * {
  color: #1e293b !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
}
html[data-theme="light"] .premium-hero--notice .hero-notice .home-announcement__body strong,
html[data-theme="light"] .premium-hero--notice .hero-notice .home-announcement__body b {
  color: #0f172a !important;
  font-weight: 750 !important;
}

/* System message on children/store pages */
html[data-theme="light"] .system-message {
  background: #eff6ff !important;
  border: 1px solid #bfdbfe !important;
  border-left: 4px solid #2563eb !important;
  color: #1e293b !important;
}
html[data-theme="light"] .system-message h2 {
  color: #1d4ed8 !important;
  font-weight: 850 !important;
}
html[data-theme="light"] .system-message p {
  color: #1e293b !important;
  font-weight: 500 !important;
}

/* Free account page */
html[data-theme="light"] .free-account-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
}
html[data-theme="light"] .free-account-card h1 {
  color: #0f172a !important;
  font-weight: 850 !important;
}
html[data-theme="light"] .free-feat-item {
  color: #1e293b !important;
  font-weight: 600 !important;
}
html[data-theme="light"] .free-steps-grid {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}
html[data-theme="light"] .free-step strong {
  color: #0f172a !important;
  font-weight: 800 !important;
}
html[data-theme="light"] .free-step small {
  color: #475569 !important;
  font-weight: 500 !important;
}
