:root {
    --bg-main: #0b0f19;
    --bg-darker: #070a13;
    --bg-card: rgba(15, 23, 42, 0.85);
    --border-card: rgba(20, 255, 67, 0.05);
    --border-active: #3b82f6;
    
    --primary: #84c54c;
    --primary-hover: #6fa342;
    --secondary: #6Fa342;
    --secondary-hover: #5d8c3a;
    --primary-glow: rgba(132, 197, 76, 0.1);
    
    --accent-gold: #eab308;
    --accent-gold-glow: rgba(234, 179, 8, 0.1);
    
    --success: #10b981;
    --success-glow: rgba(16, 185, 129, 0.1);
    
    --danger: #ef4444;
    --danger-glow: rgba(239, 68, 68, 0.1);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #0f172a;
    
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    --transition-fast: 0.15s ease;
    --transition-smooth: 0.25s ease;
}

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

body {
    background-color: var(--bg-main);
    background-image: linear-gradient(rgba(11, 15, 25, 0.85), rgba(7, 10, 19, 0.95)), url('../img/background.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    color: var(--text-main);
    font-family: var(--font-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.5;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: -2;
    pointer-events: none;
}

.bg-glow {
    display: none !important;
}

/* Scrollbar Personalizado */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.text-center { text-align: center; }
.hidden { display: none !important; }
.py-4 { padding: 1.5rem 0; }

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    outline: none;
    user-select: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-card);
    color: var(--text-main);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-full { width: 100%; }
.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
}

.btn-icon {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-card);
    color: var(--text-main);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}
.btn-icon:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.05);
}
.btn-icon.danger:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--danger);
    color: var(--danger);
}

/* Etiquetas (Badges) */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}
.badge-gold {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-gold);
    border: 1px solid rgba(245, 158, 11, 0.25);
}
.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.25);
}
.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    padding: 1.75rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    position: relative;
}
.input-wrapper label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}
.input-icon-container {
    position: relative;
    width: 100%;
}
.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition-fast);
}
.input-icon-container input,
.form-group input,
.form-group select,
.form-group textarea,
.modal-card input,
.modal-card select,
.modal-card textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-card);
    color: var(--text-main);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-fast);
}
.input-icon-container input {
    padding-left: 2.7rem;
}
.input-icon-container input:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.modal-card input:focus,
.modal-card select:focus,
.modal-card textarea:focus {
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.35);
    box-shadow: 0 0 10px rgba(132, 197, 76, 0.2);
}
.input-icon-container input:focus + .input-icon {
    color: var(--primary);
}
.helper-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleUp {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes pulseBorder {
    0% { border-color: rgba(20, 255, 67, 0.05); }
    50% { border-color: rgba(20, 255, 67, 0.15); }
    100% { border-color: rgba(20, 255, 67, 0.05); }
}

.animate-fade-in { animation: fadeIn 0.4s ease forwards; }
.animate-slide-up { animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-scale-up { animation: scaleUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    width: calc(100% - 48px);
}
.toast {
    background: rgba(18, 20, 32, 0.9);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-main);
    backdrop-filter: blur(10px);
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s;
    opacity: 0;
}
.toast.show {
    transform: translateX(0);
    opacity: 1;
}
.toast.success { border-left: 4px solid var(--success); }
.toast.success i { color: var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.error i { color: var(--danger); }
.toast.info { border-left: 4px solid var(--primary); }
.toast.info i { color: var(--primary); }

.toast-content { flex: 1; }
.toast-title {
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    margin-bottom: 2px;
}
.toast-message {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.toast-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition-fast);
}
.toast-close:hover { color: var(--text-main); }

.screen {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.loading-screen {
    align-items: center;
    justify-content: center;
    background: var(--bg-darker);
}
.spinner-container { text-align: center; }
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.05);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 0 15px var(--primary-glow);
}
.inline-spinner {
    width: 20px;
    height: 20px;
    border-width: 2px;
    margin: 0 8px 0 0;
    display: inline-block;
    vertical-align: middle;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.auth-screen {
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.auth-card {
    max-width: 480px;
    width: 100%;
    padding: 0;
    overflow: hidden;
}
.auth-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid var(--border-card);
}
.auth-tab {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    padding: 1.1rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.auth-tab:hover {
    color: var(--text-main);
    background: rgba(255,255,255,0.02);
}
.auth-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: rgba(255,255,255,0.01);
}
.auth-form {
    padding: 2rem 2.25rem;
}
.auth-header {
    margin-bottom: 1.75rem;
    text-align: center;
}
.auth-header h2 {
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
}
.auth-company-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    margin: 0 auto 1.25rem auto;
    display: block;
    filter: drop-shadow(0 0 12px rgba(132, 197, 76, 0.3));
    transition: var(--transition-smooth);
}
.auth-company-logo:hover {
    transform: scale(1.05);
}

.dashboard-screen {
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
    gap: 20px;
}
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.5rem 1rem 0.5rem;
    border-bottom: 1px solid var(--border-card);
}
.header-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}
.company-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(132, 197, 76, 0.2));
    transition: var(--transition-smooth);
}
.company-logo:hover {
    transform: scale(1.06) rotate(-1deg);
    filter: drop-shadow(0 0 14px rgba(132, 197, 76, 0.4));
}
.logo-text h1 {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-main);
}
.logo-text span {
    font-size: 0.75rem;
    color: var(--accent-gold);
    display: block;
    margin-top: 2px;
}

.user-profile-widget {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-card);
    padding: 0.5rem 1rem 0.5rem 1.25rem;
    border-radius: 9999px;
    backdrop-filter: blur(10px);
}
.profile-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.profile-info .user-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-main);
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.points-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-gold);
}
.gold-icon {
    width: 12px;
    height: 12px;
    fill: var(--accent-gold);
}
.profile-actions {
    display: flex;
    gap: 6px;
    border-left: 1px solid var(--border-card);
    padding-left: 12px;
}

/* Pestañas */
.app-tabs-nav {
    display: flex;
    padding: 0.4rem;
    gap: 8px;
    border-radius: var(--radius-md);
}
.nav-tab {
    flex: 1;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.nav-tab:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
}
.nav-tab.active {
    color: #fff;
    background: var(--primary);
    box-shadow: 0 4px 12px var(--primary-glow);
}
.nav-tab i {
    width: 18px;
    height: 18px;
}

.app-main-content {
    position: relative;
    min-height: 500px;
}
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}
.tab-content.active {
    display: block;
}
.tab-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 1.5rem;
}
.section-title h2 {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.filter-bar {
    display: flex;
    gap: 12px;
}
.select-wrapper {
    position: relative;
}
.select-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    pointer-events: none;
}
.filter-bar select {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-card);
    color: var(--text-main);
    padding: 0.6rem 2.2rem 0.6rem 2.2rem;
    border-radius: var(--radius-md);
    outline: none;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    transition: var(--transition-fast);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    min-width: 170px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
}
.filter-bar select option {
    background-color: #0f172a;
    color: #f8fafc;
    padding: 10px;
}
.filter-bar select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}

.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
}
.loading-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 5rem 0;
    color: var(--text-muted);
}

.match-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.match-card.pulsing-border {
    animation: pulseBorder 2.5s infinite;
}
.match-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    border-bottom: 1px solid var(--border-card);
    padding-bottom: 10px;
}
.match-group {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--accent-gold);
}
.match-time {
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.match-versus-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.team-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}
.flag-wrapper {
    width: 64px;
    height: 44px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}
.flag-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-fast);
}
.match-card:hover .flag-img {
    transform: scale(1.06);
}
.team-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 110px;
}
.team-siglas {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.score-inputs-container {
    display: flex;
    align-items: center;
    gap: 8px;
}
.score-input {
    width: 48px;
    height: 48px;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    background: rgba(0,0,0,0.3) !important;
    border: 1px solid var(--border-card) !important;
    border-radius: var(--radius-md) !important;
    color: #fff;
    padding: 0 !important;
}
.score-input:disabled {
    opacity: 0.6;
    color: var(--text-muted);
    cursor: not-allowed;
    border-color: rgba(255,255,255,0.03) !important;
}
.score-divider {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-muted);
}

.match-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-card);
    padding-top: 12px;
    margin-top: 4px;
    gap: 12px;
}

.save-prediction-btn {
    flex: 1;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    background: var(--secondary);
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition-fast);
}
.save-prediction-btn:hover {
    transform: translateY(-1px);
    background: var(--secondary-hover);
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.save-prediction-btn:disabled {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-card);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.prediction-status-locked {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-gold);
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.15);
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
}
.prediction-status-saved {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--success);
    font-size: 0.75rem;
    font-weight: 700;
}
.prediction-status-saved i {
    width: 14px;
    height: 14px;
}

.real-score-badge {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-card);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    text-align: center;
}
.real-score-val {
    font-family: var(--font-heading);
    font-weight: 800;
    color: #fff;
    font-size: 0.85rem;
}

.points-earned-tag {
    position: absolute;
    top: 45px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gold);
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    z-index: 5;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.leaderboard-container {
    padding: 0;
    overflow: hidden;
}
.table-responsive {
    overflow-x: auto;
    width: 100%;
}
.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}
.leaderboard-table th, 
.leaderboard-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-card);
}
.leaderboard-table th {
    background: rgba(0,0,0,0.2);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}
.leaderboard-table tbody tr {
    transition: var(--transition-fast);
}
.leaderboard-table tbody tr:hover {
    background: rgba(255,255,255,0.01);
}
.leaderboard-table tbody tr:last-child td {
    border-bottom: none;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: 800;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    background: rgba(255,255,255,0.05);
    color: var(--text-muted);
}
.rank-gold {
    background: var(--accent-gold);
    color: var(--text-dark);
}
.rank-silver {
    background: #cbd5e1;
    color: var(--text-dark);
}
.rank-bronze {
    background: #b45309;
    color: #fff;
}

.participant-name {
    font-weight: 700;
    color: var(--text-main);
}
.participant-you-tag {
    background: var(--primary-glow);
    color: var(--primary);
    border: 1px solid rgba(132, 197, 76, 0.2);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    margin-left: 6px;
    text-transform: uppercase;
}
.participant-subtext {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.pts-col-val {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--accent-gold);
    text-align: center;
}

.btn-view-predictions {
    background: rgba(132, 197, 76, 0.08);
    border: 1px solid rgba(132, 197, 76, 0.15);
    color: var(--primary);
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: var(--transition-fast);
    margin: 0 auto;
}
.btn-view-predictions:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-1px);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 6, 8, 0.75);
    backdrop-filter: blur(8px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.modal-card {
    max-width: 580px;
    width: 100%;
    position: relative;
    padding: 2rem;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--border-card);
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
}
.modal-header h3 {
    font-size: 1.3rem;
}
.btn-close-modal {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}
.btn-close-modal:hover {
    background: rgba(255,255,255,0.06);
    color: var(--text-main);
}
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 1.5rem;
    border-top: 1px solid var(--border-card);
    padding-top: 1.25rem;
}

.user-details-card {
    max-width: 700px;
}
.details-notice {
    background: rgba(132, 197, 76, 0.07);
    border: 1px solid rgba(132, 197, 76, 0.15);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.25rem;
    line-height: 1.4;
}
.details-notice i {
    color: var(--primary);
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.details-predictions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 6px;
}
.mini-prediction-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mini-card-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255,255,255,0.03);
    padding-bottom: 4px;
}
.mini-card-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}
.mini-team-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
}
.mini-flag {
    width: 24px;
    height: 16px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.mini-score-val {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.95rem;
    color: #fff;
    background: rgba(255,255,255,0.04);
    padding: 2px 8px;
    border-radius: 4px;
}
.mini-secret-lock {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-gold);
    background: rgba(245, 158, 11, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(245, 158, 11, 0.15);
}

@media (max-width: 768px) {
    body {
        padding: 0;
    }
    .dashboard-screen {
        padding: 16px 12px;
    }
    .app-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        text-align: center;
    }
    .header-logo {
        justify-content: center;
    }
    .user-profile-widget {
        justify-content: space-between;
        align-items: center;
    }
    .app-tabs-nav {
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
    }
    .nav-tab {
        padding: 0.75rem 0.85rem;
        font-size: 0.8rem;
        flex: none;
    }
    .tab-header-flex {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-bar {
        flex-direction: column;
    }
    .filter-bar select {
        width: 100%;
    }
    .matches-grid {
        grid-template-columns: 1fr;
    }
    .modal-card {
        padding: 1.25rem;
    }
    .details-predictions-grid {
        grid-template-columns: 1fr;
    }
}
