:root {
    /* Colors */
    --bg-primary: #0F121A;
    --bg-secondary: #1A1E29;
    --accent-red: #E60013;
    --accent-red-gradient: linear-gradient(135deg, #FF1A1A 0%, #B30000 100%);
    --text-primary: #FFFFFF;
    --text-secondary: #8E94A3;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Spacing */
    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

:root.light-theme {
    --bg-primary: #F5F7FA;
    --bg-secondary: #FFFFFF;
    --text-primary: #1A1E29;
    --text-secondary: #666666;
    --glass-bg: rgba(0, 0, 0, 0.05);
    --glass-border: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    user-select: none;
}

/* Layout */
.app-container {
    max-width: 500px; /* Mobile focused */
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: calc(70px + var(--safe-area-bottom));
}

/* Header */
header {
    padding: calc(15px + var(--safe-area-top)) 15px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute; /* Changed to overlay on hero */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 100%);
    backdrop-filter: none;
}

.logo img {
    height: 32px;
}

.header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.icon-circle {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    backdrop-filter: blur(5px);
}

.btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: transform 0.2s;
}

.btn:active {
    transform: scale(0.95);
}

.btn-login {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.btn-register {
    background: var(--accent-red-gradient);
    color: white;
}

/* Hero Carousel */
.hero-section {
    position: relative;
    padding: 0;
    margin-bottom: 20px;
}

.carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: 0; /* Gap 0 for full width items */
    border-radius: 0 0 20px 20px;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    flex: 0 0 100%;
    scroll-snap-align: center;
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 0 0 20px 20px; /* Rounded bottom for transition */
    overflow: hidden;
}

.carousel-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, var(--bg-primary), transparent);
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    position: absolute;
    bottom: 20px;
    width: 100%;
    z-index: 10;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-secondary);
    transition: all 0.3s;
}

.dot.active {
    width: 15px;
    border-radius: 3px;
    background: var(--accent-red);
}

/* Tabs */
.tabs-container {
    overflow-x: auto;
    padding: 0 15px;
    margin-bottom: 15px;
    scrollbar-width: none;
}

.tabs-container::-webkit-scrollbar {
    display: none;
}

.tabs {
    display: flex;
    gap: 20px;
    white-space: nowrap;
}

.tab {
    padding: 10px 0;
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    cursor: pointer;
}

.tab.active {
    color: var(--text-primary);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-red);
}

/* Game Grid */
.section-title {
    padding: 0 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title h2 {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title h2::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--accent-red);
    border-radius: 2px;
}

.game-grid-container {
    overflow: hidden;
    padding: 0 15px;
    position: relative;
}

.game-grid-marquee {
    display: flex;
    gap: 10px;
    animation: marquee 20s linear infinite;
    width: max-content;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.game-card {
    background: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    width: 50px; /* Reduced for 7-column density */
    flex-shrink: 0;
    aspect-ratio: 1/1.4;
    display: flex;
    flex-direction: column;
}

.game-card img {
    width: 100%;
    flex: 1;
    object-fit: cover;
}

/* Game Center */
.category-grid-large {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 15px;
    margin-bottom: 12px;
}

.category-banner {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 1.2/1;
    background: var(--bg-secondary);
}

.category-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-label {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 20px;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.category-grid-small {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 0 15px;
    margin-bottom: 20px;
}

.category-item-small {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    border-radius: 12px;
    padding: 10px 5px;
    color: white;
    font-size: 12px;
    font-weight: 600;
}

.category-item-small i {
    font-size: 24px;
}

/* Match Recommendations */
.match-scroll {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 15px;
    scrollbar-width: none;
}

.match-scroll::-webkit-scrollbar {
    display: none;
}

.match-card {
    flex: 0 0 280px;
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 15px;
    color: var(--text-primary);
}

.match-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.match-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 80px;
}

.team img {
    width: 40px;
    height: 40px;
}

.team-name {
    font-weight: 700;
    font-size: 13px;
    text-align: center;
}

.vs-info {
    text-align: center;
}

.vs-text {
    font-size: 24px;
    font-weight: 800;
    font-style: italic;
}

.match-time {
    font-size: 11px;
    color: var(--text-secondary);
}

.odds-row {
    display: flex;
    gap: 6px;
}

.odds-btn {
    flex: 1;
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    padding: 8px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.odds-label {
    color: var(--text-secondary);
}

/* Vertical Game Rows */
.game-row-section {
    margin-top: 25px;
}

.row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    margin-bottom: 12px;
}

.row-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
}

.btn-all {
    padding: 4px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    font-size: 12px;
    color: var(--text-secondary);
}

.game-card-v {
    flex: 0 0 110px;
    aspect-ratio: 2/3;
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.game-card-v img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-players {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 9px;
    display: flex;
    align-items: center;
    gap: 3px;
    color: #FF1A1A;
}

.badge-players i {
    width: 8px;
    height: 8px;
}

.game-v-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 8px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    text-align: center;
}

.game-v-title {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 2px;
    color: white;
}

.game-provider {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    background: var(--bg-secondary);
    padding: 10px 0 calc(10px + var(--safe-area-bottom));
    display: flex;
    justify-content: space-around;
    border-top: 1px solid var(--glass-border);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    font-size: 11px;
    text-decoration: none;
}

.nav-item.active {
    color: var(--accent-red);
}

.nav-item i {
    font-size: 20px;
}

/* PWA Install Banner */
.pwa-banner {
    position: fixed;
    bottom: 85px;
    left: 15px;
    right: 15px;
    background: var(--accent-red-gradient);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    z-index: 900;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.pwa-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pwa-info {
    flex: 1;
}

.pwa-info p {
    font-size: 14px;
    font-weight: 600;
}

.pwa-info span {
    font-size: 12px;
    opacity: 0.8;
}

.btn-install {
    padding: 6px 15px;
    background: white;
    color: var(--accent-red);
    border-radius: 15px;
    font-size: 12px;
    font-weight: 700;
}

/* Game Providers */
.providers-section {
    margin-top: 25px;
    padding: 0 15px;
}

.providers-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 10px 0;
}

.providers-scroll::-webkit-scrollbar {
    display: none;
}

.provider-logo-placeholder {
    flex: 0 0 120px;
    height: 60px;
    background: linear-gradient(135deg, #E0E0E0 0%, #BDBDBD 100%); /* Silver Gradient */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: 700;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Betting Stats Section */
.stats-section {
    background: var(--bg-primary);
    margin-top: 30px;
    border-radius: 30px 30px 0 0;
    padding: 20px 0 100px; /* Extra bottom padding for nav */
    color: var(--text-primary);
}

.tab-switcher {
    width: calc(100% - 30px);
    margin: 0 auto 20px;
    background: var(--bg-secondary);
    border-radius: 25px;
    display: flex;
    padding: 4px;
    border: 1px solid var(--glass-border);
}

.tab-btn {
    flex: 1;
    padding: 10px;
    border-radius: 20px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

.tab-btn.active {
    background: var(--accent-red-gradient);
    color: white;
}

.rankings-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 10px;
    padding: 0 15px;
    margin-bottom: 25px;
}

.rank-card {
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 15px 10px;
    flex: 1;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
}

.rank-card.top1 {
    height: 160px;
    z-index: 2;
    transform: scale(1.05);
}

.rank-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 12px;
}

.badge-1 { background: #FFD700; }
.badge-2 { background: #C0C0C0; }
.badge-3 { background: #CD7F32; }

.rank-title { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.rank-amount { font-size: 12px; font-weight: 800; color: #E60013; margin-bottom: 12px; }

.btn-enter {
    background: #FFEBEB;
    color: #E60013;
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 700;
}

/* Live Feed */
.live-feed {
    background: var(--bg-secondary);
    margin: 0 15px;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.feed-header {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    font-size: 12px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--glass-border);
}

.feed-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid var(--glass-border);
}

.feed-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
}

.feed-left i { color: var(--text-secondary); }

.feed-right {
    color: #E60013;
    font-weight: 800;
    font-size: 13px;
}

/* FAQ Section */
.faq-section {
    background: var(--bg-primary);
    padding: 30px 15px;
    text-align: center;
}

.faq-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.btn-more {
    background: var(--accent-red-gradient);
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 20px;
    font-weight: 700;
    margin-bottom: 30px;
    display: inline-block;
    text-decoration: none;
}

.faq-list {
    text-align: left;
}

.faq-item {
    background: var(--bg-secondary);
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.faq-header {
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
}

.faq-content {
    padding: 0 20px 18px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    display: none;
}

.faq-item.active .faq-content {
    display: block;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-icon {
    transition: transform 0.3s ease;
}

/* Footer */
.footer {
    padding: 40px 15px 120px; /* Space for bottom nav */
    text-align: center;
    background: var(--bg-primary);
}

.footer-logo {
    font-size: 32px;
    font-weight: 900;
    color: var(--accent-red);
    margin-bottom: 10px;
    display: inline-block;
    font-style: italic;
}

.copyright {
    font-size: 12px;
    color: #999;
}

/* Footer Additional Content */
.footer-info {
    padding: 20px 15px;
    background: var(--bg-primary);
    text-align: center;
}

.telegram-btn {
    width: 50px;
    height: 50px;
    background: #54A9EB;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    box-shadow: 0 4px 10px rgba(84, 169, 235, 0.3);
    color: white;
}

.company-desc {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 25px;
    text-align: left;
}

.company-desc b {
    color: var(--text-primary);
}

.age-limit {
    font-size: 32px;
    font-weight: 700;
    color: #DDD;
    margin-bottom: 0;
    display: block;
}

.prohibition-text {
    font-size: 14px;
    color: #CCC;
    margin-top: -5px;
    margin-bottom: 20px;
    display: block;
}

/* Global Floating Buttons */
.side-btn {
    position: fixed;
    width: 28px;
    height: 28px;
    background: var(--bg-secondary);
    border: 1px solid #E60013;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    color: #E60013;
    top: 10px;
}

.side-btn svg, .side-btn i {
    width: 14px !important;
    height: 14px !important;
}

.side-btn-left {
    left: 10px;
}

.side-btn-right {
    right: 10px;
}

/* Registration Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 3000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: block;
    opacity: 1;
}

.reg-modal {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    border-radius: 20px 20px 0 0;
    padding: 30px 20px 40px;
    z-index: 3001;
    transition: bottom 0.3s ease-out;
    box-sizing: border-box;
    max-height: 90vh;
    overflow-y: auto;
    color: var(--text-primary);
}

.reg-modal.show {
    bottom: 0;
}

.reg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
}

.reg-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
}

.reg-top-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-toggle {
    background: var(--bg-primary);
    padding: 4px 8px;
    border-radius: 20px;
    display: flex;
    gap: 8px;
}

.theme-toggle i {
    width: 16px;
    height: 16px;
    color: #999;
}

.close-modal {
    color: var(--text-primary);
    cursor: pointer;
}

.reg-form-group {
    margin-bottom: 20px;
}

.reg-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: block;
}

.reg-input-wrapper {
    position: relative;
}

.reg-input {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    padding: 15px;
    border-radius: 12px;
    font-size: 14px;
    box-sizing: border-box;
    color: var(--text-primary);
}

.reg-input::placeholder {
    color: #BBB;
}

.reg-input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #BBB;
}

.pwd-requirements {
    margin-top: 10px;
    font-size: 12px;
    color: #999;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.requirement i {
    width: 14px;
    height: 14px;
    color: #CCC;
}

.btn-reg-submit {
    width: 100%;
    background: #F88; /* Soft pink-red as in image */
    color: white;
    border: none;
    padding: 16px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 800;
    margin-top: 30px;
    cursor: pointer;
}

/* Profile Page */
.profile-page {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding-bottom: 120px;
}

.profile-header {
    padding: 40px 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 24px;
    font-weight: 800;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #E60013;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vip-card {
    background: var(--bg-secondary);
    margin: 0 15px 20px;
    border-radius: 15px;
    padding: 15px;
    border: 1px solid var(--glass-border);
}

.vip-progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}

.vip-progress-bar {
    height: 4px;
    background: var(--bg-primary);
    border-radius: 2px;
    position: relative;
    margin-bottom: 15px;
}

.vip-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 10%;
    background: #E60013;
    border-radius: 2px;
}

.vip-progress-fill::after {
    content: '';
    position: absolute;
    right: -4px;
    top: -3px;
    width: 10px;
    height: 10px;
    background: #E60013;
    border-radius: 50%;
    box-shadow: 0 0 10px #E60013;
}

.vip-club-link {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 5px;
    color: #E60013;
    font-size: 12px;
    font-weight: 700;
}

.profile-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 0 15px;
    margin-bottom: 20px;
}

.quick-item {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 15px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    position: relative;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.quick-item i {
    font-size: 20px;
    color: var(--text-primary);
}

.badge-hot {
    position: absolute;
    top: -5px;
    right: 5px;
    background: #FF4D4D;
    color: white;
    font-size: 8px;
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 800;
}

.task-banner {
    background: var(--bg-secondary);
    margin: 0 15px 20px;
    border-radius: 15px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--glass-border);
}

.task-text h4 { font-size: 15px; font-weight: 800; margin-bottom: 5px; color: var(--text-primary); }
.task-text p { font-size: 11px; color: var(--text-secondary); }

.task-coin {
    width: 50px;
    height: 50px;
}

.profile-menu-group {
    background: var(--bg-secondary);
    margin: 0 15px 15px;
    border-radius: 15px;
    overflow: hidden;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
}

.menu-left i {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
}

.menu-right {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 12px;
}

/* Select Menu Page */
.menu-page {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding-bottom: 120px;
}

.search-group {
    background: var(--bg-secondary);
    margin: 10px 15px 20px;
    border-radius: 12px;
    display: flex;
    overflow: hidden;
}

.category-dropdown {
    padding: 15px;
    border-right: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
}

.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    padding-left: 15px;
    gap: 10px;
}

.search-input-wrapper i {
    color: #666;
    width: 16px;
}

.search-input-wrapper input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    width: 100%;
    padding: 15px 0;
    font-size: 14px;
}

.menu-item-sports {
    background: linear-gradient(90deg, #E60013 0%, #660000 100%) !important;
}

.theme-switch-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-switch {
    background: var(--bg-primary);
    padding: 4px 8px;
    border-radius: 20px;
    display: flex;
    gap: 10px;
    cursor: pointer;
}

.theme-switch i {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
}

.theme-switch i.active {
    color: var(--text-primary);
    background: var(--glass-border);
    border-radius: 50%;
}

/* --- New Game Page Styles --- */
.game-page-body {
    background: #1e2230; /* Dark top area */
}

.game-header {
    position: relative;
    background: #1e2230;
    padding: 10px 15px;
}

.announcement-bar {
    background: #252a3a;
    padding: 8px 15px;
    font-size: 12px;
    color: #a0a5b5;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.announcement-marquee {
    display: inline-block;
    animation: marquee 20s linear infinite;
    padding-left: 100%;
}

.game-hero-wrapper {
    padding: 15px;
    background: #1e2230;
    position: relative;
    z-index: 1;
}

.game-hero-banner {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/6.5;
    background: #2a3040;
}

.game-hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-hero-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    padding-bottom: 25px;
}

.game-hero-dots .dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
}

.game-hero-dots .dot.active {
    background: white;
}

.game-content-container {
    background: var(--bg-primary); /* Use primary background variable */
    border-radius: 20px 20px 0 0;
    position: relative;
    z-index: 2;
    margin-top: -20px; /* Overlap with hero */
    padding: 20px 0 100px; /* Space for bottom nav */
    min-height: 500px;
}

.game-pill-menu-wrapper {
    display: flex;
    align-items: center;
    padding: 0 15px;
    margin-bottom: 25px;
    margin-top: 10px;
}

.game-pill-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    flex: 1;
}

.game-pill-scroll::-webkit-scrollbar {
    display: none;
}

.pill-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 800;
    color: var(--text-secondary);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    border: none;
    transition: all 0.3s;
}

.pill-item i {
    width: 16px;
    height: 16px;
}

.pill-item.active {
    background: #E60013;
    color: white;
}

.pill-more-btn {
    width: 36px;
    height: 36px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    margin-left: 10px;
    color: var(--text-secondary);
    flex-shrink: 0;
    border: 1px solid var(--glass-border);
}

.game-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    margin-bottom: 15px;
}

.title-left {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 900;
    color: var(--text-primary);
}

.title-left i {
    width: 18px;
    height: 18px;
    color: #E60013;
}

.btn-all-v {
    padding: 6px 15px;
    background: var(--bg-secondary);
    border-radius: 15px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
    border: 1px solid var(--glass-border);
}

/* Provider Cards */
.provider-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 0 15px 30px;
    scrollbar-width: none;
}

.provider-scroll::-webkit-scrollbar {
    display: none;
}

.provider-card-v {
    flex: 0 0 130px;
    aspect-ratio: 1/1.4;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.provider-card-v img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.provider-logo-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    height: 20px;
    object-fit: contain !important;
    width: auto !important;
}

.provider-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 12px 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.provider-name-v {
    font-size: 18px;
    font-weight: 900;
    color: white;
    margin-bottom: 2px;
    line-height: 1;
}

.game-count-v {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    font-weight: 600;
}
