/* ═══════════════════════════════════════════════════════════
   CIT SLOT - Style Sheet
   Mobile-first, clean, modern design
   No framework dependency — lightweight custom CSS
   ═══════════════════════════════════════════════════════════ */

/* ── RESET & BASE ────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6C5CE7;
    --primary-dark: #5A4BD1;
    --accent: #00D2FF;
    --bg: #0F0F1A;
    --bg-card: #1A1A2E;
    --bg-card-hover: #222240;
    --text: #E8E8F0;
    --text-muted: #9090A8;
    --green: #00E676;
    --yellow: #FFD600;
    --red: #FF5252;
    --border: rgba(255,255,255,0.06);
    --radius: 12px;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ── HEADER ──────────────────────────────────────────────── */
.header {
    background: rgba(15,15,26,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--accent);
    background: rgba(0,210,255,0.08);
}

.nav-link.active {
    color: var(--accent);
    background: rgba(0,210,255,0.1);
    border: 1px solid rgba(0,210,255,0.2);
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.accent {
    color: var(--accent);
}

.header-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,230,118,0.1);
    border: 1px solid rgba(0,230,118,0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* ── HERO ────────────────────────────────────────────────── */
.hero {
    padding: 48px 0 40px;
    text-align: center;
    background: linear-gradient(180deg, rgba(108,92,231,0.08) 0%, transparent 100%);
}

.hero h1 {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 28px;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.stat-value {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ── CTA BUTTONS ─────────────────────────────────────────── */
.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
    min-height: 48px;
    -webkit-tap-highlight-color: transparent;
}

.cta-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #8B5CF6 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(108,92,231,0.4);
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(108,92,231,0.5);
}

.cta-primary:active {
    transform: translateY(0);
}

.cta-large {
    padding: 16px 40px;
    font-size: 17px;
    border-radius: 12px;
}

.cta-center {
    text-align: center;
    margin-top: 32px;
}

/* ── URGENCY BAR ─────────────────────────────────────────── */
.urgency-bar {
    background: rgba(255,214,0,0.06);
    border-top: 1px solid rgba(255,214,0,0.1);
    border-bottom: 1px solid rgba(255,214,0,0.1);
    padding: 10px 0;
}

.urgency-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: var(--yellow);
}

.urgency-content .live-dot {
    background: var(--yellow);
}

/* ── SECTION HEADERS ─────────────────────────────────────── */
.section-header {
    text-align: center;
    margin-bottom: 28px;
}

.section-header h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

.section-header p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ── SLOT SECTION ────────────────────────────────────────── */
.slots-section {
    padding: 40px 0;
}

.slots-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

/* ── SLOT CARD ───────────────────────────────────────────── */
.slot-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.slot-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(108,92,231,0.2);
    transform: translateY(-1px);
}

.slot-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.slot-icon {
    font-size: 32px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    flex-shrink: 0;
}

.slot-info {
    flex: 1;
    min-width: 0;
}

.slot-name {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slot-provider {
    font-size: 12px;
    color: var(--text-muted);
}

.slot-status {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.rtp-hot .slot-status, .slot-status.rtp-hot {
    background: rgba(0,230,118,0.1);
    color: var(--green);
}
.rtp-warm .slot-status, .slot-status.rtp-warm {
    background: rgba(255,214,0,0.1);
    color: var(--yellow);
}
.rtp-cold .slot-status, .slot-status.rtp-cold {
    background: rgba(255,82,82,0.1);
    color: var(--red);
}

.slot-card-bottom {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ── RTP BAR ─────────────────────────────────────────────── */
.rtp-bar-wrap {
    width: 100%;
}

.rtp-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.rtp-value {
    font-weight: 700;
    font-size: 16px;
}

.rtp-value.rtp-hot { color: var(--green); }
.rtp-value.rtp-warm { color: var(--yellow); }
.rtp-value.rtp-cold { color: var(--red); }

.rtp-bar {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
    overflow: hidden;
}

.rtp-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s ease;
}

.rtp-fill.rtp-hot { background: linear-gradient(90deg, var(--green), #69F0AE); }
.rtp-fill.rtp-warm { background: linear-gradient(90deg, var(--yellow), #FFAB00); }
.rtp-fill.rtp-cold { background: linear-gradient(90deg, var(--red), #FF8A80); }

.slot-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

/* ── CARD CTA ────────────────────────────────────────────── */
.card-cta {
    display: block;
    text-align: center;
    margin-top: 12px;
    padding: 12px;
    min-height: 44px;
    background: linear-gradient(135deg, var(--primary), #8B5CF6);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.card-cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ── RTP TABLE ───────────────────────────────────────────── */
.rtp-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.rtp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.rtp-table thead {
    background: rgba(255,255,255,0.04);
}

.rtp-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.rtp-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.rtp-table tbody tr {
    transition: background 0.15s ease;
}

.rtp-table tbody tr:hover {
    background: rgba(255,255,255,0.02);
}

.rtp-table tbody tr:last-child td {
    border-bottom: none;
}

.rtp-table .game-name {
    font-weight: 600;
    color: #fff;
}

.rtp-table .rtp-cell {
    font-weight: 700;
    font-size: 15px;
}

.rtp-table .status-cell {
    font-size: 13px;
    font-weight: 600;
}

.rtp-table .time-cell {
    color: var(--text-muted);
    font-size: 13px;
}

/* ── POLA CARDS ──────────────────────────────────────────── */
.pola-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.pola-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.pola-card:hover {
    border-color: rgba(108,92,231,0.25);
    transform: translateY(-1px);
}

.pola-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--border);
}

.pola-game-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pola-game-icon {
    font-size: 28px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
}

.pola-game-name {
    font-weight: 700;
    font-size: 15px;
}

.pola-provider {
    font-size: 12px;
    color: var(--text-muted);
}

.pola-status {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
}

.pola-card-body {
    padding: 14px 16px;
    flex: 1;
}

.pola-jam {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--yellow);
    margin-bottom: 12px;
}

.pola-spins {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pola-spin-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text);
    padding: 6px 10px;
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
}

.pola-spin-row .spin-type {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    min-width: 60px;
}

.pola-card-footer {
    padding: 0 16px 14px;
}

.pola-card-footer .card-cta {
    margin-top: 0;
}

/* ── STEPS (Cara Bermain) ────────────────────────────────── */
.steps-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 640px;
    margin: 0 auto;
}

.step-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}

.step-num {
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), #8B5CF6);
    border-radius: 50%;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
}

.step-body h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.step-body p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── DISCLAIMER BOX ──────────────────────────────────────── */
.disclaimer-box {
    margin-top: 24px;
    padding: 16px 20px;
    background: rgba(255,214,0,0.05);
    border: 1px solid rgba(255,214,0,0.12);
    border-radius: var(--radius);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.disclaimer-box p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ── INFO / TIPS SECTION ─────────────────────────────────── */
.info-section {
    padding: 40px 0;
    background: rgba(255,255,255,0.02);
    border-top: 1px solid var(--border);
}

.tips-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.tip-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.tip-icon {
    font-size: 28px;
    margin-bottom: 10px;
}

.tip-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.tip-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ── BOTTOM CTA SECTION ──────────────────────────────────── */
.bottom-cta {
    padding: 48px 0;
    text-align: center;
    background: linear-gradient(180deg, transparent 0%, rgba(108,92,231,0.06) 100%);
}

.bottom-cta h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.bottom-cta > .container > p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 24px;
}

.cta-note {
    margin-top: 14px;
    font-size: 13px;
    color: var(--yellow);
}

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 18px;
    font-weight: 700;
}

.footer-text {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 400px;
    line-height: 1.6;
}

.footer-copy {
    font-size: 12px;
    color: rgba(144,144,168,0.5);
}

/* ── ANIMATIONS ──────────────────────────────────────────── */
.fade-in {
    opacity: 0;
    transform: translateY(12px);
    animation: fadeInUp 0.4s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Shimmer effect for updating values */
@keyframes shimmer {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.updating {
    animation: shimmer 0.3s ease;
}

/* ── RESPONSIVE — SMALL MOBILE ────────────────────────────── */
@media (max-width: 374px) {
    .header-badge {
        display: none;
    }

    .hero h1 {
        font-size: 22px;
    }

    .hero-sub {
        font-size: 13px;
    }

    .hero-stats {
        gap: 16px;
    }

    .stat-value {
        font-size: 18px;
    }

    .cta-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .cta-large {
        padding: 14px 24px;
        font-size: 15px;
    }

    .slot-card-top {
        flex-wrap: wrap;
        gap: 8px;
    }

    .slot-status {
        font-size: 10px;
        padding: 3px 8px;
    }

    .pola-card-header {
        flex-direction: column;
        gap: 10px;
    }

    .rtp-table {
        font-size: 12px;
    }

    .rtp-table th,
    .rtp-table td {
        padding: 8px 10px;
    }
}

/* ── RESPONSIVE — TABLET+ ───────────────────────────────── */
@media (min-width: 640px) {
    .container {
        padding: 0 24px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .slots-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .pola-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tips-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── RESPONSIVE — DESKTOP ────────────────────────────────── */
@media (min-width: 1024px) {
    .hero h1 {
        font-size: 42px;
    }

    .hero-sub {
        font-size: 16px;
    }

    .slots-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pola-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .tips-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
