:root {
    --primary-bg: #0d1b2a;
    --navy-dark: #1b263b;
    --navy-light: #415a77;
    --accent-red: #ff2e2e;
    --accent-yellow: #f4d35e;
    --text-white: #ffffff;
    --text-muted: #e0e1dd;
    --back-blue: #b4e3f8;
    --lay-pink: #f8d4e4;
    --win-green: #2ecc71;
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(27, 38, 59, 0.9);
    --font-outfit: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-outfit);
    background-color: var(--primary-bg);
    color: var(--text-white);
    overflow-x: hidden;
    min-height: 100vh;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

#bg-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: -1; pointer-events: none; }

/* WhatsApp Top-Center Popup */
.whatsapp-popup-top {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    pointer-events: all;
    background: #25d366;
    padding: 12px 25px;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 5px 25px rgba(37, 211, 102, 0.6);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 300px;
    text-align: center;
}
.whatsapp-popup-top.visible { top: 0; }
.whatsapp-popup-top a {
    color: white; text-decoration: none; font-weight: 700; font-size: 0.95rem;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}

.app-container { position: relative; z-index: 1; width: 100%; margin: 0 auto; }

/* Header Styles */
.main-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 20px;
    background: linear-gradient(to bottom, #1b4382, #0d1b2a);
    border-bottom: 2px solid var(--accent-yellow);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    gap: 15px;
    flex-wrap: wrap;
    width: 100%;
}

.logo-main { font-size: 2rem; font-weight: 800; font-style: italic; line-height: 1; }
.logo-main::first-letter { color: var(--accent-yellow); }
.logo-sub { font-size: 0.75rem; color: var(--text-muted); align-self: flex-end; margin-top: -3px; }

/* Premium Nav Buttons Styling */
.header-nav { display: flex; gap: 10px; align-items: center; }

.nav-btn-premium, .nav-btn-premium:link, .nav-btn-premium:visited {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 15px !important;
    border-radius: 50px !important;
    border: 2px solid var(--accent-yellow) !important;
    background: rgba(244, 211, 94, 0.15) !important;
    color: var(--accent-yellow) !important;
    text-decoration: none !important;
    font-weight: 800 !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5) !important;
    white-space: nowrap !important;
}

.nav-btn-premium:hover {
    background: var(--accent-yellow) !important;
    color: #000 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 30px rgba(244, 211, 94, 0.7) !important;
}

.btn {
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-login { background: var(--accent-red); color: white; }
.btn-demo { background: var(--win-green); color: white; }
.input-group { position: relative; display: flex; align-items: center; background: rgba(255,255,255,0.1); border-radius: 4px; padding: 0 10px; border: 1px solid rgba(255,255,255,0.2); }
.input-group i { color: var(--accent-yellow); font-size: 0.8rem; }
.input-group input { background: transparent; border: none; color: white; padding: 8px 5px; outline: none; width: 120px; font-size: 0.9rem; }

.contact-btn, .contact-btn:link, .contact-btn:visited {
    border-color: #2ecc71 !important;
    color: #2ecc71 !important;
    background: rgba(46, 204, 113, 0.15) !important;
}

.contact-btn:hover { background: #2ecc71 !important; color: #fff !important; }

/* Mega Navigation */
.mega-nav { background: #2a2a2a; border-bottom: 1px solid rgba(255, 255, 255, 0.1); position: sticky; top: 0; z-index: 100; }
.nav-scroll { display: flex; overflow-x: auto; white-space: nowrap; scrollbar-width: none; padding: 0 5px; }
.nav-scroll::-webkit-scrollbar { display: none; }
.nav-item {
    padding: 12px 18px; text-decoration: none; color: var(--text-muted); font-size: 0.85rem; font-weight: 500;
    transition: all 0.3s ease; border-right: 1px solid rgba(255, 255, 255, 0.05);
}
.nav-item:hover, .nav-item.active { background: #1b4382; color: white; }

/* Page Layout */
.page-layout {
    display: grid; grid-template-columns: 240px 1fr 300px;
    gap: 15px; padding: 15px; min-height: calc(100vh - 120px);
}

/* Sidebar Left */
.sidebar-left { background: var(--glass-bg); border-radius: 8px; border: 1px solid var(--border-color); padding: 5px 0; height: fit-content; }
.sport-item {
    padding: 12px 15px; display: flex; align-items: center; gap: 12px; cursor: pointer;
    transition: all 0.2s ease; border-bottom: 1px solid rgba(255, 255, 255, 0.05); font-size: 0.9rem;
}

/* Markets Container */
.markets-container { background: var(--glass-bg); border-radius: 10px; border: 1px solid var(--border-color); overflow: hidden; }
.market-header { background: #1b263b; padding: 12px 15px; display: flex; justify-content: space-between; align-items: center; }
.header-title { font-weight: 800; color: var(--accent-yellow); font-size: 1.1rem; }

.grid-header {
    display: grid; grid-template-columns: 1fr 100px 100px 100px 40px;
    gap: 5px; background: #0d1b2a; padding: 8px 15px; font-size: 0.75rem; color: var(--text-muted); text-align: center;
}

.match-row { padding: 15px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); width: 100%; }
.match-info-container { display: grid; grid-template-columns: 1fr 100px 100px 100px 40px; gap: 5px; align-items: center; width: 100%; }

.match-odds { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.odd-box {
    height: 40px; display: flex; align-items: center; justify-content: center; font-size: 0.95rem;
    font-weight: 800; border-radius: 4px; cursor: pointer; transition: transform 0.1s;
}
.back { background: var(--back-blue); color: #000; }
.lay { background: var(--lay-pink); color: #000; }

.btn-whatsapp-bet {
    background: #25d366; color: white; text-decoration: none; font-weight: 800; font-size: 0.9rem;
    padding: 10px; border-radius: 6px; display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; margin-top: 12px; transition: all 0.3s ease; border: 1px solid rgba(255,255,255,0.1);
}

/* SEO Section Styling */
.hero-seo {
    text-align: center; padding: 100px 20px; border-radius: 20px; margin-top: 40px;
    background: linear-gradient(135deg, rgba(27, 67, 130, 0.3) 0%, rgba(13, 20, 33, 0.5) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-seo h1 { font-size: clamp(2rem, 5vw, 3.5rem); color: var(--accent-yellow); margin-bottom: 20px; font-weight: 800; }
.cta-btn {
    display: inline-block; padding: 15px 40px; background: var(--accent-yellow); color: #000;
    border-radius: 50px; font-weight: 800; text-decoration: none; font-size: 1.1rem;
}

/* Sidebar Right */
.sidebar-right { background: var(--glass-bg); border-radius: 8px; border: 1px solid var(--border-color); padding: 15px; height: fit-content; }

/* Sticky Footer */
.sticky-footer { position: fixed; bottom: 15px; right: 15px; z-index: 1000; }
.whatsapp-btn {
    background: #25d366; color: white; padding: 14px 25px; border-radius: 50px; text-decoration: none;
    font-weight: 800; display: flex; align-items: center; gap: 10px; box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

/* ================================================= */
/*             RESPONSIVE MEDIA QUERIES              */
/* ================================================= */

@media (max-width: 1200px) {
    .page-layout { grid-template-columns: 200px 1fr; }
    .sidebar-right { display: none; }
}

@media (max-width: 992px) {
    .page-layout { grid-template-columns: 1fr; }
    .sidebar-left { display: none; }
    .header-nav span { display: none; } /* Show only icons on tablet */
    .nav-btn-premium { padding: 10px 15px !important; }
    .header-nav { margin-left: 0 !important; justify-content: center; width: 100%; }
}

@media (max-width: 768px) {
    .main-header { flex-direction: column; text-align: center; padding: 10px 5px; height: auto; gap: 15px; }
    .logo-main { font-size: 1.6rem; }
    .header-nav { width: 100%; justify-content: center; flex-wrap: wrap; margin-left: 0 !important; gap: 8px; }
    .nav-btn-premium { padding: 6px 12px !important; font-size: 0.75rem !important; }
    .login-form { width: 100%; justify-content: center; margin-top: 5px; flex-wrap: wrap; display: flex; gap: 8px; }
    .login-form .input-group input { width: 100px; }
    .btn { padding: 6px 12px; font-size: 0.8rem; }
    
    .logo-main { font-size: 1.8rem; }
    
    .grid-header { display: none; } /* Hide complicated headers on mobile */
    
    .match-info-container {
        display: flex; flex-direction: column; text-align: center; gap: 10px; width: 100%;
    }
    
    .match-info-container > div {
        width: 100%;
    }
    
    .match-odds {
        width: 100%; max-width: 320px; margin: 0 auto;
    }
    
    .hero-seo { padding: 60px 15px; }
    .hero-seo h1 { font-size: 2rem; }
    
    .seo-content-section { padding: 15px; text-align: center; }
    .features-grid { grid-template-columns: 1fr; }
    
    .internal-links { flex-direction: column; align-items: center; gap: 15px; }
    .nav-btn-premium span { display: inline !important; } /* Restore text in footer for clarity */
}

@media (max-width: 480px) {
    .nav-btn-premium { font-size: 0.65rem !important; padding: 5px 10px !important; }
    .nav-btn-premium span { display: none !important; } /* Only icons on small mobile */
    .nav-scroll .nav-item { padding: 8px 10px; font-size: 0.7rem; }
    .logo-main { font-size: 1.4rem; }
    .login-form .input-group input { width: 70px; font-size: 0.75rem; }
    .btn span { display: none; } /* Hide btn text */
    .btn { padding: 8px 12px; }
    
    .hero-banner { aspect-ratio: 16/9; }
    
    .odd-box { height: 40px; font-size: 1rem; }
    .match-info span { font-size: 0.9rem; }
    .btn-whatsapp-bet { font-size: 0.85rem; padding: 8px; }
}

@media (max-width: 360px) {
    .login-form .input-group input { width: 60px; }
    .header-nav { gap: 5px; }
    .logo-main { font-size: 1.2rem; }
}
