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

html, body {
    background-color: #0d0b1e;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: #fff;
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
}

body {
    padding-top: 65px; /* Space for fixed header */
}

/* Mobile Header */
.mobile-header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, #5d00ff9e 0%, #050125 100%);
    padding: 15px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.home-icon, .notification-icon {
    color: #ffffff;
    text-decoration: none;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.home-icon:hover, .notification-icon:hover {
    transform: scale(1.1);
    opacity: 1;
}

.notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ff6b35;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: bold;
    border: 1.5px solid #2d1b6b;
    animation: pulse-notification 2s infinite;
}

@keyframes pulse-notification {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.settings-icon {
    color: #ffffff;
    font-size: 20px;
    text-decoration: none;
}

.logo-img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    object-fit: contain;
    background: rgba(255,255,255,0.08);
    padding: 2px;
}


.country-selector {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
}

.country-flag {
    margin-right: 5px;
    transition: all 0.3s ease;
}

#language-toggle:hover {
    transform: scale(1.1);
}

.dropdown-icon {
    font-size: 12px;
    color: #666;
    transition: all 0.3s ease;
}

.country-selector:hover .dropdown-icon {
    transform: rotate(180deg);
    color: #6e00ff;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    width: 150px;
    z-index: 1000;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.country-selector.active .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.language-option {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.language-option:hover {
    background-color: #f0e6ff;
}

.language-flag {
    margin-right: 10px;
}

.language-name {
    font-size: 14px;
    color: #333;
}

.breaking-news {
    background: #110e2b;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.breaking-news-label {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: #fff;
    padding: 3px 10px;
    border-radius: 50px;
    font-weight: 700;
    margin-right: 12px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 0 10px rgba(106, 17, 203, 0.3);
}

.breaking-news-label i {
    margin-right: 6px;
}

.breaking-news-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 20px;
}

.news-ticker {
    position: absolute;
    white-space: nowrap;
    animation: ticker 25s linear infinite;
    left: 0;
}


.news-ticker span {
    display: inline-block;
    padding-right: 60px;
    color: #d1d5db;
    font-weight: 500;
}


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

.close-news {
    margin-left: 10px;
    cursor: pointer;
    color: rgba(255,255,255,0.4);
    transition: color 0.2s;
}
.close-news:hover {
    color: #fff;
}


/* Mobile Container */
.mobile-container {
    padding: 0;
    max-width: 100%;
    background-color: #0d0b1e;
}

/* Banner Slideshow */
.banner-slideshow-container {
    width: 100%;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    height: 1080px; /* Fixed height for banner container - set to 1080px */
}

/* Responsive banner height for different screen sizes */
@media (max-width: 1024px) {
    .banner-slideshow-container {
        height: 800px; /* Smaller height for tablets */
    }
}

@media (max-width: 768px) {
    .banner-slideshow-container {
        height: 300px; /* Smaller height for mobile */
    }
}

@media (max-width: 480px) {
    .banner-slideshow-container {
        height: 200px; /* Even smaller for very small screens */
    }
}

.banner-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    display: none;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
}

.banner-slide.active {
    display: block !important;
    opacity: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* This ensures images maintain aspect ratio and fit within container */
    display: block;
    border-radius: 8px;
}

/* Banner Navigation Dots */
.banner-dots {
    text-align: center;
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    padding: 8px 15px;
    z-index: 10;
    display: none!important;
}

.banner-dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-dot.active,
.banner-dot:hover {
    background-color: #fff;
    transform: scale(1.2);
}

/* Slideshow Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-30px);
    }
}

/* Main Banner (Legacy support) */
.main-banner {
    width: 100%;
    margin-bottom: 15px;
    text-align: center;
}

.banner-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

/* Golden Banner and Header (Default) */
.golden-banner {
    position: relative;
    margin-bottom: 15px;
    background-color: #000;
    border-top: 2px solid #ffd700;
    border-bottom: 2px solid #ffd700;
}

.golden-header {
    background-color: #000;
    color: #ffd700;
    text-align: center;
    padding: 15px 10px;
    position: relative;
    overflow: hidden;
}

.golden-header h2 {
    margin: 0;
    font-size: 18px;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.7);
    font-weight: bold;
}

.golden-stars-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/stars-bg.png') repeat;
    opacity: 0.5;
    z-index: 1;
}

.golden-star-left, .golden-star-right {
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: #ffd700;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.9);
}

.golden-star-left {
    left: 10px;
}

.golden-star-right {
    right: 10px;
}

/* User Balance Section */
.user-balance-section {
    background-color: #fff;
    padding: 15px;
    margin-bottom: 15px;
}

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

.user-id {
    font-size: 16px;
    font-weight: bold;
}

.login-link {
    color: #6e00ff;
    text-decoration: none;
    margin-left: 5px;
    font-size: 14px;
}

.login-link:hover {
    text-decoration: underline;
}

.vip-badge {
    background-color: #ffd700;
    color: #000;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    margin-left: 5px;
}

.balance-amount {
    font-size: 16px;
    font-weight: bold;
}

.wallet-actions {
    margin-bottom: 15px;
}

.wallet-action-row {
    display: flex;
    justify-content: space-between;
}

.wallet-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    width: 25%;
}

.wallet-action-btn .wallet-icon {
    font-size: 24px;
    width: 32px;
    height: 32px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6e00ff;
    background-color: #f1f1f1;
    border-radius: 50%;
    padding: 12px;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.primary-action-btn, .secondary-action-btn {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.primary-action-btn {
    background-color: #6e00ff;
    color: white;
}

.primary-action-btn:hover {
    background-color: #5700cc;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(110, 0, 255, 0.3);
}

.secondary-action-btn {
    background-color: #f1f1f1;
    color: #333;
    border: 1px solid #ddd;
}

.secondary-action-btn:hover {
    background-color: #f0e6ff;
    border-color: #6e00ff;
    color: #6e00ff;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Match List */
.match-list {
    background-color: #f0f0f0;
}

.match-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.match-item-link:hover .match-item {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.match-item {
    padding: 12px;
    border-bottom: 1px solid #eee;
    background-color: #fff;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.match-item:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
}

.match-id {
    color: #6e00ff;
    font-weight: bold;
}

.match-score {
    color: #333;
}

.match-odds {
    color: #e74c3c;
    font-weight: bold;
    font-size: 14px;
}

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

.match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0;
    padding: 0 5px;
}

.team-left, .team-right {
    display: flex;
    align-items: center;
    width: 42%;
}

.team-left {
    justify-content: flex-start;
}

.team-right {
    justify-content: flex-end;
    flex-direction: row;
}

.team-logo {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    border-radius: 50%;
    padding: 2px;
    background-color: #fff;
    object-fit: contain;
}

.team-left .team-logo {
    margin-right: 8px;
}

.team-right .team-logo {
    margin-left: 8px;
    order: 2;
}

.team-name {
    font-weight: 600;
    font-size: 13px;
    color: #333;
    text-align: center;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-right .team-name {
    order: 1;
}

.vs-text {
    font-size: 12px;
    font-weight: bold;
    color: #6c7ae0;
    width: 16%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 122, 224, 0.1);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    margin: 0 auto;
}

.category-badge {
    color: #fff;
    background-color: #e74c3c;
    font-size: 14px;
    font-weight: bold;
    padding: 3px 10px;
    border-radius: 4px;
    display: inline-block;
    margin: 5px auto;
    text-align: center;
    width: fit-content;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.match-time-remaining {
    color: #999;
    font-size: 12px;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #150e3a 0%, #0d0b1e 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 75px;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.6);
    z-index: 1000;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-radius: 30px 30px 0px 0px;
    padding: 0 10px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: rgba(255,255,255,0.4);
    font-size: 0.7rem;
    font-weight: 700;
    transition: 0.3s;
    width: 20%;
    height: 100%;
    gap: 5px;
}

.nav-icon {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.nav-item.active {
    color: #f59e0b; /* Gold/Yellow for active text */
}

.nav-item.active .nav-icon,
.nav-item.active svg {
    color: #f59e0b;
    filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.5));
}

/* Match Item Specific (Central Button) */
.match-item-nav {
    position: relative;
    z-index: 1001;
}

.match-icon-container {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #5000ff 0%, #8b5cf6 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -55px; /* Raised further */
    border: 4px solid #0d0b1e;
    box-shadow: 0 5px 20px rgba(80, 0, 255, 0.5);
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.match-icon-container img {
    width: 80px;
    height: 100px;
    object-fit: contain;
    z-index: 2;
    animation: rotate-match-icon 5s linear infinite;
}

@keyframes rotate-match-icon {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Glowing Aura for active match icon */
.match-item-nav.active .match-icon-container {
    box-shadow: 0 0 30px rgba(80, 0, 255, 0.8), 0 0 60px rgba(139, 92, 246, 0.4);
    transform: scale(1.1);
}

.match-icon-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    opacity: 0.6;
}

.match-icon-container::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.3) 50%, transparent 60%);
    top: -100%;
    left: -100%;
    transition: 0.5s;
    animation: shine-nav 3s infinite;
}

@keyframes shine-nav {
    0% { top: -100%; left: -100%; }
    100% { top: 100%; left: 100%; }
}

@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.nav-item.active {
    animation: pop 0.3s ease-out;
}

/* Add padding to the bottom of the page to account for the fixed navigation */
body {
    padding-bottom: 60px;
}

.btn-primary {
    background-color: #6e00ff;
    border-color: #6e00ff;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: #5700cc;
    border-color: #5700cc;
}

/* Add styles for betting options */
.betting-option {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.betting-option:hover {
    border-color: #6e00ff;
    box-shadow: 0 2px 5px rgba(110, 0, 255, 0.2);
}

.betting-option.selected {
    border-color: #6e00ff;
    background-color: #f0e6ff;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .mobile-container {
        max-width: 540px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .match-item {
        padding: 10px;
        margin-bottom: 6px;
    }

    .match-header {
        flex-wrap: wrap;
        font-size: 11px;
        margin-bottom: 8px;
    }

    .match-id, .match-score, .match-odds, .match-time {
        margin-bottom: 3px;
        font-size: 11px;
    }

    .match-teams {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin: 6px 0;
        padding: 0 3px;
    }

    .team-left, .team-right {
        width: 40%;
        flex-direction: row;
    }

    .team-left {
        justify-content: flex-start;
    }

    .team-right {
        justify-content: flex-end;
    }

    .team-logo {
        width: 24px;
        height: 24px;
    }

    .team-left .team-logo {
        margin-right: 6px;
    }

    .team-right .team-logo {
        margin-left: 6px;
        order: 2;
    }

    .team-name {
        font-size: 12px;
        max-width: 80px;
    }

    .team-right .team-name {
        order: 1;
    }

    .vs-text {
        width: 28px;
        height: 28px;
        font-size: 10px;
        margin: 0;
    }

    .category-badge {
        font-size: 10px;
        padding: 2px 8px;
    }

    .match-time-remaining {
        font-size: 11px;
        margin-top: 6px;
    }
}
/* =============================================================================
   GLOBAL POPUP & MODAL SYSTEM (Premium LiquidGlass)
   ============================================================================= */

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.popup-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 40px 30px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
    animation: popupFadeIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: white;
}

@keyframes popupFadeIn {
    0% { transform: translateY(40px) scale(0.9); opacity: 0; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

.popup-icon {
    font-size: 64px;
    margin-bottom: 20px;
    filter: drop-shadow(0 5px 15px rgba(255, 255, 255, 0.1));
}

.error-popup .popup-icon { color: #ff4757; }
.success-popup .popup-icon { color: #2ed573; }
.info-popup .popup-icon { color: #70a1ff; }

.popup-message {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 25px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
}

.popup-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.popup-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(90deg);
}

.error-popup { border-top: 5px solid #ff4757; }
.success-popup { border-top: 5px solid #2ed573; }
.info-popup { border-top: 5px solid #70a1ff; }

@media (max-width: 480px) {
    .popup-content {
        padding: 30px 20px;
        border-radius: 24px;
    }
    .popup-icon {
        font-size: 48px;
    }
    .popup-message {
        font-size: 16px;
    }
}

/* ---- Home Page Specific Styles (Image-Matched) ---- */
.home-page-wrap { padding: 0 0 100px; min-height: 100vh; background: #0d0b1e; overflow-x: hidden; width: 100%; }

/* Notice Bar */
.home-notice-bar { 
    background: rgba(13, 11, 30, 0.95); 
    display: flex; 
    align-items: center; 
    padding: 8px 16px; 
    margin: 10px 16px; 
    border-radius: 12px; 
    border: 1px solid rgba(255, 215, 0, 0.15); 
    gap: 12px;
}
.notice-tag { 
    background: rgba(255, 215, 0, 0.1); 
    color: #ffd700; 
    padding: 4px 10px; 
    border-radius: 8px; 
    font-size: 0.75rem; 
    font-weight: 800; 
    display: flex; 
    align-items: center; 
    gap: 6px; 
    border: 1px solid rgba(255, 215, 0, 0.2);
}
.notice-text { flex: 1; overflow: hidden; font-size: 0.85rem; color: #fff; font-weight: 500; }
.close-notice { background: none; border: none; color: rgba(255,255,255,0.4); cursor: pointer; }

/* Banner */
.premium-banner-container { 
    width: calc(100% - 32px); 
    margin: 0 16px 25px; 
    height: 180px; 
    border-radius: 24px; 
    overflow: hidden; 
    position: relative; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.4); 
}
.banner-image { width: 100%; height: 100%; object-fit: cover; }
.banner-overlay-content { 
    position: absolute; 
    bottom: 20px; 
    left: 20px; 
    right: 20px; 
    z-index: 2; 
    text-align: center;
}
.banner-overlay-content h2 { font-size: 1.8rem; font-weight: 900; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.5); margin-bottom: 5px; }
.banner-overlay-content p { font-size: 0.85rem; color: #fff; font-weight: 600; margin-bottom: 15px; }
.banner-btn-glow { 
    display: inline-block; 
    padding: 10px 25px; 
    background: linear-gradient(90deg, #8b5cf6, #d946ef); 
    color: #fff; 
    text-decoration: none; 
    border-radius: 50px; 
    font-size: 0.85rem; 
    font-weight: 800; 
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4); 
}

/* User Action Section */
.home-user-action-section { padding: 0 16px; margin-bottom: 30px; }
.user-status-row { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 30px; 
}
.user-info { display: flex; align-items: center; gap: 8px; font-size: 1.15rem; font-weight: 800; }
.user-info .label { color: #fff; }
.user-info .login-link { color: #f59e0b; text-decoration: none; margin-left: 5px; }
.user-info .username { color: #f59e0b; }

.user-balance { display: flex; align-items: baseline; gap: 5px; color: #fff; font-weight: 800; font-size: 1.1rem; }
.user-balance .currency { font-size: 0.9rem; }

.home-main-actions { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 10px; 
}
.main-action-item { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 15px; 
    text-decoration: none; 
}
.main-action-item span { font-size: 0.8rem; font-weight: 700; color: #fff; }

.icon-glow { 
    width: 80px; 
    height: 80px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    position: relative; 
    transition: 0.3s;
}
.icon-glow img { width: 100%; height: 100%; max-width: 65px; max-height: 65px; object-fit: contain; z-index: 2; filter: drop-shadow(0 0 10px rgba(0,0,0,0.5)); }

.icon-glow::before { 
    content: ''; 
    position: absolute; 
    top: 50%; left: 50%; 
    transform: translate(-50%, -50%);
    width: 100%; height: 100%;
    border-radius: 50%; 
    filter: blur(25px); 
    opacity: 0.8; 
    z-index: 1; 
    animation: glow-pulse 3s infinite alternate;
}

@keyframes glow-pulse {
    from { transform: translate(-50%, -50%) scale(0.9); opacity: 0.6; }
    to { transform: translate(-50%, -50%) scale(1.1); opacity: 0.9; }
}

.icon-glow.purple::before { background: radial-gradient(circle, #8b5cf6 0%, transparent 70%); }
.icon-glow.cyan::before { background: radial-gradient(circle, #06b6d4 0%, transparent 70%); }
.icon-glow.gold::before { background: radial-gradient(circle, #f59e0b 0%, transparent 70%); }
.icon-glow.pink::before { background: radial-gradient(circle, #d946ef 0%, transparent 70%); }

.main-action-item:active .icon-glow { transform: scale(0.9); }

/* Dual Buttons */
.home-dual-buttons { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 10px; 
    padding: 0 16px; 
    margin-bottom: 35px; 
}
.dual-btn { 
    height: 60px; 
    border-radius: 20px; 
    text-decoration: none; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border: 1px solid rgba(255,255,255,0.1);
}
.dual-btn.leaderboard { background: linear-gradient(90deg, #5000ff 0%, #1a56e0 100%); box-shadow: 0 4px 15px rgba(80,0,255,0.3); }
.dual-btn.activities { background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%); box-shadow: 0 4px 15px rgba(59,130,246,0.3); }

.btn-inner { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1rem; }
.btn-inner i { font-size: 1.2rem; }

/* Match Card v2 */
.match-list-header { padding: 0 16px; margin-bottom: 20px; }
.match-list-header h2 { font-size: 1.1rem; font-weight: 800; color: #fff; }

.match-card-container { 
    background: rgba(13, 11, 30, 0.6); 
    margin: 0 16px 20px; 
    border-radius: 24px; 
    padding: 20px; 
    border: 1px solid rgba(255,255,255,0.06); 
    box-shadow: 0 10px 25px rgba(0,0,0,0.3); 
}
.match-card-top-info { 
    display: grid; 
    grid-template-columns: 25px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); 
    gap: 5px; 
    font-size: 0.7rem; 
    font-weight: 700; 
    margin-bottom: 25px; 
    color: rgba(255,255,255,0.6);
    width: 100%;
}
.match-id { color: #f59e0b; }
.match-sport { color: #fff; }
.match-odds { color: #f59e0b; text-align: center; }
.match-date { text-align: right; white-space: nowrap; }

.match-teams-v2 { 
    display: flex; 
    align-items: flex-start; 
    justify-content: space-between; 
    margin-bottom: 25px; 
}
.match-teams-v2 .team { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 12px; 
    min-width: 0; /* Critical for wrapping in flex */
}
.match-teams-v2 .team img { 
    width: 60px; 
    height: 60px; 
    border-radius: 50%; 
    border: 3px solid rgba(255,255,255,0.1); 
    flex-shrink: 0; /* Keep logo size fixed */
}
.match-teams-v2 .team span { 
    font-size: 0.95rem; 
    font-weight: 800; 
    color: #fff; 
    text-align: center; 
    width: 100%; 
    word-wrap: break-word; 
    line-height: 1.2;
}

.vs-badge { 
    font-size: 1rem; 
    font-weight: 900; 
    color: #06b6d4; 
    padding: 0 20px; 
}

.match-footer-v2 { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 15px; }
.timer { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.85rem; font-weight: 700; color: rgba(255,255,255,0.6); margin-bottom: 12px; }

.progress-bar-wrap { 
    height: 6px; 
    background: rgba(255,255,255,0.1); 
    border-radius: 10px; 
    position: relative; 
}
.progress-bar-fill { 
    height: 100%; 
    background: linear-gradient(90deg, #3b82f6, #06b6d4); 
    border-radius: 10px; 
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}
.progress-knob { 
    position: absolute; 
    top: 50%; 
    transform: translate(-50%, -50%); 
    width: 14px; 
    height: 14px; 
    background: #fff; 
    border-radius: 50%; 
    box-shadow: 0 0 10px rgba(255,255,255,0.5); 
}

/* ---- Premium UI Components (Unified Design System) ---- */
.glass-card { 
    background: rgba(255, 255, 255, 0.03); 
    backdrop-filter: blur(5px); 
    -webkit-backdrop-filter: blur(20px); 
    border: 1px solid rgba(255, 255, 255, 0.08); 
    border-radius: 24px; 
    z-index: 1; 
}

/* Dashboard & Page Headers */
.dashboard-header { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 20px 0; 
}
.dashboard-header h1 { 
    font-size: 1.3rem; 
    font-weight: 800; 
    color: #fff; 
    margin: 0; 
}
.back-link { 
    width: 40px; 
    height: 40px; 
    background: rgba(255,255,255,0.05); 
    border-radius: 12px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: #fff; 
    text-decoration: none; 
    border: 1px solid rgba(255,255,255,0.06); 
    transition: 0.3s;
}
.back-link:active { transform: scale(0.9); }

/* Premium Input Groups */
.input-group-modern { 
    text-align: left; 
    margin-bottom: 20px; 
}
.input-group-modern label { 
    display: block; 
    font-size: 0.75rem; 
    font-weight: 700; 
    color: #fff; 
    text-transform: uppercase; 
    margin-bottom: 10px; 
    letter-spacing: 0.5px; 
}
.input-group-modern label i { 
    color: #8b5cf6; 
    margin-right: 5px; 
}
.input-group-modern input, 
.input-group-modern select, 
.premium-select { 
    width: 100%; 
    background: rgba(255, 255, 255, 0.02); 
    border: 1px solid rgba(255, 255, 255, 0.08); 
    border-radius: 16px; 
    padding: 16px; 
    color: #fff; 
    font-size: 1rem; 
    font-weight: 600; 
    transition: 0.3s; 
}
.input-group-modern input:focus { 
    outline: none; 
    border-color: #8b5cf6; 
    background: rgba(80, 0, 255, 0.05); 
    box-shadow: 0 0 15px rgba(80, 0, 255, 0.1); 
}

/* Section Labels */
.section-label { 
    font-size: 0.75rem; 
    font-weight: 700; 
    color: rgba(255, 255, 255, 0.4); 
    text-transform: uppercase; 
    margin-bottom: 15px; 
    letter-spacing: 0.5px; 
}

/* Premium Buttons */
.btn-premium-action { 
    width: 100%; 
    padding: 18px; 
    border-radius: 20px; 
    border: none; 
    background: linear-gradient(135deg, #5000ff, #3b00bb); 
    color: #fff; 
    font-weight: 800; 
    font-size: 1.1rem; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 12px; 
    cursor: pointer; 
    box-shadow: 0 10px 25px rgba(80, 0, 255, 0.3); 
    transition: 0.3s; 
}
.btn-premium-action:active { transform: scale(0.96); }

/* Global Animations */
.fade-in { animation: fadeIn 0.8s ease forwards; }
.slide-up { opacity: 0; transform: translateY(20px); animation: slideUp 0.5s ease forwards; }

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

/* Captcha Components */
.captcha-row { 
    display: grid; 
    grid-template-columns: 1fr 140px; 
    gap: 15px; 
    align-items: end; 
}
.captcha-visual-wrap { 
    height: 58px; 
    margin-bottom: 20px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 0 15px; 
    border-radius: 16px; 
    background: rgba(255, 255, 255, 0.02); 
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.captcha-visual-wrap span { 
    font-family: 'Courier New', Courier, monospace; 
    font-size: 1.5rem; 
    font-weight: 900; 
    color: #fff; 
    letter-spacing: 3px; 
}
.refresh-captcha { 
    background: rgba(80, 0, 255, 0.1); 
    border: 1px solid rgba(80, 0, 255, 0.2); 
    color: #8b5cf6; 
    width: 32px; 
    height: 32px; 
    border-radius: 8px; 
    cursor: pointer; 
    transition: 0.3s; 
}
