/* ============================================
   TEER PORTAL — MODERN PREMIUM CSS
   Glassmorphism + Gradients + Micro-animations
   ============================================ */

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

/* ============================================
   CSS Custom Properties
   ============================================ */
:root {
    /* Modern Brand Palette */
    --primary: #6C3CE1;
    --primary-dark: #5228CC;
    --primary-light: #8B5CF6;
    --secondary: #F43F5E;
    --accent: #0EA5E9;
    --accent-glow: rgba(14, 165, 233, 0.3);

    /* Gradient Definitions */
    --grad-header: linear-gradient(135deg, #1a0533 0%, #2d1054 40%, #6C3CE1 100%);
    --grad-nav: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
    --grad-card-title: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    --grad-result-glow: linear-gradient(135deg, #6C3CE1, #F43F5E);
    --grad-body: linear-gradient(180deg, #0f0c29 0%, #1a1a2e 50%, #16213e 100%);

    /* Surface Colors */
    --bg-primary: #0f0c29;
    --bg-card: rgba(30, 27, 75, 0.6);
    --bg-card-solid: #1e1b4b;
    --bg-glass: rgba(255, 255, 255, 0.05);
    --bg-input: rgba(255, 255, 255, 0.08);

    /* Text Colors */
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    /* Borders */
    --border-glass: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(108, 60, 225, 0.4);

    /* Result Colors */
    --result-number: #facc15;
    --result-pending: #64748b;
    --result-off: #475569;

    /* Spacing */
    --container-width: 900px;
    --section-gap: 20px;
    --card-padding: 28px;
    --card-radius: 16px;

    /* Animation */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.35s var(--ease-out-expo);
    --transition-slow: 0.5s var(--ease-out-expo);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 30px rgba(108, 60, 225, 0.2);
    --shadow-result: 0 0 40px rgba(250, 204, 21, 0.15);
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-primary);
    background-image: var(--grad-body);
    background-attachment: fixed;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle animated background grid */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(108, 60, 225, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(244, 63, 94, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

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

a:hover {
    color: var(--primary-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text-primary);
}

h1 { font-size: 28px; }
h2 { font-size: 22px; font-weight: 600; }
h3 { font-size: 18px; }

p {
    margin-bottom: 1.1em;
    color: var(--text-secondary);
}

ul, ol {
    margin-bottom: 1.1em;
    padding-left: 24px;
    color: var(--text-secondary);
}

li {
    margin-bottom: 6px;
}

strong {
    color: var(--text-primary);
}

/* ============================================
   Container
   ============================================ */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 16px;
    position: relative;
    z-index: 1;
}

/* ============================================
   Header — Premium Gradient
   ============================================ */
.site-header {
    background: var(--grad-header);
    padding: 32px 0 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(108, 60, 225, 0.3);
}

.site-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(108, 60, 225, 0.15) 0%, transparent 60%);
    animation: headerGlow 8s ease-in-out infinite;
}

@keyframes headerGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(5%, 3%); }
}

.site-header .main-title {
    font-family: 'Outfit', sans-serif;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0;
    position: relative;
    z-index: 1;
    letter-spacing: -0.5px;
}

.site-header .main-title a {
    color: #ffffff;
    text-decoration: none;
    background: linear-gradient(135deg, #ffffff 0%, #c4b5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin: 6px 0 0;
    font-weight: 400;
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
}

/* ============================================
   Navigation — Glassmorphic
   ============================================ */
.main-navigation {
    background: var(--grad-nav);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-glass);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.main-navigation .nav-inner {
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
    padding: 0;
    gap: 2px;
}

.main-navigation li {
    margin: 0;
}

.main-navigation a {
    display: flex;
    align-items: center;
    padding: 0 18px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    line-height: 48px;
    transition: all var(--transition-normal);
    position: relative;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    border-radius: 8px;
    margin: 4px 0;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--grad-result-glow);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
    border-radius: 2px;
}

.main-navigation a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.main-navigation a:hover::after {
    width: 60%;
}

.main-navigation a.active {
    color: #ffffff;
    background: rgba(108, 60, 225, 0.2);
}

.main-navigation a.active::after {
    width: 60%;
    background: var(--primary-light);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    padding: 14px 16px;
    cursor: pointer;
    font-weight: 700;
    width: 100%;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Inter', sans-serif;
}

.menu-toggle:hover {
    color: #fff;
}

.menu-toggle .hamburger {
    display: inline-block;
    width: 20px;
    height: 2px;
    background: currentColor;
    position: relative;
    vertical-align: middle;
    margin-right: 10px;
    border-radius: 2px;
}

.menu-toggle .hamburger::before,
.menu-toggle .hamburger::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: currentColor;
    left: 0;
    border-radius: 2px;
}

.menu-toggle .hamburger::before { top: -6px; }
.menu-toggle .hamburger::after { top: 6px; }

/* ============================================
   Main Content Area
   ============================================ */
.site-content {
    padding: var(--section-gap) 0 40px;
    position: relative;
    z-index: 1;
}

/* ============================================
   Glassmorphic Section Cards
   ============================================ */
.section-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--section-gap);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.section-card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.section-card .card-body {
    padding: var(--card-padding);
}

/* ============================================
   Page Title (H1)
   ============================================ */
.page-title {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    padding: 20px var(--card-padding);
    margin-bottom: 0;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-glass);
    background: rgba(108, 60, 225, 0.08);
}

/* ============================================
   Refresh Button
   ============================================ */
.refresh-btn-wrap {
    text-align: center;
    margin: 24px 0;
}

.refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 20px rgba(108, 60, 225, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
}

.refresh-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(108, 60, 225, 0.5);
    color: #fff;
}

.refresh-btn:active {
    transform: translateY(-1px);
}

/* ============================================
   Result Card — The core component (PREMIUM)
   ============================================ */
.result-section {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--section-gap);
    overflow: hidden;
    transition: all var(--transition-normal);
    position: relative;
}

.result-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--grad-result-glow);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.result-section:hover {
    border-color: var(--border-glow);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.result-section:hover::before {
    opacity: 1;
}

.result-section-title {
    background: var(--grad-card-title);
    color: #ffffff;
    padding: 16px 24px;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    margin: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
}

.result-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
}

.result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.result-round {
    padding: 28px 20px;
    text-align: center;
    position: relative;
    transition: background var(--transition-fast);
}

.result-round:first-child {
    border-right: 1px solid var(--border-glass);
}

.result-round:hover {
    background: rgba(108, 60, 225, 0.05);
}

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

.round-label span {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 1px;
}

.round-time {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dim);
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}

.round-number {
    font-size: 52px;
    font-weight: 900;
    color: var(--result-number);
    line-height: 1;
    font-family: 'Outfit', sans-serif;
    text-shadow: 0 0 30px rgba(250, 204, 21, 0.3);
    animation: numberGlow 3s ease-in-out infinite;
    letter-spacing: 2px;
}

.round-number.pending {
    color: var(--result-pending);
    text-shadow: none;
    animation: pendingBlink 1.5s ease-in-out infinite;
}

@keyframes numberGlow {
    0%, 100% { 
        text-shadow: 0 0 20px rgba(250, 204, 21, 0.2);
        transform: scale(1);
    }
    50% { 
        text-shadow: 0 0 40px rgba(250, 204, 21, 0.4), 0 0 80px rgba(250, 204, 21, 0.1);
        transform: scale(1.02);
    }
}

@keyframes pendingBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Live indicator */
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
    box-shadow: 0 2px 12px rgba(239, 68, 68, 0.4);
}

.live-dot {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: liveDotPulse 1s ease-in-out infinite;
}

@keyframes liveDotPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,255,255,0.6); }
    50% { opacity: 0.5; box-shadow: 0 0 0 4px rgba(255,255,255,0); }
}

/* ============================================
   Previous Results Table — Premium
   ============================================ */
.results-table-wrap {
    overflow-x: auto;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.results-table thead {
    background: var(--grad-card-title);
}

.results-table thead td,
.results-table thead th {
    padding: 14px 20px;
    font-weight: 700;
    text-align: center;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.results-table tbody td {
    padding: 12px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-glass);
    transition: all var(--transition-fast);
    color: var(--text-secondary);
}

.results-table tbody tr {
    transition: all var(--transition-fast);
}

.results-table tbody tr:hover td {
    background: rgba(108, 60, 225, 0.08);
}

.results-table tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.02);
}

.results-table tbody tr:nth-child(even):hover td {
    background: rgba(108, 60, 225, 0.08);
}

.results-table .date-col {
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    font-size: 13px;
}

.results-table .result-col {
    font-weight: 800;
    font-size: 18px;
    color: var(--result-number);
    font-family: 'Outfit', sans-serif;
    letter-spacing: 1px;
}

.results-table .off-day td {
    color: var(--text-dim);
    font-style: italic;
}

.results-table .off-day .result-col {
    color: var(--text-dim);
}

/* ============================================
   Info Table (Game Details)
   ============================================ */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    margin-bottom: 20px;
}

.info-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-glass);
    font-size: 14px;
    color: var(--text-secondary);
}

.info-table tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.03);
}

.info-table td:first-child {
    font-weight: 700;
    width: 35%;
    color: var(--text-primary);
}

/* ============================================
   Content Sections (SEO)
   ============================================ */
.content-section {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--section-gap);
    padding: var(--card-padding);
}

.content-section h2 {
    color: var(--text-primary);
    margin-top: 28px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.content-section h2:first-child {
    margin-top: 0;
}

.content-section h3 {
    color: var(--accent);
    margin-top: 20px;
}

.content-section img.aligncenter {
    display: block;
    margin: 20px auto;
    border-radius: 12px;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: rgba(15, 12, 41, 0.9);
    border-top: 1px solid var(--border-glass);
    color: var(--text-dim);
    padding: 24px 0;
    text-align: center;
    font-size: 13px;
    position: relative;
    z-index: 1;
}

.site-footer a {
    color: var(--text-muted);
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff;
}

/* ============================================
   Back to Top Button
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 18px;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    z-index: 999;
    box-shadow: 0 4px 16px rgba(108, 60, 225, 0.4);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(108, 60, 225, 0.5);
}

.back-to-top.visible {
    display: flex;
}

/* ============================================
   Admin Panel Styles
   ============================================ */
.admin-header {
    background: var(--grad-card-title);
    color: #fff;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-glass);
}

.admin-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h1 {
    font-size: 20px;
    color: #fff;
    margin: 0;
}

.admin-nav a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
    transition: color var(--transition-fast);
    font-size: 13px;
}

.admin-nav a:hover,
.admin-nav a.active {
    color: #fff;
}

/* Admin Forms */
.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
    overflow: hidden;
}

.admin-card-title {
    background: rgba(255, 255, 255, 0.03);
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 700;
    border-bottom: 1px solid var(--border-glass);
    margin: 0;
    color: var(--text-primary);
}

.admin-card-body {
    padding: 24px;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    font-family: inherit;
    transition: all var(--transition-fast);
    background: var(--bg-input);
    color: var(--text-primary);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(108, 60, 225, 0.1);
    box-shadow: 0 0 0 3px rgba(108, 60, 225, 0.15);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-normal);
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(108, 60, 225, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(108, 60, 225, 0.4);
    color: #fff;
}

.btn-danger {
    background: #dc2626;
    color: #fff;
}

.btn-danger:hover {
    background: #b91c1c;
    color: #fff;
}

.btn-success {
    background: #059669;
    color: #fff;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.btn-success:hover {
    background: #047857;
    color: #fff;
}

/* Alert Messages */
.alert {
    padding: 14px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 14px;
    border: 1px solid;
}

.alert-success {
    background: rgba(5, 150, 105, 0.15);
    color: #34d399;
    border-color: rgba(5, 150, 105, 0.3);
}

.alert-error {
    background: rgba(220, 38, 38, 0.15);
    color: #fca5a5;
    border-color: rgba(220, 38, 38, 0.3);
}

/* Login Page */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--grad-body);
    position: relative;
}

.login-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(108, 60, 225, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(14, 165, 233, 0.08) 0%, transparent 50%);
}

.login-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}

.login-card h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    background: var(--grad-result-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Animations — Page Load
   ============================================ */
.section-card, .result-section, .content-section {
    animation: fadeInUp 0.5s var(--ease-out-expo) both;
}

.result-section:nth-child(2) { animation-delay: 0.05s; }
.result-section:nth-child(3) { animation-delay: 0.1s; }
.result-section:nth-child(4) { animation-delay: 0.15s; }
.result-section:nth-child(5) { animation-delay: 0.2s; }
.result-section:nth-child(6) { animation-delay: 0.25s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .site-header .main-title {
        font-size: 24px;
    }

    .site-description {
        font-size: 14px;
    }

    .menu-toggle {
        display: block;
    }

    .main-navigation ul {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .main-navigation ul.active {
        display: flex;
    }

    .main-navigation a {
        text-align: left;
        padding: 12px 20px;
        border-top: 1px solid var(--border-glass);
        border-radius: 0;
        line-height: 1.4;
    }

    h1 { font-size: 20px; }
    h2 { font-size: 18px; }

    .section-card .card-body,
    .content-section {
        padding: 20px;
    }

    .round-number {
        font-size: 38px;
    }

    .result-round {
        padding: 20px 14px;
    }

    .page-title {
        font-size: 18px;
        padding: 16px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .results-table thead td,
    .results-table thead th {
        padding: 10px 12px;
        font-size: 10px;
    }

    .results-table tbody td {
        padding: 10px 12px;
    }

    .results-table .result-col {
        font-size: 16px;
    }

    .admin-header .container {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .site-header .main-title { font-size: 20px; }
    .site-description { font-size: 13px; }
    .round-number { font-size: 32px; }
    .result-section-title { font-size: 12px; padding: 12px 16px; letter-spacing: 1.5px; }
    .container { padding: 0 12px; }
}

/* ============================================
   Scrollbar Styling
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-dark);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ============================================
   Selection Color
   ============================================ */
::selection {
    background: rgba(108, 60, 225, 0.4);
    color: #fff;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .main-navigation, .refresh-btn-wrap, .back-to-top, .site-footer { display: none; }
    body { background: #fff; color: #000; }
    body::before { display: none; }
    .section-card, .result-section, .content-section {
        background: #fff;
        border: 1px solid #ccc;
        box-shadow: none;
        color: #000;
    }
    .site-header { background: #fff; border-bottom: 2px solid #000; }
    .site-header .main-title a { -webkit-text-fill-color: #000; color: #000; }
    .round-number { color: #000; text-shadow: none; animation: none; }
    .results-table .result-col { color: #000; }
    p, li, td { color: #333; }
}
