:root {
    --bg: #0d1329;
    --bg-soft: #1a2344;
    --panel: rgba(26, 31, 68, 0.74);
    --panel-strong: rgba(31, 27, 56, 0.92);
    --gold: #c8a25a;
    --gold-soft: #f2dfb2;
    --green: #c8a25a;
    --green-deep: #8f6a2d;
    --white: #f5f7ff;
    --muted: #d1c7b7;
    --danger: #ff7d7d;
    --success: #d9c082;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    --radius-lg: 30px;
    --radius-md: 18px;
}

* { box-sizing: border-box; }
html,
body {
    margin: 0;
    max-width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    font-family: "Manrope", sans-serif;
    color: var(--white);
    background: #040611;
    min-height: 100vh;
}

.customer-body {
    overflow-x: hidden;
    background:
        linear-gradient(180deg, rgba(18, 14, 10, 0.42) 0%, rgba(16, 18, 34, 0.62) 42%, rgba(4, 7, 18, 0.9) 100%),
        var(--desktop-stadium-bg, url("../images/desktop-stadium-bg.png")) center center / cover no-repeat fixed,
        #040611;
}

.customer-body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
    background:
        radial-gradient(circle at top center, rgba(242, 223, 178, 0.12), transparent 24%),
        radial-gradient(circle at right center, rgba(60, 92, 176, 0.1), transparent 30%),
        linear-gradient(180deg, rgba(10, 12, 18, 0.18) 0%, rgba(4, 7, 18, 0.58) 100%);
}

img { max-width: 100%; display: block; }
svg,
iframe,
video,
canvas {
    max-width: 100%;
}
a { color: inherit; text-decoration: none; }

.page-shell { width: min(1120px, calc(100% - 24px)); margin: 0 auto; padding: 18px 0 48px; position: relative; }
.brand-stage,
.brand-mark,
.promo-panel,
.admin-content { overflow-x: hidden; }

.app-hero,
.app-topbar,
.brand-stage,
.brand-mark,
.hero-footer,
.hero-footer > *,
.promo-head,
.promo-track,
.section-heading,
.day-header,
.group-card,
.winner-row,
.winner-score,
.instagram-chip,
.top-score-pill {
    min-width: 0;
}
.ambient { position: fixed; border-radius: 50%; filter: blur(40px); z-index: 0; opacity: 0.35; pointer-events: none; }
.ambient-one { width: 220px; height: 220px; background: rgba(215, 185, 120, 0.18); top: 10px; left: -80px; }
.ambient-two { width: 280px; height: 280px; background: rgba(58, 86, 148, 0.18); right: -90px; bottom: 10%; }

.hero-card, .match-card, .empty-state-card, .terms-card, .admin-panel, .admin-login-card, .stat-card, .floating-alert, .promo-panel {
    position: relative;
    z-index: 1;
    backdrop-filter: blur(18px);
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.logo-badge, .modal-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    padding: 10px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(239, 216, 161, 0.98), rgba(200, 162, 90, 0.98));
    color: #0b173d;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.company-logo {
    display: block;
    max-width: 100%;
    height: auto;
}

.company-logo--hero {
    width: min(340px, 78vw);
    margin: 0 auto 18px;
    filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.35));
}

.company-logo--admin {
    width: 190px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 20px;
    padding: 10px 12px;
}

.company-logo--login {
    width: min(260px, 70vw);
    margin: 0 auto 8px;
    background: transparent;
    border-radius: 0;
    padding: 0;
}

.eyebrow {
    color: var(--gold-soft);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.73rem;
    margin: 18px 0 8px;
}

h1, h2, h3 {
    font-family: "Cinzel", serif;
    margin: 0;
}

.app-hero {
    position: relative;
    z-index: 1;
    margin-bottom: 24px;
}

.hero-layout {
    display: block;
    margin-bottom: 22px;
}

.app-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.top-icon,
.top-score-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    min-height: 52px;
    padding: 0 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--white);
}

.top-icon {
    width: 52px;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.top-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.top-score-pill {
    gap: 10px;
    font-weight: 800;
    cursor: pointer;
    appearance: none;
}

.top-go {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--green);
    color: #08102a;
}

.brand-stage {
    position: relative;
    padding: 8px 0 0;
    overflow: hidden;
}

.brand-stage::before {
    content: "";
    position: absolute;
    inset: 10% 8% 8% 8%;
    background:
        radial-gradient(circle at center, rgba(200, 162, 90, 0.12), transparent 48%),
        radial-gradient(circle at 70% 60%, rgba(60, 92, 176, 0.1), transparent 32%);
    opacity: 0.9;
    pointer-events: none;
    filter: blur(26px);
}

.brand-mark {
    position: relative;
    text-align: center;
    padding: 20px 26px 12px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.brand-mini {
    display: inline-flex;
    background: #ffdc22;
    color: #0a0c14;
    padding: 5px 12px;
    border-radius: 999px;
    font-weight: 900;
    margin-bottom: 12px;
}

.brand-kicker {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(239, 216, 161, 0.22);
    background: rgba(239, 216, 161, 0.08);
    color: var(--gold-soft);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.brand-mark h1 {
    font-family: "Manrope", sans-serif;
    font-size: clamp(2rem, 9vw, 3.3rem);
    font-weight: 900;
    line-height: 0.95;
    text-transform: uppercase;
    max-width: 620px;
    margin: 0 auto;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.hero-display-title {
    display: grid;
    gap: 10px;
    max-width: 860px;
    justify-items: center;
}

.hero-display-title__eyebrow {
    display: block;
    color: var(--gold-soft);
    font-family: "Cinzel", serif;
    font-size: clamp(0.82rem, 2vw, 1rem);
    font-weight: 700;
    letter-spacing: 0.34em;
    text-transform: uppercase;
}

.hero-display-title strong {
    display: block;
    position: relative;
    width: fit-content;
    max-width: 100%;
    font-family: "Caveat", cursive;
    font-size: clamp(3.9rem, 13vw, 7rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: 0.015em;
    color: transparent;
    background: linear-gradient(90deg, #fff4d9 0%, #f2dfb2 28%, #d3a44f 62%, #80a9ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    text-wrap: balance;
    text-shadow:
        0 8px 20px rgba(0, 0, 0, 0.22);
    filter: drop-shadow(0 4px 14px rgba(239, 216, 161, 0.22));
    transform: rotate(-2deg);
}

.hero-display-title strong::after {
    content: "";
    position: absolute;
    left: 6%;
    right: 6%;
    bottom: 10%;
    height: 20px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(242, 223, 178, 0.02), rgba(200, 162, 90, 0.34), rgba(60, 92, 176, 0.22));
    filter: blur(10px);
    z-index: -1;
}

.brand-mark p {
    color: var(--muted);
    max-width: 420px;
    margin: 14px auto 0;
    font-size: 0.92rem;
    line-height: 1.6;
}

.hero-note-band {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
    justify-content: center;
}

.hero-note-band span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
}

.prize-grid, .stats-grid, .match-grid {
    display: grid;
    gap: 16px;
}

.promo-panel {
    overflow: hidden;
    padding: 0;
    background:
        linear-gradient(180deg, rgba(108, 81, 37, 0.9), rgba(20, 30, 68, 0.97));
}

.promo-panel--editorial {
    border-radius: 30px;
}

.promo-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.promo-head h2 {
    font-family: "Manrope", sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    min-width: 0;
    overflow-wrap: anywhere;
}

.promo-head span {
    color: var(--gold-soft);
    font-size: 0.85rem;
    text-align: right;
    min-width: 0;
    overflow-wrap: anywhere;
}

.promo-track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 18px 18px 8px;
}

.track-award {
    padding: 14px 12px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.track-award small {
    display: block;
    color: var(--muted);
    margin-bottom: 8px;
}

.track-award strong {
    display: block;
    font-size: 1.1rem;
}
.prize-item span, .stat-card span { display: block; color: var(--muted); font-size: 0.92rem; }
.prize-item strong, .stat-card strong { display: block; margin-top: 8px; font-size: 1.35rem; }

.hero-footer {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 18px 20px;
}

.instagram-chip, .ghost-button, .status-badge, .pagination-row a, .share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
}

.instagram-chip span {
    overflow-wrap: anywhere;
}

.matches-section { margin-top: 24px; position: relative; z-index: 1; }
.page-shell,
.matches-section,
.match-days {
    overflow: visible;
}
.section-heading, .admin-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.admin-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.section-meta {
    color: var(--gold-soft);
    font-weight: 700;
}

.date-strip-anchor {
    position: relative;
    min-height: 0;
    margin-bottom: 20px;
}

.date-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    position: relative;
    z-index: 20;
    padding: 12px 8px;
    margin-inline: -8px;
    backdrop-filter: blur(18px);
    background: linear-gradient(180deg, rgba(70, 55, 28, 0.88), rgba(17, 28, 58, 0.82));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 28px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.date-strip.is-pinned {
    position: fixed;
    top: 0;
    left: 0;
    margin-inline: 0;
}

.date-strip::-webkit-scrollbar {
    display: none;
}

.date-pill {
    border: 1px solid rgba(239, 216, 161, 0.16);
    background: rgba(28, 37, 74, 0.72);
    color: var(--white);
    min-width: 78px;
    padding: 10px 8px;
    border-radius: 18px;
    display: grid;
    gap: 2px;
    justify-items: center;
    cursor: pointer;
}

.date-pill.is-active {
    background: linear-gradient(180deg, var(--green), #91d215);
    color: #08122d;
    border-color: transparent;
}

.date-pill__day {
    font-size: 1.65rem;
    font-weight: 900;
    line-height: 1;
}

.date-pill__label,
.date-pill__month {
    font-size: 0.72rem;
    font-weight: 700;
}

.match-days {
    display: grid;
    gap: 24px;
}

.match-day {
    display: block;
    scroll-margin-top: 126px;
}

.group-stack {
    display: grid;
    gap: 18px;
}

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

.day-header h3 {
    font-family: "Manrope", sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
}

.share-chip {
    border-radius: 999px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    font-weight: 700;
}

.match-grid { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.match-card {
    padding: 18px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(83, 61, 27, 0.9) 0%, rgba(17, 27, 61, 0.98) 74%);
}

.group-card {
    transition: opacity 0.25s ease, transform 0.25s ease, filter 0.25s ease;
}

.group-card--preview,
.group-card--locked,
.group-card--closed,
.group-card--submitted {
    opacity: 0.6;
}

.group-card--locked {
    opacity: 0.9;
}

.group-card--submitted {
    filter: grayscale(0.15);
}

.group-card--submitted .stadium-glow {
    opacity: 0.35;
}

.stadium-glow {
    position: absolute;
    inset: 52% -10% -30px;
    background:
        radial-gradient(circle at center, rgba(200, 162, 90, 0.32), transparent 52%),
        linear-gradient(180deg, rgba(200, 162, 90, 0.24), rgba(64, 44, 16, 0.88));
    border-radius: 50% 50% 24px 24px;
}

.match-card__head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 0.82rem;
    margin-bottom: 18px;
}

.countdown-label {
    position: relative;
    z-index: 1;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 22px;
    font-size: 1rem;
}

.countdown-label strong {
    color: var(--white);
}

.countdown-label.is-closed {
    color: #ffc8c8;
}

.countdown-label.is-submitted {
    color: var(--gold-soft);
}

.match-pitch {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto auto auto 1fr;
    gap: 12px;
    align-items: center;
}

.match-pitch--locked {
    grid-template-columns: 1fr auto 1fr;
    gap: 18px;
    padding: 12px 4px 2px;
}

.group-matches {
    display: grid;
    gap: 14px;
}

.pitch-team {
    display: grid;
    justify-items: center;
    gap: 10px;
    text-align: center;
}

.pitch-team img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.18);
    background: #fff;
}

.country-code {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.team-name {
    font-size: 0.95rem;
    font-weight: 700;
}

.score-input, .details-form input, .admin-form input, .match-form-grid input, .filters-row input, .filters-row select {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
    padding: 14px 14px;
    font: inherit;
}

.score-stack {
    width: 56px;
    display: grid;
    gap: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(246,248,252,0.9));
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

.score-stack.is-disabled {
    opacity: 0.55;
}

.score-stepper {
    appearance: none;
    border: 0;
    background: transparent;
    color: #18203a;
    font-size: 2rem;
    line-height: 1;
    height: 50px;
    cursor: pointer;
}

.score-input {
    text-align: center;
    font-size: 1.45rem;
    font-weight: 800;
    min-height: 52px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-top: 1px solid rgba(6, 15, 46, 0.08);
    border-bottom: 1px solid rgba(6, 15, 46, 0.08);
    background: transparent;
    color: #0b1330;
    padding: 0;
}

.pitch-vs,
.closed-center {
    font-weight: 900;
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
}

.lock-orb {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.lock-orb svg {
    width: 34px;
    height: 34px;
    stroke: rgba(255,255,255,0.8);
    stroke-width: 1.7;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.closed-center {
    grid-column: 2 / span 3;
    text-align: center;
    background: rgba(255, 125, 125, 0.12);
    border: 1px solid rgba(255, 125, 125, 0.24);
    padding: 14px 12px;
    border-radius: 18px;
}

.submitted-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    position: relative;
    z-index: 1;
}

.submitted-summary:empty {
    display: none;
}

.submitted-summary span {
    background: rgba(255,255,255,0.08);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.9rem;
}

.group-submit-button {
    margin-top: 18px;
    position: relative;
    z-index: 1;
}

.group-submit-button[disabled] {
    background: rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.72);
    box-shadow: none;
}

.no-match-card {
    min-height: 180px;
}

.terms-card { margin-top: 20px; padding: 16px 18px; color: var(--muted); }
.terms-card p { margin: 6px 0; line-height: 1.6; }

.primary-button, .ghost-button {
    appearance: none;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

.primary-button {
    background: linear-gradient(135deg, var(--gold-soft), var(--gold));
    color: #0b173d;
    padding: 16px 22px;
    border-radius: 18px;
    width: 100%;
    margin-top: 22px;
    box-shadow: 0 16px 40px rgba(200, 162, 90, 0.28);
}
.primary-button.compact { width: auto; margin-top: 0; padding: 12px 18px; }
.primary-button[disabled] { opacity: 0.75; cursor: wait; }

.ghost-button {
    color: var(--white);
    padding: 12px 16px;
}

.modal-link-button {
    width: 100%;
    margin-top: 12px;
}

.closed-badge {
    margin-top: 12px;
    display: inline-flex;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 125, 125, 0.12);
    color: #ffc8c8;
    border: 1px solid rgba(255, 125, 125, 0.25);
}

.empty-state-card { padding: 32px 24px; margin-top: 24px; text-align: center; }
.floating-alert {
    padding: 18px 20px;
    margin: 0 0 20px;
}
.floating-alert.success { border-color: rgba(217, 192, 130, 0.3); }
.floating-alert.error, .admin-alert.error { border-color: rgba(255, 125, 125, 0.28); }
.summary-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.summary-list span {
    background: rgba(255,255,255,0.05);
    border-radius: 999px;
    padding: 8px 12px;
}
.share-button { margin-top: 14px; color: var(--white); }

.details-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 20;
}
.details-modal.is-open { display: flex; }
.details-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(1, 8, 26, 0.8);
}
.details-modal__dialog {
    position: relative;
    width: min(92vw, 460px);
    padding: 28px 22px;
    background: var(--panel-strong);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: var(--shadow);
}

.details-modal__dialog--sheet {
    width: min(96vw, 560px);
    border-radius: 30px 30px 24px 24px;
    padding-top: 18px;
}

.details-modal__handle {
    width: 72px;
    height: 6px;
    margin: 0 auto 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}
.details-form { display: grid; gap: 14px; margin-top: 20px; }
.details-form label, .admin-form label, .match-form-grid label { display: grid; gap: 8px; }
.details-form span, .admin-form span, .match-form-grid span { color: var(--muted); font-size: 0.92rem; }

.winners-dialog {
    max-height: min(82vh, 760px);
    overflow-y: auto;
}

.winners-section {
    margin-top: 20px;
}

.winners-section h3 {
    font-family: "Manrope", sans-serif;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.winners-empty {
    color: var(--muted);
    margin: 0;
}

.winner-list--compact .winner-row {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    padding: 12px 14px;
}

.success-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 40;
    padding: 20px;
}

.success-overlay.is-open {
    display: flex;
}

.success-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 8, 24, 0.88);
    backdrop-filter: blur(10px);
}

.success-overlay__dialog {
    position: relative;
    z-index: 1;
    width: min(92vw, 520px);
    border-radius: 34px;
    padding: 34px 24px 26px;
    text-align: center;
    color: #f8f3e5;
    background:
        radial-gradient(circle at top, rgba(239, 216, 161, 0.24), transparent 42%),
        linear-gradient(180deg, rgba(103, 76, 31, 0.96), rgba(20, 28, 62, 0.98));
    border: 1px solid rgba(239, 216, 161, 0.22);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.46);
}

.success-tick-wrap {
    position: relative;
    width: 132px;
    height: 132px;
    margin: 0 auto 18px;
}

.success-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 10px solid rgba(239, 216, 161, 0.18);
    animation: pulseRing 1.6s ease-out infinite;
}

.success-tick {
    position: absolute;
    inset: 14px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 4rem;
    font-weight: 900;
    color: #13224e;
    background: linear-gradient(180deg, #f1ddb0, #c8a25a);
    box-shadow: 0 12px 30px rgba(200, 162, 90, 0.4);
    animation: popTick 0.55s ease-out both;
}

.success-overlay h2 {
    font-family: "Manrope", sans-serif;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.success-overlay p {
    color: rgba(248, 243, 229, 0.84);
    margin: 0 0 18px;
}

.success-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
}

.success-summary span {
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(255,255,255,0.1);
}

@keyframes pulseRing {
    0% { transform: scale(0.86); opacity: 0.8; }
    100% { transform: scale(1.16); opacity: 0; }
}

@keyframes popTick {
    0% { transform: scale(0.6); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.admin-login-body {
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        linear-gradient(180deg, rgba(93, 68, 28, 0.82), rgba(18, 28, 60, 0.98));
}

.admin-body {
    background:
        linear-gradient(180deg, rgba(93, 68, 28, 0.82), rgba(18, 28, 60, 0.98));
}

.admin-login-card {
    width: min(100%, 440px);
    padding: 28px 22px;
}
.admin-form { display: grid; gap: 14px; margin-top: 20px; }

.admin-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
    position: relative;
    z-index: 1;
}
.admin-sidebar {
    padding: 24px 18px;
    border-right: 1px solid rgba(255,255,255,0.06);
    background: linear-gradient(180deg, rgba(58, 43, 22, 0.94), rgba(18, 28, 60, 0.94));
    position: sticky;
    top: 0;
    height: 100vh;
}
.admin-sidebar nav { display: grid; gap: 10px; margin-top: 24px; }
.admin-sidebar a {
    padding: 12px 14px;
    border-radius: 16px;
    color: var(--muted);
}
.admin-sidebar a.active, .admin-sidebar a:hover { background: rgba(255,255,255,0.06); color: var(--white); }
.admin-content { padding: 28px 20px 40px; }
.stats-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 20px; }
.stat-card, .admin-panel { padding: 20px; }
.admin-alert {
    padding: 14px 16px;
    border-radius: 18px;
    margin-bottom: 18px;
    background: rgba(255,255,255,0.05);
}
.admin-alert.success { border: 1px solid rgba(217, 192, 130, 0.28); }

.match-form-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.checkbox-row {
    display: flex !important;
    align-items: center;
    gap: 10px;
}
.checkbox-row input { width: auto; }
.flag-preview-row { display: flex; gap: 14px; align-items: center; }
.flag-preview-row img, .flag-cell img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
}
.table-wrap { overflow-x: auto; }
.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 960px;
}
.admin-table th, .admin-table td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-align: left;
    vertical-align: middle;
}
.winner-list {
    display: grid;
    gap: 14px;
}

.winner-row {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
}

.winner-row.is-top {
    background: linear-gradient(135deg, rgba(200, 162, 90, 0.16), rgba(239, 216, 161, 0.1));
    border-color: rgba(248, 239, 178, 0.28);
}

.winner-badge {
    min-width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.08);
    font-weight: 800;
}

.winner-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--gold-soft), var(--gold));
    color: #0b173d;
    font-weight: 900;
}

.winner-copy {
    display: grid;
    gap: 4px;
}

.winner-copy span {
    color: var(--muted);
    font-size: 0.9rem;
}

.winner-score {
    font-weight: 900;
    color: var(--gold-soft);
}
.flag-cell { display: flex; align-items: center; gap: 10px; }
.actions-cell { display: flex; gap: 12px; }
.actions-cell a { color: var(--gold-soft); }
.status-badge.active { color: #13224e; background: rgba(239, 216, 161, 0.95); }
.status-badge.inactive { color: #ffd9d9; background: rgba(255, 125, 125, 0.13); }

.filters-row {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr auto;
    gap: 12px;
}
.pagination-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}
.pagination-row a.active {
    background: linear-gradient(135deg, var(--gold-soft), var(--gold));
    color: #13224e;
}

.admin-footer {
    padding: 18px 20px;
    color: var(--muted);
}

@media (max-width: 991px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar {
        position: static;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .filters-row, .match-form-grid { grid-template-columns: 1fr; }
    .winner-row { grid-template-columns: auto auto minmax(0, 1fr); }
    .winner-score { grid-column: 2 / 4; }
}

@media (min-width: 768px) {
    .prize-grid, .match-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hero-footer { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (max-width: 767px) {
    .customer-body::before {
        background:
            linear-gradient(180deg, rgba(64, 46, 16, 0.22) 0%, rgba(24, 28, 52, 0.12) 26%, rgba(10, 12, 24, 0.76) 78%, rgba(2, 4, 10, 0.96) 100%);
    }
    .customer-body {
        background:
            linear-gradient(180deg, rgba(22, 18, 14, 0.38) 0%, rgba(14, 18, 34, 0.66) 48%, rgba(3, 5, 12, 0.94) 100%),
            var(--mobile-stadium-bg, url("../images/mobile-stadium-bg.png")) center top / cover no-repeat fixed,
            #030611;
    }
    .ambient {
        display: none;
    }
    .page-shell {
        width: calc(100% - 18px);
        max-width: calc(100vw - 18px);
        padding-top: 14px;
    }
    .promo-panel,
    .match-day,
    .group-stack,
    .group-card,
    .terms-card,
    .hero-layout {
        max-width: 100%;
    }
    .app-topbar {
        gap: 10px;
    }
    .brand-stage {
        padding: 2px 0 0;
    }
    .top-score-pill {
        flex-shrink: 0;
        padding-inline: 14px;
    }
    .brand-mark {
        padding: 16px 10px 12px;
        text-align: center;
    }
    .brand-mark h1 {
        max-width: 100%;
        font-size: clamp(1.55rem, 8.4vw, 2.2rem);
    }
    .hero-display-title {
        gap: 6px;
    }
    .hero-display-title__eyebrow {
        font-size: 0.68rem;
        letter-spacing: 0.15em;
    }
    .hero-display-title strong {
        font-size: clamp(3.1rem, 14vw, 4.9rem);
    }
    .hero-footer {
        align-items: stretch;
    }
    .instagram-chip {
        width: 100%;
        max-width: 100%;
    }
    .date-pill {
        min-width: 72px;
    }
    .date-strip {
        padding: 10px 6px;
        margin-inline: -4px;
        border-radius: 24px;
    }
    .date-strip.is-pinned {
        top: 0;
    }
    .promo-track,
    .summary-list {
        min-width: 0;
    }
    .top-icon {
        flex: 0 0 52px;
    }
    .section-meta,
    .winner-name,
    .winner-score,
    .submitted-summary span {
        overflow-wrap: anywhere;
    }
    .winner-list--compact .winner-row,
    .winner-row {
        grid-template-columns: auto minmax(0, 1fr);
    }
    .winner-badge,
    .winner-avatar {
        grid-row: span 2;
    }
    .winner-score {
        grid-column: 2;
    }
    .section-heading, .admin-page-head { flex-direction: column; align-items: flex-start; }
    .section-heading,
    .day-header,
    .promo-head,
    .hero-footer {
        width: 100%;
        max-width: 100%;
    }
    .match-day {
        scroll-margin-top: 114px;
    }
    .match-pitch { grid-template-columns: 1fr auto auto auto 1fr; gap: 8px; }
    .match-pitch--locked {
        grid-template-columns: 1fr auto 1fr;
        gap: 10px;
    }
    .country-code { font-size: 1.15rem; }
    .team-name { font-size: 0.82rem; }
    .lock-orb {
        width: 64px;
        height: 64px;
    }
    .lock-orb svg {
        width: 28px;
        height: 28px;
    }
    .score-stack { width: 52px; }
    .score-stepper { height: 44px; font-size: 1.6rem; }
    .score-input { min-height: 46px; font-size: 1.1rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .promo-head {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 16px 14px;
    }
    .promo-head span {
        text-align: left;
    }
    .promo-track {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 14px 14px 8px;
    }
    .track-award {
        padding: 12px 10px;
    }
    .hero-footer {
        padding: 14px;
    }
}
