:root {
    /* Base Backgrounds */
    --bg-main: #040810;
    --bg-nav: rgba(4, 8, 16, 0.85);
    --bg-card: rgba(11, 22, 44, 0.6);
    --bg-card-hover: rgba(16, 33, 64, 0.8);
    --border-glass: rgba(22, 149, 98, 0.18);
    --border-glass-hover: rgba(16, 185, 129, 0.45);
    
    /* Branding Colors (Logo Matched) */
    --brand-green: #169562;
    --brand-green-glow: rgba(22, 149, 98, 0.35);
    --accent-emerald: #10b981;
    --accent-mint: #00ff87;
    
    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    /* Status Colors */
    --status-win: #10b981;
    --status-win-glow: rgba(16, 185, 129, 0.2);
    --status-lose: #f87171;
    --status-lose-glow: rgba(248, 113, 113, 0.15);
    --status-pending: #fbbf24;
    --status-pending-glow: rgba(251, 191, 36, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif;
    background: radial-gradient(circle at 50% 0%, #0d1b32 0%, var(--bg-main) 70%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--brand-green);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-emerald);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 8%;
    background: var(--bg-nav);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-glass);
    transition: all 0.3s ease;
}

/* Logo Circular */
.logo-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    transition: transform 0.2s ease;
}
.logo-link:hover {
    transform: translateY(-1px);
}
.logo-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border-glass-hover);
    box-shadow: 0 0 12px var(--brand-green-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.logo-link:hover .logo-circle {
    border-color: var(--accent-mint);
    box-shadow: 0 0 16px var(--accent-mint);
}
.logo-img-circle {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}
.green-text {
    color: var(--accent-mint);
    text-shadow: 0 0 10px rgba(0, 255, 135, 0.3);
}

.menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-mint);
    transition: width 0.3s ease;
}

.menu a:hover {
    color: var(--text-primary);
}

.menu a:hover::after {
    width: 100%;
}

/* Custom Lang Slider Switch */
.lang-switch-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    border: 1px solid var(--border-glass);
}
.lang-label {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-muted);
    transition: all 0.3s ease;
    user-select: none;
}
.lang-label.active {
    color: var(--accent-mint);
    text-shadow: 0 0 8px rgba(0, 255, 135, 0.4);
}
.switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 20px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(4, 8, 16, 0.5);
    border: 1px solid var(--border-glass);
    transition: .3s;
    border-radius: 20px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 3px;
    bottom: 3px;
    background-color: var(--brand-green);
    transition: .3s;
    border-radius: 50%;
}
input:checked + .slider {
    border-color: var(--accent-emerald);
}
input:checked + .slider:before {
    transform: translateX(18px);
    background-color: var(--accent-mint);
    box-shadow: 0 0 8px var(--accent-mint);
}

/* Hero Section */
.hero {
    height: auto;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: url('../stadium_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 6rem 20px 5rem;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(4, 8, 16, 0.4) 0%, rgba(4, 8, 16, 0.96) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(22, 149, 98, 0.15);
    border: 1px solid rgba(22, 149, 98, 0.4);
    color: var(--accent-mint);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-mint);
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 8px var(--accent-mint);
    animation: pulse 1.8s infinite;
}

.hero-content h1 {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.highlight {
    background: linear-gradient(120deg, var(--accent-mint) 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 400;
}

/* Hero Telegram Widget */
.hero-telegram-card {
    background: rgba(11, 22, 44, 0.45);
    border: 1px solid rgba(22, 149, 98, 0.28);
    border-radius: 20px;
    padding: 1.5rem;
    margin: 0 auto 2.2rem;
    max-width: 580px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 32px rgba(4, 8, 16, 0.4);
    animation: fadeInUp 1.2s ease-out;
}
.telegram-card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--accent-mint);
    margin-bottom: 0.5rem;
}
.tg-icon {
    color: #229ED9;
    filter: drop-shadow(0 0 5px rgba(34, 158, 217, 0.5));
}
#tg-card-title {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1.5px;
}
#tg-card-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
}
.hero-telegram-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}
.hero-tg-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.4rem;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(34, 158, 217, 0.3);
    background: rgba(34, 158, 217, 0.08);
    width: 48%;
    justify-content: center;
}
.hero-tg-btn:hover {
    background: #229ED9;
    border-color: var(--accent-mint);
    box-shadow: 0 0 20px rgba(34, 158, 217, 0.6);
    transform: translateY(-2px);
}
.flag-badge {
    font-size: 1.2rem;
    line-height: 1;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--brand-green) 0%, #0b7a4f 100%);
    color: var(--text-primary);
    padding: 1.1rem 2.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(0, 255, 135, 0.2);
    box-shadow: 0 10px 25px rgba(22, 149, 98, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 255, 135, 0.45);
    border-color: var(--accent-mint);
}

/* Sections */
.section {
    padding: 6rem 8% 5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 3.5rem;
    text-align: center;
}

.section h2 {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 0.8rem;
    text-transform: capitalize;
}

.header-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-green), var(--accent-mint));
    margin: 0 auto;
    border-radius: 2px;
}

.dark-section {
    background: transparent;
    border-top: 1px solid rgba(22, 149, 98, 0.1);
}

/* Grid layout */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

/* Match Cards (Bet Tickets) */
.match-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 2.2rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.match-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-green) 0%, var(--accent-mint) 100%);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.match-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-glass-hover);
    box-shadow: 0 15px 35px rgba(22, 149, 98, 0.12);
    background: var(--bg-card-hover);
}

.match-card:hover::before {
    opacity: 1;
}

.league-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.match-card-header {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.match-date-badge {
    font-size: 0.75rem;
    color: var(--brand-green);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.teams {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0.8rem 0;
    line-height: 1.3;
}

.prediction-box {
    background: rgba(22, 149, 98, 0.08);
    border-left: 3px solid var(--brand-green);
    padding: 0.8rem 1.2rem;
    border-radius: 0 10px 10px 0;
    margin: 1.2rem 0;
}

.prediction-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
}

.prediction {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--accent-mint);
}

.bet-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.odd-badge {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 700;
}

.odd-value {
    color: var(--accent-mint);
    font-size: 1.15rem;
    font-weight: 800;
}

.stake-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.stake-value {
    color: var(--brand-green);
    font-weight: 800;
}

.rationale-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1.2rem;
    font-style: italic;
    line-height: 1.5;
    border-top: 1px dashed rgba(255, 255, 255, 0.06);
    padding-top: 1rem;
}

/* Stats Dashboard */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.8rem;
    margin: 0 auto 4rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    position: relative;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glass-hover);
    box-shadow: 0 10px 25px rgba(22, 149, 98, 0.08);
    background: var(--bg-card-hover);
}

.stat-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 0 auto 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pnl-icon { background: rgba(16, 185, 129, 0.1); color: var(--accent-emerald); }
.winrate-icon { background: rgba(0, 255, 135, 0.1); color: var(--accent-mint); }
.yield-icon { background: rgba(22, 149, 98, 0.1); color: var(--brand-green); }
.total-icon { background: rgba(255, 255, 255, 0.05); color: var(--text-secondary); }

.stat-value {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.text-green {
    color: var(--accent-mint);
    text-shadow: 0 0 15px rgba(0, 255, 135, 0.25);
}

/* Recent Results Table */
.recent-results-container {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.sub-section-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1.8rem;
    color: var(--text-primary);
    position: relative;
    padding-left: 1rem;
}

.sub-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background: var(--accent-mint);
    border-radius: 2px;
}

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

.results-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.92rem;
}

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

.results-table td {
    padding: 1.2rem 1rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.results-table tbody tr {
    transition: background-color 0.2s ease;
}

.results-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.status-win-badge {
    background: var(--status-win-glow);
    color: var(--status-win);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-lose-badge {
    background: var(--status-lose-glow);
    color: var(--status-lose);
    border: 1px solid rgba(248, 113, 113, 0.25);
}

.status-pending-badge {
    background: var(--status-pending-glow);
    color: var(--status-pending);
    border: 1px solid rgba(251, 191, 36, 0.25);
}

.pnl-value {
    font-weight: 700;
}
.pnl-positive {
    color: var(--accent-mint);
}
.pnl-negative {
    color: var(--status-lose);
}

/* Footer */
footer {
    border-top: 1px solid var(--border-glass);
    background: #020409;
    padding: 4rem 8% 3rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.8rem;
}

.footer-logo {
    height: 45px;
    width: auto;
    border-radius: 50%;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 600px;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.social-btn svg {
    transition: transform 0.3s ease;
}

.telegram {
    background: rgba(0, 136, 204, 0.1);
    border-color: rgba(0, 136, 204, 0.25);
}
.telegram:hover {
    background: #0088cc;
    border-color: #0088cc;
    box-shadow: 0 0 15px rgba(0, 136, 204, 0.4);
}

.x-twitter {
    background: rgba(255, 255, 255, 0.05);
}
.x-twitter:hover {
    background: var(--text-primary);
    color: #000;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.social-btn:hover svg {
    transform: scale(1.1);
}

/* Cookies Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    width: calc(100% - 4rem);
    max-width: 900px;
    background: rgba(11, 22, 44, 0.96);
    border: 1px solid var(--border-glass-hover);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    z-index: 9999;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.cookie-banner.hide {
    transform: translateX(-50%) translateY(180px);
    opacity: 0;
    pointer-events: none;
}
.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}
#cookie-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    text-align: left;
}
.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}
.cookie-btn {
    padding: 0.6rem 1.6rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}
.decline-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}
.decline-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
}
.accept-btn {
    background: linear-gradient(135deg, var(--brand-green) 0%, #0b7a4f 100%);
    color: var(--text-primary);
    border: 1px solid rgba(0, 255, 135, 0.2);
}
.accept-btn:hover {
    box-shadow: 0 0 15px rgba(0, 255, 135, 0.4);
    background: var(--accent-emerald);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 255, 135, 0.5);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(0, 255, 135, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 255, 135, 0);
    }
}

/* Loading state */
.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    font-size: 1.1rem;
    color: var(--brand-green);
    font-weight: 700;
    letter-spacing: 1px;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }
    .section {
        padding: 4rem 5% 3rem;
    }
    .hero-telegram-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    .hero-tg-btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
    }
    .cookie-buttons {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 600px) {
    .navbar {
        padding: 1rem 5%;
        flex-direction: column;
        gap: 1rem;
    }
    .menu {
        gap: 1.2rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .recent-results-container {
        padding: 1.5rem;
    }
    .results-table th, .results-table td {
        padding: 0.8rem 0.5rem;
        font-size: 0.85rem;
    }
}
