:root {
    --bg: #000000;
    --card-bg: rgba(20, 20, 20, 0.8);
    --primary: #EE5F5B; /* Red Coral */
    --primary-dim: rgba(238, 95, 91, 0.15);
    --primary-glow: rgba(238, 95, 91, 0.3);
    --accent: #FFCF21; /* Gold */
    --accent-dim: rgba(255, 207, 33, 0.15);
    --accent-glow: rgba(255, 207, 33, 0.4);
    --cyan: #5BC0DE; /* Cyan */
    --text: #ffffff;
    --text-dim: #e0e0e0;
    --blur: blur(20px);
    --radius-card: 22px;
    --radius-pill: 50px;
}

*, *::before, *::after {
    margin: 0; padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    padding-top: 70px;
}

/* ── HEADER ─────────────────────────────────────────────────────────── */
header {
    position: fixed; top: 0; width: 100%; height: 70px;
    background: rgba(5, 20, 5, 0.85);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 32px;
    z-index: 1000;
    border-bottom: 0.5px solid rgba(104, 255, 104, 0.1);
}

.logo { 
    display: flex;
    align-items: center;
}
.main-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(0,0,0,0.3));
}

.search-box {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 9px 16px;
    color: white; width: 100%; max-width: 500px; font-size: 14px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}
.search-box:focus {
    border-color: var(--primary);
    background: var(--primary-dim);
}

.header-right { display: flex; gap: 10px; align-items: center; }

.sim-btn {
    padding: 8px 16px;
    background: var(--primary-dim);
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 12px;
    font-weight: 700; font-size: 13px;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.sim-btn:hover { background: var(--green); color: black; }

.daftar-btn {
    padding: 8px 18px;
    background: var(--accent); color: black;
    border-radius: 12px; font-weight: 800;
    text-decoration: none; font-size: 13px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.daftar-btn:hover { transform: scale(1.05); box-shadow: 0 6px 20px var(--accent-glow); }

/* ── HERO ───────────────────────────────────────────────────────────── */
.hero {
    text-align: center;
    padding: 120px 20px;
    position: relative;
    box-shadow: inset 0 0 100px rgba(0,0,0,0.8);
    border-bottom: 1px solid rgba(255,207,33,0.1);
}

.hero-badge {
    display: inline-block;
    background: var(--accent-dim);
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 12px; font-weight: 700;
    padding: 5px 14px; border-radius: 50px;
    margin-bottom: 18px;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero h1 {
    font-size: 52px; font-weight: 800;
    line-height: 1.1; margin-bottom: 16px;
    background: linear-gradient(160deg, #ffffff 30%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.8));
    letter-spacing: -1px;
}

.hero p {
    color: #ffffff; font-size: 18px;
    max-width: 620px; margin: 0 auto 32px;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0,0,0,0.9);
    font-weight: 500;
}

.hero-stats {
    display: flex; justify-content: center; gap: 40px;
    margin-top: 32px;
}

.stat {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.stat-num {
    font-size: 28px; font-weight: 800; color: var(--primary);
}
.stat-label {
    font-size: 12px; color: var(--text-dim); font-weight: 600; text-transform: uppercase;
}

/* ── POPULAR ────────────────────────────────────────────────────────── */
.popular-section {
    padding: 0 32px 36px;
    animation: fadeIn 0.4s ease;
}

.section-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 18px;
}
.section-header h2 {
    font-size: 18px; font-weight: 700; color: var(--primary);
}
.section-header span {
    font-size: 12px; color: var(--text-dim); font-weight: 600;
    background: var(--primary-dim); border-radius: 8px; padding: 4px 10px;
}

.popular-scroll {
    display: flex; gap: 16px;
    overflow-x: auto; padding-bottom: 8px;
    scrollbar-width: none;
}
.popular-scroll::-webkit-scrollbar { display: none; }

.popular-card {
    min-width: 140px; width: 140px;
    background: var(--card-bg);
    border-radius: 18px;
    padding: 10px;
    border: 0.5px solid rgba(104,255,104,0.12);
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.25s, border-color 0.25s;
}
.popular-card:hover {
    transform: translateY(-4px);
    border-color: var(--green);
}
.popular-card img {
    width: 100%; aspect-ratio: 1;
    border-radius: 12px; object-fit: cover;
    margin-bottom: 8px;
}
.popular-card-name {
    font-size: 11px; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.popular-card-provider {
    font-size: 10px; color: var(--green); font-weight: 700;
    text-transform: uppercase; margin-top: 2px;
}

/* ── PROVIDER TABS: per 8 item desktop ──────────────────────── */
.providers-wrapper {
    display: flex;
    align-items: center;
    padding: 0 32px 24px;
    gap: 12px;
}
.providers-container {
    display: flex; gap: 10px;
    overflow-x: auto; scrollbar-width: none;
    flex: 1;
    scroll-behavior: smooth;
    padding: 5px 0;
}
.providers-container::-webkit-scrollbar { display: none; }

.provider-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.04);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    cursor: grab;
    transition: all 0.25s ease;
    flex: 0 0 calc((100% - 70px) / 8); /* 8 items visible */
    height: 58px;
    text-decoration: none;
    user-select: none;
}
@media (max-width: 1200px) { .provider-chip { flex: 0 0 calc((100% - 50px) / 6); } }
@media (max-width: 768px) { .provider-chip { flex: 0 0 100px; } }

.nav-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    font-size: 20px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}
.nav-btn:hover { background: var(--primary); color: black; border-color: var(--primary); }
@media (max-width: 1024px) { .nav-btn { display: none; } }

.provider-chip:active { cursor: grabbing; }
.provider-chip.active {
    background: var(--primary-dim);
    border-color: var(--primary);
    box-shadow: 0 4px 20px var(--primary-glow);
    transform: scale(1.05);
}
.provider-logo {
    width: 100%; height: 100%;
    padding: 8px;
    object-fit: contain;
    filter: brightness(0.9);
    transition: all 0.3s ease;
    display: block;
}
.provider-chip.active .provider-logo,
.provider-chip:hover .provider-logo {
    filter: brightness(1.05) grayscale(0);
}
.provider-icon { font-size: 22px; line-height: 1; }

/* ── GRID INFO ───────────────────────────────────────────────────────── */
.grid-info {
    padding: 0 32px 14px;
    font-size: 12px; color: var(--text-dim); font-weight: 500;
}

/* ── GAME GRID: 8 card per row di desktop ──────────────────── */
.game-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 16px;
    padding: 0 32px 80px;
    transition: opacity 0.2s ease;
}
@media (max-width: 1400px) { .game-grid { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 1100px) { .game-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px) {
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 20px 40px;
    }
}

/* Scroll reveal animation */
.game-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.25s, box-shadow 0.25s;
}
.game-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.game-grid.grid-transitioning { opacity: 0.4; pointer-events: none; }

/* ── GAME CARD ──────────────────────────────────────────────────────── */
.game-card {
    background: var(--card-bg);
    border-radius: var(--radius-card);
    padding: 12px;
    border: 0.5px solid rgba(255,207,33,0.1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s, box-shadow 0.3s;
    will-change: transform, opacity;
    content-visibility: auto;
    contain-intrinsic-size: 150px 250px;
}
.game-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 16px 40px rgba(0,0,0,0.8), 0 0 20px rgba(255,207,33,0.1);
}

.game-card img {
    width: 100%; aspect-ratio: 1;
    border-radius: 14px; object-fit: cover;
    margin-bottom: 10px;
    display: block;
}

.provider-label {
    position: absolute; top: 18px; left: 18px;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(6px);
    padding: 3px 8px; border-radius: 7px;
    font-size: 9px; font-weight: 800;
    color: var(--primary); text-transform: uppercase;
    z-index: 5; letter-spacing: 0.5px;
}

.win-badge {
    position: absolute; top: 44px; right: 18px;
    background: var(--primary); color: black;
    padding: 3px 8px; border-radius: 7px;
    font-size: 9px; font-weight: 800;
    z-index: 5; opacity: 0;
    transition: opacity 0.4s ease;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* ── RTP TIER STYLES ─────────────────────────────────────────────────── */

/* GACOR (90%+) — green glow border */
.tier-gacor {
    border-color: rgba(52, 199, 89, 0.4) !important;
    box-shadow: 0 0 16px rgba(52, 199, 89, 0.15);
}
.tier-gacor:hover {
    border-color: #34c759 !important;
    box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 24px rgba(52,199,89,0.25);
}

/* RECOMMENDED (80–89%) — subtle green */
.tier-recommended {
    border-color: rgba(104, 255, 104, 0.15) !important;
}

/* WARNING (41–79%) — yellow tint */
.tier-warning {
    border-color: rgba(255, 204, 0, 0.2) !important;
}
.tier-warning:hover {
    border-color: #ffcc00 !important;
    box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 20px rgba(255,204,0,0.2);
}
.tier-warning .game-title { color: #ffcc00; }

/* BLOCKED (<40%) — red, no pointer, dimmed */
.tier-blocked {
    border-color: rgba(255, 59, 48, 0.3) !important;
    cursor: not-allowed !important;
    opacity: 0.75;
}
.tier-blocked:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: rgba(255, 59, 48, 0.5) !important;
}
.tier-blocked img { filter: grayscale(40%) brightness(0.7); }
.tier-blocked .game-title { color: #ff3b30; }

/* Blocked overlay */
.blocked-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 0, 0, 0.82);
    backdrop-filter: blur(4px);
    border-radius: var(--radius-card);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    z-index: 20;
    text-align: center;
    padding: 12px;
}
.blocked-icon { font-size: 28px; }
.blocked-text {
    font-size: 11px; font-weight: 800;
    color: #ff3b30; letter-spacing: 0.5px;
    line-height: 1.4;
}
.blocked-rtp {
    font-size: 13px; font-weight: 700;
    color: rgba(255,59,48,0.7);
    background: rgba(255,59,48,0.1);
    border: 1px solid rgba(255,59,48,0.3);
    border-radius: 8px; padding: 3px 10px;
}

/* Gacor badge — sejajar dengan provider-label (kanan atas) */
.gacor-badge {
    position: absolute; top: 18px; right: 18px;
    background: linear-gradient(135deg, var(--primary), #c0281e);
    color: white; font-size: 9px; font-weight: 900;
    padding: 3px 8px; border-radius: 7px;
    white-space: nowrap; z-index: 8;
    box-shadow: 0 3px 10px var(--primary-glow);
    animation: gacor-pulse 2s ease-in-out infinite;
    letter-spacing: 0.5px;
}

@keyframes gacor-pulse {
    0%, 100% { box-shadow: 0 4px 12px var(--primary-glow); }
    50% { box-shadow: 0 6px 20px rgba(238, 95, 91, 0.7); }
}

.game-title {
    font-size: 13px; font-weight: 600;
    margin-bottom: 8px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.rtp-box { margin-top: 2px; }
.rtp-header {
    display: flex; justify-content: space-between;
    font-size: 11px; font-weight: 700; margin-bottom: 5px;
}
.rtp-label { color: var(--text-dim); }
.rtp-high { color: #34c759; }
.rtp-med  { color: #ffcc00; }
.rtp-low  { color: #ff3b30; }

.rtp-bar-outer {
    width: 100%; height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px; overflow: hidden;
}
.rtp-bar-inner {
    height: 100%; border-radius: 3px;
}

/* ── WIN TOAST (Hotspin style, semi-transparent) ────────────────────── */
.win-toast {
    position: fixed; bottom: 24px; left: 24px;
    background: rgba(5, 20, 5, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(104,255,104,0.4);
    border-radius: 18px;
    padding: 14px 18px;
    z-index: 9999;
    transform: translateX(-130%);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 300px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25), 0 0 20px var(--green-glow);
    pointer-events: none;
}
.win-toast.show { transform: translateX(0); }
.win-toast-inner { display: flex; align-items: center; gap: 12px; }
.toast-img {
    width: 52px; height: 52px;
    border-radius: 12px; object-fit: cover;
    border: 1.5px solid var(--green); flex-shrink: 0;
}
.toast-info { display: flex; flex-direction: column; gap: 2px; }
.toast-title { font-size: 12px; color: var(--text-dim); font-weight: 600; }
.toast-amount { font-size: 16px; font-weight: 800; color: var(--green); }
.toast-user { font-size: 11px; color: var(--text-dim); }

/* ── OVERLAY POPUP (replaces apple-modal) ───────────────────────────── */
.overlay-popup {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    z-index: 2000;
    display: none;
    justify-content: center; align-items: center;
    padding: 20px;
    transition: background 0.35s ease, backdrop-filter 0.35s ease;
}
.overlay-popup.active {
    background: rgba(0,0,0,0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.popup-sheet {
    background: #111a11;
    width: 100%; max-width: 460px;
    border-radius: 32px; padding: 32px 28px 28px;
    border: 1px solid rgba(104,255,104,0.18);
    position: relative;
    transform: scale(0.86) translateY(56px); opacity: 0;
    transition: all 0.42s cubic-bezier(0.175, 0.885, 0.32, 1.28);
    max-height: 90vh; overflow-y: auto;
}
.overlay-popup.active .popup-sheet {
    transform: scale(1) translateY(0); opacity: 1;
}

.popup-close {
    position: absolute; top: 16px; right: 16px;
    background: rgba(255,255,255,0.1);
    border: none; color: white;
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    cursor: pointer; font-size: 15px;
    transition: background 0.2s, transform 0.2s;
    z-index: 5;
}
.popup-close:hover { background: rgba(255,255,255,0.22); transform: scale(1.1); }

/* ── WARNING POPUP ───────────────────────────────────────────────────── */
.popup-warning-sheet { max-width: 380px; text-align: center; }
.popup-icon-big { font-size: 48px; margin-bottom: 12px; }
.popup-title { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.popup-desc { font-size: 14px; color: var(--text-dim); line-height: 1.6; margin-bottom: 22px; }
.popup-actions { display: flex; gap: 12px; }
.popup-btn {
    flex: 1; padding: 13px;
    border: none; border-radius: 14px;
    font-weight: 700; font-size: 14px; cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}
.popup-btn:hover { transform: scale(1.03); opacity: 0.9; }
.popup-btn-cancel { background: rgba(255,255,255,0.1); color: white; }
.popup-btn-confirm { background: var(--green); color: black; }

/* ── SIMULASI POPUP ──────────────────────────────────────────────────── */
.popup-sim-sheet { max-width: 440px; }
.sim-popup-header {
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 22px; padding-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sim-game-img {
    width: 64px; height: 64px;
    border-radius: 14px; object-fit: cover;
    border: 2px solid var(--green); flex-shrink: 0;
}
.sim-game-name { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.sim-game-rtp  { font-size: 13px; font-weight: 700; }

.sim-inputs { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.sim-input-group label {
    display: block; font-size: 12px; font-weight: 700;
    color: var(--text-dim); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px;
}
.sim-input-group input {
    width: 100%; background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px; padding: 11px 14px;
    color: white; font-size: 15px; font-weight: 600; outline: none;
    transition: border-color 0.2s, background 0.2s;
}
.sim-input-group input:focus {
    border-color: var(--primary);
    background: var(--primary-dim);
}

/* Simulasi Result */
.sim-result {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 18px; padding: 18px;
    margin-bottom: 14px;
    animation: fadeIn 0.3s ease;
}
.sim-prob-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 8px;
}
.sim-prob-label { font-size: 12px; color: var(--text-dim); font-weight: 700; text-transform: uppercase; }
.sim-prob-val   { font-size: 22px; font-weight: 900; }
.sim-prob-bar-outer {
    width: 100%; height: 8px;
    background: rgba(255,255,255,0.08);
    border-radius: 4px; overflow: hidden; margin-bottom: 14px;
}
.sim-prob-bar-inner { height: 100%; border-radius: 4px; transition: width 0.5s ease, background 0.5s ease; }
.sim-potensi-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-top: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 12px;
}
.sim-potensi-label { font-size: 12px; color: var(--text-dim); font-weight: 700; text-transform: uppercase; }
.sim-potensi-val   { font-size: 16px; font-weight: 800; color: var(--green); }

/* Recommendation messages */
.rec {
    border-radius: 12px; padding: 12px 14px;
    font-size: 13px; font-weight: 600; line-height: 1.5;
    margin-bottom: 10px;
}
.rec-green { background: var(--primary-dim); border: 1px solid var(--primary); color: #ffffff; }
.rec-yellow { background: rgba(255,204,0,0.1); border: 1px solid rgba(255,204,0,0.3); color: #ffd900; }
.rec-red    { background: rgba(255,59,48,0.1);  border: 1px solid rgba(255,59,48,0.3);  color: #ff6b63; }

.sim-jam-badge {
    display: inline-block;
    background: var(--primary-dim);
    border: 1px solid rgba(255,207,33,0.25);
    color: var(--primary); font-size: 12px; font-weight: 700;
    padding: 6px 14px; border-radius: 50px;
    margin-top: 4px;
}

/* ── POLA MODAL ──────────────────────────────────────────────────────── */
.popup-pola-sheet { max-width: 460px; }

.modal-game-img {
    width: 110px; height: 110px;
    border-radius: 20px; object-fit: cover;
    border: 2.5px solid var(--green);
    margin: 0 auto 14px; display: block;
    box-shadow: 0 0 22px var(--green-glow);
}
.modal-game-name { font-size: 20px; font-weight: 800; text-align: center; margin-bottom: 6px; }
.modal-rtp       { font-size: 15px; font-weight: 700; text-align: center; margin-bottom: 4px; }
.modal-jam {
    background: var(--primary-dim);
    border: 1px solid rgba(255,207,33,0.3);
    padding: 11px 16px; border-radius: 14px;
    text-align: center; font-weight: 700;
    font-size: 14px; color: var(--primary);
    margin-bottom: 20px;
}
.modal-play-btn {
    display: block; width: 100%; padding: 15px;
    background: var(--primary); color: black;
    border-radius: 16px; font-weight: 800;
    text-decoration: none; text-align: center; font-size: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.modal-play-btn:hover { transform: scale(1.02); box-shadow: 0 8px 24px var(--primary-glow); }

/* ── POLA CIRCLES ────────────────────────────────────────────────────── */
.pola-circles-wrap {
    display: flex; flex-wrap: wrap; gap: 12px;
    justify-content: center; margin-bottom: 22px;
}
.pola-circle-item { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.pola-circle {
    width: 62px; height: 62px; border-radius: 50%;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    font-weight: 800; cursor: default;
    transition: transform 0.2s;
    line-height: 1.1;
}
.pola-circle:hover { transform: scale(1.08); }
.pola-circle span  { font-size: 9px; font-weight: 700; opacity: 0.85; text-transform: uppercase; }
.pola-circle strong{ font-size: 17px; }

.circle-green {
    background: radial-gradient(135deg, #34c759, #20a040);
    box-shadow: 0 4px 14px rgba(52,199,89,0.5);
    color: white;
    border: 2px solid rgba(52,199,89,0.6);
}
.circle-red {
    background: radial-gradient(135deg, #ff3b30, #c0281e);
    box-shadow: 0 4px 14px rgba(255,59,48,0.45);
    color: white;
    border: 2px solid rgba(255,59,48,0.5);
}
.pola-circle-label { font-size: 10px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; }

/* ── CARD ACTION BUTTONS ─────────────────────────────────────────────── */
.card-actions {
    display: flex; flex-direction: column; gap: 7px;
    margin-top: 10px;
}
.card-btn {
    width: 100%; padding: 9px 10px;
    border-radius: 12px; font-size: 11px; font-weight: 800;
    border: none; cursor: pointer;
    transition: transform 0.18s, box-shadow 0.18s, opacity 0.18s;
    letter-spacing: 0.2px;
}
.card-btn:hover { transform: scale(1.03); opacity: 0.9; }
.btn-sim {
    background: linear-gradient(135deg, rgba(52,199,89,0.2), rgba(52,199,89,0.1));
    border: 1px solid rgba(52,199,89,0.45);
    color: #34c759;
}
.btn-sim:hover { background: rgba(52,199,89,0.25); box-shadow: 0 4px 14px rgba(52,199,89,0.25); }
.btn-pola {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.85);
}
.btn-pola:hover { background: rgba(255,255,255,0.1); }

/* ── FLOATING BUTTONS (naik dari sticky bar 64px + margin) ──────────── */
.floating-btns {
    position: fixed; right: 20px; bottom: 90px;
    display: flex; flex-direction: column; gap: 12px;
    z-index: 1500;
}
.float-btn {
    width: 50px; height: 50px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    border: none; cursor: pointer;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    transition: transform 0.22s, box-shadow 0.22s;
    text-decoration: none;
}
.float-btn:hover { transform: scale(1.12) translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,0.5); }
.float-wa  { background: #25d366; color: white; }
.float-wa svg { width: 26px; height: 26px; }
.float-top { background: var(--accent-dim); border: 1px solid var(--accent); color: var(--accent); }
.float-top svg { width: 22px; height: 22px; }

/* ── ERROR / 404 ────────────────────────────────────────────────────── */
.error-container {
    background: var(--card-bg); backdrop-filter: var(--blur);
    padding: 50px; border-radius: 40px;
    border: 1px solid rgba(104,255,104,0.2);
    max-width: 500px;
}

/* ── ANIMATIONS ─────────────────────────────────────────────────────── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Scroll Reveal Animation (Balico.id style) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0, 0, 1);
    will-change: transform, opacity;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ── BOTTOM NAV: hanya tablet & smartphone (sembunyikan di desktop) ──── */
.bottom-nav {
    display: none; /* default: tersembunyi di desktop */
    position: fixed; bottom: 0; left: 0; right: 0;
    height: 64px;
    background: rgba(10, 14, 10, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(104,255,104,0.18);
    align-items: center; justify-content: space-around;
    z-index: 2000;
    padding: 0 8px;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.35);
}

/* ── RESPONSIVE GRID BREAKPOINTS ────────────────────────── */
@media (max-width: 1400px) {
    .game-grid { grid-template-columns: repeat(6, 1fr); gap: 14px; }
}
@media (max-width: 1100px) {
    .game-grid { grid-template-columns: repeat(5, 1fr); gap: 12px; }
}
@media (max-width: 1024px) {
    .bottom-nav { display: flex; }
    .floating-btns { bottom: 90px; z-index: 2500; }
    .win-toast    { bottom: 80px; z-index: 2500; }
    .game-grid { padding-bottom: 100px; grid-template-columns: repeat(4, 1fr); gap: 12px; }
}
.bnav-item {
    display: flex; flex-direction: column; align-items: center;
    gap: 3px; text-decoration: none;
    flex: 1; padding: 6px 4px;
    border-radius: 12px;
    transition: background 0.2s;
    color: rgba(255,255,255,0.55);
    font-size: 10px; font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.bnav-item:hover, .bnav-item:active { background: rgba(104,255,104,0.1); color: var(--green); }
.bnav-icon { font-size: 20px; line-height: 1; }
.bnav-label { font-size: 9px; font-weight: 700; }
/* Login item: highlight khusus */
.bnav-login .bnav-icon { font-size: 22px; }
.bnav-login {
    color: var(--green);
    background: rgba(52,199,89,0.1);
    border: 1px solid rgba(52,199,89,0.3);
    border-radius: 14px;
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(52,199,89,0.25);
    padding: 8px 10px;
}

/* ── RESPONSIVE ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    header { padding: 0 18px; gap: 8px; }
    .logo  { font-size: 18px; }
    .search-box { font-size: 13px; max-width: 100%; }
    .hero h1 { font-size: 34px; }
    .hero-stats { gap: 24px; }
    .stat-num { font-size: 22px; }
    .game-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0 18px 100px; }
    .providers-container { padding: 0 18px 20px; gap: 6px; }
    .popular-section { padding: 0 18px 28px; }
    .win-toast { bottom: 80px; left: 16px; max-width: 260px; }
    .floating-btns { right: 14px; bottom: 90px; z-index: 2500; }
    .float-btn { width: 44px; height: 44px; }
    .artikel-grid { grid-template-columns: 1fr; }
    .pola-steps-wrap { gap: 10px; }
    .pola-step-item { min-width: 80px; }
    .dot { width: 14px; height: 14px; }
}

@media (max-width: 480px) {
    .search-box { font-size: 12px; padding: 7px 12px; }
    .search-container { flex: 1; min-width: 0; }
}

/* ── POLA: tiap auto = 1 baris horizontal ────────────────────────────── */
.pola-rows-wrap {
    display: flex; flex-direction: column;
    gap: 10px; margin-bottom: 22px;
    width: 100%;
}
.pola-row {
    display: flex; align-items: center;
    gap: 14px; padding: 8px 14px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    border: 0.5px solid rgba(255,255,255,0.07);
}
.pola-row-label {
    font-size: 12px; font-weight: 800;
    color: rgba(255,255,255,0.75);
    text-transform: uppercase; letter-spacing: 0.4px;
    min-width: 56px; flex-shrink: 0;
}
.pola-row-dots {
    display: flex; flex-direction: row;
    gap: 8px; align-items: center;
}
.dot {
    width: 22px; height: 22px; border-radius: 50%;
    display: inline-block; flex-shrink: 0;
    transition: transform 0.15s;
}
.dot:hover { transform: scale(1.15); }
.dot-green {
    background: radial-gradient(circle, #5eff7e 0%, #1fb840 100%);
    box-shadow: 0 2px 10px rgba(52,199,89,0.75);
}
.dot-red {
    background: radial-gradient(circle, #ff6b62 0%, #c02018 100%);
    box-shadow: 0 2px 10px rgba(255,59,48,0.7);
}

/* ── SIM INPUT HINT ─────────────────────────────────────── */
.sim-input-hint {
    display: block; font-size: 11px; color: var(--text-dim);
    margin-top: 4px; font-weight: 500;
}

/* ── ARTIKEL SECTION ────────────────────────────────────── */
.artikel-section {
    padding: 60px 32px;
    border-top: 1px solid rgba(104,255,104,0.08);
}
.artikel-inner { max-width: 1100px; margin: 0 auto; }
.artikel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 8px;
}
.artikel-card {
    background: var(--card-bg);
    border: 0.5px solid rgba(104,255,104,0.1);
    border-radius: 22px; padding: 24px 20px;
    transition: transform 0.25s, border-color 0.25s;
}
.artikel-card:hover {
    transform: translateY(-4px);
    border-color: rgba(104,255,104,0.35);
}
.artikel-icon {
    font-size: 30px; margin-bottom: 12px;
}
.artikel-card h3 {
    font-size: 15px; font-weight: 800;
    margin-bottom: 10px; color: var(--green);
    line-height: 1.3;
}
.artikel-card p {
    font-size: 13px; color: var(--text-dim);
    line-height: 1.7;
}

/* ── FOOTER ───────────────────────────────────────────── */
.site-footer {
    padding: 40px 32px;
    background: rgba(0,0,0,0.3);
    border-top: 1px solid rgba(104,255,104,0.1);
    text-align: center;
}
.footer-inner { max-width: 600px; margin: 0 auto; }
.footer-logo {
    font-size: 22px; font-weight: 800;
    color: var(--green); margin-bottom: 10px;
}
.footer-logo span { color: white; }
.footer-desc {
    font-size: 13px; color: var(--text-dim);
    line-height: 1.6; margin-bottom: 16px;
}
.footer-copy {
    font-size: 12px; color: rgba(255,255,255,0.3);
    font-weight: 500;
}
