:root {
    --primary-color: #00ff41; /* Brighter Neon Green */
    --primary-hover: #00cc33;
    --bg-main: #0b0f19;
    --bg-secondary: #131a2a;
    --bg-gradient-start: #111a2e;
    --panel-bg: rgba(19, 26, 42, 0.7);
    --border-color: rgba(0, 255, 65, 0.2);
    --text-light: #ffffff;
    --text-muted: #8b9bb4;
    --font-heading: 'Oswald', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --accent-red: #ff3333;
    --glass-bg: rgba(10, 15, 25, 0.8);
    --card-hover: rgba(0, 255, 65, 0.1);
}

[data-theme="light"] {
    --primary-color: #00aa33;
    --primary-hover: #008822;
    --bg-main: #f0f4f8;
    --bg-secondary: #ffffff;
    --bg-gradient-start: #ffffff;
    --panel-bg: rgba(255, 255, 255, 0.9);
    --border-color: rgba(0, 0, 0, 0.1);
    --text-light: #1a202c;
    --text-muted: #4a5568;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --card-hover: rgba(0, 0, 0, 0.05);
}

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

body {
    background: radial-gradient(circle at top, var(--bg-gradient-start) 0%, var(--bg-main) 100%);
    color: var(--text-light);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-attachment: fixed;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Background Graphic (Subtle Soccer Field pattern) */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.01) 0px, rgba(255,255,255,0.01) 50px, transparent 50px, transparent 100px);
    z-index: -1;
    pointer-events: none;
}

/* Header */
header {
    background: rgba(11, 15, 25, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 2px solid var(--border-color);
    box-shadow: 0 4px 30px rgba(0, 255, 65, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    max-height: 80px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

/* Central Header Navigation */
.header-center-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.header-center-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    font-family: var(--font-heading);
    transition: color 0.3s ease, transform 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-center-nav a:hover,
.header-center-nav a.active {
    color: var(--primary-color);
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.4);
}

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

/* VIP Tips Button */
.vip-tips-btn {
    background: linear-gradient(45deg, #ffd700, #ffaa00);
    color: #000;
    text-decoration: none;
    padding: 10px 24px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 1px;
    border-radius: 30px;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: pulseGold 2s infinite;
}

.vip-tips-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.8);
    color: #000;
}

@keyframes pulseGold {
    0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 215, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 2rem;
    cursor: pointer;
}

/* Layout Container */
.layout-container {
    display: flex;
    flex: 1;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

/* Sidebar Navigation */
.sidebar {
    width: 300px;
    background: var(--bg-secondary);
    padding: 2rem;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 5px 0 30px rgba(0,0,0,0.5);
    z-index: 10;
}

.nav-group {
    margin-bottom: 2.5rem;
}

.nav-group h3 {
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
    padding-bottom: 5px;
}

.nav-list {
    list-style: none;
}

.nav-item {
    padding: 14px 15px;
    margin-bottom: 10px;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-light);
}

.nav-item:hover {
    background: var(--card-hover);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(0, 255, 65, 0.2), transparent);
    border-left: 4px solid var(--primary-color);
    color: var(--text-light);
    box-shadow: inset 0 0 20px rgba(0,255,65,0.05);
}

.icon {
    font-size: 1.2rem;
    display: inline-block;
    width: 25px;
    text-align: center;
}

/* Main Content Area */
.main-content {
    flex: 1;
    padding: 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Hero Title Section */
.content-header {
    width: 100%;
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(180deg, var(--panel-bg), transparent);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}

/* Decorative Glow in Header */
.content-header::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 100px;
    background: var(--primary-color);
    filter: blur(80px);
    opacity: 0.2;
    z-index: 0;
}

.content-header h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.content-header h1 .highlight {
    color: var(--primary-color);
}

.content-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Quick Stats Badges */
.quick-stats {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.stat-badge {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.stat-badge .icon {
    font-size: 1.1rem;
}

/* News Ticker */
.news-ticker-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 2rem auto;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.ticker-label {
    background: var(--primary-color);
    color: #000;
    font-weight: bold;
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    z-index: 2;
    box-shadow: 2px 0 10px rgba(0,0,0,0.5);
}

.ticker-wrap {
    flex: 1;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
}

.ticker-move {
    display: flex;
    white-space: nowrap;
    animation: ticker 20s linear infinite;
}

.ticker-move:hover {
    animation-play-state: paused;
}

.ticker-item {
    padding: 0 30px;
    font-size: 0.95rem;
    color: var(--text-light);
}

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

/* Tips Container (Heavy Glassmorphism Card) */
.tips-container {
    width: 100%;
    max-width: 900px;
    background: var(--glass-bg);
    border: 2px solid var(--border-color);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2), inset 0 0 30px rgba(0,255,65,0.02);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 500px;
    max-height: 800px;
    overflow-y: auto;
    position: relative;
}

/* Custom Scrollbar for tips container */
.tips-container::-webkit-scrollbar {
    width: 8px;
}
.tips-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}
.tips-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.tips-container::after {
    content: '';
    position: absolute;
    bottom: -10px; right: -10px;
    width: 100px; height: 100px;
    background: var(--primary-color);
    filter: blur(60px);
    opacity: 0.1;
    z-index: -1;
}

.tips-container img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: zoomIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid transparent;
}

/* Color coding for results (requires backend to send these classes) */
.tips-container img.won {
    border-color: #00ff41;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.4);
}

.tips-container img.lost {
    border-color: #ff3333;
    box-shadow: 0 0 20px rgba(255, 51, 51, 0.4);
}

.tips-container img.draw {
    border-color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

/* Loaders */
.loader-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.loader {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(0, 255, 65, 0.1);
    border-bottom-color: var(--primary-color);
    border-radius: 50%;
    display: inline-block;
    animation: rotation 1s linear infinite;
}

.loader-text {
    color: var(--primary-color);
    font-family: var(--font-heading);
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: pulse 1.5s infinite;
}

@keyframes rotation { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes pulse { 0% { opacity: 0.5; } 50% { opacity: 1; } 100% { opacity: 0.5; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

.error-msg {
    color: var(--accent-red);
    text-align: center;
    display: none;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 20px;
    background: rgba(255, 51, 51, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 51, 51, 0.3);
}

/* Google Ads Containers */
.ad-container {
    width: 100%;
    margin: 2rem auto;
    display: block;
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 5px 0;
    overflow: hidden;
    text-align: center;
}

.ad-container ins {
    display: block !important;
    width: 100%;
    min-height: inherit;
}

/* Animated Instagram Button */
.insta-animated-btn {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white !important;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(220, 39, 67, 0.4);
    animation: bounceInsta 2s infinite;
    transition: transform 0.3s ease;
}

.insta-animated-btn:hover {
    transform: scale(1.05);
    animation: none;
}

@keyframes bounceInsta {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Modals removed as requested */

/* Theme Toggle Button */
.theme-toggle-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s;
}
.theme-toggle-btn:hover {
    transform: rotate(30deg);
}

/* Sticky Disclaimer Banner */
.disclaimer-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(11, 15, 25, 0.95);
    backdrop-filter: blur(10px);
    border-top: 2px solid var(--accent-red);
    padding: 15px 20px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

.disclaimer-banner.hidden {
    transform: translateY(100%);
}

.disclaimer-content {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.disclaimer-icon {
    font-size: 1.2rem;
    background: var(--accent-red);
    color: white;
    width: 30px; height: 30px;
    display: flex; justify-content: center; align-items: center;
    border-radius: 50%;
    font-weight: bold;
    flex-shrink: 0;
}

.close-disclaimer {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0 10px;
}

/* FAQ Section */
.faq-container {
    margin-top: 3rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.faq-question {
    width: 100%;
    padding: 18px 20px;
    background: none;
    border: none;
    text-align: left;
    color: var(--text-light);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: var(--card-hover);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    pointer-events: none;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: rgba(0,0,0,0.2);
}

.faq-answer p {
    padding: 20px;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
}

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

.faq-item.active .faq-answer {
    max-height: 200px;
}

/* Floating Support Widget */
.floating-support-btn {
    position: fixed;
    bottom: 80px; /* Above the disclaimer banner */
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0088cc, #005580); /* Telegram colors */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.4);
    z-index: 999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: bounceSupport 3s infinite;
}

.floating-support-btn .support-icon {
    font-size: 1.8rem;
    color: white;
}

.floating-support-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.6);
    animation: none;
}

@keyframes bounceSupport {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-7px); }
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
    .desktop-only { display: none !important; }
    .layout-container { flex-direction: column; }
    header { padding: 1rem; }
    .sidebar {
        position: fixed;
        left: -100%;
        top: 70px;
        height: calc(100vh - 70px);
        width: 100%;
        max-width: 320px;
        transition: left 0.4s ease;
        overflow-y: auto;
    }
    .sidebar.open { left: 0; }
    .mobile-menu-btn { display: block; }
    .main-content { padding: 1rem; }
    .content-header h1 { font-size: 2.2rem; }
}

@media (max-width: 768px) {
    .logo img { max-height: 55px; } /* Smaller logo on mobile */
    .header-actions { gap: 10px; }
    .vip-tips-btn { padding: 8px 15px; font-size: 0.9rem; }
    .content-header h1 { font-size: 1.8rem; }
    .tips-container { padding: 1rem; min-height: 300px; }
    .ad-container { margin: 1rem auto; }
}

/* 7-Days Grid */
.days-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    width: 100%;
}

.day-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.day-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 255, 65, 0.2);
    border-color: var(--primary-color);
}

.day-card .date-badge {
    background: rgba(0, 255, 65, 0.1);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

/* Social Bar */
.social-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    flex-wrap: wrap;
}

.social-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.social-btn.liked {
    background: rgba(255, 51, 51, 0.1);
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.social-btn.comment {
    background: rgba(0, 136, 204, 0.1);
    border-color: #0088cc;
    color: #0088cc;
}

/* ── Today's Tip Section ───────────────────────────────────────── */
.today-tip-section {
    width: 100%;
    margin-bottom: 2rem;
}

.today-tip-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.today-badge {
    background: linear-gradient(135deg, rgba(0,255,65,0.2), rgba(0,255,65,0.05));
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.today-tip-img-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 180px;
}

.tip-full-img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,255,65,0.15), 0 4px 16px rgba(0,0,0,0.5);
    border: 2px solid rgba(0,255,65,0.2);
    animation: zoomIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: block;
}

/* ── History Section ───────────────────────────────────────────── */
.history-section {
    width: 100%;
    margin-top: 0.5rem;
}

.history-title {
    font-family: var(--font-heading);
    color: var(--text-light);
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* Override the day-card for thumbnail layout */
.day-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}

.card-thumb-wrap {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
    display: block;
}

.day-card:hover .card-thumb {
    transform: scale(1.06);
}

.thumb-placeholder {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 1.8rem;
    width: 100%;
    height: 100%;
}

.thumb-placeholder small {
    font-size: 0.75rem;
    display: block;
}

.day-card h3 {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-light);
}

.day-card p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

/* ── Mini loader inside today's tip wrap ───────────────────────── */
.mini-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 2rem;
}

/* ── Tip Not Available Placeholder ────────────────────────────── */
.tip-not-available {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    width: 100%;
    text-align: center;
}

.tip-not-available span {
    font-size: 3rem;
}

/* Override tips-container to remove height limit on homepage */
.tips-container {
    max-height: none !important;
    overflow-y: visible !important;
}

