/* ==========================================================================
   AFCON 2027 "Pamoja" theme — classic matchday-programme look for Baris Ticketing.
   Loaded after style.css; only restyles, never changes behaviour.
   ========================================================================== */

:root {
    --pitch: #096b3c;
    --pitch-deep: #06482a;
    --pitch-soft: #0c8349;
    --ivory: #faf6ec;
    --parchment: #f2ead8;
    --paper: #fffdf8;
    --gold: #fb8916;
    --gold-bright: #ffa53d;
    --gold-deep: #b85c00;
    --ink: #1c1a16;
    --ink-soft: #4a463d;
    --muted: #7a7366;
    --rule: #e3d8bf;
    --danger: #b42318;

    /* Host-nation flag colours */
    --ug-black: #000000;
    --ug-yellow: #fcdc04;
    --ug-red: #d90000;
    --ke-red: #bb0000;
    --ke-green: #006600;
    --tz-green: #1eb53a;
    --tz-blue: #00a3dd;
    --tz-yellow: #fcd116;

    --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --radius: 6px;
    --shadow-card: 0 1px 0 rgba(28, 26, 22, 0.04), 0 10px 30px -12px rgba(28, 26, 22, 0.18);

    /* Re-point the site's brand variables at the theme */
    --brand-primary: var(--pitch);
    --brand-accent: var(--gold);
    --brand-highlight: var(--pitch);
}

/* ---------- Base ---------- */
body {
    background-color: var(--ivory);
    background-image:
        radial-gradient(rgba(251, 137, 22, 0.06) 1px, transparent 1px);
    background-size: 22px 22px;
    color: var(--ink);
}

h1, h2, h3,
.home-features h2,
.event-details-page h1 {
    font-family: var(--font-display);
    letter-spacing: -0.01em;
    color: var(--ink);
}

a {
    color: var(--pitch-soft);
}

::selection {
    background: var(--gold-bright);
    color: var(--ink);
}

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

/* ---------- Host-nation stripe ---------- */
.pamoja-stripe {
    display: flex;
    height: 6px;
    width: 100%;
}

.pamoja-stripe span {
    flex: 1;
}

.pamoja-ug {
    background: linear-gradient(90deg, var(--ug-black) 0 33.3%, var(--ug-yellow) 33.3% 66.6%, var(--ug-red) 66.6% 100%);
}

.pamoja-ke {
    background: linear-gradient(90deg, var(--ug-black) 0 33.3%, var(--ke-red) 33.3% 66.6%, var(--ke-green) 66.6% 100%);
}

.pamoja-tz {
    background: linear-gradient(90deg, var(--tz-green) 0 25%, var(--tz-yellow) 25% 50%, var(--ug-black) 50% 75%, var(--tz-blue) 75% 100%);
}

/* ---------- Navigation ---------- */
.navbar {
    background: var(--pitch);
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.12));
    box-shadow: none;
    border-bottom: 1px solid rgba(255, 165, 61, 0.35);
}

.nav-menu a {
    color: rgba(250, 246, 236, 0.86);
    letter-spacing: 0.02em;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--gold-bright);
}

/* Replace the leaf hover ornament with a thin gold rule */
.nav-menu a:not(.btn-sell)::before {
    background: var(--gold-bright);
    background-image: none;
    height: 2px;
    bottom: -0.15rem;
}

.nav-menu a.btn-sell,
.nav-menu .btn-sell {
    background: transparent;
    color: var(--gold-bright);
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    box-shadow: none;
}

.nav-menu a.btn-sell:hover {
    background: var(--gold);
    color: var(--pitch-deep);
}

/* ---------- Buttons ---------- */
.btn,
.btn-primary {
    background-color: var(--pitch);
    color: var(--ivory);
    border-radius: var(--radius);
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.btn-primary:hover {
    background-color: var(--pitch-soft);
    color: var(--ivory);
}

.btn:active {
    transform: translateY(1px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--pitch);
    border: 1px solid var(--pitch);
}

.btn-secondary:hover {
    background-color: var(--pitch);
    color: var(--ivory);
}

.afcon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.6rem;
    font-size: 1rem;
    text-decoration: none;
}

.afcon-btn--gold {
    background: var(--gold);
    color: var(--pitch-deep);
    box-shadow: 0 8px 20px -8px rgba(251, 137, 22, 0.7);
}

.afcon-btn--gold:hover {
    background: var(--gold-bright);
    color: var(--pitch-deep);
}

.afcon-btn--ghost {
    background: transparent;
    color: var(--ivory);
    border: 1px solid rgba(250, 246, 236, 0.45);
}

.afcon-btn--ghost:hover {
    background: rgba(250, 246, 236, 0.1);
    color: var(--ivory);
}

/* ---------- Eyebrows & section heads ---------- */
.afcon-eyebrow {
    margin: 0 0 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-deep);
}

.afcon-section-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--rule);
    position: relative;
}

.afcon-section-head::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 72px;
    height: 3px;
    background: var(--gold);
}

.afcon-section-head h2 {
    margin: 0;
    font-size: clamp(1.75rem, 3vw, 2.4rem);
}

/* ---------- Hero ---------- */
.afcon-hero {
    position: relative;
    overflow: hidden;
    background-color: var(--pitch-deep);
    background-image:
        /* kitenge-inspired diamond lattice */
        linear-gradient(135deg, rgba(255, 165, 61, 0.07) 25%, transparent 25%),
        linear-gradient(225deg, rgba(255, 165, 61, 0.07) 25%, transparent 25%),
        linear-gradient(45deg, rgba(255, 165, 61, 0.07) 25%, transparent 25%),
        linear-gradient(315deg, rgba(255, 165, 61, 0.07) 25%, transparent 25%),
        radial-gradient(ellipse at 80% 20%, rgba(12, 131, 73, 0.9), transparent 60%),
        linear-gradient(160deg, var(--pitch) 0%, var(--pitch-deep) 70%);
    background-size: 44px 44px, 44px 44px, 44px 44px, 44px 44px, 100% 100%, 100% 100%;
    background-position: 22px 0, 22px 0, 0 0, 0 0, 0 0, 0 0;
    color: var(--ivory);
    padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3.5rem);
    border-radius: 14px;
    margin-top: -0.5rem;
    box-shadow: 0 30px 60px -35px rgba(6, 72, 42, 0.7);
}

/* centre-circle line art */
.afcon-hero::before {
    content: '';
    position: absolute;
    right: -140px;
    top: 50%;
    width: 520px;
    height: 520px;
    transform: translateY(-50%);
    border: 2px solid rgba(250, 246, 236, 0.08);
    border-radius: 50%;
    box-shadow: 0 0 0 90px rgba(250, 246, 236, 0.02);
    pointer-events: none;
}

.afcon-hero__inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
}

.afcon-hero .afcon-eyebrow {
    color: var(--gold-bright);
}

.afcon-hero__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.4rem, 5.5vw, 4.4rem);
    line-height: 1.02;
    margin: 0 0 1.25rem;
    color: var(--ivory);
}

.afcon-hero__title em {
    font-style: italic;
    font-weight: 600;
    color: var(--gold-bright);
}

.afcon-hero__lead {
    max-width: 34rem;
    margin: 0 0 2rem;
    font-size: 1.1rem;
    line-height: 1.65;
    color: rgba(250, 246, 236, 0.82);
}

.afcon-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.afcon-hosts {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin: 0;
    padding: 1.25rem 0 0;
    list-style: none;
    border-top: 1px solid rgba(250, 246, 236, 0.14);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(250, 246, 236, 0.75);
}

.afcon-hosts li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.afcon-flag {
    display: inline-block;
    width: 22px;
    height: 14px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.afcon-flag--ug {
    background: linear-gradient(180deg,
        var(--ug-black) 0 16.6%, var(--ug-yellow) 16.6% 33.3%, var(--ug-red) 33.3% 50%,
        var(--ug-black) 50% 66.6%, var(--ug-yellow) 66.6% 83.3%, var(--ug-red) 83.3% 100%);
}

.afcon-flag--ke {
    background: linear-gradient(180deg,
        var(--ug-black) 0 30%, #fff 30% 35%, var(--ke-red) 35% 65%, #fff 65% 70%, var(--ke-green) 70% 100%);
}

.afcon-flag--tz {
    background: linear-gradient(146deg,
        var(--tz-green) 0 38%, var(--tz-yellow) 38% 42%, var(--ug-black) 42% 58%, var(--tz-yellow) 58% 62%, var(--tz-blue) 62% 100%);
}

/* Next-fixture ticket */
.afcon-fixture {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.75rem 1.75rem 1.5rem;
    background: var(--paper);
    color: var(--ink);
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.6);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    /* ticket notches */
    -webkit-mask: radial-gradient(circle 12px at 0 62%, transparent 98%, #000) left / 51% 100% no-repeat,
                  radial-gradient(circle 12px at 100% 62%, transparent 98%, #000) right / 51% 100% no-repeat;
            mask: radial-gradient(circle 12px at 0 62%, transparent 98%, #000) left / 51% 100% no-repeat,
                  radial-gradient(circle 12px at 100% 62%, transparent 98%, #000) right / 51% 100% no-repeat;
}

.afcon-fixture:hover {
    transform: translateY(-3px) rotate(-0.4deg);
}

.afcon-fixture::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 6px;
    background: linear-gradient(90deg, var(--ug-black) 0 11%, var(--ug-yellow) 11% 22%, var(--ug-red) 22% 33%,
        var(--ug-black) 33% 44%, var(--ke-red) 44% 55%, var(--ke-green) 55% 66%,
        var(--tz-green) 66% 75%, var(--tz-yellow) 75% 83%, var(--ug-black) 83% 91%, var(--tz-blue) 91% 100%);
}

.afcon-fixture__label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-deep);
}

.afcon-fixture__title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 0.35rem;
}

.afcon-fixture__meta {
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.afcon-countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin: 1.1rem 0 1rem;
    padding-top: 1.1rem;
    border-top: 2px dashed var(--rule);
}

.afcon-countdown span {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.55rem 0.25rem;
    background: var(--parchment);
    border-radius: var(--radius);
}

.afcon-countdown b {
    font-family: var(--font-display);
    font-size: 1.6rem;
    line-height: 1;
    color: var(--pitch);
    font-variant-numeric: tabular-nums;
}

.afcon-countdown small {
    margin-top: 0.3rem;
    font-size: 0.65rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.afcon-fixture__cta {
    align-self: flex-start;
    font-weight: 700;
    color: var(--pitch);
    border-bottom: 2px solid var(--gold);
    padding-bottom: 2px;
}

/* ---------- Home: carousel ---------- */
.events-carousel-container {
    margin-top: 2.5rem;
}

.carousel-event-card {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 10px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.carousel-event-content h2 {
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
}

.carousel-event-price {
    color: var(--pitch);
    font-family: var(--font-display);
}

.carousel-dots .dot.active,
.carousel-dots button.active {
    background: var(--gold);
}

/* ---------- Event cards (ticket stubs) ---------- */
.home-features {
    margin-top: 3rem;
}

.event-card,
.event-card-simple {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 10px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 1px 0 rgba(28, 26, 22, 0.04), 0 22px 40px -18px rgba(28, 26, 22, 0.35);
}

.event-card .event-image {
    position: relative;
}

/* perforation between poster and stub */
.event-card .event-content {
    position: relative;
    border-top: 2px dashed var(--rule);
    text-align: left;
}

.event-card .event-content::before,
.event-card .event-content::after {
    content: '';
    position: absolute;
    top: -11px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--ivory);
    border: 1px solid var(--rule);
}

.event-card .event-content::before {
    left: -11px;
}

.event-card .event-content::after {
    right: -11px;
}

.event-card h3 {
    font-size: 1.2rem;
    line-height: 1.25;
    margin: 0 0 0.35rem;
    text-align: left;
}

.afcon-card-date {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-deep);
}

.afcon-card-venue {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.event-simple-price {
    display: block;
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--pitch);
    margin-bottom: 1rem;
    text-align: left;
}

.event-simple-price.free {
    color: var(--gold-deep);
}

.event-share-btn {
    background: rgba(6, 72, 42, 0.7);
    color: var(--ivory);
}

/* ---------- Home: host CTA ---------- */
.home-cta-leaves {
    display: none;
}

.home-cta {
    border-radius: 12px;
    overflow: hidden;
}

.home-cta-overlay {
    background: linear-gradient(120deg, rgba(6, 72, 42, 0.95) 10%, rgba(6, 72, 42, 0.7) 60%, rgba(156, 123, 20, 0.55));
}

.home-cta-content h2 {
    color: var(--ivory);
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}

.home-cta-content .btn {
    background: var(--gold);
    color: var(--pitch-deep);
}

.home-cta-content .btn:hover {
    background: var(--gold-bright);
}

/* Mobile-access QR card: only auto-show where it cannot cover page content */
@media (max-width: 1799px) {
    .home-qr-code-container {
        display: none;
    }
}

.floating-qr-btn {
    background: var(--pitch);
    box-shadow: 0 0 0 3px var(--gold), 0 10px 24px -8px rgba(6, 72, 42, 0.6);
}

/* ---------- Events listing ---------- */
.events-page h1,
.events-page h2 {
    font-family: var(--font-display);
}

.events-search input,
.tickets-search input {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
}

.events-search input:focus,
.tickets-search input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(251, 137, 22, 0.2);
    outline: none;
}

/* ---------- Event details ---------- */
.event-details-page .info-card,
.event-details-page .card-style,
.ticket-categories-table,
.occurrence-item-display {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 10px;
    box-shadow: var(--shadow-card);
}

.event-details-page h1 {
    font-weight: 800;
    font-size: clamp(1.9rem, 3.6vw, 2.8rem);
    line-height: 1.1;
}

.overview-icon {
    background: var(--parchment);
    color: var(--pitch);
}

.overview-label {
    color: var(--gold-deep);
    letter-spacing: 0.16em;
}

.ticket-section-header h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.ticket-table-header {
    background: var(--pitch);
    color: var(--ivory);
    letter-spacing: 0.14em;
}

.ticket-table-header * {
    color: var(--ivory);
}

.ticket-table-row {
    border-bottom: 1px dashed var(--rule);
}

.ticket-table-row:hover {
    background: rgba(242, 234, 216, 0.5);
}

.ticket-col-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
}

.price-amount,
.ticket-col-price {
    color: var(--pitch);
    font-family: var(--font-display);
}

.status-sold-out {
    color: var(--danger);
}

/* Category chips */
.event-category-badge,
.category-badge {
    background: var(--parchment);
    color: var(--pitch);
    border: 1px solid var(--rule);
}

/* Waiting room */
.event-queue-room {
    background: var(--pitch-deep);
    color: var(--ivory);
    border: 1px solid rgba(255, 165, 61, 0.35);
}

.event-queue-room__title {
    font-family: var(--font-display);
    color: var(--ivory);
}

.event-queue-progress__bar {
    background: linear-gradient(90deg, var(--gold), var(--gold-bright));
}

/* ---------- Auth ---------- */
.login-page {
    background: transparent;
}

.auth-container {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-top: 6px solid var(--pitch);
    border-radius: 10px;
    box-shadow: var(--shadow-card);
}

.auth-container h1,
.auth-container h2 {
    font-family: var(--font-display);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(251, 137, 22, 0.2);
    outline: none;
}

/* ---------- Tickets & cart ---------- */
.tickets-page h1,
.cart-page h1,
.cart-page h2 {
    font-family: var(--font-display);
}

.cart-panel {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 10px;
    box-shadow: var(--shadow-card);
}

.cart-badge {
    background: var(--gold);
    color: var(--pitch-deep);
}

.pagination-btn.active {
    background: var(--pitch);
    color: var(--ivory);
}

/* Checkout hero: parchment instead of the old light-blue panel */
.checkout-hero.card-style {
    background: var(--parchment);
    background-image: linear-gradient(135deg, rgba(251, 137, 22, 0.12), transparent 60%);
    border: 1px solid var(--rule);
    border-top: 6px solid var(--pitch);
}

.checkout-hero .hero-text h1,
.checkout-hero .hero-text h2 {
    font-family: var(--font-display);
}

/* Order summary keeps its dark panel, in pitch green */
.cart-summary-panel {
    background: var(--pitch-deep);
    border-color: var(--pitch-deep);
}

.cart-summary-panel .btn-primary {
    background: var(--gold);
    color: var(--pitch-deep);
    border-color: var(--gold);
}

.cart-summary-panel .btn-primary:hover {
    background: var(--gold-bright);
    color: var(--pitch-deep);
}

.cart-summary-panel .btn-secondary,
.cart-summary-panel .ghost-btn {
    background: transparent;
    color: var(--ivory);
    border: 1px solid rgba(250, 246, 236, 0.4);
}

.cart-summary-panel .btn-secondary:hover,
.cart-summary-panel .ghost-btn:hover {
    background: rgba(250, 246, 236, 0.08);
    color: var(--ivory);
}

/* ---------- Cookie banner ---------- */
.cookie-consent {
    background: var(--pitch-deep);
    color: var(--ivory);
    border-top: 3px solid var(--gold);
}

.cookie-consent .cookie-consent-title,
.cookie-consent .cookie-consent-text,
.cookie-consent .cookie-consent-message {
    color: rgba(250, 246, 236, 0.9);
}

.cookie-consent .cookie-consent-message a,
.cookie-consent .cookie-consent-text a {
    color: var(--gold-bright);
}

.cookie-consent .cookie-icon {
    color: var(--gold-bright);
}

.cookie-btn-primary {
    background: var(--gold);
    color: var(--pitch-deep);
    border: none;
}

.cookie-btn-secondary {
    background: transparent;
    color: var(--ivory);
    border: 1px solid rgba(250, 246, 236, 0.4);
}

/* ---------- Footer ---------- */
.footer {
    background: var(--pitch-deep);
    color: var(--ivory);
    padding: 0 0 1.75rem;
    margin-top: 4rem;
    text-align: left;
}

.footer .pamoja-stripe {
    margin-bottom: 2.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(250, 246, 236, 0.12);
}

.footer-eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-bright);
}

.footer-title {
    margin: 0 0 0.6rem;
    font-family: var(--font-display);
    font-size: 1.6rem;
    line-height: 1.2;
    color: var(--ivory);
}

.footer-note {
    margin: 0;
    max-width: 30rem;
    color: rgba(250, 246, 236, 0.7);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1.5rem;
    align-content: start;
}

.footer a,
.footer-links a {
    color: rgba(250, 246, 236, 0.85);
    text-decoration: none;
}

.footer a:hover {
    color: var(--gold-bright);
    text-decoration: none;
    opacity: 1;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    font-size: 0.85rem;
    color: rgba(250, 246, 236, 0.6);
}

.footer-bottom p {
    margin: 0;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.25rem;
}

.footer-legal a {
    font-size: 0.85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .afcon-hero__inner {
        grid-template-columns: 1fr;
    }

    .afcon-hero::before {
        width: 360px;
        height: 360px;
        right: -180px;
        top: 20%;
    }

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

@media (max-width: 768px) {
    .nav-menu {
        background: var(--pitch-deep);
    }

    .nav-menu a {
        color: var(--ivory);
    }

    .afcon-hero__actions .afcon-btn {
        flex: 1 1 100%;
    }

    .afcon-fixture {
        padding: 1.5rem 1.25rem 1.25rem;
    }

    .afcon-countdown b {
        font-size: 1.35rem;
    }

    .footer {
        text-align: left;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .afcon-fixture,
    .event-card,
    .btn {
        transition: none;
    }

    .afcon-fixture:hover,
    .event-card:hover {
        transform: none;
    }
}

/* ---------- Mobile sticky "Get tickets" bar (event page) ---------- */
.afcon-sticky-buy {
    display: none;
}

@media (max-width: 768px) {
    .afcon-sticky-buy {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 900;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
        background: var(--pitch-deep);
        border-top: 3px solid var(--gold);
        box-shadow: 0 -10px 30px -12px rgba(0, 0, 0, 0.45);
    }

    .afcon-sticky-buy__price {
        display: flex;
        flex-direction: column;
        font-family: var(--font-display);
        font-size: 1.2rem;
        font-weight: 700;
        line-height: 1.1;
        color: var(--ivory);
    }

    .afcon-sticky-buy__price small {
        font-family: inherit;
        font-size: 0.65rem;
        font-weight: 700;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        color: var(--gold-bright);
    }

    .afcon-sticky-buy .afcon-btn {
        flex: 0 0 auto;
        padding: 0.75rem 1.4rem;
    }

    /* keep the footer and cookie banner clear of the bar */
    .event-details-page {
        padding-bottom: 4.5rem;
    }
}

#eventTicketPurchaseArea {
    scroll-margin-top: 1rem;
}

/* ==========================================================================
   Simple, picture-first UI — big targets, icons + one word, colour = meaning
   ========================================================================== */

.afcon-icon {
    width: 1.25em;
    height: 1.25em;
    flex: 0 0 auto;
    vertical-align: -0.2em;
}

h1 .afcon-icon,
h2 .afcon-icon {
    margin-right: 0.45rem;
    color: var(--gold-deep);
}

.btn,
.afcon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
}

.afcon-btn--xl {
    min-height: 58px;
    padding: 0.9rem 1.6rem;
    font-size: 1.15rem;
    font-weight: 700;
    border-radius: 10px;
}

.afcon-btn--block {
    width: 100%;
}

.afcon-btn--grow {
    flex: 1 1 auto;
}

.afcon-btn--pitch {
    background: var(--pitch);
    color: var(--ivory);
}

.afcon-btn--pitch:hover {
    background: var(--pitch-soft);
    color: var(--ivory);
}

.afcon-btn--danger {
    background: var(--danger);
    color: #fff;
}

.afcon-btn--danger:hover {
    background: #912018;
    color: #fff;
}

/* Teams with flags */
.afcon-match {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.6rem;
    margin: 0;
    font-family: var(--font-display);
    line-height: 1.15;
}

.afcon-team {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.afcon-team__flag {
    font-size: 1.5em;
    line-height: 1;
    font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
}

.afcon-vs {
    font-family: var(--font-family-base, sans-serif);
    font-size: 0.6em;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-deep);
    padding: 0.15rem 0.4rem;
    border: 1px solid var(--rule);
    border-radius: 999px;
}

/* Icon fact rows */
.afcon-facts {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0.6rem 0 0.9rem;
    padding: 0;
    list-style: none;
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.afcon-facts li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.afcon-facts .afcon-icon {
    color: var(--gold-deep);
}

/* ---------- Home ---------- */
.afcon-hero__title {
    margin-bottom: 1.5rem;
}

.afcon-hero__actions {
    margin-bottom: 1.25rem;
}

.afcon-paywith {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(250, 246, 236, 0.85);
    font-weight: 600;
}

.afcon-paywith img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #fff;
    padding: 4px;
    object-fit: contain;
}

.afcon-fixture .afcon-match {
    font-size: 1.45rem;
    margin: 0.25rem 0 0.4rem;
}

.afcon-fixture__meta {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.afcon-fixture__meta .afcon-icon {
    color: var(--gold-deep);
}

.afcon-fixture .afcon-btn--block {
    margin-top: 0.25rem;
}

.afcon-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    max-width: 1200px;
    margin: 1.5rem auto 0;
    padding: 0;
    list-style: none;
}

.afcon-steps li {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 1.1rem 0.5rem;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    color: var(--ink);
}

.afcon-steps b {
    position: absolute;
    top: 0.5rem;
    left: 0.6rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--pitch-deep);
    font-size: 0.8rem;
    line-height: 24px;
}

.afcon-steps__pic {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 48px;
    color: var(--pitch);
}

.afcon-steps__pic .afcon-icon {
    width: 40px;
    height: 40px;
}

.afcon-steps__pic img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: contain;
}

.afcon-section-head h2 {
    display: flex;
    align-items: center;
}

.afcon-organiser {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2.5rem;
    padding: 1rem 1.25rem;
    border: 1px dashed var(--rule);
    border-radius: 12px;
    color: var(--ink-soft);
    font-weight: 600;
}

.afcon-organiser span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ---------- Event card (whole card is tappable) ---------- */
.afcon-card {
    position: relative;
    display: flex;
    flex-direction: column;
}

.afcon-card .event-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.1rem 1.1rem 1.2rem;
}

.afcon-card__link {
    color: inherit;
    text-decoration: none;
}

.afcon-card__link::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

.afcon-card .event-share-btn,
.afcon-card .event-share-menu {
    z-index: 2;
}

.afcon-card .afcon-match,
.afcon-card .afcon-title {
    font-size: 1.2rem;
}

.afcon-datebadge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 52px;
    padding: 0.35rem 0.5rem;
    background: var(--paper);
    border-radius: 8px;
    box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.45);
    line-height: 1;
}

.afcon-datebadge b {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--pitch);
}

.afcon-datebadge small {
    margin-top: 0.15rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-deep);
}

.afcon-card__buy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
}

.afcon-card .event-simple-price {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
}

.afcon-card .event-simple-price small {
    font-size: 0.6em;
    color: var(--muted);
}

.afcon-was {
    display: block;
    font-size: 0.75rem;
    color: var(--muted);
}

.afcon-buy {
    flex: 0 0 auto;
    min-height: 48px;
    padding: 0.6rem 1.2rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.afcon-buy.has-queue {
    background: var(--gold);
    color: var(--pitch-deep);
}

/* ---------- Event page ---------- */
.event-header .afcon-match {
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    font-weight: 800;
}

.afcon-bigfacts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
}

.afcon-bigfacts li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: var(--parchment);
    border-radius: 10px;
}

.afcon-bigfacts__wide {
    grid-column: 1 / -1;
}

.afcon-bigfacts .afcon-icon {
    width: 30px;
    height: 30px;
    color: var(--pitch);
}

.afcon-bigfacts span {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.afcon-bigfacts b {
    font-size: 1.1rem;
    color: var(--ink);
}

.afcon-bigfacts small {
    color: var(--muted);
    font-size: 0.8rem;
}

.ticket-section-header h2 {
    display: flex;
    align-items: center;
}

/* Ticket rows become big cards */
.ticket-categories-table {
    background: transparent;
    border: 0;
    box-shadow: none;
    display: grid;
    gap: 0.9rem;
}

.ticket-categories-table .ticket-table-header {
    display: none;
}

.ticket-categories-table .ticket-table-row:not(.ticket-table-header) {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) auto auto minmax(0, 1.4fr);
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-left: 6px solid var(--pitch);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
}

.ticket-categories-table .ticket-table-row.disabled {
    border-left-color: var(--danger);
    opacity: 0.75;
}

.ticket-col-name h3 {
    margin: 0;
    font-size: 1.25rem;
}

.ticket-col-price .price-amount,
.ticket-col-price .price-free {
    font-size: 1.5rem;
    font-weight: 800;
    white-space: nowrap;
}

.afcon-avail {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}

.afcon-avail--ok {
    background: #e3f3e8;
    color: #14532d;
}

.afcon-avail--few {
    background: #fff1d6;
    color: #8a5300;
}

.afcon-avail--out,
.afcon-avail--closed {
    background: #fde4e1;
    color: var(--danger);
}

.ticket-action-stack {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.quantity-stepper {
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--rule);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.quantity-stepper .stepper-btn {
    width: 48px;
    height: 48px;
    border: 0;
    background: var(--parchment);
    color: var(--pitch);
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
}

.quantity-stepper .ticket-quantity-input {
    width: 52px;
    height: 48px;
    border: 0;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 800;
    -moz-appearance: textfield;
}

.quantity-stepper .ticket-quantity-input::-webkit-outer-spin-button,
.quantity-stepper .ticket-quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.add-to-cart-btn,
.add-to-cart-btn-occurrence {
    min-height: 52px;
    padding: 0.7rem 1.3rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 10px;
}

.add-to-cart-btn.is-added,
.add-to-cart-btn-occurrence.is-added {
    background: #15803d;
}

#cartSummary #proceedToPayment {
    background: var(--gold);
    color: var(--pitch-deep);
    min-height: 58px;
    font-size: 1.15rem;
    font-weight: 800;
}

@media (max-width: 768px) {
    .ticket-categories-table .ticket-table-row:not(.ticket-table-header) {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "name price"
            "avail avail"
            "action action";
        gap: 0.6rem 0.75rem;
    }

    .ticket-categories-table .ticket-col-name { grid-area: name; }
    .ticket-categories-table .ticket-col-price { grid-area: price; text-align: right; }
    .ticket-categories-table .ticket-col-availability { grid-area: avail; }
    .ticket-categories-table .ticket-col-action { grid-area: action; }

    .ticket-action-stack {
        justify-content: stretch;
    }

    .ticket-action-stack .add-to-cart-btn {
        flex: 1;
    }

    .ticket-col-action .btn {
        width: 100%;
    }
}

/* ---------- Cart ---------- */
.cart-page h1,
.cart-page h2 {
    display: flex;
    align-items: center;
}

.afcon-paybtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.afcon-paybtn__logos {
    display: inline-flex;
    gap: 4px;
}

.afcon-paybtn__logos img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #fff;
    padding: 2px;
    object-fit: contain;
}

.cart-note a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--gold-bright);
    font-weight: 700;
}

.btn-remove-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    min-height: 40px;
}

/* ---------- Checkout ---------- */
.afcon-progress {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

.afcon-progress li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-width: 76px;
    padding: 0.55rem 0.5rem;
    border-radius: 10px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.afcon-progress .afcon-icon {
    width: 28px;
    height: 28px;
}

.afcon-progress li.is-done {
    color: #15803d;
}

.afcon-progress li.is-current {
    background: var(--pitch);
    color: var(--ivory);
}

.checkout-hero .hero-text {
    text-align: center;
}

.checkout-hero .hero-text h1 {
    margin: 0;
}

.afcon-checkout {
    max-width: 560px;
    margin: 1.25rem auto 0;
}

.afcon-paycard {
    padding: 1.25rem;
}

.afcon-paylist {
    margin: 0 0 0.75rem;
    padding: 0;
    list-style: none;
}

.afcon-paylist li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 0;
    border-bottom: 1px dashed var(--rule);
}

.afcon-paylist__icon .afcon-icon {
    width: 30px;
    height: 30px;
    color: var(--pitch);
}

.afcon-paylist__what {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-weight: 700;
}

.afcon-paylist__what .afcon-match {
    font-size: 1.05rem;
}

.afcon-paylist__what small {
    color: var(--muted);
    font-weight: 600;
}

.afcon-paylist__price {
    white-space: nowrap;
}

.afcon-payfee {
    display: flex;
    justify-content: space-between;
    margin: 0.5rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.afcon-paytotal {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 0.5rem 0 1.25rem;
    padding: 1rem;
    background: var(--parchment);
    border-radius: 10px;
    font-weight: 700;
}

.afcon-paytotal b {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--pitch);
}

.afcon-phone label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 700;
}

.afcon-phone label small {
    color: var(--muted);
    font-weight: 500;
}

.afcon-phone input[type="tel"] {
    min-height: 54px;
    font-size: 1.2rem;
    letter-spacing: 0.04em;
}

.afcon-backlink {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.85rem;
    min-height: 44px;
    color: var(--ink-soft);
    font-weight: 600;
    text-decoration: none;
}

.afcon-reassure {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.25rem;
    margin: 1.25rem 0 0;
    padding: 1rem 0 0;
    border-top: 1px solid var(--rule);
    list-style: none;
    color: var(--muted);
    font-size: 0.85rem;
}

.afcon-reassure li,
.afcon-reassure a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.afcon-reassure a {
    color: var(--pitch);
    font-weight: 700;
}

/* ---------- My tickets ---------- */
.tickets-page h1 {
    display: flex;
    align-items: center;
}

.afcon-tcard {
    padding: 1.15rem 1.25rem;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-left: 6px solid var(--muted);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
}

.afcon-tcard.status-confirmed { border-left-color: #15803d; }
.afcon-tcard.status-pending { border-left-color: #d97706; }
.afcon-tcard.status-failed,
.afcon-tcard.status-cancelled { border-left-color: var(--danger); }

.afcon-tcard__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.afcon-tcard__top .afcon-match,
.afcon-tcard__top .afcon-title {
    font-size: 1.2rem;
    margin: 0;
}

.afcon-tstatus {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex: 0 0 auto;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 800;
}

.afcon-tstatus--confirmed { background: #e3f3e8; color: #14532d; }
.afcon-tstatus--pending { background: #fff1d6; color: #8a5300; }
.afcon-tstatus--failed,
.afcon-tstatus--cancelled { background: #fde4e1; color: var(--danger); }

.afcon-tcard__no {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.8rem;
    color: var(--muted);
}

.afcon-tcard__actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-top: 0.9rem;
    border-top: 1px dashed var(--rule);
}

.afcon-iconlink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-left: auto;
    border: 1px solid var(--rule);
    border-radius: 50%;
    color: var(--pitch);
}

.afcon-iconlink .afcon-icon {
    width: 24px;
    height: 24px;
}

/* ---------- Events page ---------- */
.events-page h1 {
    display: flex;
    align-items: center;
}

.events-search input,
.tickets-search input {
    min-height: 54px;
    font-size: 1.05rem;
}

@media (max-width: 600px) {
    .afcon-steps li {
        padding: 0.9rem 0.25rem 0.75rem;
        font-size: 0.85rem;
    }

    .afcon-hero__title {
        font-size: 2.3rem;
    }

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

.afcon-card .event-content,
.afcon-card .event-content h3 {
    text-align: left;
}

.afcon-card .afcon-match {
    justify-content: flex-start;
}

.event-card-simple.afcon-card .event-content {
    align-items: stretch;
    text-align: left;
}

.event-card-simple.afcon-card .event-content h3 {
    text-align: left;
}

.ticket-col-availability .afcon-avail {
    justify-self: start;
    width: auto;
}

.ticket-categories-table .ticket-col-availability {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Checkout list: price on its own line under the match so names never squeeze */
.afcon-paylist li {
    grid-template-columns: auto minmax(0, 1fr);
}

.afcon-paylist__price {
    grid-column: 2;
    justify-self: end;
    font-size: 1.1rem;
}

.afcon-tcard__actions .afcon-btn {
    white-space: nowrap;
}

/* Sticky bar in "pay" mode once the cart has tickets */
.afcon-sticky-buy.is-pay .afcon-sticky-buy__price small {
    color: var(--gold-bright);
}

/* ==========================================================================
   Ticket stepper (the only control): − N +  — taps update the server cart
   ========================================================================== */
.afcon-qty {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-self: end;
    gap: 0;
    border: 2px solid var(--rule);
    border-radius: 999px;
    background: #fff;
}

.afcon-qty__btn {
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--pitch);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.afcon-qty__btn--plus {
    background: var(--pitch);
    color: var(--ivory);
}

.afcon-qty__btn:hover:not(:disabled) {
    background: var(--parchment);
}

.afcon-qty__btn--plus:hover:not(:disabled) {
    background: var(--pitch-soft);
}

.afcon-qty__btn:active:not(:disabled) {
    transform: scale(0.92);
}

.afcon-qty__btn:disabled {
    color: #c9c2b2;
    cursor: default;
}

.afcon-qty__n {
    min-width: 40px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.afcon-qty.is-busy {
    opacity: 0.6;
    pointer-events: none;
}

.afcon-qty__msg {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    white-space: nowrap;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--danger);
}

.ticket-table-row.is-selected {
    border-color: var(--gold) !important;
    background: #fffaf0 !important;
}

.ticket-categories-table .ticket-col-action {
    display: flex;
    justify-content: flex-end;
}

/* Compact cart bar under the ticket rows */
.afcon-cartbar {
    position: sticky;
    bottom: 1rem;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0 0;
    padding: 0.75rem 0.75rem 0.75rem 1.1rem;
    background: var(--pitch-deep);
    color: var(--ivory);
    border-radius: 14px;
    box-shadow: 0 16px 30px -18px rgba(6, 72, 42, 0.8);
}

.afcon-cartbar[hidden] {
    display: none;
}

.afcon-cartbar__count {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(250, 246, 236, 0.85);
}

.afcon-cartbar__count b {
    color: var(--ivory);
    font-size: 1.1rem;
}

.afcon-cartbar__total {
    margin-left: auto;
    font-family: var(--font-display);
    font-size: 1.25rem;
}

/* Sticky bar: "From … / Buy" until there is something to pay for */
.afcon-sticky-buy__total,
.afcon-sticky-buy__pay,
.afcon-sticky-buy.is-pay .afcon-sticky-buy__from,
.afcon-sticky-buy.is-pay .afcon-sticky-buy__buy {
    display: none !important;
}

.afcon-sticky-buy.is-pay .afcon-sticky-buy__total {
    display: flex !important;
}

.afcon-sticky-buy.is-pay .afcon-sticky-buy__pay {
    display: inline-flex !important;
}

@media (max-width: 768px) {
    /* the sticky bar already carries the total + Pay on phones */
    .afcon-cartbar {
        display: none;
    }

    .ticket-categories-table .ticket-col-action {
        justify-content: stretch;
    }

    .afcon-qty {
        width: 100%;
        justify-content: space-between;
    }

    .afcon-qty__msg {
        left: 0;
        right: auto;
    }
}

/* ==========================================================================
   Compact pass — less scrolling, denser but calm
   ========================================================================== */
main {
    padding: 1.25rem 0;
}

.afcon-hero {
    padding: clamp(1.75rem, 4vw, 3rem) clamp(1.25rem, 4vw, 3rem);
}

.afcon-hero__title {
    font-size: clamp(2.1rem, 4.6vw, 3.6rem);
    margin-bottom: 1.1rem;
}

.afcon-steps {
    margin-top: 1rem;
}

.afcon-steps li {
    padding: 0.8rem 0.5rem;
}

.home-features {
    margin-top: 2rem;
}

.afcon-section-head {
    margin-bottom: 1.1rem;
    padding-bottom: 0.6rem;
}

.events-grid {
    gap: 1rem;
}

.afcon-card .event-image,
.afcon-card .event-image img {
    height: 180px;
    object-fit: cover;
}

.afcon-card .event-content {
    padding: 0.9rem 1rem 1rem;
}

.afcon-card .afcon-facts {
    margin: 0.4rem 0 0.75rem;
    font-size: 0.9rem;
}

.footer {
    margin-top: 2.5rem;
}

.footer .pamoja-stripe {
    margin-bottom: 1.75rem;
}

/* Event page: smaller poster, tighter blocks */
.event-details-container {
    gap: 1.25rem;
}

.event-poster-section .event-poster,
.event-poster-section img {
    max-height: 360px;
    object-fit: cover;
}

.ticket-categories-section {
    margin-top: 1.5rem;
}

.ticket-section-header {
    margin-bottom: 0.75rem;
}

.ticket-categories-table {
    gap: 0.6rem;
}

.ticket-categories-table .ticket-table-row:not(.ticket-table-header) {
    padding: 0.8rem 1rem;
}

.event-directions-wrap,
.event-info-grid {
    margin-top: 1.25rem;
}

@media (max-width: 768px) {
    .afcon-card .event-image,
    .afcon-card .event-image img {
        height: 160px;
    }

    .event-poster-section .event-poster,
    .event-poster-section img {
        max-height: 220px;
    }
}

@media (min-width: 769px) {
    .ticket-categories-table .afcon-qty {
        width: auto;
        flex: 0 0 auto;
    }

    .ticket-categories-table .ticket-table-row:not(.ticket-table-header) {
        grid-template-columns: minmax(0, 1fr) auto auto auto;
    }
}

.ticket-categories-table .ticket-col-availability {
    justify-content: flex-start;
}

/* ==========================================================================
   Waiting line — the most important screen on match day
   ========================================================================== */
.event-queue-room {
    border-radius: 16px;
    overflow: hidden;
}

.event-queue-room__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--gold-bright) !important;
    letter-spacing: 0.18em;
}

.event-queue-room__title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
}

.event-queue-room__message {
    font-size: 1.05rem;
    color: rgba(250, 246, 236, 0.85);
}

.event-queue-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

/* Show only "your place" (huge) and "wait"; capacity numbers stay internal */
.event-queue-metric:nth-child(2),
.event-queue-metric:nth-child(4) {
    display: none;
}

.event-queue-metric:first-child {
    grid-column: 1 / 2;
    text-align: center;
    background: rgba(255, 165, 61, 0.12);
    border-color: rgba(255, 165, 61, 0.45);
}

.event-queue-metric:first-child .event-queue-metric__value {
    font-family: var(--font-display);
    font-size: clamp(3rem, 12vw, 4.5rem);
    line-height: 1;
    color: var(--gold-bright);
}

.event-queue-metric:nth-child(3) {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.event-queue-metric:nth-child(3) .event-queue-metric__value {
    font-size: 1.15rem;
    line-height: 1.25;
}

.event-queue-progress__bar {
    transition: width 0.8s ease;
}

.event-queue-admitted__badge {
    background: var(--gold);
    color: var(--pitch-deep);
    font-weight: 800;
}

/* While waiting on a phone: the line comes first, poster and extras step aside */
@media (max-width: 768px) {
    .is-queue-waiting .event-poster-section,
    .is-queue-waiting .event-directions-wrap,
    .is-queue-waiting .event-info-grid,
    .is-queue-waiting .afcon-sticky-buy {
        display: none !important;
    }

    .is-queue-waiting .event-queue-room {
        margin: 0 -0.25rem;
    }
}

/* ==========================================================================
   Portrait 3:4 event cards
   ========================================================================== */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.1rem;
}

.afcon-card .event-image {
    position: relative;
    height: auto !important;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--pitch-deep);
}

.afcon-card .event-image img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.4s ease;
}

.afcon-card:hover .event-image img {
    transform: scale(1.04);
}

/* soft fade so the bottom of the poster meets the stub */
.afcon-card .event-image::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 35%;
    background: linear-gradient(to top, rgba(6, 72, 42, 0.55), transparent);
    pointer-events: none;
}

.afcon-card .event-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: rgba(250, 246, 236, 0.35);
}

.afcon-card .event-placeholder .afcon-icon {
    width: 64px;
    height: 64px;
}

.afcon-cardchip {
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
    z-index: 2;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.5);
}

.afcon-cardchip--soon { background: var(--gold); color: var(--pitch-deep); }
.afcon-cardchip--last { background: #fff1d6; color: #8a5300; }
.afcon-cardchip--out { background: var(--danger); color: #fff; }

.afcon-card .afcon-match,
.afcon-card .afcon-title {
    font-size: 1.08rem;
}

.afcon-card .afcon-facts li {
    min-width: 0;
}

.afcon-card .afcon-facts li {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 600px) {
    .events-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .afcon-card .event-content {
        padding: 0.7rem 0.7rem 0.8rem;
    }

    .afcon-card .afcon-match {
        font-size: 0.95rem;
        gap: 0.15rem 0.35rem;
    }

    .afcon-card .afcon-team__flag {
        font-size: 1.25em;
    }

    .afcon-card .afcon-vs {
        display: none;
    }

    .afcon-card .afcon-facts {
        font-size: 0.78rem;
        gap: 0.2rem;
    }

    .afcon-card .afcon-facts .afcon-icon {
        width: 1em;
        height: 1em;
    }

    .afcon-card__buy {
        flex-direction: column;
        align-items: stretch;
        gap: 0.45rem;
    }

    .afcon-card .event-simple-price {
        font-size: 1.05rem;
    }

    .afcon-buy {
        min-height: 42px;
        padding: 0.45rem 0.6rem;
        font-size: 0.95rem;
    }

    .afcon-datebadge {
        top: 0.5rem;
        left: 0.5rem;
        min-width: 44px;
        padding: 0.3rem 0.4rem;
    }

    .afcon-datebadge b {
        font-size: 1.2rem;
    }

    .afcon-cardchip {
        left: 0.5rem;
        bottom: 0.5rem;
        font-size: 0.68rem;
    }
}

/* Event page poster in the same 3:4 frame */
.event-poster-section .event-poster,
.event-poster-section img {
    width: 100%;
    max-height: none !important;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center top;
    border-radius: 14px;
}

@media (max-width: 768px) {
    .event-poster-section {
        max-width: 260px;
        margin: 0 auto;
    }
}

/* On-sale banner + per-ticket deadline chips */
.afcon-onsale {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 0.9rem;
    padding: 0.9rem 1.1rem;
    background: var(--pitch-deep);
    color: var(--ivory);
    border-radius: 12px;
    border-left: 6px solid var(--gold);
}

.afcon-onsale .afcon-icon {
    width: 26px;
    height: 26px;
    color: var(--gold-bright);
}

.afcon-onsale__count {
    margin-left: auto;
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--gold-bright);
    font-variant-numeric: tabular-nums;
}

.afcon-deadline {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    background: #fff1d6;
    color: #8a5300;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.afcon-qty .afcon-qty__btn--plus:disabled {
    background: #d9d2c2;
    color: #fff;
}

.afcon-buy.is-off {
    background: #e9e3d6;
    color: var(--muted);
}

.afcon-buy.is-soon {
    background: var(--gold);
    color: var(--pitch-deep);
}

/* ==========================================================================
   Calm pass — Outfit throughout, more air, fewer ornaments
   ========================================================================== */
body {
    background-image: none;
    background-color: var(--ivory);
    line-height: 1.6;
}

h1, h2, h3,
.afcon-match,
.afcon-title,
.afcon-hero__title,
.afcon-fixture__title,
.event-simple-price,
.price-amount,
.ticket-col-name,
.afcon-paytotal b,
.afcon-datebadge b,
.afcon-countdown b,
.event-queue-metric__value {
    font-family: var(--font-family-base, 'Outfit', sans-serif);
    letter-spacing: -0.02em;
}

h1 { font-weight: 800; }
h2, h3 { font-weight: 700; }

main {
    padding: 2rem 0 1rem;
}

/* Hero: quieter pattern, more space, one action */
.afcon-hero {
    background-image:
        radial-gradient(ellipse at 85% 15%, rgba(12, 131, 73, 0.9), transparent 60%),
        linear-gradient(160deg, var(--pitch) 0%, var(--pitch-deep) 75%);
    background-size: auto;
    padding: clamp(2.25rem, 5vw, 3.75rem) clamp(1.5rem, 5vw, 3.75rem);
}

.afcon-hero::before {
    opacity: 0.5;
}

.afcon-hero__title {
    font-weight: 800;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.05;
    margin-bottom: 1.75rem;
}

.afcon-hero__title em {
    font-style: normal;
    font-weight: 800;
}

.afcon-hero__actions {
    margin-bottom: 1.5rem;
}

.afcon-fixture {
    gap: 0.5rem;
    padding: 1.75rem;
}

.afcon-fixture .afcon-match {
    font-size: 1.35rem;
    font-weight: 700;
}

.afcon-countdown {
    margin: 0.75rem 0;
}

.afcon-countdown span {
    background: transparent;
    border: 1px solid var(--rule);
}

/* Steps: just icon + word, no boxes */
.afcon-steps {
    margin: 2.25rem auto 0;
    gap: 1rem;
}

.afcon-steps li {
    background: transparent;
    border: 0;
    padding: 0.5rem;
    font-weight: 600;
    color: var(--ink-soft);
}

.afcon-steps b {
    position: static;
    margin-bottom: 0.1rem;
}

/* Sections */
.home-features {
    margin-top: 3rem;
}

.afcon-section-head {
    border-bottom: 0;
    margin-bottom: 1.5rem;
    padding-bottom: 0;
}

.afcon-section-head::after {
    display: none;
}

.afcon-section-head h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

/* Cards: fewer ornaments, more air */
.events-grid {
    gap: 1.5rem;
}

.event-card .event-content {
    border-top: 0;
}

.event-card .event-content::before,
.event-card .event-content::after {
    display: none;
}

.afcon-card .event-image::after {
    height: 25%;
}

.afcon-card .event-content {
    padding: 1rem 1rem 1.1rem;
    gap: 0.25rem;
}

.afcon-card .afcon-match,
.afcon-card .afcon-title {
    font-size: 1.05rem;
    font-weight: 700;
}

.afcon-vs {
    border: 0;
    padding: 0;
    font-size: 0.7em;
    color: var(--muted);
}

.afcon-card .afcon-facts {
    margin: 0.35rem 0 1rem;
    color: var(--muted);
}

.afcon-card .event-simple-price {
    font-weight: 700;
}

.event-card:hover {
    transform: translateY(-2px);
}

/* Event page: breathing room */
.event-details-container {
    gap: 2rem;
}

.event-info-section .event-header {
    margin-bottom: 0.5rem;
}

.afcon-bigfacts {
    gap: 0.6rem;
}

.afcon-bigfacts li {
    background: transparent;
    border: 1px solid var(--rule);
}

.ticket-categories-section {
    margin-top: 2.5rem;
}

.ticket-section-header h2 {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
}

.ticket-categories-table {
    gap: 0.85rem;
}

.ticket-categories-table .ticket-table-row:not(.ticket-table-header) {
    padding: 1.1rem 1.25rem;
    box-shadow: none;
    border-left-width: 4px;
}

.ticket-col-name h3 {
    font-size: 1.15rem;
}

.ticket-col-price .price-amount,
.ticket-col-price .price-free {
    font-size: 1.3rem;
}

.event-directions-wrap,
.event-info-grid {
    margin-top: 2.5rem;
}

/* Footer: one quiet row */
.footer {
    margin-top: 4rem;
    padding: 1.75rem 0;
}

.footer-bottom {
    padding-top: 0;
    border-top: 0;
}

@media (max-width: 600px) {
    main {
        padding-top: 1.25rem;
    }

    .afcon-hero__title {
        font-size: 2.3rem;
    }

    .events-grid {
        gap: 1rem;
    }

    /* phones: teams + date + price only */
    .afcon-card .afcon-facts li:nth-child(2) {
        display: none;
    }

    .afcon-steps {
        margin-top: 1.5rem;
    }

    .afcon-steps li {
        font-size: 0.85rem;
    }
}

.afcon-hero {
    margin-top: 0.5rem;
}

.floating-qr-btn,
.home-qr-code-container {
    display: none !important;
}

@media (max-width: 768px) {
    /* the match list right below already shows the next match */
    .afcon-fixture {
        display: none;
    }

    .afcon-hero__inner {
        gap: 0;
    }

    .afcon-hero__title {
        margin-bottom: 1.25rem;
    }
}

/* Once admitted, the waiting panel shrinks to one slim line: "You are in! · Time left" */
.event-queue-room[data-status="admitted"] {
    box-shadow: none;
}

.event-queue-room[data-status="admitted"] .event-queue-room__glow,
.event-queue-room[data-status="admitted"] .event-queue-room__eyebrow,
.event-queue-room[data-status="admitted"] .event-queue-room__message,
.event-queue-room[data-status="admitted"] .event-queue-admitted__badge,
.event-queue-room[data-status="admitted"] .event-queue-room__actions {
    display: none !important;
}

.event-queue-room[data-status="admitted"] .event-queue-room__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 0.9rem 1.25rem;
}

.event-queue-room[data-status="admitted"] .event-queue-room__title {
    margin: 0;
    font-size: 1.2rem;
}

.event-queue-room[data-status="admitted"] .event-queue-admitted,
.event-queue-room[data-status="admitted"] .event-queue-admitted__timer {
    margin: 0;
}

.event-queue-room[data-status="admitted"] .event-queue-admitted__timer strong {
    color: var(--gold-bright);
    font-size: 1.1rem;
}

.event-info-section .event-header {
    border-bottom: 0;
    padding-bottom: 0;
}

.event-info-section hr,
.event-header + hr {
    display: none;
}

/* Only warn when it matters: hide the plain "Available" badge */
.ticket-categories-table .afcon-avail--ok {
    display: none;
}

.ticket-categories-table .ticket-col-availability {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
}

.ticket-categories-table .ticket-col-availability:empty,
.ticket-categories-table .ticket-col-availability:not(:has(.afcon-avail:not(.afcon-avail--ok), .afcon-deadline)) {
    display: none;
}

.event-details-container {
    align-items: start;
}
