/* ==========================================================================
   Product pages (top-up, gift card, subscription, game key) — unified dark theme.
   Design only: same tokens as the homepage (.nvx-hub). No layout or JS changes.
   Scoped to dark mode; light mode keeps its own styles.
   ========================================================================== */
html[data-theme="dark"] {
    --pu-bg: #121212;
    --pu-surface: #1b1b1b;
    --pu-surface-2: #222222;
    --pu-surface-3: #2a2a2a;
    --pu-border: rgba(255, 255, 255, 0.08);
    --pu-border-2: rgba(255, 255, 255, 0.14);
    --pu-text: #f4f4f5;
    --pu-text-2: #a1a1aa;
    --pu-muted: #71717a;
    --pu-accent: #10b981;
    --pu-accent-soft: rgba(16, 185, 129, 0.12);
    --pu-accent-line: rgba(16, 185, 129, 0.32);
}

/* page + main cards */
html[data-theme="dark"] body .gczbd-product-main { background: var(--pu-bg) !important; }
html[data-theme="dark"] body .gczbd-product-main .gczbd-product-card,
html[data-theme="dark"] body .gczbd-product-main .gczbd-sidebar-box,
html[data-theme="dark"] body .gczbd-product-main .gczbd-product-tabs,
html[data-theme="dark"] body .gczbd-product-main .gczbd-recommended {
    background: var(--pu-surface) !important;
    border: 1px solid var(--pu-border) !important;
    border-radius: 16px !important;
    box-shadow: none !important;
}
html[data-theme="dark"] body .gczbd-product-main .tab-content { background: transparent !important; }

/* package cards: neutral, accent only when selected */
html[data-theme="dark"] body .gczbd-product-main .gczbd-package-card {
    background: var(--pu-surface-2) !important;
    border: 1px solid var(--pu-border) !important;
    backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
}
html[data-theme="dark"] body .gczbd-product-main .gczbd-package-card:hover { border-color: var(--pu-border-2) !important; background: var(--pu-surface-3) !important; }
html[data-theme="dark"] body .gczbd-product-main .gczbd-package-card.active {
    border-color: var(--pu-accent) !important;
    background: var(--pu-accent-soft) !important;
    box-shadow: 0 0 0 1px var(--pu-accent) inset !important;
}
html[data-theme="dark"] body .gczbd-product-main .gczbd-btn-cart-icon { background: var(--pu-surface-2) !important; border-color: var(--pu-border) !important; }

/* ---------- tabs ---------- */
html[data-theme="dark"] body .gczbd-product-tabs__nav {
    border-bottom: 1px solid var(--pu-border) !important;
    gap: 4px !important; padding: 6px 8px 0 !important;
}
html[data-theme="dark"] body .gczbd-product-tabs__nav .nav-link {
    background: transparent !important; color: var(--pu-muted) !important;
    border: 0 !important; border-bottom: 2px solid transparent !important; border-radius: 0 !important;
    font-weight: 600 !important; padding: 12px 14px !important; box-shadow: none !important;
}
html[data-theme="dark"] body .gczbd-product-tabs__nav .nav-link:hover { color: var(--pu-text) !important; }
html[data-theme="dark"] body .gczbd-product-tabs__nav .nav-link.active { color: var(--pu-text) !important; border-bottom-color: var(--pu-accent) !important; }
html[data-theme="dark"] body .gczbd-product-tabs__heading { color: var(--pu-text) !important; font-size: 20px !important; font-weight: 800 !important; letter-spacing: -0.01em; }

/* ---------- description / instructions body (HTML from admin) ---------- */
html[data-theme="dark"] body .gczbd-tab-content-body { color: var(--pu-text-2) !important; font-size: 15px !important; line-height: 1.75 !important; }
html[data-theme="dark"] body .gczbd-tab-content-body h2 { color: var(--pu-text) !important; font-size: 19px !important; font-weight: 800 !important; margin: 26px 0 10px !important; line-height: 1.35 !important; }
html[data-theme="dark"] body .gczbd-tab-content-body h3 { color: var(--pu-text) !important; font-size: 16px !important; font-weight: 700 !important; margin: 20px 0 8px !important; }
html[data-theme="dark"] body .gczbd-tab-content-body > :first-child { margin-top: 0 !important; }
html[data-theme="dark"] body .gczbd-tab-content-body p { margin: 0 0 12px !important; }
html[data-theme="dark"] body .gczbd-tab-content-body strong, html[data-theme="dark"] body .gczbd-tab-content-body b { color: var(--pu-text) !important; font-weight: 600 !important; }
html[data-theme="dark"] body .gczbd-tab-content-body a { color: var(--pu-accent) !important; text-decoration: none !important; }
html[data-theme="dark"] body .gczbd-tab-content-body a:hover { text-decoration: underline !important; }
html[data-theme="dark"] body .gczbd-tab-content-body ul { list-style: none !important; padding: 0 !important; margin: 0 0 14px !important; }
html[data-theme="dark"] body .gczbd-tab-content-body ul > li { position: relative !important; padding-left: 20px !important; margin-bottom: 8px !important; }
html[data-theme="dark"] body .gczbd-tab-content-body ul > li::before {
    content: "" !important; position: absolute !important; left: 4px !important; top: 0.72em !important;
    width: 6px !important; height: 6px !important; border-radius: 50% !important; background: var(--pu-accent) !important;
}
/* numbered steps for ordered lists (Instructions) */
html[data-theme="dark"] body .gczbd-tab-content-body ol { list-style: none !important; counter-reset: pu-step !important; padding: 0 !important; margin: 0 0 16px !important; display: grid !important; gap: 10px !important; }
html[data-theme="dark"] body .gczbd-tab-content-body ol > li {
    counter-increment: pu-step !important; position: relative !important;
    padding: 12px 14px 12px 52px !important; margin: 0 !important;
    background: var(--pu-surface-2) !important; border: 1px solid var(--pu-border) !important; border-radius: 12px !important;
    line-height: 1.6 !important;
}
html[data-theme="dark"] body .gczbd-tab-content-body ol > li::before {
    content: counter(pu-step) !important; position: absolute !important; left: 14px !important; top: 12px !important;
    width: 26px !important; height: 26px !important; border-radius: 50% !important;
    display: grid !important; place-items: center !important;
    font-size: 13px !important; font-weight: 800 !important; color: #04130d !important; background: var(--pu-accent) !important;
}
html[data-theme="dark"] body .gczbd-tab-content-body table {
    width: 100% !important; border-collapse: separate !important; border-spacing: 0 !important;
    border: 1px solid var(--pu-border) !important; border-radius: 12px !important; overflow: hidden !important; margin: 0 0 16px !important; font-size: 14px !important;
}
html[data-theme="dark"] body .gczbd-tab-content-body th { background: var(--pu-surface-2) !important; color: var(--pu-text-2) !important; font-weight: 600 !important; text-align: left !important; padding: 10px 14px !important; border: 0 !important; }
html[data-theme="dark"] body .gczbd-tab-content-body td { padding: 10px 14px !important; border: 0 !important; border-top: 1px solid var(--pu-border) !important; color: var(--pu-text) !important; background: transparent !important; }
html[data-theme="dark"] body .gczbd-see-more-btn { color: var(--pu-accent) !important; font-weight: 600 !important; }
html[data-theme="dark"] body .gczbd-tab-content-body--collapsed::after { background: linear-gradient(to bottom, rgba(27, 27, 27, 0), var(--pu-surface)) !important; }

/* ---------- GEO overview block in the description tab ---------- */
html[data-theme="dark"] body .arora-pgeo-meta { color: var(--pu-muted) !important; }
html[data-theme="dark"] body .arora-pgeo-def {
    background: var(--pu-surface-2) !important; border: 1px solid var(--pu-border) !important;
    border-left: 3px solid var(--pu-accent) !important; border-radius: 12px !important; box-shadow: none !important;
}
html[data-theme="dark"] body .arora-pgeo-def-title { color: var(--pu-text) !important; }
html[data-theme="dark"] body .arora-pgeo-def-text { color: var(--pu-text-2) !important; }
html[data-theme="dark"] body .arora-pgeo-spec-card,
html[data-theme="dark"] body .arora-pgeo-step,
html[data-theme="dark"] body .arora-pgeo-table-card,
html[data-theme="dark"] body .arora-pgeo-faq-card {
    background: var(--pu-surface-2) !important; border: 1px solid var(--pu-border) !important; border-radius: 12px !important; box-shadow: none !important;
}
html[data-theme="dark"] body .arora-pgeo-spec-ico,
html[data-theme="dark"] body .arora-pgeo-spec-ico--amber,
html[data-theme="dark"] body .arora-pgeo-spec-ico--sky { background: var(--pu-accent-soft) !important; color: var(--pu-accent) !important; }
html[data-theme="dark"] body .arora-pgeo-spec-ico i { color: var(--pu-accent) !important; }
html[data-theme="dark"] body .arora-pgeo-spec-lbl { color: var(--pu-muted) !important; }
html[data-theme="dark"] body .arora-pgeo-spec-val, html[data-theme="dark"] body .arora-pgeo-step-title, html[data-theme="dark"] body .arora-pgeo-table-title,
html[data-theme="dark"] body .arora-pgeo-faq-heading, html[data-theme="dark"] body .arora-pgeo-faq-q { color: var(--pu-text) !important; }
html[data-theme="dark"] body .arora-pgeo-step-desc, html[data-theme="dark"] body .arora-pgeo-faq-a { color: var(--pu-text-2) !important; }
html[data-theme="dark"] body .arora-pgeo-step-num { background: var(--pu-accent) !important; border-color: var(--pu-accent) !important; color: #04130d !important; }
html[data-theme="dark"] body .arora-pgeo-table thead th, html[data-theme="dark"] body .arora-pgeo-table-head th { background: var(--pu-surface-3) !important; color: var(--pu-text-2) !important; border-color: var(--pu-border) !important; }
html[data-theme="dark"] body .arora-pgeo-table td { border-color: var(--pu-border) !important; background: transparent !important; }
html[data-theme="dark"] body .arora-pgeo-table tbody tr:hover td { background: rgba(255, 255, 255, 0.02) !important; }
html[data-theme="dark"] body .arora-pgeo-pkg, html[data-theme="dark"] body .arora-pgeo-price { color: var(--pu-text) !important; }
html[data-theme="dark"] body .arora-pgeo-table-foot { color: var(--pu-muted) !important; border-color: var(--pu-border) !important; }
html[data-theme="dark"] body .arora-pgeo-pill, html[data-theme="dark"] body .arora-pgeo-pill--green {
    background: var(--pu-accent-soft) !important; border-color: var(--pu-accent-line) !important; color: #34d399 !important;
}
html[data-theme="dark"] body .arora-pgeo-pill--amber { background: rgba(245, 158, 11, 0.10) !important; border-color: rgba(245, 158, 11, 0.24) !important; color: #fbbf24 !important; }
html[data-theme="dark"] body .arora-pgeo-refs { border-color: var(--pu-border) !important; color: var(--pu-muted) !important; }
html[data-theme="dark"] body .nvx-geo-faq { border-color: var(--pu-border) !important; }

/* ---------- reviews ---------- */
html[data-theme="dark"] body .arora-rev-summary-card {
    background: var(--pu-surface-2) !important; border: 1px solid var(--pu-border) !important; border-radius: 14px !important; box-shadow: none !important;
}
html[data-theme="dark"] body .arora-rev-card {
    background: var(--pu-surface-2) !important; border: 1px solid var(--pu-border) !important; border-radius: 12px !important; box-shadow: none !important;
}
html[data-theme="dark"] body .arora-rev-avatar-box { background: var(--pu-surface-3) !important; border-color: var(--pu-border) !important; }
html[data-theme="dark"] body .arora-rev-big-score { color: var(--pu-text) !important; }
html[data-theme="dark"] body .arora-rev-bar-track, html[data-theme="dark"] body .arora-rev-bars-wrap .progress { background: rgba(255, 255, 255, 0.07) !important; }
html[data-theme="dark"] body .arora-rev-bars-wrap .progress-bar { background: #f5b301 !important; }
html[data-theme="dark"] body .arora-rev-all-btn, html[data-theme="dark"] body .arora-login-prompt-box {
    background: transparent !important; border: 1px solid var(--pu-border-2) !important; color: var(--pu-text) !important;
}
html[data-theme="dark"] body .arora-rev-all-btn:hover { border-color: var(--pu-accent) !important; color: var(--pu-accent) !important; }
html[data-theme="dark"] body .arora-rev-date-text { color: var(--pu-muted) !important; }
html[data-theme="dark"] body .arora-rev-comment { color: var(--pu-text-2) !important; }
html[data-theme="dark"] body .arora-rev-badge-verified, html[data-theme="dark"] body .arora-verified-pill { background: var(--pu-accent-soft) !important; border-color: var(--pu-accent-line) !important; }

@media (max-width: 640px) {
    html[data-theme="dark"] body .gczbd-product-tabs__nav .nav-link { padding: 10px 10px !important; font-size: 14px !important; }
    html[data-theme="dark"] body .gczbd-tab-content-body { font-size: 14.5px !important; }
    html[data-theme="dark"] body .gczbd-tab-content-body ol > li { padding: 12px 12px 12px 46px !important; }
    html[data-theme="dark"] body .gczbd-tab-content-body ol > li::before { left: 12px !important; }
    html[data-theme="dark"] body .gczbd-tab-content-body table { display: block !important; overflow-x: auto !important; }
}
