/* ==============================================================================
   ARENA DE PALPITES - DESIGN SYSTEM & STYLESHEET
   luizmendes.com.br - Premium, Glassmorphic & Ultra-Responsive
   ============================================================================== */

:root {
    --bg-dark: #05070f;
    --card-bg: rgba(13, 17, 34, 0.65);
    --border-color: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: #8a99ad;
    
    /* Neon Palettes */
    --cyan-neon: #00f2fe;
    --cyan-glow: rgba(0, 242, 254, 0.3);
    --green-neon: #39ff14;
    --green-glow: rgba(57, 255, 20, 0.3);
    --blue-neon: #0070f3;
    --blue-glow: rgba(0, 112, 243, 0.3);
    --purple-neon: #b026ff;
    --purple-glow: rgba(176, 38, 255, 0.3);
    --red-neon: #ff007f;
    --red-glow: rgba(255, 0, 127, 0.3);
    --gold: #ffd700;
}

/* Reset & Base Elements */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.arena-theme {
    background: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Canvas */
#arena-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Glassmorphism Helper */
.glass {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

/* Global Animations */
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 1; text-shadow: 0 0 10px currentColor; }
    100% { transform: scale(1); opacity: 0.8; }
}
.pulse-neon {
    animation: pulse 2.5s infinite;
    color: var(--cyan-neon);
}
.pulse {
    animation: pulse 1.5s infinite;
}

/* ==============================================================================
   HEADER COMPONENT
   ============================================================================== */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    height: 70px;
    border-radius: 0;
    border-bottom: 1px solid var(--border-color);
    background: rgba(5, 7, 15, 0.85);
}

.header-container {
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}
.logo span span {
    color: var(--cyan-neon);
}

.nav-menu {
    display: flex;
    gap: 25px;
}
.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-menu a:hover, .nav-menu a.active {
    color: #fff;
    text-shadow: 0 0 8px var(--cyan-glow);
}

.user-session-wrapper {
    display: flex;
    align-items: center;
}

.user-profile-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 14px;
    border-radius: 50px;
}
.profile-pic {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--cyan-neon);
}
.profile-name {
    font-size: 0.88rem;
    font-weight: 600;
}
.logout-btn {
    background: none;
    border: none;
    color: var(--red-neon);
    cursor: pointer;
    font-size: 0.95rem;
    transition: transform 0.2s ease;
}
.logout-btn:hover {
    transform: scale(1.15);
}

.btn-auth-trigger {
    background: linear-gradient(135deg, var(--cyan-neon), var(--blue-neon));
    color: #000;
    border: none;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.25);
}
.btn-auth-trigger:hover {
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.45);
    transform: translateY(-2px);
}

/* ==============================================================================
   SPA LAYOUT & DASHBOARD GRID
   ============================================================================== */
.spa-layout {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    min-height: calc(100vh - 150px);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    gap: 30px;
    align-items: start;
}

/* Unauthenticated Hero */
.hero-unauth {
    display: flex;
    justify-content: center;
    padding: 80px 20px;
}
.hero-neon-box {
    max-width: 650px;
    padding: 60px 40px;
    box-shadow: 0 0 40px rgba(0, 242, 254, 0.04);
}
.arena-hero-icon {
    font-size: 4rem;
    color: var(--gold);
    margin-bottom: 25px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}
.space-icon {
    font-size: 4rem;
    color: var(--cyan-neon);
    margin-bottom: 25px;
    text-shadow: 0 0 20px var(--cyan-glow);
}
.hero-neon-box h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 15px;
}
.hero-neon-box p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 35px;
}
.btn-glow-cyan {
    background: linear-gradient(135deg, var(--cyan-neon), var(--blue-neon));
    color: #000;
    border: none;
    padding: 14px 35px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
    transition: all 0.3s ease;
}
.btn-glow-cyan:hover {
    box-shadow: 0 0 35px rgba(0, 242, 254, 0.6);
    transform: translateY(-2px);
}

/* ==============================================================================
   COLUMN 1: SIDEBAR LEFT (TABS MENU)
   ============================================================================== */
.sidebar-left {
    padding: 25px;
}
.user-card-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 25px;
    text-align: center;
}
.card-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid var(--cyan-neon);
    box-shadow: 0 0 15px var(--cyan-glow);
    margin-bottom: 12px;
}
.user-card-summary h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 6px;
}
.role-pills {
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(0, 242, 254, 0.1);
    color: var(--cyan-neon);
    padding: 3px 10px;
    border-radius: 50px;
    text-transform: uppercase;
}

.sidebar-tabs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tab-link {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: none;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}
.tab-link:hover {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    padding-left: 20px;
}
.tab-link.active {
    background: rgba(0, 242, 254, 0.04);
    border-color: rgba(0, 242, 254, 0.15);
    color: var(--cyan-neon);
    text-shadow: 0 0 8px var(--cyan-glow);
}

/* ==============================================================================
   COLUMN 2: CENTRAL SPA CONTENT
   ============================================================================== */
.main-content-spa {
    padding: 30px;
    min-height: 500px;
}

.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

.section-title {
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}
.section-title h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-title p {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* Loader / Spinner */
.spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 60px 0;
    color: var(--cyan-neon);
    font-size: 1.1rem;
}

/* Color Labels */
.text-cyan { color: var(--cyan-neon); }
.text-green { color: var(--green-neon); }
.text-gold { color: var(--gold); }
.text-purple { color: var(--purple-neon); }
.text-blue { color: var(--blue-neon); }
.text-red { color: var(--red-neon); }

/* ==============================================================================
   TAB 1: PALPITES (MATCHES CARDS)
   ============================================================================== */
.matches-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.match-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(13, 17, 34, 0.55);
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
}

/* Full borders matching game weight with neon glow on hover */
.match-card.weight-1 {
    border: 1px solid rgba(138, 153, 173, 0.2);
}
.match-card.weight-1:hover {
    border-color: rgba(138, 153, 173, 0.55);
    box-shadow: 0 0 15px rgba(138, 153, 173, 0.2);
    background: rgba(138, 153, 173, 0.04);
}

.match-card.weight-2 {
    border: 1px solid rgba(57, 255, 20, 0.15);
}
.match-card.weight-2:hover {
    border-color: rgba(57, 255, 20, 0.45);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.25);
    background: rgba(57, 255, 20, 0.03);
}

.match-card.weight-3 {
    border: 1px solid rgba(0, 112, 243, 0.2);
}
.match-card.weight-3:hover {
    border-color: rgba(0, 242, 254, 0.45);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.35);
    background: rgba(0, 112, 243, 0.04);
}

/* Centered championship on top */
.match-championship {
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 6px;
}

/* Centered grid row for Teams & inputs */
.match-main-row {
    display: grid;
    grid-template-columns: 1fr 140px 1fr;
    align-items: center;
    gap: 15px;
}

.team-box-a { text-align: right; }
.team-box-b { text-align: left; }
.team-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

/* Center score container carrying inputs, real scores, and individual save button */
.center-score-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-inputs-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.score-input {
    width: 40px;
    height: 40px;
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
}
.score-input:focus {
    border-color: var(--cyan-neon);
    box-shadow: 0 0 10px var(--cyan-glow);
    background: rgba(255, 255, 255, 0.08);
}
.score-input:disabled {
    opacity: 0.45;
    background: rgba(0,0,0,0.2);
    border-color: rgba(255,255,255,0.02);
    cursor: not-allowed;
}

.score-divider {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.save-individual-wrapper {
    margin-top: 6px;
    width: 100%;
    display: flex;
    justify-content: center;
}
.btn-save-pred {
    background: rgba(0, 242, 254, 0.08);
    color: var(--cyan-neon);
    border: 1px solid rgba(0, 242, 254, 0.25);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    width: 80px;
    text-align: center;
}
.btn-save-pred:hover:not(:disabled) {
    background: var(--cyan-neon);
    color: #000;
    box-shadow: 0 0 10px var(--cyan-glow);
}
.btn-save-pred:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.btn-save-pred.btn-success {
    background: rgba(57, 255, 20, 0.2) !important;
    border-color: var(--green-neon) !important;
    color: var(--green-neon) !important;
}

/* Badges for status */
.badge-status {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}
.badge-status.live {
    background: rgba(255, 0, 127, 0.2);
    color: var(--red-neon);
    animation: pulse 1.2s infinite;
}
.badge-status.finished {
    background: rgba(255,255,255,0.08);
    color: var(--text-secondary);
}
.badge-status.locked {
    background: rgba(255, 69, 0, 0.12);
    color: #ff4500;
}
.badge-status.text-cyan {
    background: rgba(0, 242, 254, 0.1);
    color: var(--cyan-neon);
}
.real-match-result {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gold);
    white-space: nowrap;
    margin-top: 4px;
    text-align: center;
}
.points-awarded {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--green-neon);
    white-space: nowrap;
    margin-top: 2px;
    text-align: center;
}
.finished-prediction-display {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
    margin-bottom: 2px;
    text-align: center;
}

/* Horizontal metadata footer inside the card */
.match-footer-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    font-size: 0.72rem;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 6px;
}
.match-footer-info span {
    display: flex;
    align-items: center;
    gap: 6px;
}
.match-footer-info .weight-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
}
.weight-badge.w-1 { background: rgba(138, 153, 173, 0.15); color: #8a99ad; }
.weight-badge.w-2 { background: rgba(57, 255, 20, 0.15); color: var(--green-neon); }
.weight-badge.w-3 { background: rgba(0, 112, 243, 0.15); color: var(--cyan-neon); }

/* Bulk actions premium bar styling */
.btn-bulk-save {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.15), rgba(0, 112, 243, 0.15));
    color: var(--cyan-neon);
    border: 1px solid rgba(0, 242, 254, 0.35);
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-bulk-save:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--cyan-neon), var(--blue-neon));
    color: #000;
    border-color: transparent;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
    transform: translateY(-1px);
}
.btn-bulk-save:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==============================================================================
   TAB 2: HISTÓRICO
   ============================================================================= */
.history-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}
.history-game-title {
    font-weight: 600;
}
.history-scores {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

/* ==============================================================================
   TAB 3: CLASSIFICAÇÃO & TABLES
   ============================================================================== */
.ranking-filters-bar {
    display: flex;
    padding: 8px;
    margin-bottom: 25px;
    gap: 10px;
}
.filter-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.82rem;
    transition: all 0.3s ease;
}
.filter-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.02);
}
.filter-btn.active {
    background: rgba(0, 242, 254, 0.1);
    color: var(--cyan-neon);
    text-shadow: 0 0 5px var(--cyan-glow);
}

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

.custom-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.92rem;
}
.custom-table th, .custom-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
.custom-table th {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-secondary);
    font-weight: 600;
}
.custom-table tbody tr {
    transition: all 0.3s ease;
}
.custom-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.015);
}

/* Auditor Link (Nickname interaction) */
.user-audit-link {
    cursor: pointer;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
.user-audit-link:hover {
    color: var(--cyan-neon);
}

/* Trend Arrow Icons */
.trend-icon {
    font-size: 0.9rem;
}
.trend-icon.up { color: var(--green-neon); text-shadow: 0 0 5px var(--green-glow); }
.trend-icon.down { color: var(--red-neon); text-shadow: 0 0 5px var(--red-glow); }
.trend-icon.neutral { color: var(--text-secondary); }

/* Categoria Row Styling in Rules Table */
.color-row-gray td { background: rgba(138,153,173,0.02); color: #8a99ad; }
.color-row-green td { background: rgba(57,255,20,0.02); color: var(--green-neon); }
.color-row-blue td { background: rgba(0,112,243,0.02); color: var(--cyan-neon); }

.code-math-box {
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--cyan-neon);
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
}

/* ==============================================================================
   TAB 4: GRUPOS (LIGA DE AMIGOS)
   ============================================================================== */
.groups-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}
.action-box {
    padding: 25px;
}
.action-box h5 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 15px;
}
.form-input {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    color: #fff;
    font-family: inherit;
    outline: none;
    font-size: 0.92rem;
    transition: all 0.3s ease;
}
.form-input:focus {
    border-color: var(--cyan-neon);
    box-shadow: 0 0 10px var(--cyan-glow);
}

.btn-glow-purple {
    background: linear-gradient(135deg, var(--purple-neon), #8b22ff);
    color: #fff;
    border: none;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(176,38,255,0.25);
    transition: all 0.3s ease;
}
.btn-glow-purple:hover {
    box-shadow: 0 0 25px rgba(176,38,255,0.45);
    transform: translateY(-2px);
}

.my-groups-section h5 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    margin-bottom: 20px;
}
.group-card-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    margin-bottom: 12px;
    border-left: 3px solid var(--purple-neon);
}
.group-code-pill {
    background: rgba(255,255,255,0.06);
    padding: 4px 10px;
    border-radius: 4px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--gold);
    font-size: 0.85rem;
}

/* ==============================================================================
   COLUMN 3: SIDEBAR RIGHT LEADERBOARD (TOP 15)
   ============================================================================== */
.sidebar-right {
    padding: 25px;
    position: sticky;
    top: 110px;
}
.sidebar-header {
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}
.sidebar-header h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sidebar-header p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.top-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.top-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.2s ease;
}
.top-item:hover {
    background: rgba(255, 255, 255, 0.02);
}
.top-user-box {
    display: flex;
    align-items: center;
    gap: 10px;
}
.top-rank {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    width: 20px;
}
.top-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
}
.top-name {
    font-size: 0.82rem;
    font-weight: 600;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.top-score {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--cyan-neon);
}

/* ==============================================================================
   MODAL DIALOGS
   ============================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(2, 3, 10, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    width: 100%;
    max-width: 480px;
    padding: 40px;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}
.modal-overlay.active .modal-box {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.2s ease;
}
.modal-close:hover {
    color: #fff;
}

.auth-hero-icon {
    font-size: 3rem;
    color: var(--cyan-neon);
    margin-bottom: 20px;
    text-shadow: 0 0 15px var(--cyan-glow);
}
.space-auth-icon {
    font-size: 3rem;
    color: var(--cyan-neon);
    margin-bottom: 20px;
    text-shadow: 0 0 15px var(--cyan-glow);
}

.google-auth-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.google-auth-wrapper h5, .mock-auth-wrapper h5 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.or-separator {
    margin: 25px 0;
    position: relative;
    text-align: center;
}
.or-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
    z-index: 1;
}
.or-separator span {
    background: #0f1224;
    padding: 0 12px;
    position: relative;
    z-index: 2;
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 700;
}

.mock-users-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.mock-user-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.mock-user-btn:hover {
    border-color: var(--cyan-neon);
    background: rgba(0, 242, 254, 0.05);
}

/* Wide Modal for Auditor */
.wide-modal {
    max-width: 800px;
}
.auditoria-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 25px;
    text-align: left;
}
.auditoria-title-box h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
}

/* Rules list styling */
ul {
    list-style-type: none;
    margin-left: 0;
    padding-left: 0;
}
ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
ul li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--cyan-neon);
}

/* ==============================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ============================================================================== */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .sidebar-right {
        position: static;
    }
}

@media (max-width: 768px) {
    .groups-actions-grid {
        grid-template-columns: 1fr;
    }
    .mock-users-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .match-main-row {
        grid-template-columns: 1fr;
        gap: 12px;
        text-align: center;
    }
    .team-box-a, .team-box-b {
        text-align: center;
        justify-content: center;
    }
    .match-actions-box {
        justify-content: center;
        padding-left: 0;
        margin-top: 5px;
    }
    .match-footer-info {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}
