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


@font-face {
    font-family: 'Super Pandora';
    src: url('Super Pandora.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-dark: #090f1d;
    --card-bg: rgba(15, 25, 48, 0.65);
    --card-border: rgba(162, 210, 255, 0.15);
    --card-border-hover: rgba(162, 210, 255, 0.35);
    
    
    --pastel-blue-light: #d0ebff;
    --pastel-blue: #a5d8ff;
    --pastel-blue-medium: #74c0fc;
    --pastel-blue-dark: #339af0;
    --pastel-indigo: #bac8ff;
    --pastel-purple: #d0bfff;
    --pastel-cyan: #99e9f2;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --font-heading: 'Super Pandora', cursive, sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-blue: 0 8px 32px 0 rgba(116, 192, 252, 0.15);
    --shadow-blue-glow: 0 0 25px rgba(165, 216, 255, 0.25);
}


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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}


.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #080c16 0%, #03050a 100%);
}

.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(160px);
    opacity: 0.18;
    mix-blend-mode: screen;
    animation: float 45s infinite ease-in-out alternate;
}

.blob1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--pastel-blue-medium) 0%, rgba(116, 192, 252, 0) 70%);
    top: -10%;
    left: -10%;
    animation-duration: 50s;
}

.blob2 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--pastel-purple) 0%, rgba(208, 191, 255, 0) 70%);
    bottom: -15%;
    right: -10%;
    animation-duration: 60s;
    animation-delay: -10s;
}

.blob3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--pastel-cyan) 0%, rgba(153, 233, 242, 0) 70%);
    top: 40%;
    left: 45%;
    animation-duration: 40s;
    animation-delay: -20s;
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: 
        linear-gradient(rgba(165, 216, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(165, 216, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.7;
    pointer-events: none;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    33% {
        transform: translate(30px, -45px) scale(1.08) rotate(120deg);
    }
    66% {
        transform: translate(-25px, 25px) scale(0.95) rotate(240deg);
    }
    100% {
        transform: translate(0, 0) scale(1) rotate(360deg);
    }
}


::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(165, 216, 255, 0.2);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(165, 216, 255, 0.4);
}


header {
    width: 100%;
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(9, 15, 29, 0.7);
    border-bottom: 1px solid rgba(162, 210, 255, 0.1);
}

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

.logo {
    flex: 1 0 200px; 
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    line-height: 1; 
}

.nav-toggle-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--pastel-blue);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 101;
    padding: 0.5rem;
    transition: var(--transition-smooth);
}

.nav-tabs {
    flex: 0 1 auto;
    display: flex;
    gap: 0.5rem;
    background: rgba(15, 25, 48, 0.8);
    padding: 0.4rem;
    border-radius: 30px;
    border: 1px solid rgba(162, 210, 255, 0.1);
}

.header-actions {
    flex: 1 0 200px; 
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}


.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--pastel-blue-medium);
    object-fit: cover;
    box-shadow: var(--shadow-blue);
    transition: var(--transition-smooth);
    display: block;
}

.logo:hover .logo-img {
    transform: scale(1.08) rotate(6deg);
    border-color: var(--pastel-blue-light);
    box-shadow: var(--shadow-blue-glow);
}

.footer-logo-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--pastel-blue-medium);
    object-fit: cover;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-primary);
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--pastel-blue-light) 0%, var(--pastel-blue-medium) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(116, 192, 252, 0.2);
    display: inline-block;
    margin: 0;
    padding: 0;
    line-height: 1;
}

@keyframes bounce-gentle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}



.tab-btn {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.6rem 1.6rem;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    color: var(--pastel-blue);
    background: rgba(165, 216, 255, 0.05);
}

.tab-btn.active {
    color: #090f1d;
    background: transparent;
    box-shadow: none;
}


.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.live-badge {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    letter-spacing: 0.5px;
}

.live-dot {
    width: 7px;
    height: 7px;
    background-color: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 8px #ef4444;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 12px #ef4444; }
    100% { transform: scale(0.95); opacity: 0.5; }
}

.settings-btn {
    background: rgba(165, 216, 255, 0.1);
    border: 1px solid rgba(165, 216, 255, 0.2);
    color: var(--pastel-blue);
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.settings-btn:hover {
    background: var(--pastel-blue);
    color: var(--bg-dark);
    box-shadow: var(--shadow-blue-glow);
}


main {
    max-width: 1300px;
    margin: 2rem auto 0;
    padding: 0 1.5rem;
    width: 100%;
    flex: 1;
}


#app-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.tab-content {
    display: none;
    opacity: 0;
}

.tab-content.active {
    display: block;
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpFade {
    0% { 
        opacity: 0; 
        transform: translateY(20px) scale(0.98); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}


.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(16px);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: var(--card-border-hover);
}


.hero-section {
    display: block;
    margin-bottom: 2.5rem;
}

@media (max-width: 900px) {
    .hero-section {
        grid-template-columns: 1fr;
    }
}

.hero-main {
    position: relative;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hero-profile-container {
    position: relative;
    width: 140px;
    height: 140px;
    margin-bottom: 1.5rem;
    align-self: flex-start;
}

.hero-profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--pastel-blue-medium);
    object-fit: cover;
    box-shadow: 0 0 25px rgba(116, 192, 252, 0.3);
    transition: var(--transition-smooth);
}

.hero-profile-img:hover {
    transform: scale(1.05);
    border-color: var(--pastel-blue-light);
    box-shadow: 0 0 35px rgba(165, 216, 255, 0.5);
}

.hero-badge-verified {
    position: absolute;
    bottom: 0px;
    right: -10px;
    background: linear-gradient(135deg, var(--pastel-blue-medium) 0%, var(--pastel-blue-dark) 100%);
    color: var(--bg-dark);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

@keyframes float-logo {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--pastel-blue-light) 0%, var(--pastel-blue) 40%, var(--pastel-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    letter-spacing: 2px;
}

.hero-tagline {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 550px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--pastel-blue) 0%, var(--pastel-blue-medium) 100%);
    color: var(--bg-dark);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem 2rem;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-blue-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(165, 216, 255, 0.4);
}

.btn-secondary {
    background: rgba(165, 216, 255, 0.08);
    color: var(--pastel-blue);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.85rem 2rem;
    border-radius: 30px;
    border: 1px solid rgba(165, 216, 255, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background: rgba(165, 216, 255, 0.15);
    border-color: var(--pastel-blue);
    transform: translateY(-2px);
}


.stream-widget {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--pastel-blue);
    letter-spacing: 0.5px;
}

.stream-preview {
    width: 100%;
    height: 180px;
    background: radial-gradient(circle at center, #1b2d4f 0%, #0a1122 100%);
    border-radius: 12px;
    border: 1px solid rgba(165, 216, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.stream-preview::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: linear-gradient(45deg, transparent, rgba(165, 216, 255, 0.05), transparent);
    animation: shine 4s infinite linear;
}

@keyframes shine {
    0% { transform: translate(-100%, -100%) rotate(45deg); }
    100% { transform: translate(100%, 100%) rotate(45deg); }
}

.preview-play {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: rgba(165, 216, 255, 0.15);
    border: 2px solid var(--pastel-blue);
    color: var(--pastel-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 2;
}

.preview-play:hover {
    transform: scale(1.1);
    background: var(--pastel-blue);
    color: var(--bg-dark);
    box-shadow: var(--shadow-blue-glow);
}

.preview-status {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    z-index: 2;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.social-btn {
    background: rgba(15, 25, 48, 0.6);
    border: 1px solid rgba(162, 210, 255, 0.1);
    color: var(--text-secondary);
    padding: 0.6rem 0.25rem;
    border-radius: 12px;
    text-decoration: none;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    transition: var(--transition-smooth);
}

.social-btn i {
    font-size: 1.2rem;
}

.social-btn.twitch:hover {
    color: #a970ff;
    border-color: rgba(169, 112, 255, 0.3);
    background: rgba(169, 112, 255, 0.05);
}

.social-btn.kick:hover {
    color: #53fc18;
    border-color: rgba(83, 252, 24, 0.3);
    background: rgba(83, 252, 24, 0.05);
}

.social-btn.discord:hover {
    color: #5865f2;
    border-color: rgba(88, 101, 242, 0.3);
    background: rgba(88, 101, 242, 0.05);
}


.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 550px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.stat-icon {
    font-size: 1.8rem;
    color: var(--pastel-blue);
    margin-bottom: 0.25rem;
    opacity: 0.8;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}


.wins-section {
    margin-bottom: 2.5rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title span {
    color: var(--pastel-blue);
}

.carousel-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 0.5rem 0;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    animation: scroll 30s linear infinite;
    width: max-content;
}

.carousel-container:hover .carousel-track {
    animation-play-state: paused;
}

.win-card {
    width: 280px;
    background: rgba(15, 25, 48, 0.7);
    border: 1px solid rgba(162, 210, 255, 0.15);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: var(--transition-smooth);
}

.win-card:hover {
    border-color: var(--pastel-blue);
    transform: translateY(-4px);
    box-shadow: var(--shadow-blue);
}

.win-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.win-game {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.win-multiplier {
    background: rgba(153, 233, 242, 0.15);
    color: var(--pastel-cyan);
    border: 1px solid rgba(153, 233, 242, 0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 800;
}

.win-amount {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--pastel-blue);
}

.win-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.win-user {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.win-casino {
    font-weight: 600;
    color: var(--pastel-indigo);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-280px * 5 - 1.5rem * 5)); } 
}


.podium-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3.5rem;
    align-items: flex-end;
}

@media (max-width: 768px) {
    .podium-container {
        grid-template-columns: 1fr;
        gap: 2.2rem;
    }
}

.podium-card {
    background: rgba(8, 12, 22, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2.5rem 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.4s, box-shadow 0.4s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.podium-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.podium-card.first {
    border-color: rgba(255, 213, 79, 0.3);
    background: linear-gradient(180deg, rgba(255, 213, 79, 0.04) 0%, rgba(8, 12, 22, 0.98) 100%);
    padding: 3.25rem 2rem 2.25rem;
    box-shadow: 0 8px 32px rgba(255, 213, 79, 0.06);
}

.podium-card.first:hover {
    border-color: rgba(255, 213, 79, 0.8);
    box-shadow: 0 16px 40px rgba(255, 213, 79, 0.15);
}

.podium-card.second {
    border-color: rgba(148, 163, 184, 0.25);
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.02) 0%, rgba(8, 12, 22, 0.98) 100%);
}

.podium-card.second:hover {
    border-color: rgba(148, 163, 184, 0.7);
}

.podium-card.third {
    border-color: rgba(199, 125, 255, 0.2);
    background: linear-gradient(180deg, rgba(199, 125, 255, 0.02) 0%, rgba(8, 12, 22, 0.98) 100%);
}

.podium-card.third:hover {
    border-color: rgba(199, 125, 255, 0.6);
}

.podium-rank {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    padding: 0.2rem 0.65rem;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
}

.first .podium-rank {
    background: rgba(255, 213, 79, 0.1);
    border-color: rgba(255, 213, 79, 0.3);
    color: #ffd54f;
}

.second .podium-rank {
    background: rgba(148, 163, 184, 0.1);
    border-color: rgba(148, 163, 184, 0.3);
    color: #cbd5e1;
}

.third .podium-rank {
    background: rgba(199, 125, 255, 0.1);
    border-color: rgba(199, 125, 255, 0.3);
    color: #e0aaff;
}

.podium-crown {
    font-size: 2rem;
    position: absolute;
    top: -38px;
    filter: drop-shadow(0 4px 10px rgba(255, 213, 79, 0.4));
    animation: crown-float 3s infinite ease-in-out;
}

@keyframes crown-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-4px) rotate(2deg); }
}

.podium-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    padding: 3px;
    border: 3px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.podium-card:hover .podium-avatar {
    transform: scale(1.06);
}

.first .podium-avatar {
    border-color: #ffd54f;
    box-shadow: 0 0 15px rgba(255, 213, 79, 0.35);
}

.second .podium-avatar {
    border-color: #94a3b8;
}

.third .podium-avatar {
    border-color: #c77dff;
}

.podium-name {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.podium-wager {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
}

.podium-amount {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.podium-prize {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    width: 100%;
    padding: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background 0.3s, color 0.3s;
}

.first .podium-prize {
    background: #ffffff;
    color: #080c16;
    border-color: #ffffff;
}


.leaderboard-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.search-wrapper {
    position: relative;
    flex-grow: 1;
    max-width: 450px;
    min-width: 250px;
}

.search-input {
    width: 100%;
    background: rgba(8, 12, 22, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.search-input:focus {
    outline: none;
    border-color: var(--pastel-blue-medium);
    box-shadow: 0 0 15px rgba(116, 192, 252, 0.15);
}

.search-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
    font-size: 0.95rem;
}

.api-status-badge {
    background: rgba(116, 192, 252, 0.08);
    border: 1px solid rgba(116, 192, 252, 0.2);
    border-radius: 10px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: var(--pastel-blue);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot-active {
    width: 8px;
    height: 8px;
    background-color: var(--pastel-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--pastel-cyan);
}


.table-container {
    width: 100%;
    overflow-x: auto;
}

.leaderboard-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px; 
    text-align: left;
}

.leaderboard-table th {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    padding: 0.75rem 1.25rem;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.leaderboard-table td {
    padding: 1.1rem 1.25rem;
    vertical-align: middle;
    font-size: 0.9rem;
    background: rgba(8, 12, 22, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.leaderboard-table td:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.04);
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.leaderboard-table td:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.leaderboard-table tr {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.leaderboard-table tbody tr:hover td {
    background: rgba(162, 210, 255, 0.03);
    border-color: rgba(162, 210, 255, 0.1);
}

.cell-rank {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-secondary);
}

.cell-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(162, 210, 255, 0.15);
    font-size: 1.1rem;
}

.user-avatar-initial {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    border: 1.5px solid rgba(162, 210, 255, 0.25);
    box-shadow: var(--shadow-blue);
    text-shadow: none;
}

.cell-wagered {
    font-weight: 600;
    color: var(--pastel-blue);
    font-family: var(--font-body);
}

.cell-prize {
    font-weight: 700;
    color: var(--pastel-cyan);
}


.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.page-controls {
    display: flex;
    gap: 0.5rem;
}

.page-btn {
    background: rgba(15, 25, 48, 0.6);
    border: 1px solid rgba(162, 210, 255, 0.15);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-weight: 600;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--pastel-blue);
    color: var(--pastel-blue);
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}


.bonuses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 1024px) {
    .bonuses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 650px) {
    .bonuses-grid {
        grid-template-columns: 1fr;
    }
}

.bonus-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.bonus-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: linear-gradient(135deg, var(--pastel-cyan) 0%, var(--pastel-blue-medium) 100%);
    color: var(--bg-dark);
    font-weight: 800;
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-blue-glow);
}

.bonus-casino-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.bonus-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.bonus-offer {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    line-height: 1.1;
    color: var(--pastel-blue);
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--pastel-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bonus-features {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.75rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.feature-item i {
    color: var(--pastel-cyan);
    font-size: 0.95rem;
}

.promo-container {
    background: rgba(9, 15, 29, 0.6);
    border: 1px dashed rgba(162, 210, 255, 0.25);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.promo-code-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.promo-code-value {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.promo-copy-btn {
    background: transparent;
    border: none;
    color: var(--pastel-blue-medium);
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
    padding: 0.25rem;
    display: flex;
    align-items: center;
}

.promo-copy-btn:hover {
    color: var(--pastel-blue-light);
    transform: scale(1.15);
}

.btn-bonus-claim {
    width: 100%;
    text-align: center;
}


.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: rgba(5, 9, 17, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.settings-modal {
    width: 90%;
    max-width: 520px;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-overlay.active .settings-modal {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(162, 210, 255, 0.1);
    padding-bottom: 0.75rem;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--pastel-blue);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
}

.modal-close:hover {
    color: var(--pastel-blue);
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-select, .form-input {
    background: rgba(9, 15, 29, 0.8);
    border: 1px solid rgba(162, 210, 255, 0.15);
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-select:focus, .form-input:focus {
    outline: none;
    border-color: var(--pastel-blue-medium);
}

.form-row-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--pastel-blue-medium);
    cursor: pointer;
}

.api-docs-panel {
    background: rgba(9, 15, 29, 0.5);
    border: 1px solid rgba(162, 210, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.api-docs-title {
    font-weight: 700;
    color: var(--pastel-blue);
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1rem;
}


.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(15, 25, 48, 0.9);
    border: 1px solid var(--pastel-blue-medium);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    box-shadow: var(--shadow-blue);
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    color: var(--pastel-cyan);
    font-size: 1.2rem;
}


footer {
    width: 100%;
    padding: 2.5rem 1.5rem;
    border-top: 1px solid rgba(162, 210, 255, 0.08);
    background: rgba(5, 9, 17, 0.85);
    backdrop-filter: blur(8px);
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--pastel-blue);
}

.footer-logo-img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--pastel-blue-medium);
    flex-shrink: 0;
}

.footer-copyright {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-left: 0;
}

.footer-disclaimer {
    max-width: 580px;
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.6;
    text-align: right;
}

.responsible-gamble-btn:hover {
    background: rgba(239, 68, 68, 0.16) !important;
    border-color: rgba(239, 68, 68, 0.7) !important;
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .footer-disclaimer {
        text-align: center;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
}



.site-selector-container {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    width: 100%;
    flex-wrap: wrap;
}

.site-select-btn {
    border: 1px solid rgba(162, 210, 255, 0.12);
    background: rgba(15, 25, 48, 0.65);
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    padding: 0.85rem 1.8rem;
    border-radius: 16px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
}

.site-btn-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 6px;
    flex-shrink: 0;
    filter: brightness(1.1);
}

.bonus-casino-logo {
    height: 24px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
    filter: brightness(1.2) saturate(1.1);
}


.text-logo {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 0.15rem 0.5rem;
    border-radius: 8px;
    display: inline-block;
}

.roobet-logo {
    background: linear-gradient(135deg, #f97316 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.4));
}

.gamdom-logo {
    background: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.4));
}

.site-select-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    opacity: 0.5;
}

.site-select-btn:hover {
    color: var(--text-primary);
    transform: translateY(-3px);
    border-color: rgba(162, 210, 255, 0.35);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.site-select-btn i {
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}

.site-select-btn:hover i {
    transform: scale(1.15);
}


body {
    transition: background-color 0.6s ease, color 0.3s ease;
}


body.theme-raingg .site-select-btn[data-site="raingg"] {
    border-color: var(--pastel-blue-medium);
    color: var(--pastel-blue-light);
    background: rgba(116, 192, 252, 0.12);
    box-shadow: 0 0 18px rgba(116, 192, 252, 0.2), inset 0 0 8px rgba(116, 192, 252, 0.06);
}


body.theme-daddyskins {
    --pastel-blue-medium: #90caf9;
    --pastel-blue: #bbdefb;
    --pastel-blue-light: #e3f2fd;
    --card-border-hover: rgba(144, 202, 249, 0.4);
    --shadow-blue-glow: 0 0 22px rgba(144, 202, 249, 0.22);
}

body.theme-daddyskins .site-select-btn[data-site="daddyskins"] {
    border-color: #90caf9;
    color: #bbdefb;
    background: rgba(144, 202, 249, 0.1);
    box-shadow: 0 0 18px rgba(144, 202, 249, 0.18), inset 0 0 8px rgba(144, 202, 249, 0.05);
}

body.theme-daddyskins .blob1 {
    background: radial-gradient(circle, #5c9fd6 0%, rgba(92, 159, 214, 0) 70%);
}

body.theme-daddyskins .blob2 {
    background: radial-gradient(circle, #3d7cb5 0%, rgba(61, 124, 181, 0) 70%);
}


body.theme-betdice {
    --pastel-blue-medium: #b0bef8;
    --pastel-blue: #c5cffe;
    --pastel-blue-light: #dde1ff;
    --card-border-hover: rgba(176, 190, 248, 0.4);
    --shadow-blue-glow: 0 0 22px rgba(176, 190, 248, 0.22);
}

body.theme-betdice .site-select-btn[data-site="betdice"] {
    border-color: #b0bef8;
    color: #c5cffe;
    background: rgba(176, 190, 248, 0.1);
    box-shadow: 0 0 18px rgba(176, 190, 248, 0.18), inset 0 0 8px rgba(176, 190, 248, 0.05);
}

body.theme-betdice .blob1 {
    background: radial-gradient(circle, #7986cb 0%, rgba(121, 134, 203, 0) 70%);
}

body.theme-betdice .blob2 {
    background: radial-gradient(circle, #5c6bc0 0%, rgba(92, 107, 192, 0) 70%);
}


.live-drawer-container {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    pointer-events: none;
    padding: 0;
    margin: 0;
}

.live-drawer-trigger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.95) 0%, rgba(220, 38, 38, 0.95) 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-right: none;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 800;
    padding: 0.75rem 0.85rem 0.75rem 1.15rem;
    border-radius: 30px 0 0 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s;
    height: 42px;
    pointer-events: auto;
    position: absolute;
    right: -150px;
    opacity: 0;
}

.live-drawer-trigger.visible {
    right: 0;
    opacity: 1;
}

.live-drawer-trigger.visible:hover {
    transform: translateX(-4px);
}

.live-drawer-trigger .trigger-label {
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.live-pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 0 8px #fff;
    display: inline-block;
    animation: trigger-pulse 1.2s infinite ease-in-out;
}

@keyframes trigger-pulse {
    0% { transform: scale(0.85); opacity: 0.6; box-shadow: 0 0 4px rgba(255,255,255,0.4); }
    50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 12px rgba(255,255,255,0.9); }
    100% { transform: scale(0.85); opacity: 0.6; box-shadow: 0 0 4px rgba(255,255,255,0.4); }
}

.live-drawer-content {
    width: 320px;
    height: 390px;
    border-radius: 20px 0 0 20px;
    border-right: none;
    background: rgba(15, 25, 48, 0.96);
    border-left: 2px solid var(--pastel-blue-medium);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    transform: translateX(330px);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(20px);
    pointer-events: auto;
}

.live-drawer-container.active .live-drawer-content {
    transform: translateX(0);
}

.live-drawer-container.active .live-drawer-trigger {
    transform: translateX(330px);
    opacity: 0;
    pointer-events: none;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(162, 210, 255, 0.12);
    padding-bottom: 0.5rem;
}

.drawer-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--pastel-blue);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.drawer-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.35rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
}

.drawer-close:hover {
    color: #ef4444;
}

.drawer-video-container {
    width: 100%;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(162, 210, 255, 0.15);
    margin-bottom: 1rem;
}

.mock-player {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-stream-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.65);
}

.player-overlay {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
}

.player-live-badge {
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.player-viewers {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.player-play-btn {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(165, 216, 255, 0.20);
    border: 2px solid var(--pastel-blue-medium);
    color: var(--pastel-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 5;
}

.player-play-btn:hover {
    transform: scale(1.1);
    background: var(--pastel-blue);
    color: var(--bg-dark);
}

.drawer-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.drawer-stream-title {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 500;
}








body.color-black {
    --pastel-blue-light: #f1f5f9;
    --pastel-blue: #cbd5e1;
    --pastel-blue-medium: #64748b;
    --pastel-blue-dark: #334155;
    --shadow-blue: 0 8px 32px 0 rgba(100, 116, 139, 0.15);
    --shadow-blue-glow: 0 0 25px rgba(203, 213, 245, 0.15);
}


body.color-white {
    --pastel-blue-light: #ffffff;
    --pastel-blue: #e2e8f0;
    --pastel-blue-medium: #cbd5e1;
    --pastel-blue-dark: #94a3b8;
    --shadow-blue: 0 8px 32px 0 rgba(226, 232, 240, 0.1);
    --shadow-blue-glow: 0 0 25px rgba(255, 255, 255, 0.2);
}


body.color-yellow {
    --pastel-blue-light: #fef08a;
    --pastel-blue: #fef08a;
    --pastel-blue-medium: #eab308;
    --pastel-blue-dark: #ca8a04;
    --shadow-blue: 0 8px 32px 0 rgba(234, 179, 8, 0.15);
    --shadow-blue-glow: 0 0 25px rgba(254, 240, 138, 0.25);
}


body.color-purple {
    --pastel-blue-light: #f3e8ff;
    --pastel-blue: #e9d5ff;
    --pastel-blue-medium: #a855f7;
    --pastel-blue-dark: #7e22ce;
    --shadow-blue: 0 8px 32px 0 rgba(168, 85, 247, 0.15);
    --shadow-blue-glow: 0 0 25px rgba(233, 213, 255, 0.25);
}




body.style-minimalistic .animated-bg {
    background: #050811 !important;
}
body.style-minimalistic .bg-blob {
    display: none !important;
}
body.style-minimalistic .bg-grid {
    opacity: 0.1 !important;
}
body.style-minimalistic .glass-card {
    background: rgba(10, 16, 30, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    box-shadow: none !important;
}
body.style-minimalistic .podium-card {
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    transform: none !important;
}


body.style-animated .bg-blob {
    opacity: 0.65 !important;
    filter: blur(80px) !important;
    animation-duration: 12s !important;
}


body.style-clean .glass-card {
    background: #0f172a !important;
    backdrop-filter: none !important;
    border: 2px solid rgba(148, 163, 184, 0.15) !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5) !important;
}
body.style-clean .animated-bg {
    background: #0b0f19 !important;
}
body.style-clean .bg-blob {
    opacity: 0.15 !important;
}


@media (max-width: 768px) {
    header {
        padding: 0.75rem 1rem !important;
    }
    
    .header-container {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 0.5rem !important;
        width: 100% !important;
    }

    .logo {
        flex: 0 1 auto !important;
        gap: 0.5rem !important;
    }

    .logo-img {
        width: 32px !important;
        height: 32px !important;
    }

    .logo-text {
        font-size: 1.15rem !important;
    }

    .nav-toggle-btn {
        display: block !important;
    }

    .nav-tabs {
        display: none !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        background: rgba(9, 15, 29, 0.95) !important;
        backdrop-filter: blur(12px) !important;
        border-top: 1px solid rgba(162, 210, 255, 0.08) !important;
        border-bottom: 1px solid rgba(162, 210, 255, 0.08) !important;
        border-left: none !important;
        border-right: none !important;
        border-radius: 0 !important;
        flex-direction: column !important;
        padding: 1rem !important;
        gap: 0.75rem !important;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5) !important;
        z-index: 99 !important;
    }

    .nav-tabs.open {
        display: flex !important;
        animation: dropdown-slide-down 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    }

    @keyframes dropdown-slide-down {
        from { transform: translateY(-10px); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }

    .tab-btn {
        width: 100% !important;
        padding: 0.75rem 1.25rem !important;
        font-size: 0.9rem !important;
        font-weight: 700 !important;
        border-radius: 12px !important;
        justify-content: flex-start !important;
        background: rgba(255, 255, 255, 0.02) !important;
        border: 1px solid rgba(255, 255, 255, 0.04) !important;
    }

    .nav-active-bg {
        display: none !important;
    }

    .tab-btn.active {
        background: linear-gradient(135deg, var(--pastel-blue) 0%, var(--pastel-blue-medium) 100%) !important;
        color: #090f1d !important;
        box-shadow: var(--shadow-blue-glow) !important;
        border-color: transparent !important;
    }

    .header-actions {
        display: flex !important;
        flex: 0 1 auto !important;
        width: auto !important;
        justify-content: flex-end !important;
        gap: 0.5rem !important;
        margin-top: 0 !important;
    }

    .site-selector-container {
        gap: 0.5rem !important;
        margin-bottom: 1.5rem !important;
    }

    .site-select-btn {
        padding: 0.6rem 1rem !important;
        font-size: 0.82rem !important;
        border-radius: 10px !important;
        flex: 1 1 calc(50% - 0.5rem);
        justify-content: center;
    }

    .timer-banner {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.35rem !important;
        text-align: center !important;
        padding: 0.5rem 0.75rem !important;
    }

    .timer-banner > div:first-child {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0 !important;
        width: 100% !important;
        justify-content: center !important;
        border-bottom: none !important;
        padding-bottom: 0 !important;
    }

    #timer-countdown-display {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 0.15rem !important;
        width: auto !important;
        justify-content: center !important;
        align-items: center !important;
    }

    #timer-countdown-display > div {
        display: block !important;
        padding: 0.15rem 0.25rem !important;
        min-width: 38px !important;
        border-radius: 4px !important;
    }

    #timer-countdown-display > div span {
        font-size: 0.9rem !important;
        display: block !important;
    }

    #timer-countdown-display > div div {
        font-size: 0.45rem !important;
        display: block !important;
    }

    .timer-separator {
        display: none !important;
    }

    #timer-status-label {
        font-size: 0.6rem !important;
    }

    #timer-date-range {
        font-size: 0.65rem !important;
    }

    
    .podium-container {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
    }

    .podium-card {
        padding: 2rem 1.25rem 1.5rem !important;
        transform: none !important;
    }

    .podium-card.first {
        order: -1; 
        padding-top: 2.5rem !important;
    }

    .podium-crown {
        top: -30px !important;
        font-size: 1.6rem !important;
    }

    .podium-avatar {
        width: 70px !important;
        height: 70px !important;
        margin-bottom: 0.75rem !important;
    }

    .podium-name {
        font-size: 1.15rem !important;
        margin-bottom: 0.75rem !important;
    }

    .podium-amount {
        margin-bottom: 1rem !important;
    }

    .podium-prize {
        padding: 0.6rem !important;
        font-size: 1rem !important;
    }

    
    .leaderboard-controls {
        flex-direction: column !important;
        gap: 0.75rem !important;
        align-items: stretch !important;
    }

    .search-wrapper {
        max-width: 100% !important;
    }

    .join-partner-btn {
        width: 100% !important;
        justify-content: center !important;
    }

    
    table th, table td {
        padding: 0.5rem 0.25rem !important;
        font-size: 0.8rem !important;
    }

    .cell-wagered {
        font-size: 0.95rem !important;
    }

    .cell-user span {
        font-size: 0.8rem !important;
    }

    .cell-user img {
        width: 28px !important;
        height: 28px !important;
    }

    
    .bonuses-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .live-drawer-container {
        top: auto !important;
        bottom: 0 !important;
        right: 0 !important;
        left: 0 !important;
        transform: none !important;
        width: 100% !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .live-drawer-trigger {
        position: fixed !important;
        bottom: 1rem !important;
        right: 1rem !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        border-radius: 30px !important;
        border-right: 1px solid rgba(239, 68, 68, 0.3) !important;
    }

    .live-drawer-trigger.visible {
        right: 1rem !important;
        opacity: 1 !important;
    }

    .live-drawer-content {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 20px 20px 0 0 !important;
        border-left: none !important;
        border-top: 2px solid var(--pastel-blue-medium) !important;
        border-right: none !important;
        transform: translateY(100%) !important;
        height: 400px !important;
    }

    .live-drawer-container.active .live-drawer-content {
        transform: translateY(0) !important;
    }

    .live-drawer-container.active .live-drawer-trigger {
        transform: translateY(100px) !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}


.admin-panel-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
    width: 100%;
    overflow: hidden;
    min-width: 0;
}


@media (max-width: 1100px) {
    #admin-dashboard-overlay .glass-card {
        width: 98% !important;
        padding: 1.25rem !important;
    }

    .admin-panel-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    #admin-dashboard-overlay {
        padding: 1rem 0 !important;
        align-items: flex-start !important;
    }

    #admin-dashboard-overlay .glass-card {
        width: 100% !important;
        border-radius: 16px !important;
        padding: 1rem !important;
        margin: 0.5rem auto !important;
    }

    .admin-panel-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    #admin-dashboard-overlay .modal-header {
        flex-wrap: wrap !important;
        gap: 0.75rem !important;
    }

    #admin-dashboard-overlay .modal-title {
        font-size: 1.1rem !important;
    }

    #admin-dashboard-overlay .site-selector-container {
        gap: 0.4rem !important;
        flex-wrap: wrap !important;
    }

    #admin-dashboard-overlay .site-select-btn {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.78rem !important;
    }
}
