/* TechArad — dark theme + skeleton navigation (loads after shop.css).
   The shop design is CSS-variable driven: dark mode remaps the variables to a
   deep-navy palette built from the site's own ink (#0d1b3e), blue (#2747d6)
   and spark (#ffc83d), then fixes the places that use --white / --ink as a
   foreground colour (they would otherwise flip with the surfaces). */

/* ================= theme toggle ================= */
.ta-theme-toggle{position:relative}
.ta-theme-toggle svg{position:absolute;inset:0;margin:auto;width:20px;height:20px;transition:transform .55s cubic-bezier(.6,-0.28,.3,1.4),opacity .35s ease}
.ta-theme-toggle .ic-moon{opacity:1;transform:rotate(0deg) scale(1)}
.ta-theme-toggle .ic-sun{opacity:0;transform:rotate(120deg) scale(.35)}
html[data-theme="dark"] .ta-theme-toggle{color:#FFC83D}
html[data-theme="dark"] .ta-theme-toggle .ic-moon{opacity:0;transform:rotate(-120deg) scale(.35)}
html[data-theme="dark"] .ta-theme-toggle .ic-sun{opacity:1;transform:rotate(0deg) scale(1)}
html.ta-theme-anim *,html.ta-theme-anim *::before,html.ta-theme-anim *::after{transition:background-color .45s ease,color .45s ease,border-color .45s ease,fill .45s ease,stroke .45s ease,box-shadow .45s ease!important}
@media (prefers-reduced-motion:reduce){.ta-theme-toggle svg{transition:none}html.ta-theme-anim *,html.ta-theme-anim *::before,html.ta-theme-anim *::after{transition:none!important}}

/* ================= dark variable remap ================= */
html[data-theme="dark"]{
  --white:#0C1730;
  --paper:#0A1226;
  --ink:#0D1B3E;
  --ink-2:#16264F;
  --text:#DCE4F2;
  --muted:#95A4C0;
  --line:#22304F;
  --line-2:#2F4066;
  --blue:#5B7CFF;
  --blue-ink:#8FA8FF;
  --blue-soft:#152650;
  --go:#0EA371;
  --go-ink:#4BD6A4;
  --go-soft:#0B2A20;
  --spark:#FFC83D;
  --spark-soft:#33290D;
  --amber-soft:#2C240A;
  --amber-ink:#F2C14E;
  --amber-line:#6B5518;
  --red-soft:#301319;
  --red-ink:#FF9D9D;
  --red-line:#66262F;
  --lift:0 18px 40px -18px rgba(0,0,0,.65);
}
html[data-theme="dark"] body{background:#060B1D}
html[data-theme="dark"]{scrollbar-color:#2F4066 #0A1226}
html[data-theme="dark"] ::selection{background:var(--spark);color:#0D1B3E}

/* ---- --white used as a FOREGROUND (text on coloured surfaces) stays white ---- */
html[data-theme="dark"] .top-strip b{color:#fff}
html[data-theme="dark"] .btn-primary{color:#fff}
html[data-theme="dark"] .btn-buy,html[data-theme="dark"] .btn-green{color:#fff}
html[data-theme="dark"] .ticket-head h2,html[data-theme="dark"] .ticket-time b,html[data-theme="dark"] .flow b{color:#fff}
html[data-theme="dark"] .tab.active{color:#fff}
html[data-theme="dark"] .app-icon{color:#fff}
html[data-theme="dark"] .step.hl h3{color:#fff}
html[data-theme="dark"] .footer h4,html[data-theme="dark"] .footer .f-h,html[data-theme="dark"] .footer .brand-text strong{color:#fff}
html[data-theme="dark"] .footer a:hover{color:#fff}
html[data-theme="dark"] .fact.instant b,html[data-theme="dark"] .timeline li.hl b{color:#fff}

/* ---- --ink used as a FOREGROUND on light surfaces becomes light ---- */
html[data-theme="dark"] .hero h1{color:var(--text)}
html[data-theme="dark"] .price b{color:var(--text)}
html[data-theme="dark"] .skip{color:var(--text)}
html[data-theme="dark"] .hero-cats a{color:var(--text)}
html[data-theme="dark"] .timeline .n{color:var(--text)}
html[data-theme="dark"] .sec-head h2,html[data-theme="dark"] .page-title{color:var(--text)}

/* ---- literal dark-slate text colours become light ---- */
html[data-theme="dark"] .nav-links a{color:#C4CFE4}
html[data-theme="dark"] .nav-links a:hover,html[data-theme="dark"] .nav-links a.active{color:#fff}
html[data-theme="dark"] .hero-badges{color:#C4CFE4}
html[data-theme="dark"] .tab{color:#C4CFE4}
html[data-theme="dark"] .chips li{color:#C4CFE4}
html[data-theme="dark"] .p-tagline{color:#C4CFE4}
html[data-theme="dark"] .buy-trust{color:#C4CFE4}
html[data-theme="dark"] .check{color:#C4CFE4}
html[data-theme="dark"] .legal p,html[data-theme="dark"] .legal li{color:#C9D4EA}
html[data-theme="dark"] .disclaimer{color:#A9B6CE}
html[data-theme="dark"] .ct-support p{color:#C9D4EA}
html[data-theme="dark"] .alert.muted,html[data-theme="dark"] .o-status.muted{color:#C4CFE4}
html[data-theme="dark"] .acct-status{color:#C4CFE4}
html[data-theme="dark"] .nav-logout{color:#C4CFE4}
html[data-theme="dark"] .buy-preorder-refund{color:#C4CFE4}
html[data-theme="dark"] .totp-backup-row .cred-label{color:#C4CFE4}
html[data-theme="dark"] .bottom-nav a{color:#95A4C0}
html[data-theme="dark"] .bottom-nav .bn-logout{color:#7E8DB0}

/* ---- light literal surfaces / borders ---- */
html[data-theme="dark"] .badge-out{background:#1B2A4A;color:#A9B6CE}
html[data-theme="dark"] .stock.out{background:#1B2A4A;color:#A9B6CE}
html[data-theme="dark"] .btn-light:hover,html[data-theme="dark"] .btn-ghost:hover{background:#1A2A4A}
html[data-theme="dark"] .box.need{border-color:#1E4D38}
html[data-theme="dark"] .alert.ok{border-color:#1E4D38}
html[data-theme="dark"] .alert.info{border-color:#2F4066}
html[data-theme="dark"] .buy-account{border-color:#2F4066}
html[data-theme="dark"] mark.ph{background:#3A2F0E;color:#F2C14E}
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{color-scheme:dark}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#67779A}

/* ---- brand: swap the header wordmark to the on-dark variant, define the tile ---- */
html[data-theme="dark"] .site-header .brand-wordmark{content:url("/assets/img/brand/wordmark-dark.svg?v=24")}
html[data-theme="dark"] .site-header .brand-mark{border:1px solid var(--line-2)}
html[data-theme="dark"] .brand-text small{color:var(--muted)}

/* ---- precision pass: every `color:var(--ink)` strong-text usage in shop.css
   (headings, prices, values) becomes light; --ink itself stays navy because
   it is also the background of the strip/ticket/footer blocks ---- */
html[data-theme="dark"] .cat-tile b,html[data-theme="dark"] .comp-title h3,html[data-theme="dark"] .card-title h3,
html[data-theme="dark"] .step h3,html[data-theme="dark"] .faq summary,html[data-theme="dark"] .trust-item b,
html[data-theme="dark"] .p-head h1,html[data-theme="dark"] .fact b,html[data-theme="dark"] .box h2,
html[data-theme="dark"] .timeline b,html[data-theme="dark"] .cmp tr.cur td:first-child a,
html[data-theme="dark"] .buy-price b,html[data-theme="dark"] .field>span,html[data-theme="dark"] .kv dd,
html[data-theme="dark"] .cred-item-title,html[data-theme="dark"] .legal h1,html[data-theme="dark"] .legal h2,
html[data-theme="dark"] .contact-item h2,html[data-theme="dark"] .login-card h1,html[data-theme="dark"] .p-quick-price b,
html[data-theme="dark"] .sticky-buy b,html[data-theme="dark"] .buy-account bdi,html[data-theme="dark"] .acct-stat-value,
html[data-theme="dark"] .acct-order-product,html[data-theme="dark"] .acct-order-amount,html[data-theme="dark"] .ab-lead b,
html[data-theme="dark"] .ab-hero h1,html[data-theme="dark"] .ab-chips b,html[data-theme="dark"] .ab-story h2,
html[data-theme="dark"] .ab-sec-head h2,html[data-theme="dark"] .ab-process h2,html[data-theme="dark"] .ab-pillar h3,
html[data-theme="dark"] .ab-svc-no,html[data-theme="dark"] .ab-svc h3,html[data-theme="dark"] .ab-steps b,
html[data-theme="dark"] .ct-hero h1,html[data-theme="dark"] .ct-value,html[data-theme="dark"] .totp-card-head h3,
html[data-theme="dark"] .totp-code,html[data-theme="dark"] .totp-timer b,html[data-theme="dark"] .nf-code,
html[data-theme="dark"] .nf-title,html[data-theme="dark"] .step .n,html[data-theme="dark"] .trust-item .ic,
html[data-theme="dark"] .acct-stat .ic{color:var(--text)}
html[data-theme="dark"] .buy-account{color:#C4CFE4}
html[data-theme="dark"] .buy-preorder{color:var(--text);border-color:#2F4066}
html[data-theme="dark"] .tab:hover{border-color:var(--line-2)}
/* the call card paints its text with --white (now a surface colour) — restore it */
html[data-theme="dark"] .ct-card.is-call{color:#DCE4F2}
html[data-theme="dark"] .ct-card.is-call .ct-value{color:#fff}

/* ---- trust badges keep their official white tile ---- */
html[data-theme="dark"] .f-enamad img{background:#fff}
html[data-theme="dark"] .enamad-tile{background:#fff}

/* ================= skeleton navigation ================= */
html.ta-nav-pending{background:#EEF1F8}
html[data-theme="dark"].ta-nav-pending{background:#060B1D}
html.ta-nav-pending body{visibility:hidden}
html.ta-nav-pending .ta-skel{visibility:visible}
.ta-skel{display:none;position:fixed;top:0;right:0;left:0;bottom:0;z-index:99980;background:#EEF1F8;direction:rtl;padding:0 22px 32px;overflow:hidden;opacity:0;transition:opacity .22s ease}
.ta-skel.on{display:block;opacity:1}
html[data-theme="dark"] .ta-skel{background:#060B1D}
.ta-skel .sk-wrap{max-width:1200px;margin:0 auto}
.ta-skel i{display:block;border-radius:12px;background:linear-gradient(100deg,#D8E0EF 40%,#F6F9FC 50%,#D8E0EF 60%);background-size:220% 100%;animation:taShimmer 1.15s linear infinite}
html[data-theme="dark"] .ta-skel i{background:linear-gradient(100deg,#0E1B38 40%,#1A2C52 50%,#0E1B38 60%);background-size:220% 100%}
.ta-skel .sk-strip{height:36px;border-radius:0 0 10px 10px;margin-bottom:14px}
.ta-skel .sk-head{display:flex;align-items:center;gap:12px;margin-bottom:22px}
.ta-skel .sk-logo{width:150px;height:44px;border-radius:10px}
.ta-skel .sk-pill{width:74px;height:20px;border-radius:999px}
.ta-skel .sk-btn{width:132px;height:44px;border-radius:12px}
.ta-skel .sk-hero{height:300px;border-radius:20px;margin-bottom:20px}
.ta-skel .sk-chips{display:flex;gap:10px;margin-bottom:20px}
.ta-skel .sk-chip{flex:1;height:38px;border-radius:14px}
.ta-skel .sk-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.ta-skel .sk-card{border-radius:16px;padding:12px;background:rgba(255,255,255,.6)}
html[data-theme="dark"] .ta-skel .sk-card{background:rgba(255,255,255,.04)}
.ta-skel .sk-img{height:150px;border-radius:12px;margin-bottom:10px}
.ta-skel .sk-line{height:12px;border-radius:6px;margin-bottom:8px}
.ta-skel .sk-line.short{width:55%}
@keyframes taShimmer{to{background-position:-120% 0}}
@media (prefers-reduced-motion:reduce){.ta-skel i{animation:none}}
@media (max-width:860px){
  .ta-skel{bottom:calc(64px + env(safe-area-inset-bottom));padding:0 14px 20px}
  .ta-skel .sk-strip{height:30px;margin-bottom:10px}
  .ta-skel .sk-head{margin-bottom:14px}
  .ta-skel .sk-logo{width:110px;height:36px}
  .ta-skel .sk-pill{display:none}
  .ta-skel .sk-btn{width:104px;height:38px}
  .ta-skel .sk-hero{height:190px;margin-bottom:14px}
  .ta-skel .sk-chips{gap:8px;margin-bottom:14px}
  .ta-skel .sk-chip{height:30px}
  .ta-skel .sk-grid{grid-template-columns:1fr 1fr;gap:12px}
  .ta-skel .sk-card{padding:10px}
  .ta-skel .sk-img{height:104px}
}
