:root {
    --bg-page: #06120b;
    --bg-shell: #0a1b10;
    --bg-panel: rgba(11, 34, 20, 0.84);
    --bg-panel-solid: #0f2418;
    --bg-card: rgba(15, 40, 24, 0.92);
    --bg-card-strong: #123321;
    --line-soft: rgba(255, 255, 255, 0.08);
    --line-accent: rgba(130, 255, 177, 0.26);
    --text-main: #f6fff8;
    --text-soft: #c7e9d0;
    --text-muted: #86b396;
    --accent-lime: #80ff88;
    --accent-gold: #ffd54a;
    --accent-blue: #38bdf8;
    --danger: #f87171;
    --success: #4ade80;
    --warning: #fbbf24;
    --shadow-deep: 0 18px 45px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 0 30px rgba(128, 255, 136, 0.12);
    --glass-blur: blur(20px);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    overflow: hidden;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background:
        radial-gradient(circle at top, rgba(255, 213, 74, 0.08), transparent 28%),
        linear-gradient(180deg, #0b2215 0%, #06120b 55%, #041008 100%);
    color: var(--text-main);
}

body {
    min-height: 100vh;
}

a,
.nav-link {
    color: var(--accent-lime);
}

.page {
    position: relative;
    display: flex;
    min-height: 100vh;
    background:
        radial-gradient(circle at center, rgba(58, 250, 124, 0.08), transparent 0, transparent 48%, rgba(255, 255, 255, 0.04) 48.5%, transparent 49%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0, rgba(255, 255, 255, 0.035) 1px, transparent 1px, transparent 16.66%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0, rgba(255, 255, 255, 0.03) 1px, transparent 1px, transparent 20%),
        linear-gradient(180deg, #08170e 0%, #06120b 100%);
    background-size: auto, 100% 100%, 100% 100%, auto;
}

.sidebar {
    position: relative;
    z-index: 3;
    width: 300px;
    background: linear-gradient(180deg, rgba(10, 28, 17, 0.98), rgba(6, 18, 11, 0.98));
    border-right: 1px solid var(--line-soft);
    box-shadow: var(--shadow-deep);
    overflow: hidden;
}

.main-content {
    position: relative;
    z-index: 2;
    flex: 1;
    min-width: 0;
    height: 100vh;
    overflow: hidden;
}

.content {
    position: relative;
    height: 100vh;
    overflow: auto;
    padding: 2rem !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(128, 255, 136, 0.35) transparent;
}

.content::-webkit-scrollbar {
    width: 10px;
}

.content::-webkit-scrollbar-thumb {
    background: rgba(128, 255, 136, 0.22);
    border-radius: 999px;
}

.top-row {
    min-height: 4.5rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line-soft);
    background: rgba(255, 255, 255, 0.02);
}

.navbar-dark,
.navbar-brand {
    background: transparent !important;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main) !important;
    text-decoration: none;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-gold), #f59e0b);
    color: #102515;
    font-size: 0.78rem;
    font-weight: 900;
    box-shadow: 0 0 0 4px rgba(255, 213, 74, 0.1);
}

.brand-text {
    background: linear-gradient(135deg, #ffffff, var(--accent-lime));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar-toggler {
    appearance: none;
    cursor: pointer;
    width: 3rem;
    height: 3rem;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    z-index: 5;
}

.navbar-toggler::before {
    content: "";
    display: block;
    width: 1.5rem;
    height: 1.5rem;
    margin: 0.65rem auto;
    background:
        linear-gradient(var(--text-main), var(--text-main)) center 0.2rem / 100% 2px no-repeat,
        linear-gradient(var(--text-main), var(--text-main)) center 0.7rem / 100% 2px no-repeat,
        linear-gradient(var(--text-main), var(--text-main)) center 1.2rem / 100% 2px no-repeat;
}

.nav-scrollable {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 4.5rem);
    overflow: auto;
    padding: 1.1rem 0 1rem;
}

.nav-kicker {
    padding: 0 1.5rem 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    font-weight: 700;
}

.nav-item {
    padding: 0.2rem 0.9rem;
}

.nav-item ::deep .nav-link,
.nav-item .nav-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.8rem;
    height: 3.25rem;
    border-radius: 16px;
    padding: 0 1rem;
    color: var(--text-soft);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.nav-link-label {
    flex: 1;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-item ::deep .nav-link:hover,
.nav-item ::deep a.active {
    background: linear-gradient(135deg, rgba(128, 255, 136, 0.15), rgba(56, 189, 248, 0.1));
    color: var(--text-main) !important;
    transform: translateX(4px);
}

.bi {
    width: 1.15rem;
    height: 1.15rem;
    display: inline-block;
    background-size: cover;
    background-repeat: no-repeat;
}

.bi-house-door-fill-nav-menu {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2380ff88' viewBox='0 0 16 16'%3E%3Cpath d='M8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 2 8h1v6.5a.5.5 0 0 0 .5.5H6v-4a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v4h2.5a.5.5 0 0 0 .5-.5V8h1a.5.5 0 0 0 .354-.854z'/%3E%3C/svg%3E");
}

.bi-trophy-fill-nav-menu {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffd54a' viewBox='0 0 16 16'%3E%3Cpath d='M2 2.5A.5.5 0 0 1 2.5 2h11a.5.5 0 0 1 .5.5V4a3.5 3.5 0 0 1-3.465 3.5A4.002 4.002 0 0 1 9 10.874V12h1.5a.5.5 0 0 1 0 1H5.5a.5.5 0 0 1 0-1H7v-1.126A4.002 4.002 0 0 1 5.465 7.5A3.5 3.5 0 0 1 2 4zM3 3v1a2.5 2.5 0 0 0 2.313 2.495A4.013 4.013 0 0 1 5 5V3zm8 0v2c0 .525-.101 1.026-.284 1.495A2.5 2.5 0 0 0 13 4V3z'/%3E%3C/svg%3E");
}

.bi-gear-fill-nav-menu {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2338bdf8' viewBox='0 0 16 16'%3E%3Cpath d='M9.405 1.05c-.413-1.4-2.397-1.4-2.81 0l-.1.34a1.464 1.464 0 0 1-2.105.872l-.31-.17c-1.286-.7-2.686.701-1.987 1.987l.17.31c.446.82.023 1.841-.872 2.105l-.34.1c-1.4.413-1.4 2.397 0 2.81l.34.1c.895.264 1.318 1.285.872 2.105l-.17.31c-.699 1.286.701 2.686 1.987 1.987l.31-.17a1.464 1.464 0 0 1 2.105.872l.1.34c.413 1.4 2.397 1.4 2.81 0l.1-.34a1.464 1.464 0 0 1 2.105-.872l.31.17c1.286.699 2.686-.701 1.987-1.987l-.17-.31a1.464 1.464 0 0 1 .872-2.105l.34-.1c1.4-.413 1.4-2.397 0-2.81l-.34-.1a1.464 1.464 0 0 1-.872-2.105l.17-.31c.699-1.286-.701-2.686-1.987-1.987l-.31.17a1.464 1.464 0 0 1-2.105-.872zM8 10.5A2.5 2.5 0 1 1 8 5a2.5 2.5 0 0 1 0 5.5'/%3E%3C/svg%3E");
}

.bi-grid-fill-nav-menu {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2380ff88' viewBox='0 0 16 16'%3E%3Cpath d='M1 2.75A1.75 1.75 0 0 1 2.75 1h2.5A1.75 1.75 0 0 1 7 2.75v2.5A1.75 1.75 0 0 1 5.25 7h-2.5A1.75 1.75 0 0 1 1 5.25zm8 0A1.75 1.75 0 0 1 10.75 1h2.5A1.75 1.75 0 0 1 15 2.75v2.5A1.75 1.75 0 0 1 13.25 7h-2.5A1.75 1.75 0 0 1 9 5.25zm-8 8A1.75 1.75 0 0 1 2.75 9h2.5A1.75 1.75 0 0 1 7 10.75v2.5A1.75 1.75 0 0 1 5.25 15h-2.5A1.75 1.75 0 0 1 1 13.25zm8 0A1.75 1.75 0 0 1 10.75 9h2.5A1.75 1.75 0 0 1 15 10.75v2.5A1.75 1.75 0 0 1 13.25 15h-2.5A1.75 1.75 0 0 1 9 13.25z'/%3E%3C/svg%3E");
}

.bi-lock-fill-nav-menu {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23f87171' viewBox='0 0 16 16'%3E%3Cpath d='M8 1a2 2 0 0 0-2 2v3H5a2 2 0 0 0-2 2v5a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-1V3a2 2 0 0 0-2-2m1 5H7V3a1 1 0 0 1 2 0z'/%3E%3C/svg%3E");
}

.nav-footer {
    margin-top: auto;
    padding: 1rem 1rem 0;
    border-top: 1px solid var(--line-soft);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
}

.user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-lime), #22c55e);
    color: #082113;
    font-weight: 900;
    font-size: 0.8rem;
}

.user-name {
    color: var(--text-soft);
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-auth-link {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    margin-top: 0.85rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(248, 113, 113, 0.26);
    border-radius: 16px;
    color: #fecaca;
    text-decoration: none;
    font-weight: 700;
    background: rgba(248, 113, 113, 0.08);
}

.stadium-lights,
.pitch-lines,
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.stadium-lights {
    z-index: 0;
}

.stadium-beam {
    position: absolute;
    top: -18%;
    width: 34vw;
    height: 64vh;
    filter: blur(18px);
    opacity: 0.14;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));
}

.beam-left {
    left: -8vw;
    transform: rotate(-18deg);
}

.beam-right {
    right: -8vw;
    transform: rotate(18deg);
}

.pitch-lines {
    z-index: 1;
    opacity: 0.2;
    background:
        linear-gradient(90deg, transparent 49.5%, rgba(255, 255, 255, 0.16) 50%, transparent 50.5%),
        radial-gradient(circle at center, transparent 0 11%, rgba(255, 255, 255, 0.13) 11.2% 11.8%, transparent 12%);
}

.particles {
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: calc(4px + var(--i) * 2px);
    height: calc(4px + var(--i) * 2px);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    animation: float-particle calc(18s + var(--i) * 3s) ease-in-out infinite;
}

@keyframes float-particle {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.16; }
    50% { transform: translateY(-24px) scale(1.25); opacity: 0.28; }
}

.main-container,
.admin-container,
.leaderboard-container,
.match-predictions-container {
    position: relative;
    z-index: 3;
}

.main-container,
.admin-container {
    max-width: 1440px;
    margin: 0 auto;
}

.leaderboard-container,
.match-predictions-container {
    max-width: 1100px;
    margin: 0 auto;
}

.hero-header,
.leaderboard-header,
.admin-header,
.login-card,
.admin-card,
.match-card,
.rankings-table-wrapper,
.podium-container {
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.hero-header {
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
    padding: 2.6rem;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(120deg, rgba(255, 213, 74, 0.14), rgba(56, 189, 248, 0.08) 32%, rgba(128, 255, 136, 0.1) 100%),
        var(--bg-panel);
    box-shadow: var(--shadow-deep);
}

.hero-header::before {
    content: "";
    position: absolute;
    right: -4rem;
    top: -5rem;
    width: 18rem;
    height: 18rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 213, 74, 0.24), transparent 68%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-kicker,
.section-kicker,
.login-kicker {
    color: var(--accent-gold);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-title,
.display-title,
.admin-title,
.login-title {
    margin: 0.6rem 0 0;
    font-weight: 900;
    line-height: 1;
}

.title-glow,
.display-title,
.admin-title,
.login-title {
    background: linear-gradient(135deg, #ffffff 0%, #d7ffe1 48%, var(--accent-lime) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.title-glow {
    font-size: clamp(2.2rem, 6vw, 4.8rem);
    letter-spacing: 0.03em;
}

.hero-subtitle,
.header-subtitle,
.admin-subtitle,
.login-subtitle {
    max-width: 54rem;
    color: var(--text-soft);
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.75rem 0 1.2rem;
}

.hero-stat {
    min-width: 140px;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
}

.hero-stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--text-main);
}

.hero-stat-label {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.user-badge,
.admin-user-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    font-weight: 700;
}

.badge-icon {
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.74rem;
}

.badge-text {
    color: var(--text-main);
}

.admin-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent-gold), #f59e0b);
    color: #102515;
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.section-band {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 1.25rem;
}

.section-title-main,
.section-title {
    margin: 0.25rem 0 0;
    font-weight: 900;
    color: var(--text-main);
}

.section-title-main {
    font-size: clamp(1.5rem, 4vw, 2.4rem);
}

.section-title {
    font-size: 1.7rem;
}

.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 1.35rem;
}

.match-card,
.admin-card,
.rankings-table-wrapper,
.login-card {
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    box-shadow: var(--shadow-deep);
}

.match-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.match-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-accent);
    box-shadow: var(--shadow-deep), var(--shadow-glow);
}

.status-ribbon {
    position: absolute;
    right: 1rem;
    top: 1rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status-ribbon.open {
    background: rgba(74, 222, 128, 0.14);
    color: #bafcc8;
    border: 1px solid rgba(74, 222, 128, 0.24);
}

.status-ribbon.locked {
    background: rgba(248, 113, 113, 0.12);
    color: #fecaca;
    border: 1px solid rgba(248, 113, 113, 0.22);
}

.ribbon-icon {
    font-style: normal;
}

.match-card-body {
    padding: 4rem 1.35rem 1.35rem;
}

.match-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 1.35rem;
}

.date-badge,
.time-badge {
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line-soft);
    color: var(--text-soft);
    font-size: 0.8rem;
    font-weight: 700;
}

.score-interface {
    display: grid;
    grid-template-columns: minmax(72px, 1fr) minmax(120px, 156px) minmax(72px, 1fr);
    gap: 0.65rem;
    align-items: start;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    text-align: center;
    min-width: 0;
}

.team-crest {
    width: clamp(52px, 5vw, 72px);
    height: clamp(52px, 5vw, 72px);
    margin: 0 auto;
    flex: 0 0 auto;
}

.team-crest-sm {
    width: 42px;
    height: 42px;
    margin: 0;
}

.team-crest-xs {
    width: 18px;
    height: 18px;
    margin: 0;
}

.team-flag-shell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 3px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.03);
}

.team-flag-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-flag-fallback {
    color: var(--text-main);
    font-weight: 900;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
}

.team-name {
    margin: 0;
    font-size: clamp(0.9rem, 1vw + 0.55rem, 1.15rem);
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.22;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: normal;
}

.vs-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 1.15rem 0.85rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line-soft);
}

.vs-divider,
.result-label,
.prediction-label,
.lock-text,
.existing-prediction {
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.vs-divider {
    font-size: 0.8rem;
    color: var(--accent-gold);
    font-weight: 800;
}

.prediction-inputs,
.your-prediction,
.result-display,
.locked-message {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.input-group-scores {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.score-input,
.score-input-sm,
.form-input {
    border: 1px solid rgba(255, 255, 255, 0.11);
    background: rgba(4, 15, 8, 0.72);
    color: var(--text-main);
    border-radius: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.score-input:focus,
.score-input-sm:focus,
.form-input:focus {
    border-color: rgba(128, 255, 136, 0.42);
    box-shadow: 0 0 0 4px rgba(128, 255, 136, 0.08);
    background: rgba(4, 15, 8, 0.9);
}

.score-input {
    width: 62px;
    padding: 0.75rem 0.4rem;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 900;
}

.score-separator {
    color: var(--accent-gold);
    font-size: 1.2rem;
    font-weight: 900;
}

.submit-btn,
.view-all-btn,
.back-btn,
.admin-btn,
.action-btn {
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.submit-btn,
.admin-btn.recalculate,
.view-all-btn {
    background: linear-gradient(135deg, var(--accent-lime), #16a34a);
    color: #07220f;
    font-weight: 900;
    border-radius: 14px;
    box-shadow: 0 16px 24px rgba(34, 197, 94, 0.18);
}

.submit-btn {
    min-width: 126px;
    padding: 0.85rem 1.2rem;
}

.submit-btn:hover,
.view-all-btn:hover,
.admin-btn:hover,
.back-btn:hover,
.action-btn:hover {
    transform: translateY(-2px);
}

.submit-btn.btn-update {
    background: linear-gradient(135deg, var(--accent-gold), #f59e0b);
    color: #102515;
}

.submit-btn.add,
.submit-btn.create {
    padding: 0.85rem 1.25rem;
}

.result-score {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-main);
}

.result-label,
.prediction-label,
.existing-prediction,
.lock-text {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.prediction-score {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--accent-gold);
}

.score-earned {
    margin-top: 0.2rem;
    color: var(--accent-lime);
    font-weight: 800;
    font-size: 0.82rem;
}

.score-earned-button,
.score-value-button {
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2rem;
}

.score-earned-button:hover,
.score-value-button:hover,
.score-earned-button:focus-visible,
.score-value-button:focus-visible {
    opacity: 0.85;
}

.lock-icon {
    color: var(--danger);
    font-weight: 900;
}

.leaderboard-section {
    margin-top: 2rem;
}

.section-header,
.leaderboard-header,
.admin-header,
.rankings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.section-header,
.rankings-header {
    margin-bottom: 1rem;
}

.view-all-btn,
.back-btn,
.admin-btn.home {
    padding: 0.85rem 1.1rem;
    border-radius: 14px;
}

.view-all-btn,
.back-btn {
    border: 1px solid var(--line-soft);
}

.back-btn,
.admin-btn.home {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
}

.podium-wrapper {
    max-width: 100%;
}

.podium-container {
    padding: 1.25rem;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    background: var(--bg-panel);
}

.podium-stage {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1rem;
    min-height: 280px;
    margin-bottom: 1.2rem;
}

.podium-bar {
    position: relative;
    width: 190px;
    padding: 1rem;
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    overflow: hidden;
}

.podium-bar.winner {
    background: linear-gradient(180deg, #ffe588, #d6a600);
    color: #102515;
}

.podium-bar.second-place {
    background: linear-gradient(180deg, #e5eef7, #9ca3af);
    color: #102515;
}

.podium-bar.third-place {
    background: linear-gradient(180deg, #f0c59d, #b96f2a);
    color: #102515;
}

.podium-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 46%);
}

.podium-rank-label,
.podium-avatar,
.podium-name,
.podium-score,
.podium-predictions {
    position: relative;
    z-index: 1;
}

.podium-rank-label {
    margin-bottom: 0.35rem;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.podium-avatar {
    margin-bottom: 0.55rem;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.podium-name {
    text-align: center;
    font-weight: 800;
}

.podium-score {
    font-size: 1.45rem;
    font-weight: 900;
}

.podium-predictions {
    font-size: 0.78rem;
    opacity: 0.8;
}

.podium-placeholder {
    width: 190px;
}

.empty-podium,
.empty-state,
.loader,
.admin-loading,
.error-content {
    text-align: center;
    padding: 2.5rem 1rem;
}

.empty-icon,
.error-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.5rem;
    min-height: 4.5rem;
    border-radius: 50%;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.06);
    color: var(--accent-gold);
    font-weight: 900;
    text-transform: uppercase;
}

.rankings-count {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.rankings-table-wrapper {
    overflow: hidden;
}

.rankings-table,
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.rankings-table th,
.admin-table th {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-align: left;
}

.rankings-table td,
.admin-table td {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.rankings-table tbody tr:hover,
.admin-table tbody tr:hover {
    background: rgba(128, 255, 136, 0.06);
}

.rank-col,
.preds-col {
    width: 110px;
    text-align: center;
}

.score-col {
    width: 120px;
    text-align: right;
}

.player-info,
.team-table-item,
.team-preview {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.team-preview {
    margin-top: 0.55rem;
}

.team-preview-label {
    color: var(--text-muted);
    font-size: 0.76rem;
}

.player-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(128, 255, 136, 0.14);
    color: var(--accent-lime);
    font-weight: 900;
    font-size: 0.72rem;
}

.player-name,
.team-cell,
.admin-username {
    color: var(--text-main);
    font-weight: 700;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    font-weight: 900;
}

.rank-badge.gold {
    background: rgba(255, 213, 74, 0.2);
    color: var(--accent-gold);
}

.rank-badge.silver {
    background: rgba(226, 232, 240, 0.16);
    color: #e2e8f0;
}

.rank-badge.bronze {
    background: rgba(240, 165, 113, 0.16);
    color: #f0a571;
}

.rank-number {
    color: var(--text-muted);
    font-weight: 700;
}

.rank-gold {
    background: linear-gradient(90deg, rgba(255, 213, 74, 0.08), transparent) !important;
}

.rank-silver {
    background: linear-gradient(90deg, rgba(226, 232, 240, 0.07), transparent) !important;
}

.rank-bronze {
    background: linear-gradient(90deg, rgba(240, 165, 113, 0.08), transparent) !important;
}

.score-value {
    color: var(--accent-gold);
    font-weight: 900;
    font-size: 1.1rem;
}

.hero-subtitle {
    margin: 1rem 0 0;
    max-width: 52rem;
    color: var(--text-soft);
    font-size: 1.02rem;
    line-height: 1.7;
}

.scoring-rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.scoring-rule-card,
.scoring-example-card {
    overflow: hidden;
}

.scoring-rule-body {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.scoring-rule-body h3,
.scoring-example-name,
.scoring-example-total {
    margin: 0;
    color: var(--text-main);
}

.scoring-rule-body p,
.scoring-example-line,
.scoring-example-note {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.7;
}

.scoring-rule-points {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 213, 74, 0.14);
    border: 1px solid rgba(255, 213, 74, 0.24);
    color: var(--accent-gold);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.scoring-example-summary {
    margin-bottom: 1.1rem;
    color: var(--text-main);
    font-size: 1.05rem;
    font-weight: 700;
}

.scoring-example-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 1rem;
}

.scoring-example-player {
    padding: 1.15rem;
    border: 1px solid var(--line-soft);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
}

.scoring-example-name {
    margin-bottom: 0.85rem;
    font-size: 1.05rem;
    font-weight: 800;
}

.scoring-example-line + .scoring-example-line {
    margin-top: 0.45rem;
}

.scoring-example-total {
    margin-top: 0.9rem;
    color: var(--accent-gold);
    font-size: 1.1rem;
    font-weight: 900;
}

.scoring-example-note {
    margin-top: 1.2rem;
}

.score-breakdown-overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(2, 8, 4, 0.62);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.score-breakdown-dialog {
    width: min(100%, 38rem);
    max-height: min(88vh, 52rem);
    border: 1px solid var(--line-soft);
    border-radius: 24px;
    background: var(--bg-card);
    box-shadow: var(--shadow-deep), var(--shadow-glow);
    overflow-x: hidden;
    overflow-y: auto;
}

.user-score-card-dialog {
    width: min(100%, 56rem);
    max-height: min(88vh, 56rem);
    border: 1px solid var(--line-soft);
    border-radius: 24px;
    background: var(--bg-card);
    box-shadow: var(--shadow-deep), var(--shadow-glow);
    overflow-x: hidden;
    overflow-y: auto;
}

.user-score-card-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 1.2rem 0;
    background: var(--bg-card);
}

.user-score-card-dialog .prediction-board-card {
    margin-bottom: 0;
    background: var(--bg-card);
}

.user-score-card-dialog .card-header-custom,
.user-score-card-dialog .card-body-custom {
    background: var(--bg-card);
}

.user-score-card-dialog .prediction-table-shell {
    background: transparent;
}

.user-score-card-dialog .table {
    --bs-table-color: #f6fff8;
    --bs-table-bg: rgba(7, 21, 12, 0.88);
    --bs-table-border-color: rgba(130, 255, 177, 0.12);
    --bs-table-striped-bg: rgba(255, 255, 255, 0.02);
    --bs-table-striped-color: #f6fff8;
    --bs-table-active-bg: rgba(128, 255, 136, 0.08);
    --bs-table-active-color: #f6fff8;
    --bs-table-hover-bg: rgba(128, 255, 136, 0.06);
    --bs-table-hover-color: #f6fff8;
}

.user-score-card-dialog .rankings-table td,
.user-score-card-dialog .rankings-table th,
.user-score-card-dialog .prediction-board-teams,
.user-score-card-dialog .date-cell,
.user-score-card-dialog .rankings-count,
.user-score-card-dialog .card-title {
    color: #f6fff8;
}

.user-score-overlay {
    padding: 1rem 1rem 1rem 20rem;
}

.score-breakdown-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 1.2rem 0.8rem;
}

.score-breakdown-title {
    margin: 0.3rem 0 0;
    color: var(--text-main);
    font-size: 1.3rem;
    font-weight: 900;
}

.score-breakdown-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: 1px solid var(--line-soft);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    font-weight: 800;
    font-size: 1.7rem;
    line-height: 1;
}

.score-breakdown-summary,
.score-breakdown-rows {
    padding: 0 1.2rem;
}

.score-breakdown-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: stretch;
    margin-bottom: 1rem;
}

.score-breakdown-pill {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--line-soft);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    font-size: 0.84rem;
    font-weight: 700;
}

.score-breakdown-score-card {
    min-width: 150px;
    min-height: 86px;
    text-align: center;
}

.score-breakdown-pill-label {
    color: var(--text-main);
    font-size: 0.84rem;
    font-weight: 800;
}

.score-breakdown-pill-value {
    margin-top: 0.4rem;
    color: var(--text-main);
    font-size: 1.55rem;
    font-weight: 900;
    line-height: 1.1;
}

.score-breakdown-total-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 150px;
    margin-left: auto;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(128, 255, 136, 0.24);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(128, 255, 136, 0.16), rgba(255, 213, 74, 0.12));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.score-breakdown-total-label {
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.score-breakdown-total-value {
    margin-top: 0.2rem;
    color: var(--accent-lime);
    font-size: 1.85rem;
    font-weight: 900;
    line-height: 1;
}

.score-breakdown-rows {
    display: grid;
    gap: 0.85rem;
}

.score-breakdown-row {
    padding: 1rem;
    border: 1px solid var(--line-soft);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
}

.score-breakdown-label {
    margin-bottom: 0.35rem;
    color: var(--accent-gold);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.score-breakdown-text {
    color: var(--text-soft);
    line-height: 1.7;
}

.score-breakdown-points {
    margin-top: 0.7rem;
    color: var(--accent-lime);
    font-weight: 900;
}

.toast-notification {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.15rem;
    border-radius: 18px;
    border: 1px solid var(--line-soft);
    background: rgba(7, 23, 13, 0.96);
    box-shadow: var(--shadow-deep);
}

.toast-notification.success {
    border-color: rgba(74, 222, 128, 0.22);
}

.toast-notification.warning {
    border-color: rgba(251, 191, 36, 0.22);
}

.toast-icon {
    color: var(--accent-gold);
    font-weight: 900;
    text-transform: uppercase;
}

.admin-header,
.leaderboard-header {
    margin-bottom: 1.5rem;
    padding: 1.8rem 2rem;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-xl);
    background: var(--bg-panel);
}

.admin-actions {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.admin-card {
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.prediction-board-card {
    margin-bottom: 1.25rem;
}

#my-score {
    outline: none;
}

#my-score:focus {
    box-shadow: 0 0 0 3px rgba(255, 213, 74, 0.28);
}

.prediction-board-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.prediction-board-title,
.prediction-board-summary {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.prediction-board-teams,
.prediction-board-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.prediction-board-teams {
    color: var(--text-main);
    font-weight: 800;
}

#my-score .prediction-board-teams {
    gap: 0.45rem;
    flex-wrap: nowrap;
}

#my-score .prediction-board-teams .prediction-board-versus {
    font-size: 0.72rem;
}

.prediction-board-versus {
    color: var(--accent-gold);
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.prediction-board-summary {
    align-items: flex-end;
    text-align: right;
    min-width: 120px;
}

.prediction-result-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 213, 74, 0.14);
    border: 1px solid rgba(255, 213, 74, 0.2);
    color: #ffe7a1;
    font-size: 0.78rem;
    font-weight: 800;
}

.prediction-table-shell {
    max-height: min(44vh, 420px);
    overflow-x: auto;
    overflow-y: auto;
}

.prediction-table {
    min-width: 640px;
}

.prediction-empty-state {
    padding: 1.5rem 1rem;
}

.card-header-custom {
    padding: 1.1rem 1.35rem;
    border-bottom: 1px solid var(--line-soft);
    background: rgba(255, 255, 255, 0.03);
}

.card-title,
.rankings-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--text-main);
}

.card-body-custom {
    padding: 1.25rem 1.35rem;
}

.match-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.form-label-custom {
    color: var(--text-soft);
    font-weight: 700;
    font-size: 0.84rem;
}

.form-input {
    padding: 0.85rem 0.95rem;
    font-size: 0.95rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: end;
    grid-column: 1 / -1;
}

.tournament-table-shell {
    max-height: min(52vh, 620px);
    overflow: auto;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-matches-table-shell {
    max-height: min(68vh, 880px);
}

.score-rule-parameter-list {
    display: grid;
    gap: 0.8rem;
    min-width: 20rem;
}

.score-rule-parameter-item {
    display: grid;
    gap: 0.35rem;
}

.score-rule-parameter-item .form-label-custom {
    margin-bottom: 0;
}

.current-schedule-table td {
    vertical-align: top;
}

.date-cell {
    white-space: nowrap;
    color: var(--text-soft);
}

.score-input-sm {
    width: 78px;
    padding: 0.65rem 0.4rem;
    text-align: center;
    font-size: 1rem;
    font-weight: 800;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.status-badge.locked {
    color: #fecaca;
    background: rgba(248, 113, 113, 0.12);
}

.status-badge.open {
    color: #bbf7d0;
    background: rgba(74, 222, 128, 0.12);
}

.actions-cell {
    display: flex;
    justify-content: flex-end;
    gap: 0.55rem;
}

.match-edit-field {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.date-time-inputs {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.date-time-inputs > .form-input {
    flex: 0 0 auto;
}

.date-time-inputs-inline {
    min-width: 0;
}

.date-time-inputs-inline > .form-input-inline {
    width: auto;
    min-width: 110px;
}

.form-input-inline {
    width: 100%;
    min-width: 150px;
    padding: 0.65rem 0.8rem;
}

.date-time-inputs-inline input[type="date"] {
    min-width: 150px;
}

.date-time-inputs-inline input[type="time"] {
    min-width: 110px;
}

.score-edit-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
}

.score-input-label {
    color: var(--text-soft);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.action-btn {
    padding: 0.65rem 0.9rem;
    border-radius: 12px;
    font-weight: 800;
}

.action-btn.save {
    background: rgba(74, 222, 128, 0.14);
    color: #bbf7d0;
}

.action-btn.delete,
.action-btn.delete-sm {
    background: rgba(248, 113, 113, 0.14);
    color: #fecaca;
}

.action-btn.delete-sm {
    padding: 0.5rem 0.75rem;
}

.admin-users-section,
.admin-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.add-admin-form {
    display: flex;
    gap: 0.85rem;
}

.add-admin-form .form-input {
    flex: 1;
}

.admin-user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 4rem);
    padding: 2rem 1rem;
}

.login-card {
    width: 100%;
    max-width: 460px;
    padding: 2rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-error {
    margin-bottom: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(248, 113, 113, 0.18);
    background: rgba(248, 113, 113, 0.08);
    color: #fecaca;
}

.login-submit {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
}

.login-submit:disabled {
    cursor: wait;
    opacity: 0.92;
}

.login-submit.is-loading {
    pointer-events: none;
}

.login-submit-spinner {
    display: none;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    border: 2px solid rgba(7, 34, 15, 0.22);
    border-top-color: #07220f;
    animation: spin 0.8s linear infinite;
}

.login-submit.is-loading .login-submit-spinner {
    display: inline-block;
}

.login-submit.is-loading .login-submit-text::after {
    content: "Signing In...";
}

.login-submit.is-loading .login-submit-text {
    font-size: 0;
}

.login-submit.is-loading .login-submit-text::after {
    font-size: 1rem;
}

.spinner {
    width: 44px;
    height: 44px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.08);
    border-top-color: var(--accent-lime);
    animation: spin 0.8s linear infinite;
}

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

.error-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.error-title {
    margin: 0;
    font-size: 5rem;
    font-weight: 900;
    color: var(--accent-gold);
}

.error-heading {
    color: var(--text-main);
}

.error-text {
    color: var(--text-soft);
}

.table-responsive {
    width: 100%;
}

.btn-primary,
.btn-dark,
.card,
.card-header,
.table,
.table-dark,
.form-control {
    color: inherit;
}

.blazor-error-boundary,
#blazor-error-ui {
    background: #7f1d1d;
    color: #fff;
}

#blazor-error-ui {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    padding: 0.9rem 1rem;
    text-align: center;
}

#blazor-error-ui .dismiss {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    cursor: pointer;
}

/* eBSEG light theme overrides */
html,
body {
    background:
        radial-gradient(circle at top, rgba(0, 168, 150, 0.12), transparent 26%),
        linear-gradient(180deg, #f8fcfb 0%, #eef7f5 52%, #e3f0ec 100%);
    color: #17352d;
}

a,
.nav-link {
    color: #00796b;
}

.page {
    background:
        radial-gradient(circle at center, rgba(0, 168, 150, 0.08), transparent 0, transparent 48%, rgba(0, 121, 107, 0.06) 48.5%, transparent 49%),
        linear-gradient(90deg, rgba(0, 70, 61, 0.04) 0, rgba(0, 70, 61, 0.04) 1px, transparent 1px, transparent 16.66%),
        linear-gradient(180deg, rgba(0, 70, 61, 0.03) 0, rgba(0, 70, 61, 0.03) 1px, transparent 1px, transparent 20%),
        linear-gradient(180deg, #f7fbfa 0%, #edf6f3 100%);
}

.sidebar {
    background:
        linear-gradient(180deg, rgba(6, 42, 36, 0.98), rgba(4, 30, 26, 0.98)),
        radial-gradient(circle at top, rgba(0, 168, 150, 0.18), transparent 34%);
    border-right: 1px solid rgba(114, 255, 223, 0.14);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
}

.top-row {
    border-bottom: 1px solid rgba(114, 255, 223, 0.12);
    background: rgba(255, 255, 255, 0.02);
}

.navbar-brand {
    gap: 1rem;
    color: #f4fffc !important;
}

.brand-logo {
    width: auto;
    height: 2.85rem;
    display: block;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.brand-text {
    background: none;
    -webkit-text-fill-color: initial;
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1;
}

.brand-subtext {
    color: #9fd3c8;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.navbar-toggler {
    border: 1px solid rgba(114, 255, 223, 0.16);
    background: rgba(255, 255, 255, 0.08);
}

.navbar-toggler::before {
    background:
        linear-gradient(#ecfffb, #ecfffb) center 0.2rem / 100% 2px no-repeat,
        linear-gradient(#ecfffb, #ecfffb) center 0.7rem / 100% 2px no-repeat,
        linear-gradient(#ecfffb, #ecfffb) center 1.2rem / 100% 2px no-repeat;
}

.nav-kicker,
.hero-stat-label,
.result-label,
.prediction-label,
.existing-prediction,
.lock-text,
.rankings-count,
.team-preview-label {
    color: #66857d;
}

.nav-item ::deep .nav-link {
    color: #d9f4ee;
    font-weight: 700;
}

.nav-scrollable .nav-link,
.nav-scrollable a {
    color: #d9f4ee !important;
}

.nav-item ::deep .nav-link:hover,
.nav-item ::deep a.active {
    background: linear-gradient(135deg, rgba(0, 168, 150, 0.24), rgba(255, 193, 7, 0.18));
    color: #ffffff !important;
}

.nav-footer {
    border-top: 1px solid rgba(114, 255, 223, 0.12);
}

.user-info,
.admin-user-item,
.hero-stat,
.date-badge,
.time-badge,
.vs-section,
.user-badge,
.admin-user-badge {
    background: rgba(192, 225, 214, 0.88);
    border-color: rgba(0, 88, 77, 0.16);
}

.user-info {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(114, 255, 223, 0.12);
}

.user-info-button {
    width: 100%;
    border: none;
    text-align: left;
    cursor: pointer;
}

.user-info-link {
    text-decoration: none;
}

.user-info-link.active {
    border: 1px solid rgba(114, 255, 223, 0.22);
    box-shadow: 0 10px 24px rgba(6, 71, 60, 0.18);
}

.user-menu-icon {
    margin-left: auto;
    color: #9fd3c8;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.user-avatar,
.player-avatar {
    background: rgba(0, 168, 150, 0.12);
    color: #00796b;
}

.user-name,
.badge-text,
.team-name,
.section-title-main,
.section-title,
.player-name,
.team-cell,
.admin-username,
.card-title,
.rankings-title,
.error-heading {
    color: #17352d;
}

.user-name {
    color: #f3fffc;
}

.date-badge,
.time-badge,
.hero-stat-value,
.result-score,
.prediction-score,
.score-value {
    color: #000000;
}

.nav-auth-link {
    border: 1px solid rgba(255, 132, 132, 0.22);
    color: #ffd5d5;
    background: rgba(176, 32, 48, 0.12);
}

.stadium-beam {
    opacity: 0.05;
}

.pitch-lines {
    opacity: 0.08;
    background:
        linear-gradient(90deg, transparent 49.5%, rgba(0, 88, 77, 0.12) 50%, transparent 50.5%),
        radial-gradient(circle at center, transparent 0 11%, rgba(0, 88, 77, 0.09) 11.2% 11.8%, transparent 12%);
}

.particle {
    background: rgba(0, 88, 77, 0.12);
}

.hero-header,
.leaderboard-header,
.admin-header,
.login-card,
.admin-card,
.match-card,
.rankings-table-wrapper,
.podium-container {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.main-content {
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(7, 33, 28, 0.38), rgba(7, 33, 28, 0.16) 24%, rgba(248, 252, 251, 0.38) 100%),
        url("https://upload.wikimedia.org/wikipedia/commons/0/0a/Drone_view_of_dirt_road_between_soccer_fields_%28Unsplash%29.jpg") center center / cover no-repeat;
    filter: saturate(1.15) contrast(1.05);
    transform: scale(1.02);
    z-index: 0;
}

.content {
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, rgba(248, 252, 251, 0.28), rgba(248, 252, 251, 0.14));
}

.hero-header {
    border: 1px solid rgba(0, 88, 77, 0.12);
    background:
        linear-gradient(120deg, rgba(0, 112, 87, 0.22), rgba(255, 193, 7, 0.12) 50%, rgba(0, 88, 77, 0.18) 100%),
        rgba(218, 238, 230, 0.9);
    box-shadow: 0 22px 48px rgba(6, 71, 60, 0.1);
}

.hero-header::before {
    background: radial-gradient(circle, rgba(255, 193, 7, 0.18), transparent 68%);
}

.hero-kicker,
.section-kicker,
.login-kicker,
.badge-icon,
.vs-divider,
.prediction-board-versus,
.score-separator,
.score-value,
.prediction-score,
.toast-icon,
.error-title {
    color: #c28a00;
}

.title-glow,
.display-title,
.admin-title,
.login-title {
    background: linear-gradient(135deg, #0f2e28 0%, #00584d 65%, #00796b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle,
.header-subtitle,
.admin-subtitle,
.login-subtitle,
.date-cell,
.error-text,
.form-label-custom {
    color: #4d6962;
}

.match-card,
.admin-card,
.rankings-table-wrapper,
.login-card,
.podium-container,
.leaderboard-header,
.admin-header {
    border: 1px solid rgba(0, 88, 77, 0.12);
    background: rgba(204, 230, 220, 0.9);
    box-shadow: 0 20px 44px rgba(6, 71, 60, 0.08);
}

.match-card:hover {
    border-color: rgba(0, 121, 107, 0.3);
    box-shadow: 0 22px 46px rgba(6, 71, 60, 0.12);
}

.status-ribbon.open,
.status-badge.open,
.action-btn.save,
.toast-notification.success {
    background: rgba(0, 168, 150, 0.12);
    color: #00796b;
    border-color: rgba(0, 168, 150, 0.2);
}

.status-ribbon.locked,
.status-badge.locked,
.action-btn.delete,
.action-btn.delete-sm,
.login-error,
.toast-notification.warning {
    background: rgba(176, 32, 48, 0.08);
    color: #9f2431;
    border-color: rgba(176, 32, 48, 0.16);
}

.empty-icon,
.error-icon {
    background: rgba(0, 168, 150, 0.08);
    color: #00796b;
}

.team-flag-shell {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(231, 242, 238, 0.9));
    border: 3px solid rgba(0, 88, 77, 0.12);
    box-shadow: inset 0 0 0 4px rgba(0, 88, 77, 0.04);
}

.team-flag-fallback {
    color: #17352d;
}

.score-input,
.score-input-sm,
.form-input {
    border: 1px solid rgba(0, 88, 77, 0.18);
    background: rgba(255, 255, 255, 0.92);
    color: #17352d;
}

.score-input:focus,
.score-input-sm:focus,
.form-input:focus {
    border-color: rgba(0, 121, 107, 0.36);
    box-shadow: 0 0 0 4px rgba(0, 168, 150, 0.1);
    background: #ffffff;
}

.submit-btn,
.admin-btn.recalculate,
.view-all-btn {
    background: linear-gradient(135deg, #00796b, #009688);
    color: #ffffff;
    box-shadow: 0 16px 24px rgba(0, 121, 107, 0.16);
}

.submit-btn.btn-update {
    background: linear-gradient(135deg, #f2b705, #d39b00);
    color: #1c241f;
}

.back-btn,
.admin-btn.home {
    background: rgba(255, 255, 255, 0.92);
    color: #17352d;
    border: 1px solid rgba(0, 88, 77, 0.14);
}

.rankings-table th,
.admin-table th,
.card-header-custom {
    background: rgba(0, 88, 77, 0.14);
    color: #5d7d76;
}

.rankings-table td,
.admin-table td,
.card-header-custom {
    border-color: rgba(0, 88, 77, 0.08);
}

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

.rankings-table tbody tr:hover,
.admin-table tbody tr:hover {
    background: rgba(0, 168, 150, 0.05);
}

.prediction-result-pill {
    background: rgba(221, 173, 26, 0.18);
    border: 1px solid rgba(166, 122, 0, 0.22);
    color: #7b5600;
}

.tournament-table-shell {
    border: 1px solid rgba(0, 88, 77, 0.08);
}

.profile-page-shell {
    padding-bottom: 1rem;
}

.profile-hero {
    margin-bottom: 1.25rem;
}

.profile-user-badge {
    margin-top: 1.2rem;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.25rem;
}

.profile-card {
    overflow: hidden;
    border: 1px solid rgba(0, 88, 77, 0.12);
    border-radius: var(--radius-lg);
    background: rgba(204, 230, 220, 0.9);
    box-shadow: 0 20px 44px rgba(6, 71, 60, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.profile-card-body {
    padding: 1.25rem 1.35rem 1.35rem;
}

.profile-card-copy {
    margin: 0 0 1rem;
    color: #4d6962;
    line-height: 1.6;
}

.profile-theme-switch {
    max-width: 320px;
}

.profile-actions {
    margin-top: 1.25rem;
}

.toast-notification {
    border: 1px solid rgba(0, 88, 77, 0.12);
    background: rgba(208, 232, 223, 0.96);
    box-shadow: 0 18px 40px rgba(6, 71, 60, 0.12);
}

.spinner {
    border: 4px solid rgba(0, 88, 77, 0.12);
    border-top-color: #00796b;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.brand-logo-login {
    height: 3.1rem;
}

.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 18px rgba(0, 0, 0, 0.16);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 1.05rem 1.05rem;
    flex: 0 0 auto;
}

.icon-predictions {
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5'/%3E%3Cpath d='M5.5 9.5V20h13V9.5'/%3E%3Cpath d='M9.5 20v-5h5v5'/%3E%3C/svg%3E"),
        linear-gradient(135deg, rgba(0, 168, 150, 0.95), rgba(0, 121, 107, 0.92));
}

.icon-leaderboard {
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23172d25' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 21h8'/%3E%3Cpath d='M12 17v4'/%3E%3Cpath d='M7 4H4a1 1 0 0 0-1 1v1a5 5 0 0 0 5 5'/%3E%3Cpath d='M17 4h3a1 1 0 0 1 1 1v1a5 5 0 0 1-5 5'/%3E%3Cpath d='M8 4h8v5a4 4 0 0 1-8 0V4Z'/%3E%3C/svg%3E"),
        linear-gradient(135deg, rgba(255, 210, 74, 0.98), rgba(234, 174, 18, 0.92));
}

.icon-match-predictions {
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.85' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='4' width='7' height='7' rx='1.5'/%3E%3Crect x='3' y='13' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='13' width='7' height='7' rx='1.5'/%3E%3C/svg%3E"),
        linear-gradient(135deg, rgba(40, 136, 255, 0.95), rgba(15, 95, 214, 0.92));
}

.icon-admin {
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.85' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3.2'/%3E%3Cpath d='M19.4 15a1 1 0 0 0 .2 1.1l.1.1a2 2 0 0 1 0 2.8 2 2 0 0 1-2.8 0l-.1-.1a1 1 0 0 0-1.1-.2 1 1 0 0 0-.6.9V20a2 2 0 0 1-4 0v-.2a1 1 0 0 0-.6-.9 1 1 0 0 0-1.1.2l-.1.1a2 2 0 0 1-2.8 0 2 2 0 0 1 0-2.8l.1-.1a1 1 0 0 0 .2-1.1 1 1 0 0 0-.9-.6H4a2 2 0 0 1 0-4h.2a1 1 0 0 0 .9-.6 1 1 0 0 0-.2-1.1l-.1-.1a2 2 0 0 1 0-2.8 2 2 0 0 1 2.8 0l.1.1a1 1 0 0 0 1.1.2h.1a1 1 0 0 0 .6-.9V4a2 2 0 0 1 4 0v.2a1 1 0 0 0 .6.9 1 1 0 0 0 1.1-.2l.1-.1a2 2 0 0 1 2.8 0 2 2 0 0 1 0 2.8l-.1.1a1 1 0 0 0-.2 1.1v.1a1 1 0 0 0 .9.6h.2a2 2 0 0 1 0 4h-.2a1 1 0 0 0-.9.6Z'/%3E%3C/svg%3E"),
        linear-gradient(135deg, rgba(150, 97, 255, 0.95), rgba(109, 40, 217, 0.92));
}

.icon-sign-in {
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.85' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4'/%3E%3Cpath d='M10 17l5-5-5-5'/%3E%3Cpath d='M15 12H3'/%3E%3C/svg%3E"),
        linear-gradient(135deg, rgba(255, 113, 113, 0.95), rgba(220, 38, 38, 0.92));
}

.football-avatar {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    overflow: visible;
    isolation: isolate;
}

.football-shirt-body,
.football-shirt-sleeve {
    position: absolute;
    display: block;
    box-shadow: 0 12px 24px rgba(6, 71, 60, 0.18);
}

.football-shirt-body {
    inset: 18% 18% 8% 18%;
    border-radius: 14px 14px 22px 22px;
    border: 2px solid rgba(255, 255, 255, 0.82);
    overflow: hidden;
    z-index: 2;
}

.football-shirt-sleeve {
    top: 20%;
    width: 28%;
    height: 28%;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.82);
    z-index: 1;
}

.football-shirt-sleeve-left {
    left: 3%;
    transform: rotate(-26deg);
}

.football-shirt-sleeve-right {
    right: 3%;
    transform: rotate(26deg);
}

.football-shirt-shine {
    position: absolute;
    inset: -12% -5% 48% -5%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0));
    z-index: 1;
}

.football-shirt-collar {
    position: absolute;
    left: 50%;
    top: -2%;
    width: 44%;
    height: 20%;
    transform: translateX(-50%);
    border-radius: 0 0 16px 16px;
    background: rgba(255, 255, 255, 0.92);
    z-index: 3;
}

.football-shirt-number {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 950;
    letter-spacing: 0.03em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
    z-index: 2;
}

.avatar-sm {
    width: 2.4rem;
    height: 2.4rem;
}

.avatar-md {
    width: 2.75rem;
    height: 2.75rem;
}

.avatar-lg {
    width: 3.4rem;
    height: 3.4rem;
}

.avatar-xl {
    width: 4.4rem;
    height: 4.4rem;
}

.avatar-sm .football-shirt-number {
    font-size: 0.74rem;
}

.avatar-md .football-shirt-number {
    font-size: 0.86rem;
}

.avatar-lg .football-shirt-number {
    font-size: 1rem;
}

.avatar-xl .football-shirt-number {
    font-size: 1.28rem;
}

.football-avatar .football-shirt-body::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 12%, transparent 12% 24%, rgba(255, 255, 255, 0.12) 24% 36%, transparent 36% 100%);
    opacity: 0.45;
    z-index: 1;
}

.theme-egypt-10 .football-shirt-body,
.theme-egypt-10 .football-shirt-sleeve {
    background: linear-gradient(145deg, #8f0f1c, #d62839 58%, #ef4444);
}

.theme-france-07 .football-shirt-body,
.theme-france-07 .football-shirt-sleeve {
    background: linear-gradient(90deg, #1c4fd7 0 33.33%, #ffffff 33.33% 66.66%, #d92d3a 66.66% 100%);
}

.theme-spain-09 .football-shirt-body,
.theme-spain-09 .football-shirt-sleeve {
    background: linear-gradient(180deg, #b5121b 0 24%, #f4c430 24% 76%, #b5121b 76% 100%);
}

.theme-germany-08 .football-shirt-body,
.theme-germany-08 .football-shirt-sleeve {
    background: linear-gradient(180deg, #ffffff 0 68%, #111827 68% 82%, #c81e1e 82% 92%, #f4c430 92% 100%);
}

.theme-italy-06 .football-shirt-body,
.theme-italy-06 .football-shirt-sleeve {
    background: linear-gradient(90deg, #1d7f5f 0 18%, #2563eb 18% 82%, #dbeafe 82% 100%);
}

.theme-england-05 .football-shirt-body,
.theme-england-05 .football-shirt-sleeve {
    background:
        linear-gradient(90deg, #ffffff 0 46%, #c91f2f 46% 54%, #ffffff 54% 100%),
        linear-gradient(180deg, transparent 0 46%, #c91f2f 46% 54%, transparent 54% 100%);
}

.theme-netherlands-11 .football-shirt-body,
.theme-netherlands-11 .football-shirt-sleeve {
    background: linear-gradient(145deg, #ef6c00, #fb923c 60%, #fdba74);
}

.theme-portugal-17 .football-shirt-body,
.theme-portugal-17 .football-shirt-sleeve {
    background: linear-gradient(90deg, #0f7a52 0 46%, #c91f2f 46% 100%);
}

.theme-portugal-17 .football-shirt-collar,
.theme-egypt-10 .football-shirt-collar {
    background: #f4c430;
}

.theme-spain-09 .football-shirt-collar,
.theme-france-07 .football-shirt-collar,
.theme-italy-06 .football-shirt-collar,
.theme-england-05 .football-shirt-collar,
.theme-netherlands-11 .football-shirt-collar,
.theme-germany-08 .football-shirt-collar {
    background: rgba(255, 255, 255, 0.95);
}

.theme-france-07 .football-shirt-number,
.theme-spain-09 .football-shirt-number,
.theme-germany-08 .football-shirt-number,
.theme-england-05 .football-shirt-number {
    color: #0f172a;
    text-shadow: none;
}

.theme-france-07 .football-shirt-body::after,
.theme-spain-09 .football-shirt-body::after,
.theme-england-05 .football-shirt-body::after,
.theme-germany-08 .football-shirt-body::after {
    opacity: 0.1;
}

.user-badge,
.admin-user-badge {
    flex-wrap: wrap;
}

.player-info {
    min-height: 2.75rem;
}

.podium-avatar {
    background: transparent;
    padding: 0;
}

.avatar-picker-panel {
    margin-top: 1.35rem;
    padding: 1.15rem;
    border-radius: 22px;
    border: 1px solid rgba(0, 88, 77, 0.12);
    background: rgba(198, 226, 216, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.avatar-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.avatar-picker-title {
    margin: 0.25rem 0 0;
    color: #17352d;
    font-size: 1.2rem;
    font-weight: 900;
}

.avatar-picker-current {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.7rem 0.9rem;
    border-radius: 18px;
    background: rgba(221, 239, 232, 0.92);
    border: 1px solid rgba(0, 88, 77, 0.14);
}

.avatar-picker-current-copy {
    display: flex;
    flex-direction: column;
}

.avatar-picker-current-name {
    color: #17352d;
    font-size: 0.92rem;
    font-weight: 900;
}

.avatar-picker-current-subtitle {
    color: #5d7d76;
    font-size: 0.8rem;
    font-weight: 700;
}

.avatar-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.85rem;
}

.avatar-option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.85rem;
    text-align: left;
    border-radius: 18px;
    border: 1px solid rgba(0, 88, 77, 0.12);
    background: rgba(218, 236, 229, 0.94);
    box-shadow: 0 12px 24px rgba(6, 71, 60, 0.08);
}

.avatar-option:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 121, 107, 0.28);
}

.avatar-option.active {
    border-color: rgba(0, 121, 107, 0.42);
    background: linear-gradient(135deg, rgba(0, 168, 150, 0.1), rgba(255, 193, 7, 0.08));
    box-shadow: 0 18px 30px rgba(6, 71, 60, 0.12);
}

.avatar-option-copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.avatar-option-title {
    color: #17352d;
    font-size: 0.92rem;
    font-weight: 900;
}

.avatar-option-subtitle {
    color: #5d7d76;
    font-size: 0.76rem;
    font-weight: 700;
}

.user-panel {
    margin-top: 0.85rem;
    padding: 0.95rem;
    border-radius: 18px;
    border: 1px solid rgba(114, 255, 223, 0.12);
    background: rgba(255, 255, 255, 0.08);
}

.user-panel-section + .user-panel-section {
    margin-top: 0.9rem;
}

.user-panel-title {
    margin-bottom: 0.6rem;
    color: #d9f4ee;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.theme-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.theme-switch-btn {
    padding: 0.75rem 0.85rem;
    border-radius: 14px;
    border: 1px solid rgba(114, 255, 223, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: #ecfffb;
    font-weight: 800;
}

.theme-switch-btn.active {
    background: linear-gradient(135deg, rgba(0, 168, 150, 0.24), rgba(255, 193, 7, 0.18));
    border-color: rgba(114, 255, 223, 0.22);
}

.nav-footer .avatar-picker-panel {
    margin-top: 0;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.nav-footer .avatar-picker-header {
    display: none;
}

.nav-footer .avatar-picker-grid {
    grid-template-columns: 1fr;
}

.nav-footer .avatar-option {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(114, 255, 223, 0.12);
    box-shadow: none;
}

.nav-footer .avatar-option-title {
    color: #ecfffb;
}

.nav-footer .avatar-option-subtitle {
    color: #a7cfc7;
}

.theme-dark {
    background:
        radial-gradient(circle at top, rgba(255, 213, 74, 0.06), transparent 28%),
        linear-gradient(180deg, #0b2215 0%, #06120b 55%, #041008 100%);
    color: #eefbf7;
}

.app-shell.theme-dark,
.theme-dark .app-shell {
    background:
        radial-gradient(circle at center, rgba(58, 250, 124, 0.08), transparent 0, transparent 48%, rgba(255, 255, 255, 0.04) 48.5%, transparent 49%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0, rgba(255, 255, 255, 0.035) 1px, transparent 1px, transparent 16.66%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0, rgba(255, 255, 255, 0.03) 1px, transparent 1px, transparent 20%),
        linear-gradient(180deg, #08170e 0%, #06120b 100%);
}

.theme-dark .main-content::before {
    background:
        linear-gradient(180deg, rgba(2, 10, 7, 0.64), rgba(2, 10, 7, 0.38) 24%, rgba(4, 15, 10, 0.52) 100%),
        url("https://upload.wikimedia.org/wikipedia/commons/0/0a/Drone_view_of_dirt_road_between_soccer_fields_%28Unsplash%29.jpg") center center / cover no-repeat;
}

.theme-dark .content {
    background: linear-gradient(180deg, rgba(5, 20, 14, 0.22), rgba(5, 20, 14, 0.12));
}

.theme-dark .hero-header,
.theme-dark .leaderboard-header,
.theme-dark .admin-header,
.theme-dark .login-card,
.theme-dark .admin-card,
.theme-dark .match-card,
.theme-dark .rankings-table-wrapper,
.theme-dark .podium-container,
.theme-dark .profile-card,
.theme-dark .avatar-picker-panel {
    border-color: rgba(130, 255, 177, 0.16);
    background: rgba(11, 34, 20, 0.84);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.theme-dark .hero-header {
    background:
        linear-gradient(120deg, rgba(255, 213, 74, 0.14), rgba(56, 189, 248, 0.08) 32%, rgba(128, 255, 136, 0.1) 100%),
        rgba(11, 34, 20, 0.84);
}

.theme-dark .hero-header::before {
    background: radial-gradient(circle, rgba(255, 213, 74, 0.24), transparent 68%);
}

.theme-dark .hero-stat,
.theme-dark .date-badge,
.theme-dark .time-badge,
.theme-dark .vs-section,
.theme-dark .user-badge,
.theme-dark .admin-user-badge,
.theme-dark .avatar-picker-current,
.theme-dark .avatar-option,
.theme-dark .toast-notification {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(130, 255, 177, 0.14);
}

.theme-dark .rankings-table th,
.theme-dark .admin-table th,
.theme-dark .card-header-custom {
    background: rgba(255, 255, 255, 0.05);
    color: #86b396;
}

.theme-dark .rankings-table tbody tr,
.theme-dark .admin-table tbody tr {
    background: rgba(255, 255, 255, 0.015);
}

.theme-dark .rankings-table tbody tr:hover,
.theme-dark .admin-table tbody tr:hover {
    background: rgba(128, 255, 136, 0.06);
}

.theme-dark .title-glow,
.theme-dark .display-title,
.theme-dark .admin-title,
.theme-dark .login-title {
    background: linear-gradient(135deg, #ffffff 0%, #d7ffe1 48%, #80ff88 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.theme-dark .hero-subtitle,
.theme-dark .header-subtitle,
.theme-dark .admin-subtitle,
.theme-dark .login-subtitle,
.theme-dark .date-cell,
.theme-dark .form-label-custom,
.theme-dark .avatar-picker-current-subtitle,
.theme-dark .avatar-option-subtitle {
    color: #c7e9d0;
}

.theme-dark .card-title,
.theme-dark .rankings-title,
.theme-dark .player-name,
.theme-dark .team-name,
.theme-dark .section-title-main,
.theme-dark .section-title,
.theme-dark .hero-stat-value,
.theme-dark .hero-stat-label,
.theme-dark .date-badge,
.theme-dark .time-badge,
.theme-dark .date-time-picker-value,
.theme-dark .date-time-picker-icon,
.theme-dark .badge-text,
.theme-dark .avatar-picker-title,
.theme-dark .avatar-picker-current-name,
.theme-dark .avatar-option-title,
.theme-dark .team-cell,
.theme-dark .admin-username,
.theme-dark .error-heading {
    color: #f6fff8;
}

.theme-dark .profile-card-copy {
    color: #c7e9d0;
}

.theme-dark .score-input,
.theme-dark .score-input-sm,
.theme-dark .form-input {
    border: 1px solid rgba(255, 255, 255, 0.11);
    background: rgba(4, 15, 8, 0.72);
    color: #f6fff8;
}

.theme-dark .score-input:focus,
.theme-dark .score-input-sm:focus,
.theme-dark .form-input:focus {
    border-color: rgba(128, 255, 136, 0.42);
    box-shadow: 0 0 0 4px rgba(128, 255, 136, 0.08);
    background: rgba(4, 15, 8, 0.9);
}

.theme-dark .back-btn,
.theme-dark .admin-btn.home {
    background: rgba(255, 255, 255, 0.06);
    color: #f6fff8;
    border-color: rgba(255, 255, 255, 0.1);
}

.theme-dark .prediction-result-pill {
    background: rgba(255, 213, 74, 0.14);
    border-color: rgba(255, 213, 74, 0.2);
    color: #ffe7a1;
}

.theme-dark #my-score .table {
    --bs-table-color: #f6fff8;
    --bs-table-bg: rgba(7, 21, 12, 0.88);
    --bs-table-border-color: rgba(130, 255, 177, 0.12);
    --bs-table-striped-bg: rgba(255, 255, 255, 0.02);
    --bs-table-striped-color: #f6fff8;
    --bs-table-active-bg: rgba(128, 255, 136, 0.08);
    --bs-table-active-color: #f6fff8;
    --bs-table-hover-bg: rgba(128, 255, 136, 0.06);
    --bs-table-hover-color: #f6fff8;
}

.theme-dark #my-score .rankings-table td {
    color: #f6fff8;
}

.theme-dark .theme-switch-btn {
    border-color: rgba(130, 255, 177, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: #ecfffb;
}

@media (max-width: 1400px) {
    .user-score-overlay {
        padding-left: 16rem;
    }
}

@media (max-width: 1200px) {
    .user-score-overlay {
        padding-left: 12rem;
    }
}

@media (max-width: 900px) {
    .user-score-overlay {
        padding: 1rem;
    }

    html,
    body {
        overflow: auto;
    }

    .page {
        flex-direction: column;
        min-height: auto;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(114, 255, 223, 0.12);
    }

    .main-content,
    .content {
        height: auto;
        overflow: visible;
    }

    .nav-scrollable {
        display: none;
        min-height: auto;
        max-height: 60vh;
    }

    .navbar-toggler:checked ~ .nav-scrollable {
        display: flex;
    }

    .matches-grid,
    .match-form {
        grid-template-columns: 1fr;
    }

    .score-interface {
        grid-template-columns: minmax(68px, 1fr) minmax(104px, 126px) minmax(68px, 1fr);
        gap: 0.45rem;
        align-items: start;
    }

    .team {
        min-width: 0;
    }

    .team-crest {
        width: 52px;
        height: 52px;
        margin-bottom: 0.45rem;
    }

    .team-name {
        font-size: 0.78rem;
        line-height: 1.2;
        overflow-wrap: break-word;
        word-break: normal;
    }

    .vs-section {
        gap: 0.6rem;
        padding: 0.8rem 0.45rem;
    }

    .input-group-scores {
        gap: 0.35rem;
    }

    .score-input {
        width: 40px;
        padding: 0.55rem 0.2rem;
        font-size: 1rem;
    }

    .score-separator {
        font-size: 1rem;
    }

    .submit-btn {
        min-width: 84px;
        padding: 0.68rem 0.55rem;
        font-size: 0.76rem;
    }

    .result-score {
        font-size: 1.4rem;
    }

    .result-label,
    .prediction-label,
    .lock-text,
    .existing-prediction,
    .vs-divider {
        font-size: 0.68rem;
    }

    .prediction-score {
        font-size: 1rem;
    }

    .leaderboard-header,
    .admin-header,
    .section-header,
    .rankings-header,
    .avatar-picker-header,
    .add-admin-form,
    .admin-user-item,
    .admin-actions,
    .prediction-board-header,
    .prediction-board-meta {
        flex-direction: column;
        align-items: stretch;
    }

    .prediction-board-summary {
        align-items: flex-start;
        text-align: left;
    }

    .podium-stage {
        gap: 0.75rem;
    }

    .podium-bar,
    .podium-placeholder {
        width: 110px;
    }

    .avatar-option {
        align-items: center;
    }

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

@media (min-width: 901px) {
    .navbar-toggler {
        display: none;
    }
}
