/* ==========================================================================
   xBStore — BangJeff theme overrides (dark navy + gold, VeinStore direction)
   Loaded AFTER bj-core.css / bj-home.css so these win.
   ========================================================================== */

/*
 * Satu font untuk seluruh FE.
 * Stack system-ui: TIDAK load Google Fonts → tidak ada flash font saat refresh (FOUT).
 * Semua heading/body/button pakai keluarga yang sama.
 */
:root {
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --font-bjcredits: var(--font-sans);
    --font-chakra: var(--font-sans);
    --font-site: var(--font-sans);
}

/* Paksa seragam — jangan ikut @font-face Next.js di bj-core yang 404 */
html {
    font-family: var(--font-sans);
}
html body,
body,
body.bjx-body-shell,
body.bg-background,
body.es-user {
    font-family: var(--font-sans) !important;
}
/* Heading, tombol, input, teks UI → satu keluarga */
h1, h2, h3, h4, h5, h6,
button, input, select, textarea, label,
p, span, a, li, td, th, small, strong, em, div,
.font-sans, .font-chakra, .font-bjcredits,
.es-heading, .bjx-page-title, .bjx-sec-title,
.bjx-cd-box, .bjx-cd-sep,
.xb-nav-link, .bjx-tab, .bjx-btn-gold, .bjx-btn-outline,
.di-page, .bjx-iv-page, .xb-page, .xb-st {
    font-family: var(--font-sans) !important;
}
/* Tailwind font-* utility yang sering muncul di Blade */
.font-chakra,
[class*="font-chakra"] {
    font-family: var(--font-sans) !important;
}
/* Icon fonts — jangan ikut override body */
.fa, .fas { font-family: "Font Awesome 5 Free", FontAwesome !important; font-weight: 900; }
.far { font-family: "Font Awesome 5 Free", FontAwesome !important; font-weight: 400; }
.fab { font-family: "Font Awesome 5 Brands", FontAwesome !important; }
.bi, [class^="bi-"], [class*=" bi-"] { font-family: "bootstrap-icons" !important; }
.uil { font-family: unicons !important; }

/* --- Theme recolor: modern dark + soft gold ------------------------------ */
:root {
    /* fixed navbar height (content offset) */
    --bjx-nav-h: 3.5rem; /* h-14 */

    /* section backgrounds — slightly deeper */
    --flashsale-background: 224 42% 10%;
    --flashsale-foreground: 210 20% 96%;
    --recommendation-background: 224 40% 9%;
    --recommendation-foreground: 210 20% 96%;
    --recommendation-image: none;
    --popular-background: 224 40% 9%;
    --popular-foreground: 210 20% 96%;
    --popular-image: none;

    /* order page variant card */
    --order-variant: 224 28% 13%;
    --order-variant-foreground: 210 20% 96%;
    --order-variant-image: none;

    /* payment cards */
    --payment-card-background: 224 30% 12%;
    --payment-card-foreground: 210 20% 96%;
    --payment-category-background: 224 32% 10%;
    --payment-category-foreground: 210 20% 96%;
    --payment-category-header: 224 45% 7%;
    --payment-category-footer: 224 30% 12%;

    /* auth */
    --auth-color: 44 96% 56%;
    --auth-image: none;

    /* core palette — darker modern charcoal-navy */
    --background: 224 48% 5%;
    --foreground: 210 20% 96%;
    --card: 224 38% 9%;
    --card-foreground: 210 20% 96%;
    --popover: 224 40% 8%;
    --popover-foreground: 210 20% 96%;
    --primary: 44 96% 55%;
    --primary-foreground: 30 20% 8%;
    --secondary: 224 32% 11%;
    --secondary-foreground: 210 20% 96%;
    --muted: 224 26% 13%;
    --muted-foreground: 215 14% 62%;
    --accent: 224 28% 14%;
    --accent-foreground: 210 20% 96%;
    --success: 142 65% 42%;
    --success-foreground: 140 40% 96%;
    --warning: 42 96% 52%;
    --warning-foreground: 30 20% 8%;
    --info: 200 90% 52%;
    --info-foreground: 204 100% 97%;
    --destructive: 0 72% 55%;
    --destructive-foreground: 0 0% 98%;
    --border: 224 18% 16%;
    --input: 224 22% 14%;
    --ring: 44 96% 55%;
    --radius: 0.85rem;

    /* gold CTA — diagonal modern (not vertical stripe-y) */
    --button-gradient-active: true;
    --button-gradient-dir: 135deg;
    --button-gradient-from: #c98900;
    --gradien-from-stop: 0%;
    --button-gradient-via: #f0b429;
    --button-gradient-via-stop: 48%;
    --button-gradient-to: #ffe066;
    --button-gradient-to-stop: 100%;
    --button-gradient-theme: linear-gradient(135deg, #c98900 0%, #f0b429 48%, #ffe066 100%);

    --gradient-theme: linear-gradient(180deg, hsl(224 48% 5%) 0%, hsl(224 42% 7%) 55%, hsl(224 48% 5%) 100%);
}
@media (min-width: 768px) {
    :root { --bjx-nav-h: 4rem; } /* h-16 */
}

.dark {
    --background: 224 48% 5%;
    --foreground: 210 20% 96%;
    --card: 224 38% 9%;
    --card-foreground: 210 20% 96%;
    --popover: 224 40% 8%;
    --popover-foreground: 210 20% 96%;
    --primary: 44 96% 55%;
    --primary-foreground: 30 20% 8%;
    --secondary: 224 32% 11%;
    --secondary-foreground: 210 20% 96%;
    --muted: 224 26% 13%;
    --muted-foreground: 215 14% 62%;
    --accent: 224 28% 14%;
    --accent-foreground: 210 20% 96%;
    --success: 142 65% 42%;
    --success-foreground: 140 40% 96%;
    --warning: 42 96% 52%;
    --warning-foreground: 30 20% 8%;
    --info: 200 90% 52%;
    --info-foreground: 204 100% 97%;
    --destructive: 0 72% 55%;
    --destructive-foreground: 0 0% 98%;
    --border: 224 18% 16%;
    --input: 224 22% 14%;
    --ring: 44 96% 55%;
}

/* --- Safety: avoid horizontal scroll without killing fixed/sticky -------- */
html { overflow-x: clip; height: 100%; }
body { overflow-x: clip; }

/* Sticky footer shell — footer always di bawah viewport */
body.bjx-body-shell {
    min-height: 100%;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}
.bjx-page-shell {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    /* ruang di bawah fixed navbar */
    padding-top: var(--bjx-nav-h);
}
.bjx-page-shell > main,
.bjx-page-shell > header + main,
main.relative.bg-background {
    flex: 1 0 auto;
}
/* Footer sibling is inside content yield (after main) — shell grows, footer sticks bottom */
.bjx-page-shell footer,
.bjx-site-footer {
    margin-top: auto;
    flex-shrink: 0;
}

/* Body atmosphere — darker modern (soft blue + gold dust) */
body.bg-background {
    background-color: #060a12 !important;
    background-image:
        radial-gradient(ellipse 1100px 520px at 15% -8%, rgba(30, 90, 180, 0.22), transparent 58%),
        radial-gradient(ellipse 800px 420px at 90% 0%, rgba(255, 180, 40, 0.06), transparent 55%),
        radial-gradient(ellipse 700px 500px at 50% 100%, rgba(20, 50, 100, 0.12), transparent 60%),
        linear-gradient(180deg, #060a12 0%, #0a1220 50%, #060a12 100%) !important;
    background-attachment: fixed;
    min-height: 100vh;
    color: hsl(var(--foreground));
}
body.bg-background::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.22;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.045) 1px, transparent 0);
    background-size: 26px 26px;
}

/* ==========================================================================
   Custom .bjx- components (utilities missing from bangjeff's compiled CSS)
   ========================================================================== */

/* Unified gold CTA — same look for <a> and <button> */
.bjx-btn-gold,
a.bjx-btn-gold,
button.bjx-btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background-image: var(--button-gradient-theme) !important;
    background-color: #f0b429 !important;
    color: #1a1408 !important;
    font-weight: 600;
    border: 0 !important;
    border-radius: 0.65rem;
    box-shadow: 0 6px 18px rgba(240, 180, 41, 0.22);
    text-decoration: none !important;
    cursor: pointer;
    transition: filter .18s ease, transform .18s ease, box-shadow .18s ease;
}
.bjx-btn-gold:hover,
a.bjx-btn-gold:hover,
button.bjx-btn-gold:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(240, 180, 41, 0.3);
    color: #1a1408 !important;
}
.bjx-btn-gold:active {
    transform: translateY(0);
    filter: brightness(0.98);
}
.bjx-btn-gold:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    filter: none;
}
/* Outline secondary (Masuk, secondary actions) */
.bjx-btn-outline,
a.bjx-btn-outline,
button.bjx-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.03) !important;
    color: hsl(var(--foreground)) !important;
    border: 1px solid rgba(255, 210, 100, 0.28) !important;
    border-radius: 0.65rem;
    font-weight: 500;
    text-decoration: none !important;
    cursor: pointer;
    transition: color .15s, border-color .15s, background .15s;
}
.bjx-btn-outline:hover {
    border-color: hsl(var(--primary) / 0.55) !important;
    color: hsl(var(--primary)) !important;
    background: hsl(var(--primary) / 0.08) !important;
}
/* Bangjeff primary solid → gold CTA (selaras) */
.bg-primary.text-primary-foreground,
button.bg-primary,
a.bg-primary {
    background-image: var(--button-gradient-theme) !important;
    background-color: #f0b429 !important;
    color: #1a1408 !important;
}

/* --- Hero banner carousel (standar Barongsay/toko: 1920×720) --------------
 * Root cause crop desktop: bjmain punya img.bjx-slide-img { max-height:280px;
 * object-fit:cover } — dihapus. Mobile lolos karena tinggi alami < 280px.
 */
.bjx-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid hsl(var(--border) / .4);
    background: #0a1220;
    width: 100%;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
    cursor: grab;
}
.bjx-carousel:active { cursor: grabbing; }
.bjx-carousel img { -webkit-user-drag: none; user-drag: none; pointer-events: none; }
.bjx-slide {
    display: none;
    width: 100%;
    margin: 0;
    line-height: 0;
}
.bjx-slide.active {
    display: block;
    animation: bjxFade .5s ease;
}
@keyframes bjxFade { from { opacity: .35; } to { opacity: 1; } }
/* img. class — spesifisitas tinggi + !important lawan sisa override lama */
.bjx-slide-img,
img.bjx-slide-img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: unset !important;
    display: block !important;
}
.bjx-dots {
    position: absolute;
    bottom: .75rem;
    left: 0; right: 0;
    display: flex;
    justify-content: center;
    gap: .5rem;
    z-index: 10;
}
.bjx-dot {
    width: 8px; height: 8px;
    min-width: 8px; min-height: 8px;
    border-radius: 9999px;
    border: 0;
    padding: 0;
    background: hsl(var(--foreground) / .35);
    cursor: pointer;
    transition: background .2s ease, width .2s ease;
}
.bjx-dot.active { background: hsl(var(--primary)); width: 20px; }

/* --- Game card ------------------------------------------------------------ */
.bjx-game-card:hover {
    transform: translateY(-.25rem);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / .5), 0 8px 10px -6px rgb(0 0 0 / .4);
}
.bjx-game-card-img {
    /* Barongsay dump: aspect-[4/6] */
    aspect-ratio: 4 / 6;
    width: 100%;
    object-fit: cover;
    display: block;
}
.bjx-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: .55rem .6rem .65rem;
    background: linear-gradient(to top, rgb(0 0 0 / .92) 0%, rgb(0 0 0 / .45) 42%, transparent 72%);
}
.bjx-card-overlay .bjx-line-clamp-2 {
    font-size: .75rem; /* compact seperti Oura/Barong */
    font-weight: 600;
    line-height: 1.25;
}
.bjx-card-overlay .bjx-sub {
    font-size: .65rem;
    margin-top: .1rem;
}
.bjx-line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bjx-line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bjx-sub { color: rgb(255 255 255 / .7); }

/* --- Judul section: scale Barongsay (text-lg + text-xs), tetap navy/gold --- */
.bjx-section-title {
    margin: 0;
    font-size: 1.125rem; /* text-lg */
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    line-height: 1.625;
    color: hsl(var(--foreground));
}
.bjx-section-sub {
    margin: .2rem 0 0;
    padding-left: .35rem; /* mirip pl-6 vibe, lebih subtle di dark UI */
    font-size: .75rem; /* text-xs */
    font-weight: 500;
    line-height: 1.4;
    color: #9aa6b2;
}

/* --- Populer: list card ~96px (Barongsay h-[96px]) ------------------------ */
.bjx-pop-section {
    margin-bottom: .35rem;
}
.bjx-pop-head {
    margin-bottom: 1.05rem;
}
@media (min-width: 768px) {
    .bjx-pop-head { margin-bottom: 1.15rem; }
}
/* Mobile: 2 kolom. Desktop: 3 kolom (sama Barongsay popular grid) */
.bjx-pop-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem; /* gap-4 */
}
@media (min-width: 768px) {
    .bjx-pop-grid { gap: 1rem; }
}
@media (min-width: 1024px) {
    .bjx-pop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
}
.bjx-pop-card {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-height: 5.5rem; /* ~88–96px */
    height: 6rem; /* 96px */
    min-width: 0;
    padding: .5rem .65rem .5rem .5rem;
    border-radius: .75rem; /* rounded-lg */
    text-decoration: none !important;
    outline: none;
    border: 1px solid rgba(255, 255, 255, .06);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, filter .18s ease;
    position: relative;
    overflow: hidden;
}
@media (min-width: 768px) {
    .bjx-pop-card {
        gap: .7rem;
        min-height: 6rem;
        height: 6rem;
        padding: .55rem .85rem .55rem .55rem;
        border-radius: .75rem;
        box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
    }
}
.bjx-pop-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 6px 6px;
    opacity: .32;
    pointer-events: none;
}
@media (min-width: 768px) {
    .bjx-pop-card::after { background-size: 7px 7px; opacity: .35; }
}
.bjx-pop-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, .28);
    border-color: rgba(240, 180, 41, .28);
    filter: brightness(1.06);
}
.bjx-pop-logo {
    position: relative;
    z-index: 1;
    width: 3.25rem;
    height: 3.25rem;
    min-width: 3.25rem;
    border-radius: .65rem;
    object-fit: cover;
    background: rgba(0, 0, 0, .25);
    box-shadow: 0 3px 10px rgba(0, 0, 0, .22);
}
@media (min-width: 768px) {
    .bjx-pop-logo {
        width: 3.5rem;
        height: 3.5rem;
        min-width: 3.5rem;
        border-radius: .7rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
    }
}
.bjx-pop-text {
    position: relative;
    z-index: 1;
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .1rem;
}
.bjx-pop-name {
    font-size: .8125rem; /* ~13px */
    font-weight: 600;
    color: #fff;
    line-height: 1.25;
    letter-spacing: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (min-width: 768px) {
    .bjx-pop-name { font-size: .875rem; line-height: 1.25; } /* text-sm */
}
.bjx-pop-sub {
    font-size: .6875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .7);
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (min-width: 768px) {
    .bjx-pop-sub { font-size: .75rem; color: rgba(255, 255, 255, .72); }
}
/* Soft tinted backgrounds (cycle) — dark-navy friendly */
.bjx-pop-card:nth-child(6n+1) {
    background: linear-gradient(115deg, rgba(180, 90, 70, .38) 0%, rgba(40, 22, 28, .92) 55%, rgba(18, 14, 22, .96) 100%);
}
.bjx-pop-card:nth-child(6n+2) {
    background: linear-gradient(115deg, rgba(40, 110, 70, .36) 0%, rgba(16, 32, 28, .92) 55%, rgba(12, 18, 20, .96) 100%);
}
.bjx-pop-card:nth-child(6n+3) {
    background: linear-gradient(115deg, rgba(50, 70, 140, .4) 0%, rgba(18, 24, 48, .94) 55%, rgba(12, 16, 30, .97) 100%);
}
.bjx-pop-card:nth-child(6n+4) {
    background: linear-gradient(115deg, rgba(90, 55, 130, .4) 0%, rgba(28, 18, 42, .94) 55%, rgba(16, 12, 28, .97) 100%);
}
.bjx-pop-card:nth-child(6n+5) {
    background: linear-gradient(115deg, rgba(150, 100, 40, .36) 0%, rgba(36, 28, 16, .93) 55%, rgba(18, 16, 12, .97) 100%);
}
.bjx-pop-card:nth-child(6n+6) {
    background: linear-gradient(115deg, rgba(40, 95, 130, .38) 0%, rgba(16, 28, 40, .94) 55%, rgba(12, 16, 24, .97) 100%);
}

/* --- Flash sale section (home) — compact --------------------------------- */
.bjx-fs-section {
    position: relative;
    border-radius: 0.85rem;
    padding: 0.7rem 0.75rem 0.8rem;
    background:
        radial-gradient(700px 200px at 8% -30%, rgba(255, 80, 60, 0.1), transparent 55%),
        radial-gradient(500px 180px at 95% 0%, rgba(240, 180, 41, 0.08), transparent 55%),
        linear-gradient(165deg, rgba(16, 22, 33, 0.96) 0%, rgba(12, 16, 26, 0.96) 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}
@media (min-width: 768px) {
    .bjx-fs-section { padding: 0.8rem 0.9rem 0.9rem; }
}
.bjx-fs-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem 0.75rem;
    margin-bottom: 0.6rem;
}
.bjx-fs-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}
/* .bjx-fs-title diganti .bjx-section-title (seragam semua section) */
.bjx-fs-timer {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
}
.bjx-fs-timer-boxes {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}
.bjx-cd-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    min-height: 1.55rem;
    padding: 0.1rem 0.25rem;
    border-radius: 0.35rem;
    border: 1px solid rgba(240, 180, 41, 0.25);
    background: rgba(14, 19, 26, 0.9);
    color: #f0b429;
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: 0.78rem;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.bjx-cd-sep {
    color: #f0b429;
    font-weight: 800;
    font-size: 0.78rem;
    line-height: 1;
}
.bjx-fs-timer.is-ended .bjx-cd-box {
    color: #ff6b6b;
    border-color: rgba(255, 107, 107, 0.35);
}

/* Horizontal product track + auto-slide */
.bjx-fs-slider {
    position: relative;
}
.bjx-fs-track {
    display: flex;
    align-items: stretch; /* kartu sama tinggi → CTA sejajar */
    gap: 0.55rem;
    overflow-x: auto;
    padding-bottom: 0.1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}
@media (min-width: 768px) {
    .bjx-fs-track { gap: 0.65rem; }
}
.bjx-fs-nav {
    position: absolute;
    top: 38%;
    transform: translateY(-50%);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(12, 16, 26, 0.88);
    color: #f0b429;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.bjx-fs-nav svg { width: 12px; height: 12px; }
.bjx-fs-nav:hover {
    background: rgba(240, 180, 41, 0.16);
    border-color: rgba(240, 180, 41, 0.4);
}
.bjx-fs-nav:active { transform: translateY(-50%) scale(0.96); }
.bjx-fs-prev { left: 0.1rem; }
.bjx-fs-next { right: 0.1rem; }
.bjx-fs-slider.has-nav .bjx-fs-track {
    padding-left: 0.1rem;
    padding-right: 0.1rem;
}
.bjx-fs-card {
    flex: 0 0 auto;
    width: min(7.75rem, 42vw);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    height: auto;
    align-self: stretch;
    border-radius: 0.65rem;
    overflow: hidden;
    background: rgba(16, 22, 33, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.07);
    text-decoration: none !important;
    color: inherit;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
@media (min-width: 640px) {
    .bjx-fs-card { width: 8.25rem; }
}
.bjx-fs-card:hover {
    transform: translateY(-2px);
    border-color: rgba(240, 180, 41, 0.35);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}
.bjx-fs-img-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    background: #0e131a;
    overflow: hidden;
}
.bjx-fs-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.bjx-fs-img-ph {
    background: linear-gradient(135deg, #151c28, #0e131a);
}
.bjx-fs-off {
    position: absolute;
    top: 0.3rem;
    left: 0.3rem;
    padding: 0.1rem 0.32rem;
    border-radius: 999px;
    font-size: 0.58rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #e11d48, #f97316);
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.3);
}
/*
 * Body: kolom flex. Nama di-clamp 2 baris dengan tinggi tetap.
 * CTA pakai margin-top:auto → selalu nempel bawah (sejajar antar kartu).
 */
.bjx-fs-body {
    padding: 0.4rem 0.45rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    flex: 1 1 auto;
    min-height: 0;
}
.bjx-fs-game {
    font-size: 0.58rem;
    font-weight: 600;
    color: #9aa6b2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 0.85rem; /* slot tetap walau kosong */
    line-height: 1.2;
}
.bjx-fs-name {
    font-size: 0.72rem;
    font-weight: 700;
    color: #e6edf6;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* selalu 2 baris → tombol tidak naik/turun karena judul pendek/panjang */
    height: calc(0.72rem * 1.25 * 2);
    min-height: calc(0.72rem * 1.25 * 2);
}
.bjx-fs-prices {
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 0.15rem 0.3rem;
    margin-top: 0.15rem;
    min-height: 1.05rem;
    overflow: hidden;
}
.bjx-fs-now {
    font-size: 0.78rem;
    font-weight: 800;
    color: #f0b429;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.bjx-fs-was {
    font-size: 0.62rem;
    color: #9aa6b2;
    text-decoration: line-through;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.bjx-fs-cta {
    margin-top: auto; /* kunci sejajar di dasar kartu */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 1.45rem;
    border-radius: 0.4rem;
    font-size: 0.62rem;
    font-weight: 700;
    color: #1a1400;
    background: linear-gradient(135deg, #c98900, #f0b429);
}
.bjx-fs-card:hover .bjx-fs-cta { filter: brightness(1.06); }

/* --- Katalog tabs (seragam hover/active dengan navbar .xb-nav-link) ------- */
.bjx-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 36px;
    padding: 0.45rem 0.9rem;
    border-radius: 0.65rem;
    border: 0;
    background: transparent;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    outline: none;
    text-decoration: none;
    transition: color .15s ease, background .15s ease;
}
.bjx-tab:hover {
    color: hsl(var(--primary));
    background: hsl(var(--primary) / .08);
}
.bjx-tab.active {
    color: hsl(var(--primary));
    background: hsl(var(--primary) / .12);
    font-weight: 600;
    background-image: none;
}
.bjx-pane { display: none; }
.bjx-pane.active { display: block; }

/* --- Fixed glass navbar — SELALU nempel saat scroll ----------------------- */
.bjx-site-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    width: 100%;
    height: var(--bjx-nav-h);
    flex: none;
    isolation: isolate;
    /* glass gelap modern */
    background:
        linear-gradient(
            105deg,
            rgba(6, 12, 28, 0.92) 0%,
            rgba(10, 28, 58, 0.88) 50%,
            rgba(8, 18, 40, 0.9) 100%
        );
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    border-bottom: 1px solid rgba(100, 140, 200, 0.14);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 8px 28px rgba(0, 0, 0, 0.35);
    transition:
        background 0.28s ease,
        border-color 0.28s ease,
        box-shadow 0.28s ease;
}
.bjx-site-header > .container {
    height: 100%;
}
/* Logo navbar: cegah flash ukuran penuh sebelum CSS ready */
.bjx-site-header img.bjx-nav-logo,
.bjx-site-header a.shrink-0 > img {
    height: 2rem;
    width: auto;
    max-height: 2.25rem;
    max-width: 11rem;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}
@media (min-width: 768px) {
    .bjx-site-header img.bjx-nav-logo,
    .bjx-site-header a.shrink-0 > img {
        height: 2.25rem;
        max-height: 2.25rem;
    }
}
.bjx-site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 200, 60, 0.22) 22%,
        rgba(80, 160, 255, 0.35) 50%,
        rgba(255, 200, 60, 0.22) 78%,
        transparent 100%
    );
    pointer-events: none;
}
/* saat scroll: glass lebih tipis, konten lewat */
.bjx-site-header.is-scrolled {
    background:
        linear-gradient(
            105deg,
            rgba(5, 10, 22, 0.78) 0%,
            rgba(8, 26, 56, 0.7) 50%,
            rgba(6, 14, 32, 0.76) 100%
        );
    border-bottom-color: rgba(255, 200, 60, 0.16);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.05) inset,
        0 12px 40px rgba(0, 6, 20, 0.5);
}
.bjx-site-header form[role="search"] input {
    background: rgba(4, 10, 22, 0.55) !important;
    border-color: rgba(120, 160, 220, 0.2) !important;
    color: hsl(var(--foreground));
}
.bjx-site-header form[role="search"] input:focus {
    border-color: hsl(var(--primary) / 0.55) !important;
    box-shadow: 0 0 0 1px hsl(var(--primary) / 0.25);
}
.bjx-site-header #bjxHamburger {
    background: rgba(4, 10, 22, 0.45);
    border-color: rgba(120, 160, 220, 0.22);
}
/* dropdown di atas fixed bar */
.bjx-site-header .bjx-dropdown {
    z-index: 110;
}

/* --- Navbar dropdowns ----------------------------------------------------- */
.bjx-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + .5rem);
    min-width: 13rem;
    border-radius: .75rem;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--popover));
    color: hsl(var(--popover-foreground));
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / .5), 0 8px 10px -6px rgb(0 0 0 / .4);
    padding: .375rem;
    z-index: 50;
}
.bjx-dropdown.open { display: block; }
.bjx-dropdown-left { left: 0; right: auto; }
.bjx-dropdown-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    width: 100%;
    padding: .5rem .75rem;
    border-radius: .5rem;
    font-size: .875rem;
    color: hsl(var(--popover-foreground));
    background: transparent;
    border: 0;
    cursor: pointer;
    text-align: left;
    transition: background .15s ease, color .15s ease;
}
.bjx-dropdown-item:hover { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); }

/* --- Mobile drawer (di atas fixed navbar z-index 100) --------------------- */
.bjx-drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgb(0 0 0 / .65);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}
.bjx-drawer-overlay.open { opacity: 1; visibility: visible; }
.bjx-drawer {
    position: fixed;
    top: 0; bottom: 0; right: 0;
    z-index: 120;
    width: min(20rem, 85vw);
    background: hsl(var(--secondary));
    border-left: 1px solid hsl(var(--border) / .4);
    transform: translateX(100%);
    transition: transform .3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.bjx-drawer.open { transform: translateX(0); }
.bjx-drawer-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-height: 44px;
    padding: .5rem 1rem;
    border-radius: .5rem;
    font-size: .875rem;
    font-weight: 500;
    color: hsl(var(--secondary-foreground));
    transition: background .15s ease, color .15s ease;
}
.bjx-drawer-link:hover { background: hsl(var(--accent)); color: hsl(var(--primary)); }
.bjx-drawer-link.active { color: hsl(var(--primary)); }

/* --- Popup modal (replaces Bootstrap modal) ------------------------------- */
.bjx-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 130;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgb(0 0 0 / .7);
    backdrop-filter: blur(4px);
}
.bjx-modal-overlay.open { display: flex; }
.bjx-modal {
    width: 100%;
    max-width: 28rem;
    border-radius: 1rem;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--card));
    color: hsl(var(--card-foreground));
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / .6);
    padding: 1rem;
}

/* --- Footer payment pills (scoped — jangan bentrok dengan order pay) ---- */
.bjx-pay-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem;
}
.bjx-pay-grid .bjx-pay-item {
    background: #fff;
    border-radius: .5rem;
    padding: .25rem .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
}
.bjx-pay-grid .bjx-pay-item img { max-height: 22px; width: auto; object-fit: contain; }

/* ==========================================================================
   Order page (bangjeff product page adaptation)
   ========================================================================== */

/* native widgets dark */
:root { color-scheme: dark; }

/* bangjeff's .bg-title-product is near-white (secondary-foreground); navy it */
.bg-title-product {
    background-color: hsl(var(--card));
    color: hsl(var(--card-foreground));
}

/* product thumbnail gold ring */
.bjx-thumb {
    border: 3px solid hsl(var(--primary) / .45);
    background: hsl(var(--muted));
}

/* Order section cards — soft shadow (Barongsay rounded-xl card feel) */
.bjx-order-card {
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}
.bjx-order-step {
    font-size: .875rem;
}

/* single-class form input — Barongsay h-9/h-10 scale */
.bjx-input {
    display: block;
    width: 100%;
    min-height: 2.5rem; /* h-10 */
    padding: .45rem .8rem;
    border-radius: .65rem;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--secondary));
    color: hsl(var(--foreground));
    font-size: .8125rem; /* ~13px, compact */
    line-height: 1.4;
    outline: none;
    appearance: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.bjx-input::placeholder { color: hsl(var(--muted-foreground) / .6); }
.bjx-input:focus { border-color: hsl(var(--primary)); box-shadow: 0 0 0 1px hsl(var(--ring)); }
textarea.bjx-input { min-height: 5.5rem; resize: vertical; }
textarea.bjx-input-codes {
    min-height: 8.5rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.875rem;
    line-height: 1.45;
    letter-spacing: 0.02em;
}
select.bjx-input {
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 1rem;
}

/* nominal groups (Diamond / Pass / Bundle) */
.bjx-nominal-groups { width: 100%; }
.bjx-nominal-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .75rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid hsl(var(--border) / .45);
}
.bjx-nominal-group-title {
    margin: 0;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: hsl(var(--primary));
}
.bjx-nominal-group-count {
    flex-shrink: 0;
    font-size: .6875rem;
    font-weight: 600;
    color: hsl(var(--muted-foreground));
    background: hsl(var(--secondary));
    border: 1px solid hsl(var(--border) / .5);
    border-radius: 9999px;
    padding: .1rem .5rem;
}

/* nominal radio cards */
.bjx-nominal { position: relative; }
.bjx-nominal > input { position: absolute; opacity: 0; pointer-events: none; }
.bjx-nominal > label {
    display: block;
    height: 100%;
    cursor: pointer;
    background: hsl(var(--secondary));
    border: 1px solid hsl(var(--border) / .5);
    border-radius: .75rem;
    padding: .65rem .7rem;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.bjx-nominal > label .text-sm {
    font-size: .8125rem;
}
.bjx-nominal > label .font-bold {
    font-size: .8125rem;
}
.bjx-nominal > label:hover { border-color: hsl(var(--primary) / .5); }
.bjx-nominal > input:checked + label {
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 1px hsl(var(--ring));
    background: linear-gradient(180deg, hsl(var(--primary) / .12), hsl(var(--primary) / .03));
}
.bjx-nominal > input:focus-visible + label { box-shadow: 0 0 0 2px hsl(var(--ring)); }

/* flash sale badge on nominal */
.bjx-flash-badge {
    display: inline-block;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .04em;
    padding: .15rem .45rem;
    border-radius: 9999px;
    background: hsl(var(--destructive) / .15);
    color: hsl(var(--destructive));
    margin-bottom: .3rem;
}

/* payment: SALDO baris penuh + grid kotak kecil di dalam grup (Gopay, Dana, …) */
#pembayaran .bjx-pay-item,
.bjx-pay-list .bjx-pay-item {
    position: relative;
    margin: 0;
    background: transparent !important;
    padding: 0 !important;
    min-height: 0 !important;
    display: block !important;
}
#pembayaran .bjx-pay-item > input,
.bjx-pay-list .bjx-pay-item > input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* SALDO — full width row */
#pembayaran .bjx-pay-item.bjx-pay-saldo > label,
.bjx-pay-list .bjx-pay-item.bjx-pay-saldo > label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    width: 100%;
    min-height: 52px;
    background: hsl(var(--card) / .55) !important;
    border: 1px solid hsl(var(--border) / .45);
    border-radius: .75rem;
    padding: .7rem .9rem;
    cursor: pointer;
    color: hsl(var(--card-foreground));
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
#pembayaran .bjx-pay-item.bjx-pay-saldo > label:hover {
    border-color: hsl(var(--primary) / .55);
    background: hsl(var(--primary) / .06) !important;
}
#pembayaran .bjx-pay-item.bjx-pay-saldo > input:checked + label {
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 1px hsl(var(--primary) / .35);
    background: hsl(var(--primary) / .1) !important;
}

/* Grid metode: 2 kolom + animasi buka/tutup (max-height) */
.bjx-acc-body.bjx-pay-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
    background: transparent;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 .65rem;
    pointer-events: none;
    transition:
        max-height .38s cubic-bezier(.4, 0, .2, 1),
        opacity .28s ease,
        padding .32s ease;
}
@media (min-width: 640px) {
    .bjx-acc-body.bjx-pay-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .bjx-acc-body.bjx-pay-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.bjx-acc-body.bjx-pay-tiles.open {
    max-height: 48rem; /* cukup untuk banyak metode */
    opacity: 1;
    padding: .65rem;
    pointer-events: auto;
}

/* Card metode: logo kiri (kotak) + nama & harga kanan */
#pembayaran .bjx-pay-item.bjx-pay-tile > label,
.bjx-pay-list .bjx-pay-item.bjx-pay-tile > label {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: .55rem;
    width: 100%;
    min-height: 3.35rem;
    height: 100%;
    text-align: left;
    background: hsl(var(--card) / .55) !important;
    border: 1px solid hsl(var(--border) / .4);
    border-radius: .7rem;
    padding: .5rem .6rem;
    cursor: pointer;
    color: hsl(var(--card-foreground));
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
#pembayaran .bjx-pay-item.bjx-pay-tile > label:hover {
    border-color: hsl(var(--primary) / .55);
    background: hsl(var(--primary) / .06) !important;
}
#pembayaran .bjx-pay-item.bjx-pay-tile > input:checked + label {
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 1px hsl(var(--primary) / .4);
    background: hsl(var(--primary) / .12) !important;
}
#pembayaran .bjx-pay-tile .bjx-pay-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    flex-shrink: 0;
    border-radius: .5rem;
    background: #fff;
    border: 1px solid hsl(var(--border) / .25);
    overflow: hidden;
    padding: .3rem;
}
#pembayaran .bjx-pay-tile .bjx-pay-logo img {
    max-height: 1.5rem;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    background: transparent !important;
    padding: 0 !important;
}
#pembayaran .bjx-pay-tile .bjx-pay-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: .15rem;
    min-width: 0;
    flex: 1;
}
#pembayaran .bjx-pay-tile strong {
    display: block;
    width: 100%;
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.25;
    color: hsl(var(--card-foreground));
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#pembayaran .bjx-pay-tile .bjx-pay-price {
    display: block;
    width: 100%;
    font-size: .72rem;
    font-weight: 700;
    color: hsl(var(--primary));
    line-height: 1.2;
    min-height: .85rem;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#pembayaran .bjx-pay-tile small { display: none; }

/* SALDO logo badge */
#pembayaran .bjx-pay-saldo .bjx-pay-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 2rem;
    flex-shrink: 0;
    border-radius: .45rem;
    background: hsl(var(--secondary));
    border: 1px solid hsl(var(--border) / .4);
}
#pembayaran .bjx-pay-saldo strong {
    font-size: .875rem;
    font-weight: 600;
    color: hsl(var(--card-foreground));
}
#pembayaran .bjx-pay-saldo small {
    font-size: .72rem;
    color: hsl(var(--muted-foreground));
}
#pembayaran .bjx-pay-saldo .bjx-pay-price {
    font-size: .8rem;
    font-weight: 700;
    color: hsl(var(--primary));
    white-space: nowrap;
    text-align: right;
}

/* payment accordion */
.bjx-acc {
    border-radius: .85rem;
    border: 1px solid hsl(var(--border) / .45);
    background: hsl(var(--card) / .35);
    overflow: hidden;
}
.bjx-acc-head {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .75rem 1rem;
    min-height: 46px;
    text-align: left;
    font-size: .875rem;
    font-weight: 600;
    color: hsl(var(--card-foreground));
    background: hsl(var(--secondary) / .55);
    border: 0;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.bjx-acc-head:hover {
    background: hsl(var(--primary) / .08);
    color: hsl(var(--primary));
}
.bjx-acc-head.open {
    color: hsl(var(--primary));
    border-bottom: 1px solid hsl(var(--border) / .35);
}
.bjx-acc-head svg {
    transition: transform .32s cubic-bezier(.4, 0, .2, 1);
    flex-shrink: 0;
    opacity: .75;
}
.bjx-acc-head.open svg { transform: rotate(180deg); opacity: 1; }
/* generic accordion body (non-tiles) */
.bjx-acc-body:not(.bjx-pay-tiles) {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 .7rem;
    pointer-events: none;
    transition:
        max-height .38s cubic-bezier(.4, 0, .2, 1),
        opacity .28s ease,
        padding .32s ease;
}
.bjx-acc-body.open:not(.bjx-pay-tiles) {
    max-height: 24rem;
    opacity: 1;
    padding: .65rem .7rem .75rem;
    pointer-events: auto;
}

/* harga ringkasan: pulse saat ganti nominal */
.bjx-price-pop {
    display: inline-block;
    transition: transform .2s ease, color .2s ease;
}
.bjx-price-pop.is-animating {
    color: hsl(var(--primary));
}
.bjx-price-pop.is-up {
    animation: bjx-price-nudge-up .45s ease;
}
.bjx-price-pop.is-down {
    animation: bjx-price-nudge-down .45s ease;
}
@keyframes bjx-price-nudge-up {
    0% { transform: translateY(4px); opacity: .75; }
    40% { transform: translateY(-2px); }
    100% { transform: translateY(0); opacity: 1; }
}
@keyframes bjx-price-nudge-down {
    0% { transform: translateY(-4px); opacity: .75; }
    40% { transform: translateY(2px); }
    100% { transform: translateY(0); opacity: 1; }
}

/* star rating input (review form) */
.bjx-rating-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: .1rem; }
.bjx-rating-input input { display: none; }
.bjx-rating-input label {
    cursor: pointer;
    color: hsl(var(--muted-foreground) / .4);
    display: inline-flex;
    padding: .25rem;
    transition: color .1s ease;
}
.bjx-rating-input input:checked ~ label,
.bjx-rating-input label:hover,
.bjx-rating-input label:hover ~ label { color: hsl(var(--primary)); }

/* static star display */
.bjx-star { color: hsl(var(--muted-foreground) / .35); display: inline-flex; }
.bjx-star.on { color: hsl(var(--primary)); }

/* rating distribution bars */
.bjx-rate-bar { height: .5rem; border-radius: 9999px; background: hsl(var(--muted)); overflow: hidden; }
.bjx-rate-bar > span { display: block; height: 100%; background: hsl(var(--primary)); }

/* alerts */
.bjx-alert { border-radius: .75rem; padding: .75rem 1rem; font-size: .875rem; border: 1px solid; }
.bjx-alert-success { background: hsl(var(--success) / .12); border-color: hsl(var(--success) / .4); color: hsl(var(--success)); }
.bjx-alert-error { background: hsl(var(--destructive) / .12); border-color: hsl(var(--destructive) / .4); color: hsl(var(--destructive)); }
.bjx-alert-warning { background: hsl(var(--primary) / .08); border-color: hsl(var(--primary) / .25); color: hsl(var(--foreground)); }

/* Mobile fixed order bar */
.bjx-order-mobile-bar {
    border-top: 1px solid hsl(var(--border) / .5);
    box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.45);
    padding-bottom: max(0.65rem, env(safe-area-inset-bottom, 0px)) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: hsl(var(--secondary) / .97) !important;
    /* di bawah float (z-50), di atas konten */
    z-index: 40;
}
@media (min-width: 1024px) {
    .bjx-order-mobile-bar { display: none !important; }
}
/* Dock spacer di-set JS; jangan pakai tinggi fixed tebakan lagi */
#bjxOrderDockSpacer {
    width: 100%;
    flex-shrink: 0;
    pointer-events: none;
}
/* jarak form order → footer (desktop lebih longgar) */
.bjx-order-footer-gap {
    width: 100%;
    min-height: 2rem;
    height: 2rem;
    flex-shrink: 0;
    display: block;
}
@media (min-width: 1024px) {
    .bjx-order-footer-gap {
        min-height: 4.5rem;
        height: 4.5rem;
    }
}
/* ringkasan pesanan */
.bjx-order-summary { color: hsl(var(--card-foreground)); }

/* modal kupon */
#kuponModal .bjx-modal { max-width: 26rem; }
.bjx-kupon-card:active { transform: scale(0.99); }
/* Product hero title on small screens */
@media (max-width: 767px) {
    .bjx-order-hero h1 { font-size: 0.95rem !important; line-height: 1.3 !important; }
}
/* Container horizontal pad on tiny phones */
@media (max-width: 420px) {
    .container { padding-left: 0.85rem; padding-right: 0.85rem; }
}

/* ==========================================================================
   Empty states (home / allgame)
   ========================================================================== */
.bjx-empty-hero {
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(ellipse 80% 80% at 20% 0%, rgba(240, 180, 41, 0.12), transparent 55%),
        linear-gradient(165deg, rgba(22, 34, 58, 0.95) 0%, rgba(8, 14, 26, 0.98) 100%);
    padding: 1.75rem 1.35rem 1.85rem;
    text-align: left;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}
@media (min-width: 768px) {
    .bjx-empty-hero { padding: 2.25rem 2rem; }
}
.bjx-empty-hero-kicker {
    margin: 0 0 0.4rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #f0b429;
}
.bjx-empty-hero-title {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #f3f6fb;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
@media (min-width: 768px) {
    .bjx-empty-hero-title { font-size: 1.2rem; }
}
.bjx-empty-hero-sub {
    margin: 0 0 1.1rem;
    max-width: 36rem;
    font-size: 0.75rem;
    line-height: 1.45;
    color: rgba(180, 195, 215, 0.9);
}
.bjx-empty-box {
    border-radius: 1rem;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    background: rgba(12, 20, 36, 0.55);
    padding: 2rem 1.25rem;
    text-align: center;
}
.bjx-empty-box-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #e8edf3;
    margin-bottom: 0.35rem;
}
.bjx-empty-box-sub {
    margin: 0;
    font-size: 0.82rem;
    color: #9aa6b2;
    line-height: 1.45;
}

/* ==========================================================================
   Phase 3 — auth / cari / allgame extras
   ========================================================================== */

/* centered auth card wrapper */
.bjx-auth-wrap {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem 5rem;
}
.bjx-auth-logo {
    display: block;
    margin: 0 auto 1rem;
    max-height: 52px;
    max-width: 180px;
    object-fit: contain;
}

/* password toggle inside input */
.bjx-input-wrap { position: relative; }
.bjx-input-wrap .bjx-input { padding-right: 2.75rem; }
.bjx-input-toggle {
    position: absolute;
    right: .5rem;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    background: none;
    border: 0;
    color: hsl(var(--muted-foreground));
    padding: .5rem;
    cursor: pointer;
}
.bjx-input-toggle:hover { color: hsl(var(--foreground)); }

/* hide number spinners on bjx inputs */
input[type="number"].bjx-input::-webkit-outer-spin-button,
input[type="number"].bjx-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"].bjx-input { -moz-appearance: textfield; }

/* status pill (lacak pesanan results) */
.bjx-pill-status {
    display: inline-block;
    padding: .15rem .55rem;
    border-radius: 9999px;
    font-size: .72rem;
    font-weight: 700;
    background: hsl(var(--primary) / .12);
    color: hsl(var(--primary));
}
