/* Focis Tippverseny CSS - Premium Dark Stadium Theme */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --bg-main: #041A10;
    --bg-card: rgba(10, 24, 18, 0.72);
    --bg-card-hover: rgba(15, 36, 27, 0.9);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(16, 185, 129, 0.25);
    
    --text-main: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    
    --primary: #10B981;
    --primary-hover: #059669;
    --primary-glow: rgba(16, 185, 129, 0.35);
    
    --accent: #FBBF24;
    --accent-hover: #F59E0B;
    --accent-glow: rgba(251, 191, 36, 0.25);
    
    --danger: #EF4444;
    --danger-hover: #DC2626;
    
    --success: #10B981;
    --info: #3B82F6;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-main);
    background-image: 
        /* Spotlight glow in the center */
        radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.15) 0%, rgba(4, 26, 16, 0.7) 80%),
        /* Alternating diagonal grass stripes */
        repeating-linear-gradient(135deg, #03150D 0px, #03150D 80px, #052115 80px, #052115 160px);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Slanted Soccer Markings Overlay */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='1000' viewBox='0 0 1600 1000'%3E%3C!-- Outer boundary --%3E%3Crect x='100' y='80' width='1400' height='840' fill='none' stroke='rgba%28255,255,255,0.035%29' stroke-width='4'/%3E%3C!-- Center line --%3E%3Cline x1='800' y1='80' x2='800' y2='920' stroke='rgba%28255,255,255,0.035%29' stroke-width='4'/%3E%3C!-- Center circle --%3E%3Ccircle cx='800' cy='500' r='150' fill='none' stroke='rgba%28255,255,255,0.035%29' stroke-width='4'/%3E%3Ccircle cx='800' cy='500' r='8' fill='rgba%28255,255,255,0.035%29'/%3E%3C!-- Penalty box left --%3E%3Crect x='100' y='280' width='220' height='440' fill='none' stroke='rgba%28255,255,255,0.02%29' stroke-width='4'/%3E%3Crect x='100' y='400' width='80' height='200' fill='none' stroke='rgba%28255,255,255,0.03%29' stroke-width='4'/%3E%3Cpath d='M 320,400 A 150,150 0 0,1 320,600' fill='none' stroke='rgba%28255,255,255,0.02%29' stroke-width='4'/%3E%3C!-- Penalty box right --%3E%3Crect x='1280' y='280' width='220' height='440' fill='none' stroke='rgba%28255,255,255,0.02%29' stroke-width='4'/%3E%3Crect x='1420' y='400' width='80' height='200' fill='none' stroke='rgba%28255,255,255,0.03%29' stroke-width='4'/%3E%3Cpath d='M 1280,400 A 150,150 0 0,0 1280,600' fill='none' stroke='rgba%28255,255,255,0.02%29' stroke-width='4'/%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    transform: rotate(-10deg);
    pointer-events: none;
    z-index: -1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
    text-decoration: none;
}

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

/* Header & Navigation */
header {
    background: rgba(11, 15, 23, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-main);
    background: linear-gradient(135deg, var(--text-main) 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-icon {
    color: var(--primary);
    filter: drop-shadow(0 0 8px var(--primary-glow));
    font-size: 1.7rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.nav-user-name {
    color: var(--text-main);
    font-weight: 600;
}

.badge-role {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-role.admin {
    background: rgba(251, 191, 36, 0.15);
    color: var(--accent);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.badge-role.user {
    background: rgba(16, 185, 129, 0.15);
    color: var(--primary);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-role.moderator {
    background: rgba(59, 130, 246, 0.15);
    color: var(--info);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
    background: var(--primary-hover);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-accent {
    background: var(--accent);
    color: #0b0f17;
    box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-accent:hover {
    background: var(--accent-hover);
    color: #0b0f17;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

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

.btn-danger:hover {
    background: var(--danger-hover);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

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

.btn-link {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0;
    cursor: pointer;
}

.btn-link:hover {
    color: var(--text-main);
    text-decoration: underline;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 6px;
}

/* Cards & Glassmorphism */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: var(--transition);
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Auth Pages (Layout & Specifics) */
.auth-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 36px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    font-size: 1.85rem;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

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

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

.form-control {
    width: 100%;
    background: rgba(11, 15, 23, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background: rgba(11, 15, 23, 0.9);
}

.form-row {
    display: flex;
    gap: 15px;
}

.invalid-feedback {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 5px;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    font-size: 0.9rem;
}

/* Alerts */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 0.95rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.12);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.12);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.alert-info {
    background: rgba(59, 130, 246, 0.12);
    color: var(--info);
    border: 1px solid rgba(59, 130, 246, 0.25);
}

/* Dashboard & Tabs */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

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

.tabs-nav {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 25px;
    gap: 10px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--text-main);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Match Cards */
.match-cards-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.match-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: var(--transition);
}

.match-card:hover {
    border-color: var(--border-glow);
    background: rgba(30, 41, 59, 0.6);
}

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

.match-time {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(251, 191, 36, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
}

.match-status {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
}

.match-status.finished {
    background: rgba(148, 163, 184, 0.1);
    color: var(--text-secondary);
}

.match-status.upcoming {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
}

/* Tipping scoreboard */
.scoreboard {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 10px 0;
}

.team {
    flex: 1;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    text-align: center;
}

.team.home {
    text-align: right;
}

.team.away {
    text-align: left;
}

.score-vs {
    font-weight: 800;
    color: var(--text-muted);
    font-size: 0.9rem;
    width: 30px;
    text-align: center;
}

.score-display {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 800;
    background: rgba(11, 15, 23, 0.8);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

/* Prediction input fields */
.tip-form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.tip-input {
    width: 60px;
    height: 48px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    font-family: var(--font-heading);
    border-radius: var(--radius-sm);
}

.tip-saved-badge {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.tip-points-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 700;
    min-width: 90px;
}

.tip-points-badge.pts-3 {
    background: rgba(251, 191, 36, 0.15);
    color: var(--accent);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.tip-points-badge.pts-1 {
    background: rgba(16, 185, 129, 0.15);
    color: var(--primary);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.tip-points-badge.pts-0 {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.tip-points-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-muted);
}

.tip-points-value {
    font-size: 1.1rem;
}

/* Leaderboard */
.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.leaderboard-table th {
    text-align: left;
    padding: 14px 16px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.leaderboard-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.95rem;
}

.leaderboard-row {
    transition: var(--transition);
}

.leaderboard-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.rank-cell {
    width: 60px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    text-align: center;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.9rem;
}

.rank-badge.gold {
    background: radial-gradient(circle, #FCD34D 0%, #D97706 100%);
    color: #451a03;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}

.rank-badge.silver {
    background: radial-gradient(circle, #E2E8F0 0%, #94A3B8 100%);
    color: #0f172a;
    box-shadow: 0 0 10px rgba(148, 163, 184, 0.3);
}

.rank-badge.bronze {
    background: radial-gradient(circle, #FDBA74 0%, #C2410C 100%);
    color: #431407;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.3);
}

.player-name-cell {
    font-weight: 600;
}

.player-name-cell.current-user {
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-name-cell.current-user::after {
    content: "(Te)";
    font-size: 0.8rem;
    color: var(--text-muted);
}

.points-cell {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    text-align: right;
    color: var(--primary);
}

/* Admin Dashboard Specific styles */
.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

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

.admin-match-card {
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.admin-match-card-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.admin-score-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: rgba(11, 15, 23, 0.4);
    padding: 10px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.admin-score-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rules-card {
    background: rgba(16, 185, 129, 0.03);
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.rules-list {
    margin-top: 10px;
    list-style-type: none;
}

.rules-list li {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.rules-points {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
    min-width: 50px;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: auto;
}

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

.animate-fade-in {
    animation: fadeIn 0.4s ease forwards;
}

/* Admin Custom Styles */
.confirm-box {
    animation: fadeIn 0.2s ease forwards;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.tab-btn {
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
    color: var(--primary);
}

/* Tooltip styles */
.tooltip-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.tooltip-icon {
    color: var(--info);
    cursor: pointer;
    margin-left: 6px;
    font-size: 0.85rem;
    transition: var(--transition);
}

.tooltip-icon:hover {
    color: var(--text-main);
    transform: scale(1.1);
}

.tooltip-text {
    visibility: hidden;
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(11, 25, 18, 0.95);
    border: 1px solid var(--primary-glow);
    color: var(--text-main);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.4;
    min-width: 220px;
    max-width: 300px;
    text-align: left;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none;
    white-space: normal;
}

/* Tooltip arrow */
.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(11, 25, 18, 0.95) transparent transparent transparent;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    transition: var(--transition);
    z-index: 2005;
}

.mobile-menu-toggle:hover {
    color: var(--primary);
}

/* Base style adjustment for horizontal tabs scrollability */
.tabs-nav {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}
.tabs-nav::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}
.tab-btn {
    flex-shrink: 0;
}

/* Custom classes for responsive layouts */
.drawer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 20px;
}

.drawer-question-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

/* Mobile Media Queries */
@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(4, 26, 16, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 30px 20px;
        gap: 15px;
        z-index: 1999;
        overflow-y: auto;
        border-top: 1px solid var(--border-color);
        align-items: stretch;
    }
    
    .nav-links.active {
        display: flex;
        animation: fadeIn 0.25s ease;
    }
    
    .nav-user {
        flex-direction: column;
        align-items: stretch;
        border-top: 1px solid var(--border-color);
        padding-top: 20px;
        margin-top: 10px;
        gap: 12px;
    }
    
    .nav-user-name {
        text-align: center;
        margin-bottom: 4px;
    }
    
    .nav-user .badge-role {
        text-align: center;
        align-self: center;
    }
    
    .drawer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    main {
        padding: 20px 0 !important;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .drawer-question-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .scoreboard {
        gap: 10px;
    }
    
    .team {
        font-size: 0.95rem !important;
    }
    
    .score-vs {
        font-size: 0.85rem !important;
        width: 40px !important;
    }
    
    .score-display {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.4rem !important;
    }
    
    .card {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.25rem !important;
    }
    
    .auth-card {
        padding: 20px !important;
    }
}

/* Tipping Drawer layout additions */
.tipping-drawer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 16px;
    padding-top: 20px;
    animation: fadeIn 0.3s ease;
}

.tipping-status-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
}

.tipping-status-badge.editable {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.tipping-status-badge.pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.tipping-status-badge.finalized {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.tipping-status-badge.closed {
    background: rgba(148, 163, 184, 0.1);
    color: var(--text-secondary);
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.countdown-lock-banner {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.15) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-sm);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.countdown-lock-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.countdown-number {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--accent);
    font-size: 1.25rem;
}

.group-tips-section {
    margin-top: 25px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 20px;
}

.group-tips-title {
    font-family: var(--font-heading);
    color: var(--accent);
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.group-tips-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.group-question-block {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    padding: 12px 16px;
}

.group-question-text {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 10px;
}

.member-tips-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.member-tip-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.02);
    padding: 8px 12px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.member-name {
    color: var(--text-secondary);
    font-weight: 500;
}

.member-tip-value {
    font-weight: bold;
    color: var(--text-main);
}

.member-points {
    font-size: 0.75rem;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: bold;
}
.member-points.win {
    background: rgba(16, 185, 129, 0.15);
    color: var(--primary);
}
.member-points.lose {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

/* Compact Tips Table Styles for 50-60 group members */
.group-tips-table-container {
    scrollbar-width: thin;
    scrollbar-color: rgba(16, 185, 129, 0.3) rgba(0, 0, 0, 0.2);
}

.group-tips-table-container::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.group-tips-table-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.group-tips-table-container::-webkit-scrollbar-thumb {
    background: rgba(16, 185, 129, 0.3);
    border-radius: 4px;
}

.group-tips-table-container::-webkit-scrollbar-thumb:hover {
    background: rgba(16, 185, 129, 0.5);
}

.compact-tips-table {
    border-collapse: separate;
    border-spacing: 0;
}

.compact-tips-table th, 
.compact-tips-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.compact-tips-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.compact-tips-table tbody tr:last-child td {
    border-bottom: none;
}


