/* ============================================================
   ROOT & RESET
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500&display=swap');

:root {
    --theme-color: #F10B0B;
    --theme-rgb: 241, 11, 11;
    --bg-start: #0a0a0a;
    --bg-end: #0d1117;
    --bg-card: #111827;
    --bg-sidebar: #0f172a;
    --bg-header: #1e293b;
    --green: #28a745;
    --yellow: #ffd800;
    --orange: #fd7e14;
    --red: #dc3545;
    --glass-bg: rgba(var(--theme-rgb), 0.03);
    --glass-border: rgba(var(--theme-rgb), 0.12);
    --card-bg: rgba(var(--theme-rgb), 0.04);
    --card-border: rgba(var(--theme-rgb), 0.10);
    --glass-blur: 16px;
    --radius: 14px;
    --font: 'Outfit', system-ui, -apple-system, sans-serif;
    --mono: 'JetBrains Mono', monospace;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #475569;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
    font-family: var(--font);
    background: linear-gradient(160deg, var(--bg-start) 0%, var(--bg-end) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.page-content { flex: 1 0 auto; }
.footer { flex-shrink: 0; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    background: rgba(var(--theme-rgb), 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.5rem 0;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.navbar-logo img { height: 36px; transition: transform 0.2s; }
.navbar-logo:hover img { transform: scale(1.05); }
.navbar-actions { display: flex; gap: 8px; }
.btn {
    padding: 8px 18px;
    border: none;
    border-radius: 8px;
    font-family: var(--font);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}
.btn-login {
    background: transparent;
    border: 1.5px solid rgba(var(--theme-rgb), 0.5);
    color: var(--theme-color);
}
.btn-login:hover { background: rgba(var(--theme-rgb), 0.1); border-color: var(--theme-color); }
.btn-register {
    background: var(--theme-color);
    color: #fff;
    box-shadow: 0 2px 12px rgba(var(--theme-rgb), 0.3);
}
.btn-register:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(var(--theme-rgb), 0.4); }

/* ============================================================
   LAYOUT: Sidebar + Content
   ============================================================ */
.main-wrapper {
    display: flex;
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}
.sidebar {
    width: 200px;
    flex-shrink: 0;
    padding: 12px 8px;
    display: block;
}
@media (max-width: 992px) { .sidebar { display: none; } }
.sidebar-list {
    background: rgba(var(--theme-rgb), 0.04);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
    position: sticky;
    top: 62px;
}
.sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s;
    border-left: 3px solid transparent;
}
.sidebar-item img { width: 22px; height: 22px; border-radius: 4px; object-fit: contain; }
.sidebar-item:hover { background: rgba(var(--theme-rgb), 0.06); color: var(--text-primary); }
.sidebar-item.active {
    background: rgba(var(--theme-rgb), 0.1);
    color: var(--theme-color);
    font-weight: 700;
    border-left-color: var(--theme-color);
}

/* ============================================================
   CONTENT AREA
   ============================================================ */
.content-area {
    flex: 1;
    min-width: 0;
    padding: 12px 12px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Mobile Provider Pills */
.mobile-providers { display: none; }
@media (max-width: 992px) { .mobile-providers { display: block; } }
.provider-carousel {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 4px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
}
.provider-carousel::-webkit-scrollbar { display: none; }
.provider-card {
    flex-shrink: 0;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    white-space: nowrap;
    scroll-snap-align: start;
    background: rgba(var(--theme-rgb), 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
}
.provider-card:hover { background: rgba(var(--theme-rgb), 0.1); }
.provider-card.active {
    background: var(--theme-color);
    color: #fff;
    border-color: var(--theme-color);
    box-shadow: 0 2px 12px rgba(var(--theme-rgb), 0.35);
}
.provider-card img { display: none; }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee-bar {
    background: rgba(var(--theme-rgb), 0.08);
    border: 1px solid rgba(var(--theme-rgb), 0.15);
    border-radius: 8px;
    overflow: hidden;
    padding: 6px 0;
}
.marquee-track {
    display: flex;
    white-space: nowrap;
    animation: marqueeScroll var(--marquee-speed, 25s) linear infinite;
}
.marquee-text {
    flex-shrink: 0;
    padding: 0 40px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--theme-color);
}
@keyframes marqueeScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ============================================================
   RTP HEADER
   ============================================================ */
.rtp-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(var(--theme-rgb), 0.04);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
}
.rtp-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    flex: 1;
    min-width: 200px;
}
.info-text { font-size: 0.72rem; color: var(--text-muted); }
.search-box {
    width: 220px;
    padding: 7px 14px;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    background: rgba(var(--theme-rgb), 0.04);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.8rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.search-box:focus {
    border-color: rgba(var(--theme-rgb), 0.5);
    box-shadow: 0 0 0 3px rgba(var(--theme-rgb), 0.1);
}
@media (max-width: 576px) {
    .search-box { width: 100%; order: 3; }
    .rtp-title { font-size: 0.9rem; }
}

/* ============================================================
   GAME GRID — Modern Cards
   ============================================================ */
.game-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    min-height: 200px;
}
@media (max-width: 1200px) { .game-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px)  { .game-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 576px)  { .game-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

/* ============================================================
   GAME CARD
   ============================================================ */
.game-card {
    background: var(--card-bg);
    border: 1.5px solid var(--card-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s, border-color 0.3s;
    position: relative;
    animation: cardEntrance 0.4s ease both;
    backdrop-filter: blur(8px);
    contain: layout style paint;
    content-visibility: auto;
    contain-intrinsic-size: auto 320px;
}
.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(var(--theme-rgb), 0.12);
    border-color: rgba(var(--theme-rgb), 0.35);
}
@keyframes cardEntrance {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* HOT card */
.game-card-hot {
    border: 2px solid rgba(var(--theme-rgb), 0.45);
    box-shadow: 0 0 20px rgba(var(--theme-rgb), 0.12);
}
.game-card-hot:hover { box-shadow: 0 0 30px rgba(var(--theme-rgb), 0.25); }

/* Hot badge */
.hot-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #ff4500, #ff0844);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    z-index: 3;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255,8,68,0.4);
    animation: hotPulse 2s ease-in-out infinite;
}
@keyframes hotPulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(255,8,68,0.4); }
    50% { box-shadow: 0 2px 16px rgba(255,8,68,0.7); }
}

/* Type tag */
.type-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(var(--theme-rgb), 0.3);
    backdrop-filter: blur(6px);
    color: var(--text-secondary);
    font-size: 0.55rem;
    font-weight: 600;
    font-family: var(--mono);
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 3;
    letter-spacing: 0.8px;
}

/* Image container */
.card-img-wrap {
    position: relative;
    aspect-ratio: 5 / 6;
    overflow: hidden;
    background: rgba(var(--theme-rgb), 0.06);
}
.game-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
    image-rendering: -webkit-optimize-contrast;
    will-change: transform;
}
.game-card:hover .game-img { transform: scale(1.08); }

/* Play overlay */
.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(var(--theme-rgb), 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
}
.game-card:hover .play-overlay { opacity: 1; }
.play-btn {
    background: var(--theme-color);
    color: #fff;
    border: none;
    padding: 8px 22px;
    border-radius: 20px;
    font-family: var(--font);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 1px;
    transform: translateY(8px);
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 20px rgba(var(--theme-rgb), 0.4);
}
.game-card:hover .play-btn { transform: translateY(0); }
.play-btn:hover { box-shadow: 0 6px 28px rgba(var(--theme-rgb), 0.6); }

/* Card body */
.card-body {
    padding: 10px 10px 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Game name */
.game-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

/* RTP Bar */
.rtp-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.rtp-bar {
    flex: 1;
    height: 6px;
    background: rgba(var(--theme-rgb), 0.08);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}
.rtp-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1s cubic-bezier(0.4,0,0.2,1);
    position: relative;
}
.rtp-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    animation: rtpShine 2s ease-in-out infinite;
}
@keyframes rtpShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
.rtp-pct {
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 700;
    min-width: 36px;
    text-align: right;
}

/* RTP colors */
.rtp-green .rtp-fill { background: linear-gradient(90deg, #0d9f4f, var(--green)); }
.rtp-green .rtp-pct { color: var(--green); }
.rtp-yellow .rtp-fill { background: linear-gradient(90deg, #c5a300, var(--yellow)); }
.rtp-yellow .rtp-pct { color: var(--yellow); }
.rtp-orange .rtp-fill { background: linear-gradient(90deg, #c56200, var(--orange)); }
.rtp-orange .rtp-pct { color: var(--orange); }
.rtp-red .rtp-fill { background: linear-gradient(90deg, #a02030, var(--red)); }
.rtp-red .rtp-pct { color: var(--red); }

/* Jam Gacor */
.jam-row {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    color: var(--text-secondary);
}
.jam-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.jam-active .jam-dot { background: var(--green); box-shadow: 0 0 6px var(--green); animation: dotBlink 1.5s infinite; }
.jam-soon .jam-dot { background: var(--yellow); box-shadow: 0 0 6px var(--yellow); }
.jam-passed .jam-dot { background: var(--text-muted); }
@keyframes dotBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.jam-label { font-family: var(--mono); font-size: 0.68rem; }
.jam-status-text { font-size: 0.6rem; opacity: 0.7; }

/* Pola — swap container + toggle */
.card-swap {
    position: relative;
    overflow: hidden;
}
.card-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.pola-toggle {
    display: none;
    width: 100%;
    background: none;
    border: none;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 0.65rem;
    cursor: pointer;
    padding: 5px 4px 2px;
    margin-top: 4px;
    text-align: center;
    transition: color 0.2s;
}
.pola-toggle:hover { color: var(--theme-color); }
.pola-toggle::after { content: ' ▼'; font-size: 0.5rem; }
.pola-open .pola-toggle::after { content: ' ▲'; }
.pola-step {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 0;
    font-size: 0.68rem;
    color: #fff;
    line-height: 1.4;
}

/* Warning mode */
.warning-card { opacity: 0.5; }
.warning-card .card-body { filter: grayscale(0.8); }
.warning-text {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--red);
    padding: 4px 0;
    letter-spacing: 1px;
}

/* Mobile: swap card-info ↔ pola-steps in same space, zero height change */
@media (max-width: 768px) {
    .pola-toggle { display: block; }

    /* card-info slides up out, pola-steps slides up in */
    .card-info {
        transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.2s ease;
    }
    .pola-steps {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        transform: translateY(100%);
        opacity: 0;
        transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.2s ease 0.1s;
    }
    .pola-open .card-info {
        transform: translateY(-100%);
        opacity: 0;
    }
    .pola-open .pola-steps {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ============================================================
   LOADING
   ============================================================ */
.loading-overlay {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 12px;
}
.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(var(--theme-rgb), 0.15);
    border-top-color: var(--theme-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    text-align: center;
    padding: 20px 16px;
    font-size: 0.72rem;
    color: var(--text-muted);
    border-top: 1px solid var(--glass-border);
    margin-top: 24px;
}

/* ============================================================
   TOAST NOTIFICATION (top, transparent, non-clickable)
   ============================================================ */
.toast-top {
    position: fixed;
    top: 56px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 900;
    pointer-events: none;
    max-width: 90%;
}
.toast-msg-top {
    background: rgba(0, 0, 0, 0.4);
    color: rgba(255, 255, 255, 0.85);
    padding: 6px 16px;
    border-radius: 0 0 8px 8px;
    font-size: 0.72rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-100%);
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.toast-msg-top.show { opacity: 0.5; transform: translateY(0); }

/* ============================================================
   LEFT BUBBLES
   ============================================================ */
.bubbles-left {
    position: fixed;
    left: 16px;
    bottom: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.bubble-right {
    position: fixed;
    right: 16px;
    bottom: 24px;
    z-index: 1000;
}
.chat-bubble {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    position: relative;
    transition: transform 0.25s, box-shadow 0.25s;
    box-shadow: 0 3px 12px rgba(0,0,0,0.35);
}
.chat-bubble svg { width: 22px; height: 22px; flex-shrink: 0; }
.chat-bubble:hover { transform: scale(1.12); }
.chat-bubble:active { transform: scale(0.95); }
.chat-label {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.85);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
}
.bubbles-left .chat-label { left: calc(100% + 10px); transform: translateY(-50%) translateX(-4px); }
.bubble-right .chat-label { right: calc(100% + 10px); transform: translateY(-50%) translateX(4px); }
.chat-bubble:hover .chat-label { opacity: 1; }
.bubbles-left .chat-bubble:hover .chat-label { transform: translateY(-50%) translateX(0); }
.bubble-right .chat-bubble:hover .chat-label { transform: translateY(-50%) translateX(0); }
.chat-bubble { background: #e74c3c; /* fallback, overridden by inline style */ }
.chat-bubble img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* Transparent mode: custom image/GIF or livechat — no bg, no border, no shadow */
.chat-bubble.bubble-raw {
    background: transparent !important;
    box-shadow: none !important;
    border: none;
    border-radius: 0;
}
.chat-bubble.bubble-raw img { border-radius: 0; }
.chat-bubble.bubble-raw svg { filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); }

/* ============================================================
   LIVECHAT — Desktop: widget bottom-right / Mobile: fullscreen
   ============================================================ */
.lc-overlay {
    position: fixed;
    right: 10px;
    bottom: 10px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.lc-overlay.open {
    opacity: 1;
    visibility: visible;
}
.lc-panel {
    width: 400px;
    height: 700px;
    background: var(--bg-card, #111827);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 16px 60px rgba(0,0,0,0.6);
    transform: translateY(20px) scale(0.96);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.lc-overlay.open .lc-panel {
    transform: translateY(0) scale(1);
}
.lc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}
.lc-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}
.lc-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    color: #94a3b8;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.lc-close:hover {
    background: rgba(239,68,68,0.15);
    color: #ef4444;
}
.lc-frame {
    flex: 1;
    width: 100%;
    border: none;
    background: #0a0a0a;
}
@media (max-width: 768px) {
    .lc-overlay {
        inset: 0;
        right: 0;
        bottom: 0;
    }
    .lc-panel {
        width: 100vw;
        height: 100vh;
        max-width: none;
        border-radius: 0;
    }
    .lc-header { padding: 10px 16px; }
}

/* ============================================================
   MOBILE BOTTOM BAR
   ============================================================ */
.mobile-bottom-bar { display: none; }
@media (max-width: 768px) {
    .mobile-bottom-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1001;
        background: #050508;
        padding: 6px 6px;
        gap: 6px;
        padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
    }
    .mbb-btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 12px 8px;
        font-size: 0.78rem;
        font-weight: 800;
        text-decoration: none;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: #fff;
        border-radius: 8px;
        position: relative;
        overflow: hidden;
        transition: transform 0.15s;
    }
    .mbb-btn:active { transform: scale(0.96); }

    /* === DAFTAR — blinking glow border + shimmer === */
    .mbb-register {
        background: var(--theme-color);
        border: 2px solid rgba(255,255,255,0.3);
        box-shadow:
            0 0 8px rgba(var(--theme-rgb), 0.5),
            0 0 20px rgba(var(--theme-rgb), 0.3),
            inset 0 1px 0 rgba(255,255,255,0.2);
        animation: daftarBlink 1.2s ease-in-out infinite;
    }
    /* Shimmer sweep */
    .mbb-register::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 50%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
        animation: daftarSweep 2.5s ease-in-out infinite;
    }
    @keyframes daftarBlink {
        0%, 100% {
            box-shadow:
                0 0 8px rgba(var(--theme-rgb), 0.5),
                0 0 20px rgba(var(--theme-rgb), 0.3),
                inset 0 1px 0 rgba(255,255,255,0.2);
            border-color: rgba(255,255,255,0.3);
        }
        50% {
            box-shadow:
                0 0 14px rgba(var(--theme-rgb), 0.8),
                0 0 40px rgba(var(--theme-rgb), 0.5),
                0 0 60px rgba(var(--theme-rgb), 0.2),
                inset 0 1px 0 rgba(255,255,255,0.3);
            border-color: rgba(255,255,255,0.6);
        }
    }
    @keyframes daftarSweep {
        0%   { left: -100%; }
        60%  { left: 150%; }
        100% { left: 150%; }
    }

    /* === LOGIN — glowing outline + subtle pulse === */
    .mbb-login {
        background: rgba(var(--theme-rgb), 0.06);
        color: var(--theme-color);
        border: 2px solid rgba(var(--theme-rgb), 0.4);
        box-shadow:
            0 0 6px rgba(var(--theme-rgb), 0.15),
            inset 0 1px 0 rgba(255,255,255,0.05);
        animation: loginPulse 2.5s ease-in-out infinite;
    }
    @keyframes loginPulse {
        0%, 100% {
            border-color: rgba(var(--theme-rgb), 0.4);
            box-shadow: 0 0 6px rgba(var(--theme-rgb), 0.15);
        }
        50% {
            border-color: rgba(var(--theme-rgb), 0.7);
            box-shadow: 0 0 14px rgba(var(--theme-rgb), 0.3);
        }
    }

    .bubbles-left { bottom: 68px; }
    .bubble-right { bottom: 68px; }
    .chat-bubble { width: 40px; height: 40px; }
    .chat-bubble svg { width: 18px; height: 18px; }
    .chat-label { display: none; }
    .footer { padding-bottom: 62px; }
}
@media (max-width: 576px) {
    .bubbles-left { left: 10px; gap: 8px; }
    .bubble-right { right: 10px; }
    .chat-bubble { width: 36px; height: 36px; }
    .chat-bubble svg { width: 16px; height: 16px; }
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(var(--theme-rgb), 0.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(var(--theme-rgb), 0.4); }

/* ============================================================
   LAUNCH LOADING SCREEN
   ============================================================ */
.launch-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.launch-overlay.active {
    opacity: 1;
    visibility: visible;
}
.launch-logo { height: 44px; width: auto; animation: launchPulse 1.5s ease-in-out infinite; }
@keyframes launchPulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.7; transform: scale(1.05); } }
.launch-text {
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    text-align: center;
    letter-spacing: 0.02em;
}
.launch-bar-wrap {
    width: 260px;
    max-width: 80%;
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    overflow: hidden;
}
.launch-bar-fill {
    width: 0%;
    height: 100%;
    background: var(--theme-color, #F10B0B);
    border-radius: 3px;
    transition: width 0.15s linear;
    position: relative;
}
.launch-bar-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    animation: launchShine 1.2s ease-in-out infinite;
}
@keyframes launchShine { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.launch-timer {
    font-family: var(--mono, monospace);
    font-size: 0.72rem;
    color: rgba(255,255,255,0.4);
}

/* Utility */
.hidden { display: none !important; }
