* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #0a0a0a; color: #fff; line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; }
a { color: #fff; text-decoration: none; }
.navbar { display: flex; justify-content: space-between; align-items: center; background: #0a0a0a; border-bottom: 2px solid #cc0000; padding: 1rem 2rem; position: sticky; top: 0; z-index: 100; }
.navbar-brand a { color: #cc0000; text-decoration: none; font-size: 1.5rem; font-weight: 900; text-transform: uppercase; letter-spacing: 2px; }
.navbar-brand a small { font-size: 0.8rem; color: #888; font-weight: 400; text-transform: none; letter-spacing: 0.5px; margin-left: 4px; }
.navbar-links { list-style: none; display: flex; align-items: center; gap: 1.5rem; }
.navbar-links a { color: #fff; text-decoration: none; font-weight: 600; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.5px; }
.navbar-links a:hover { color: #cc0000; }
.nav-logout { background: none; border: none; color: #fff; cursor: pointer; font-weight: 600; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.5px; }
.nav-logout:hover { color: #cc0000; }
.user-badge { background: #cc0000; padding: 0.25rem 0.75rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; border: none; color: #fff; cursor: pointer; font-family: inherit; }
.navbar-utils { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.nav-login { color: #fff; font-weight: 600; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.5px; }
.user-menu { position: relative; display: inline-flex; align-items: center; }
.user-menu-dropdown { display: none; position: absolute; top: 100%; right: 0; z-index: 200; background: #111; border: 1px solid #222; padding: 0.5rem; margin-top: 0.25rem; }
.user-menu-dropdown.show { display: block; }
.user-menu-dropdown .nav-logout { white-space: nowrap; }
.container { max-width: 1200px; margin: 0 auto; padding: 2rem; flex: 1; }
.hero { text-align: center; padding: 4rem 2rem; background: linear-gradient(180deg, #0a0a0a 0%, #1a0505 100%); border-bottom: 2px solid #cc0000; margin-bottom: 2rem; }
.hero h1 { font-size: 2.5rem; margin-bottom: 0.5rem; color: #fff; text-transform: uppercase; font-weight: 900; letter-spacing: 2px; }
.hero p { font-size: 1.1rem; color: #777; margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 1px; }
.hero-actions, .header-actions { display: flex; gap: 1rem; justify-content: center; }
.section { margin-bottom: 2.5rem; }
.section h2 { margin-bottom: 1rem; font-size: 1.4rem; text-transform: uppercase; font-weight: 700; border-left: 3px solid #cc0000; padding-left: 0.75rem; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }

.legal h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.legal h2 { font-size: 1.2rem; margin-top: 2rem; margin-bottom: 0.5rem; color: #cc0000; border-left: none; padding-left: 0; text-transform: none; }
.legal p, .legal li { color: #999; line-height: 1.8; }
.legal ul { padding-left: 1.5rem; margin: 0.5rem 0; }
.legal li { margin-bottom: 0.25rem; }
.legal a { color: #cc0000; text-decoration: underline; }
.legal-date { margin-bottom: 2rem; font-size: 0.85rem; color: #666; }

.footer-links { margin-top: 0.5rem; font-size: 0.8rem; text-align: center; }
.footer-links a { color: #888; }
.footer-links a:hover { color: #cc0000; }
.footer-links-sep { color: #333; margin: 0 0.5rem; }
.card { background: #111; border: 1px solid #222; border-radius: 0; padding: 1.5rem; text-decoration: none; color: inherit; transition: all 0.2s; display: block; }
.card:hover { border-color: #cc0000; background: #1a0505; }
.card h3 { margin-bottom: 0.5rem; text-transform: uppercase; font-weight: 700; }
.card p { color: #777; font-size: 0.9rem; }
.card .card-meta { display: flex; justify-content: space-between; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #222; }
.btn { display: inline-block; padding: 0.6rem 1.2rem; border: 2px solid #cc0000; color: #cc0000; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; transition: all 0.2s; background: transparent; border-radius: 0; cursor: pointer; text-decoration: none; }
.btn:hover { background: #cc0000; color: #fff; }
.btn-primary { background: #cc0000; border-color: #cc0000; color: #fff; }
.btn-primary:hover { background: #ff0000; border-color: #ff0000; color: #fff; }
.btn-secondary { background: transparent; border: 2px solid #cc0000; color: #cc0000; }
.btn-outline { background: transparent; border: 2px solid #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: #000; }
.btn-sm { padding: 0.3rem 0.6rem; font-size: 0.75rem; line-height: 1.2; height: 28px; }
.btn-danger { background: #cc0000; border: 2px solid #cc0000; color: #fff; line-height: 1.2; padding: 0.3rem 0.6rem; }
.btn-block { display: block; width: 100%; }
.btn-warning { background: transparent; border: 2px solid #cc4400; color: #cc4400; }
.btn-warning:hover { background: #cc4400; color: #fff; }
.page-header { margin-bottom: 1.5rem; border-bottom: 1px solid #222; padding-bottom: 1rem; }
.page-header-row { display: flex; justify-content: space-between; align-items: center; }
.page-header-label { font-size: 1.2rem; font-weight: 700; text-transform: uppercase; }
.page-header-title { display: flex; align-items: center; gap: 1rem; }
.table-wrap { overflow-x: auto; background: #111; border: 1px solid #222; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid #222; }
.table th { background: #0a0a0a; color: #cc0000; font-size: 0.8rem; text-transform: uppercase; font-weight: 700; letter-spacing: 1px; }
.table a { color: #cc0000; text-decoration: none; }
.table a:hover { color: #fff; }
.wf { color: #fff !important; }
.row-actions { white-space: nowrap; }
.row-actions form { display: inline; }
.row-actions > * + * { margin-left: 0.5rem; }
.text-center { text-align: center; color: #777; padding: 2rem !important; }
.avatar-sm { width: 48px; height: 48px; border-radius: 0; object-fit: cover; border: 2px solid #cc0000; }
.avatar-lg { width: 80px; height: 80px; border-radius: 0; object-fit: cover; border: 2px solid #cc0000; }
.avatar-placeholder { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: #cc0000; color: #fff; font-weight: 700; }
.badge { display: inline-block; padding: 0.2rem 0.6rem; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-draft { background: #444; color: #fff; }
.badge-qualifying { background: #cc4400; color: #fff; }
.badge-racing { background: #cc0000; color: #fff; }
.badge-finished { background: #333; color: #fff; }
.badge-cancelled { background: #222; color: #666; }
.badge-hidden { background: #222; color: #666; }
.badge-number { background: #1a1a2e; color: #ffcc00; border: 1px solid #554400; font-size: 0.75rem; }
.driver-number-name { color: #cc0000; font-weight: 700; font-family: monospace; font-size: 1.1rem; }
.badge-warning { background: #cc4400; color: #fff; }
.badge-danger { background: #cc0000; color: #fff; }
.badge-success { background: #1a4a1a; color: #a0ffa0; }
.badge-officer { background: #2e1a4a; color: #e0a0ff; border: 1px solid #4a2a6a; }
.form-card { background: #111; border: 1px solid #222; padding: 2rem; max-width: 600px; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 0.4rem; font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.5px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.7rem 0.9rem; background: #0a0a0a; border: 1px solid #222; color: #fff; box-sizing: border-box; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #cc0000; }
.form-group input[type="number"] { border-width: 1px; font-size: inherit; text-align: center; line-height: normal; }
.form-group input[type="number"]:focus { border-color: #cc0000; }
.form-group textarea { font-family: inherit; resize: vertical; min-height: 60px; }
.form-control { width: 100%; padding: 0.7rem 0.9rem; background: #0a0a0a; border: 1px solid #222; color: #fff; box-sizing: border-box; }
.form-fieldset { border: 1px solid #222; padding: 1rem; margin-bottom: 1.25rem; }
.form-fieldset legend { font-weight: 700; padding: 0 0.5rem; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.5px; }
.multi-select { max-height: 250px; overflow-y: auto; display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.75rem; }
.checkbox-group { display: flex; gap: 1.5rem; align-items: center; }
.checkbox-label { display: flex; align-items: center; gap: 0.5rem; }
.checkbox-label input[type="checkbox"] { width: 18px; height: 18px; accent-color: #cc0000; }
.checkbox-label span { font-weight: 600; }
.photo-preview { width: 80px; height: 80px; object-fit: cover; }
.auth-container { display: flex; justify-content: center; align-items: center; min-height: 70vh; }
.auth-box { background: #111; border: 1px solid #222; padding: 2.5rem; width: 100%; max-width: 380px; }
.auth-box h2 { margin-bottom: 1.5rem; text-align: center; text-transform: uppercase; font-weight: 800; letter-spacing: 2px; }
.alert-error { background: #cc0000; color: #fff; padding: 0.75rem; margin-bottom: 1rem; text-align: center; text-transform: uppercase; font-weight: 700; }
.alert-info { background: #222; color: #fff; padding: 0.75rem; margin-bottom: 1rem; text-align: center; text-transform: uppercase; font-weight: 700; border: 1px solid #cc0000; }
.mt-2 { margin-top: 1rem; }
.mb-2 { margin-bottom: 1rem; }

.score-form { background: #111; border: 1px solid #222; padding: 1.5rem; margin-bottom: 1rem; }
.score-form h4 { margin-bottom: 1rem; color: #cc0000; text-transform: uppercase; font-weight: 700; }
.empty-state { text-align: center; padding: 4rem; color: #777; text-transform: uppercase; letter-spacing: 1px; }
.drivers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.driver-card { background: #111; border: 1px solid #222; padding: 1.5rem; }
.driver-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.driver-info { flex: 1; }
.driver-card h3 { margin-bottom: 0.25rem; text-transform: uppercase; font-weight: 700; font-size: 1.2rem; }
.driver-vehicle { color: #777; font-size: 0.9rem; }
.driver-team { color: #555; font-size: 0.8rem; margin-top: 0.15rem; }
.driver-avatar-card { width: 130px; height: 130px; object-fit: cover; border: 2px solid #cc0000; flex-shrink: 0; }
.driver-card h4 { color: #cc0000; margin: 1rem 0 0.5rem; font-size: 0.9rem; text-transform: uppercase; }
.rankings-section { background: #111; border: 1px solid #222; padding: 1.5rem; margin-bottom: 2rem; }
.rankings-section h3 { color: #cc0000; margin-bottom: 1rem; text-align: center; text-transform: uppercase; font-weight: 700; letter-spacing: 2px; }
.podium { display: flex; justify-content: center; align-items: flex-end; gap: 0.5rem; margin: 1rem 0 2rem; }
.podium-place { text-align: center; padding: 1rem; min-width: 120px; }
.podium-place.first { min-height: 220px; order: 2; background: linear-gradient(180deg, #cc0000 0%, #990000 100%); }
.podium-place.second { min-height: 160px; order: 1; background: linear-gradient(180deg, #b0b0b0 0%, #777 100%); }
.podium-place.third { min-height: 120px; order: 3; background: linear-gradient(180deg, #cd7f32 0%, #8b4513 100%); }
.podium-place .place-num { font-size: 2rem; font-weight: 700; }
.podium-place .driver-name { font-weight: 600; margin-top: 0.5rem; }
.podium-place.first .driver-name { font-size: 1.1rem; }
.rankings-list { background: #111; border: 1px solid #222; padding: 1.5rem; margin-bottom: 2rem; }
.rankings-list h4 { color: #cc0000; margin-bottom: 1rem; text-align: center; text-transform: uppercase; font-weight: 700; letter-spacing: 2px; }
.rankings-list ol { list-style: none; padding: 0; max-width: 400px; margin: 0 auto; }
.rankings-list li { padding: 0.5rem 0.75rem; border-bottom: 1px solid #222; display: flex; align-items: center; font-size: 0.95rem; }
.rankings-list li:last-child { border-bottom: none; }
.rankings-list .pos { color: #888; min-width: 2.5rem; font-weight: 700; }

.bracket-wrap { display: flex; gap: 1.5rem; overflow-x: auto; padding: 1rem 0; align-items: flex-start; }
.bracket-col { flex-shrink: 0; width: 200px; }
.bracket-col-third { border-left: 2px dashed #444; padding-left: 1rem; }
.col-title { font-size: 0.75rem; color: #cc0000; text-align: center; margin-bottom: 0.75rem; text-transform: uppercase; font-weight: 700; letter-spacing: 1px; }
.match { background: #111; border: 1px solid #222; padding: 0.5rem; margin-bottom: 0.75rem; }
.match-done { border-left: 3px solid #cc0000; }
.match-player { display: flex; justify-content: space-between; align-items: center; padding: 0.2rem 0; font-size: 0.85rem; }
.match-player.winner .player-name { color: #cc0000; }
.match-vs { text-align: center; font-size: 0.65rem; color: #444; padding: 0.1rem 0; }
.win-mark { font-size: 0.65rem; background: #cc0000; padding: 0.1rem 0.3rem; font-weight: 700; }
.match-btns { display: flex; gap: 0.25rem; margin-top: 0.4rem; }

.battle-card { display: flex; align-items: center; justify-content: center; gap: 1rem; padding: 2rem; background: #111; border: 1px solid #222; margin-bottom: 1.5rem; }
.driver-side { text-align: center; flex: 1; }
.driver-side.left { text-align: right; }
.driver-side.right { text-align: left; }
.driver-avatar { width: 100px; height: 100px; object-fit: cover; border: 2px solid #cc0000; margin-bottom: 0.5rem; }
.vs-divider { font-size: 2rem; font-weight: 900; color: #cc0000; text-transform: uppercase; }
.winner-badge { display: inline-block; background: #cc0000; color: #fff; padding: 0.25rem 0.75rem; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; margin-top: 0.5rem; }
.help-text { text-align: center; color: #777; font-size: 0.85rem; margin-top: 0.75rem; text-transform: uppercase; }

.tabs { display: flex; gap: 0; border-bottom: 2px solid #333; margin-bottom: 1.5rem; list-style: none; padding: 0; }
.tabs li { padding: 0.75rem 1.5rem; cursor: pointer; color: #888; font-weight: 600; text-transform: uppercase; font-size: 0.85rem; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.15s; }
.tabs li:hover { color: #fff; }
.tabs li.tab-active { color: #cc0000; border-bottom-color: #cc0000; }

.car-thumb { width: 80px; height: 60px; object-fit: cover; border-radius: 4px; }
.car-select { margin-left: 0.5rem; padding: 0.2rem; font-size: 0.8rem; }
.preview-thumb { width: 120px; height: auto; border-radius: 4px; margin-bottom: 0.5rem; }
.badge-car { background: #1a1a2e; color: #e0e0ff; border: 1px solid #333; font-size: 0.75rem; }
.badge-power { background: #1a2e1a; color: #a0ffa0; border: 1px solid #2a4a2a; font-size: 0.75rem; }
.driver-car .badge { display: inline-block; margin-right: 0.25rem; }

.grid-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.grid-list .card { background: #111; border: 1px solid #222; border-radius: 6px; }
.grid-list .card-body { padding: 1rem; }
.grid-list .card-header-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.5rem; }
.grid-list .card-header-row h3 { margin: 0; font-size: 1rem; text-transform: uppercase; }
.grid-list .card-body p { margin: 0.25rem 0; font-size: 0.85rem; color: #ccc; }
.grid-list .card-actions { margin-top: 0.75rem; display: flex; gap: 0.5rem; }

.multi-select-row { display: flex; align-items: center; gap: 0.5rem; }
.multi-select-row select { margin-left: auto; }
.car-select-wrap { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.car-select { padding: 0.2rem; font-size: 0.8rem; }
.car-preview { width: 40px; height: 30px; flex-shrink: 0; }
.car-preview-img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; border: 1px solid #333; }

.driver-info-cell { display: flex; align-items: center; gap: 0.5rem; }
.driver-mini-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.champion-row { background: rgba(204, 0, 0, 0.08) !important; }
.champion-row td { border-bottom-color: #cc0000 !important; }

.badge-team { background: #1a1a2e; color: #ffcc00; border: 1px solid #554400; font-size: 0.75rem; }
.badge-city { background: #1a2e1a; color: #a0ffa0; border: 1px solid #2a4a2a; font-size: 0.75rem; }
.badge-category { background: #2e1a2e; color: #ffa0ff; border: 1px solid #4a2a4a; font-size: 0.75rem; }
.badge-eliminated { background: #2e1a1a; color: #ff8888; border: 1px solid #4a2a2a; font-size: 0.75rem; }
.badge-champion { background: #cc0000; color: #fff; }
.team-thumb { width: 60px; height: 60px; object-fit: cover; border-radius: 50%; }
.team-icon { width: 20px; height: 20px; object-fit: cover; border-radius: 50%; vertical-align: middle; margin-left: 0.25rem; }
.flag-thumb { width: 60px; height: 40px; object-fit: cover; border-radius: 3px; }
.flag-icon { width: 24px; height: 16px; object-fit: cover; vertical-align: middle; margin-right: 0.25rem; border-radius: 2px; }
.flag-icon-sm { width: 18px; height: 12px; object-fit: cover; vertical-align: middle; margin-right: 0.15rem; border-radius: 1px; }
.driver-meta { margin-top: 0.25rem; font-size: 0.8rem; color: #aaa; }
.driver-meta .badge { display: inline-block; margin-right: 0.25rem; }

.picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.5rem; max-height: 300px; overflow-y: auto; padding: 0.5rem; background: #0a0a0a; border: 1px solid #222; border-radius: 6px; }
.picker-item { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; padding: 0.75rem; background: #111; border: 2px solid #222; border-radius: 6px; cursor: pointer; transition: all 0.15s; text-align: center; }
.picker-item:hover { border-color: #444; background: #1a1a1a; }
.picker-item.picker-selected { border-color: #cc0000; background: #1a0a0a; }
.picker-item input { display: none; }
.card-link { color: #fff; text-decoration: none; }
.card-link:hover { color: #cc0000; }
.picker-thumb { width: 100%; height: 50px; object-fit: cover; border-radius: 3px; margin-bottom: 0.15rem; }
.picker-label { font-weight: 600; font-size: 0.85rem; color: #fff; line-height: 1.2; }
.picker-detail { font-size: 0.75rem; color: #888; }
.picker-none { justify-content: center; min-height: 60px; }
.picker-none .picker-label { color: #666; }

.section-title { margin: 1.5rem 0 0.75rem; font-size: 1rem; text-transform: uppercase; color: #cc0000; }

.ig-link { display: inline-flex; align-items: center; margin-left: 0.4rem; vertical-align: middle; }
.ig-icon { transition: transform 0.15s; display: block; }
.ig-link:hover .ig-icon { transform: scale(1.2); }

.detail-card { background: #111; border: 1px solid #222; border-radius: 6px; padding: 1.5rem; }
.detail-card-body { display: flex; gap: 1.5rem; align-items: flex-start; }
.detail-card-image { flex-shrink: 0; }
.detail-card-image img { max-width: 300px; max-height: 200px; object-fit: cover; border-radius: 6px; }
.detail-card-info { flex: 1; }
.detail-row { display: flex; padding: 0.75rem 0; border-bottom: 1px solid #1a1a1a; }
.detail-row:last-child { border-bottom: none; }
.detail-label { width: 120px; font-weight: 600; color: #888; text-transform: uppercase; font-size: 0.8rem; }
.detail-value { flex: 1; color: #fff; font-size: 0.95rem; }

.timing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.75rem; }
.timing-group { display: flex; flex-direction: column; }
.timing-group label { font-size: 0.75rem; text-transform: uppercase; color: #888; margin-bottom: 0.25rem; font-weight: 600; }
.timing-group input { padding: 0.6rem; background: #0a0a0a; border: 1px solid #222; color: #fff; text-align: center; }
.timing-group input:focus { outline: none; border-color: #cc0000; }

.info-text { color: #888; font-style: italic; margin: 1em 0; }
.gold { color: #ffd700; font-weight: 700; }
.silver { color: #c0c0c0; font-weight: 700; }
.bronze { color: #cd7f32; font-weight: 700; }
.best-time { font-size: 0.85rem; color: #cc0000; font-weight: 700; margin-top: 0.25rem; }
.podium-points { font-size: 0.75rem; color: #888; margin-top: 0.25rem; font-weight: 600; }
.category-link { color: #cc0000; text-decoration: none; }
.category-link:hover { text-decoration: underline; }
.driver-car { font-size: 0.8rem; color: #aaa; margin-top: 0.25rem; }
.race-cell { text-align: center; font-size: 0.85rem; vertical-align: middle; min-width: 100px; }
.race-cell-detail { font-size: 0.65rem; color: #888; white-space: nowrap; }
.race-best { background: rgba(204, 0, 0, 0.15) !important; }
.data-table th, .data-table td { border-right: 1px solid #222; padding: 0.75rem 1.25rem; }
.data-table th:last-child, .data-table td:last-child { border-right: none; }
.text-muted { color: #666; }

.entries-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1rem; }
.entry-card { background: #111; border: 1px solid #222; padding: 1rem; }
.entry-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.5rem; }
.entry-header h4 { text-transform: uppercase; font-size: 1rem; }
.entry-detail { color: #888; font-size: 0.85rem; }
.entry-times { margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid #222; }
.entry-times .time-row { display: flex; gap: 0.5rem; font-size: 0.8rem; color: #aaa; padding: 0.2rem 0; }
.entry-times .time-label { color: #666; min-width: 50px; }

.category-section { background: #111; border: 1px solid #222; padding: 1.5rem; margin-bottom: 1.5rem; }
.category-section h3 { color: #cc0000; margin-bottom: 1rem; text-transform: uppercase; font-weight: 700; }

footer { text-align: center; padding: 2rem; color: #444; border-top: 1px solid #222; margin-top: auto; }
.footer-contact { margin-bottom: 1rem; }
.footer-contact-title { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: #888; margin-bottom: 0.5rem; font-weight: 700; }
.footer-contact-item { font-size: 0.85rem; text-transform: none; letter-spacing: 0; margin: 0.2rem 0; }
.footer-contact-item a { color: #ccc; }
.footer-contact-item a:hover { color: #cc0000; }
.footer-copy { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: #444; }
.qr-btn { display: inline-flex; align-items: center; gap: 0.35rem; background: none; border: 1px solid #444; color: #888; padding: 0.3rem 0.6rem; border-radius: 4px; cursor: pointer; font-size: 0.8rem; margin-top: 0.5rem; transition: color 0.2s, border-color 0.2s; }
.qr-btn:hover { color: #cc0000; border-color: #cc0000; }
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 999; align-items: center; justify-content: center; }
.modal-content { background: #111; border: 1px solid #333; border-radius: 8px; padding: 2rem; text-align: center; max-width: 320px; position: relative; }
.modal-close { position: absolute; top: 0.5rem; right: 0.75rem; background: none; border: none; color: #888; font-size: 1.5rem; cursor: pointer; line-height: 1; }
.modal-close:hover { color: #cc0000; }
.qr-img { width: 250px; height: 250px; display: block; margin: 1rem auto; border-radius: 4px; }
.qr-url { color: #888; font-size: 0.85rem; margin-top: 0.5rem; }
.share-buttons { display: flex; gap: 0.5rem; justify-content: center; margin-top: 1rem; flex-wrap: wrap; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid #333; background: #1a1a1a; color: #888; cursor: pointer; transition: color 0.2s, border-color 0.2s, background 0.2s; text-decoration: none; font-size: 0.75rem; }
.share-btn:hover { color: #cc0000; border-color: #cc0000; background: #222; }
.share-btn-more { color: #666; }

.wa-link { display: inline-flex; align-items: center; gap: 0.35rem; text-decoration: none; }
.wa-icon { transition: transform 0.15s; display: block; }
.wa-link:hover .wa-icon { transform: scale(1.2); }

@media (max-width: 768px) {
  .container { padding: 1rem; }
  .navbar { padding: 0.75rem 1rem; flex-wrap: wrap; gap: 0.5rem; }
  .navbar-links { gap: 0.5rem; flex-wrap: wrap; width: 100%; padding-top: 0.25rem; border-top: 1px solid #222; order: 3; }
  .navbar-links a, .nav-logout, .nav-login { font-size: 0.75rem; }
  .navbar-brand a { font-size: 1.2rem; }
  .navbar-utils { gap: 0.5rem; order: 2; }
  .page-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .page-header-row { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .page-header-title { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .hero { padding: 2rem 1rem; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 0.9rem; }
  .drivers-grid { grid-template-columns: 1fr; }
  .driver-card { padding: 1rem; }
  .driver-header { flex-direction: column; align-items: center; text-align: center; }
  .driver-avatar-card { width: 80px; height: 80px; }
  .podium-place { min-width: 90px; padding: 0.75rem 0.5rem; }
  .podium-place.first { min-height: 160px; }
  .podium-place.second { min-height: 120px; }
  .podium-place.third { min-height: 90px; }
  .podium-place .place-num { font-size: 1.4rem; }
  .podium-place .driver-name { font-size: 0.8rem; }
  .bracket-wrap { gap: 0.75rem; }
  .bracket-col { width: 160px; }
  .match-player { font-size: 0.75rem; }
  .match-btns .btn-sm { font-size: 0.65rem; padding: 0.2rem 0.4rem; }
  .battle-card { flex-direction: column; gap: 0.5rem; padding: 1rem; }
  .driver-side.left, .driver-side.right { text-align: center; }
  .driver-avatar { width: 70px; height: 70px; }
  .vs-divider { font-size: 1.5rem; }
  .entries-grid { grid-template-columns: 1fr; }
  .timing-grid { grid-template-columns: repeat(2, 1fr); }
  .table th, .table td { padding: 0.5rem; font-size: 0.75rem; }
  .row-actions { flex-wrap: wrap; }
  .btn { padding: 0.5rem 0.8rem; font-size: 0.75rem; }
  .empty-state { padding: 2rem 1rem; }
  .form-card { max-width: none; }
}

@media (min-width: 769px) {
  .navbar-links { flex: 1; justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding: 0.5rem; }
  .navbar { padding: 0.5rem; }
  .navbar-links { gap: 0.5rem; }
  .navbar-links a, .nav-logout, .nav-login { font-size: 0.7rem; letter-spacing: 0; }
  .user-badge { font-size: 0.65rem; padding: 0.2rem 0.5rem; }
  .page-header h2 { font-size: 1.2rem; }
  .hero h1 { font-size: 1.4rem; }
  .podium { gap: 0.25rem; }
  .podium-place { min-width: 70px; padding: 0.5rem 0.25rem; }
  .podium-place.first { min-height: 130px; }
  .podium-place.second { min-height: 95px; }
  .podium-place.third { min-height: 70px; }
  .podium-place .place-num { font-size: 1.1rem; }
  .podium-place .driver-name { font-size: 0.7rem; }
  .bracket-col { width: 130px; }
  .bracket-wrap { gap: 0.5rem; }
  .timing-grid { grid-template-columns: 1fr; }
  .btn { padding: 0.4rem 0.6rem; font-size: 0.7rem; }
  .btn-sm { padding: 0.2rem 0.4rem; font-size: 0.65rem; }
}
