/* ============================================
   PadelMania Monte Alto — Dark Sport Premium
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
    /* Core palette */
    --bg-deep: #0B0E14;
    --bg-surface: #131820;
    --bg-card: #1A2030;
    --bg-card-hover: #1F2740;
    --bg-elevated: #232D42;

    /* Accent — electric lime + warm orange */
    --accent: #B8FF57;
    --accent-dim: rgba(184, 255, 87, 0.15);
    --accent-glow: rgba(184, 255, 87, 0.25);
    --orange: #FF8C42;
    --orange-dim: rgba(255, 140, 66, 0.15);
    --cyan: #42D4FF;
    --cyan-dim: rgba(66, 212, 255, 0.12);

    /* Status */
    --success: #34D399;
    --success-dim: rgba(52, 211, 153, 0.12);
    --warning: #FBBF24;
    --warning-dim: rgba(251, 191, 36, 0.12);
    --danger: #F87171;
    --danger-dim: rgba(248, 113, 113, 0.12);
    --info: #60A5FA;
    --info-dim: rgba(96, 165, 250, 0.12);

    /* Text */
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --text-dim: #475569;

    /* Borders */
    --border: rgba(255, 255, 255, 0.06);
    --border-accent: rgba(184, 255, 87, 0.2);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 20px rgba(184, 255, 87, 0.15);

    /* Spacing */
    --radius: 14px;
    --radius-sm: 10px;
    --radius-lg: 20px;
    --radius-pill: 100px;
}

/* ── Reset ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 500px;
    background: radial-gradient(ellipse at 50% 0%, rgba(184,255,87,0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

main {
    flex: 1;
    position: relative;
    z-index: 1;
    padding-bottom: 40px;
}

a { color: var(--accent); }

/* ── Container ── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    background: rgba(11, 14, 20, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 200;
    border-bottom: 1px solid var(--border);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 64px;
    position: relative;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.brand-icon {
    font-size: 1.3rem;
    color: var(--accent);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dim);
    border-radius: var(--radius-sm);
}

.brand-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-links {
    display: flex;
    list-style: none;
    gap: 2px;
}

.navbar-links a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.88rem;
    transition: all 0.2s;
    position: relative;
}

.navbar-links a:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.05);
}

.navbar-links a.active {
    color: var(--accent);
    background: var(--accent-dim);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.05);
    padding: 5px 14px 5px 5px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s;
    border: 1px solid var(--border);
}

.user-chip:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--border-accent);
}

.user-avatar {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--accent) 0%, #6BFF57 100%);
    color: var(--bg-deep);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    font-family: 'Outfit', sans-serif;
}

.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.user-name {
    font-weight: 600;
    font-size: 0.85rem;
}

.user-elo {
    font-size: 0.7rem;
    color: var(--accent);
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.navbar-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.88rem;
    font-family: 'DM Sans', sans-serif;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}

.btn-sm { padding: 6px 14px; font-size: 0.82rem; }
.btn-lg { padding: 14px 30px; font-size: 1rem; }

.btn-primary {
    background: var(--accent);
    color: var(--bg-deep);
    font-weight: 700;
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

.btn-success {
    background: var(--success);
    color: var(--bg-deep);
    font-weight: 700;
}

.btn-success:hover {
    box-shadow: 0 0 20px rgba(52, 211, 153, 0.3);
}

.btn-light {
    background: rgba(255,255,255,0.08);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-light:hover {
    background: rgba(255,255,255,0.12);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.05);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent-dim);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    box-shadow: 0 0 20px rgba(248, 113, 113, 0.3);
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color 0.3s;
}

.card:hover {
    border-color: rgba(255,255,255,0.1);
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title i {
    color: var(--accent);
    font-size: 0.95rem;
}

.card-body { padding: 20px; }

.card-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    background: rgba(0,0,0,0.15);
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin: 16px 0 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
    animation: alertSlideIn 0.3s ease-out;
}

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

.alert-success { background: var(--success-dim); color: var(--success); border-color: rgba(52,211,153,0.2); }
.alert-danger { background: var(--danger-dim); color: var(--danger); border-color: rgba(248,113,113,0.2); }
.alert-warning { background: var(--warning-dim); color: var(--warning); border-color: rgba(251,191,36,0.2); }
.alert-info { background: var(--info-dim); color: var(--info); border-color: rgba(96,165,250,0.2); }

/* ============================================
   FORMS
   ============================================ */
.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-primary);
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
    background: var(--bg-card);
}

.form-control::placeholder { color: var(--text-dim); }

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394A3B8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 44px;
}

textarea.form-control { resize: vertical; min-height: 100px; }

.form-hint {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-top: 6px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
    margin-bottom: 28px;
    padding: 28px 0 0;
}

.page-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 14px;
    letter-spacing: -0.5px;
}

.page-title i {
    color: var(--accent);
    font-size: 1.5rem;
}

.page-subtitle {
    color: var(--text-muted);
    margin-top: 4px;
}

/* ============================================
   GRIDS & UTILITIES
   ============================================ */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Stats */
.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    text-align: center;
    transition: border-color 0.3s;
}

.stat-card:hover { border-color: var(--border-accent); }

.stat-icon { font-size: 2rem; margin-bottom: 8px; color: var(--accent); }

.stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   RANKING LIST
   ============================================ */
.ranking-list { list-style: none; }

.ranking-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.ranking-item:last-child { border-bottom: none; }
.ranking-item:hover { background: rgba(255,255,255,0.02); }

.ranking-position {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    color: var(--text-muted);
}

.ranking-position.gold {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: var(--bg-deep);
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.25);
}

.ranking-position.silver {
    background: linear-gradient(135deg, #C0C0C0 0%, #8A8A8A 100%);
    color: var(--bg-deep);
}

.ranking-position.bronze {
    background: linear-gradient(135deg, #CD7F32 0%, #A0522D 100%);
    color: white;
}

.ranking-player {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
}

.ranking-player:hover .ranking-name { color: var(--accent); }

.ranking-avatar {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--accent) 0%, #6BFF57 100%);
    color: var(--bg-deep);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1rem;
}

.ranking-info { flex: 1; }

.ranking-name {
    font-weight: 700;
    color: var(--text-primary);
    transition: color 0.2s;
}

.ranking-title {
    font-size: 0.78rem;
    color: var(--accent);
    font-weight: 600;
}

.ranking-stats {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.ranking-elo {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--accent);
}

/* ============================================
   PARTIDO CARD
   ============================================ */
.partido-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s;
}

.partido-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-lg);
}

.partido-header {
    background: linear-gradient(135deg, rgba(184,255,87,0.08) 0%, rgba(66,212,255,0.06) 100%);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.partido-date {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
}

.partido-time {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.partido-badge {
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-buscando { background: var(--warning-dim); color: var(--warning); }
.badge-completo { background: var(--info-dim); color: var(--info); }
.badge-jugado { background: var(--success-dim); color: var(--success); }

.partido-body { padding: 20px; }

.partido-equipos {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: center;
}

.partido-equipo { text-align: center; }

.partido-equipo-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-dim);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.partido-jugadores { display: flex; flex-direction: column; gap: 8px; }

.partido-jugador {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.partido-jugador-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent) 0%, #6BFF57 100%);
    color: var(--bg-deep);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

.partido-jugador-name { font-weight: 500; color: var(--text-primary); }

.partido-vs {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-dim);
}

.partido-vacio {
    padding: 12px;
    border: 2px dashed rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    color: var(--text-dim);
    font-size: 0.9rem;
}

.partido-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.partido-lugar {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ============================================
   LOGROS
   ============================================ */
.logros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}

.logro-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.logro-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow);
}

.logro-card.locked {
    opacity: 0.35;
    filter: grayscale(0.8);
}

.logro-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: var(--accent);
}

.logro-nombre {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.logro-descripcion {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.logro-puntos {
    margin-top: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    font-family: 'Outfit', sans-serif;
}

/* ============================================
   ELO BADGE
   ============================================ */
.elo-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.85rem;
    font-family: 'Outfit', sans-serif;
}

.elo-badge.up { background: var(--success-dim); color: var(--success); }
.elo-badge.down { background: var(--danger-dim); color: var(--danger); }

/* ============================================
   TORNEO BRACKET
   ============================================ */
.bracket {
    display: flex;
    gap: 40px;
    overflow-x: auto;
    padding: 20px 0;
}

.bracket-round {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 220px;
}

.bracket-round-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--text-muted);
    text-align: center;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bracket-match {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    overflow: hidden;
}

.bracket-team {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.bracket-team:last-child { border-bottom: none; }
.bracket-team.winner { background: var(--success-dim); }
.bracket-team-name { font-weight: 600; }

.bracket-team-score {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--accent);
}

/* ============================================
   BOTTOM NAV (Mobile)
   ============================================ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(11, 14, 20, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    padding: 6px 0;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
    display: none;
    z-index: 200;
}

.bottom-nav-inner {
    display: flex;
    justify-content: space-around;
    max-width: 500px;
    margin: 0 auto;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    color: var(--text-dim);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    letter-spacing: 0.3px;
}

.bottom-nav-item.active {
    color: var(--accent);
}

.bottom-nav-item.active .bnav-icon {
    background: var(--accent-dim);
    border-radius: var(--radius-sm);
    padding: 4px 12px;
}

.bnav-icon {
    font-size: 1.25rem;
    transition: all 0.2s;
}

/* ============================================
   FONT AWESOME MEDAL COLORS
   ============================================ */
i.fa-medal.gold { color: #FFD700; }
i.fa-medal.silver { color: #C0C0C0; }
i.fa-medal.bronze { color: #CD7F32; }

.dash-section-title i,
.card-title i,
.section-title i {
    color: var(--accent);
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-primary { color: var(--accent); }
.text-secondary { color: var(--orange); }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.w-full { width: 100%; }

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-dim);
}

.empty-state-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
    color: var(--text-dim);
}

.empty-state-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.empty-state-text { margin-bottom: 20px; }

/* ============================================
   BADGES (generic)
   ============================================ */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-warning { background: var(--warning-dim); color: var(--warning); }
.badge-info { background: var(--info-dim); color: var(--info); }
.badge-success { background: var(--success-dim); color: var(--success); }
.badge-danger { background: var(--danger-dim); color: var(--danger); }
.badge-muted { background: rgba(255,255,255,0.05); color: var(--text-dim); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .navbar-links {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-surface);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 12px;
        gap: 2px;
        z-index: 300;
        box-shadow: var(--shadow-lg);
    }

    .navbar-links.show { display: flex; }
    .navbar-toggle { display: flex; }
    .navbar-actions .user-chip .user-info { display: none; }
    .bottom-nav { display: block; }
    main { padding-bottom: 80px; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .page-title { font-size: 1.4rem; }
    .stat-card { padding: 16px; }
    .stat-value { font-size: 1.5rem; }
    .form-row { grid-template-columns: 1fr; }

    .partido-equipos {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .partido-vs { display: none; }
}

@media (max-width: 480px) {
    .container { padding: 0 14px; }
    .card-body { padding: 16px; }
    .ranking-stats { display: none; }
}
