/* Dipindah dari shop/product.php (blok #5, id=monochrome-blue-only) */
    /* MONOCHROME PALETTE: ONLY WHITE, BLACK, BLUE */
    .sg-pill-blue, .sg-pill-cyan, .sg-pill-green, .sg-pill-amber,
    .sg-pill-orange, .sg-pill-pink, .sg-pill-purple, .sg-pill-red,
    .sg-pill-yellow, .sg-pill-emerald, .sg-pill-rose,
    .tg-pill-blue, .tg-pill-cyan, .tg-pill-green, .tg-pill-amber,
    .tg-pill-orange, .tg-pill-pink, .tg-pill-purple {
        background: #e8f0ff !important;
        color: #0f6ee6 !important;
        border-color: #cfdcff !important;
    }
    [data-theme="dark"] .sg-pill-blue,
    [data-theme="dark"] .sg-pill-cyan,
    [data-theme="dark"] .sg-pill-green,
    [data-theme="dark"] .sg-pill-amber,
    [data-theme="dark"] .sg-pill-orange,
    [data-theme="dark"] .sg-pill-pink,
    [data-theme="dark"] .sg-pill-purple,
    [data-theme="dark"] .sg-pill-red,
    [data-theme="dark"] .sg-pill-yellow,
    [data-theme="dark"] .sg-pill-emerald,
    [data-theme="dark"] .sg-pill-rose,
    [data-theme="dark"] .tg-pill-blue,
    [data-theme="dark"] .tg-pill-cyan,
    [data-theme="dark"] .tg-pill-green,
    [data-theme="dark"] .tg-pill-amber,
    [data-theme="dark"] .tg-pill-orange,
    [data-theme="dark"] .tg-pill-pink,
    [data-theme="dark"] .tg-pill-purple,
    html:not([data-theme="light"]) .sg-pill-blue,
    html:not([data-theme="light"]) .sg-pill-cyan,
    html:not([data-theme="light"]) .sg-pill-green,
    html:not([data-theme="light"]) .sg-pill-amber,
    html:not([data-theme="light"]) .sg-pill-orange,
    html:not([data-theme="light"]) .sg-pill-pink,
    html:not([data-theme="light"]) .sg-pill-purple,
    html:not([data-theme="light"]) .sg-pill-red,
    html:not([data-theme="light"]) .sg-pill-yellow,
    html:not([data-theme="light"]) .sg-pill-emerald,
    html:not([data-theme="light"]) .sg-pill-rose,
    html:not([data-theme="light"]) .tg-pill-blue,
    html:not([data-theme="light"]) .tg-pill-cyan,
    html:not([data-theme="light"]) .tg-pill-green,
    html:not([data-theme="light"]) .tg-pill-amber,
    html:not([data-theme="light"]) .tg-pill-orange,
    html:not([data-theme="light"]) .tg-pill-pink,
    html:not([data-theme="light"]) .tg-pill-purple {
        background: rgba(26, 134, 255,.18) !important;
        color: #ffffff !important;
        border-color: rgba(26, 134, 255,.35) !important;
    }

    /* Status badges normalize ke biru */
    [class*="tg-status-"], [class*="od-state-"], .badge {
        background: rgba(26, 134, 255,.18) !important;
        color: #ffffff !important;
        border-color: rgba(26, 134, 255,.35) !important;
    }
    [data-theme="light"] [class*="tg-status-"],
    [data-theme="light"] [class*="od-state-"],
    [data-theme="light"] .badge {
        background: #e8f0ff !important;
        color: #0f6ee6 !important;
        border-color: #cfdcff !important;
    }

    /* Icon kategori dan thumbnail di product page */
    .tg-game-card i, .tg-product-card i, .sg-product-cat i,
    .sg-section-pill i, .sg-cat-card i, .tg-market-card i {
        color: #1a86ff !important;
    }
    [data-theme="dark"] .tg-game-card i,
    [data-theme="dark"] .tg-product-card i,
    [data-theme="dark"] .sg-product-cat i,
    [data-theme="dark"] .sg-section-pill i,
    [data-theme="dark"] .sg-cat-card i,
    [data-theme="dark"] .tg-market-card i,
    html:not([data-theme="light"]) .tg-game-card i,
    html:not([data-theme="light"]) .tg-product-card i,
    html:not([data-theme="light"]) .sg-product-cat i,
    html:not([data-theme="light"]) .sg-section-pill i,
    html:not([data-theme="light"]) .sg-cat-card i,
    html:not([data-theme="light"]) .tg-market-card i { color: #ffffff !important; }

    /* Validation/check colors */
    .tg-validation-item.is-valid,
    .tg-validation-item .bi-check-circle-fill,
    .tg-validation-item .bi-check-circle {
        color: #1a86ff !important;
    }
    .tg-validation-item.is-invalid,
    .tg-validation-item.is-error {
        color: #ffffff !important;
        background: rgba(26, 134, 255,.18) !important;
    }

    /* Tombol primary brand */
    .btn-primary, .tg-btn, .tg-checkout-submit, .sg-btn-primary {
        background: linear-gradient(135deg, #0f6ee6, #1a86ff) !important;
        color: #ffffff !important;
        border: none !important;
    }

    /* Title gradient brand */
    .sg-hero-title span, .tg-hero-panel h1 span {
        background: linear-gradient(135deg, #ffffff 0%, #cfe0ff 60%, #ffffff 100%) !important;
        -webkit-background-clip: text !important;
        background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        color: transparent !important;
    }

    /* Links */
    a { color: #1a86ff; }
    a:hover { color: #2e93ff; }
    [data-theme="dark"] a, html:not([data-theme="light"]) a { color: #cfe0ff; }
    [data-theme="dark"] a:hover, html:not([data-theme="light"]) a:hover { color: #ffffff; }

    /* ════════ STRICT SURFACE & TEXT — only white/black/blue ════════ */
    html[data-theme="light"] {
        --bgg-bg:#ffffff;
        --bgg-bg-1:#ffffff;
        --bgg-bg-2:#ffffff;
        --bgg-bg-3:#ffffff;
        --bgg-bg-elev:#ffffff;
        --bgg-bg-surface:#ffffff;
        --bgg-text:#000000;
        --bgg-text-2:#0f6ee6;
        --bgg-text-3:#2e93ff;
        --bgg-muted:#1a86ff;
        --bgg-border:#cfdcff;
        --bgg-border-strong:#1a86ff;
        --bgg-green:#1a86ff;
        --bgg-red:#1a86ff;
    }
    html[data-theme="light"] body,
    html[data-theme="light"] .tg-app,
    html[data-theme="light"] .tg-main,
    html[data-theme="light"] .card,
    html[data-theme="light"] .hero-card,
    html[data-theme="light"] .tg-card,
    html[data-theme="light"] .tg-product-card,
    html[data-theme="light"] .tg-game-card,
    html[data-theme="light"] .sg-section,
    html[data-theme="light"] .sg-section-card,
    html[data-theme="light"] .sg-product-card,
    html[data-theme="light"] input,
    html[data-theme="light"] textarea,
    html[data-theme="light"] select {
        background: #ffffff !important;
        background-image: none !important;
        background-color: #ffffff !important;
        border-color: #cfdcff !important;
    }
    html[data-theme="light"], html[data-theme="light"] body,
    html[data-theme="light"] .tg-app, html[data-theme="light"] .tg-main {
        color: #000000 !important;
    }
    html[data-theme="light"] h1, html[data-theme="light"] h2,
    html[data-theme="light"] h3, html[data-theme="light"] h4,
    html[data-theme="light"] h5, html[data-theme="light"] h6,
    html[data-theme="light"] strong, html[data-theme="light"] b {
        color: #000000 !important;
    }
    html[data-theme="light"] small,
    html[data-theme="light"] .text-muted,
    html[data-theme="light"] .muted,
    html[data-theme="light"] .sg-section-desc {
        color: #0f6ee6 !important;
    }
    html[data-theme="light"] .hero,
    html[data-theme="light"] .hero * { color:#ffffff !important; }

    html:not([data-theme="light"]) {
        color:#ffffff !important;
    }
    html:not([data-theme="light"]) small,
    html:not([data-theme="light"]) .text-muted,
    html:not([data-theme="light"]) .muted,
    html:not([data-theme="light"]) .sg-section-desc { color: rgba(255,255,255,.78) !important; }
    html:not([data-theme="light"]) h1,
    html:not([data-theme="light"]) h2,
    html:not([data-theme="light"]) h3,
    html:not([data-theme="light"]) h4,
    html:not([data-theme="light"]) h5,
    html:not([data-theme="light"]) h6 { color: #ffffff !important; }

    /* Box shadow ke biru saja */
    .card, .hero-card, .tg-card,
    .tg-product-card, .tg-game-card, .sg-section-card {
        box-shadow: 0 8px 24px -16px rgba(26, 134, 255,.35) !important;
    }
    html:not([data-theme="light"]) .card,
    html:not([data-theme="light"]) .hero-card,
    html:not([data-theme="light"]) .tg-card,
    html:not([data-theme="light"]) .tg-product-card,
    html:not([data-theme="light"]) .tg-game-card,
    html:not([data-theme="light"]) .sg-section-card {
        box-shadow: 0 8px 24px -16px rgba(26, 134, 255,.5) !important;
        border-color: rgba(26, 134, 255,.25) !important;
    }

    /* ════════ PRODUCT TOPBAR (replacing big hero) ════════ */
    .product-topbar {
        background: transparent;
        padding: 22px 0 14px;
    }
    .product-topbar-in {
        max-width: 1120px;
        margin: 0 auto;
        padding: 0 18px;
    }
    .product-topbar .crumb {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        font-size: .82rem;
        margin-bottom: 14px;
        color: rgba(255,255,255,.7);
    }
    .product-topbar .crumb a {
        color: #cfe0ff !important;
        text-decoration: none;
        font-weight: 700;
    }
    .product-topbar .crumb a:hover { color: #ffffff !important; }
    .product-topbar .crumb i {
        font-size: .7rem;
        opacity: .55;
    }
    .product-topbar .crumb-current {
        color: #ffffff;
        font-weight: 700;
    }
    html[data-theme="light"] .product-topbar .crumb { color: #000000; }
    html[data-theme="light"] .product-topbar .crumb a { color: #000000 !important; }
    html[data-theme="light"] .product-topbar .crumb a:hover { color: #000000 !important; opacity: .75; }
    html[data-theme="light"] .product-topbar .crumb-current { color: #000000; }

    .product-headline {
        display: flex;
        align-items: center;
        gap: 16px;
        flex-wrap: wrap;
    }
    .product-headline-icon {
        width: 56px;
        height: 56px;
        border-radius: 14px;
        overflow: hidden;
        flex-shrink: 0;
        background: transparent;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        box-shadow: none;
    }
    .product-headline-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
        border-radius: 12px;
    }
    .product-headline-text {
        display: flex;
        flex-direction: column;
        gap: 4px;
        min-width: 0;
        flex: 1 1 240px;
    }
    .product-headline-text small {
        font-size: .74rem;
        font-weight: 700;
        letter-spacing: .8px;
        text-transform: uppercase;
        color: #cfe0ff !important;
        opacity: .85;
    }
    html[data-theme="light"] .product-headline-text small { color: #000000 !important; opacity: 1; }
    .product-headline-text h1 {
        margin: 0;
        font-size: clamp(1.4rem, 2.4vw + .5rem, 1.95rem);
        line-height: 1.15;
        letter-spacing: -.01em;
        color: #ffffff !important;
        font-weight: 800;
    }
    html[data-theme="light"] .product-headline-text h1 { color: #000000 !important; }
    .product-headline-meta {
        display: inline-flex;
        flex-wrap: wrap;
        gap: 14px;
        margin-top: 6px;
        font-size: .78rem;
        color: rgba(255,255,255,.78);
    }
    .product-headline-meta span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }
    .product-headline-meta i { color: #66adff !important; }
    html[data-theme="light"] .product-headline-meta { color: #000000; }
    html[data-theme="light"] .product-headline-meta i { color: #000000 !important; }

    .product-headline-fallback {
        margin: 0;
        color: #ffffff;
        font-size: clamp(1.4rem, 2.4vw + .5rem, 1.95rem);
        font-weight: 800;
    }
    html[data-theme="light"] .product-headline-fallback { color: #000000; }

    @media (max-width: 640px) {
        .product-topbar { padding: 16px 0 10px; }
        .product-topbar-in { padding: 0 14px; }
        .product-headline-icon {
            width: 48px;
            height: 48px;
            border-radius: 12px;
            padding: 0;
            background: transparent;
            box-shadow: none;
        }
        .product-headline-icon img { border-radius: 10px; }
    }

    /* Pastikan main wrap tidak punya negative margin (yang dulu untuk overlap hero) */
    main.wrap { margin-top: 8px !important; padding-bottom: 20px !important; }
    @media (max-width: 640px) {
        main.wrap { margin-top: 4px !important; padding: 0 14px 16px !important; }
    }

    /* ════════ PAGER — Prev / Next blue & white ════════ */
    .tg-page-btn,
    [data-theme="dark"] .tg-page-btn,
    html[data-theme="dark"] .tg-page-btn,
    html:not([data-theme="light"]) .tg-page-btn {
        background: #1a86ff !important;
        background-image: none !important;
        color: #ffffff !important;
        border: 1px solid #1a86ff !important;
        box-shadow: 0 8px 18px -10px rgba(26, 134, 255,.55) !important;
    }
    .tg-page-btn:hover:not(:disabled),
    html:not([data-theme="light"]) .tg-page-btn:hover:not(:disabled) {
        background: #2e93ff !important;
        border-color: #2e93ff !important;
        color: #ffffff !important;
    }
    .tg-page-btn:disabled,
    html:not([data-theme="light"]) .tg-page-btn:disabled {
        background: rgba(26, 134, 255,.20) !important;
        border-color: rgba(26, 134, 255,.30) !important;
        color: rgba(255,255,255,.55) !important;
        opacity: 1 !important;
        box-shadow: none !important;
    }
    html[data-theme="light"] .tg-page-btn:disabled {
        background: #cfdcff !important;
        border-color: #cfdcff !important;
        color: #ffffff !important;
    }
    .tg-page-info,
    html:not([data-theme="light"]) .tg-page-info {
        color: rgba(255,255,255,.78) !important;
    }
    html[data-theme="light"] .tg-page-info { color: #000000 !important; }

    /* ════════ TOGGLE & PRICE — pure blue ════════ */
    /* Toggle "Simpan" — checked = white di kedua tema */
    .tg-save-id input:checked + .tg-save-toggle,
    [data-theme="dark"] .tg-save-id input:checked + .tg-save-toggle,
    html:not([data-theme="light"]) .tg-save-id input:checked + .tg-save-toggle,
    html[data-theme="light"] .tg-save-id input:checked + .tg-save-toggle {
        background: #ffffff !important;
    }
    /* Knob bola */
    html:not([data-theme="light"]) .tg-save-id input:checked + .tg-save-toggle::after {
        background: #000000 !important;
    }
    html[data-theme="light"] .tg-save-id input:checked + .tg-save-toggle::after {
        background: #1a86ff !important;
    }
    /* Label "Simpan" — dark mode tetap putih, light mode hitam */
    html:not([data-theme="light"]) .tg-save-id input:checked ~ .tg-save-text {
        color: #ffffff !important;
    }
    html[data-theme="light"] .tg-save-id input:checked ~ .tg-save-text {
        color: #000000 !important;
    }
    /* Default toggle bg (off state) */
    html:not([data-theme="light"]) .tg-save-toggle {
        background: rgba(255,255,255,.18) !important;
    }
    html[data-theme="light"] .tg-save-toggle {
        background: rgba(26, 134, 255,.18) !important;
    }
    /* Item price in product list */
    .tg-item .i-price,
    [data-theme="dark"] .tg-item .i-price,
    html[data-theme="dark"] .tg-item .i-price,
    html:not([data-theme="light"]) .tg-item .i-price {
        color: #ffffff !important;
    }
    html[data-theme="light"] .tg-item .i-price { color: #000000 !important; }
    /* Selected state — light theme biru seperti dark */
    html[data-theme="light"] .tg-item.sel {
        border-color: #1a86ff !important;
        background: rgba(26, 134, 255, 0.10) !important;
        box-shadow: 0 0 0 1px rgba(26, 134, 255, 0.18), 0 8px 20px -10px rgba(26, 134, 255, 0.28) !important;
    }
    html[data-theme="light"] .tg-item.sel .i-name { color: #000000 !important; }
    html[data-theme="light"] .tg-item.sel .i-price { color: #000000 !important; }
    html[data-theme="light"] .tg-item.sel .i-thumb {
        background: rgba(26, 134, 255, 0.08) !important;
        border-color: rgba(26, 134, 255, 0.22) !important;
    }
    html[data-theme="light"] .tg-item:hover {
        border-color: rgba(26, 134, 255, 0.28) !important;
        background: rgba(26, 134, 255, 0.06) !important;
    }
    /* Selected state border/bg di dark mode pakai biru */
    html:not([data-theme="light"]) .tg-item.sel,
    [data-theme="dark"] .tg-item.sel {
        border-color: #1a86ff !important;
        background: rgba(26, 134, 255,.10) !important;
    }
    html:not([data-theme="light"]) .tg-item.sel .i-name,
    [data-theme="dark"] .tg-item.sel .i-name { color: #ffffff !important; }

    /* ════════ BODY BACKGROUND — pure black glass with subtle blue glow ════════ */
    html:not([data-theme="light"]),
    html:not([data-theme="light"]) body {
        background: #000000 !important;
        background-color: #000000 !important;
        background-image: none !important;
        color: #ffffff !important;
        min-height: 100vh !important;
    }
    /* Subtle blue radial glow di belakang konten (depth tanpa flat) */
    html:not([data-theme="light"]) body::before {
        content: "" !important;
        position: fixed !important;
        top: 0; left: 0; right: 0;
        height: 60vh;
        background:
            radial-gradient(80% 60% at 50% 0%, rgba(26, 134, 255,.15), transparent 70%),
            radial-gradient(40% 40% at 15% 20%, rgba(26, 134, 255,.10), transparent 70%),
            radial-gradient(40% 40% at 85% 30%, rgba(26, 134, 255,.08), transparent 70%);
        z-index: 0;
        pointer-events: none;
    }
    html:not([data-theme="light"]) body > *:not(.sg-drawer):not(.sg-drawer-backdrop):not(.sg-bottom-nav):not(.sg-side-rail):not(.tg-sticky-cta):not(.tg-sticky-cta-portal):not(#tgNav) {
        position: relative;
        z-index: 1;
    }
    body > #tgNav,
    body > nav.tg-nav.sg-nav {
        position: sticky !important;
        top: 0 !important;
        z-index: 1200 !important;
    }
    html:not([data-theme="light"]) body > footer.tg-footer,
    html:not([data-theme="light"]) body > footer.sg-footer {
        z-index: 0 !important;
    }
    /* Light theme: putih bersih dengan blue tint subtle */
    html[data-theme="light"],
    html[data-theme="light"] body {
        background: #ffffff !important;
        background-color: #ffffff !important;
        color: #000000 !important;
    }
    html[data-theme="light"] body::before {
        content: "" !important;
        position: fixed !important;
        top: 0; left: 0; right: 0;
        height: 60vh;
        background: radial-gradient(80% 60% at 50% 0%, rgba(26, 134, 255,.06), transparent 70%);
        z-index: 0;
        pointer-events: none;
    }
    html[data-theme="light"] body > *:not(.sg-drawer):not(.sg-drawer-backdrop):not(.sg-bottom-nav):not(.sg-side-rail):not(.tg-sticky-cta):not(.tg-sticky-cta-portal):not(#tgNav) {
        position: relative;
        z-index: 1;
    }
    html[data-theme="light"] body > footer.tg-footer,
    html[data-theme="light"] body > footer.sg-footer {
        z-index: 0 !important;
    }
    /* CTA di body (mobile portal) — selalu di atas footer */
    body > .tg-sticky-cta,
    body > .tg-sticky-cta.tg-sticky-cta-portal {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        z-index: 9999 !important;
    }
    body.has-mobile-checkout-cta .tg-footer,
    body.has-mobile-checkout-cta .sg-footer {
        padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
    }
    @media (max-width: 760px) {
        body.has-mobile-checkout-cta .tg-footer.sg-footer,
        body.has-mobile-checkout-cta footer.sg-footer {
            margin-top: 10px !important;
            padding-top: 28px !important;
        }
        body.has-mobile-checkout-cta main.wrap {
            padding-bottom: calc(16px + var(--sg-sticky-cta-clearance, 80px)) !important;
        }
    }

    /* ════════ STICKY BOTTOM CTA "Buat Order" — di mobile mengambang ════════ */
    .tg-sticky-cta {
        position: sticky;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 50;
        padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
        margin: 18px -16px 0;
        background: linear-gradient(to top, rgba(0,0,0,.92) 50%, rgba(0,0,0,.65) 85%, transparent);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }
    html[data-theme="light"] .tg-sticky-cta {
        background: linear-gradient(to top, rgba(255,255,255,.95) 50%, rgba(255,255,255,.7) 85%, transparent);
    }
    .tg-sticky-cta-btn {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        padding: 14px 18px !important;
        font-size: 1rem !important;
        font-weight: 800 !important;
        border-radius: 14px !important;
        background: linear-gradient(135deg, #0f6ee6, #1a86ff) !important;
        color: #ffffff !important;
        border: none !important;
        box-shadow: 0 16px 32px -10px rgba(26, 134, 255,.55) !important;
    }
    .tg-sticky-cta-btn:disabled {
        background: rgba(26, 134, 255,.25) !important;
        color: rgba(255,255,255,.55) !important;
        box-shadow: none !important;
        cursor: not-allowed !important;
    }
    html[data-theme="light"] .tg-sticky-cta .tg-sticky-cta-btn:disabled {
        background: #e2e8f0 !important;
        color: #475569 !important;
        border: 1px solid #cbd5e1 !important;
    }
    @media (max-width: 640px) {
        .tg-sticky-cta {
            margin: 14px -14px 0;
            padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
        }
    }

    /* ════════════════════════════════════════════════════════════
       CHECKOUT FLOW — full black glass treatment
       ════════════════════════════════════════════════════════════ */
    /* Panel besar */
    html:not([data-theme="light"]) .tg-card,
    html:not([data-theme="light"]) .tg-card-secondary:not(.tg-flow-guide),
    html:not([data-theme="light"]) .card:not(.hero-card) {
        background: rgba(0,0,0,.55) !important;
        background-color: rgba(0,0,0,.55) !important;
        background-image: none !important;
        border: 1px solid rgba(255,255,255,.06) !important;
        border-radius: 16px !important;
        box-shadow:
            0 6px 16px -8px rgba(26, 134, 255,.18),
            0 1px 4px -1px rgba(0,0,0,.35),
            inset 0 1px 0 rgba(255,255,255,.04) !important;
        backdrop-filter: blur(18px) saturate(140%) !important;
        -webkit-backdrop-filter: blur(18px) saturate(140%) !important;
    }
    html[data-theme="light"] .tg-card,
    html[data-theme="light"] .tg-card-secondary:not(.tg-flow-guide),
    html[data-theme="light"] .card {
        background: rgba(255,255,255,.7) !important;
        background-color: rgba(255,255,255,.7) !important;
        border: 1px solid rgba(15,23,42,.08) !important;
        border-radius: 16px !important;
        box-shadow:
            0 6px 16px -8px rgba(26, 134, 255,.14),
            0 1px 4px -1px rgba(15,23,42,.08),
            inset 0 1px 0 rgba(255,255,255,1) !important;
        backdrop-filter: blur(18px) saturate(140%) !important;
        -webkit-backdrop-filter: blur(18px) saturate(140%) !important;
    }

    /* Sub-element dalam panel: step rows, pay method, item, info box, dll */
    html:not([data-theme="light"]) .tg-step-row,
    html:not([data-theme="light"]) .tg-pay-method,
    html:not([data-theme="light"]) .tg-pay-card,
    html:not([data-theme="light"]) .tg-info-box,
    html:not([data-theme="light"]) .tg-tip,
    html:not([data-theme="light"]) .tg-summary,
    html:not([data-theme="light"]) .tg-info-detail-row,
    html:not([data-theme="light"]) .tg-item,
    html:not([data-theme="light"]) .tg-product-card,
    html:not([data-theme="light"]) .tg-game-card,
    html:not([data-theme="light"]) .tg-trust-strip,
    html:not([data-theme="light"]) .tg-trust-item,
    html:not([data-theme="light"]) .tg-rx,
    html:not([data-theme="light"]) .tg-validation-card,
    html:not([data-theme="light"]) .tg-validation-item,
    html:not([data-theme="light"]) .tg-page-info {
        background: rgba(0,0,0,.45) !important;
        background-color: rgba(0,0,0,.45) !important;
        background-image: none !important;
        border: 1px solid rgba(255,255,255,.08) !important;
        border-radius: 12px !important;
        box-shadow: none !important;
        color: #ffffff !important;
        backdrop-filter: blur(12px) saturate(130%) !important;
        -webkit-backdrop-filter: blur(12px) saturate(130%) !important;
    }
    html[data-theme="light"] .tg-step-row,
    html[data-theme="light"] .tg-pay-method,
    html[data-theme="light"] .tg-pay-card,
    html[data-theme="light"] .tg-info-box,
    html[data-theme="light"] .tg-tip,
    html[data-theme="light"] .tg-summary,
    html[data-theme="light"] .tg-info-detail-row,
    html[data-theme="light"] .tg-item,
    html[data-theme="light"] .tg-product-card,
    html[data-theme="light"] .tg-game-card,
    html[data-theme="light"] .tg-rx {
        background: rgba(255,255,255,.75) !important;
        border: 1px solid rgba(15,23,42,.06) !important;
        border-radius: 12px !important;
        box-shadow: none !important;
    }

    /* Hover state — biru halus naik */
    html:not([data-theme="light"]) .tg-pay-method:hover,
    html:not([data-theme="light"]) .tg-item:hover,
    html:not([data-theme="light"]) .tg-product-card:hover,
    html:not([data-theme="light"]) .tg-game-card:hover {
        background: rgba(26, 134, 255,.10) !important;
        border-color: rgba(26, 134, 255,.30) !important;
    }
    /* Selected/active state */
    html:not([data-theme="light"]) .tg-pay-method.selected,
    html:not([data-theme="light"]) .tg-pay-method.is-active,
    html:not([data-theme="light"]) .tg-item.sel,
    html:not([data-theme="light"]) .tg-product-card.selected,
    html:not([data-theme="light"]) .tg-product-card.is-active,
    html:not([data-theme="light"]) .tg-game-card.sel,
    html:not([data-theme="light"]) .tg-game-card.is-active {
        background: rgba(26, 134, 255,.16) !important;
        border-color: rgba(26, 134, 255,.55) !important;
        box-shadow: inset 0 0 0 1px rgba(26, 134, 255,.25) !important;
    }
    html[data-theme="light"] .tg-item:hover,
    html[data-theme="light"] .tg-product-card:hover,
    html[data-theme="light"] .tg-game-card:hover {
        background: rgba(26, 134, 255, 0.06) !important;
        border-color: rgba(26, 134, 255, 0.28) !important;
    }
    html[data-theme="light"] .tg-pay-method.selected,
    html[data-theme="light"] .tg-pay-method.is-active,
    html[data-theme="light"] .tg-item.sel,
    html[data-theme="light"] .tg-product-card.selected,
    html[data-theme="light"] .tg-product-card.is-active,
    html[data-theme="light"] .tg-game-card.sel,
    html[data-theme="light"] .tg-game-card.is-active {
        background: rgba(26, 134, 255, 0.10) !important;
        border-color: rgba(26, 134, 255, 0.55) !important;
        box-shadow: 0 0 0 1px rgba(26, 134, 255, 0.18), 0 8px 20px -10px rgba(26, 134, 255, 0.28) !important;
    }

    /* List harga — kompak, nama tidak terpotong */
    .tg-item .i-meta,
    .tg-item .i-dm {
        display: none !important;
    }
    .tg-item .i-thumb {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        border-radius: 9px !important;
        object-fit: contain !important;
        object-position: center !important;
        background: rgba(255,255,255,.06) !important;
        padding: 3px !important;
        box-shadow: none !important;
    }
    html[data-theme="light"] .tg-item .i-thumb {
        background: #ffffff !important;
        border: 1px solid rgba(15,23,42,.06) !important;
    }
    .tg-item .i-left {
        align-items: flex-start !important;
        gap: 10px !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        width: 100% !important;
        flex-direction: column !important;
    }
    .tg-item .i-info {
        gap: 0 !important;
        justify-content: flex-start !important;
        min-width: 0 !important;
        flex: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .tg-item .i-name {
        font-size: .82rem !important;
        font-weight: 700 !important;
        line-height: 1.25 !important;
        color: #ffffff !important;
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        white-space: normal !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        word-break: break-word !important;
    }
    html[data-theme="light"] .tg-item .i-name { color: #000000 !important; }
    .tg-item .i-price {
        font-size: .9rem !important;
        font-weight: 800 !important;
        margin-top: 0 !important;
        align-self: center !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }
    .tg-item {
        align-items: flex-start !important;
        padding: 10px 12px !important;
        min-height: auto !important;
        gap: 8px !important;
    }
    @media (max-width: 760px) {
        .checkout-direct .tg-embed-body .tg-list {
            grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
            gap: 10px !important;
        }
    }
    .product-card h3 {
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        overflow: hidden !important;
        white-space: normal !important;
        word-break: break-word !important;
    }

    /* Override pure-black info box agar pakai glass */
    html:not([data-theme="light"]) .tg-info-box,
    html:not([data-theme="light"]) .tg-tip,
    html:not([data-theme="light"]) .tg-summary,
    html:not([data-theme="light"]) .tg-pay-card {
        background: rgba(0,0,0,.45) !important;
        background-image: none !important;
    }

    /* ════════ INFO BOX / TIP / PAY CARD / SUMMARY — black bg ════════ */
    .tg-info-box,
    [data-theme="dark"] .tg-info-box,
    html[data-theme="dark"] .tg-info-box,
    html:not([data-theme="light"]) .tg-info-box,
    .tg-tip,
    [data-theme="dark"] .tg-tip,
    html:not([data-theme="light"]) .tg-tip,
    .tg-summary,
    [data-theme="dark"] .tg-summary,
    html:not([data-theme="light"]) .tg-summary,
    .tg-pay-card,
    [data-theme="dark"] .tg-pay-card,
    html:not([data-theme="light"]) .tg-pay-card {
        background: #000000 !important;
        background-image: none !important;
        background-color: #000000 !important;
        border: 1px solid rgba(255,255,255,.10) !important;
        box-shadow: none !important;
        color: rgba(255,255,255,.82) !important;
    }
    html[data-theme="light"] .tg-info-box,
    html[data-theme="light"] .tg-tip,
    html[data-theme="light"] .tg-summary,
    html[data-theme="light"] .tg-pay-card {
        background: #ffffff !important;
        background-image: none !important;
        border: 1px solid #cfdcff !important;
        color: #000000 !important;
    }
    .tg-info-box h3, .tg-info-box h4 { color: #ffffff !important; }
    html[data-theme="light"] .tg-info-box h3,
    html[data-theme="light"] .tg-info-box h4 { color: #000000 !important; }
    /* List item check icon: blue/white only (replace ✅ green) */
    .tg-info-box li::before,
    html:not([data-theme="light"]) .tg-info-box li::before,
    [data-theme="dark"] .tg-info-box li::before {
        content: "" !important;
        display: inline-block !important;
        width: 14px !important;
        height: 14px !important;
        margin-right: 8px !important;
        border-radius: 50% !important;
        background: #1a86ff !important;
        flex-shrink: 0 !important;
        position: relative !important;
        top: 3px !important;
    }

    /* ════════ FORM TEXT — LIGHT THEME readable ════════ */
    html[data-theme="light"] .tg-label,
    html[data-theme="light"] label,
    html[data-theme="light"] .tg-card-title,
    html[data-theme="light"] .tg-title-text,
    html[data-theme="light"] .tg-save-text {
        color: #000000 !important;
    }
    html[data-theme="light"] .tg-title-kicker,
    html[data-theme="light"] .tg-list-info,
    html[data-theme="light"] .form-text,
    html[data-theme="light"] .tg-card-title small,
    html[data-theme="light"] .tg-card small {
        color: #64748b !important;
        opacity: .85;
    }
    html[data-theme="light"] .tg-input,
    html[data-theme="light"] input[type="text"],
    html[data-theme="light"] input[type="search"],
    html[data-theme="light"] input[type="tel"],
    html[data-theme="light"] input[type="email"],
    html[data-theme="light"] input[type="number"],
    html[data-theme="light"] input[type="password"],
    html[data-theme="light"] textarea,
    html[data-theme="light"] select {
        background: #ffffff !important;
        background-color: #ffffff !important;
        color: #000000 !important;
        border: 1px solid rgba(26, 134, 255,.20) !important;
        color-scheme: light !important;
    }
    html[data-theme="light"] .tg-input::placeholder,
    html[data-theme="light"] input::placeholder,
    html[data-theme="light"] textarea::placeholder {
        color: rgba(26, 134, 255,.5) !important;
        opacity: 1;
    }
    html[data-theme="light"] .tg-input:focus,
    html[data-theme="light"] input:focus,
    html[data-theme="light"] textarea:focus {
        border-color: rgba(26, 134, 255,.55) !important;
        box-shadow: 0 0 0 3px rgba(26, 134, 255,.14) !important;
        background: #ffffff !important;
    }

    /* ════════ INPUT — black bg, force on product page (highest priority) ════════ */
    html:not([data-theme="light"]) {
        --bg-input: #000000 !important;
    }
    html:not([data-theme="light"]) .tg-input,
    html:not([data-theme="light"]) .tg-search input,
    html:not([data-theme="light"]) .input,
    html:not([data-theme="light"]) input[type="text"],
    html:not([data-theme="light"]) input[type="search"],
    html:not([data-theme="light"]) input[type="tel"],
    html:not([data-theme="light"]) input[type="email"],
    html:not([data-theme="light"]) input[type="number"],
    html:not([data-theme="light"]) input[type="password"],
    html:not([data-theme="light"]) textarea,
    html:not([data-theme="light"]) select,
    html[data-theme="dark"] .tg-input,
    html[data-theme="dark"] .tg-search input,
    body.tg-embed-body .tg-input,
    .tg-embed-body .tg-input {
        background: #000000 !important;
        background-color: #000000 !important;
        background-image: none !important;
        color: #ffffff !important;
        border: 1px solid rgba(255,255,255,.14) !important;
        box-shadow: none !important;
        color-scheme: dark !important;
    }
    html:not([data-theme="light"]) .tg-input::placeholder,
    html:not([data-theme="light"]) input::placeholder,
    html:not([data-theme="light"]) textarea::placeholder,
    .tg-embed-body .tg-input::placeholder {
        color: rgba(255,255,255,.55) !important;
        opacity: 1;
    }
    html:not([data-theme="light"]) .tg-input:focus,
    html:not([data-theme="light"]) input:focus,
    html:not([data-theme="light"]) textarea:focus,
    html:not([data-theme="light"]) select:focus,
    .tg-embed-body .tg-input:focus {
        background: #000000 !important;
        background-color: #000000 !important;
        border-color: rgba(26, 134, 255,.55) !important;
        outline: none !important;
        box-shadow: 0 0 0 3px rgba(26, 134, 255,.20) !important;
        color: #ffffff !important;
    }
    html:not([data-theme="light"]) input:-webkit-autofill,
    html:not([data-theme="light"]) input:-webkit-autofill:hover,
    html:not([data-theme="light"]) input:-webkit-autofill:focus,
    html:not([data-theme="light"]) textarea:-webkit-autofill {
        -webkit-box-shadow: 0 0 0 1000px #000000 inset !important;
        -webkit-text-fill-color: #ffffff !important;
        caret-color: #ffffff !important;
    }

    /* ════════ CHECKOUT EMBED — kartu terpisah jelas (tidak menyatu) ════════ */
    html[data-theme="light"] .checkout-shell,
    html[data-theme="light"] .checkout-direct,
    html[data-theme="light"] .checkout-direct .tg-embed-body,
    html[data-theme="light"] .checkout-direct .tg-embed-body .tg-app,
    html[data-theme="light"] .checkout-direct .tg-embed-body .tg-main,
    html:not([data-theme="light"]) .checkout-shell,
    html:not([data-theme="light"]) .checkout-direct,
    html:not([data-theme="light"]) .checkout-direct .tg-embed-body,
    html:not([data-theme="light"]) .checkout-direct .tg-embed-body .tg-app,
    html:not([data-theme="light"]) .checkout-direct .tg-embed-body .tg-main {
        background: transparent !important;
        background-color: transparent !important;
        background-image: none !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        overflow: visible !important;
        padding: 0 !important;
    }
    .checkout-shell {
        margin-top: 14px !important;
    }
    .checkout-direct .tg-embed-body .tg-main {
        display: flex;
        flex-direction: column;
        gap: 16px !important;
        margin: 0 !important;
        padding: 0 !important;
        max-width: none !important;
    }
    html[data-theme="light"] .checkout-direct .tg-embed-body .tg-main > .tg-card,
    html:not([data-theme="light"]) .checkout-direct .tg-embed-body .tg-main > .tg-card {
        margin-bottom: 0 !important;
        margin-top: 0 !important;
        isolation: isolate;
        border-radius: 16px !important;
        background: #ffffff !important;
        border: 1px solid rgba(26, 134, 255, 0.12) !important;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    html:not([data-theme="light"]) .checkout-direct .tg-embed-body .tg-main > .tg-card {
        background: #000000 !important;
        border-color: rgba(255, 255, 255, 0.12) !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35) !important;
    }
    .checkout-direct .tg-embed-body .tg-main > .tg-card:last-child {
        margin-bottom: 0 !important;
    }
    /* Kartu Nomor HP — batas bawah rapi sebelum kartu produk */
    .checkout-direct .tg-embed-body .tg-card-target {
        padding-bottom: 18px !important;
    }
    .checkout-direct .tg-embed-body .tg-card-target .tg-save-id {
        margin-top: 14px !important;
        padding-top: 14px !important;
        border-top: 1px solid rgba(26, 134, 255, 0.10) !important;
    }
    html:not([data-theme="light"]) .checkout-direct .tg-embed-body .tg-card-target .tg-save-id {
        border-top-color: rgba(255, 255, 255, 0.10) !important;
    }
    /* Kartu produk — tampilkan judul section di halaman product */
    .checkout-direct .tg-embed-body .tg-card-products .tg-card-title {
        display: flex !important;
        margin-bottom: 14px !important;
    }
    .checkout-direct .tg-embed-body .tg-card-products {
        padding-top: 18px !important;
        padding-bottom: 16px !important;
    }
    @media (min-width: 761px) {
        .checkout-direct .tg-embed-body .tg-card-products {
            padding-bottom: calc(16px + var(--sg-sticky-cta-clearance, 84px)) !important;
        }
    }
    .checkout-direct .tg-embed-body .tg-card-products .tg-search {
        margin-bottom: 14px !important;
    }
    .checkout-direct .tg-embed-body .tg-card-products #prodInfo:empty {
        display: none;
    }
    .checkout-direct .tg-embed-body .tg-card-products #productInstruction:not(:empty) {
        margin-top: 14px;
        margin-bottom: 0;
    }
    .checkout-direct .tg-embed-body .tg-card-products #productInstruction:empty {
        display: none;
        margin: 0;
        padding: 0;
        border: none;
    }
    .checkout-direct .tg-embed-body .tg-info-box:not(.tg-info-box--product) {
        margin-bottom: 0 !important;
    }
    .checkout-direct .tg-embed-body .tg-info-box--product {
        margin-bottom: 0 !important;
    }
    .checkout-direct .tg-embed-body .tg-info-box--product .tg-info-section:first-of-type h4,
    .checkout-direct .tg-embed-body .tg-info-box h4:first-of-type {
        margin-top: 0;
    }
    .checkout-direct .tg-embed-body .tg-info-divider {
        height: 1px;
        background: rgba(26, 134, 255, 0.14);
        margin: 12px 0;
        border: none;
    }
    html[data-theme="light"] .checkout-direct .tg-embed-body .tg-info-divider {
        background: #dbeafe;
    }
    .checkout-direct .tg-embed-body .tg-info-box ul:last-child {
        margin-bottom: 0;
    }
    .checkout-direct .tg-embed-body .tg-sticky-cta {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        z-index: 9999 !important;
        margin: 0 !important;
        padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px)) !important;
        border-radius: 0 !important;
        border-top: 1px solid rgba(26, 134, 255, 0.12) !important;
        box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08) !important;
    }
    html:not([data-theme="light"]) .checkout-direct .tg-embed-body .tg-sticky-cta {
        background: rgba(0, 0, 0, 0.96) !important;
        border-top-color: rgba(255, 255, 255, 0.10) !important;
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35) !important;
    }
    html[data-theme="light"] .checkout-direct .tg-embed-body .tg-sticky-cta {
        background: rgba(255, 255, 255, 0.98) !important;
    }
    .checkout-direct .tg-embed-body .tg-sticky-cta-btn {
        width: 100% !important;
        min-height: 52px !important;
        height: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        padding: 14px 18px !important;
        font-size: 1rem !important;
        font-weight: 800 !important;
        border-radius: 14px !important;
        border: none !important;
        opacity: 1 !important;
        -webkit-tap-highlight-color: transparent !important;
        touch-action: manipulation !important;
    }
    .checkout-direct .tg-embed-body .tg-sticky-cta-btn:not(:disabled) {
        background: linear-gradient(135deg, #0f6ee6, #1a86ff) !important;
        color: #ffffff !important;
        box-shadow: 0 12px 28px -8px rgba(26, 134, 255, 0.55) !important;
        cursor: pointer !important;
    }
    .checkout-direct .tg-embed-body .tg-sticky-cta-btn:disabled {
        background: rgba(26, 134, 255, 0.18) !important;
        color: rgba(0, 57, 179, 0.45) !important;
        box-shadow: none !important;
        cursor: not-allowed !important;
    }
    html[data-theme="light"] .checkout-direct .tg-embed-body .tg-sticky-cta-btn:disabled {
        background: #e2e8f0 !important;
        color: #475569 !important;
        border: 1px solid #cbd5e1 !important;
    }
    html:not([data-theme="light"]) .checkout-direct .tg-embed-body .tg-sticky-cta-btn:disabled {
        background: rgba(26, 134, 255, 0.22) !important;
        color: rgba(255, 255, 255, 0.45) !important;
    }
    .checkout-direct .tg-embed-body .tg-sticky-cta #errBox {
        margin-top: 8px !important;
    }
    .checkout-direct .tg-embed-body .tg-pay-badge {
        background: rgba(26, 134, 255, 0.14) !important;
        color: #1a86ff !important;
    }
    html:not([data-theme="light"]) .checkout-direct .tg-embed-body .tg-pay-badge {
        background: rgba(26, 134, 255, 0.22) !important;
        color: #ffffff !important;
    }
    @media (max-width: 760px) {
        /* Ruang baca kartu terakhir — tombol fixed sudah di body, bukan di sini */
        .checkout-direct .tg-embed-body .tg-main {
            padding-bottom: calc(16px + var(--sg-sticky-cta-clearance, 80px)) !important;
        }
        body.has-mobile-checkout-cta main.wrap {
            padding-bottom: calc(16px + var(--sg-sticky-cta-clearance, 80px)) !important;
        }
        body.has-mobile-checkout-cta .checkout-direct .tg-embed-body .tg-card-products {
            padding-bottom: calc(20px + var(--sg-sticky-cta-clearance, 80px)) !important;
        }
    }
    @media (min-width: 761px) {
        .checkout-direct .tg-embed-body .tg-main {
            gap: 18px !important;
            padding-bottom: calc(24px + var(--sg-sticky-cta-clearance, 84px)) !important;
        }
        .checkout-direct .tg-embed-body .tg-card {
            padding: 24px 22px !important;
            border-radius: 16px !important;
        }
        .checkout-direct .tg-embed-body .tg-sticky-cta {
            position: sticky !important;
            left: auto !important;
            right: auto !important;
            bottom: 0 !important;
            padding: 14px 0 calc(14px + env(safe-area-inset-bottom, 0px)) !important;
            border-top: none !important;
            box-shadow: none !important;
            background: transparent !important;
        }
        html[data-theme="light"] .checkout-direct .tg-embed-body .tg-sticky-cta,
        html:not([data-theme="light"]) .checkout-direct .tg-embed-body .tg-sticky-cta {
            background: transparent !important;
        }
    }
    @media (min-width: 1024px) {
        .checkout-direct .tg-embed-body .tg-main {
            gap: 20px !important;
        }
    }
    @media (max-width: 640px) {
        .checkout-shell { margin-top: 10px !important; }
        .checkout-direct .tg-embed-body .tg-main {
            gap: 14px !important;
        }
    }
    /* Latar halaman kontras agar celah antar kartu terlihat jelas */
    html[data-theme="light"] body {
        background: #eef2f7 !important;
        background-color: #eef2f7 !important;
    }

    /* Light theme — teks biru accent → hitam */
    html[data-theme="light"] .sg-brand-text strong,
    html[data-theme="light"] .sg-nav-menu-link.is-active,
    html[data-theme="light"] .product-topbar .crumb,
    html[data-theme="light"] .product-topbar .crumb a,
    html[data-theme="light"] .product-headline-text small,
    html[data-theme="light"] .product-headline-meta,
    html[data-theme="light"] .product-headline-meta i,
    html[data-theme="light"] .tg-page-info,
    html[data-theme="light"] .tg-item .i-price,
    html[data-theme="light"] .tg-item.sel .i-name,
    html[data-theme="light"] .tg-item.sel .i-price,
    html[data-theme="light"] a:not(.sg-btn-ghost):not(.sg-nav-cta-btn):not(.tg-step) {
        color: #000000 !important;
    }
    html[data-theme="light"] .tg-step,
    html[data-theme="light"] .sg-card-title .tg-step {
        color: #ffffff !important;
    }

    /* Footer — light theme */
    html[data-theme="light"] .tg-footer,
    html[data-theme="light"] .sg-footer {
        background: #ffffff !important;
        border-top: 1px solid #e8ecef !important;
        color: #64748b !important;
    }
    html[data-theme="light"] .sg-footer h5 {
        color: #000000 !important;
    }
    html[data-theme="light"] .sg-footer-brand .sg-brand-text strong,
    html[data-theme="light"] .sg-footer-brand .sg-brand-text > span {
        color: #000000 !important;
    }
    html[data-theme="light"] .sg-footer-brand .sg-brand-text strong {
        color: #1a86ff !important;
    }
    html[data-theme="light"] .sg-footer-brand p {
        color: #64748b !important;
    }
    html[data-theme="light"] .sg-footer-list a {
        color: #475569 !important;
    }
    html[data-theme="light"] .sg-footer-list a i,
    html[data-theme="light"] .sg-footer-cat-link i {
        color: #1a86ff !important;
    }
    html[data-theme="light"] .sg-footer-list a:hover {
        color: #000000 !important;
    }
    html[data-theme="light"] .sg-footer hr {
        border-top-color: #e8ecef !important;
    }
    html[data-theme="light"] .sg-footer-bottom p,
    html[data-theme="light"] .sg-footer-disclaimer {
        color: #64748b !important;
    }
    html[data-theme="light"] .sg-footer-badges span {
        background: rgba(0, 0, 0, .06) !important;
        color: #000000 !important;
        border-color: #e2e8f0 !important;
    }
    html[data-theme="light"] .sg-footer-badges span i {
        color: #1a86ff !important;
    }

    /* FINAL FIX — Input text visibility in LIGHT theme */
    html[data-theme="light"] input,
    html[data-theme="light"] textarea,
    html[data-theme="light"] select,
    html[data-theme="light"] .tg-input,
    html[data-theme="light"] .form-control,
    html[data-theme="light"] .form-select {
        color: #0a0b0d !important;
        -webkit-text-fill-color: #0a0b0d !important;
        caret-color: #1a86ff !important;
    }
    html[data-theme="light"] input::placeholder,
    html[data-theme="light"] textarea::placeholder,
    html[data-theme="light"] .tg-input::placeholder,
    html[data-theme="light"] .form-control::placeholder {
        color: #94a3b8 !important;
        -webkit-text-fill-color: #94a3b8 !important;
        opacity: 1 !important;
    }
    html[data-theme="light"] input:-webkit-autofill,
    html[data-theme="light"] input:-webkit-autofill:hover,
    html[data-theme="light"] input:-webkit-autofill:focus,
    html[data-theme="light"] textarea:-webkit-autofill {
        -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
        -webkit-text-fill-color: #0a0b0d !important;
        caret-color: #1a86ff !important;
    }
    
