/*
 * Baris brand layer — loaded last (after style.css, afcon-theme.css, ticket-kit.css).
 * Brand green + ticket orange from the Baris logo, the real logo files in assets/brand,
 * and the AFCON 2027 "Pamoja" colours as accents. Restyles only; no behaviour here.
 */

:root {
    --bx-green: #096b3c;          /* logo background green */
    --bx-green-deep: #06482a;
    --bx-green-soft: #0c8349;
    --bx-orange: #fb8916;         /* logo ticket orange */
    --bx-orange-bright: #ffa53d;
    --bx-orange-ink: #05311d;     /* text on orange (5.9:1) */
    --bx-page: #f4f6f2;

    /* AFCON 2027 pattern colours */
    --pj-green: #00c853;
    --pj-yellow: #ffe01b;
    --pj-red: #e53935;
    --pj-black: #1d1d1b;
    --pj-cyan: #00c8ff;

    --tk-page: var(--bx-page);
    --tk-soft: #f1f5f0;
    --tk-ring: #e2e8e0;
    --tk-line: #cfd9cf;
    --tk-text: #2f3a33;
    --tk-muted: #6b776f;
}

body { background: var(--bx-page) !important; }

/* ---------- Header: brand green with the real logo ---------- */
.navbar {
    background: var(--bx-green) !important;
    border-bottom: 0 !important;
    padding: 0.4rem 0 !important;
}

.navbar .nav-logo {
    display: inline-flex;
    align-items: center;
}

.navbar .nav-logo img {
    filter: none !important;
    height: 34px;
    width: auto;
}

.navbar .nav-logo img.nav-logo__brand {
    height: 50px;
    margin: -4px 0 -6px;          /* the lockup has air built in; keep the bar slim */
}

.hamburger span { background: #fff !important; }

.cart-link,
.cart-link svg { color: #fff !important; }

.cart-badge {
    background: var(--bx-orange) !important;
    color: var(--bx-orange-ink) !important;
}

.pamoja-stripe { height: 5px; }

@media (min-width: 769px) {
    .nav-menu a { color: rgba(255, 255, 255, 0.86) !important; }

    .nav-menu a:hover,
    .nav-menu a.active { color: #fff !important; }

    .nav-menu a:not(.btn-sell)::before { background: var(--bx-orange) !important; }

    .nav-menu .tk-menu-auth {
        background: var(--bx-orange);
        border-color: var(--bx-orange) !important;
        color: var(--bx-orange-ink) !important;
        font-weight: 700;
    }

    .nav-menu .tk-menu-auth:hover {
        background: var(--bx-orange-bright);
        color: var(--bx-orange-ink) !important;
    }

    .nav-menu a.btn-sell {
        border-color: rgba(255, 255, 255, 0.5) !important;
        color: #fff !important;
    }
}

@media (max-width: 768px) {
    .navbar .nav-logo img.nav-logo__brand { height: 46px; }

    /* slide-in menu: emblem in the corner of the head */
    .tk-menu-head { align-items: center !important; }

    .tk-menu-head__emblem {
        display: block;
        width: auto;
        height: 44px;
        margin-left: auto;
    }

    .tk-menu-head__hint { display: none; }

    .hamburger.active span { background: var(--bx-green) !important; }
}

@media (min-width: 769px) {
    .tk-menu-head__emblem { display: none; }
}

/* ---------- Buttons: orange is the "buy" colour ---------- */
.afcon-btn--gold,
.afcon-buy.is-soon {
    background: var(--bx-orange) !important;
    color: var(--bx-orange-ink) !important;
}

.afcon-btn--gold:hover { background: var(--bx-orange-bright) !important; }

.btn-primary,
.afcon-buy,
.afcon-btn--pitch { background: var(--bx-green) !important; }

.btn-primary:hover,
.afcon-buy:hover,
.afcon-btn--pitch:hover { background: var(--bx-green-soft) !important; }

:focus-visible { outline-color: var(--bx-orange); }

/* ---------- Home hero: ticket + AFCON poster panel ---------- */
.tk-hero.bx-hero {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 30%);
    background:
        radial-gradient(ellipse at 20% 0%, rgba(12, 131, 73, 0.9), transparent 60%),
        linear-gradient(160deg, var(--bx-green) 0%, var(--bx-green-deep) 90%) !important;
    box-shadow: 0 22px 34px -24px rgba(6, 72, 42, 0.85);
}

.bx-hero .tk-hero__main {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.5rem, 3.2vw, 2.6rem) clamp(1.5rem, 3.4vw, 2.75rem);
    overflow: hidden;
}

.bx-hero .tk-hero__main > *:not(.bx-hero__tickets) {
    position: relative;
    z-index: 1;
}

.bx-hero .afcon-hero__title {
    font-size: clamp(2.1rem, 4.6vw, 3.5rem) !important;
    letter-spacing: -0.02em;
    margin: 0.55rem 0 0.7rem;
}

.bx-hero .afcon-hero__title em {
    font-style: normal;
    font-weight: 800;
    color: var(--bx-orange);
}

.bx-hero .tk-label--light { color: var(--bx-orange-bright) !important; }

.bx-hosts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.1rem;
    margin: 0 0 1.3rem;
    padding: 0;
    list-style: none;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
}

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

.bx-hosts span { font-size: 1.15rem; line-height: 1; }

.bx-hero .tk-hero__row .afcon-btn {
    min-height: 52px;
    padding: 0 1.7rem;
    font-size: 1.05rem;
}

.bx-hero .tk-hero__next {
    border-top-color: rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.9);
}

.bx-hero .tk-hero__next-label,
.bx-hero .tk-hero__next .afcon-countdown { color: var(--bx-orange-bright); }

/* the tickets artwork, tucked into the right of the text panel */
.bx-hero__tickets {
    position: absolute;
    z-index: 0;
    top: 50%;
    right: clamp(0.5rem, 3vw, 2.5rem);
    width: auto;
    height: 82%;
    max-height: 300px;
    transform: translateY(-50%) rotate(6deg);
    pointer-events: none;
    user-select: none;
}

/* the poster panel: Pamoja pattern, green oval, official lockup */
.bx-hero__afcon {
    position: relative;
    display: grid;
    place-items: center;
    padding: 1.1rem 1rem;
    background: #075a33 url("../brand/pamoja-pattern.svg") center / cover no-repeat;
    border-left: 2px dashed rgba(255, 255, 255, 0.4);
}

.bx-hero__oval {
    display: grid;
    place-items: center;
    width: min(100%, 212px);
    aspect-ratio: 3 / 4.5;
    padding: 9% 13%;
    border-radius: 50%;
    background: #026e4c;                     /* the lockup's own green */
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.28), 0 18px 30px -18px rgba(0, 0, 0, 0.6);
}

.bx-hero__oval img {
    display: block;
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

@media (max-width: 1080px) {
    .bx-hero__tickets { opacity: 0.2; right: -1.5rem; }
}

@media (max-width: 720px) {
    .tk-hero.bx-hero {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        -webkit-mask: none;
        mask: none;
    }

    .bx-hero__afcon {
        order: -1;
        padding: 0.9rem 1rem;
        border-left: 0;
        border-bottom: 2px dashed rgba(255, 255, 255, 0.4);
    }

    .bx-hero__oval {
        width: 150px;
        padding: 8% 12%;
    }

    .bx-hero__tickets {
        opacity: 0.16;
        top: 46%;
        right: -2.5rem;
        height: 78%;
    }

    .bx-hero .tk-hero__row .afcon-btn { flex: 1 1 100%; }
}

/* ---------- Stand-in posters (events without an uploaded image) ---------- */
.tk-poster {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 40%, rgba(12, 131, 73, 0.95), transparent 62%),
        linear-gradient(165deg, var(--bx-green) 0%, var(--bx-green-deep) 100%);
    container-type: inline-size;
}

/* pattern corners, echoing the tournament poster */
.tk-poster::before,
.tk-poster::after {
    content: '';
    position: absolute;
    width: 58%;
    aspect-ratio: 1;
    border-radius: 50% 50% 50% 8%;
    pointer-events: none;
}

.tk-poster::before {
    top: -30%;
    left: -24%;
    background: var(--pj-yellow);
    box-shadow: 26px 26px 0 -6px var(--pj-green);
    transform: rotate(8deg);
}

.tk-poster::after {
    right: -26%;
    bottom: -32%;
    background: var(--pj-red);
    box-shadow: -24px -22px 0 -6px var(--pj-cyan);
    transform: rotate(188deg);
}

.event-image .tk-poster .tk-poster__emblem,
.ev-poster .tk-poster .tk-poster__emblem,
.tk-poster .tk-poster__emblem {
    position: absolute;
    z-index: 1;
    top: 7%;
    left: 50%;
    width: auto !important;
    height: 34% !important;
    max-height: none !important;
    object-fit: contain !important;
    border-radius: 0 !important;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
    transform: translateX(-50%) !important;
}

.tk-poster--event .tk-poster__emblem {
    top: 6% !important;
    left: auto !important;
    right: 6%;
    height: 30% !important;
    transform: none !important;
}

.tk-poster__teams {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5cqw;
    margin-top: 20%;
}

.tk-poster__flag {
    display: grid;
    place-items: center;
    width: 31cqw;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25), 0 10px 18px -8px rgba(0, 0, 0, 0.55);
    font-size: 17cqw;
    line-height: 1;
    font-weight: 800;
    color: var(--bx-green);
}

.tk-poster__vs {
    font-size: 6.5cqw;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bx-orange-bright);
}

.event-image .tk-poster .tk-poster__art,
.ev-poster .tk-poster .tk-poster__art,
.tk-poster .tk-poster__art {
    position: relative;
    z-index: 1;
    width: auto !important;
    height: 74% !important;
    max-width: 70%;
    object-fit: contain !important;
    border-radius: 0 !important;
    transform: rotate(-4deg) !important;
}

.afcon-card:hover .tk-poster .tk-poster__art { transform: rotate(-4deg) scale(1.05) !important; }

.ev-poster { background: var(--bx-green); }

/* ---------- Empty states use the tickets artwork ---------- */
.tk-empty__icon {
    width: 84px;
    height: 84px;
    border-radius: 22px;
    background: var(--bx-green) url("../brand/tickets.png") center / 62% no-repeat;
}

.tk-empty__icon .afcon-icon { display: none; }

/* ---------- Footer ---------- */
.tk-footer {
    position: relative;
    background: var(--bx-green-deep) !important;
    border-top: 5px solid var(--bx-orange);
}

.tk-footer__logo {
    display: inline-block;
    margin: -0.5rem 0 0.35rem -0.35rem;
}

.tk-footer__logo img {
    display: block;
    width: auto;
    height: 78px;
}

.tk-footer__grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) auto; }

.tk-footer__afcon img {
    display: block;
    width: auto;
    height: 150px;
}

@media (max-width: 700px) {
    .tk-footer__grid { grid-template-columns: 1fr 1fr; }

    .tk-footer__afcon {
        grid-column: 1 / -1;
        display: flex;
        justify-content: center;
        padding-top: 0.5rem;
    }

    .tk-footer__afcon img { height: 130px; }
}

/* ---------- Waiting room: the main action is orange on the green panel ---------- */
.event-queue-room .btn-primary,
.event-queue-room a.btn:not(.btn-secondary) {
    background: var(--bx-orange) !important;
    color: var(--bx-orange-ink) !important;
}

.event-queue-room .btn-primary:hover,
.event-queue-room a.btn:not(.btn-secondary):hover { background: var(--bx-orange-bright) !important; }

/* ---------- Phone field: +256 is fixed, the box holds only 7XX XXX XXX ---------- */
.mobile-number-group .flag-prefix {
    gap: 0.45rem;
    background: var(--tk-soft);
    border-right-color: var(--tk-line);
}

.flag-prefix__code {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--bx-green);
}

.mobile-number-group { border-color: var(--tk-line); }

.mobile-number-group:focus-within {
    border-color: var(--bx-orange);
    box-shadow: 0 0 0 4px rgba(251, 137, 22, 0.18);
}

.afcon-phone__hint {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.82rem;
    color: var(--tk-muted);
}

.mobile-number-group input,
.mobile-number-group input:focus,
.mobile-number-group input:focus-visible {
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}
