body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #0f172a;
    color: white;
}

.navbar {
    background: #1e293b;
    padding: 15px 30px;
}

.navbar a {
    color: white;
    text-decoration: none;
    margin-right: 20px;
}

.container {
    max-width: 1000px;
    margin: 30px auto;
    padding: 20px;
}

.match-card {
    background: #1e293b;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 10px;
}

.team-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.team-name {
    width: 180px;
}

.score-input {
    width: 60px;
    padding: 8px;
    text-align: center;
}

.save-btn {
    background: #22c55e;
    color: white;
    border: 0;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
}

.save-btn:hover {
    background: #16a34a;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.muted {
    color: #94a3b8;
}

.filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.filter-btn,
.status-btn {
    background: #1e293b;
    color: #cbd5e1;
    border: 1px solid #334155;
    padding: 8px 12px;
    border-radius: 999px;
    cursor: pointer;
}

.filter-btn.active,
.status-btn.active {
    background: #22c55e;
    color: white;
    border-color: #22c55e;
}

.compact-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.match-row {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 12px 14px;
}

.match-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #94a3b8;
}

.group-badge {
    color: #86efac;
    font-weight: bold;
}

.prediction-form {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.teams {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 56px 12px 56px minmax(220px, 1fr);
    align-items: center;
    gap: 12px;
    width: 100%;
}

.team {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    white-space: nowrap;
}

.mini-score {
    width: 48px;
    padding: 7px;
    border-radius: 6px;
    border: 1px solid #475569;
    background: #0f172a;
    color: white;
    text-align: center;
}

.colon {
    text-align: center;
    color: #cbd5e1;
}

.small-btn {
    background: #22c55e;
    color: white;
    border: 0;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.closed-label {
    color: #94a3b8;
    font-size: 13px;
}

.row-action {
    min-width: 70px;
    text-align: right;
}

@media (max-width: 700px) {
    .prediction-form {
        flex-direction: column;
        align-items: stretch;
    }

    .teams {
        grid-template-columns: 1fr 42px 10px 42px 1fr;
        font-size: 14px;
    }

    .match-meta {
        flex-direction: column;
    }

    .row-action {
        text-align: left;
    }
}

.date-section {
    margin-top: 28px;
}

.date-title {
    font-size: 20px;
    color: #e2e8f0;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #334155;
}

.flag {
    margin-right: 6px;
    font-size: 20px;
}

.home-team {
    justify-content: flex-end;
}

.away-team {
    justify-content: flex-start;
}

.team {
    display: flex;
    align-items: center;
    gap: 4px;
}

.match-row {
    padding: 10px 14px;
}

.match-meta {
    margin-bottom: 4px;
}

@media (max-width: 700px) {
    .flag {
        font-size: 16px;
    }

    .team {
        font-size: 13px;
    }

    .date-title {
        font-size: 18px;
    }
}


.flag-img {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

.home-team {
    justify-content: flex-end;
    text-align: right;
}

.away-team {
    justify-content: flex-start;
    text-align: left;
}

.mini-score {
    box-sizing: border-box;
}
.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #334155;
    font-size: 14px;
    color: #cbd5e1;
}

.points-badge {
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
}

.points-badge-3 {
    background: rgba(34, 197, 94, 0.18);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.45);
}

.points-badge-1 {
    background: rgba(234, 179, 8, 0.18);
    color: #fde68a;
    border: 1px solid rgba(234, 179, 8, 0.45);
}

.points-badge-0 {
    background: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.45);
}

.match-row.points-3 {
    border-color: rgba(34, 197, 94, 0.55);
}

.match-row.points-1 {
    border-color: rgba(234, 179, 8, 0.55);
}

.match-row.points-0 {
    border-color: rgba(239, 68, 68, 0.55);
}

@media (max-width: 700px) {
    .result-row {
        flex-direction: column;
        align-items: flex-start;
    }
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 18px;
}

.stat-label {
    display: block;
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 32px;
    color: #ffffff;
}

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

.leaderboard-table th {
    color: #94a3b8;
    font-size: 13px;
    padding-bottom: 10px;
}

.leaderboard-table td {
    padding: 12px 0;
    border-top: 1px solid #334155;
}

.current-user-row {
    background: rgba(34, 197, 94, 0.12);
}

.current-user-row td:first-child {
    border-radius: 8px 0 0 8px;
}

.current-user-row td:last-child {
    border-radius: 0 8px 8px 0;
}

@media (max-width: 700px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-value {
        font-size: 26px;
    }
}
.hero-card {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 1px solid #334155;
    border-radius: 18px;
    padding: 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-bottom: 25px;
}

.eyebrow {
    color: #86efac;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
    font-weight: bold;
}

.hero-card h1 {
    font-size: 48px;
    margin: 10px 0;
}

.hero-text {
    color: #cbd5e1;
    max-width: 600px;
    font-size: 18px;
    line-height: 1.5;
}

.hero-icon {
    font-size: 90px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.primary-link,
.secondary-link {
    display: inline-block;
    text-decoration: none;
    border-radius: 8px;
    padding: 11px 16px;
    font-weight: bold;
}

.primary-link {
    background: #22c55e;
    color: white;
}

.secondary-link {
    border: 1px solid #475569;
    color: white;
}

.home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.clean-list {
    padding-left: 20px;
    color: #cbd5e1;
    line-height: 1.8;
}

.top-player {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-top: 1px solid #334155;
}

@media (max-width: 700px) {
    .hero-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 25px;
    }

    .hero-card h1 {
        font-size: 34px;
    }

    .hero-icon {
        font-size: 60px;
    }

    .home-grid {
        grid-template-columns: 1fr;
    }
}
:root {
    --brand-primary: #22c55e;
    --brand-dark: #0f172a;
    --brand-card: #1e293b;
    --brand-border: #334155;
    --brand-muted: #94a3b8;
    --brand-text: #ffffff;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.96);
    border-bottom: 1px solid var(--brand-border);
    padding: 14px 30px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: white;
}

.brand span {
    display: block;
    color: var(--brand-muted);
    font-size: 12px;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
}

.nav-links a:hover {
    color: white;
}

@media (max-width: 700px) {
    .navbar {
        align-items: flex-start;
        gap: 12px;
        flex-direction: column;
        padding: 14px 18px;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 12px;
    }
}
.hero-banner {
    position: relative;
    overflow: hidden;
    min-height: 320px;
    background:
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.22), transparent 35%),
        linear-gradient(135deg, #1e293b, #020617);
}

.hero-banner::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -80px;
    width: 260px;
    height: 260px;
    background: rgba(34, 197, 94, 0.08);
    border-radius: 50%;
}

.hero-banner > * {
    position: relative;
    z-index: 1;
}

.countdown-box {
    margin-top: 22px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid #334155;
    border-radius: 14px;
    padding: 14px 18px;
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
}

.countdown-label {
    color: #94a3b8;
    font-size: 13px;
}

#countdown {
    font-size: 28px;
    color: #86efac;
}

.hero-visual {
    min-width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.trophy {
    font-size: 95px;
}

.ball {
    position: absolute;
    right: 20px;
    bottom: 25px;
    font-size: 42px;
}

@media (max-width: 700px) {
    .hero-visual {
        min-width: 160px;
        height: 160px;
    }

    .trophy {
        font-size: 70px;
    }

    .ball {
        font-size: 32px;
    }

    #countdown {
        font-size: 22px;
    }
}
.prizes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.prize-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 14px;
}

.prize-medal {
    font-size: 30px;
}

.prize-item strong {
    min-width: 95px;
}

.prize-item span {
    color: #cbd5e1;
}

.prize-item.first {
    border-color: rgba(234, 179, 8, 0.55);
}

.prize-item.second {
    border-color: rgba(148, 163, 184, 0.55);
}

.prize-item.third {
    border-color: rgba(249, 115, 22, 0.55);
}
.progress-card {
    margin-bottom: 20px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.progress-percent {
    font-size: 34px;
    color: #86efac;
}

.progress-bar {
    width: 100%;
    height: 14px;
    background: #0f172a;
    border-radius: 999px;
    overflow: hidden;
    margin: 18px 0;
    border: 1px solid #334155;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #86efac);
    border-radius: 999px;
}
.deadline-card {
    border-color: rgba(234, 179, 8, 0.45);
}

.warning-text {
    color: #fde68a;
}

.success-text {
    color: #86efac;
}
.admin-actions {
    margin: 18px 0;
}

.admin-table-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 14px;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.admin-table th {
    color: #94a3b8;
    font-size: 13px;
    text-align: left;
    padding: 14px;
    border-bottom: 1px solid #334155;
}

.admin-table td {
    padding: 14px;
    border-bottom: 1px solid #334155;
    vertical-align: middle;
}

.quick-result-form {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 8px;
}

.status-pill {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
}

.status-open {
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
}

.status-finished {
    background: rgba(148, 163, 184, 0.15);
    color: #cbd5e1;
}

.small-link {
    color: #93c5fd;
    font-size: 13px;
    text-decoration: none;
}

.small-link:hover {
    text-decoration: underline;
}
.mini-progress {
    width: 120px;
    height: 8px;
    background: #0f172a;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid #334155;
    margin-bottom: 5px;
}

.mini-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #86efac);
}
.settings-form label {
    display: block;
    margin: 16px 0 6px;
    color: #cbd5e1;
    font-weight: bold;
}

.settings-input,
.settings-textarea {
    width: 100%;
    box-sizing: border-box;
    background: #0f172a;
    border: 1px solid #475569;
    color: white;
    border-radius: 8px;
    padding: 11px;
    font-size: 15px;
}

.settings-textarea {
    min-height: 100px;
    resize: vertical;
}

.success-box {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.45);
    color: #86efac;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
}
.auth-page {
    min-height: 100vh;
    max-width: 520px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.auth-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.auth-logo {
    font-size: 42px;
}

.auth-header h1 {
    font-size: 36px;
    margin: 0;
}

.auth-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.auth-card h2 {
    margin-top: 0;
    font-size: 30px;
}

.auth-subtitle {
    color: #94a3b8;
    margin-bottom: 26px;
}

.auth-card label {
    display: block;
    margin: 18px 0 8px;
    color: #e2e8f0;
    font-weight: bold;
}

.auth-input {
    width: 100%;
    box-sizing: border-box;
    background: #0f172a;
    color: white;
    border: 1px solid #475569;
    border-radius: 10px;
    padding: 15px 16px;
    font-size: 16px;
    outline: none;
}

.auth-input:focus {
    border-color: #22c55e;
}

.auth-button {
    width: 100%;
    background: #22c55e;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 26px;
    cursor: pointer;
}

.auth-button:hover {
    background: #16a34a;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 26px 0;
    color: #94a3b8;
}

.auth-divider span {
    height: 1px;
    background: #334155;
    flex: 1;
}

.auth-divider p {
    margin: 0;
}

.auth-secondary {
    display: block;
    text-align: center;
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 14px;
    color: #cbd5e1;
    text-decoration: none;
}

.auth-secondary strong {
    color: #22c55e;
}

.auth-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #fca5a5;
    padding: 12px;
    border-radius: 10px;
}

.auth-footer {
    text-align: center;
    color: #94a3b8;
    margin-top: 26px;
}

@media (max-width: 600px) {
    .auth-page {
        padding: 24px 14px;
    }

    .auth-header h1 {
        font-size: 28px;
    }

    .auth-card {
        padding: 22px;
    }

    .auth-card h2 {
        font-size: 26px;
    }
}
.user-inline-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.small-password-input {
    width: 160px;
    padding: 8px 10px;
    font-size: 13px;
}

.danger-btn {
    background: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.45);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.danger-btn:hover {
    background: rgba(239, 68, 68, 0.28);
}


.small-name-input {
    width: 150px;
    padding: 8px 10px;
    font-size: 13px;
}
