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

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-bg: #0c1220;
    --card-bg: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-primary: #1a1a2e;
    --text-secondary: #6b7280;
    --text-light: rgba(255, 255, 255, 0.9);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 30px rgba(102, 126, 234, 0.4);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Open Sans', sans-serif;
    background: var(--primary-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 50% 20%, rgba(79, 172, 254, 0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px 40px;
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    margin-bottom: 35px;
    animation: fadeInDown 0.8s ease-out;
}

.main-title {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3.5rem);
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.nav-link {
    padding: 12px 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--text-light);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.nav-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.2);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.page {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    animation: fadeIn 0.6s ease-out;
}

.page h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 30px;
    text-align: center;
}

/* Submit Form */
.submit-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.team-autocomplete-wrapper {
    position: relative !important;
    z-index: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--text-light);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    position: relative;
}


datalist {
    position: absolute;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
}

.form-group select option {
    background: #1a1a2e;
    color: var(--text-light);
    padding: 10px;
}

/* Team Autocomplete Dropdown */
.team-autocomplete-wrapper {
    position: relative;
    z-index: 1;
}

.team-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 4px;
    width: 100%;
}

.team-option {
    padding: 12px 18px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.team-option:last-child {
    border-bottom: none;
}

.team-option:hover,
.team-option.selected {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.team-dropdown::-webkit-scrollbar {
    width: 8px;
}

.team-dropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.team-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.team-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1), var(--shadow-md);
    background: rgba(255, 255, 255, 0.15);
}

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

.submit-btn {
    width: 100%;
    padding: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.submit-btn:active {
    transform: translateY(0);
}

.message {
    margin-top: 20px;
    padding: 12px 18px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
}

.message.success {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.message.error {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Leaderboard */
.top-6-section {
    margin-bottom: 40px;
}

.top-6-section h3 {
    color: var(--text-light);
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.top-6-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.top-6-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow-sm);
}

.top-6-item .rank {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-light);
    min-width: 40px;
}

.top-6-item .team-name {
    flex: 1;
    font-weight: 600;
    color: var(--text-light);
}

.top-6-item .points {
    font-size: 1.2rem;
    font-weight: 700;
    color: #4ade80;
}

.full-table-section h3 {
    color: var(--text-light);
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.table-container {
    overflow-x: auto;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.leaderboard-table thead {
    background: rgba(255, 255, 255, 0.1);
}

.leaderboard-table th {
    padding: 16px;
    text-align: left;
    color: var(--text-light);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.leaderboard-table td {
    padding: 16px;
    color: var(--text-light);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.leaderboard-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.details-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-light);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.details-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.details-row {
    background: rgba(255, 255, 255, 0.03);
}

.team-details {
    padding: 20px;
}

.team-details h4 {
    color: var(--text-light);
    margin-bottom: 15px;
}

.matches-list {
    display: grid;
    gap: 15px;
}

.match-detail {
    background: rgba(255, 255, 255, 0.08);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.match-detail.dropped {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    text-decoration: line-through;
    opacity: 0.7;
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    color: var(--text-light);
    font-size: 1.1rem;
}

.dropped-badge {
    background: rgba(239, 68, 68, 0.3);
    color: #f87171;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
}

.match-stats {
    display: grid;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.match-total {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.1rem;
}

.screenshot-confirmed {
    color: #4ade80;
    font-weight: 600;
    margin-top: 5px;
}

.screenshot-missing {
    color: #f87171;
    font-weight: 600;
    margin-top: 5px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--text-light);
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #4facfe;
}

.notes {
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
}

/* Admin */
.admin-auth {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.admin-auth label {
    color: var(--text-light);
    font-weight: 600;
}

.admin-auth input {
    padding: 10px 15px;
    border: 2px solid var(--glass-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
}

.admin-btn {
    padding: 10px 20px;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.admin-section {
    margin-bottom: 40px;
}

.round-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.round-selector label {
    color: var(--text-light);
    font-weight: 600;
    font-size: 1rem;
}

.round-select {
    padding: 10px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--text-light);
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    min-width: 150px;
}

.round-select:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.round-select:focus {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1), var(--shadow-md);
}

.round-select option {
    background: #1a1a2e;
    color: var(--text-light);
}

.missing-count {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f87171;
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.missing-teams-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.missing-team-item {
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 10px;
    color: var(--text-light);
    font-weight: 500;
    transition: all 0.3s ease;
}

.missing-team-item:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    transform: translateY(-2px);
}

.admin-success {
    padding: 15px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    color: #4ade80;
    font-weight: 600;
    text-align: center;
    font-size: 1.1rem;
}

.export-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.export-section p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 1rem;
}

.export-btn {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(16, 185, 129, 0.2));
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #4ade80;
    font-weight: 700;
    padding: 12px 24px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.export-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), rgba(16, 185, 129, 0.3));
    border-color: rgba(34, 197, 94, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.export-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#export-status {
    margin-top: 15px;
}

/* Danger Zone Styles */
.danger-section {
    border: 2px solid rgba(239, 68, 68, 0.4) !important;
    background: rgba(239, 68, 68, 0.05) !important;
}

.danger-zone {
    background: rgba(239, 68, 68, 0.05);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.danger-warning {
    color: #f87171;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 12px;
    text-align: center;
}

.danger-hint {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 20px;
    text-align: center;
    font-style: italic;
}

.danger-btn {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.2));
    border: 2px solid rgba(239, 68, 68, 0.5);
    color: #f87171;
    font-weight: 700;
    padding: 12px 24px;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
}

.danger-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(220, 38, 38, 0.3));
    border-color: rgba(239, 68, 68, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.danger-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#clear-status {
    margin-top: 15px;
}

.match-code-setter {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

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

.match-code-setter label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.95rem;
}

.match-code-setter input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.match-code-setter input[type="text"]:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

#code-status {
    margin-top: 15px;
}

/* Code Page Styles */
.code-page {
    max-width: 600px;
    margin: 0 auto;
}

.code-auth {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
    text-align: center;
}

.code-auth label {
    display: block;
    margin-bottom: 12px;
    color: var(--text-light);
    font-weight: 600;
    font-size: 1rem;
}

.code-auth input[type="password"] {
    width: 100%;
    max-width: 300px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.code-auth input[type="password"]:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

.code-display {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.code-info {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.code-active {
    width: 100%;
}

.code-match {
    font-size: 1.2rem;
    color: var(--text-light);
    opacity: 0.8;
    margin-bottom: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.code-value {
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    margin: 30px 0;
    padding: 30px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(168, 85, 247, 0.3));
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    letter-spacing: 4px;
    font-family: 'Inter', sans-serif;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.code-updated {
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.6;
    margin-top: 20px;
}

.code-empty {
    padding: 40px;
    color: var(--text-light);
}

.code-empty p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.code-hint {
    font-size: 0.9rem;
    opacity: 0.7;
    font-style: italic;
}

/* FAQ Page Styles */
.faq-page {
    max-width: 900px;
    margin: 0 auto;
}

.faq-container {
    margin-top: 30px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
}

.faq-question h3 {
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.faq-answer {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.faq-answer > p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: var(--text-light);
}

.faq-steps {
    margin: 30px 0;
}

.faq-step {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border-left: 4px solid rgba(99, 102, 241, 0.6);
    transition: all 0.3s ease;
}

.faq-step:hover {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: rgba(99, 102, 241, 0.9);
    transform: translateX(5px);
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(168, 85, 247, 0.3));
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.step-content {
    flex: 1;
}

.step-content h4 {
    color: var(--text-light);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.step-content p {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.step-content ul {
    margin: 15px 0;
    padding-left: 25px;
    list-style-type: disc;
}

.step-content li {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.85);
}

.step-content strong {
    color: #fff;
    font-weight: 700;
}

.faq-note {
    margin: 30px 0;
    padding: 20px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    border-left: 4px solid rgba(99, 102, 241, 0.6);
}

.faq-note p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.faq-note a {
    color: #818cf8;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.faq-note a:hover {
    color: #a5b4fc;
}

.faq-warning {
    margin: 30px 0;
    padding: 20px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    border-left: 4px solid rgba(239, 68, 68, 0.6);
}

.faq-warning p {
    margin: 0 0 12px 0;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.faq-warning ul {
    margin: 12px 0 0 0;
    padding-left: 25px;
    list-style-type: disc;
}

.faq-warning li {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.85);
}

/* Rules Section Styles */
.rules-section {
    margin-top: 20px;
}

.rule-category {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border-left: 4px solid rgba(99, 102, 241, 0.6);
}

.rule-category h4 {
    color: var(--text-light);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rule-category h5 {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 20px 0 12px 0;
}

.rule-category ul {
    margin: 12px 0;
    padding-left: 25px;
    list-style-type: disc;
}

.rule-category li {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.rule-category ol {
    margin: 12px 0;
    padding-left: 25px;
    list-style-type: decimal;
}

.rule-category p {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.scoring-table-container {
    margin: 20px 0;
}

.scoring-table {
    width: 100%;
    max-width: 400px;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    margin: 15px 0;
}

.scoring-table thead {
    background: rgba(99, 102, 241, 0.2);
}

.scoring-table th {
    padding: 12px;
    text-align: left;
    color: var(--text-light);
    font-weight: 700;
    font-size: 0.95rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.scoring-table td {
    padding: 10px 12px;
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
}

.scoring-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

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

.elimination-points {
    margin-top: 20px;
}

.elimination-points ul {
    margin: 12px 0;
    padding-left: 25px;
}

/* Prizes Page Styles */
.prizes-page {
    max-width: 900px;
    margin: 0 auto;
}

.prizes-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.prize-category {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
}

.prize-category h3 {
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.prize-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    overflow: hidden;
}

.prize-table thead {
    background: rgba(255, 255, 255, 0.1);
}

.prize-table th {
    padding: 15px;
    text-align: left;
    color: var(--text-light);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.prize-table td {
    padding: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 600;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.prize-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.prize-gold {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 223, 0, 0.1)) !important;
    border-left: 4px solid #ffd700;
}

.prize-gold td {
    color: #ffd700;
    font-weight: 700;
    font-size: 1.2rem;
}

.prize-silver {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.15), rgba(211, 211, 211, 0.1)) !important;
    border-left: 4px solid #c0c0c0;
}

.prize-silver td {
    color: #c0c0c0;
    font-weight: 700;
    font-size: 1.15rem;
}

.prize-bronze {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.15), rgba(184, 115, 51, 0.1)) !important;
    border-left: 4px solid #cd7f32;
}

.prize-bronze td {
    color: #cd7f32;
    font-weight: 700;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .faq-step {
        flex-direction: column;
        gap: 15px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .step-content h4 {
        font-size: 1.1rem;
    }

    .scoring-table {
        max-width: 100%;
        font-size: 0.9rem;
    }

    .scoring-table th,
    .scoring-table td {
        padding: 8px 10px;
    }

    .rule-category {
        padding: 15px;
    }

    .rule-category h4 {
        font-size: 1.1rem;
    }

    .prizes-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .prize-category {
        padding: 20px;
    }

    .prize-table th,
    .prize-table td {
        padding: 12px;
        font-size: 1rem;
    }
}

/* OBS Widget Styles */
.widget-page {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Hide container background for widget */
body:has(.widget-page) .container {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.widget-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.widget-header h2 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.widget-content {
    min-height: 200px;
}

.widget-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.widget-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border-left: 4px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.widget-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.widget-item.widget-first {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 223, 0, 0.15));
    border-left-color: #ffd700;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.widget-rank {
    font-size: 1.5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.9);
    min-width: 40px;
    text-align: center;
}

.widget-item.widget-first .widget-rank {
    color: #ffd700;
    font-size: 1.8rem;
}

.widget-team {
    flex: 1;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin: 0 15px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.widget-points {
    font-size: 1.4rem;
    font-weight: 700;
    color: #4ade80;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.widget-item.widget-first .widget-points {
    color: #ffd700;
    font-size: 1.6rem;
}

.widget-empty,
.widget-error {
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

.widget-error {
    color: #f87171;
}

.admin-section h3 {
    color: var(--text-light);
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.admin-table thead {
    background: rgba(255, 255, 255, 0.1);
}

.admin-table th {
    padding: 12px;
    text-align: left;
    color: var(--text-light);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.admin-table td {
    padding: 12px;
    color: var(--text-light);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.delete-btn {
    padding: 6px 12px;
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.delete-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: translateY(-1px);
}

/* Loading and Error */
.loading {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    padding: 60px;
    font-family: 'Inter', sans-serif;
    position: relative;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 12px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error {
    text-align: center;
    font-size: 1.1rem;
    color: #f87171;
    padding: 40px;
    background: rgba(239, 68, 68, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    box-shadow: var(--shadow-md);
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: rgba(255, 255, 255, 0.8);
    animation: fadeIn 0.6s ease-out;
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 20px 15px 30px;
        overflow-x: hidden;
    }

    .page {
        padding: 25px 20px;
        overflow-x: hidden;
        position: relative;
    }

    .submit-form {
        max-width: 100%;
        overflow-x: hidden;
    }

    .form-group {
        overflow: visible;
        position: relative;
    }

    .team-autocomplete-wrapper {
        position: relative;
        overflow: visible;
        z-index: 1;
    }

    .team-dropdown {
        max-height: 180px;
        position: absolute !important;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px 15px 30px;
    }

    .main-title {
        font-size: 2rem;
    }

    .page {
        padding: 25px 20px;
    }

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

    .top-6-list {
        grid-template-columns: 1fr;
    }

    .table-container {
        overflow-x: scroll;
    }

    .admin-auth {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-auth input {
        width: 100%;
    }
}

/* Player Lookup */
.lookup-description {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
    font-size: 1rem;
}

.lookup-search-container {
    max-width: 600px;
    margin: 0 auto 30px;
}

.lookup-search-input {
    width: 100%;
    padding: 16px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    border: 2px solid var(--glass-border);
    border-radius: 16px;
    outline: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--text-light);
    box-shadow: var(--shadow-sm);
}

.lookup-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.lookup-search-input:focus {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1), var(--shadow-md);
    background: rgba(255, 255, 255, 0.15);
}

.lookup-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.lookup-player-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.lookup-player-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

.player-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.player-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 5px;
}

.player-epic {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 8px 0;
}

.player-epic strong {
    color: #00f2fe;
    font-weight: 700;
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    padding: 2px 0;
}

.player-team {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lookup-empty {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .lookup-results {
        grid-template-columns: 1fr;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

::selection {
    background: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}
