/* Theme Variations */
body.theme-ungu {
    --bg-main: #0a0413; --bg-element: rgba(26, 17, 39, 0.6);
    --grad-bg1: #1f0b35; --grad-bg2: #080312;
    --grad-head1: #07010f; --grad-head2: #110522;
}
body.theme-merah {
    --bg-main: #130404; --bg-element: rgba(39, 17, 17, 0.6);
    --grad-bg1: #350b0b; --grad-bg2: #120303;
    --grad-head1: #0f0101; --grad-head2: #220505;
}
body.theme-emas {
    --bg-main: #120902; --bg-element: rgba(41, 30, 10, 0.6);
    --grad-bg1: #352504; --grad-bg2: #120c02;
    --grad-head1: #0d0901; --grad-head2: #221804;
}
body.theme-hijau {
    --bg-main: #021408; --bg-element: rgba(10, 39, 20, 0.6);
    --grad-bg1: #062b14; --grad-bg2: #021207;
    --grad-head1: #010a04; --grad-head2: #041f0f;
}
body.theme-hitam {
    --bg-main: #050505; --bg-element: rgba(30, 30, 30, 0.6);
    --grad-bg1: #222222; --grad-bg2: #000000;
    --grad-head1: #000000; --grad-head2: #111111;
}
body.theme-biru {
    --bg-main: #040813; --bg-element: rgba(17, 26, 45, 0.6);
    --grad-bg1: #091535; --grad-bg2: #030612;
    --grad-head1: #01040f; --grad-head2: #060e22;
}
body.theme-cokelat {
    --bg-main: #130a04; --bg-element: rgba(35, 20, 10, 0.6);
    --grad-bg1: #2a1608; --grad-bg2: #120802;
    --grad-head1: #0f0601; --grad-head2: #1b0e04;
}
body.theme-ocean {
    --bg-main: #020a1a; --bg-element: rgba(10, 25, 45, 0.6);
    --grad-bg1: #0a1f3d; --grad-bg2: #020812;
    --grad-head1: #001233; --grad-head2: #002855;
}
body.theme-ruby {
    --bg-main: #1a0202; --bg-element: rgba(45, 10, 10, 0.6);
    --grad-bg1: #4a0404; --grad-bg2: #120101;
    --grad-head1: #380202; --grad-head2: #660707;
}
body.theme-forest {
    --bg-main: #021a0a; --bg-element: rgba(10, 45, 25, 0.6);
    --grad-bg1: #05331a; --grad-bg2: #011206;
    --grad-head1: #022c0b; --grad-head2: #044a11;
}
body.theme-phantom {
    --bg-main: #000000; --bg-element: rgba(30,30,30,0.6);
    --grad-bg1: #1a1a1a; --grad-bg2: #000000;
    --grad-head1: #111111; --grad-head2: #222222;
}
body.theme-candy {
    --bg-main: #1a0215; --bg-element: rgba(45, 10, 39, 0.6);
    --grad-bg1: #4a0435; --grad-bg2: #12010c;
    --grad-head1: #380228; --grad-head2: #66074b;
}

:root {
    --border-color: rgba(255, 255, 255, 0.08);
    --brand-green: #10b981;
    --brand-green-hover: #0ea5e9;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --font-family: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: radial-gradient(circle at top right, var(--grad-bg1, #1f0b35), var(--grad-bg2, #080312) 70%);
    background-color: var(--bg-main, #0a0413);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-family);
    min-height: 100vh;
}

/* Typography Utilities */
.text-green {
    color: var(--brand-green);
}

/* Header */
.header {
    background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%), 
                linear-gradient(180deg, var(--grad-head1, #07010f) 0%, var(--grad-head2, #110522) 100%);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 16px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 100;
}

.header-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    min-width: 0;
}

.logo a {
    display: block;
    min-width: 0;
}

.logo-img {
    max-height: 52px; /* Enlarge on mobile */
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.auth-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.btn-login, .btn-register {
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
    padding: 10px 24px;
    border-radius: 50px;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-login {
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    background-color: transparent;
}

.btn-login:hover {
    background-color: var(--bg-element);
}

.btn-register {
    color: #000;
    background-color: var(--brand-green);
    border: 1px solid var(--brand-green);
}

.btn-register:hover {
    background-color: #059669;
    color: #fff;
}

/* Main Content Wrapper */
.main-content {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 5; /* On top of snow (z-index 1) */
}

/* Announcement Bar / Marquee */
.announcement-bar {
    width: calc(100% + 32px); /* Full bleed on mobile */
    margin: 0 -16px;
    background-color: var(--bg-element);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    display: flex;
    align-items: center;
    padding: 2px 10px;
    height: 44px; /* Ramping / Slimmer */
}

/* Live Clock Section */
.live-clock-wrapper {
    width: 100%;
    height: 50px;
    margin: 5px auto 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
}

.ticker-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 50px;
    padding: 0 24px;
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.live-clock-wrapper.alternate .ticker-content {
    transform: translateY(-50px);
}

.ticker-content i { font-size: 16px; margin-right: 8px; vertical-align: middle; flex-shrink: 0; }
.ticker-content .time-val { font-size: 14px; font-weight: 900; color: var(--brand-green); letter-spacing: 0.5px; white-space: nowrap; flex-shrink: 0; }
.ticker-content .date-val { font-size: 13px; font-weight: 800; color: #fff; white-space: nowrap; flex-shrink: 0; }
.ticker-content .weather-val, .ticker-content .location-val { font-size: 12px; font-weight: 800; color: #fff; text-transform: uppercase; white-space: nowrap; }
.ticker-content .location-val { display: flex; align-items: center; overflow: hidden; }
.ticker-content .location-val span { overflow: hidden; text-overflow: ellipsis; }
.ticker-content .weather-val { flex-shrink: 0; }
.ticker-content .weather-icon { color: #fbbf24; font-size: 18px; }
.ticker-content .location-icon { color: #3b82f6; font-size: 18px; }

@keyframes tickerBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
.ticker-content.blinking {
    animation: tickerBlink 1s infinite;
}

/* Announcement Bar Overlay Fix */
.announcement-bar {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    border-bottom: 2px solid var(--border-color);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 100;
}

.speaker-icon {
    width: 30px;
    height: 30px;
    background-color: #fff;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    margin-right: 12px;
    position: relative;
    z-index: 2;
}

.speaker-icon i {
    display: inline-block !important;
    transform: scaleX(-1) !important; /* Flipped to face right */
}

/* Visual Sound Wave Effect */
.speaker-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #fff;
    border-radius: 50%;
    z-index: -1;
    animation: speaker-pulse 2s infinite;
}

@keyframes speaker-pulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(2); opacity: 0; }
}

.marquee-container {
    flex: 1;
    overflow: hidden;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    margin-right: 20px;
}

.marquee-container a {
    color: #3b82f6; /* Blue clickable link */
    text-decoration: underline;
    transition: color 0.2s;
}

.marquee-container a:hover {
    color: #60a5fa;
}

/* DateTime Badge */
.datetime-badge {
    background-color: var(--bg-element);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 14px;
    display: flex;
    gap: 12px;
}

/* Slider Controls Area */
.slider-area {
    width: calc(100% + 48px);
    display: block;
    position: relative;
    margin: 10px -24px;
}

.slider-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: rgba(20, 21, 26, 0.7);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.3s ease, background-color 0.2s;
    
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    opacity: 0; /* Hidden until touched/hovered */
}

#prev-slide { left: 16px; }
#next-slide { right: 16px; }

.slider-area:hover .slider-btn {
    opacity: 1;
}

.slider-btn:hover {
    background-color: rgba(20, 21, 26, 0.9);
}

.slider-content {
    width: 100%;
    position: relative;
    overflow: hidden;
    margin: 0;
    background-color: var(--bg-element);
    display: flex;
}

.slide-item {
    width: 100%;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    position: absolute;
    top: 0; left: 0;
}

/* Let the first image dictate the exact height of the container natively */
.slide-item:first-child {
    position: relative;
}

.slide-item.active {
    opacity: 1;
    z-index: 2;
}

.slide-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Provider Nav Section */
.provider-nav-section {
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 5px;
    position: relative;
    gap: 0;
}
.nav-arrow {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: rgba(20, 21, 26, 0.85);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.3s ease, background-color 0.2s;
    
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    opacity: 0; /* Ghost nav */
}

.nav-arrow.left { left: -8px; }
.nav-arrow.right { right: -8px; }

.provider-nav-section:hover .nav-arrow {
    opacity: 1;
}

.nav-arrow:hover { background-color: rgba(20, 21, 26, 1); }

.provider-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 6px 0;
    scrollbar-width: none; /* Firefox */
}
.provider-track::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

/* Search & Filter Bar */
.nav-filters-bar {
    display: flex;
    gap: 12px;
    margin: 0 auto 15px;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 10;
}
.search-wrapper {
    flex: 1;
    position: relative;
    background: #111116;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 50px;
    transition: all 0.3s;
}
.search-wrapper:focus-within {
    border-color: #3b82f6;
    background: rgba(59,130,246,0.05);
}
.search-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 16px;
}
.search-input {
    width: 100%;
    background: transparent;
    border: none;
    padding: 14px 15px 14px 45px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    outline: none;
}
.filter-dropdown {
    background: #111116;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 50px;
    color: var(--text-secondary);
    padding: 0 20px;
    height: 48px;
    font-size: 12px;
    font-weight: 800;
    outline: none;
    cursor: pointer;
    min-width: 120px;
}

@media (max-width: 768px) {
    .nav-filters-bar {
        flex-direction: row;
        gap: 10px;
        padding: 0 16px;
    }
    .search-wrapper { flex: 2; }
    .filter-dropdown { flex: 0.8; min-width: 80px; padding: 0 10px; font-size: 11px; }
}

.hot-games-section {
    margin-bottom: 20px; /* Reduced to tighten space */
    padding-bottom: 10px;
}

.provider-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 50px;
    background-color: var(--bg-element);
    border: 1px solid var(--border-color);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}
.provider-pill:hover {
    background-color: #1a1b21;
}
.news-marquee {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding-left: 20px;
}
.news-marquee span {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 30s linear infinite;
    font-size: 13px;
    font-weight: 800;
    color: var(--text-primary);
    transform: translate3d(0,0,0); /* Force GPU Acceleration for Smoothness */
    will-change: transform;
}
@keyframes marquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

.provider-pill .prov-logo {
    height: 20px;
    max-width: 60px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.provider-pill .prov-name {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

/* Active Glassmorphism State */
.provider-pill.active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.provider-pill.active .prov-name {
    color: #000;
}

/* --- GAME CATALOG GRID --- */
.game-catalog-grid {
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 4%;
    margin-top: 15px;
    padding-bottom: 50px;
}
#top-rank-catalog {
    grid-template-columns: repeat(2, 1fr);
    padding-bottom: 20px;
}
@media (max-width: 767px) {
    #top-rank-catalog .game-card:nth-child(n+3) {
        display: none;
    }
}
.game-catalog-grid, .hot-games-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    max-width: 1600px;
    margin: 20px auto 0;
    width: 100%;
    contain: content; /* Isolate layout, paint and stacking from rest of page */
}
#hot-games-grid {
    margin-bottom: 5px;
}
@media (max-width: 768px) {
    .game-catalog-grid, .hot-games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .hot-games-enclosure {
        padding-bottom: 2px !important;
        margin-bottom: 15px !important;
    }
    #hot-games-grid {
        margin-bottom: 0px !important;
    }
}

.game-card {
    background-color: var(--bg-element);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    z-index: 20;
    transition: transform 0.2s ease, border-color 0.2s ease;
    contain: layout style;
    content-visibility: auto;
    contain-intrinsic-size: 250px;

    /* Lazy reveal: start invisible */
    opacity: 0;
    transform: translateY(18px);
}
/* Triggered per-card by IntersectionObserver */
.game-card.card-visible {
    animation: cardReveal 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes cardReveal {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
.game-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.2);
    will-change: transform;
}

.hot-games-enclosure {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid #f59e0b;
    border-radius: 20px;
    padding: 25px 12px 5px;
    margin: 15px 0 20px;
    position: relative;
    z-index: 10;
    box-shadow: 0 0 40px rgba(245, 158, 11, 0.15);
}

.announcement-header {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    padding: 10px 40px;
    border-radius: 8px;
    font-weight: 900;
    font-size: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    white-space: nowrap;
    border: 2px solid #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    z-index: 5;
    letter-spacing: 1px;
}

.announcement-header::before, .announcement-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    width: 0;
    height: 0;
    border-top: 10px solid #78350f;
}
.announcement-header::before {
    left: 5px;
    border-left: 10px solid transparent;
}
.announcement-header::after {
    right: 5px;
    border-right: 10px solid transparent;
}

.hot-game-glow {
    position: relative;
}

.hot-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #ef4444, #f59e0b);
    color: #fff;
    font-size: 8px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 5;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
    overflow: hidden;
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
}

.rtp-container {
    width: 100%;
    position: relative;
}

.hot-badge::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(30deg);
    animation: badge-shimmer 2.5s infinite;
}

@keyframes badge-shimmer {
    0% { left: -60%; }
    100% { left: 160%; }
}

.provider-badge {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--brand-green);
    font-size: 9px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 4px;
    text-transform: uppercase;
}

.catalog-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    margin: 5px 5% 20px;
}

.catalog-divider::before, .catalog-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.catalog-divider:not(:empty)::before {
    margin-right: 15px;
}

.catalog-divider:not(:empty)::after {
    margin-left: 15px;
}

.game-thumb-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    background-color: #111116; /* Darker placeholder */
}

/* Skeleton Shimmer Effect */
.game-thumb-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 100%
    );
    animation: shimmer 1.2s infinite;
    z-index: 1;
}

/* Stop and hide shimmer when image is finished loading */
.game-thumb-wrapper.img-done::before {
    display: none;
    animation: none;
}

@keyframes shimmer {
    100% { left: 100%; }
}

.game-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0; /* Start invisible for fade-in */
    filter: blur(5px); /* Optional: tiny blur for smoother reveal */
}

.game-thumb.loaded {
    opacity: 1;
    filter: blur(0);
}
    opacity: 0; /* Starts hidden for smooth fade-in */
}
.game-thumb.loaded {
    opacity: 1;
}
.game-thumb.fade-in-lazy {
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.6s ease-in-out;
}
.game-thumb.loaded {
    opacity: 1;
}
.game-card:hover .game-thumb {
    transform: scale(1.1);
}

.hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.game-card:hover .hover-overlay {
    opacity: 1;
}

.btn-lihat-pola {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transform: translateY(10px);
    transition: all 0.3s ease;
}
.game-card:hover .btn-lihat-pola {
    transform: translateY(0);
}
.btn-lihat-pola:hover {
    background: linear-gradient(135deg, #34d399, #10b981);
    transform: scale(1.05) translateY(0);
}

.game-info {
    padding: 8px;
}
.game-title {
    font-size: 13px; /* Restored size for prominence */
    font-weight: 800;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
    text-transform: uppercase;
}
.game-meta-row {
    display: flex;
    justify-content: flex-start; /* Align left to stay next to provider */
    align-items: center;
    gap: 6px; /* Spacing between badges */
    margin-bottom: 4px;
    width: 100%;
}
.hot-badge {
    background: linear-gradient(90deg, #ff4d00, #ff9500);
    color: #fff;
    font-size: 7px;
    font-weight: 900;
    padding: 1px 4px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    gap: 2px;
    box-shadow: 0 0 8px rgba(255, 77, 0, 0.4);
    animation: hot-pulse 1.5s infinite;
}
@keyframes hot-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
.provider-badge-small {
    display: inline-block;
    padding: 1px 5px;
    background: rgba(255, 255, 255, 0.08); /* Slightly more visible box */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    color: var(--text-secondary); /* Less intense than title */
    font-size: 8px; /* Very small as requested */
    font-weight: 900;
    text-transform: uppercase;
}

.rtp-container {
    width: 100%;
}
.rtp-text {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-weight: 600;
}
.rtp-text span {
    color: var(--text-primary);
}

.rtp-bar-bg {
    width: 100%;
    height: 10px; /* Slimmer bar as requested */
    background-color: #0d0915;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}
.rtp-bar-fill {
    height: 100%;
    border-radius: 20px;
    transition: width 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    /* 3D Capsule Gradient + Diagonal Stripes Moving Backward */
    background-image: 
        linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.2) 0%,
            transparent 50%,
            rgba(0, 0, 0, 0.2) 100%
        ),
        linear-gradient(
            -45deg, 
            rgba(255,255,255,0.15) 25%, 
            transparent 25%, 
            transparent 50%, 
            rgba(255,255,255,0.15) 50%, 
            rgba(255,255,255,0.15) 75%, 
            transparent 75%, 
            transparent
        );
    background-size: 100% 100%, 30px 30px;
    animation: barberpole-reverse 1.2s linear infinite;
    overflow: visible;
}

@keyframes barberpole-reverse {
    from { background-position: 0 0, 0 0; }
    to { background-position: 0 0, 30px 0; } /* Moves backward */
}

/* RTP Color Tiers - Premium 3D Base Colors */
.rtp-red { background-color: #ef4444; box-shadow: 0 0 10px rgba(239, 68, 68, 0.3); }
.rtp-red-orange { background-color: #f97316; box-shadow: 0 0 10px rgba(249, 115, 22, 0.3); }
.rtp-orange { background-color: #fbbf24; box-shadow: 0 0 10px rgba(251, 191, 36, 0.3); }
.rtp-light-green { background-color: #a3e635; box-shadow: 0 0 10px rgba(163, 230, 53, 0.3); }
.rtp-dark-green { background-color: #10b981; box-shadow: 0 0 10px rgba(16, 185, 129, 0.3); }
.rtp-super-green { 
    background-color: #00ff88; 
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
}

/* 3D Capsule Highlight & Glow Tail */
.rtp-bar-fill::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%);
    filter: blur(1px);
}

.rtp-bar-fill::after {
    content: '';
    position: absolute;
    right: -2px;
    top: -2px;
    bottom: -2px;
    width: 12px;
    background: #fff;
    border-radius: 50%;
    filter: blur(4px);
    opacity: 0.8;
    animation: barGlowTail 1.5s infinite alternate;
}

/* Premium 3D White Buttons */
.btn-premium-3d-white {
    background: linear-gradient(180deg, #ffffff 0%, #e0e0e0 100%);
    color: #000 !important;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 900;
    font-size: 11px;
    text-transform: uppercase;
    box-shadow: 
        0 4px 0 #b0b0b0,
        0 10px 20px rgba(0,0,0,0.2);
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-premium-3d-white:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 0 #b0b0b0,
        0 12px 25px rgba(0,0,0,0.3);
}

.btn-premium-3d-white:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #b0b0b0;
}

@keyframes barGlowTail {
    from { opacity: 0.4; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1.2); }
}

@keyframes barberpole {
    from { background-position: 20px 0; }
    to { background-position: 0 0; }
}

/* Faster barberpole for super premium */
@keyframes barberpole-fast {
    from { background-position: 0 0, 0 0; }
    to { background-position: 0 0, 60px 0; }
}

/* Super pulse animation for > 95% - faster and brighter */
@keyframes superPulsePremium {
    0% { filter: brightness(1) drop-shadow(0 0 5px rgba(255,255,255,0.2)); opacity: 0.9; }
    50% { filter: brightness(1.6) drop-shadow(0 0 15px rgba(255,255,255,0.5)); opacity: 1; }
    100% { filter: brightness(1) drop-shadow(0 0 5px rgba(255,255,255,0.2)); opacity: 0.9; }
}

.super-pulse {
    animation: superPulsePremium 0.6s ease-in-out infinite, barberpole-fast 0.5s linear infinite !important;
}

/* Edge Sparkle Effect for >95% */
.super-pulse::after {
    content: '';
    position: absolute;
    right: -2px;
    top: 50%;
    width: 6px;
    height: 14px;
    background: #fff;
    border-radius: 4px;
    transform: translateY(-50%);
    animation: sparkEdgeAnimation 0.4s alternate infinite ease-in-out;
}
@keyframes sparkEdgeAnimation {
    0% { height: 10px; opacity: 0.7; transform: translateY(-50%) translateX(0) scaleX(1); }
    100% { height: 18px; opacity: 1; transform: translateY(-50%) translateX(2px) scaleX(1.5); background: #ffffff; }
}

/* --- POLA MODAL --- */
.pola-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.pola-modal.active {
    opacity: 1;
    visibility: visible;
}

.pola-modal-content {
    background: rgba(18, 15, 24, 0.9);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.05);
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    padding: 30px;
    position: relative;
    transform: scale(0.9);
    transition: all 0.3s ease;
}
.pola-modal.active .pola-modal-content {
    transform: scale(1);
}

.btn-close-modal {
    position: absolute;
    top: 15px; right: 15px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s;
}
.btn-close-modal:hover { color: #fff; }

.pola-title {
    text-align: center;
    font-size: 16px;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.pola-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.pola-list li {
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
}
.pola-list .step-num {
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.pola-list b {
    font-size: 14px;
    color: #fff;
    letter-spacing: 0.5px;
}

.pola-red-alert {
    text-align: center;
    padding: 20px;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
}

.provider-pill.active .prov-logo {
    filter: brightness(0); /* Turns logo solid black */
}

/* Search Container */
.search-container {
    width: 100%;
}

.search-input-wrapper {
    background-color: var(--bg-element);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    display: flex;
    align-items: center;
    padding: 8px 8px 8px 24px;
    transition: border-color 0.3s;
}

.search-input-wrapper:focus-within {
    border-color: #3f4451;
}

.search-icon {
    font-size: 20px;
    color: var(--text-primary);
    margin-right: 12px;
}

.search-input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 14px;
    outline: none;
}

.search-input-wrapper input::placeholder {
    color: var(--text-secondary);
}

.btn-search {
    background-color: #21242b;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 10px 30px;
    font-family: var(--font-family);
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-search:hover {
    background-color: #323640;
}

/* Empty State / Center Content */
.empty-state {
    margin-top: 100px;
}

.empty-state h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

/* Desktop Responsiveness */
@media (min-width: 768px) {
    .logo {
        font-size: 32px;
    }
    .header {
        padding: 12px 0;
    }
    .logo-img {
        max-height: 55px;
    }
    .main-content {
        margin: 15px auto;
        padding: 0 16px;
        gap: 15px;
    }
    .announcement-bar {
        width: 100%;
        margin: 0 0 10px 0;
        border-radius: 50px;
        border: 1px solid var(--border-color);
        padding: 0 12px;
        height: 44px;
    }
    .speaker-icon {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
    .btn-login, .btn-register {
        font-size: 14px;
        padding: 8px 20px;
        height: 38px;
        display: flex;
        align-items: center;
    }
    .slider-area {
        width: 100%;
        margin: 10px 0;
    }
    .slider-content {
        border-radius: 12px;
        aspect-ratio: 1900 / 426;
        max-height: none;
    }
    .live-clock-wrapper {
        margin: 5px auto 10px;
        height: 42px;
    }
    .ticker-content {
        min-height: 42px;
    }
    .live-clock-wrapper.alternate .ticker-content {
        transform: translateY(-42px);
    }
    .provider-nav-section {
        gap: 12px;
        margin-top: 10px;
    }
    .nav-arrow {
        position: static;
        transform: none;
        opacity: 1;
        background-color: var(--bg-element);
    }
    .nav-arrow.left, .nav-arrow.right {
        left: auto;
        right: auto;
    }
}
