/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: #0f0f1a;
    min-height: 100vh;
}

/* Landing Page */
.landing-page {
    min-height: 100vh;
    background: #0f0f1a;
    color: white;
}

.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.landing-logo {
    font-size: 1.5em;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.landing-menu a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.landing-menu a:hover {
    color: #fff;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 2px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 2px;
}

.lang-switcher button {
    padding: 6px 12px;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-switcher button.active {
    background: rgba(102, 126, 234, 0.7);
    color: white;
}

.lang-switcher button:hover:not(.active) {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-switcher-app {
    background: rgba(0, 0, 0, 0.08);
}

.lang-switcher-app button {
    color: rgba(0, 0, 0, 0.4);
}

.lang-switcher-app button.active {
    background: #667eea;
    color: white;
}

.lang-switcher-app button:hover:not(.active) {
    color: #333;
    background: rgba(0, 0, 0, 0.06);
}

.btn-cabinet {
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cabinet:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.landing-hero {
    position: relative;
    flex-direction: column;
    padding-top: 100px;
    padding-bottom: 60px;
    gap: 48px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(180deg, rgba(6, 12, 30, .6), rgba(6, 12, 30, .86)),
                url('assets/dashboard-sports.webp') center / cover no-repeat;
    overflow: hidden;
}

.landing-hero::before {
    content: '';
    pointer-events: none;
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(102, 126, 234, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(118, 75, 162, 0.08) 0%, transparent 50%);
    animation: heroFloat 20s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-2%, -2%); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    width: 100%;
    padding: 0 20px;
}

.hero-content > .hero-title,
.hero-content > .hero-subtitle {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-dashboard-cards {
    text-align: left;
    margin: 28px 0;
    scroll-margin-top: 24px;
}

.hero-title {
    font-size: 3.2em;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #c4c4ff 50%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 40px;
}

.btn-hero {
    padding: 16px 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.6);
}

.btn-hero-outline {
    display: inline-block;
    padding: 16px 40px;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: #a8b8ff;
    margin-bottom: 28px;
    letter-spacing: 0.3px;
}

.hero-trust {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.hero-trust-num {
    font-size: 1.8em;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-trust-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-trust-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

.section-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.45);
    font-size: 1.1em;
    margin-top: -35px;
    margin-bottom: 50px;
}

.landing-features {
    padding: 80px 60px;
    background: #1a1a2e;
}

.section-title {
    text-align: center;
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 50px;
    color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.features-grid-6 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1100px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 35px 30px;
    transition: all 0.3s;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5em;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.2em;
    font-weight: 700;
    margin-bottom: 12px;
    color: #c4c4ff;
}

.feature-card p {
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

/* PDF Samples Section */
.landing-samples {
    padding: 80px 60px;
    background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
    text-align: center;
}

.samples-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.1em;
    margin-top: -30px;
    margin-bottom: 50px;
}

.samples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 36px;
    max-width: 1100px;
    margin: 0 auto;
}

.sample-card {
    text-align: center;
    transition: transform 0.3s;
}

.sample-card:hover {
    transform: translateY(-8px);
}

.sample-card h3 {
    font-size: 1.2em;
    font-weight: 700;
    color: #c4c4ff;
    margin-top: 20px;
    margin-bottom: 10px;
}

.sample-card p {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.6;
    max-width: 300px;
    margin: 0 auto;
}

/* PDF Preview Card */
.pdf-preview {
    background: #1e1e2e;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: box-shadow 0.3s;
}

.sample-card:hover .pdf-preview {
    box-shadow: 0 16px 48px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.pdf-header-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pdf-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.pdf-dot:nth-child(1) { background: #ff5f57; }
.pdf-dot:nth-child(2) { background: #febc2e; }
.pdf-dot:nth-child(3) { background: #28c840; }

.pdf-filename {
    margin-left: auto;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    font-family: monospace;
}

.pdf-body {
    padding: 20px;
    background: white;
    margin: 12px;
    border-radius: 6px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* PDF Document Title */
.pdf-mock-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pdf-logo-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    flex-shrink: 0;
}

.pdf-doc-title {
    font-size: 11px;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
}

.pdf-doc-sub {
    font-size: 9px;
    color: #999;
}

/* Mini Bracket (mirrors real app bracket) */
.pdf-body-bracket {
    padding: 14px;
    gap: 10px;
}

.mini-bracket-wrap {
    display: flex;
    align-items: stretch;
    gap: 28px;
    flex: 1;
    overflow: hidden;
}

.mini-round {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.mini-round-header {
    text-align: center;
    font-weight: 700;
    font-size: 7px;
    color: #667eea;
    padding: 3px 6px;
    background: white;
    border-radius: 4px;
    margin-bottom: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.mini-round-matches {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.mini-match-w {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
    padding: 2px 0;
}

.mini-match {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
}

.mini-slot {
    background: #f8f9fa;
    padding: 3px 5px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 7px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mini-slot.winner {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
    font-weight: 600;
}

.mini-slot.loser {
    background: #f8d7da;
    border-color: #dc3545;
    opacity: 0.6;
}

/* Mini bracket connector lines */
.mini-round:not(:last-child) .mini-match-w::after {
    content: '';
    position: absolute;
    right: -14px;
    top: calc(50% - 1px);
    width: 14px;
    height: 1px;
    background: #c8d0e0;
}

.mini-round:not(:last-child) .mini-match-w:nth-child(odd)::before {
    content: '';
    position: absolute;
    right: -14px;
    top: 50%;
    bottom: 0;
    width: 1px;
    background: #c8d0e0;
}

.mini-round:not(:last-child) .mini-match-w:nth-child(even)::before {
    content: '';
    position: absolute;
    right: -14px;
    top: 0;
    bottom: 50%;
    width: 1px;
    background: #c8d0e0;
}

.mini-round:not(:first-child) .mini-match::before {
    content: '';
    position: absolute;
    left: -15px;
    top: calc(50% - 1px);
    width: 15px;
    height: 1px;
    background: #c8d0e0;
}

.pdf-qr-mock {
    width: 32px;
    height: 32px;
    background: repeating-conic-gradient(#333 0% 25%, #fff 0% 50%) 50% / 5px 5px;
    border-radius: 2px;
    align-self: flex-start;
}

/* Results Table */
.pdf-results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 9px;
    flex: 1;
}

.pdf-results-table th {
    background: #667eea;
    color: white;
    padding: 4px 6px;
    text-align: left;
    font-weight: 600;
    font-size: 8px;
    text-transform: uppercase;
}

.pdf-results-table th:first-child {
    border-radius: 3px 0 0 0;
}

.pdf-results-table th:last-child {
    border-radius: 0 3px 0 0;
}

.pdf-results-table td {
    padding: 4px 6px;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
}

.pdf-results-table tr.res-gold { background: #fffde7; }
.pdf-results-table tr.res-silver { background: #f8f8f8; }
.pdf-results-table tr.res-bronze { background: #fff8e1; }

.res-medal {
    font-size: 10px;
    margin-right: 2px;
}

/* Report File List */
.pdf-report-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.report-file-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #667eea;
}

.report-file-item.muted {
    opacity: 0.6;
}

.report-file-icon {
    font-size: 14px;
    flex-shrink: 0;
}

.report-file-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.report-file-name {
    font-size: 9px;
    font-weight: 600;
    color: #333;
}

.report-file-size {
    font-size: 8px;
    color: #999;
}

.report-total {
    font-size: 9px;
    font-weight: 600;
    color: #667eea;
    text-align: center;
    padding: 4px 0;
    border-top: 1px dashed #e0e0e0;
}

.landing-stats {
    padding: 60px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    text-align: center;
}

.landing-stats .section-title {
    color: #fff;
    margin-bottom: 40px;
}

.landing-stats .stats-section {
    max-width: 900px;
    margin: 0 auto;
}

.landing-stats .stat-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.landing-stats .stat-number {
    font-size: 36px;
    background: linear-gradient(135deg, #667eea, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-stats .stat-label {
    color: rgba(255, 255, 255, 0.7);
}

/* How it Works Section */
.landing-how-it-works {
    padding: 80px 60px;
    background: linear-gradient(180deg, #0f0f1a 0%, #1a1a2e 100%);
}

.steps-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    max-width: 1100px;
    margin: 0 auto;
}

.step-card {
    flex: 1;
    max-width: 240px;
    text-align: center;
    position: relative;
    padding: 0 16px;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step-icon {
    font-size: 2.2em;
    margin-bottom: 14px;
}

.step-card h3 {
    font-size: 1.1em;
    font-weight: 700;
    color: #c4c4ff;
    margin-bottom: 10px;
}

.step-card p {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.6;
}

.step-connector {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.4), rgba(118, 75, 162, 0.4));
    margin-top: 52px;
    flex-shrink: 0;
}

/* Advantages Section */
.landing-advantages {
    padding: 80px 60px;
    background: #0f0f1a;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.advantage-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    transition: all 0.3s;
}

.advantage-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(102, 126, 234, 0.2);
}

.advantage-icon {
    font-size: 1.6em;
    flex-shrink: 0;
    margin-top: 2px;
}

.advantage-item h4 {
    font-size: 1em;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
}

.advantage-item p {
    font-size: 0.88em;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.5;
}

/* CTA Section */
.landing-cta {
    padding: 80px 60px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(118, 75, 162, 0.12) 100%);
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
}

.cta-content p {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 32px;
}

/* Footer */
.landing-footer {
    padding: 40px 60px 24px;
    background: #0a0a14;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.85em;
    margin-top: 6px;
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #667eea;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.85em;
}

.btn-back-landing {
    background: none;
    border: none;
    color: #667eea;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 15px;
    padding: 0;
}

.btn-back-landing:hover {
    color: #8a9af5;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    color: white;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Auth Container */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-box {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
}

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

.auth-header h1 {
    font-size: 2.5em;
    color: #667eea;
    margin-bottom: 10px;
}

.auth-header p {
    color: #666;
    font-size: 1.1em;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}

.test-info {
    margin-top: 20px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

/* Main App */
.main-app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #0f0f1a;
}

.app-header {
    background: white;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-left h1 {
    font-size: 1.5em;
    color: #333;
}

.role-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.role-badge.admin {
    background: #ffd700;
    color: #333;
}

.role-badge.manager {
    background: #667eea;
    color: white;
}

.header-right {
    display: flex;
    gap: 10px;
}

.nav-btn {
    padding: 10px 20px;
    background: transparent;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.nav-btn:hover,
.nav-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.nav-btn.nav-attention {
    background: #667eea;
    border-color: #8e9cff;
    color: white;
    animation: myCompetitionsPulse 2s ease-out infinite;
}

@keyframes myCompetitionsPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0); }
    15% { box-shadow: 0 0 0 0 rgba(102, 126, 234, .55); }
    75% { box-shadow: 0 0 0 9px rgba(102, 126, 234, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .nav-btn.nav-attention { animation: none; box-shadow: 0 0 0 3px rgba(102, 126, 234, .3); }
}

.btn-logout {
    padding: 10px 20px;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-logout:hover {
    background: #ee3344;
}

/* Content Area */
.content-area {
    flex: 1;
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.stats-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 13px;
    color: #888;
    margin-top: 6px;
    font-weight: 500;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: white;
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.section-header h2 {
    color: #333;
}

.personal-dashboard .section-header {
    flex-wrap: wrap;
    gap: 20px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 20px;
}

.dashboard-card {
    padding: 28px;
    background: #1b2235;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.dashboard-number {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.dashboard-card h3 {
    font-size: 16px;
    color: #fff;
}

.personal-dashboard .dashboard-hero {
    min-height: 250px;
    padding: 38px;
    background: linear-gradient(90deg, rgba(12, 18, 43, .92), rgba(12, 18, 43, .62) 55%, rgba(12, 18, 43, .2)), var(--dashboard-image, url('assets/dashboard-shared-sports.webp')) center 48% / cover;
    color: white;
    overflow: hidden;
}

.dashboard-hero .section-heading { flex-basis: 60%; }
.section-header.dashboard-hero h2 { color: white; font-size: clamp(28px, 4vw, 44px); margin-bottom: 12px; }
.dashboard-hero p { color: #e0e6ff; line-height: 1.7; max-width: 580px; }
.dashboard-hero .btn-primary { box-shadow: 0 6px 24px #0005; }
.dashboard-card { border-top: 3px solid #7988ed; }
.dashboard-card:nth-child(3n) { border-top-color: #26b49c; }
.dashboard-card:nth-child(3n + 2) { border-top-color: #e6ac4b; }
.dashboard-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 24px; margin-top: 28px; }
.dashboard-chart { background: #1b2235; padding: 28px; border-radius: 16px; box-shadow: 0 4px 22px #18264b0a; }
.dashboard-chart h3 { font-size: 19px; color: #fff; }
.dashboard-chart-body { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin: 26px 0; }
.dashboard-donut { width: 160px; height: 160px; flex-shrink: 0; border-radius: 50%; background: conic-gradient(#8e9cff var(--progress), #35415b 0); padding: 16px; }
.dashboard-donut > div { width: 100%; height: 100%; border-radius: 50%; background: #1b2235; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.dashboard-donut strong { font-size: 32px; color: #fff; }
.dashboard-donut span { font-size: 12px; color: #fff; }
.dashboard-legend { flex: 1; min-width: 160px; }
.dashboard-legend p { display: flex; align-items: center; gap: 8px; margin: 16px 0; color: #fff; font-size: 14px; }
.dashboard-legend strong { margin-left: auto; color: #fff; }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.legend-dot.done { background: #8e9cff; }
.legend-dot.remaining { background: #35415b; }
.dashboard-total { border-top: 1px solid #35415b; padding-top: 15px; }
.dashboard-progress { height: 7px; background: #35415b; border-radius: 8px; overflow: hidden; }
.dashboard-progress span { display: block; height: 100%; background: #8e9cff; }
.dashboard-chart-empty { margin-top: 12px; color: #fff; font-size: 13px; }
.user-background-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 210px; }
.shared-background-settings { background: #1b2235; color: white; padding: 28px; border-radius: 15px; }
.shared-background-settings p { margin: 12px 0 20px; }
.shared-background-preview { width: 100%; max-width: 1000px; aspect-ratio: 3 / 1; border-radius: 12px; object-fit: cover; display: block; margin-bottom: 20px; }
.user-background-controls label { position: relative; cursor: pointer; overflow: hidden; }
.user-background-controls input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }

.competition-details > .section-header,
.tournament-view > .section-header {
    gap: 16px;
    flex-wrap: wrap;
}

.section-heading {
    flex: 1 1 280px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.section-header > button {
    flex-shrink: 0;
    white-space: nowrap;
}

.section-header > .header-actions {
    flex-wrap: wrap;
    min-width: 0;
    max-width: 100%;
}

.section-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-select {
    padding: 10px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    color: #333;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
    min-width: 200px;
}

.filter-select:focus {
    outline: none;
    border-color: #667eea;
}

.search-input {
    padding: 10px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    color: #333;
    background: white;
    transition: border-color 0.3s;
    min-width: 200px;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
}

.btn-back {
    padding: 10px 20px;
    background: #f0f0f0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-back:hover {
    background: #e0e0e0;
}

/* Empty State */
.empty-state {
    background: white;
    padding: 60px 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.empty-state p {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 20px;
}

/* Competition Grid */
.competition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.competition-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.comp-delete-btn {
    margin-top: 10px;
}

.competition-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.competition-card h3 {
    color: #333;
    margin-bottom: 8px;
}

.comp-sport-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.comp-logo {
    max-height: 28px;
    border-radius: 4px;
}

.comp-sport-type {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.comp-external {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.comp-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    color: #666;
}

.comp-status {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.comp-status.draft {
    background: #fff4e6;
    color: #f57c00;
}

.comp-status.active {
    background: #e8f5e9;
    color: #2e7d32;
}

.comp-status.completed {
    background: #e3f2fd;
    color: #1565c0;
}

/* Category/Age/Gender Tabs */
.category-tabs,
.gender-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.category-tabs {
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 8px;
}

.category-tab,
.gender-tab {
    padding: 10px 24px;
    border: none;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    background: #f0f0f0;
    color: #666;
    transition: all 0.2s;
}

.category-tab.active {
    background: #667eea;
    color: white;
}

.category-tab:hover:not(.active) {
    background: #e0e0f0;
}

.gender-tab {
    border-radius: 8px;
    padding: 8px 20px;
    font-size: 13px;
}

.gender-tab.active {
    background: #764ba2;
    color: white;
}

.gender-tab:hover:not(.active) {
    background: #e8e0f0;
}

.category-meta {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-bottom: 10px;
}

.meta-tag {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 12px;
    background: #f0f0ff;
    color: #667eea;
    font-weight: 500;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.category-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    position: relative;
}

.category-completed {
    border: 2px solid #27ae60;
}

.category-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #27ae60;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.category-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.category-card h3 {
    color: #333;
    margin-bottom: 15px;
}

.category-stats {
    color: #666;
    margin-bottom: 15px;
}

.btn-secondary {
    padding: 10px 20px;
    background: #f0f0f0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    width: 100%;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
}

/* Tournament Bracket */
.bracket-container {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: auto;
    position: relative;
}

.bracket-zoom-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    position: sticky;
    left: 0;
    z-index: 10;
}

.zoom-btn {
    width: 36px;
    height: 36px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #f8f9fa;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #333;
}

.zoom-btn:hover:not(:disabled) {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.zoom-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.zoom-reset {
    font-size: 16px;
    margin-left: 4px;
}

.zoom-level {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    min-width: 44px;
    text-align: center;
}

.bracket {
    display: flex;
    align-items: stretch;
    gap: 60px;
    min-width: min-content;
    padding: 40px 20px;
}

.round {
    display: flex;
    flex-direction: column;
    min-width: 220px;
}

.round-header {
    text-align: center;
    font-weight: 700;
    color: #667eea;
    padding: 12px;
    background: white;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.round-matches {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.match-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
    padding: 4px 0;
}

/* Birinchi roundda juftliklar orasiga bo'shliq */
.round:first-child .match-wrapper:nth-child(even):not(:last-child) {
    margin-bottom: 16px;
}

.match {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    width: 100%;
}

.btn-undo-match {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    background: #e74c3c;
    color: white;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
    padding: 0;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 5;
}

.match:hover .btn-undo-match {
    opacity: 0.7;
}

.btn-undo-match:hover {
    opacity: 1 !important;
    transform: scale(1.2);
}

/* === Connector Lines Between Rounds === */

/* Right horizontal line from each match (all rounds except last) */
.round:not(:last-child) .match-wrapper::after {
    content: '';
    position: absolute;
    right: -30px;
    top: calc(50% - 1px);
    width: 30px;
    height: 2px;
    background: #c8d0e0;
}

/* Vertical connector: odd match (first of pair) - line goes down from center */
.round:not(:last-child) .match-wrapper:nth-child(odd)::before {
    content: '';
    position: absolute;
    right: -30px;
    top: 50%;
    bottom: 0;
    width: 2px;
    background: #c8d0e0;
}

/* Vertical connector: even match (second of pair) - line goes up to center */
.round:not(:last-child) .match-wrapper:nth-child(even)::before {
    content: '';
    position: absolute;
    right: -30px;
    top: 0;
    bottom: 50%;
    width: 2px;
    background: #c8d0e0;
}

/* Left horizontal entry line (all rounds except first) */
.round:not(:first-child) .match::before {
    content: '';
    position: absolute;
    left: -32px;
    top: calc(50% - 1px);
    width: 32px;
    height: 2px;
    background: #c8d0e0;
}

/* === Match Athlete Slots === */

.athlete-slot {
    background: #f8f9fa;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.athlete-slot.empty {
    border-style: dashed;
    color: #999;
    cursor: default;
}

.athlete-slot.active {
    border-color: #667eea;
    background: #f0f4ff;
}

.athlete-slot.active:hover {
    background: #e3edff;
    transform: translateX(3px);
}

.athlete-slot.winner {
    background: #d4edda;
    border-color: #28a745;
    font-weight: 600;
}

.athlete-slot.loser {
    background: #f8d7da;
    border-color: #dc3545;
    opacity: 0.6;
    cursor: default;
}

/* Drag-and-drop styles */
.athlete-slot[draggable="true"] {
    cursor: grab;
}

.athlete-slot[draggable="true"]:active {
    cursor: grabbing;
}

.athlete-slot.dragging {
    opacity: 0.4;
    border-color: #667eea;
    background: #e3edff;
}

.athlete-slot.drag-over {
    border-color: #28a745;
    background: #d4edda;
    box-shadow: 0 0 8px rgba(40, 167, 69, 0.4);
    transform: scale(1.02);
}

.athlete-name {
    flex: 1;
}

.seed {
    font-size: 12px;
    padding: 4px 8px;
    background: #e0e0e0;
    border-radius: 12px;
    color: #666;
}


/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal {
    background: white;
    border-radius: 15px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
}

.modal-large {
    max-width: 800px;
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: #333;
}

.close-btn {
    font-size: 30px;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.close-btn:hover {
    color: #333;
}

.modal-body {
    padding: 30px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Upload Area */
.upload-area {
    border: 2px dashed #e0e0e0;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    margin-bottom: 20px;
}

.btn-upload {
    padding: 12px 24px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
}

.btn-upload:hover {
    background: #5568d3;
}

/* Results */
.results-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
}

.result-place {
    font-size: 1.5em;
    font-weight: 700;
    color: #667eea;
    min-width: 80px;
    text-align: center;
}

.result-athlete {
    flex: 1;
    font-weight: 600;
    color: #333;
}

.result-stats {
    color: #666;
    font-size: 14px;
}

/* Top Placements Panel */
.placements-panel {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    min-width: 240px;
    z-index: 100;
}

.placements-panel h4 {
    margin-bottom: 12px;
    color: #333;
    font-size: 15px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 8px;
}

.placement-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    margin-bottom: 4px;
}

.placement-item.place-1 {
    background: #fff8e1;
    border-left: 3px solid #ffd700;
}

.placement-item.place-2 {
    background: #f5f5f5;
    border-left: 3px solid #c0c0c0;
}

.placement-item.place-3 {
    background: #fff3e0;
    border-left: 3px solid #cd7f32;
}

.placement-medal {
    font-size: 1.2em;
}

.placement-label {
    font-weight: 700;
    font-size: 12px;
    color: #666;
    min-width: 42px;
}

.placement-name {
    font-weight: 600;
    color: #333;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.btn-action {
    padding: 10px 20px;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-action-pdf {
    background: #e74c3c;
}

.btn-action-pdf:hover {
    background: #c0392b;
}

.btn-action-regen {
    background: #6c757d;
}

.btn-action-regen:hover {
    background: #5a6268;
}

.btn-action-start {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.btn-action-start:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653d8c 100%);
}

.btn-action-results {
    background: #28a745;
}

.btn-action-results:hover {
    background: #218838;
}

.btn-action-report {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: opacity 0.3s;
}

.btn-action-report:hover {
    opacity: 0.9;
}

/* Settings Tabs */
.competition-create-tabs {
    display: flex;
    gap: 8px;
    padding: 5px;
    margin-bottom: 24px;
    background: #f1f3f9;
    border-radius: 12px;
}

.competition-manual-fields {
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
}

.competition-create-tabs button {
    flex: 1;
    padding: 12px 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #555;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.competition-create-tabs button.active {
    background: #667eea;
    color: white;
}

.competition-create-tabs button:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.competition-create-tabs button:disabled {
    opacity: 0.6;
    cursor: wait;
}

.draw-results-modal {
    max-width: 1100px;
}

.draw-results-modal .users-table td {
    overflow-wrap: anywhere;
}

.draw-results-modal .users-table th:first-child,
.draw-results-modal .users-table td:first-child,
.draw-results-modal .users-table th:last-child,
.draw-results-modal .users-table td:last-child {
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
}

.settings-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.org-sport-options { display: grid; gap: 10px; max-height: 280px; overflow-y: auto; margin: 12px 0; }
.org-sport-options label { display: flex; align-items: center; gap: 10px; margin: 0; }
.org-sport-options input[type="checkbox"] { width: auto; margin: 0; }

.settings-tab {
    flex: 1;
    padding: 14px 24px;
    border: none;
    background: white;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
}

.settings-tab:hover {
    background: #f5f7ff;
    color: #333;
}

.settings-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: #f5f7ff;
}

/* Users Table */
.users-table-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
}

.users-table th,
.users-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.users-table th {
    background: #f8f9fa;
    font-weight: 700;
    color: #333;
    font-size: 13px;
    text-transform: uppercase;
}

.users-table tr:hover {
    background: #f5f7ff;
}

.status-active {
    color: #28a745;
    font-weight: 600;
}

.status-inactive {
    color: #dc3545;
    font-weight: 600;
}

.btn-sm {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    margin-right: 4px;
}

.btn-edit {
    background: #667eea;
    color: white;
}

.btn-edit:hover {
    background: #5568d3;
}

.btn-delete {
    background: #dc3545;
    color: white;
}

.btn-delete:hover {
    background: #c82333;
}

/* Responsive */
@media (max-width: 768px) {
    .app-header {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }

    .header-right {
        width: 100%;
        flex-wrap: wrap;
    }

    .content-area {
        padding: 20px;
    }

    .stats-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .section-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .landing-menu {
        display: none;
    }

    .hero-title {
        font-size: 2em;
    }

    .hero-trust {
        gap: 20px;
    }

    .features-grid-6 {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .step-connector {
        width: 2px;
        height: 30px;
        margin: 0;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .bracket {
        gap: 40px;
    }

    .round {
        min-width: 170px;
    }

    .round:not(:last-child) .match-wrapper::after {
        right: -20px;
        width: 20px;
    }

    .round:not(:last-child) .match-wrapper:nth-child(odd)::before,
    .round:not(:last-child) .match-wrapper:nth-child(even)::before {
        right: -20px;
    }

    .round:not(:first-child) .match::before {
        left: -22px;
        width: 22px;
    }

    .competition-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }
}

/* Statistics Table */
.stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.stats-table thead {
    background: #f8f9fa;
}

.stats-table th,
.stats-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e9ecef;
    text-align: left;
}

.stats-table tbody tr:hover {
    background: #f1f3f5;
}

.stats-table tbody tr:first-child td {
    background: #fff9db;
    font-weight: 600;
}

.stats-table tbody tr:nth-child(2) td {
    background: #f1f3f5;
}

.stats-table tbody tr:nth-child(3) td {
    background: #fff4e6;
}
