:root {
    --bg-color: #0f1115;
    --card-bg: #1c1f26;
    --accent-blue: #00d4ff;
    --text-main: #ffffff;
    --text-dim: #94a3b8;
    --border: #2d333f;
    --overlay-hero: rgba(15, 17, 21, 0.4);
    --overlay-stats: rgba(15, 17, 21, 0.85);
    --pred-body-bg: rgba(0, 0, 0, 0.2);
    --progress-bg: #333;
    overflow-x: clip;
}

/* Light Mode Variables */
body.light-mode {
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --accent-blue: #0088cc; /* Darker blue for contrast on light background */
    --text-main: #0f172a;
    --text-dim: #475569;
    --border: #e2e8f0;
    --overlay-hero: rgba(248, 250, 252, 0.7);
    --overlay-stats: rgba(248, 250, 252, 0.9);
    --pred-body-bg: rgba(0, 0, 0, 0.05);
    --progress-bg: #cbd5e1;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: clip; /* Prevents horizontal scrolling without breaking sticky nav */
}

.container {
    max-width: 600px;
    margin: 0 auto;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000; /* Ensures the navbar stays above other content */

    /* 2. Glassmorphism Effect */
    background: rgba(255, 255, 255, 0.15); /* Semi-transparent background */
    backdrop-filter: blur(12px); /* Blurs the content behind the navbar */
    -webkit-backdrop-filter: blur(12px); /* For Safari support */
    
    /* Optional: Adds a subtle border and shadow to enhance the glass look */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);

    /* 3. Basic Layout (if you haven't added this yet) */
    
}

/* Nav Controls */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

/* Ensure the body doesn't have default margins that might push the sticky nav around */
body {
    margin: 0;
}

/* Menu Toggle Button */
.menu-toggle {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1002; /* Ensures button stays on top of the menu */
    transition: transform 0.3s ease;
}

.menu-toggle.open {
    transform: rotate(180deg);
}

/* Side Menu Styling */
nav {
    position: fixed;
    top: 0;
    right: -260px; /* Pushed further to hide the 1px border */
    width: 250px;
    height: 100vh; /* Takes up full screen height */
    background: var(--bg-color);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 80px; 
    /* padding-left: 30px; Keeps the text from touching the edge */
    gap: 30px;
    transition: right 0.3s ease-in-out; /* Smooth sliding animation */
    z-index: 1001;
}

nav.open {
    right: 0; /* Slides the menu in */
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.2rem;
}

nav a.active, nav a:hover {
    color: var(--accent-blue);
}

/* Premium CTA Button */
.btn-premium {
    background: linear-gradient(135deg, #ffcf54 0%, #ff7b00 100%); /* Gold to Orange gradient */
    color: #111; /* Dark text for contrast against the bright background */
    border: none;
    padding: 12px 24px;
    border-radius: 30px; /* Pill shape */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 123, 0, 0.4); /* Glowing shadow */
    transition: all 0.3s ease; /* Smooth hover transition */
    display: flex;
    align-items: center;
    gap: 8px; /* Adds space between the icon and the text */
}

.btn-premium:hover {
    transform: translateY(-2px); /* Lifts the button slightly */
    box-shadow: 0 6px 20px rgba(255, 123, 0, 0.6); /* Enhances the glow */
}

/* Telegram CTA Button */
.btn-telegram {
    background: linear-gradient(135deg, #0088cc 0%, #00aaff 100%); /* Telegram Blue gradient */
    color: #ffffff; 
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-telegram:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.6);
}

.logo {
    text-transform: uppercase;
    font-family: 'Roboto', sans-serif;
    font-weight: bolder;
    font-size: 1.3rem;
}

/* Hero Welcome Section */
.hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(to top, var(--overlay-hero), var(--bg-color)), url('../Resources/Images/Analysis.png') no-repeat center 20% / cover;
    padding: 60px 20px;
}



.hero-content {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-dim);
    line-height: 1.6;

    margin: 0 0 15px 0;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap; /* Ensures buttons stack cleanly on very small screens */
}

.stats-section {
    padding: 60px 20px;
    background: linear-gradient(to top, var(--overlay-stats), var(--bg-color)), url('../Resources/Images/Victory.png') no-repeat center center / cover;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    flex-wrap: wrap; /* Allows stacking on smaller screens */
    gap: 30px;
}

.stat-item {
    flex: 1;
    min-width: 150px; /* Prevents items from getting too squished */
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Main Content Title */
.container > .page-title {
    text-align: center;

}

.prediction-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    transition: transform 0.2s, border-color 0.2s;
}

.prediction-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}

.sport-tag {
    color: var(--accent-blue);
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.match-teams {
    font-size: 1.4rem;
    margin: 12px 0;
}

.prediction-body {
    display: flex;
    justify-content: space-between;
    background: var(--pred-body-bg);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

/* .blurred {
    filter: blur(5px);
    user-select: none;
    color: var(--text-dim);
} */

.btn-unlock {
    width: 100%;
    background: var(--accent-blue);
    color: #000;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

/* Confidence Bar */
.progress-bar {
    height: 6px;
    background: var(--progress-bg);
    border-radius: 10px;
    margin-top: 5px;
}

.progress-fill {
    height: 100%;
    background: #00e676; /* Vibrant glowing green */
    border-radius: 10px;
    box-shadow: 0 0 10px #00e676;
    transition: width 1.2s ease-out; /* Animates the width over 1.2 seconds */
}

/* Footer Styling */
.site-footer {
    background-color: var(--card-bg);
    border-top: 1px solid var(--border);
    padding: 60px 20px 20px;
    margin-top: 60px;
}

.footer-container {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--text-main);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 40px;
    height: 3px;
    background: var(--accent-blue);
    border-radius: 2px;
}

.footer-section p {
    color: var(--text-dim);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-section ul a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-section ul a:hover {
    color: var(--accent-blue);
    padding-left: 5px; /* Slight nudge effect on hover */
}

.footer-section ul a.highlight {
    color: var(--text-main);
    font-weight: bold;
    display: flex;
    align-items: center;
}

.footer-section ul a.highlight::before {
    content: '→';
    color: var(--accent-blue);
    margin-right: 8px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.footer-section ul a.highlight:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.email-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    padding: 12px 20px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.email-link:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Premium Page Styles */
.premium-hero {
    text-align: center;
    padding: 60px 20px 40px;
}

.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    max-width: 450px;
    margin: 0 auto 60px;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #ffcf54 0%, #ff7b00 100%);
}

.plan-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

.price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-blue);
    margin-top: 10px;
}

.price span {
    font-size: 1.2rem;
    color: var(--text-dim);
}

.premium-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.checkout-btn {
    width: 100%;
    margin-top: 20px;
    justify-content: center;
    font-size: 1.1rem;
}

/* =========================================
   Responsive Media Queries
   ========================================= */

/* Tablets & Smaller Desktop Screens */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 1.5rem;
    }

    .hero {
        min-height: 35vh;
        padding: 40px 15px;
    }

    .stats-section {
        padding: 40px 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .prediction-card {
        padding: 16px;
    }

    .match-teams {
        font-size: 1.2rem;
    }

    .prediction-body {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .pricing-card {
        padding: 25px 20px;
    }

    .price {
        font-size: 2.2rem;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.7rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn-premium, .btn-telegram {
        font-size: 0.9rem;
        padding: 10px 20px;
    }

    .price {
        font-size: 1.8rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }
}