/* ============================================================
   STYLE.CSS — v3.0 Full Frontend Overhaul
   Glass morphism · shimmer · 6-col desktop · polished mobile
   ============================================================ */

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

/* ============================================================
   ROOT
   ============================================================ */
: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-1: rgba(255, 255, 255, 0.03);
    --glass-bg-2: rgba(var(--theme-rgb), 0.05);
    --glass-bg-3: rgba(var(--theme-rgb), 0.08);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-accent: rgba(var(--theme-rgb), 0.18);
    --glass-blur: 18px;
    --glass-blur-strong: 28px;

    --card-bg: rgba(255, 255, 255, 0.025);
    --card-border: rgba(255, 255, 255, 0.07);
    --card-hover-border: rgba(var(--theme-rgb), 0.35);

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;

    --font: 'Outfit', system-ui, -apple-system, sans-serif;
    --mono: 'JetBrains Mono', monospace;

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #5e6a82;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.55);
    --shadow-glow: 0 0 30px rgba(var(--theme-rgb), 0.18);
}

*, *::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: var(--bg-start);
    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;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* ============================================================
   AMBIENT BACKGROUND
   layered gradient + floating orbs for depth
   ============================================================ */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 20% 10%, rgba(var(--theme-rgb), 0.10), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(var(--theme-rgb), 0.08), transparent 45%),
        linear-gradient(160deg, var(--bg-start) 0%, var(--bg-end) 100%);
    background-attachment: fixed;
}
body::after {
    content: '';
    position: fixed;
    inset: -20%;
    z-index: -1;
    background:
        radial-gradient(circle 280px at 12% 30%, rgba(var(--theme-rgb), 0.05), transparent 100%),
        radial-gradient(circle 350px at 88% 70%, rgba(var(--theme-rgb), 0.04), transparent 100%);
    animation: orbFloat 24s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes orbFloat {
    0%   { transform: translate(0, 0); }
    50%  { transform: translate(-30px, 25px); }
    100% { transform: translate(20px, -20px); }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.page-content { flex: 1 0 auto; }
.footer { flex-shrink: 0; }
.container { max-width: 1600px; margin: 0 auto; padding: 0 20px; }

/* ============================================================
   NAVBAR — frosted glass with hairline border
   ============================================================ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 8px 0;
    background: rgba(10, 10, 16, 0.6);
    backdrop-filter: blur(var(--glass-blur-strong)) saturate(1.4);
    -webkit-backdrop-filter: blur(var(--glass-blur-strong)) saturate(1.4);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02);
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.navbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.navbar-logo img {
    height: 38px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(var(--theme-rgb), 0.25));
    transition: transform 0.25s ease, filter 0.25s;
}
.navbar-logo:hover img {
    transform: scale(1.04);
    filter: drop-shadow(0 2px 14px rgba(var(--theme-rgb), 0.4));
}
.navbar-actions { display: flex; gap: 8px; }
.btn {
    padding: 9px 20px;
    border: none;
    border-radius: 10px;
    font-family: var(--font);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: transform 0.18s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.25s, background 0.25s, border-color 0.25s, color 0.25s;
    position: relative;
    overflow: hidden;
}
.btn:active { transform: translateY(1px); }
.btn-login {
    background: rgba(var(--theme-rgb), 0.06);
    border: 1.5px solid rgba(var(--theme-rgb), 0.4);
    color: var(--theme-color);
    backdrop-filter: blur(8px);
}
.btn-login:hover {
    background: rgba(var(--theme-rgb), 0.14);
    border-color: var(--theme-color);
    box-shadow: 0 0 18px rgba(var(--theme-rgb), 0.25);
}
.btn-register {
    background: linear-gradient(135deg, var(--theme-color), rgba(var(--theme-rgb), 0.7));
    color: #fff;
    box-shadow: 0 3px 14px rgba(var(--theme-rgb), 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-register:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(var(--theme-rgb), 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-register::after {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform: skewX(-20deg);
    animation: btnShine 4s ease-in-out infinite;
    animation-delay: 1s;
}
@keyframes btnShine {
    0%   { left: -60%; }
    60%  { left: 140%; }
    100% { left: 140%; }
}

/* ============================================================
   LAYOUT
   ============================================================ */
.main-wrapper {
    display: flex;
    gap: 16px;
    max-width: 1700px;
    margin: 0 auto;
    width: 100%;
    padding: 0 16px;
}
.sidebar {
    width: 218px;
    flex-shrink: 0;
    padding: 16px 0;
    display: block;
}
@media (max-width: 1024px) { .sidebar { display: none; } }
.sidebar-list {
    background: var(--glass-bg-1);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
    position: sticky;
    top: 76px;
    box-shadow: var(--shadow-sm);
}
.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: background 0.2s, color 0.2s, transform 0.15s;
    border-left: 3px solid transparent;
    position: relative;
}
.sidebar-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 0;
    height: 1px;
    background: var(--glass-border);
}
.sidebar-item img {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    object-fit: contain;
    flex-shrink: 0;
}
.sidebar-item:hover {
    background: var(--glass-bg-2);
    color: var(--text-primary);
}
.sidebar-item.active {
    background: linear-gradient(90deg, rgba(var(--theme-rgb), 0.16), rgba(var(--theme-rgb), 0.04));
    color: var(--theme-color);
    font-weight: 700;
    border-left-color: var(--theme-color);
}
.sidebar-item.active::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(var(--theme-rgb), 0.1) 100%);
    pointer-events: none;
}

/* ============================================================
   CONTENT AREA
   ============================================================ */
.content-area {
    flex: 1;
    min-width: 0;
    padding: 16px 0 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
@media (max-width: 1024px) {
    .content-area { padding-top: 12px; }
    .main-wrapper { padding: 0 12px; }
}

/* Mobile provider pills */
.mobile-providers { display: none; }
@media (max-width: 1024px) { .mobile-providers { display: block; margin: 0 -4px; } }
.provider-carousel {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 4px 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.provider-carousel::-webkit-scrollbar { display: none; }
.provider-card {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.25s;
    white-space: nowrap;
    scroll-snap-align: start;
    background: var(--glass-bg-1);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.provider-card:hover {
    background: var(--glass-bg-2);
    color: var(--text-primary);
}
.provider-card:active { transform: scale(0.96); }
.provider-card.active {
    background: linear-gradient(135deg, var(--theme-color), rgba(var(--theme-rgb), 0.75));
    color: #fff;
    border-color: rgba(var(--theme-rgb), 0.5);
    box-shadow: 0 4px 16px rgba(var(--theme-rgb), 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.provider-card img { display: none; }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee-bar {
    background: linear-gradient(90deg, rgba(var(--theme-rgb), 0.04), rgba(var(--theme-rgb), 0.1), rgba(var(--theme-rgb), 0.04));
    border: 1px solid var(--glass-border-accent);
    border-radius: 10px;
    overflow: hidden;
    padding: 7px 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
}
.marquee-bar::before, .marquee-bar::after {
    content: '';
    position: absolute;
    top: 0;
    width: 60px;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}
.marquee-bar::before {
    left: 0;
    background: linear-gradient(90deg, rgba(10, 10, 16, 0.9), transparent);
}
.marquee-bar::after {
    right: 0;
    background: linear-gradient(-90deg, rgba(10, 10, 16, 0.9), transparent);
}
.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: 600;
    color: var(--theme-color);
    text-shadow: 0 0 12px rgba(var(--theme-rgb), 0.3);
}
@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================================
   RTP HEADER
   ============================================================ */
.rtp-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--glass-bg-1);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    box-shadow: var(--shadow-sm);
}
.rtp-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    flex: 1;
    min-width: 200px;
    letter-spacing: -0.01em;
    background: linear-gradient(90deg, #fff, rgba(var(--theme-rgb), 0.8));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.info-text {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: var(--mono);
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    border: 1px solid var(--glass-border);
}
.search-box {
    width: 240px;
    padding: 9px 16px;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.82rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    backdrop-filter: blur(8px);
}
.search-box::placeholder { color: var(--text-muted); }
.search-box:focus {
    border-color: rgba(var(--theme-rgb), 0.5);
    background: rgba(0, 0, 0, 0.4);
    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.95rem; }
}

/* ============================================================
   GAME GRID — 6 columns on desktop
   ============================================================ */
.game-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    min-height: 360px;
}
@media (max-width: 1440px) { .game-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 1200px) { .game-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px)  { .game-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; } }
@media (max-width: 480px)  { .game-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

/* ============================================================
   SKELETON SHIMMER — borderless, just shimmer
   ============================================================ */
.skeleton-card {
    background: rgba(255, 255, 255, 0.025);
    border: none;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 5 / 8;
    position: relative;
}
.skeleton-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        110deg,
        transparent 30%,
        rgba(255, 255, 255, 0.05) 42%,
        rgba(var(--theme-rgb), 0.10) 50%,
        rgba(255, 255, 255, 0.05) 58%,
        transparent 70%
    );
    background-size: 250% 100%;
    animation: shimmer 1.5s linear infinite;
}
@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================================
   GAME CARD
   ============================================================ */
.game-card {
    background: var(--card-bg);
    border: 1px 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.45s cubic-bezier(0.16, 1, 0.3, 1) both;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    contain: layout style;
}
.game-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
    z-index: 1;
}
.game-card:hover {
    transform: translateY(-5px);
    border-color: var(--card-hover-border);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4), 0 0 25px rgba(var(--theme-rgb), 0.12);
}
@keyframes cardEntrance {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* HOT card */
.game-card-hot {
    border-color: rgba(var(--theme-rgb), 0.45);
    box-shadow: 0 0 24px rgba(var(--theme-rgb), 0.16);
}
.game-card-hot::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, transparent, rgba(var(--theme-rgb), 0.2), transparent);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}
.game-card-hot:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 36px rgba(var(--theme-rgb), 0.28);
}
.game-card-hot:hover::after { opacity: 1; }

/* 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: 3px 9px;
    border-radius: 6px;
    z-index: 4;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(255, 8, 68, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    animation: hotPulse 2s ease-in-out infinite;
}
@keyframes hotPulse {
    0%, 100% { box-shadow: 0 2px 10px rgba(255, 8, 68, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
    50%      { box-shadow: 0 2px 20px rgba(255, 8, 68, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
}

/* Type tag */
.type-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-secondary);
    font-size: 0.55rem;
    font-weight: 600;
    font-family: var(--mono);
    padding: 3px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 4;
    letter-spacing: 0.8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Image container */
.card-img-wrap {
    position: relative;
    aspect-ratio: 5 / 6;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.25);
}
.game-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s 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: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.45) 60%, rgba(var(--theme-rgb), 0.25) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 3;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.game-card:hover .play-overlay { opacity: 1; }
.play-btn {
    background: linear-gradient(135deg, var(--theme-color), rgba(var(--theme-rgb), 0.75));
    color: #fff;
    border: none;
    padding: 9px 26px;
    border-radius: 22px;
    font-family: var(--font);
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    letter-spacing: 1.5px;
    transform: translateY(10px);
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 6px 24px rgba(var(--theme-rgb), 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.game-card:hover .play-btn { transform: translateY(0); }
.play-btn:hover { box-shadow: 0 8px 32px rgba(var(--theme-rgb), 0.7); }
.play-btn:active { transform: scale(0.96); }

/* Card body */
.card-body {
    padding: 10px 11px 9px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 2;
}

/* 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;
    letter-spacing: -0.01em;
}

/* RTP Bar */
.rtp-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.rtp-bar {
    flex: 1;
    height: 6px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.04);
}
.rtp-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1.1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 0 8px currentColor;
}
.rtp-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
    animation: rtpShine 2.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: 38px;
    text-align: right;
    text-shadow: 0 0 8px currentColor;
}

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

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

/* Pola */
.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;
    letter-spacing: 0.3px;
}
.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.45;
    font-family: var(--mono);
}

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

/* Mobile swap pola */
@media (max-width: 768px) {
    .pola-toggle { display: block; }
    .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;
    }
}

/* ============================================================
   LAZY SENTINEL (invisible scroll trigger)
   ============================================================ */
.lazy-sentinel {
    grid-column: 1 / -1;
    height: 1px;
}

/* ============================================================
   LOADING / EMPTY STATE
   ============================================================ */
.loading-overlay {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 14px;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(var(--theme-rgb), 0.12);
    border-top-color: var(--theme-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    box-shadow: 0 0 18px rgba(var(--theme-rgb), 0.2);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    text-align: center;
    padding: 22px 16px;
    font-size: 0.72rem;
    color: var(--text-muted);
    border-top: 1px solid var(--glass-border);
    margin-top: 28px;
    background: rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ============================================================
   TOAST NOTIFICATION (top)
   ============================================================ */
.toast-top {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 900;
    pointer-events: none;
    max-width: 92%;
}
.toast-msg-top {
    background: rgba(0, 0, 0, 0.55);
    color: rgba(255, 255, 255, 0.92);
    padding: 7px 18px;
    border-radius: 0 0 12px 12px;
    font-size: 0.74rem;
    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(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-top: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.toast-msg-top.show { opacity: 0.9; transform: translateY(0); }

/* ============================================================
   CHAT 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: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    position: relative;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.chat-bubble svg { width: 24px; height: 24px; flex-shrink: 0; }
.chat-bubble:hover { transform: scale(1.12); }
.chat-bubble:active { transform: scale(0.94); }
.chat-label {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    border: 1px solid var(--glass-border);
}
.bubbles-left .chat-label { left: calc(100% + 12px); transform: translateY(-50%) translateX(-4px); }
.bubble-right .chat-label { right: calc(100% + 12px); 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; }
.chat-bubble img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* Transparent mode */
.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 6px rgba(0, 0, 0, 0.5)); }

/* ============================================================
   LIVECHAT
   ============================================================ */
.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 var(--glass-border);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.7);
    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 var(--glass-border);
    flex-shrink: 0;
}
.lc-title {
    font-size: 0.9rem;
    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: background 0.2s, color 0.2s;
}
.lc-close:hover {
    background: rgba(239, 68, 68, 0.18);
    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: rgba(5, 5, 8, 0.95);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        padding: 8px 8px;
        gap: 8px;
        padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid var(--glass-border);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
    }
    .mbb-btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 13px 8px;
        font-size: 0.8rem;
        font-weight: 800;
        text-decoration: none;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: #fff;
        border-radius: 10px;
        position: relative;
        overflow: hidden;
        transition: transform 0.15s;
    }
    .mbb-btn:active { transform: scale(0.96); }

    /* DAFTAR — glowing pulse + shimmer */
    .mbb-register {
        background: linear-gradient(135deg, var(--theme-color), rgba(var(--theme-rgb), 0.75));
        border: 2px solid rgba(255, 255, 255, 0.25);
        box-shadow:
            0 0 10px rgba(var(--theme-rgb), 0.55),
            0 0 24px rgba(var(--theme-rgb), 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.25);
        animation: daftarBlink 1.3s ease-in-out infinite;
    }
    .mbb-register::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 60%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        animation: daftarSweep 2.8s ease-in-out infinite;
    }
    @keyframes daftarBlink {
        0%, 100% {
            box-shadow: 0 0 10px rgba(var(--theme-rgb), 0.55), 0 0 24px rgba(var(--theme-rgb), 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
            border-color: rgba(255, 255, 255, 0.25);
        }
        50% {
            box-shadow: 0 0 18px rgba(var(--theme-rgb), 0.85), 0 0 44px rgba(var(--theme-rgb), 0.55), 0 0 64px rgba(var(--theme-rgb), 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.32);
            border-color: rgba(255, 255, 255, 0.55);
        }
    }
    @keyframes daftarSweep {
        0%   { left: -100%; }
        60%  { left: 150%; }
        100% { left: 150%; }
    }

    /* LOGIN — pulsing outline */
    .mbb-login {
        background: rgba(var(--theme-rgb), 0.08);
        color: var(--theme-color);
        border: 2px solid rgba(var(--theme-rgb), 0.45);
        box-shadow: 0 0 8px rgba(var(--theme-rgb), 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
        animation: loginPulse 2.5s ease-in-out infinite;
        backdrop-filter: blur(8px);
    }
    @keyframes loginPulse {
        0%, 100% {
            border-color: rgba(var(--theme-rgb), 0.45);
            box-shadow: 0 0 8px rgba(var(--theme-rgb), 0.2);
        }
        50% {
            border-color: rgba(var(--theme-rgb), 0.75);
            box-shadow: 0 0 18px rgba(var(--theme-rgb), 0.35);
        }
    }

    .bubbles-left { bottom: 76px; left: 12px; }
    .bubble-right { bottom: 76px; right: 12px; }
    .chat-bubble { width: 44px; height: 44px; }
    .chat-bubble svg { width: 20px; height: 20px; }
    .chat-label { display: none; }
    .footer { padding-bottom: 76px; }
}
@media (max-width: 480px) {
    .bubbles-left { left: 10px; gap: 8px; }
    .bubble-right { right: 10px; }
    .chat-bubble { width: 40px; height: 40px; }
    .chat-bubble svg { width: 18px; height: 18px; }
}

/* ============================================================
   FILTER CHIPS
   ============================================================ */
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    margin-top: 4px;
    order: 2;
}
@media (min-width: 900px) {
    .filter-chips {
        width: auto;
        margin-top: 0;
        order: 0;
    }
}
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.1s;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    white-space: nowrap;
}
.filter-chip:hover {
    background: rgba(var(--theme-rgb), 0.08);
    color: var(--text-primary);
}
.filter-chip:active { transform: scale(0.96); }
.filter-chip.active {
    background: linear-gradient(135deg, var(--theme-color), rgba(var(--theme-rgb), 0.75));
    color: #fff;
    border-color: rgba(var(--theme-rgb), 0.5);
    box-shadow: 0 2px 12px rgba(var(--theme-rgb), 0.4);
}
.filter-chip-icon { font-size: 0.78rem; line-height: 1; }

/* ============================================================
   COUNTDOWN BADGE
   ============================================================ */
.countdown-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    letter-spacing: 0.04em;
    backdrop-filter: blur(8px);
    white-space: nowrap;
}
.countdown-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 6px var(--green);
    animation: dotBlink 1.4s infinite;
}

/* ============================================================
   BACK-TO-TOP BUTTON
   ============================================================ */
.back-to-top {
    position: fixed;
    right: 16px;
    bottom: 86px;
    z-index: 999;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--theme-color), rgba(var(--theme-rgb), 0.75));
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.85);
    transition: opacity 0.25s, visibility 0.25s, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s;
    box-shadow: 0 6px 22px rgba(var(--theme-rgb), 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.back-to-top:hover {
    box-shadow: 0 8px 30px rgba(var(--theme-rgb), 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.back-to-top:active { transform: translateY(0) scale(0.95); }
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.back-to-top svg { width: 22px; height: 22px; }
@media (min-width: 769px) {
    .back-to-top { bottom: 90px; right: 80px; }
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-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.45); }

/* ============================================================
   LAUNCH LOADING SCREEN
   ============================================================ */
.launch-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.launch-overlay.active { opacity: 1; visibility: visible; }
.launch-logo {
    height: 48px;
    width: auto;
    animation: launchPulse 1.6s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(var(--theme-rgb), 0.5));
}
@keyframes launchPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.7; transform: scale(1.06); }
}
.launch-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    letter-spacing: 0.02em;
}
.launch-bar-wrap {
    width: 280px;
    max-width: 80%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.04);
}
.launch-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--theme-color), rgba(var(--theme-rgb), 0.6));
    border-radius: 3px;
    transition: width 0.15s linear;
    position: relative;
    box-shadow: 0 0 12px rgba(var(--theme-rgb), 0.5);
}
.launch-bar-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), 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);
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.45);
}

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