/* 
   Torneo Parejas Pro - Custom Premium CSS Style Sheet
   Designed with vibrant dark/neon gaming theme, glassmorphism, and smooth micro-interactions.
*/

:root {
    --bg-base: #0b0813;
    --bg-surface: rgba(20, 16, 35, 0.6);
    --bg-surface-solid: #151125;
    --bg-card: rgba(28, 23, 49, 0.45);
    
    --primary: #8a2be2;
    --primary-glow: rgba(138, 43, 226, 0.4);
    --primary-light: #ab60f6;
    
    --secondary: #ff007f;
    --secondary-glow: rgba(255, 0, 127, 0.35);
    
    --accent: #00f0ff;
    --accent-glow: rgba(0, 240, 255, 0.25);
    
    --text-main: #f1ecfa;
    --text-muted: #9c91b8;
    --text-dark: #635787;
    
    --border-light: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(138, 43, 226, 0.2);
    
    --success: #00e676;
    --error: #ff1744;
    --warning: #ffea00;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets & scrollbars */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background animated stars & orbs */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 150px 150px, rgba(255,255,255,0.7), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 300px 80px, #fff, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 500px 350px, rgba(255,255,255,0.5), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 800px 200px, rgba(255,255,255,0.8), rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 1000px 1000px;
    opacity: 0.3;
    z-index: -2;
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
}
.orb-1 {
    width: 500px;
    height: 500px;
    top: -100px;
    right: -100px;
    background: radial-gradient(circle, var(--primary) 0%, rgba(0,0,0,0) 70%);
}
.orb-2 {
    width: 600px;
    height: 600px;
    bottom: -150px;
    left: -150px;
    background: radial-gradient(circle, var(--secondary-glow) 0%, rgba(0,0,0,0) 70%);
}

/* Layout Wrapper */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styling */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--border-light);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
    box-shadow: 0 8px 20px var(--primary-glow);
}

.logo-area h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.1;
}

.logo-area h1 span {
    color: var(--accent);
}

.logo-area .subtitle {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Buttons */
.btn {
    font-family: 'Outfit', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 12px 24px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
    filter: brightness(1.1);
}
.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-light);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-muted);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-light);
}
.btn-outline:hover {
    color: var(--text-main);
    border-color: var(--text-muted);
    background: rgba(255,255,255,0.02);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: var(--radius-lg);
}

.btn-glowing {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    position: relative;
    z-index: 1;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.4);
}
.btn-glowing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: -1;
}
.btn-glowing:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(255, 0, 127, 0.4);
}
.btn-glowing:hover::before {
    opacity: 1;
}
.btn-glowing:disabled {
    background: #1d1b29;
    color: var(--text-dark);
    box-shadow: none;
    transform: none;
    cursor: not-allowed;
    border: 1px solid rgba(255, 255, 255, 0.02);
}
.btn-glowing:disabled::before {
    display: none;
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
    transition: var(--transition-fast);
}
.btn-text:hover {
    color: var(--error);
}

/* Glassmorphism Cards */
.card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    position: relative;
}

.glass-card {
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

/* Screen Transitions */
.screen {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.screen.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.app-main {
    flex: 1;
    padding: 30px 0 60px 0;
}

/* --- SCREEN 1: REGISTRATION --- */
.hero-registration {
    padding: 40px;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    background: radial-gradient(ellipse at top right, rgba(138, 43, 226, 0.15), transparent 60%), var(--bg-surface);
}

.registration-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(90deg, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.registration-header p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    max-width: 800px;
}

.registration-form {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 280px;
}

.input-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper ion-icon {
    position: absolute;
    left: 16px;
    font-size: 20px;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition-fast);
}

.input-wrapper input {
    width: 100%;
    background-color: rgba(10, 8, 18, 0.8);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 14px 16px 14px 48px;
    color: #fff;
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition-fast);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.input-wrapper input:focus + ion-icon {
    color: var(--primary-light);
}

.quick-actions {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

/* Registered couples list */
.registered-list-container {
    background: var(--bg-surface-solid);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 30px;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
}

.list-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 600;
}

.couples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    min-height: 120px;
    margin-bottom: 30px;
}

.couples-grid.empty {
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-dark);
}

.empty-state ion-icon {
    font-size: 60px;
    margin-bottom: 10px;
    opacity: 0.7;
}

.empty-state p {
    font-size: 15px;
}

/* Couple card in list */
.couple-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-fast);
    animation: fadeIn 0.3s ease-out;
}

.couple-card:hover {
    border-color: var(--primary-glow);
    background: rgba(138, 43, 226, 0.06);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

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

.couple-num {
    font-family: 'Outfit', sans-serif;
    background: rgba(138, 43, 226, 0.15);
    color: var(--primary-light);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.couple-name {
    font-weight: 600;
    color: var(--text-main);
    font-size: 15px;
}

.btn-remove-couple {
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    transition: var(--transition-fast);
}

.btn-remove-couple:hover {
    color: var(--error);
    background: rgba(255, 23, 68, 0.1);
}

.start-action-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 25px;
}

.warning-text {
    font-size: 13px;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

/* --- SCREEN 2: TOURNAMENT ARENA --- */
.arena-status-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(138, 43, 226, 0.08);
    border: 1px solid var(--border-glow);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.status-badge {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 10px rgba(138, 43, 226, 0.3);
}

.status-summary {
    font-size: 14px;
    color: var(--text-main);
    font-weight: 500;
}

/* Tab Navigation for groups A/B */
.group-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 30px;
}

.tab-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition-normal);
    text-align: left;
    backdrop-filter: blur(10px);
}

.tab-btn ion-icon {
    font-size: 28px;
    transition: var(--transition-fast);
}

.tab-btn .tab-label {
    flex: 1;
}

.tab-btn .tab-label .title {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.tab-btn .tab-label .desc {
    display: block;
    font-size: 12px;
    margin-top: 2px;
}

.tab-btn .badge {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    transition: var(--transition-fast);
}

/* Active tab styles */
.tab-btn.active {
    background: rgba(138, 43, 226, 0.12);
    border-color: var(--primary);
    color: var(--text-main);
    box-shadow: 0 10px 25px rgba(138, 43, 226, 0.15);
}

.tab-btn#tab-group-a.active {
    background: rgba(0, 240, 255, 0.06);
    border-color: var(--accent);
    box-shadow: 0 10px 25px rgba(0, 240, 255, 0.1);
}

.tab-btn#tab-group-a.active ion-icon {
    color: var(--accent);
}

.tab-btn#tab-group-a.active .badge {
    background: rgba(0, 240, 255, 0.2);
    color: var(--accent);
}

.tab-btn#tab-group-b.active {
    background: rgba(255, 0, 127, 0.06);
    border-color: var(--secondary);
    box-shadow: 0 10px 25px rgba(255, 0, 127, 0.1);
}

.tab-btn#tab-group-b.active ion-icon {
    color: var(--secondary);
}

.tab-btn#tab-group-b.active .badge {
    background: rgba(255, 0, 127, 0.2);
    color: var(--secondary);
}

/* Arena Grid: Left matches, Right info */
.arena-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 30px;
    align-items: start;
}

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

.container-header {
    margin-bottom: 20px;
}

.container-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
}

.container-header .section-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Matchups list */
.matchups-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

/* Match card layout */
.match-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition-normal);
}

.match-header {
    background: rgba(255, 255, 255, 0.02);
    padding: 10px 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.match-number {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
}

.match-vs {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 10px;
    color: var(--text-dark);
}

.match-sides {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 15px;
}

.match-team {
    padding: 20px 15px;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: center;
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
}

.match-team ion-icon {
    font-size: 24px;
    color: var(--text-dark);
    transition: var(--transition-fast);
}

.match-team-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--text-main);
    word-break: break-word;
}

.match-team:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
}

/* Winner state */
.match-team.winner {
    background: rgba(0, 230, 118, 0.08);
    border-color: var(--success);
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.15);
}

.match-team.winner ion-icon {
    color: var(--success);
    transform: scale(1.15);
}

.match-team.winner .match-team-name {
    color: #fff;
}

/* Loser state (when other is selected) */
.match-team.loser {
    opacity: 0.45;
}

.match-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
}

.vs-badge {
    background: var(--bg-base);
    color: var(--text-muted);
    border: 1px solid var(--border-light);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 13px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Exempt card */
.exempt-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    margin-top: 25px;
}

.exempt-card {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.08), rgba(138, 43, 226, 0.05));
    border: 1px solid var(--accent-glow);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 25px rgba(0, 240, 255, 0.05);
}

.exempt-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.exempt-icon-wrapper {
    background: rgba(0, 240, 255, 0.15);
    color: var(--accent);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.exempt-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
}

.exempt-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.exempt-badge {
    background: rgba(0, 240, 255, 0.2);
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

/* Submit Results area */
.submit-results-area {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--border-light);
    padding-top: 25px;
}

/* Right Standings panel */
.standings-card {
    padding: 30px;
    background: var(--bg-surface-solid);
}

.standings-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.standings-section {
    margin-bottom: 25px;
}

.small-header {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.mini-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 4px;
}

/* Mini item style for active standings */
.mini-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mini-item-name {
    font-weight: 600;
}

.mini-item-stats {
    font-size: 11px;
    color: var(--text-muted);
}

.mini-item-stats span {
    margin-left: 8px;
}

.mini-item-stats .ex-badge {
    color: var(--accent);
    background: rgba(0, 240, 255, 0.1);
    padding: 1px 5px;
    border-radius: 4px;
}

/* Tournament Log list */
.tournament-history {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 20px;
    margin-top: 10px;
}

.history-log-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    font-size: 13px;
    color: var(--text-muted);
}

.history-empty {
    color: var(--text-dark);
    text-align: center;
    padding: 15px 0;
}

.history-item {
    padding: 8px 10px;
    border-left: 2px solid var(--primary);
    background: rgba(138, 43, 226, 0.02);
    margin-bottom: 2px;
}

.history-item.r1 { border-left-color: var(--primary); }
.history-item.group-a { border-left-color: var(--accent); }
.history-item.group-b { border-left-color: var(--secondary); }

.history-item-header {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 11px;
    text-transform: uppercase;
}

.history-item-body {
    color: var(--text-main);
}

.history-item-body .w {
    color: var(--success);
    font-weight: 600;
}

.history-item-body .l {
    color: var(--text-muted);
    text-decoration: line-through;
    opacity: 0.6;
}

/* --- SCREEN 3: CELEBRATION / WINNERS --- */
.celebration-container {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.trophy-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 25px;
    animation: bounce 2s infinite ease-in-out;
}

.trophy-glow {
    font-size: 80px;
    color: var(--warning);
    filter: drop-shadow(0 0 25px rgba(255, 234, 0, 0.6));
}

.celebration-container h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 40px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #fff 30%, var(--warning));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.celebration-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 45px;
}

.podiums-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

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

.podium-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 35px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    position: relative;
    backdrop-filter: blur(10px);
}

.podium-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.podium-icon {
    font-size: 28px;
}

.podium-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 1px;
}

.podium-body h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 6px;
    color: #fff;
    word-break: break-word;
}

.podium-body .podium-desc {
    font-size: 13px;
    color: var(--text-muted);
}

.podium-stats {
    border-top: 1px solid rgba(255,255,255,0.05);
    width: 100%;
    padding-top: 15px;
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.podium-stat-row {
    display: flex;
    justify-content: space-between;
}

.podium-stat-row strong {
    color: var(--text-main);
}

/* Gold / Silver styling */
.gold-podium {
    border-color: rgba(255, 234, 0, 0.25);
    background: radial-gradient(circle at bottom, rgba(255, 234, 0, 0.05) 0%, var(--bg-surface) 80%);
}
.gold-podium .podium-icon { color: var(--warning); }
.gold-podium .podium-title { color: var(--warning); }
.gold-podium h3 { text-shadow: 0 0 10px rgba(255, 234, 0, 0.2); }

.silver-podium {
    border-color: rgba(0, 240, 255, 0.2);
    background: radial-gradient(circle at bottom, rgba(0, 240, 255, 0.05) 0%, var(--bg-surface) 80%);
}
.silver-podium .podium-icon { color: var(--accent); }
.silver-podium .podium-title { color: var(--accent); }
.silver-podium h3 { text-shadow: 0 0 10px rgba(0, 240, 255, 0.2); }

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

/* App Footer */
.app-footer {
    border-top: 1px solid var(--border-light);
    padding: 30px 0;
    text-align: center;
    color: var(--text-dark);
    font-size: 12px;
    margin-top: auto;
}

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

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-dark);
}

/* --- MOBILE RESPONSIVE OPTIMIZATIONS --- */
@media (max-width: 768px) {
    .app-container {
        padding: 0 12px;
    }
    
    .app-header {
        padding: 16px 0;
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
        text-align: center;
    }
    
    .logo-area {
        justify-content: center;
    }
    
    .header-actions {
        display: flex;
        justify-content: center;
        gap: 8px;
    }
    
    .btn {
        padding: 10px 18px;
        font-size: 14px;
    }
    
    .btn-large {
        padding: 14px 24px;
        font-size: 15px;
        border-radius: var(--radius-md);
    }
    
    .hero-registration {
        padding: 24px 16px;
        margin-bottom: 24px;
    }
    
    .registration-header h2 {
        font-size: 26px;
        text-align: center;
    }
    
    .registration-header p {
        font-size: 13px;
        text-align: center;
    }
    
    .registered-list-container {
        padding: 20px 16px;
    }
    
    /* Arena */
    .arena-status-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 14px 18px;
    }
    
    .group-navigation {
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .tab-btn {
        padding: 12px 10px;
        gap: 8px;
        justify-content: center;
    }
    
    .tab-btn ion-icon {
        font-size: 20px;
    }
    
    .tab-btn .tab-label .title {
        font-size: 14px;
    }
    
    .tab-btn .tab-label .desc {
        font-size: 10px;
    }
    
    .match-team {
        padding: 14px 8px;
    }
    
    .match-team-name {
        font-size: 14px;
    }
    
    .vs-badge {
        width: 30px;
        height: 30px;
        font-size: 11px;
    }
    
    .exempt-card {
        padding: 14px 16px;
    }
    
    .exempt-name {
        font-size: 14px;
    }
    
    .standings-card {
        padding: 20px 16px;
    }
    
    .celebration-container h2 {
        font-size: 30px;
    }
    
    .celebration-subtitle {
        font-size: 15px;
        margin-bottom: 30px;
    }
    
    .podiums-grid {
        gap: 16px;
    }
    
    .podium-card {
        padding: 24px 16px;
    }
    
    .podium-body h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .registration-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .input-group {
        width: 100%;
    }
    
    .btn-primary {
        width: 100%;
        padding: 14px;
    }
    
    .quick-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .quick-actions button {
        width: 100%;
    }
    
    .tab-btn .tab-label .desc {
        display: none; /* Ocultar en pantallas muy pequeñas */
    }
    
    .tab-btn {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 4px;
    }
    
    .match-sides {
        grid-template-columns: 1fr;
        gap: 10px;
        justify-items: center;
    }
    
    .match-divider {
        padding: 4px 0;
    }
    
    .match-team {
        width: 100%;
        padding: 16px;
    }
    
    .match-team-name {
        font-size: 15px;
    }
    
    .submit-actions-group {
        flex-direction: column-reverse;
        align-items: stretch;
    }
    
    .submit-actions-group button {
        width: 100%;
    }
    
    .exempt-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }
    
    .exempt-info {
        flex-direction: column;
        align-items: center;
    }
}
