/* ===================================================
   DreamFlix — Global Shared Stylesheet
   =================================================== */

/* --- Smooth Scroll & Hide Scrollbars --- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
::-webkit-scrollbar { display: none; }
* { -ms-overflow-style: none; scrollbar-width: none; }

:root {
    --brand: #E50914;
    --bg: #000;
    --bg2: #141414;
    --bg3: #1c1c1c;
    --text: #fff;
    --muted: #808080;
    --soft: rgba(255,255,255,0.08);
    --border: rgba(255,255,255,0.1);
    --glass: rgba(14,14,14,0.75);
    --blur: blur(20px);
    --font: 'Inter', system-ui, Arial, sans-serif;
    --r: 10px;
    --sidebar-w: 220px;
    --nav-h: 65px;
    --fast: 0.25s;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ===================================================
   NAVBAR
   =================================================== */
.df-nav {
    position: fixed; top: 0; left: 0; width: 100%; height: var(--nav-h);
    padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent);
    z-index: 3000;
    transition: background var(--fast);
}
.df-nav.scrolled { background: rgba(0,0,0,0.97); border-bottom: 1px solid var(--border); }

/* LOGO — small, no glow, white background removed via mix-blend-mode */
.df-logo {
    width: 110px;
    flex-shrink: 0;
    cursor: pointer;
}
.df-logo img {
    width: 100%;
    display: block;
    mix-blend-mode: screen; /* Makes white bg invisible on dark nav */
    filter: brightness(1.05);
}

.nav-links-top {
    display: flex; gap: 22px; list-style: none; font-size: 0.82rem;
}
.nav-links-top li { 
    color: rgba(255,255,255,0.65); cursor: pointer; transition: color var(--fast);
    white-space: nowrap;
}
.nav-links-top li:hover, .nav-links-top li.active { color: #fff; }
.nav-links-top li.active { font-weight: 700; }

.nav-center {
    flex: 1;
    max-width: 520px;
    margin: 0 20px;
    position: relative;
}
.nav-search {
    width: 100%; padding: 8px 36px 8px 36px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 25px; color: #fff; outline: none; font-size: 0.85rem;
    transition: background var(--fast);
}
.nav-search:focus { background: rgba(255,255,255,0.14); }
.nav-search::placeholder { color: var(--muted); }
.nav-search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 0.85rem; }

.nav-right { display: flex; align-items: center; gap: 24px; padding-left: 20px; }
.nav-right i { cursor: pointer; color: #fff; font-size: 1.1rem; transition: opacity var(--fast); }
.nav-right i:hover { opacity: 0.7; }
.nav-avatar {
    width: 32px; height: 32px; border-radius: 6px;
    background: url('https://upload.wikimedia.org/wikipedia/commons/0/0b/Netflix-avatar.png') center/cover;
    cursor: pointer; flex-shrink: 0;
}

/* ===================================================
   SIDEBAR (Desktop)
   =================================================== */
.df-sidebar {
    position: fixed; top: var(--nav-h); left: 0;
    width: var(--sidebar-w); height: calc(100vh - var(--nav-h));
    background: var(--bg); border-right: 1px solid var(--border);
    padding: 30px 14px; overflow-y: auto;
    z-index: 2000;
    display: none; /* shown via media query */
    flex-direction: column;
    gap: 8px;
}

.sidebar-group { margin-bottom: 25px; position: relative; }
.sidebar-label { font-size: 0.65rem; letter-spacing: 2.5px; color: var(--muted); text-transform: uppercase; padding: 0 12px; margin-bottom: 12px; opacity: 0.6; }

.sidebar-link {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 18px; position: relative;
    color: rgba(255,255,255,0.6); font-size: 0.9rem; cursor: pointer;
    text-decoration: none; border-radius: 14px;
    transition: all 0.28s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    border: 1px solid transparent;
}

/* Modern Red Hover Effect - Inspired by NEO|EDGE */
.sidebar-link:hover {
    background: linear-gradient(95deg, #ff3c00, #e50914);
    color: #fff;
    transform: translateX(8px) scale(1.02);
    border-color: rgba(255, 120, 80, 0.4);
    box-shadow: 0 10px 20px -8px rgba(229, 9, 20, 0.5), 0 0 0 1px rgba(255, 100, 40, 0.2) inset;
}

.sidebar-link.active {
    background: rgba(229, 9, 20, 0.1);
    color: var(--brand);
    font-weight: 700;
    border-color: rgba(229, 9, 20, 0.2);
}

.sidebar-link:hover i {
    transform: scale(1.15) translateX(2px);
}

.sidebar-link i { width: 20px; text-align: center; flex-shrink: 0; transition: transform 0.2s ease; }

/* ===================================================
   PAGE LAYOUT
   =================================================== */
.df-page { padding-top: var(--nav-h); }
.df-page-with-sidebar { padding-left: var(--sidebar-w); }

/* ===================================================
   HERO BILLBOARD
   =================================================== */
.df-hero {
    position: relative; width: 100%; height: 88vh;
    overflow: hidden;
}
.df-hero-img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: center;
}
.df-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.1) 100%),
                linear-gradient(0deg, rgba(0,0,0,1) 0%, transparent 35%);
}
.df-hero-content {
    position: absolute; bottom: 18%; left: 5%; width: 44%;
    z-index: 10;
}
.df-hero-badge { font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; font-weight: 700; }
.df-hero-title { font-size: 4.5rem; font-weight: 900; line-height: 1; margin-bottom: 12px; }
.df-hero-meta { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; margin-bottom: 18px; }
.df-hero-match { color: #46d369; font-weight: 700; }
.df-hero-rating { border: 1px solid rgba(255,255,255,0.4); padding: 1px 6px; font-size: 0.7rem; }
.df-hero-desc { color: rgba(255,255,255,0.85); font-size: 1rem; line-height: 1.6; margin-bottom: 28px; }
.df-hero-actions { display: flex; align-items: center; gap: 12px; }

/* Pill Buttons */
.btn-pill { padding: 12px 30px; border-radius: 50px; border: none; font-weight: 700; font-size: 0.95rem; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: all var(--fast); flex-shrink: 0; }
.btn-pill-white { background: #fff; color: #000; }
.btn-pill-white:hover { background: rgba(255,255,255,0.85); }
.btn-pill-ghost { background: rgba(100,100,110,0.4); color: #fff; backdrop-filter: blur(10px); }
.btn-pill-ghost:hover { background: rgba(100,100,110,0.6); }
.btn-pill-icon { width: 45px; height: 45px; border-radius: 50%; border: 2px solid #fff; background: transparent; color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; transition: all var(--fast); flex-shrink: 0; }
.btn-pill-icon:hover { background: rgba(255,255,255,0.2); }

/* ===================================================
   CONTENT CATALOG
   =================================================== */
.df-catalog { padding: 20px 5% 80px; }
.df-row { margin-bottom: 40px; }
.df-row-header { font-size: 1.15rem; font-weight: 600; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; }
.df-row-more { font-size: 0.75rem; color: var(--muted); cursor: pointer; transition: color var(--fast); }
.df-row-more:hover { color: #fff; }

.df-slider-wrap { position: relative; }
.df-slider {
    display: flex; gap: 10px; overflow-x: auto;
    padding: 10px 0;
    scroll-behavior: smooth;
}

.df-card {
    flex: 0 0 220px; border-radius: var(--r); overflow: hidden;
    background: var(--bg2); cursor: pointer; position: relative;
    transition: transform var(--fast), box-shadow var(--fast);
}
.df-card:hover { transform: scale(1.07); z-index: 100; box-shadow: 0 15px 40px rgba(0,0,0,0.8); }
.df-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.df-card-body { padding: 12px; }
.df-card-title { font-size: 0.85rem; font-weight: 600; }
.df-card-sub { font-size: 0.72rem; color: var(--muted); margin-top: 4px; }
.df-progress { height: 3px; background: rgba(255,255,255,0.15); }
.df-progress-fill { height: 100%; background: var(--brand); }

/* Scroll Arrows */
.df-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px; border-radius: 50%; border: none;
    background: rgba(20,20,20,0.9); backdrop-filter: blur(10px);
    color: #fff; font-size: 1.2rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity var(--fast);
    z-index: 10;
}
.df-slider-wrap:hover .df-arrow { opacity: 1; }
.df-arrow.left { left: -18px; }
.df-arrow.right { right: -18px; }
.df-arrow:hover { background: rgba(229,9,20,0.8); }

/* ===================================================
   GENERIC PAGE SHELL (Series, Movies, etc.)
   =================================================== */
.page-shell { padding: 40px 5%; min-height: 80vh; }
.page-shell h1 { font-size: 2.5rem; font-weight: 900; margin-bottom: 10px; }
.page-shell .page-subtitle { color: var(--muted); margin-bottom: 40px; }

/* Tag Filters (chips) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 35px; }
.chip { padding: 8px 22px; border-radius: 50px; background: var(--soft); border: 1px solid var(--border); font-size: 0.82rem; cursor: pointer; transition: all var(--fast); white-space: nowrap; }
.chip:hover { background: rgba(255,255,255,0.12); }
.chip.active { background: var(--brand); border-color: var(--brand); font-weight: 700; }

/* Content Grid */
.df-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.df-grid-card { border-radius: var(--r); overflow: hidden; background: var(--bg2); cursor: pointer; transition: transform var(--fast); }
.df-grid-card:hover { transform: scale(1.04); }
.df-grid-card img { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; }
.df-grid-card-body { padding: 10px; }
.df-grid-card-title { font-size: 0.82rem; font-weight: 600; }
.df-grid-card-meta { font-size: 0.7rem; color: var(--muted); margin-top: 3px; }

/* Empty State */
.add-fav-btn { transition: none !important; }
.empty-state { text-align: center; padding: 80px 20px; color: var(--muted); }
.empty-state .icon { font-size: 3.5rem; margin-bottom: 20px; }
.empty-state h3 { font-size: 1.4rem; color: #fff; margin-bottom: 10px; }
.empty-state p { font-size: 0.9rem; max-width: 400px; margin: 0 auto; line-height: 1.6; }

/* Settings */
.settings-section { background: var(--bg2); border-radius: var(--r); padding: 25px; margin-bottom: 20px; }
.settings-section h3 { font-size: 1rem; font-weight: 700; margin-bottom: 20px; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.settings-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.settings-row:last-child { border: none; }
.settings-label { font-size: 0.88rem; }
.settings-sub { font-size: 0.72rem; color: var(--muted); }
.toggle { width: 44px; height: 24px; background: rgba(255,255,255,0.2); border-radius: 50px; position: relative; cursor: pointer; flex-shrink: 0; }
.toggle.on { background: var(--brand); }
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: left var(--fast); }
.toggle.on::after { left: 23px; }

/* Friends Section */
.friend-card { display: flex; align-items: center; gap: 15px; padding: 15px; background: var(--bg2); border-radius: var(--r); margin-bottom: 12px; }
.friend-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--bg3); flex-shrink: 0; }
.friend-info h4 { font-size: 0.9rem; }
.friend-info p { font-size: 0.75rem; color: var(--muted); }
.friend-watching { margin-left: auto; font-size: 0.72rem; color: var(--brand); white-space: nowrap; }

/* ===================================================
   LIQUID GLASS MOBILE DOCK (Bottom Navigation)
   =================================================== */
.df-mobile-bar {
    display: none;
    position: fixed; bottom: 15px; left: 50%; transform: translateX(-50%);
    width: 95%; max-width: 500px; height: 68px;
    z-index: 5000;
}

.liquidGlass-wrapper {
    position: relative; width: 100%; height: 100%;
    background: rgba(12, 12, 12, 0.95); /* Reduced glassmorphism for better visibility */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.6);
    overflow: hidden;
    display: flex; align-items: center; justify-content: space-around;
}

/* Glass Detail Layers Reduced */
.liquidGlass-effect { position: absolute; inset: 0; filter: url('#glass-distortion'); pointer-events: none; opacity: 0.15; }
.liquidGlass-tint { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(255,255,255,0.02), transparent); pointer-events: none; }
.liquidGlass-shine { display: none; } /* Simplified */

.liquidGlass-icons {
    display: flex; width: 100%; height: 100%;
    align-items: center; justify-content: space-around;
    padding: 0 10px; z-index: 5;
}

.mobile-tab {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    color: #fff; /* Default All White */
    cursor: pointer; text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.2s;
    flex: 1; padding: 10px 0;
}
.mobile-tab i { font-size: 1.25rem; transition: transform 0.2s; }
.mobile-tab span { font-size: 0.58rem; font-weight: 500; opacity: 0.8; }

/* Magnification Effect */
.mobile-tab:hover { transform: translateY(-8px) scale(1.25); }

/* RGB Diamond Effect */
@keyframes rgb-flow {
    0% { color: #ff0000; }
    20% { color: #ffff00; }
    40% { color: #00ff00; }
    60% { color: #00ffff; }
    80% { color: #0000ff; }
    100% { color: #ff0000; }
}

.rgb-icon {
    animation: rgb-flow 3s linear infinite !important;
    text-shadow: 0 0 8px rgba(255,255,255,0.2) !important;
}

/* Home stays white, Leaderboard goes Red, Subs go RGB */
.mobile-tab.active i { color: var(--brand); text-shadow: 0 0 15px rgba(229,9,20,0.5); }
.mobile-tab-home.active i { color: #fff !important; text-shadow: none !important; }
.mobile-tab-fans i { color: var(--brand) !important; text-shadow: 0 0 10px rgba(229,9,20,0.3); }

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (min-width: 1024px) {
    .df-sidebar { display: flex; }
    .df-page-with-sidebar { padding-left: var(--sidebar-w); }
    .nav-links-top { display: none; }
    .nav-center { display: block; }
}

@media (max-width: 1023px) {
    .df-sidebar { display: none; }
    .df-page-with-sidebar { padding-left: 0; }
    .nav-center { display: none; }
    .nav-links-top { display: flex; gap: 18px; font-size: 0.78rem; padding-right: 10px; }
    .df-mobile-bar { display: block; }
    body { padding-bottom: 95px; }

    .df-hero-content {
        left: 0; right: 0; width: 100%; text-align: center;
        padding: 0 20px; bottom: 15%;
    }
    .df-hero-title { font-size: 2rem; margin-bottom: 8px; line-height: 1.1; }
    .df-hero-meta { justify-content: center; gap: 15px; margin-bottom: 25px; }
    .df-hero-actions { justify-content: center; }

    .df-hero { height: 65vh; }
    .df-hero-img { object-position: center top; }
    .df-hero-desc { display: none; } /* Cleaner on mobile */

    .df-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .df-card { flex: 0 0 160px; }

    /* Fix mobile header items */
    .df-nav { padding: 0 12px !important; }
    .nav-right { gap: 8px; padding-left: 0; margin-right: 8px; }
    .nav-right i.fa-bell { display: none; }
    .nav-avatar { margin-left: 0; }

    /* Leaderboard Title Fix */
    .page-shell h1.leaderboard-title { 
        font-size: 1.5rem; flex-direction: column; text-align: center; justify-content: center;
        gap: 10px; margin-bottom: 5px;
    }
    .page-shell .page-subtitle { text-align: center; font-size: 0.85rem; }

    /* Teleparty Spacing */
    .tp-soon-page { padding-top: 100px !important; }

    /* Table Column Hider */
    .hide-mobile { display: none !important; }
}

@media (max-width: 480px) {
    .df-logo { width: 90px; }
    .df-hero-title { font-size: 2.2rem; }
    .btn-pill { padding: 10px 22px; font-size: 0.85rem; }
    .df-catalog { padding: 15px 4% 80px; }
}

/* ===================================================
   ULTRA-PREMIUM UI EFFECTS (Liquid Card Glow & Animated Inputs)
   =================================================== */

:root {
    --light-size: 300px;
}

/* Card Glow Effect */
.df-card, .df-grid-card {
    position: relative;
    transition: transform 0.3s;
}

.df-card:before, .df-grid-card:before {
    content: "";
    background-image: 
        conic-gradient(from 0deg at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        #FFBD8C 0%, #E50914 11%, #E50914 15%, #F882FF 27%, #F882FF 31%, #8785FE 42%, #8785FE 46%, #9AFCFF 55%, #9AFCFF 59%, #99FD9C 70%, #99FD9C 74%, #FFFD84 87%, #FFFD84 91%, #FFBD8C 100%), 
        radial-gradient(calc(var(--light-size)*1.5) circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(255,255,255,.7), rgba(0, 0, 0, .5) 50%), 
        radial-gradient(calc(var(--light-size)*1.5) circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        transparent, rgba(33,22,44,0.3) 60%, transparent 120%);
    background-blend-mode: hue, color-dodge;
    border-radius: inherit;
    opacity: 0;
    width: calc(100% + 4px); height: calc(100% + 4px);
    position: absolute; left: -2px; top: -2px;
    z-index: -1;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.df-card:hover:before, .df-grid-card:hover:before {
    opacity: 1;
}

/* Expandable Premium Button */
button.expand {
    --button-height: 48px;
    overflow: hidden; outline: none;
    background-color: #1a1a1a;
    border-radius: 12px;
    padding: 12px 25px;
    font-size: 0.95rem;
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    cursor: pointer; position: relative;
    transition: padding 0.3s, background 0.3s;
    font-weight: 600;
}
button.expand:hover { background: #222; }

.expand-icon {
    position: absolute; top: 0; right: 0;
    height: var(--button-height);
    width: var(--button-height);
    border-left: 1px solid rgba(255,255,255,0.1);
    display: flex; justify-content: center; align-items: center;
    transform: translateX(calc(var(--button-height) + 1px));
    transition: transform 0.3s;
}
.expand-icon svg { width: 14px; height: 14px; transition: transform 0.3s; }
.expand-icon svg.second { display: none; transform: scale(0); }

button.expand:hover, button.expand.loading { padding-right: calc(25px + var(--button-height)); }
button.expand:hover > .expand-icon, button.expand.loading > .expand-icon { transform: translateX(0); }
button.expand.loading > .expand-icon > svg { transform: scale(0); }

.loader {
    width: 24px; height: 24px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: #fff;
    border-radius: 50%;
    animation: rotate 0.8s linear infinite;
    position: absolute; opacity: 0; transition: opacity 0.3s;
}
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

button.expand.loading span.loader { opacity: 1; }
button.expand.loaded span.loader { opacity: 0 !important; }
button.expand.loaded .expand-icon svg.first { display: none; }
button.expand.loaded .expand-icon svg.second { display: block; transform: scale(1.5); }

/* Premium Switches & Checkboxes */
.cb-label, .rb-label, .sw-label {
    --toggle: rgba(255,255,255,0.05);
    --toggle-border: rgba(255,255,255,0.2);
    --toggle-inner: #fff;
    position: relative; cursor: pointer; display: inline-flex; align-items: center;
    gap: 12px;
}
.cb-label input, .rb-label input, .sw-label input { display: none; }

.custom-switch {
    width: 44px; height: 24px;
    background: var(--toggle);
    border: 1px solid var(--toggle-border);
    border-radius: 20px;
    transition: background 0.3s, border-color 0.3s;
    position: relative;
}
.custom-switch:after {
    content: ""; position: absolute; top: 3px; left: 3px;
    width: 16px; height: 16px; background: #fff;
    border-radius: 50%; transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.sw-label input:checked + .custom-switch { background: var(--brand); border-color: var(--brand); }
.sw-label input:checked + .custom-switch:after { transform: translateX(20px); }

.custom-checkbox { width: 22px; height: 22px; border: 2px solid var(--toggle-border); border-radius: 6px; position: relative; transition: 0.3s; }
.sw-label input:checked + .custom-checkbox { background: var(--brand); border-color: var(--brand); }
.sw-label input:checked + .custom-checkbox:after {
    content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900;
    font-size: 0.7rem; color: #fff; position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
}

/* ===================================================
   GALACTIC WATCH BUTTON (Hero Section)
   =================================================== */
.galaxy-button {
    --transition: 0.25s;
    --spark: 1.8s;
    --hue: 0; /* DreamFlix Red */
    --active: 0;
    position: relative; scale: calc(1 + (var(--active) * 0.1));
    transition: scale var(--transition); display: inline-block;
}
.galaxy-button button {
    --cut: 0.1em;
    --bg: radial-gradient(120% 120% at 126% 126%, hsl(var(--hue) calc(var(--active) * 97%) 98% / calc(var(--active) * 0.9)) 40%, transparent 50%) calc(100px - (var(--active) * 100px)) 0 / 100% 100% no-repeat, 
          radial-gradient(120% 120% at 120% 120%, hsl(var(--hue) calc(var(--active) * 97%) 70% / calc(var(--active) * 1)) 30%, transparent 70%) calc(100px - (var(--active) * 100px)) 0 / 100% 100% no-repeat,
          hsl(var(--hue) calc(var(--active) * 100%) calc(12% - (var(--active) * 8%)));
    background: var(--bg);
    font-size: 0.95rem; font-weight: 700; border: 0; cursor: pointer;
    padding: 12px 28px; display: flex; align-items: center; gap: 10px;
    white-space: nowrap; border-radius: 2rem; position: relative;
    box-shadow: 0 0 calc(var(--active) * 3em) calc(var(--active) * 1em) hsl(var(--hue) 97% 61% / 0.5);
    transition: box-shadow var(--transition), scale var(--transition), background var(--transition);
    transform-style: preserve-3d; perspective: 100vmin; overflow: hidden;
    color: #fff;
}
.galaxy-button:hover { --active: 1; }
.galaxy-button:active { scale: 1; }

.star {
    height: calc(var(--size) * 1px); aspect-ratio: 1;
    background: white; border-radius: 50%; position: absolute;
    opacity: var(--alpha); top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotate(10deg) rotate(0deg) translateY(calc(var(--distance) * 1px));
    animation: orbit calc(var(--duration) * 1s) calc(var(--delay) * -1s) infinite linear;
}
@keyframes orbit { to { transform: translate(-50%, -50%) rotate(10deg) rotate(360deg) translateY(calc(var(--distance) * 1px)); } }
.galaxy {
    position: absolute; width: 100%; aspect-ratio: 1;
    top: 50%; left: 50%; translate: -50% -50%;
    overflow: hidden; opacity: var(--active); transition: opacity var(--transition);
}
.galaxy__ring {
    height: 200%; width: 200%; position: absolute;
    top: 50%; left: 50%; border-radius: 50%;
    transform: translate(-28%, -40%) rotateX(-24deg) rotateY(-30deg) rotateX(90deg);
    transform-style: preserve-3d;
}
.spark {
    position: absolute; inset: 0; border-radius: 2rem; rotate: 0deg;
    overflow: hidden; mask: linear-gradient(white, transparent 50%);
    animation: flip calc(var(--spark) * 2) infinite steps(2, end);
}
@keyframes flip { to { rotate: 360deg; } }
.spark:before {
    content: ""; position: absolute; width: 200%; aspect-ratio: 1;
    top: 0%; left: 50%; z-index: -1; translate: -50% -15%;
    rotate: 0; transform: rotate(-90deg);
    opacity: calc((var(--active)) + 0.4);
    background: conic-gradient(from 0deg, transparent 0 340deg, white 360deg);
    transition: opacity var(--transition);
    animation: rotate-spark var(--spark) linear infinite both;
}
@keyframes rotate-spark { to { transform: rotate(90deg); } }
.backdrop { position: absolute; inset: 0.1em; background: var(--bg); border-radius: 2rem; transition: background var(--transition); }
.text {
    position: relative; z-index: 2;
    display: flex; align-items: center; gap: 8px;
    color: hsl(0 0% calc(80% + (var(--active) * 20%)));
}
.text i { font-size: 0.8rem; }

/* ===================================================
   SKELETON LOADING SYSTEM
   =================================================== */
.skeleton {
    background: linear-gradient(90deg, #121212 25%, #1d1d1d 50%, #121212 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite linear;
    border-radius: 8px;
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    flex: 0 0 160px; height: 240px; border-radius: 8px;
}

.skeleton-hero {
    width: 100%; height: 70vh; background: #121212;
    display: flex; flex-direction: column; justify-content: flex-end; padding: 5%;
}

.skeleton-line { height: 12px; margin-bottom: 10px; border-radius: 6px; }
.skeleton-line.title { height: 40px; width: 40%; margin-bottom: 20px; }
.skeleton-line.desc { height: 14px; width: 60%; }

/* ===================================================
   PREMIUM & SUBSCRIPTIONS STYLES
   =================================================== */

/* Gold Member - Red Glow */
.user-gold {
    color: #ff3c00 !important;
    text-shadow: 0 0 12px rgba(255, 60, 0, 0.5);
    font-weight: 800;
}

/* Diamant Pro Member - RGB Animation */
@keyframes rgb-text {
    0% { color: #ff0000; text-shadow: 0 0 15px rgba(255,0,0,0.6); }
    20% { color: #ff8000; }
    40% { color: #ffff00; }
    60% { color: #00ff00; }
    80% { color: #0000ff; }
    100% { color: #ff0000; text-shadow: 0 0 15px rgba(255,0,0,0.6); }
}
.user-diamant {
    animation: rgb-text 4s linear infinite;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.crown-icon {
    color: #FFD700;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

/* Pulsing Button */
@keyframes pulse-btn {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.6); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(229, 9, 20, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(229, 9, 20, 0); }
}
.pulse-premium {
    animation: pulse-btn 2s infinite;
}

/* Subscription Cards - Enhanced */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
    max-width: 900px;
}
.pricing-card {
    background: rgba(14,14,14,0.85);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 28px;
    padding: 60px 45px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(40px);
}
.pricing-card:hover {
    transform: translateY(-12px);
}

.pricing-card.gold {
    border: 1px solid rgba(255, 60, 0, 0.2);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.pricing-card.gold:hover {
    border-color: rgba(255, 60, 0, 0.6);
    box-shadow: 0 30px 80px rgba(255, 60, 0, 0.15);
}

.pricing-card.diamant {
    border: 1px solid rgba(0, 255, 255, 0.15);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.pricing-card.diamant:hover {
    border-color: rgba(0, 255, 255, 0.6);
    box-shadow: 0 30px 80px rgba(0, 255, 255, 0.15);
}

/* Shiny Sweep Animation for Buttons */
@keyframes shiny-sweep {
    0% { transform: translateX(-200%) skew(-30deg); }
    15% { transform: translateX(200%) skew(-30deg); }
    100% { transform: translateX(200%) skew(-30deg); }
}
.btn-shiny {
    position: relative;
    overflow: hidden;
}
.btn-shiny::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 60px; height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shiny-sweep 4s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.price-value {
    font-size: 3.5rem;
    font-weight: 900;
    margin: 25px 0;
    letter-spacing: -2px;
}
.price-value span {
    font-size: 1.1rem;
    color: var(--muted);
    font-weight: 500;
    letter-spacing: 0;
}
.benefit-list {
    list-style: none;
    text-align: left;
    margin: 40px 0;
    font-size: 0.95rem;
}
.benefit-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255,255,255,0.7);
}
.benefit-list li strong { color: #fff; }
.benefit-list i {
    color: var(--brand);
    font-size: 0.85rem;
    width: 20px;
    text-align: center;
}

/* Leaderboard Page */
.leaderboard-table {
    width: 100%;
    margin-top: 30px;
    border-collapse: collapse;
}
.leaderboard-header {
    background: rgba(255,255,255,0.03);
}
.leaderboard-header th {
    text-align: left;
    padding: 18px 20px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--muted);
}
.leaderboard-row {
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.2s;
}
.leaderboard-row:hover {
    background: rgba(255,255,255,0.02);
}
.leaderboard-item {
    padding: 15px 20px;
    font-size: 0.9rem;
}
.rank-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.75rem;
}
.rank-1 { background: linear-gradient(135deg, #FFD700, #FFA500); color: #000; }
.rank-2 { background: linear-gradient(135deg, #C0C0C0, #808080); color: #000; }
.rank-3 { background: linear-gradient(135deg, #CD7F32, #8B4513); color: #000; }

/* ===================================================
   INFO MODAL STYLES
   =================================================== */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.85);
    z-index: 6000; display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(10px);
}
.info-content-wrap {
    background: #181818; width: 90%; max-width: 850px;
    border-radius: 12px; overflow: hidden; position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.9);
}
.close-info {
    position: absolute; top: 20px; right: 20px; width: 50px; height: 50px;
    background: rgba(30, 30, 30, 0.8); border-radius: 50%; color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 100000 !important; font-size: 1.5rem;
    transition: 0.15s; border: 1px solid rgba(255,255,255,0.2);
    pointer-events: all; backdrop-filter: blur(5px);
}
.close-info:hover { background: #E50914; transform: scale(1.1); border-color: #E50914; }
.info-banner { height: 450px; position: relative; }
.info-banner img { width: 100%; height: 100%; object-fit: cover; }
.info-banner-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(0deg, #181818 0%, transparent 50%),
                linear-gradient(90deg, rgba(24,24,24,0.8) 0%, transparent 60%);
}
.info-banner-detail { position: absolute; bottom: 40px; left: 40px; width: 80%; }
.info-banner-detail h2 { font-size: 3rem; font-weight: 900; margin-bottom: 10px; }
.info-meta { display: flex; align-items: center; gap: 15px; font-size: 0.95rem; }

.info-body { padding: 40px; }
.info-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }

@media (max-width: 768px) {
    .modal-overlay { align-items: flex-start; padding-top: 80px; }
    .info-content-wrap { width: 82%; }
    .close-info { top: 12px; right: 12px; width: 34px; height: 34px; font-size: 1.1rem; }
    .info-banner { height: 260px; }
    .info-banner-detail h2 { font-size: 1.7rem; }
    .info-grid { grid-template-columns: 1fr; gap: 20px; }
    .info-body { padding: 25px; }
}

/* ===================================================
   CONTINUOUS CONVERSION BUTTON ANIMATIONS
   =================================================== */
@keyframes btn-shimmer-sweep {
    0% { transform: skewX(-45deg) translateX(-250%); }
    100% { transform: skewX(-45deg) translateX(250%); }
}

@keyframes btn-glow-pulse {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.02); filter: brightness(1.15); }
}

.btn-shiny {
    position: relative !important;
    overflow: hidden !important;
    z-index: 1;
}

.btn-shiny::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 50px; height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-45deg);
    animation: btn-shimmer-sweep 3s infinite linear;
    pointer-events: none;
    z-index: 2;
}

/* Specific pulse for CTAs */
.cta-btn-xl.btn-shiny {
    animation: btn-glow-pulse 2s infinite ease-in-out;
}
.tp-btn-red.btn-shiny {
    animation: btn-glow-pulse 2s infinite ease-in-out;
}
