/* css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #84cc16;          /* Lime Green - Pickleball Ball */
    --primary-hover: #65a30d;
    --primary-light: #f7fee7;
    --secondary: #f97316;        /* Energetic Orange */
    --secondary-hover: #ea580c;
    --accent: #0284c7;           /* Sky Blue */
    --bg: #f8fafc;               /* Slate 50 */
    --card-bg: rgba(255, 255, 255, 0.9);
    --text: #0f172a;             /* Slate 900 */
    --text-light: #64748b;       /* Slate 500 */
    --text-white: #ffffff;
    --border: #e2e8f0;           /* Slate 200 */
    --success: #22c55e;
    --danger: #ef4444;
    --font: 'Outfit', sans-serif;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 20px -2px rgba(148, 163, 184, 0.15), 0 2px 8px -1px rgba(148, 163, 184, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(148, 163, 184, 0.2), 0 10px 10px -5px rgba(148, 163, 184, 0.1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Helpers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.section {
    padding: 80px 0;
}
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text);
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 8px auto 0 auto;
    border-radius: 2px;
}
.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 50px auto;
}

/* Header & Nav */
.header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: all 0.3s ease;
}
.header.scrolled {
    padding: 8px 0;
    box-shadow: var(--shadow-md);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
.header.scrolled .nav-container {
    height: 64px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text);
}
.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(132, 204, 22, 0.3);
}
.logo span {
    background: linear-gradient(90deg, var(--text), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nav-menu {
    display: flex;
    gap: 32px;
    list-style: none;
}
.nav-link {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
    position: relative;
    padding: 8px 0;
}
.nav-link:hover {
    color: var(--secondary);
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary);
    transition: width 0.2s ease;
}
.nav-link:hover::after {
    width: 100%;
}
.btn-admin {
    background: var(--primary-light);
    color: var(--primary-hover);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 700;
    border: 1px solid rgba(132, 204, 22, 0.3);
    transition: all 0.2s;
    font-size: 0.9rem;
}
.btn-admin:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(132, 204, 22, 0.3);
}

/* Mobile Nav Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: radial-gradient(circle at 10% 20%, rgba(247, 254, 231, 0.8) 0%, rgba(255, 255, 255, 0) 60%),
                radial-gradient(circle at 90% 80%, rgba(254, 243, 199, 0.5) 0%, rgba(255, 255, 255, 0) 60%);
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
}
.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}
.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    text-transform: uppercase;
}
.hero-text h1 span.gradient-text {
    background: linear-gradient(90deg, var(--primary-hover), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-text p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 32px;
}
.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 32px;
}
.meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.meta-icon {
    font-size: 1.5rem;
    color: var(--secondary);
}
.meta-info h4 {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 600;
}
.meta-info p {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}
.hero-actions {
    display: flex;
    gap: 16px;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 8px 20px rgba(132, 204, 22, 0.3);
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(132, 204, 22, 0.4);
}
.btn-secondary {
    background: white;
    color: var(--text);
    padding: 16px 32px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    border: 1px solid var(--border);
    transition: all 0.3s;
}
.btn-secondary:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

/* Countdown Card */
.countdown-card {
    background: rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.countdown-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(132, 204, 22, 0.05) 0%, transparent 60%);
    z-index: -1;
}
.countdown-title {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    margin-bottom: 24px;
}
.timer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.timer-box {
    background: white;
    border-radius: var(--radius-md);
    padding: 16px 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.timer-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    margin-bottom: 4px;
}
.timer-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
}
.tournament-status {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 700;
    background: var(--primary-light);
    color: var(--primary-hover);
    text-transform: uppercase;
}

/* Stats Counter Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}
.stat-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s;
}
.stat-card:hover {
    transform: translateY(-5px);
}
.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--primary-hover);
}
.stat-info h3 {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
}
.stat-info p {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
}

/* About / Rules Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}
.rules-container {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}
.rules-container h3 {
    margin-top: 24px;
    margin-bottom: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.rules-container h3:first-of-type {
    margin-top: 0;
}
.rules-container p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

/* Athletes Section */
.athletes-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}
.tab-btn {
    background: white;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 12px 24px;
    border-radius: 99px;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font);
    font-size: 0.95rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
}
.tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary-hover);
}
.tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(132, 204, 22, 0.3);
}
.athletes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.athlete-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.athlete-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--border);
    transition: background 0.3s;
}
.athlete-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.athlete-card.male:hover::after {
    background: var(--accent);
}
.athlete-card.female:hover::after {
    background: var(--secondary);
}
.athlete-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 16px auto;
    font-size: 1.6rem;
}
.athlete-card.male .athlete-avatar {
    color: var(--accent);
    background: #f0f9ff;
}
.athlete-card.female .athlete-avatar {
    color: var(--secondary);
    background: #fff7ed;
}
.athlete-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}
.athlete-code {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    padding: 3px 10px;
    border-radius: 99px;
    background: #f1f5f9;
    color: var(--text-light);
}

/* Teams / Pairing Draw Section */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.team-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    text-align: center;
}
.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}
.team-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 99px;
    background: #f1f5f9;
    color: var(--text-light);
    display: inline-block;
    margin-bottom: 16px;
}
.team-badge.group-a { background: #fee2e2; color: #ef4444; }
.team-badge.group-b { background: #fef3c7; color: #d97706; }
.team-badge.group-c { background: #dcfce7; color: #16a34a; }
.team-badge.group-d { background: #e0f2fe; color: #0284c7; }

.team-players {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}
.team-player {
    flex: 1;
}
.team-player-name {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 2px;
}
.team-player-code {
    font-size: 0.75rem;
    color: var(--text-light);
}
.team-divider {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--secondary);
}

/* Group Matches & Standings Tabs */
.group-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}
.group-tab-btn {
    background: white;
    border: 1px solid var(--border);
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 700;
    font-family: var(--font);
    font-size: 1.1rem;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}
.group-tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary-hover);
}
.group-tab-btn.active {
    background: var(--text);
    color: white;
    border-color: var(--text);
}

/* Group Layout */
.group-content-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: start;
}

/* Table Style */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}
.table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.table th, .table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}
.table th {
    background-color: #f8fafc;
    color: var(--text-light);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}
.table tr:last-child td {
    border-bottom: none;
}
.table tr:nth-child(1) td, .table tr:nth-child(2) td {
    /* highlight top 2 teams qualifying for KOs */
}
.pos-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--text-light);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 700;
}
.table tr:nth-child(1) .pos-badge {
    background: #fef3c7;
    color: #d97706;
}
.table tr:nth-child(2) .pos-badge {
    background: #e2e8f0;
    color: #475569;
}
.team-name-cell {
    font-weight: 700;
    color: var(--text);
}
.qualify-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--success);
    margin-right: 6px;
}

/* Match Cards */
.matches-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.match-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.2s;
}
.match-card:hover {
    transform: translateX(4px);
    border-color: var(--border);
    box-shadow: var(--shadow-md);
}
.match-info {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
}
.match-teams-score {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    margin: 0 24px;
}
.match-team-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.match-team-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
}
.match-team-score {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-light);
    width: 24px;
    text-align: right;
}
.match-team-row.winner .match-team-name {
    color: var(--primary-hover);
}
.match-team-row.winner .match-team-score {
    color: var(--text);
    font-size: 1.25rem;
}
.match-status-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 99px;
    background: #f1f5f9;
    color: var(--text-light);
    text-transform: uppercase;
}
.match-status-badge.completed {
    background: var(--primary-light);
    color: var(--primary-hover);
}
.match-status-badge.live {
    background: #fee2e2;
    color: #ef4444;
}

/* Knockout Bracket Section */
.bracket-wrapper {
    overflow-x: auto;
    padding: 20px 0;
    display: flex;
    justify-content: center;
}
.bracket-container {
    display: flex;
    gap: 40px;
    align-items: center;
    min-width: 900px;
    position: relative;
}
.bracket-column {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: 600px; /* fixed height for alignment */
    flex: 1;
}
.bracket-match {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    width: 240px;
    overflow: hidden;
    position: relative;
}
.bracket-match-header {
    background: #f8fafc;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
}
.bracket-team-box {
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
}
.bracket-team-box:last-child {
    border-bottom: none;
}
.bracket-team-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
}
.bracket-team-name.placeholder {
    color: var(--text-light);
    font-weight: 400;
    font-style: italic;
}
.bracket-team-score {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-light);
}
.bracket-team-box.winner .bracket-team-name {
    color: var(--primary-hover);
}
.bracket-team-box.winner .bracket-team-score {
    color: var(--text);
}

/* Timeline & Schedule */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 32px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 8px;
    bottom: 8px;
    width: 4px;
    background: var(--border);
    border-radius: 2px;
}
.timeline-item {
    position: relative;
    margin-bottom: 40px;
}
.timeline-item:last-child {
    margin-bottom: 0;
}
.timeline-dot {
    position: absolute;
    left: -32px;
    top: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 4px solid var(--primary);
    box-shadow: var(--shadow-sm);
    z-index: 2;
}
.timeline-content {
    background: white;
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.timeline-time {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    margin-bottom: 6px;
}
.timeline-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.timeline-desc {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Prizes Cards */
.prizes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: end;
}
.prize-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px 24px;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}
.prize-card:hover {
    transform: translateY(-5px);
}
.prize-card.gold {
    order: 2;
    padding: 60px 24px; /* Gold is taller! */
    border-color: #fde047;
    box-shadow: 0 20px 40px -15px rgba(234, 179, 8, 0.2);
}
.prize-card.silver {
    order: 1;
    border-color: #cbd5e1;
}
.prize-card.bronze {
    order: 3;
    border-color: #fed7aa;
}
.prize-medal {
    font-size: 3rem;
    margin-bottom: 20px;
}
.prize-rank {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 12px;
    text-transform: uppercase;
}
.prize-reward {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary);
}
.prize-card.gold .prize-reward {
    color: #eab308;
    font-size: 1.4rem;
}

/* Venue Map Section */
.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    height: 450px;
}
.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer */
.footer {
    background: var(--text);
    color: white;
    padding: 40px 0;
    text-align: center;
}
.footer p {
    color: #94a3b8;
    font-size: 0.9rem;
}
.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    display: inline-block;
    color: white;
}
.footer-logo span {
    color: var(--primary);
}

/* Admin Styles (Login and General) */
.admin-login-body {
    background: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.login-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    max-width: 420px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.8);
}
.login-header {
    text-align: center;
    margin-bottom: 32px;
}
.login-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--text);
    margin-bottom: 8px;
}
.login-logo span {
    color: var(--secondary);
}
.form-group {
    margin-bottom: 20px;
}
.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--text);
}
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.95rem;
    transition: border-color 0.2s;
}
.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(132, 204, 22, 0.15);
}
.btn-block {
    width: 100%;
}

/* Admin Dashboard Styles */
.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}
.admin-sidebar {
    background: var(--text);
    color: white;
    padding: 32px 16px;
    display: flex;
    flex-direction: column;
}
.admin-sidebar-logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 40px;
    padding-left: 12px;
}
.admin-sidebar-logo span {
    color: var(--primary);
}
.admin-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #94a3b8;
    text-decoration: none;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
}
.admin-nav-link:hover, .admin-nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}
.admin-nav-link.active {
    background: var(--primary);
    color: white;
}
.admin-main {
    background: #f8fafc;
    padding: 40px;
    overflow-y: auto;
}
.admin-header-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
}
.admin-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    margin-bottom: 32px;
}
.admin-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Flex rows / forms */
.form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.form-row-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* Utility buttons */
.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}
.btn-danger {
    background: var(--danger);
}
.btn-danger:hover {
    background: #dc2626;
}
.btn-success {
    background: var(--success);
}
.btn-success:hover {
    background: #16a34a;
}

/* Modal style */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}
.modal.open {
    display: flex;
}
.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-lg);
}

/* Responsiveness */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-meta {
        justify-content: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .countdown-card {
        max-width: 500px;
        margin: 0 auto;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 40px;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .group-content-grid {
        grid-template-columns: 1fr;
    }
    .prizes-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        align-items: stretch;
    }
    .prize-card.gold {
        order: 1;
        padding: 40px 24px;
    }
    .prize-card.silver {
        order: 2;
    }
    .prize-card.bronze {
        order: 3;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none; /* simple toggle can be implemented later or standard Hamburger */
    }
    .mobile-toggle {
        display: block;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .section-title {
        font-size: 2rem;
    }
    .bracket-container {
        min-width: unset;
        flex-direction: column;
        gap: 30px;
        height: auto;
    }
    .bracket-column {
        height: auto;
        gap: 20px;
    }
    .admin-layout {
        grid-template-columns: 1fr;
    }
    .admin-sidebar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 16px;
    }
    .admin-sidebar-logo {
        margin-bottom: 0;
    }
    .admin-nav {
        flex-direction: row;
    }
}
