/* public/css/app.css */
:root {
    --bg-base: #0f1115;
    --bg-surface: rgba(25, 28, 36, 0.6);
    --bg-surface-hover: rgba(35, 39, 49, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.5);
    
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    --radius-md: 12px;
    --radius-lg: 16px;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Global Typography Helpers */
.text-muted {
    color: var(--text-muted) !important;
}

.text-main {
    color: var(--text-main) !important;
}

:root {
   /* Language Visibility */
    --display-pl: none;
    --display-en: block;
}

body.lang-en .lang-pl { display: none !important; }
body.lang-pl .lang-en { display: none !important; }

/* Theme Variables for Cards/Auth */
:root {
    --bg-card: rgba(25, 28, 36, 0.7);
    --card-border: rgba(255, 255, 255, 0.08);
}

.light-theme {
    --bg-card: rgba(255, 255, 255, 0.95);
    --card-border: rgba(0, 0, 0, 0.08);
}

.light-theme {
    --bg-base: #eef2f7;
    --bg-surface: rgba(255, 255, 255, 0.97);
    --bg-surface-hover: rgba(243, 246, 252, 1);
    --border-color: rgba(0, 0, 0, 0.12);
    --text-main: #111827;
    --text-muted: #374151; /* Darker than before (#4b5563) for better contrast */

    --primary: #2563eb;
    --primary-glow: rgba(37, 99, 235, 0.25);

    --success: #059669;
    --warning: #d97706;
    --danger:  #dc2626;
}

.light-theme .navbar {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.light-theme .glassmorphism {
    background: var(--bg-surface);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.light-theme body {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.035) 1px, transparent 1px);
}

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

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Subtle background grid pattern */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

body.no-scroll {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}

html, body {
    overflow-x: hidden;
}


a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }
}

/* Glassmorphism Utility */
.glassmorphism {
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 17, 21, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

@media (max-width: 1024px) {
    .navbar {
        padding: 10px 0;
    }
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.logo-icon {
    color: var(--primary);
}

.badge {
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    vertical-align: top;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link.nav-badge {
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 12px; /* Rectangular with rounded corners */
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
    margin-left: 5px;
    min-height: 42px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (max-width: 1024px) {
    .nav-link.nav-badge {
        min-height: 44px !important; /* Significantly taller */
        font-size: 0.85rem !important; /* Larger font */
        padding: 8px 20px !important;
        margin-top: 10px !important;
        margin-bottom: 10px !important;
        border-radius: 8px !important; 
        background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%) !important; /* Vibrant gradient */
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4) !important; /* Subtle glow */
        letter-spacing: 1px !important;
        width: 100% !important; /* Full width for more impact */
        justify-content: center !important;
    }
    
    .nav-link.nav-badge i {
        width: 18px !important;
        height: 18px !important;
    }
}

.nav-link.nav-badge:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
    filter: brightness(1.1);
}

.nav-link.nav-badge.active::after {
    display: none !important;
}

/* Analitics Button in Match Row */
.btn-analitics {
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: white !important;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
}

.match-row-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 5px;
}

.btn-analitics:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
    filter: brightness(1.1);
}

.btn-analitics i {
    width: 14px;
    height: 14px;
}

.match-tips-side {
    flex-direction: column !important;
}

.light-theme .hero-title {
    background: linear-gradient(135deg, #111827 0%, #374151 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* Grid System */
.grid {
    display: grid;
    gap: 1.5rem;
    width: 100%;
}
.grid-col-2 { grid-template-columns: repeat(2, 1fr); }
.grid-col-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 900px) {
    .grid-col-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .grid-col-2, .grid-col-3 { grid-template-columns: 1fr; }
}

.mb-4 { margin-bottom: 2rem !important; }

.nav-links {
    display: flex;
    gap: 25px;
}


.nav-link {
    color: var(--text-muted);
    font-weight: 600;
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
    box-shadow: 0 -2px 10px var(--primary-glow);
}

/* Layout */
.main-content {
    flex: 1;
    padding: 10px 0;
}

@media (max-width: 1024px) {
    .main-content {
        padding: 20px 0;
    }
}

/* Remove gap for admin layout */
.main-content:has(.admin-layout) {
    padding-top: 0;
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 8px;
    border-radius: var(--radius-md);
    cursor: pointer;
}

/* Visibility utilities */
.mobile-only {
    display: none !important;
}

@media (max-width: 1024px) {
    .mobile-only {
        display: flex !important;
    }
    .desktop-only {
        display: none !important;
    }
    .nav-toggle {
        display: block;
        order: 1;
        position: relative;
        z-index: 9999; /* Topmost */
    }

    .logo {
        order: 0;
    }
    .nav-links {
        /* Full Screen Popup Menu */
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100% !important;
        max-width: 100vw !important;
        height: 100dvh !important; /* Dynamic viewport height */
        background: #0f1115 !important; /* Solid base color */
        border: none;
        border-radius: 0;
        padding: 80px 24px 40px 24px;
        gap: 8px;
        z-index: 9998; /* Below toggle but above everything else */
        box-shadow: none;
        transform-origin: center;
        transition: all 0.3s ease;
        animation: menuFadeInFull 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        
        overflow-y: auto;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
    }

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

    
    .light-theme .nav-links {
        background: #ffffff;
        box-shadow: 0 20px 80px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.02) inset;
    }

    @keyframes menuFadeIn {
        from { opacity: 0; transform: scale(0.95) translateY(-10px); }
        to { opacity: 1; transform: scale(1) translateY(0); }
    }

    .nav-links .nav-link {
        display: flex;
        align-items: center;
        padding: 10px 18px; /* Bigger padding */
        font-size: 0.95rem; /* Bigger font */
        font-weight: 500;
        border-radius: 8px; /* Only corners */
        width: 100%;
        color: var(--text-main);
        transition: var(--transition);
        min-height: auto !important;
    }
    
    .nav-links .nav-link:hover {
        background: rgba(255, 255, 255, 0.05);
        transform: translateX(5px);
    }

    .light-theme .nav-links .nav-link:hover {
        background: rgba(0, 0, 0, 0.03);
    }

    .nav-links .nav-link.active::after {
        content: none !important;
        display: none !important;
    }

    .nav-links .nav-link.active {
        color: var(--primary);
        background: rgba(var(--primary), 0.1);
    }

    .nav-links .nav-link.mobile-user-info {
        background: rgba(var(--primary-rgb, 59, 130, 246), 0.1);
        border: 1px solid rgba(var(--primary-rgb, 59, 130, 246), 0.2);
        margin-bottom: 12px;
        justify-content: flex-start;
        padding: 14px 18px; /* Bigger */
        color: var(--text-main) !important;
        border-radius: 8px; /* Sharper */
    }
    
    .light-theme .nav-links .nav-link.mobile-user-info {
        background: #f8fafc;
        border-color: #e2e8f0;
    }

    .nav-links .nav-link.mobile-user-info .user-name {
        font-weight: 700;
        font-size: 1rem;
        color: var(--text-main);
    }
    .nav-links .nav-link.mobile-user-info .user-role {
        margin-left: auto;
    }

    .mobile-actions-row {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin: 10px 0 5px 0;
        padding-top: 15px;
        border-top: 1px solid var(--border-color);
    }

    .mobile-action-btn {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid var(--border-color);
        border-radius: 8px; /* Only corners */
        padding: 12px 4px; /* Slightly taller */
        color: var(--text-main);
        display: flex;
        flex-direction: column; /* Stack icon and text */
        justify-content: center;
        align-items: center;
        gap: 6px;
        font-size: 0.7rem; /* Slightly bigger */
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        transition: var(--transition);
        text-decoration: none;
    }
    
    .light-theme .mobile-action-btn {
        background: #f8fafc;
        border-color: #e2e8f0;
        color: #1e293b;
    }

    .mobile-action-btn:active {
        background: rgba(var(--primary-rgb, 59, 130, 246), 0.1);
        border-color: var(--primary);
        transform: scale(0.97);
    }
    
    .mobile-action-btn i {
        width: 20px;
        height: 20px;
        color: var(--primary);
    }
    
    .mobile-action-btn .lang-label {
        font-weight: 800;
        color: var(--primary);
    }
    
    .mobile-action-btn.logout-btn {
        color: #ff4d4d;
    }
    .mobile-action-btn.logout-btn i {
        color: #ff4d4d;
    }
    .mobile-action-btn.logout-btn:active {
        background: rgba(255, 77, 77, 0.1);
        border-color: #ff4d4d;
    }

    .nav-links .nav-link.mobile-only {
        color: var(--text-main) !important;
        font-weight: 600;
        padding: 14px 16px;
    }
    
    .nav-links .nav-link:not(.active):not(.mobile-user-info) {
        color: var(--text-main) !important;
    }
    
    .light-theme .nav-links .nav-link:not(.active):not(.mobile-user-info) {
        color: #1e293b !important;
    }
    
    .nav-links.active {
        display: flex;
    }
    .nav-actions {
        order: 2;
    }
}


.empty-state {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-muted);
}

.empty-state h2 {
    color: var(--text-main);
    margin-bottom: 10px;
}

.empty-state .lucide {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

@media (max-width: 768px) {
    .page-header {
        margin-bottom: 20px;
    }
    .page-header h1 {
        font-size: 1.6rem;
    }
    .subtitle {
        font-size: 0.95rem;
    }
}

.highlight {
    background: linear-gradient(to right, var(--text-main), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 5px;
}

/* Dashboard Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .stat-card {
        padding: 12px !important;
        gap: 8px !important;
        flex-direction: column;
        align-items: center !important;
        text-align: center !important;
    }
    .stat-icon-wrapper {
        width: 36px !important;
        height: 36px !important;
    }
    .stat-icon-wrapper .lucide {
        width: 18px !important;
        height: 18px !important;
    }
    .stat-info h3 {
        font-size: 1.2rem !important;
    }
    .stat-info p {
        font-size: 0.7rem !important;
    }
}

.stat-card {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.15);
}

.stat-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon-wrapper.success { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.stat-icon-wrapper.primary { background: rgba(59, 130, 246, 0.15); color: var(--primary); }
.stat-icon-wrapper.warning { background: rgba(245, 158, 11, 0.15); color: var(--warning); }

.stat-info h3 {
    font-size: 1.8rem;
    line-height: 1.2;
}

.stat-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Tips Grid (Home + Tips pages) */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.tip-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    color: var(--text-main);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    outline: none;
    z-index: 1;
}

@media (max-width: 768px) {
    .tip-card {
        padding: 15px;
    }
}

.tip-card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5), 0 0 15px rgba(59, 130, 246, 0.2);
}

.tip-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: var(--transition);
}

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

.tip-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.league-badge {
    background: rgba(255,255,255,0.05);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.match-time {
    display: flex;
    align-items: center;
    gap: 4px;
}

.match-time .lucide {
    width: 14px; height: 14px;
}

.matchup {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40%;
    text-align: center;
}

.team-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 10px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.team-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.vs {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(255,255,255,0.05);
    width: 30px; height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prediction-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prediction-market .label {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: block;
}

.prediction-market .value {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
}

.prediction-confidence {
    text-align: right;
}

.tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.tag-high { background: rgba(16, 185, 129, 0.2); color: var(--success); border: 1px solid rgba(16,185,129,0.3); }
.tag-medium { background: rgba(59, 130, 246, 0.2); color: var(--primary); border: 1px solid rgba(59,130,246,0.3); }
.tag-low { background: rgba(156, 163, 175, 0.1); color: var(--text-muted); border: 1px solid rgba(156,163,175,0.2); }

.prediction-confidence .pct {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: var(--font-heading);
}

.btn .lucide {
    width: 18px; height: 18px;
}

.btn-text {
    background: transparent;
    color: var(--primary);
    padding: 5px 10px;
}

.btn-text:hover {
    background: rgba(59,130,246,0.1);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 8px;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.05);
}

/* Match View Details */
.mb-2 { margin-bottom: 10px; }
.mb-3 { margin-bottom: 20px; }
.mt-4 { margin-top: 30px; }

.text-center { text-align: center; }
.text-success { color: var(--success); }
.text-xs { font-size: 0.75rem; }

.match-hero {
    padding: 40px;
    background: linear-gradient(180deg, rgba(25, 28, 36, 0.8) 0%, rgba(15, 17, 21, 0.9) 100%);
}

@media (max-width: 768px) {
    .match-hero {
        padding: 20px 15px;
    }
}

.matchup-large {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 700px;
    margin: 0 auto;
}

.team-large {
    text-align: center;
    width: 40%;
}

.team-large .logo-wrapper {
    width: 90px; height: 90px;
    margin: 0 auto 15px;
    background: rgba(255,255,255,0.02);
    border-radius: 50%;
    padding: 15px;
    border: 1px solid var(--border-color);
}

.img-fluid {
    width: 100%; height: 100%; object-fit: contain;
}

.team-large h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.form-badge {
    display: flex;
    justify-content: center;
    gap: 4px;
    font-family: monospace;
    font-weight: 700;
    font-size: 0.85rem;
}

.form-badge span {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 0.75rem;
}

.form-W { background: rgba(16, 185, 129, 0.2); color: var(--success); }
.form-L { background: rgba(239, 68, 68, 0.2); color: var(--danger); }
.form-D { background: rgba(245, 158, 11, 0.2); color: var(--warning); }

.score-box {
    text-align: center;
}
.score {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
}
.status-badge {
    font-size: 0.75rem; font-weight: 700; padding: 3px 8px; border-radius: 4px;
}
.status-badge.upcoming { background: rgba(59,130,246,0.2); color: var(--primary); }
.status-badge.finished { background: rgba(156,163,175,0.2); color: var(--text-muted); }

/* Layout Grid */
.grid.layout-sidebar-right {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 1.25rem;
}
.icon-primary { color: var(--primary); }

.prediction-row {
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid transparent;
}
.prediction-row.high { border-left-color: var(--success); }
.prediction-row.medium { border-left-color: var(--primary); }
.prediction-row.low { border-left-color: var(--text-muted); }

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

.pred-body {
    display: flex;
    gap: 40px;
    margin-bottom: 15px;
}

.pred-stat .label {
    display: block; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 5px;
}
.pred-stat strong {
    font-size: 1.2rem;
}

.progress-bar-container {
    display: flex; align-items: center; gap: 15px; width: 250px;
    background: rgba(255,255,255,0.05); height: 8px; border-radius: 4px;
    position: relative; margin-top: 10px;
}
.progress-bar {
    height: 100%; border-radius: 4px;
}
.progress-bar.high { background: var(--success); box-shadow: 0 0 10px rgba(16,185,129,0.5); }
.progress-bar.medium { background: var(--primary); box-shadow: 0 0 10px rgba(59,130,246,0.5); }
.progress-bar-container .pct {
    position: absolute; right: -45px; top: -6px; font-weight: 700; font-size: 0.9rem;
}

.pred-footer {
    display: flex; justify-content: space-between;
    padding-top: 15px; border-top: 1px solid var(--border-color);
    font-size: 0.8rem; color: var(--text-muted);
}
.module-name { display: flex; align-items: center; gap: 5px; }
.module-name .lucide { width: 14px; height: 14px; }
.safety-badge { color: var(--warning); display: flex; align-items: center; gap: 5px; cursor: help; }

/* Sidebar Context */
.stats-card {
    padding: 20px;
}
.stats-card h4 {
    color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px;
}
.stat-compare {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px;
}
.home-val, .away-val { font-size: 1.5rem; font-weight: 700; }
.x-label { font-size: 0.8rem; color: var(--text-muted); }
.compare-bar {
    display: flex; height: 6px; border-radius: 3px; overflow: hidden;
}
.bar-home { background: var(--primary); }
.bar-away { background: #8b5cf6; }

.conditions-list li {
    display: flex; align-items: center; gap: 10px; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--border-color);
}
.conditions-list li:last-child { border: none; margin: 0; padding: 0; }
.conditions-list .lucide { color: var(--text-muted); width: 18px; height: 18px; }

/* Footer */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    background: rgba(10, 12, 16, 0.5);
}

.light-theme .footer {
    background: rgba(255, 255, 255, 0.4);
    border-top-color: var(--border-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-family: var(--font-heading);
}

.text-sm { font-size: 0.85rem; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .grid.layout-sidebar-right {
        grid-template-columns: 1fr;
    }
    .matchup-large {
        flex-direction: column; gap: 20px;
    }
    .pred-body { flex-direction: column; gap: 15px; }
}
/* ============================================================
   ARCHIVE OVERHAUL (HORIZONTAL LAYOUT)
   ============================================================ */

.archive-filters {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 25px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 2rem;
}

.archive-filters::-webkit-scrollbar {
    display: none;
}

@media (max-width: 768px) {
    .archive-filters {
        padding: 12px 15px;
        gap: 10px;
        margin-bottom: 1.5rem;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    .filter-group, .filter-subgroup {
        flex-shrink: 0 !important;
        flex-wrap: nowrap !important;
    }
}

.filter-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-btn, .type-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.filter-btn:hover, .type-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.filter-btn.active, .type-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.filter-subgroup {
    display: flex;
    gap: 5px;
    padding: 5px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.filter-separator {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
}

.clear-filters {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.clear-filters:hover {
    opacity: 1;
    color: var(--danger);
}

.archive-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.match-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.league-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-muted);
}

.archive-row {
    display: flex;
    min-height: 140px;
    padding: 0;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.archive-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.match-info-side {
    flex: 0 0 45%; /* Increased width for left side */
    padding: 25px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
    min-width: 380px; /* Better baseline for logos and text */
}

.match-tips-side {
    flex: 1;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Premium Tips Table */
.tips-container {
    width: 100%;
}

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

.tips-table-premium {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem; /* Slightly smaller for more compact look */
    color: var(--text-main);
    table-layout: fixed;
}

.tips-table-premium th,
.tips-table-premium td {
    padding: 8px 6px; /* More compact padding */
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Specific column widths for total alignment */
.tips-table-premium th.col-market, .tips-table-premium td.col-market { width: 90px; }
.tips-table-premium th.col-pick,   .tips-table-premium td.col-pick   { width: 80px; }
.tips-table-premium th.col-source, .tips-table-premium td.col-source { width: 0; } /* Hide via CSS if needed */
.tips-table-premium th.col-odds,   .tips-table-premium td.col-odds   { width: 40px; }
.tips-table-premium th.col-prob,   .tips-table-premium td.col-prob   { width: 55px; }

@media (max-width: 600px) {
    .tips-table-premium th.col-source, .tips-table-premium td.col-source { 
        display: none !important; 
    }
    .tips-table-premium th.col-market, .tips-table-premium td.col-market { width: 75px !important; }
    .tips-table-premium th.col-pick,   .tips-table-premium td.col-pick   { width: 65px !important; }
    .tips-table-premium th.col-odds,   .tips-table-premium td.col-odds   { width: 35px !important; }
    .tips-table-premium th.col-prob,   .tips-table-premium td.col-prob   { width: 50px !important; }
}

/* Premium Settlement Colors */
.tips-table-premium tr.won {
    background: rgba(34, 197, 94, 0.05); /* Very subtle green bg */
}
.tips-table-premium tr.won td {
    color: #4ade80; /* Vibrant green for text */
}
.tips-table-premium tr.won .source-badge {
    border-color: rgba(74, 222, 128, 0.3);
    color: #4ade80;
}

.tips-table-premium tr.lost {
    background: rgba(239, 68, 68, 0.05); /* Very subtle red bg */
}
.tips-table-premium tr.lost td {
    color: #f87171; /* Vibrant red for text */
}
.tips-table-premium tr.lost .source-badge {
    border-color: rgba(248, 113, 113, 0.3);
    color: #f87171;
}

.tips-table-premium tr.refund {
    background: rgba(234, 179, 8, 0.05); /* Very subtle yellow bg */
}
.tips-table-premium tr.refund td {
    color: #facc15; /* Vibrant yellow for text */
}
.tips-table-premium tr.refund .source-badge {
    border-color: rgba(250, 204, 21, 0.3);
    color: #facc15;
}

.tips-table-premium tr.won:hover { background: rgba(34, 197, 94, 0.08); }
.tips-table-premium tr.lost:hover { background: rgba(239, 68, 68, 0.08); }
.tips-table-premium tr.refund:hover { background: rgba(234, 179, 8, 0.08); }

.tips-table-premium th {
    text-align: left;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.tips-table-premium td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.tips-table-premium tr:last-child td {
    border-bottom: none;
}

.tips-table-premium tr.won {
    background: rgba(16, 185, 129, 0.04);
}

.tips-table-premium tr.lost {
    background: rgba(239, 68, 68, 0.04);
}

.source-badge {
    background: rgba(255, 255, 255, 0.04);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.market-cell {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.badge-pro.mini {
    padding: 1px 4px;
    font-size: 0.6rem;
    border-radius: 3px;
    background: var(--success);
    color: white;
}

.prob-cell {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    justify-content: flex-end;
}

.tips-table-premium th:last-child, 
.tips-table-premium td:last-child {
    text-align: right;
}

.matchup-horizontal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 15px 0;
    gap: 20px;
}

.team-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

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

.team-logo-sm {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.match-score {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,0.3);
    padding: 8px 15px;
    border-radius: 12px;
    font-size: 1.25rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

.score-divider {
    color: var(--primary);
    opacity: 0.5;
}

.view-details-link {
    font-size: 0.8rem;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.view-details-link:hover .lucide {
    transform: translateX(3px);
}

/* Tips Container */
.tips-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.mini-tip {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mini-tip.won { border-color: rgba(16, 185, 129, 0.3); background: rgba(16, 185, 129, 0.05); }
.mini-tip.lost { border-color: rgba(239, 68, 68, 0.3); background: rgba(239, 68, 68, 0.05); }

.tip-main {
    display: flex;
    gap: 8px;
    align-items: center;
}

.tip-main .market {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
}

.tip-main .pick {
    font-weight: 700;
    color: var(--text-main);
}

.tip-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tip-meta .confidence {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

.status-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-icon.won { background: var(--success); color: white; }
.status-icon.lost { background: var(--danger); color: white; }
.status-icon .lucide { width: 12px; height: 12px; }

.no-tips-label {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.9rem;
    opacity: 0.5;
}

/* Archive filters mobile handling removed - moved to consolidated section at end */

/* Filter Toggle Buttons (Mobile Only) */
.filter-toggle-container {
    display: none;
    margin-bottom: 1rem;
    gap: 10px;
}

/* Archive title mobile handling removed - moved to consolidated section at end */

.admin-tips-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));



    gap: 20px;
}

@media (max-width: 768px) {
    .admin-tips-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.filter-toggle {
    flex: 1;
    justify-content: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
}

.filter-toggle.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

/* ============================================================
   ADMIN PANEL STYLES
   ============================================================ */

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.admin-header h1 {
    font-size: 1.8rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-nav {
    display: flex;
    gap: 10px;
}

/* Admin Tables */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    padding: 1.25rem 1rem;
    text-align: left;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-table td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

/* Stats Square Button */
.stats-square-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.stats-square-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(var(--primary), 0.15);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.stats-square-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 0 20px var(--primary-glow);
}

.stats-square-btn .lucide {
    width: 22px;
    height: 22px;
}

/* Admin Badges */
.badge-role {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-admin { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.2); }
.badge-pro { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.2); }
.badge-safe { background: rgba(6, 182, 212, 0.15); color: #06b6d4; border: 1px solid rgba(6, 182, 212, 0.2); }
.badge-vip { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.2); }
.badge-free { background: rgba(156, 163, 175, 0.15); color: #9ca3af; border: 1px solid rgba(156, 163, 175, 0.2); }
.badge-analitics { background: rgba(59, 130, 246, 0.15); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.2); }
.badge-regular { background: rgba(255, 255, 255, 0.05); color: var(--text-muted); border: 1px solid var(--border-color); }

/* Admin Forms */
.admin-form-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.form-input, .admin-select {
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
    appearance: none;
    font-family: inherit;
}

select.form-input, select.admin-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%239ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
}

.form-input:focus, .admin-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
    background: rgba(255, 255, 255, 0.05);
}

/* Status Items */
.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.status-item .label {
    color: var(--text-muted);
    font-weight: 500;
}

.badge-success { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }

/* ============================================================
   STATISTICS TABLE (ARCHIVE)
   ============================================================ */

.stats-panel {
    overflow: hidden;
}

.stats-panel-header {
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid var(--border-color);
}

.stats-panel-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 4px;
    font-size: 1.2rem;
}

.stats-table-wrap {
    overflow-x: auto;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
}

.stats-table th {
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.stats-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
}

/* Ensure numbers and headers have good breathing room */
.stats-table th:nth-child(n+2),
.stats-table td:nth-child(n+2) {
    text-align: center;
    padding-left: 2rem;
    padding-right: 2rem;
}

.stats-table tr:last-child td { border-bottom: none; }
.stats-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ============================================================
   ADMIN SIDEBAR LAYOUT
   ============================================================ */

/* ============================================================
   ADMIN SIDEBAR LAYOUT (PREMIUM ENHANCEMENTS)
   ============================================================ */

.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 0;
    min-height: calc(100vh - 70px);
    width: 100%;
    max-width: 100%;
    background: var(--bg-base);
    transition: grid-template-columns 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-layout.collapsed {
    grid-template-columns: 80px 1fr;
}

.admin-sidebar {
    background: rgba(20, 23, 30, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-color);
    padding: 2rem 0;
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
    display: flex;
    flex-direction: column;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-x: hidden;
}

.admin-layout.collapsed .admin-sidebar {
    width: 80px;
    padding: 2rem 0;
}

.admin-sidebar-header {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* ============================================================
   RESTRICTED CONTENT & PRO LOCKS
   ============================================================ */
.market-restricted {
    opacity: 0.85;
}

.pro-lock-view {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 193, 7, 0.3);
    font-weight: 700;
    white-space: nowrap;
}

.prob-blurred {
    filter: blur(2.5px);
    opacity: 0.6;
    pointer-events: none;
    user-select: none;
}

/* Chart Controls */
.chart-controls {
    display: flex;
    gap: 8px;
    z-index: 10;
}

.btn-xs {
    padding: 2px 8px;
    font-size: 0.7rem;
    min-height: auto;
}

.chart-range-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.admin-sidebar-header h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    font-weight: 700;
    opacity: 0.8;
    white-space: nowrap;
    transition: opacity 0.2s;
    margin: 0;
}

.btn-toggle {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    width: 36px;
    height: 36px;
    transition: var(--transition);
}

.btn-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.admin-layout.collapsed .admin-sidebar-header {
    justify-content: center;
    padding: 0 0 1.5rem 0;
    width: 80px;
}

.admin-layout.collapsed .admin-sidebar-header h4 {
    display: none;
}

.admin-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
    border-left: 4px solid transparent;
    margin: 2px 0;
    white-space: nowrap;
}

.admin-layout.collapsed .admin-sidebar-link {
    padding: 12px 0;
    justify-content: center;
    border-left-width: 0;
}

.admin-layout.collapsed .admin-sidebar-link span {
    display: none;
}

.admin-layout.collapsed .admin-sidebar-link i {
    margin: 0;
}

.admin-layout.collapsed .sidebar-group-title {
    opacity: 0;
    pointer-events: none;
}

.admin-sidebar-link i {
    width: 20px;
    height: 20px;
    opacity: 0.7;
    transition: var(--transition);
}

.admin-sidebar-link:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    border-left-color: rgba(255, 255, 255, 0.1);
}

.admin-sidebar-link:hover i {
    opacity: 1;
    transform: translateX(2px);
}

.admin-sidebar-link.active {
    background: rgba(59, 130, 246, 0.08);
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 600;
}

.admin-sidebar-link.active i {
    color: var(--primary);
    opacity: 1;
}

/* Light Theme Overrides */
.light-theme .admin-sidebar {
    background: rgba(0, 0, 0, 0.015);
    border-right-color: rgba(0, 0, 0, 0.05);
}

.light-theme .admin-sidebar-link:hover {
    background: rgba(0, 0, 0, 0.03);
    color: var(--primary);
}

.light-theme .admin-sidebar-link.active {
    background: rgba(37, 99, 235, 0.08); /* Light blue background for active */
    color: var(--primary);
}

.admin-body {
    padding: 2.5rem;
    max-width: 1600px;
}

.admin-body-header {
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-body-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.admin-table th {
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem 1.5rem;
    text-align: left;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 700;
    border-bottom: 2px solid var(--border-color);
}

.admin-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.015);
}

.admin-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.admin-card .card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.01);
}

.admin-card .card-header h3 {
    margin: 0;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .admin-layout {
        grid-template-columns: 200px 1fr;
    }
}

@media (max-width: 768px) {
    .admin-layout {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
    }
    
    .admin-sidebar {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        width: 100% !important;
        height: auto !important;
        padding: 8px 5px !important;
        overflow-x: hidden !important;
        position: sticky !important;
        top: 55px; /* Stay below sticky navbar */
        z-index: 90;
        background: var(--bg-surface);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-bottom: 2px solid var(--primary);
        gap: 2px;
        scrollbar-width: none;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        margin: 0 !important;
        border-radius: 0 !important;
        left: 0;
        right: 0;
    }
    .admin-sidebar::-webkit-scrollbar { display: none; }
    
    .admin-sidebar-link {
        flex: 0 0 calc(20% - 4px); /* Show roughly 5 per row */
        padding: 8px 4px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0.55rem !important;
        gap: 2px;
        border-radius: 6px !important;
        margin: 2px 0 !important;
        min-width: 60px;
        border: none !important;
        background: transparent !important;
        color: var(--text-muted) !important;
    }
    
    .admin-sidebar-link i {
        margin: 0 !important;
        width: 16px !important;
        height: 16px !important;
        opacity: 0.7;
    }
    
    .admin-sidebar-link.active {
        background: rgba(var(--primary-rgb, 59, 130, 246), 0.15) !important;
        color: var(--primary) !important;
    }
    
    .admin-sidebar-link.active i {
        opacity: 1;
        color: var(--primary) !important;
    }
    
    .admin-sidebar-link span {
        display: block !important;
        font-size: 0.5rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.2px;
    }
    
    .admin-sidebar-header, 
    .sidebar-divider, 
    .sidebar-group-title {
        display: none !important;
    }
    
    .sidebar-group {
        display: contents !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .admin-body {
        padding: 10px !important;
    }
    
    .admin-body-header {
        margin-bottom: 1.5rem;
    }
    .admin-body-header h1 {
        font-size: 1.5rem;
    }
    
    /* Ensure tables can scroll on mobile */
    .admin-card {
        overflow-x: auto;
    }
    .admin-table {
        min-width: 600px;
    }
}

/* Mobile archive title fix */
@media (max-width: 500px) {
    .archive-title {
        font-size: 1.1rem;
    }
    .archive-subtitle {
        font-size: 0.82rem;
        margin-top: 4px;
    }
}

.admin-table td:first-child, .admin-table th:first-child {
    padding-left: 2rem;
}

.admin-table td:last-child, .admin-table th:last-child {
    padding-right: 2rem;
}

.admin-table .text-muted {
    font-size: 0.85rem;
}

.badge-role {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

/* Admin Dashboard specifically */
.dashboard-grid {
    gap: 2rem;
}


/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Table Input for Admin Editing */
.table-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-main);
    padding: 4px 8px;
    font-size: 0.85rem;
    transition: var(--transition);
    outline: none;
}

.table-input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}

.table-input::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

.light-theme .table-input {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-main);
}

.light-theme .table-input:focus {
    background: white;
    border-color: var(--primary);
}


/* Archive Time Filters Navigation */
.nav-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.nav-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-main);
    transition: var(--transition);
}

.nav-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.current-range {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
    min-width: 140px;
    text-align: center;
}

.admin-actions {
    display: flex;
    justify-content: center;
}

/* Light Theme tweaks */
.light-theme .nav-btn {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.05);
}

/* Mat's Algo Nested View - Refined for Left Alignment */
.mats-nested-container, .admin-nested-container {
    margin-top: 15px;
    padding: 12px;
    background: rgba(245, 158, 11, 0.03); /* Subtle warning bg */
    border: 1px dashed rgba(245, 158, 11, 0.2);
    border-radius: 10px;
}

.admin-nested-container {
    background: rgba(59, 130, 246, 0.03); /* Subtle primary bg */
    border-color: rgba(59, 130, 246, 0.2);
}

.mats-nested-header, .admin-nested-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--warning);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.admin-nested-header { color: var(--primary); }

.mats-nested-tips, .admin-nested-tips {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mats-tip-row, .admin-tip-row {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    font-size: 0.8rem;
    border-left: 3px solid var(--warning);
}

.admin-tip-row { border-left-color: var(--primary); }

.mats-tip-market, .admin-tip-market {
    width: 80px;
    font-weight: 600;
    color: var(--text-main);
    flex-shrink: 0;
}

.mats-tip-pick, .admin-tip-pick {
    flex: 1;
    color: var(--warning);
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-tip-pick { color: var(--primary); }

.mats-tip-odds, .admin-tip-odds {
    width: 40px;
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
    flex-shrink: 0;
}

@media (max-width: 500px) {
    .mats-tip-market, .admin-tip-market { width: 70px; font-size: 0.75rem; }
    .mats-tip-pick, .admin-tip-pick { font-size: 0.75rem; }
    .mats-tip-odds, .admin-tip-odds { width: 35px; font-size: 0.75rem; }
    .mats-tip-prob, .admin-tip-prob { width: 50px; font-size: 0.75rem; }
}

.mats-tip-prob, .admin-tip-prob {
    width: 60px; /* Aligned with Prob column */
    font-weight: 800;
    color: var(--text-main);
    font-size: 0.75rem;
    text-align: right;
}

/* Settlement row colors */
.mats-tip-row.won, .admin-tip-row.won { border-left-color: var(--success); background: rgba(16, 185, 129, 0.05); }
.mats-tip-row.lost, .admin-tip-row.lost { border-left-color: var(--danger); background: rgba(239, 68, 68, 0.05); }
.mats-tip-row.refund, .admin-tip-row.refund { border-left-color: var(--warning); background: rgba(245, 158, 11, 0.05); }

.mats-tip-row.won .mats-tip-pick, .admin-tip-row.won .admin-tip-pick { color: var(--success); }
.mats-tip-row.lost .mats-tip-pick, .admin-tip-row.lost .admin-tip-pick { color: var(--danger); }
.mats-tip-row.refund .mats-tip-pick, .admin-tip-row.refund .admin-tip-pick { color: var(--warning); }

.mats-nested-container.won { border-style: solid; border-color: var(--success); background: rgba(16, 185, 129, 0.03); }
.mats-nested-container.lost { border-style: solid; border-color: var(--danger); background: rgba(239, 68, 68, 0.03); }
.mats-nested-container.refund { border-style: solid; border-color: var(--warning); background: rgba(245, 158, 11, 0.03); }

.valign-middle {
    vertical-align: middle !important;
}

.admin-manual-table .table-input {
    padding: 6px 10px;
    height: 32px;
}

.admin-manual-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.admin-manual-table th {
    letter-spacing: 0.05em;
    font-size: 0.7rem;
    padding-top: 12px;
    padding-bottom: 8px;
}

.admin-manual-table, 
.admin-manual-table tr, 
.admin-manual-table td, 
.admin-manual-table th {
    background-color: transparent !important;
    background: transparent !important;
    color: var(--text-main) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

.admin-manual-table td {
    padding: 8px 12px !important;
    vertical-align: middle;
}


.admin-manual-table .table-input {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    font-weight: 500;
}

.admin-manual-table .table-input:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--primary) !important;
}

.admin-tip-card {
    transition: transform 0.2s ease;
}

.admin-tip-card:hover {
    transform: translateY(-2px);
}

.admin-tip-header {
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(var(--primary-rgb, 14, 165, 233), 0.08) !important;
}

.admin-tip-header span {
    text-shadow: 0 0 10px rgba(var(--primary-rgb, 14, 165, 233), 0.3);
}

/* ============================================================
   FINAL MOBILE OVERRIDES (CONSOLIDATED)
   ============================================================ */
@media (max-width: 768px) {
    /* Layout & Containers */
    .container { padding: 0 10px !important; }
    .main-content { padding: 55px 0 !important; }
    
    /* Typography */
    h1, .page-header h1 { font-size: 1.4rem !important; margin-bottom: 10px !important; }
    h2 { font-size: 1.2rem !important; }
    h3 { font-size: 1.1rem !important; }
    .subtitle { font-size: 0.85rem !important; }

    /* Dashboard Stats Grid - Force 2 Columns */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        display: grid !important;
    }
    .stat-card {
        padding: 10px !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    .stat-icon-wrapper { width: 32px !important; height: 32px !important; margin-bottom: 5px; }
    .stat-icon-wrapper .lucide { width: 16px !important; height: 16px !important; }
    .stat-info h3 { font-size: 1.1rem !important; }
    .stat-info p { font-size: 0.65rem !important; }

    /* Horizontal Scrolling Filters */
    .archive-filters {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        padding: 5px 10px !important;
        gap: 8px !important;
        justify-content: flex-start !important;
    }
    .archive-filters.type-filters-container {
        flex-wrap: wrap !important;
        overflow-x: visible !important;
    }
    .filter-group.type-filters {
        flex-direction: column !important;
        width: 100% !important;
        align-items: flex-start !important;
        flex-wrap: wrap !important;
    }
    .filter-group, .filter-subgroup {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        flex-shrink: 0 !important;
    }
    .filter-btn, .type-btn {
        padding: 6px 12px !important;
        font-size: 0.75rem !important;
    }

    /* Prediction Tables - Hide Source & Fix Padding */
    .tips-table-premium th.col-source, 
    .tips-table-premium td.col-source,
    .col-source { 
        display: none !important; 
    }
    .tips-table-premium th, .tips-table-premium td {
        padding: 6px 4px !important;
        font-size: 0.7rem !important;
    }
    .tips-table-premium th.col-market, .tips-table-premium td.col-market { width: 70px !important; }
    .tips-table-premium th.col-pick,   .tips-table-premium td.col-pick   { width: 60px !important; }
    .tips-table-premium th.col-odds,   .tips-table-premium td.col-odds   { width: 35px !important; }
    .tips-table-premium th.col-prob,   .tips-table-premium td.col-prob   { width: 45px !important; }

    /* Match Detail Hero Fixes */
    .matchup-large { flex-direction: row !important; align-items: center !important; gap: 10px !important; }
    .team-large { width: 35% !important; }
    .team-large .logo-wrapper { width: 50px !important; height: 50px !important; padding: 8px !important; }
    .team-large h2 { font-size: 0.9rem !important; }
    .score-box { transform: none !important; margin: 0 !important; width: 30% !important; }
    .score { font-size: 1.5rem !important; }
    .status-badge { font-size: 0.6rem !important; }
    
    /* Grid overrides - Stacking on mobile for better usability */
    .grid-col-2, .grid-col-3, .grid-col-4 {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================================
   Result-based Row Highlighting
   ============================================================ */
/* List view (.tips-row) and Match Detail table (.prediction-row) */
.tips-row.won, .prediction-row.won td {
    background: rgba(16, 185, 129, 0.08) !important;
    border-left: 4px solid rgba(16, 185, 129, 0.5) !important;
}
.tips-row.lost, .prediction-row.lost td {
    background: rgba(239, 68, 68, 0.08) !important;
    border-left: 4px solid rgba(239, 68, 68, 0.4) !important;
}
.tips-row.refund, .prediction-row.refund td {
    background: rgba(245, 158, 11, 0.08) !important;
    border-left: 4px solid rgba(245, 158, 11, 0.4) !important;
}

/* Ensure only the first cell has the left border in the table view */
.prediction-row td:not(:first-child) {
    border-left: none !important;
}

.tips-row.won .tips-col-pick span, .prediction-row.won .td-tip { color: #10b981 !important; }
.tips-row.lost .tips-col-pick span:first-child, .prediction-row.lost .td-tip { color: #ef4444 !important; }
.tips-row.refund .tips-col-pick span, .prediction-row.refund .td-tip { color: #f59e0b !important; }


/* Ensure only the first cell has the left border in the table view */
.prediction-row td:not(:first-child) {
    border-left: none !important;
}

.tips-row.won .tips-col-pick span, .prediction-row.won .td-tip { color: #10b981 !important; }
.tips-row.lost .tips-col-pick span:first-child, .prediction-row.lost .td-tip { color: #ef4444 !important; }
.tips-row.refund .tips-col-pick span, .prediction-row.refund .td-tip { color: #f59e0b !important; }


/* Ensure only the first cell has the left border in the table view */
.prediction-row td:not(:first-child) {
    border-left: none !important;
}

.tips-row.won .tips-col-pick span, .prediction-row.won .td-tip { color: #10b981; }
.tips-row.lost .tips-col-pick span:first-child, .prediction-row.lost .td-tip { color: #ef4444; }
.tips-row.refund .tips-col-pick span, .prediction-row.refund .td-tip { color: #f59e0b; }


@media (max-width: 768px) {
    .archive-row { display: flex !important; flex-direction: column !important; min-height: auto !important; }
    .match-info-side { flex: none !important; width: 100% !important; border-right: none !important; padding: 15px !important; min-width: 0 !important; }
    .match-tips-side { flex: none !important; width: 100% !important; border-top: 1px solid var(--border-color) !important; padding: 12px 10px !important; background: rgba(255, 255, 255, 0.01) !important; }
    .matchup-horizontal { margin: 10px 0 !important; gap: 10px !important; }
    .team-info { gap: 8px !important; }
    .team-logo-sm { width: 24px !important; height: 24px !important; }
    .match-score { padding: 5px 10px !important; font-size: 1.1rem !important; border-radius: 8px !important; }
    .view-details-link { margin-top: 5px !important; }
}

/* Source Accuracy Circle */
.source-acc-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    font-size: 9px;
    font-weight: 800;
    border: 1px solid rgba(16, 185, 129, 0.3);
    flex-shrink: 0;
}

.light-theme .source-acc-circle {
    background: rgba(5, 150, 105, 0.1);
    color: var(--success);
    border-color: rgba(5, 150, 105, 0.2);
}

/* Hero Section for Guests */
.hero-section {
    padding: 60px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 100px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    animation: fadeInDown 0.6s ease-out;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out;
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 80px;
    animation: fadeInUp 1.2s ease-out;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #2563eb;
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.05rem;
}

/* Process Steps */
.process-section {
    margin-top: 40px;
    position: relative;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.process-card {
    padding: 32px;
    text-align: left;
    height: 100%;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.process-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
}

.step-number {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.process-icon {
    width: 48px;
    height: 48px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 20px;
}

.process-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.process-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Benefits Grid */
.benefits-section {
    margin-top: 100px;
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
}

.section-tag {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 12px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}


.benefit-item {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    align-items: flex-start;
}

.benefit-icon {
    color: var(--success);
    flex-shrink: 0;
}

.benefit-text h4 {
    margin-bottom: 4px;
    font-size: 1.1rem;
}

.benefit-text p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

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

@media (max-width: 900px) {
    .process-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 2.5rem;
    }
}

/* Coupon Dashboard Styles */
.coupon-dashboard-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: stretch;
}

@media (max-width: 900px) {
    .coupon-dashboard-row {
        grid-template-columns: 1fr;
    }
}

.coupon-card-wrapper, .chart-card-wrapper {
    display: flex;
    flex-direction: column;
}

.daily-coupon, .empty-coupon, .chart-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chart-container .chart-controls {
    flex-shrink: 0;
}

.chart-container canvas {
    flex-grow: 1;
}

.card-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.daily-coupon {
    padding: 24px;
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.05) 0%, rgba(25, 28, 36, 0.8) 100%);
    display: flex;
    flex-direction: column;
}

.coupon-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.coupon-header .date {
    font-weight: 700;
    color: var(--text-main);
}

.coupon-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.coupon-item {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.coupon-item:last-child {
    border-bottom: none;
}

.item-match .teams {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
    display: block;
}

.item-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.item-details .market {
    color: var(--primary);
    font-weight: 700;
}

.item-details .odds {
    color: var(--text-muted);
}

.coupon-footer {
    padding-top: 15px;
    border-top: 2px dashed var(--border-color);
    display: flex;
    justify-content: flex-end;
}

.total-odds .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-right: 8px;
}

.total-odds .value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.chart-container {
    height: 320px;
    padding: 20px;
}

.empty-coupon {
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
}

.status-badge.won { background: rgba(16, 185, 129, 0.2); color: var(--success); }
.status-badge.lost { background: rgba(239, 68, 68, 0.2); color: var(--danger); }
.status-badge.pending { background: rgba(59, 130, 246, 0.2); color: var(--primary); }

/* Archive Coupon List */
.coupons-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.coupon-archive-item {
    padding: 20px;
    display: flex;
    flex-direction: column;
    border-left: 4px solid var(--border-color);
}

.coupon-archive-item.won { border-left-color: var(--success); }
.coupon-archive-item.lost { border-left-color: var(--danger); }
.coupon-archive-item.pending { border-left-color: var(--primary); }

.coupon-archive-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.85rem;
}

.type-tag {
    background: rgba(255,255,255,0.05);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
}

.coupon-archive-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.mini-item {
    font-size: 0.85rem;
}

.mini-item .teams {
    display: block;
    font-weight: 600;
}

.mini-item .pick {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.coupon-archive-footer {
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    text-align: right;
}

/* Tips Table Section Headers */
.section-header-row td {
    padding: 0 !important;
    border-bottom: 1px solid var(--border-color) !important;
    text-align: left !important;
}

.section-header-content {
    display: flex;
    align-items: center;
    justify-content: flex-start !important;
    gap: 8px;
    padding: 10px 15px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    background: rgba(59, 130, 246, 0.08); /* Slightly more visible */
}

.section-header-content i {
    width: 14px;
    height: 14px;
}

/* Premium Tips Box Layout */
.tips-box-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.tips-section-box {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 6px;
    overflow: hidden;
}

.tips-header-row {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    opacity: 0.5;
    margin-bottom: 2px;
}

.tips-row {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.015);
    border-radius: 8px;
    font-size: 0.82rem;
    margin-bottom: 4px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
}

.tips-row:last-child { margin-bottom: 0; }

.tips-row:hover { 
    background: rgba(255, 255, 255, 0.04); 
    transform: translateX(4px);
    border-left-color: rgba(255, 255, 255, 0.1);
}

.tips-col-market { 
    width: 135px; 
    flex-shrink: 0; 
    font-weight: 700; 
    color: var(--text-muted); 
    font-size: 0.72rem; 
    text-transform: uppercase;
}

.tips-col-pick { 
    flex: 1; 
    font-weight: 700; 
    color: var(--text-main); 
    display: flex;
    align-items: center;
    padding-left: 15px;
    justify-content: space-between;
}

.tips-col-odds { 
    width: 45px; 
    flex-shrink: 0; 
    font-weight: 700; 
    color: var(--text-main); 
    text-align: center;
    font-size: 0.85rem;
}

.tips-col-prob { 
    width: 85px; 
    flex-shrink: 0; 
    font-weight: 800; 
    color: var(--text-main); 
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 0.8rem;
}

/* Status coloring rules moved to central section above for consistency */

/* Mobile refinement for tips boxes */
@media (max-width: 500px) {
    .tips-col-market { width: 85px; font-size: 0.65rem; }
    .tips-col-pick { font-size: 0.78rem; }
    .tips-col-odds { width: 35px; font-size: 0.75rem; }
    .tips-col-prob { width: 75px; font-size: 0.75rem; }
    .tips-row { padding: 8px 10px; }
}

.tips-col-source { 
    width: 65px; 
    flex-shrink: 0; 
    display: flex; 
    align-items: center; 
    justify-content: flex-end; 
    gap: 4px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Premium Coupon Styling */
.coupon-item .item-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.coupon-item .market-tip {
    font-size: 1rem;
    font-weight: 800;
    color: #ffcc00; /* Vibrant Yellow/Gold */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.2);
}

.coupon-item .odds-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 6px;
}

@media (max-width: 768px) {
    .coupon-item .market-tip {
        font-size: 0.9rem;
    }
}

/* News Slider */
.news-slider-section {
    position: relative;
    overflow: hidden;
}
.news-slider-container {
    position: relative;
    min-height: 400px;
    padding: 30px 30px 80px 30px;
    border-radius: 16px;
    display: block; /* Changed from flex */
}
.news-slides {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}
.news-slide {
    grid-area: 1 / 1;
    display: flex;
    align-items: center;
    gap: 30px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    pointer-events: none;
}
.news-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.news-slide-content {
    flex: 1;
}
.news-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.news-excerpt {
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 600px;
}
.news-slide-image {
    width: 200px;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}
.news-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-slider-controls {
    position: absolute;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10;
}
.news-slider-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.news-slider-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}
.news-slider-dots {
    display: flex;
    gap: 8px;
}
.news-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    cursor: pointer;
    transition: all 0.2s;
}
.news-dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 4px;
}

.badge-news { background: #3b82f6 !important; color: #fff !important; }
.badge-result { background: #10b981 !important; color: #fff !important; }
.badge-event { background: #f59e0b !important; color: #fff !important; }

@keyframes fadeInNews {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .news-slider-container {
        min-height: 650px;
        padding: 25px 15px 75px 15px;
    }
    .news-slide {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .news-slide-image {
        width: 100%;
        height: 180px;
    }
    .news-title {
        font-size: 1.4rem;
    }
    .news-slider-controls {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        justify-content: center;
    }
}

/* Stats Slide Styles */
.news-slide[data-index="stats"] .news-slide-content {
    text-align: center;
    width: 100%;
}
.stats-slide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.stats-slide-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.stats-slide-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stats-slide-icon i { width: 18px; height: 18px; }
.stats-slide-icon.success { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.stats-slide-icon.primary { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.stats-slide-icon.orange { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }

.stats-slide-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
}
.stats-slide-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.stats-visual {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.stats-visual i {
    width: 60px;
    height: 60px;
    color: rgba(255, 255, 255, 0.2);
    z-index: 2;
}
.visual-glow {
    position: absolute;
    width: 100px;
    height: 100px;
    background: var(--primary);
    filter: blur(50px);
    opacity: 0.3;
    z-index: 1;
}

@media (max-width: 768px) {
    .stats-slide-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .stats-slide-item {
        padding: 10px;
    }
    .stats-slide-value {
        font-size: 1.1rem;
    }
    .stats-visual {
        display: none !important;
    }
}
