:root {
    --bg-main: #f8fafc;
    --card-bg: #ffffff;
    --accent: #6366f1;
    --accent-glow: rgba(99, 102, 241, 0.15);
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    --text-main: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-soft: rgba(0, 0, 0, 0.05);
    --glass-border: rgba(99, 102, 241, 0.1);
    --font-main: 'Outfit', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }

body {
    background: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    min-height: 100vh;
}

.container { max-width: 1400px; margin: 0 auto; padding: 0 1.2rem; }

/* Navigation Public (Capsule Indigo) */
.public-nav { 
    display: flex; 
    gap: 0.8rem; 
    justify-content: center; 
    margin: 2.5rem 0; 
    overflow-x: auto; 
    padding: 0.5rem; 
}

.nav-link { 
    padding: 1rem 2rem; 
    background: white; 
    border: 1.5px solid rgba(99, 102, 241, 0.1); 
    border-radius: 20px; 
    text-decoration: none; 
    color: var(--text-secondary); 
    font-weight: 950; 
    white-space: nowrap; 
    font-size: 0.85rem; 
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.04);
}

.nav-link.active { 
    background: var(--accent); 
    color: white !important;
    border-color: var(--accent); 
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.4);
}

/* Sub-Navigation Pills (Admin Style but light) */
.sub-nav-pill {
    display: inline-flex;
    background: white;
    padding: 0.4rem;
    border-radius: 100px;
    border: 1.5px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    margin: 0 auto 3rem;
}

.subnav-btn {
    padding: 0.7rem 1.4rem;
    border-radius: 100px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s;
    white-space: nowrap;
}

.subnav-btn.active {
    background: var(--accent);
    color: white !important;
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.3);
}

/* Cards & Sections */
.card-premium {
    background: white;
    border-radius: 24px;
    border: 1.5px solid rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

/* Standings / Tables Public */
.table-public { width: 100%; border-collapse: collapse; }
.th-public { text-align: left; padding: 1.2rem 0.5rem; color: var(--text-muted); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 950; border-bottom: 2px solid #f1f5f9; }
.td-public { padding: 1.2rem 0.5rem; border-bottom: 1px solid #f8fafc; font-weight: 850; font-size: 0.95rem; }

/* Match Rows */
.match-card-public {
    background: white;
    border: 1.5px solid rgba(0, 0, 0, 0.04);
    border-radius: 20px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s;
}
.match-card-public:hover { transform: translateY(-2px); border-color: rgba(99, 102, 241, 0.1); }

/* Modals */
.modal-overlay { 
    display: none; position: fixed; inset: 0; background: rgba(15, 23, 42, 0.4); 
    backdrop-filter: blur(8px); z-index: 9999; align-items: center; justify-content: center; padding: 1.5rem; 
}
.modal-content { 
    background: white; width: 100%; max-width: 480px; border-radius: 32px; 
    border: 1.5px solid rgba(0, 0, 0, 0.05); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.2); overflow: hidden; 
}

/* Utilities */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-secondary { color: var(--text-secondary); }
