/* ════════════════════════════════════════════════════════════════════
   DH Texas Poker — "Daylight card room" light theme (Oct 2026)
   Active only when <body class="theme-light"> (set in header.php for the
   public pages). Idea: a bright, airy room — mint-white felt light, white
   surfaces, emerald ink — with the price board, order modal, cards and
   footer kept as dark casino "objects" so they stand out.
   Rollback: set $pageTheme = 'dark' (or drop the body class).
   ════════════════════════════════════════════════════════════════════ */

body.theme-light{
  /* light tokens (override style.css :root) */
  --white:      #15231c;                 /* main ink  */
  --muted:      #5f6d65;
  --gold:       #8f6d14;                 /* gold for TEXT/icons on light (AA) */
  --gold-soft:  #6e5410;
  --hairline:   rgba(143,109,20,.22);
  --hairline-2: rgba(143,109,20,.42);
  --ivory-70:   rgba(21,35,28,.78);
  --ivory-55:   rgba(21,35,28,.6);
  --paper:      #f4f6f1;
  --paper-2:    #eaf1ec;
  --surface:    #ffffff;
  --emerald-ink:#0b4a33;
  --soft-shadow:0 1px 2px rgba(16,40,30,.05),0 10px 30px rgba(16,40,30,.07);

  color:var(--white);
  background:
    radial-gradient(1200px 520px at 18% -160px, rgba(14,107,71,.13), transparent 70%),
    radial-gradient(900px 480px at 100% 0%, rgba(201,162,39,.10), transparent 70%),
    linear-gradient(180deg,#f7f9f5 0%,var(--paper) 40%,#eef3ee 100%);
}
body.theme-light::before{opacity:0}
body.theme-light #chips-bg{opacity:.5}
body.theme-light .amb{opacity:.35}
body.theme-light ::selection{background:rgba(201,162,39,.3);color:#15231c}

/* ── Dark "objects": restore the original dark tokens inside them ── */
body.theme-light .rb,
body.theme-light .order-modal,
body.theme-light .congrats-modal,
body.theme-light .modal-backdrop,
body.theme-light .package-card,
body.theme-light .lang-dropdown,
body.theme-light .user-dropdown,
body.theme-light #mobileDrawer,
body.theme-light .site-footer,
body.theme-light .hx-final-inner,
body.theme-light .toast{
  --white:#f2eee3; --muted:#98a099; --gold:#d4af37; --gold-soft:#efd98b;
  --hairline:rgba(212,175,55,.22); --hairline-2:rgba(212,175,55,.45);
  --ivory-70:rgba(242,238,227,.72); --ivory-55:rgba(242,238,227,.55);
  color:var(--white);
}

/* Headings: solid emerald ink instead of the shimmering gold gradient
   (gold gradient stays inside the dark objects) */
body.theme-light .gold-text:not(:is(.order-modal,.congrats-modal,.site-footer,.hx-final-inner,#mobileDrawer,.toast,.package-card) *){
  background:none;-webkit-text-fill-color:currentColor;color:var(--emerald-ink);animation:none;
}
body.theme-light h1,body.theme-light h2,body.theme-light h3{color:var(--emerald-ink)}
body.theme-light :is(.order-modal,.congrats-modal,.site-footer,.hx-final-inner,#mobileDrawer,.package-card) :is(h1,h2,h3,h4){color:inherit}
body.theme-light .section-title h2::after{color:#c9a227;-webkit-text-fill-color:#c9a227}

/* Inline styles written for the dark theme (white text) → ink on light */
body.theme-light [style*="color:rgba(255,255,255"]:not([style*="background"]):not(:is(.order-modal,.congrats-modal,.site-footer,.hx-final-inner,#mobileDrawer,.package-card,.rb) *){color:var(--ivory-70) !important}
body.theme-light [style*="color:#fff"]:not([style*="background"]):not(:is(.order-modal,.congrats-modal,.site-footer,.hx-final-inner,#mobileDrawer,.package-card,.rb) *),
body.theme-light [style*="color: #fff"]:not([style*="background"]):not(:is(.order-modal,.congrats-modal,.site-footer,.hx-final-inner,#mobileDrawer,.package-card,.rb) *){color:var(--white) !important}

/* ── Header ───────────────────────────────────────────────────── */
body.theme-light .site-header{background:rgba(255,255,255,.86);border-bottom:1px solid rgba(14,70,51,.10);box-shadow:none}
body.theme-light .site-header.scrolled{background:rgba(255,255,255,.97);box-shadow:0 6px 24px rgba(16,40,30,.08)}
body.theme-light .brand{color:var(--emerald-ink)}
body.theme-light .brand-logo{box-shadow:0 0 0 1px rgba(143,109,20,.35),0 0 0 3px #fff,0 0 0 4px rgba(143,109,20,.25),0 4px 12px rgba(16,40,30,.15)}
body.theme-light .btn-lucky{color:var(--gold);background:rgba(201,162,39,.10);border-color:rgba(143,109,20,.35)}
body.theme-light .btn-lucky i{color:var(--gold)}
body.theme-light .lang-btn{color:var(--white);background:#fff;border-color:rgba(14,70,51,.16)}
body.theme-light .lang-btn .fa-globe{color:var(--gold)}
body.theme-light .user-btn{color:var(--white);background:#fff;border-color:rgba(14,70,51,.16)}
body.theme-light .menu-toggle{color:var(--emerald-ink) !important;background:#fff !important;border-color:rgba(14,70,51,.16) !important}
body.theme-light .verify-pill{color:#b23b3b}

/* ── Buttons ──────────────────────────────────────────────────── */
body.theme-light .btn-primary{box-shadow:0 1px 0 rgba(255,255,255,.6) inset,0 -2px 0 rgba(0,0,0,.14) inset,0 8px 20px rgba(176,140,40,.28)}
body.theme-light .btn-outline{color:var(--emerald-ink);border-color:rgba(14,70,51,.28);background:#fff}
body.theme-light .btn-outline:hover{color:var(--emerald-ink);border-color:var(--emerald-ink);background:#f3f8f5}
body.theme-light .btn-green{background:linear-gradient(170deg,#1fae7c,#0e7a55);color:#fff}
body.theme-light :is(.hx-final-inner,.site-footer) .btn-outline{color:#f2eee3;background:transparent;border-color:rgba(212,175,55,.45)}

/* ── Surfaces ─────────────────────────────────────────────────── */
body.theme-light .glass{background:var(--surface);border-color:rgba(14,70,51,.10);box-shadow:var(--soft-shadow)}
body.theme-light .glass::before{opacity:.35}
body.theme-light .faq-item{background:var(--surface);border-color:rgba(14,70,51,.10);box-shadow:0 1px 2px rgba(16,40,30,.04)}
body.theme-light .faq-item[open]{border-color:rgba(143,109,20,.4)}
body.theme-light .faq-item summary{color:var(--white)}
body.theme-light .faq-a{color:var(--ivory-70)}
body.theme-light .welcome-banner{background:var(--surface);border-color:rgba(14,70,51,.12);box-shadow:var(--soft-shadow)}
body.theme-light .to-top{background:#fff;color:var(--gold);border-color:rgba(143,109,20,.35);box-shadow:var(--soft-shadow)}
body.theme-light .hero::before{background:radial-gradient(closest-side,rgba(14,107,71,.14),rgba(14,107,71,.05) 55%,transparent 78%)}
body.theme-light .hero-logo{box-shadow:0 0 0 1px rgba(143,109,20,.4),0 0 0 7px #fff,0 18px 40px rgba(16,40,30,.18)}
body.theme-light .chip{opacity:.35}
body.theme-light .hero p.lead,body.theme-light .lead{color:var(--muted)}
body.theme-light .crypto-bonus-banner{background:linear-gradient(135deg,#fff8e1,#eef8f2);border-color:rgba(143,109,20,.35);box-shadow:var(--soft-shadow)}
body.theme-light .crypto-bonus,body.theme-light .crypto-bonus-banner strong{color:var(--gold)}

/* Forms (login, contact) */
body.theme-light .form-group label:not(:is(.order-modal,.congrats-modal) *){color:var(--emerald-ink)}
body.theme-light .form-control:not(:is(.order-modal,.congrats-modal) *){background:#fff;border-color:rgba(14,70,51,.18);color:var(--white)}
body.theme-light .form-control:focus{background:#fff;border-color:#c9a227;box-shadow:0 0 0 3px rgba(201,162,39,.18)}
body.theme-light .form-control::placeholder{color:rgba(21,35,28,.4)}
body.theme-light .alert-success{color:#11734f}
body.theme-light .alert-error{color:#b23b3b}

/* ── Homepage / landing (hx-*) ─────────────────────────────────── */
body.theme-light .hx-felt{background:linear-gradient(180deg,transparent,rgba(14,107,71,.06) 16%,rgba(14,107,71,.06) 84%,transparent)}
body.theme-light .hx-head::after{background:linear-gradient(90deg,rgba(143,109,20,.45),transparent)}
body.theme-light .hx-games a{color:var(--emerald-ink);border-color:rgba(14,70,51,.25)}
body.theme-light .hx-games a i{color:var(--gold)}
body.theme-light .hx-facts li::before{color:#c9a227}

body.theme-light .rb-title{color:var(--emerald-ink)}
body.theme-light .rb-cur{background:#fff;color:var(--white);border-color:rgba(14,70,51,.18)}
body.theme-light .rb{box-shadow:0 24px 50px rgba(12,21,36,.28),0 2px 6px rgba(12,21,36,.15)}
body.theme-light .rb-emblem circle{fill:#0c1524}
body.theme-light .rb-others summary{color:var(--gold)}
body.theme-light .rb-table-wrap{background:var(--surface);border-color:rgba(14,70,51,.12);box-shadow:var(--soft-shadow)}
body.theme-light .rb-table thead th{color:var(--gold);background:#fbf8ee}
body.theme-light .rb-table th,body.theme-light .rb-table td{border-color:rgba(14,70,51,.08)}

body.theme-light .hx-step-chip{box-shadow:0 0 0 5px var(--paper),0 0 0 6px rgba(143,109,20,.35),0 6px 14px rgba(143,109,20,.25)}
body.theme-light .hx-steps::before{background:linear-gradient(90deg,rgba(143,109,20,.4),rgba(143,109,20,.15),rgba(143,109,20,.4))}

body.theme-light .hx-table-wrap{background:var(--surface);border-color:rgba(14,70,51,.12);box-shadow:var(--soft-shadow)}
body.theme-light .hx-table thead th{background:#fbf8ee;color:var(--gold)}
body.theme-light .hx-table th,body.theme-light .hx-table td{border-color:rgba(14,70,51,.08)}
body.theme-light .hx-table tbody th{color:var(--emerald-ink)}
body.theme-light .hx-table td:nth-child(3){color:#0e6b47}

body.theme-light .hx-pay{border-color:rgba(14,70,51,.14)}
body.theme-light .hx-pay-group + .hx-pay-group{border-color:rgba(14,70,51,.10)}
body.theme-light .hx-pay-group h3{color:var(--white)}
body.theme-light .hx-pay-group h3 em{color:#fff;background:linear-gradient(170deg,#c9a227,#8f6d14)}

body.theme-light .hx-prose a{color:#0e6b47}
body.theme-light .hx-prose a:hover{color:var(--emerald-ink)}
body.theme-light .hx-disclaimer{border-color:rgba(143,109,20,.4)}
body.theme-light .hx-countries{background:var(--surface);border-color:rgba(14,70,51,.10);box-shadow:var(--soft-shadow)}
body.theme-light .hx-countries h3{color:var(--emerald-ink)}
body.theme-light .hx-rules li{border-color:rgba(14,70,51,.10)}

/* Final call-to-action band = deep emerald felt */
body.theme-light .hx-final-inner{
  border-color:rgba(212,175,55,.35);
  background:radial-gradient(600px 220px at 12% 0%,rgba(47,191,143,.22),transparent 70%),linear-gradient(135deg,#0f5a3e,#0a3a28);
  box-shadow:0 24px 50px rgba(10,58,40,.25);
}
body.theme-light .hx-final-inner .gold-text{color:#f6efd7}

/* ── Footer = deep emerald, so the page ends on solid ground ───── */
body.theme-light .site-footer{
  background:linear-gradient(180deg,#0d4a34 0%,#0a3526 100%);
  border-top:3px solid #c9a227;margin-top:40px;
}
body.theme-light .site-footer a{color:rgba(242,238,227,.78)}
body.theme-light .site-footer a:hover{color:#efd98b}
body.theme-light .site-footer h4{color:#efd98b}

/* Inner pages that still use the older sections */
body.theme-light .package-card{box-shadow:0 18px 40px rgba(12,21,36,.22)}
body.theme-light .section-title p{color:var(--muted)}
body.theme-light .counter .label,body.theme-light .how-step p{color:var(--muted)}
body.theme-light .step-num{box-shadow:0 0 0 5px var(--paper)}
body.theme-light .site-footer .brand{color:#f2eee3}
body.theme-light .review-text{color:var(--ivory-70)}
body.theme-light .review-meta strong{color:var(--white)}
body.theme-light .review-author{border-color:rgba(14,70,51,.10)}
body.theme-light .review-flag{opacity:1}
body.theme-light .hero-game-link{color:var(--white);background:#fff;border-color:rgba(143,109,20,.3)}
