/* ==========================================================================
   CCS HAU Kisan Mela 2026 — theme
   Palette taken from the official mela poster: deep field green + wheat gold.
   ========================================================================== */

:root {
    --km-green-900: #06301a;
    --km-green-800: #0b4425;
    --km-green-700: #0f5a2f;
    --km-green-600: #15803d;
    --km-green-500: #1fa24c;
    --km-leaf: #4ade80;

    --km-gold-600: #b45309;
    --km-gold-500: #e8940c;
    --km-gold-400: #f5b324;
    --km-gold-300: #ffd764;

    --km-cream: #fbf8f1;
    --km-ink: #12241a;
    --km-muted: #5d6f63;
    --km-line: rgba(15, 90, 47, .14);

    --km-danger: #b91c1c;
    --km-warn: #b45309;
    --km-info: #0e7490;

    --km-shadow-sm: 0 2px 8px rgba(6, 48, 26, .08);
    --km-shadow-md: 0 14px 34px -14px rgba(6, 48, 26, .35);
    --km-shadow-lg: 0 30px 70px -30px rgba(6, 48, 26, .55);
    --km-radius: 20px;
}

* { box-sizing: border-box; }

.km-page {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
    color: var(--km-ink);
    background: var(--km-cream);
    margin: 0;
    overflow-x: clip;
}

.km-hi { font-family: 'Noto Sans Devanagari', 'Plus Jakarta Sans', sans-serif; }

/* ---------- language toggle ------------------------------------------------
   Default (no attribute, or html[data-lang="hi"]): Hindi shows, English hides.
   html[data-lang="en"]: flips it. `revert` hands each element back to
   whatever display its own rules define (block/inline/flex/...), so this
   works generically without hardcoding a display value per element. */
[data-i18n="en"] { display: none !important; }
html[data-lang="en"] [data-i18n="hi"] { display: none !important; }
html[data-lang="en"] [data-i18n="en"] { display: revert !important; }

a { text-decoration: none; }

.km-section { padding: clamp(3.5rem, 7vw, 6rem) 0; position: relative; }

.km-section--tint {
    background:
        radial-gradient(1200px 400px at 12% 0%, rgba(31, 162, 76, .07), transparent 60%),
        radial-gradient(900px 400px at 92% 100%, rgba(245, 179, 36, .12), transparent 60%),
        #fffdf8;
}

.km-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .78rem; font-weight: 700; letter-spacing: .16em;
    text-transform: uppercase; color: var(--km-green-600);
    background: rgba(31, 162, 76, .1); border: 1px solid rgba(31, 162, 76, .2);
    padding: .4rem .9rem; border-radius: 999px;
}

.km-h2 {
    font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 800;
    letter-spacing: -.02em; line-height: 1.15; margin: 1rem 0 .65rem;
}

.km-lede { color: var(--km-muted); font-size: 1.06rem; max-width: 62ch; margin: 0 auto; }

.km-gold-text {
    background: linear-gradient(120deg, var(--km-gold-600), var(--km-gold-400) 45%, var(--km-gold-300));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- navbar -------------------------------------------------------- */

.km-nav {
    position: sticky; top: 0; z-index: 1040;
    background: linear-gradient(90deg, var(--km-green-900), var(--km-green-800) 60%, var(--km-green-700));
    box-shadow: 0 2px 16px rgba(6, 48, 26, .28);
}

.km-nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }

.km-nav__brand { display: flex; align-items: center; gap: .7rem; color: #fff; }
.km-nav__brand img { height: 50px; width: 50px; object-fit: cover; background: #fff; border-radius: 50%; padding: 1px; }
.km-nav__brand strong { display: block; font-size: 1.05rem; line-height: 1.1; }
.km-nav__brand small { font-size: .86rem; font-weight: 600; color: rgba(255, 255, 255, .82); }

.km-nav__toggle {
    display: none; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2);
    color: #fff; width: 42px; height: 42px; border-radius: 12px; font-size: 1.1rem;
}

.km-nav__links { display: flex; align-items: center; gap: .3rem; }

.km-nav__links a {
    color: rgba(255, 255, 255, .86); font-weight: 600; font-size: .92rem;
    padding: .55rem .8rem; border-radius: 10px; transition: background .18s, color .18s;
    white-space: nowrap;
}
.km-nav__links a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.km-nav__links a.is-active { background: rgba(255, 255, 255, .14); color: var(--km-gold-300); }
.km-nav__links a i { font-size: .82rem; margin-right: .2rem; }

.km-nav__admin { color: rgba(255, 255, 255, .6) !important; }

.km-nav__cta {
    background: linear-gradient(135deg, var(--km-gold-500), var(--km-gold-300));
    color: #3d2503 !important; font-weight: 700 !important; margin-left: .4rem;
}
.km-nav__cta:hover { color: #3d2503 !important; filter: brightness(1.06); }

.km-lang {
    display: inline-flex; align-items: center; gap: 2px;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px; padding: 3px; margin-left: .5rem; flex: 0 0 auto;
}
.km-lang button {
    border: 0; background: transparent; color: rgba(255, 255, 255, .75);
    font-weight: 700; font-size: .78rem; padding: .4rem .7rem; border-radius: 999px;
    cursor: pointer; transition: background .18s, color .18s;
}
.km-lang button.is-active { background: #fff; color: var(--km-green-800); }

.km-nav__founder {
    display: inline-flex; align-items: center; gap: .5rem; margin-left: .6rem; flex: 0 0 auto;
}
.km-nav__founder img {
    width: 38px; height: 38px; border-radius: 50%; object-fit: cover;
    border: 2px solid var(--km-gold-400);
}
.km-nav__founder span { display: flex; flex-direction: column; line-height: 1.2; }
.km-nav__founder b { font-size: .72rem; font-weight: 800; color: #fff; }
.km-nav__founder em { font-style: normal; font-size: .62rem; font-weight: 600; color: var(--km-gold-300); }

@media (max-width: 1199.98px) {
    .km-nav__founder span { display: none; }
}

@media (max-width: 991.98px) {
    .km-lang { margin: .6rem .9rem 0; }
    .km-nav__founder { margin: .6rem .9rem 0; }
    .km-nav__toggle { display: inline-flex; align-items: center; justify-content: center; }
    .km-nav__links {
        position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: .2rem;
        background: var(--km-green-800); padding: .8rem 1rem 1.2rem;
        box-shadow: 0 18px 30px -12px rgba(0, 0, 0, .5);
        display: none;
    }
    .km-nav__links.is-open { display: flex; }
    .km-nav__links a { padding: .75rem .9rem; }
    .km-nav__cta { margin-left: 0; text-align: center; }
}

/* ---------- flash --------------------------------------------------------- */

.km-flash {
    border-radius: 14px; padding: .9rem 1.2rem; font-weight: 600;
    border: 1px solid; background: #fff;
}
.km-flash--success { color: var(--km-green-700); border-color: rgba(31, 162, 76, .35); background: #f2fbf5; }
.km-flash--danger  { color: var(--km-danger);    border-color: rgba(185, 28, 28, .3);  background: #fef2f2; }
.km-flash--warning { color: var(--km-warn);      border-color: rgba(180, 83, 9, .3);   background: #fffbeb; }
.km-flash--info    { color: var(--km-info);      border-color: rgba(14, 116, 144, .3); background: #ecfeff; }

/* ---------- buttons ------------------------------------------------------- */

.km-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    padding: .95rem 1.7rem; border-radius: 999px; border: 1px solid transparent;
    font-weight: 700; font-size: 1rem; line-height: 1; cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.km-btn:hover { transform: translateY(-2px); }
.km-btn:disabled, .km-btn.is-disabled { opacity: .5; pointer-events: none; transform: none; }

.km-btn--primary {
    background: linear-gradient(135deg, var(--km-green-600), var(--km-green-500));
    color: #fff; box-shadow: 0 12px 26px -12px rgba(21, 128, 61, .9);
}
.km-btn--primary:hover { color: #fff; }

.km-btn--gold {
    background: linear-gradient(135deg, var(--km-gold-500), var(--km-gold-300));
    color: #3d2503; box-shadow: 0 12px 26px -12px rgba(232, 148, 12, .95);
}
.km-btn--gold:hover { color: #3d2503; }

.km-btn--ghost {
    background: rgba(255, 255, 255, .72); border-color: var(--km-line); color: var(--km-green-700);
}
.km-btn--ghost:hover { background: #fff; color: var(--km-green-700); }

.km-btn--outline { background: transparent; border-color: var(--km-line); color: var(--km-green-700); }
.km-btn--outline:hover { background: #f2fbf5; color: var(--km-green-700); }

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

.km-btn--lg { padding: 1.1rem 2.1rem; font-size: 1.05rem; }
.km-btn--sm { padding: .5rem 1rem; font-size: .86rem; }

/* ---------- hero ---------------------------------------------------------- */

.km-hero {
    position: relative; isolation: isolate; color: #fff; overflow: hidden;
    padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem);
    background: var(--km-green-800); /* fallback while the slideshow images load */
}

.km-hero__bgs { position: absolute; inset: 0; z-index: -4; }
.km-hero__bgslide {
    position: absolute; inset: 0; background-position: center; background-size: cover;
    background-repeat: no-repeat; opacity: 0; transition: opacity 1.8s ease-in-out;
}
.km-hero__bgslide.is-active { opacity: 1; }

.km-hero__overlay {
    position: absolute; inset: 0; z-index: -3;
    background:
        radial-gradient(900px 620px at 50% 42%, rgba(6, 48, 26, .58), rgba(6, 48, 26, .3) 70%),
        radial-gradient(1000px 520px at 78% -10%, rgba(245, 179, 36, .22), transparent 62%),
        radial-gradient(900px 600px at 5% 8%, rgba(31, 162, 76, .18), transparent 60%),
        linear-gradient(180deg, rgba(8, 56, 30, .38) 0%, rgba(13, 77, 41, .3) 45%, rgba(18, 98, 52, .34) 100%);
}

.km-hero::after {
    content: ""; position: absolute; inset: auto 0 0 0; height: 120px; z-index: -1;
    background: linear-gradient(180deg, transparent, rgba(251, 248, 241, .96) 88%, var(--km-cream));
}

.km-hero__grain {
    position: absolute; inset: 0; z-index: -2; opacity: .32;
    background-image: radial-gradient(rgba(255, 255, 255, .35) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: linear-gradient(180deg, #000, transparent 70%);
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
}

.km-hero__uni { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 1.6rem; }
.km-hero__uni-text { text-align: center; }
.km-hero__uni img {
    height: 76px; width: 76px; object-fit: cover; background: #fff;
    border-radius: 50%; padding: 2px; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .6);
}
.km-hero__uni-text strong { display: block; font-size: 1.3rem; font-weight: 800; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.km-hero__uni-text span { font-size: 1rem; font-weight: 500; color: rgba(255, 255, 255, .92); text-shadow: 0 2px 6px rgba(0,0,0,.6); }
.km-hero__uni-text em {
    display: block; font-style: normal; font-size: .78rem; font-weight: 700;
    color: var(--km-gold-300); margin-top: .15rem; letter-spacing: .02em;
}

.km-hero__tag {
    display: inline-flex; align-items: center; gap: .55rem;
    font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: var(--km-gold-300); background: rgba(255, 215, 100, .12);
    border: 1px solid rgba(255, 215, 100, .3);
    padding: .45rem 1rem; border-radius: 999px; margin-bottom: 1.1rem;
}

.km-hero__title {
    font-weight: 900; line-height: .96; letter-spacing: -.02em;
    font-size: clamp(3.2rem, 8.5vw, 6.4rem); margin: 0 0 .2rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, .55), 0 18px 40px rgba(0, 0, 0, .5);
}

.km-hero__title-en {
    font-family: 'Plus Jakarta Sans', sans-serif; display: block;
    font-size: clamp(1rem, 2.1vw, 1.45rem); font-weight: 700;
    letter-spacing: .34em; text-transform: uppercase;
    color: rgba(255, 255, 255, .9); margin-top: .9rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .6);
}

.km-hero__sub {
    font-size: clamp(1.05rem, 1.7vw, 1.2rem); color: rgba(255, 255, 255, .94);
    text-shadow: 0 2px 8px rgba(0, 0, 0, .55);
    max-width: 44ch; margin: 1.4rem auto 1.9rem;
}

.km-theme {
    background: rgba(255, 215, 100, .1); border: 1px solid rgba(255, 215, 100, .3);
    border-radius: 14px; padding: .9rem 1.2rem; margin: 0 auto 1.7rem; max-width: 46ch;
}
.km-theme__label {
    display: block; font-size: .74rem; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: var(--km-gold-300); margin-bottom: .3rem;
}
.km-theme p { margin: 0; font-size: 1rem; font-weight: 700; line-height: 1.4; color: #fff; }
.km-theme__en { margin-top: .3rem !important; font-size: .84rem !important; font-weight: 500 !important;
    color: rgba(255, 255, 255, .74) !important; font-style: italic; }

.km-hero__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-bottom: 2rem; }

.km-chip {
    display: inline-flex; align-items: center; gap: .6rem;
    padding: .7rem 1.1rem; border-radius: 14px;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
    font-size: .93rem;
}
.km-chip i { color: var(--km-gold-300); }

.km-chip__lines { display: flex; flex-direction: column; text-align: left; line-height: 1.35; }
.km-chip__lines small {
    font-size: .78rem; font-weight: 500; margin-top: .1rem;
    color: rgba(255, 255, 255, .78);
}

.km-hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; }

.km-hero__note { margin-top: 1.4rem; font-size: .88rem; color: rgba(255, 255, 255, .85); text-shadow: 0 2px 6px rgba(0,0,0,.6); }
.km-hero__note i { color: var(--km-leaf); }

/* poster */
.km-poster { position: relative; max-width: 420px; margin-inline: auto; }
.km-poster__frame {
    border-radius: 26px; overflow: hidden; border: 8px solid rgba(255, 255, 255, .9);
    box-shadow: var(--km-shadow-lg); transform: rotate(2deg);
    transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.km-poster__frame:hover { transform: rotate(0) scale(1.02); }
.km-poster__frame img { display: block; width: 100%; height: auto; }

.km-poster__badge {
    position: absolute; display: flex; align-items: center; gap: .75rem;
    background: #fff; color: var(--km-ink); border-radius: 16px; padding: .8rem 1.1rem;
    box-shadow: var(--km-shadow-md); animation: km-float 5s ease-in-out infinite;
}
.km-poster__badge i { font-size: 1.2rem; color: var(--km-green-600); }
.km-poster__badge b { display: block; font-size: 1.15rem; line-height: 1.1; }
.km-poster__badge span { font-size: .76rem; color: var(--km-muted); }
.km-poster__badge--a { top: 12%; left: -12%; }
.km-poster__badge--b { bottom: 14%; right: -10%; animation-delay: 1.6s; }

@keyframes km-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- medallion badges (poster-style) --------------------------------- */

.km-medallions-section { overflow-x: hidden; }

.km-medallions {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 1.1rem;
    max-width: 970px; margin: 0 auto; padding: .5rem .25rem 1rem;
}

.km-medallion {
    flex: 0 0 auto; width: 140px; height: 140px;
    border-radius: 50%;
    background: linear-gradient(155deg, var(--km-gold-400), var(--km-gold-600));
    padding: 5px;
    box-shadow: 0 14px 26px -12px rgba(180, 83, 9, .5), inset 0 0 0 2px rgba(255,255,255,.4);
    transition: transform .22s ease, box-shadow .22s ease;
}
.km-medallion:hover { transform: translateY(-5px) scale(1.03); box-shadow: 0 20px 32px -12px rgba(180, 83, 9, .6); }

.km-medallion__ring {
    width: 100%; height: 100%; border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, #fffdf6, #fff3d6 70%);
    border: 2px dashed rgba(180, 83, 9, .45);
    display: flex; align-items: center; justify-content: center;
    padding: 1.1rem;
}
.km-medallion__ring p {
    margin: 0; text-align: center; font-size: .78rem; font-weight: 800;
    line-height: 1.28; color: var(--km-gold-600);
}

@media (max-width: 575.98px) {
    .km-medallion { width: 118px; height: 118px; }
    .km-medallion__ring p { font-size: .7rem; }
}

/* ---------- countdown ----------------------------------------------------- */

.km-count { position: relative; margin-top: -2.5rem; z-index: 3; }

.km-count__card {
    position: relative; isolation: isolate; overflow: hidden; color: #fff;
    background: linear-gradient(120deg, var(--km-green-800), var(--km-green-700) 55%, var(--km-green-600));
    border-radius: calc(var(--km-radius) + 4px);
    box-shadow: var(--km-shadow-lg), 0 0 0 1px rgba(255, 255, 255, .06) inset;
    padding: 2.1rem clamp(1.1rem, 3vw, 2.7rem);
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.km-count__card::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(500px 220px at 8% 0%, rgba(245, 179, 36, .28), transparent 60%),
        radial-gradient(420px 260px at 100% 120%, rgba(255, 255, 255, .12), transparent 65%);
}
.km-count__card::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--km-gold-500), var(--km-gold-300) 50%, var(--km-gold-500));
}
.km-count__label { display: flex; align-items: center; gap: .9rem; }
.km-count__headline { display: block; font-weight: 800; font-size: 1.1rem; color: #fff; }
.km-count__dates { display: block; font-weight: 500; font-size: .86rem; color: rgba(255, 255, 255, .72); }
.km-count__icon {
    flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--km-gold-500), var(--km-gold-300));
    color: #3d2503; font-size: 1.1rem; box-shadow: 0 8px 18px -6px rgba(232, 148, 12, .85);
}
.km-count__grid { display: flex; align-items: center; gap: .55rem; }
.km-count__box {
    position: relative; min-width: 78px; text-align: center; padding: .8rem .4rem .7rem; border-radius: 14px;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
    backdrop-filter: blur(6px); transition: transform .18s ease, background .18s ease;
}
.km-count__box:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .13); }
.km-count__box:not(:last-child)::after {
    content: ':'; position: absolute; right: -.75rem; top: 50%; transform: translateY(-70%);
    font-size: 1.5rem; font-weight: 800; color: var(--km-gold-300);
}
.km-count__box b {
    display: block; font-size: 1.9rem; font-weight: 800;
    color: var(--km-gold-300); font-variant-numeric: tabular-nums; text-shadow: 0 2px 14px rgba(245, 179, 36, .35);
}
.km-count__box span { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.km-count__box--seconds { animation: km-count-glow 1s ease-in-out infinite; }
@keyframes km-count-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 179, 36, 0); }
    50% { box-shadow: 0 0 0 4px rgba(245, 179, 36, .18); }
}

.km-count__cta { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.km-count__qr {
    display: inline-flex; align-items: center; gap: .9rem; background: #fff; border-radius: 14px;
    padding: .6rem 1.2rem .6rem .6rem; box-shadow: 0 10px 22px -8px rgba(0, 0, 0, .4);
}
.km-count__qr img { width: 92px; height: 92px; border-radius: 8px; display: block; }
.km-count__qr span { display: flex; flex-direction: column; line-height: 1.3; }
.km-count__qr b { color: var(--km-green-800); font-size: .98rem; }
.km-count__qr em { font-style: normal; color: var(--km-muted); font-size: .84rem; }

/* ---------- stats --------------------------------------------------------- */

.km-stat {
    height: 100%; background: #fff; border: 1px solid var(--km-line); border-radius: 18px;
    padding: 1.5rem; text-align: center; box-shadow: var(--km-shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}
.km-stat:hover { transform: translateY(-4px); box-shadow: var(--km-shadow-md); }
.km-stat i {
    font-size: 1.35rem; color: var(--km-green-600); background: rgba(31, 162, 76, .1);
    width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 14px; margin-bottom: .8rem;
}
.km-stat b {
    display: block; font-size: 2.1rem; font-weight: 800; color: var(--km-green-800);
    font-variant-numeric: tabular-nums; line-height: 1;
}
.km-stat span { font-size: .9rem; color: var(--km-muted); }

.km-live-dot {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .7);
    animation: km-pulse 2s infinite; margin-right: .45rem;
}
@keyframes km-pulse {
    70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ---------- cards --------------------------------------------------------- */

.km-card {
    height: 100%; background: #fff; border: 1px solid var(--km-line);
    border-radius: var(--km-radius); padding: 1.8rem; box-shadow: var(--km-shadow-sm);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    position: relative; overflow: hidden;
}
.km-card::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
    background: linear-gradient(90deg, var(--km-green-500), var(--km-gold-400));
    opacity: 0; transition: opacity .22s ease;
}
.km-card:hover { transform: translateY(-6px); box-shadow: var(--km-shadow-md); border-color: rgba(31, 162, 76, .32); }
.km-card:hover::before { opacity: 1; }

.km-card__icon {
    width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
    font-size: 1.4rem; color: #fff; margin-bottom: 1.1rem;
    background: linear-gradient(140deg, var(--km-green-600), var(--km-green-500));
    box-shadow: 0 10px 22px -12px rgba(21, 128, 61, .9);
}
.km-card--gold .km-card__icon {
    background: linear-gradient(140deg, var(--km-gold-500), var(--km-gold-300));
    color: #3d2503; box-shadow: 0 10px 22px -12px rgba(232, 148, 12, .9);
}
.km-card h3 { font-size: 1.16rem; font-weight: 800; margin-bottom: .1rem; }
.km-card__hi { font-size: 1.02rem; color: var(--km-green-700); font-weight: 700; margin-bottom: .55rem; }

/* ---------- highlight cards (colourful, rounded, 3D) ----------------------- */

.km-highlight {
    height: 100%; border-radius: 28px; padding: 1.9rem 1.7rem;
    display: flex; flex-direction: column; align-items: flex-start; gap: 1rem;
    border: 1px solid transparent; position: relative; overflow: hidden;
    transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease;
    box-shadow: 0 14px 0 -6px rgba(0,0,0,.06), 0 20px 34px -18px rgba(0,0,0,.28);
}
.km-highlight:hover { transform: translateY(-8px) scale(1.015); }

.km-highlight__icon {
    width: 64px; height: 64px; border-radius: 999px; display: grid; place-items: center;
    font-size: 1.55rem; color: #fff; flex: 0 0 auto;
    box-shadow: inset 0 2px 4px rgba(255,255,255,.35), 0 10px 18px -8px rgba(0,0,0,.4);
}
.km-highlight p {
    font-size: 1.14rem; font-weight: 700; line-height: 1.45; margin: 0;
}

.km-highlight--1 { background: linear-gradient(155deg, #e8f8ee, #d4f1de); box-shadow: 0 14px 0 -6px rgba(21,128,61,.18), 0 20px 34px -18px rgba(21,128,61,.35); }
.km-highlight--1 .km-highlight__icon { background: linear-gradient(140deg, var(--km-green-600), var(--km-green-500)); }
.km-highlight--1 p { color: var(--km-green-900); }

.km-highlight--2 { background: linear-gradient(155deg, #fff6e0, #ffecc0); box-shadow: 0 14px 0 -6px rgba(180,83,9,.18), 0 20px 34px -18px rgba(180,83,9,.32); }
.km-highlight--2 .km-highlight__icon { background: linear-gradient(140deg, var(--km-gold-500), var(--km-gold-300)); color: #3d2503; }
.km-highlight--2 p { color: #6b3d05; }

.km-highlight--3 { background: linear-gradient(155deg, #e3f6fb, #c9edf6); box-shadow: 0 14px 0 -6px rgba(14,116,144,.18), 0 20px 34px -18px rgba(14,116,144,.32); }
.km-highlight--3 .km-highlight__icon { background: linear-gradient(140deg, #0e7490, #22b3d6); }
.km-highlight--3 p { color: #0c4a5e; }

.km-highlight--4 { background: linear-gradient(155deg, #fdeae3, #fad3c4); box-shadow: 0 14px 0 -6px rgba(194,65,12,.18), 0 20px 34px -18px rgba(194,65,12,.32); }
.km-highlight--4 .km-highlight__icon { background: linear-gradient(140deg, #c2410c, #fb923c); }
.km-highlight--4 p { color: #7c2d12; }

.km-highlight--5 { background: linear-gradient(155deg, #f1ecfb, #e2d6f7); box-shadow: 0 14px 0 -6px rgba(107,33,168,.18), 0 20px 34px -18px rgba(107,33,168,.32); }
.km-highlight--5 .km-highlight__icon { background: linear-gradient(140deg, #7e22ce, #a855f7); }
.km-highlight--5 p { color: #4c1d7c; }

@media (max-width: 575.98px) {
    .km-highlight { padding: 1.5rem 1.3rem; }
    .km-highlight p { font-size: 1.05rem; }
}
.km-card p { color: var(--km-muted); font-size: .94rem; margin: 0; }


/* ---------- stall band ---------------------------------------------------- */

.km-stalls-card {
    background:
        radial-gradient(800px 380px at 88% 12%, rgba(245, 179, 36, .18), transparent 60%),
        linear-gradient(160deg, #07351d, #0d4d29 60%, #0a3f22);
    color: #fff;
    border-radius: 28px;
    padding: clamp(1.8rem, 4vw, 3.2rem);
    box-shadow: var(--km-shadow-lg);
}
.km-stalls-card .km-lede { color: rgba(255, 255, 255, .74); }
.km-stalls-card .km-eyebrow {
    color: var(--km-gold-300); background: rgba(255, 215, 100, .12); border-color: rgba(255, 215, 100, .3);
}

.km-stall-card {
    position: relative; height: 100%; border-radius: var(--km-radius);
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
    padding: 1.7rem; display: flex; flex-direction: column;
    transition: transform .22s ease, background .22s ease, border-color .22s ease;
}
.km-stall-card:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .1); border-color: rgba(255, 215, 100, .5); }
.km-stall-card--featured {
    background: linear-gradient(165deg, rgba(255, 215, 100, .18), rgba(255, 255, 255, .06));
    border-color: rgba(255, 215, 100, .55);
}
.km-stall-card--sold { opacity: .58; }

.km-stall-card__ribbon {
    position: absolute; top: 1.1rem; right: 1.1rem; font-size: .68rem; font-weight: 800;
    letter-spacing: .12em; text-transform: uppercase; background: var(--km-gold-400);
    color: #3d2503; padding: .3rem .65rem; border-radius: 999px;
}
.km-stall-card__ribbon--sold { background: var(--km-danger); color: #fff; }

.km-stall-card h3 { font-size: 1.22rem; font-weight: 800; margin-bottom: .15rem; }
.km-stall-card__hi { color: var(--km-gold-300); font-weight: 700; margin-bottom: 1rem; }
.km-stall-card__size { font-size: .86rem; color: rgba(255, 255, 255, .66); margin-bottom: 1rem; }
.km-stall-card__tentage { font-size: .82rem; color: var(--km-gold-300); font-weight: 700; }

.km-stall-card ul { list-style: none; padding: 0; margin: 0 0 1.4rem; flex: 1; }
.km-stall-card li {
    font-size: .92rem; color: rgba(255, 255, 255, .84);
    padding: .38rem 0 .38rem 1.6rem; position: relative;
}
.km-stall-card li::before {
    content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900;
    position: absolute; left: 0; top: .42rem; font-size: .78rem; color: var(--km-leaf);
}

.km-stall-card__price { font-size: 2rem; font-weight: 800; line-height: 1; }
.km-stall-card__price small {
    font-size: .8rem; font-weight: 600; color: rgba(255, 255, 255, .6);
    display: block; margin-top: .35rem;
}

.km-availability { margin: 0 0 1.2rem; }
.km-availability__bar {
    height: 7px; border-radius: 999px; background: rgba(255, 255, 255, .16); overflow: hidden;
}
.km-availability__fill {
    height: 100%; border-radius: 999px;
    background: linear-gradient(90deg, var(--km-leaf), var(--km-gold-400));
}
.km-availability__text {
    display: flex; justify-content: space-between; font-size: .8rem;
    color: rgba(255, 255, 255, .7); margin-top: .45rem;
}

.km-stall-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 2.6rem; }
.km-stall-strip span {
    font-size: .88rem; padding: .5rem 1rem; border-radius: 999px;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
}

@media (max-width: 575.98px) {
    .km-guest { flex-direction: column; text-align: center; }
}

/* ---------- vice-chancellor message ---------------------------------------- */

.km-vc {
    display: flex; align-items: center; gap: clamp(1.5rem, 4vw, 3rem);
    flex-wrap: wrap;
}
.km-vc__photo { flex: 0 0 auto; }
.km-vc__photo img {
    width: 190px; height: 236px; object-fit: cover; border-radius: var(--km-radius);
    box-shadow: var(--km-shadow-lg); border: 6px solid #fff;
}
.km-vc__body { flex: 1 1 380px; }
.km-vc__body p {
    color: var(--km-muted); margin-bottom: .9rem;
    font-size: 1.08rem; line-height: 1.75; text-align: justify;
}
.km-vc__name { margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--km-line); }
.km-vc__name b { display: block; font-size: 1.05rem; color: var(--km-green-800); }
.km-vc__name span { font-size: .88rem; color: var(--km-muted); }

@media (max-width: 767.98px) {
    .km-vc { flex-direction: column; text-align: center; }
    .km-vc__name { border-top: 0; padding-top: 0; }
}

/* ---------- registration charges cards -------------------------------------- */

.km-charge-card {
    height: 100%; background: #fff; border-radius: 28px; overflow: hidden;
    box-shadow: var(--km-shadow-lg); border: 1px solid var(--km-line);
    transition: transform .25s ease, box-shadow .25s ease;
}
.km-charge-card:hover { transform: translateY(-6px); box-shadow: 0 34px 60px -24px rgba(6,48,26,.4); }
.km-charge-card__head {
    padding: 1.3rem 1.6rem; color: #fff; display: flex; align-items: center; gap: 1rem;
    background: linear-gradient(120deg, var(--km-green-800), var(--km-green-500));
    position: relative; overflow: hidden;
}
.km-charge-card__head::after {
    content: ""; position: absolute; right: -30px; top: -30px; width: 130px; height: 130px;
    border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.16), transparent 70%);
}
.km-charge-card--gold .km-charge-card__head { background: linear-gradient(120deg, var(--km-gold-600), var(--km-gold-400)); color: #3d2503; }
.km-charge-card__head i {
    width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,.2);
    display: grid; place-items: center; font-size: 1.3rem; flex: 0 0 auto; z-index: 1;
}
.km-charge-card__head h3 { margin: 0; font-size: 1.12rem; font-weight: 800; z-index: 1; }
.km-charge-card__body { padding: 1.5rem 1.7rem 1.7rem; }

.km-fee-row {
    display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
    padding: .85rem 0; border-bottom: 1px dashed var(--km-line);
}
.km-fee-row:last-child { border-bottom: 0; }
.km-fee-row p { margin: 0; font-size: .94rem; font-weight: 600; color: var(--km-ink); flex: 1 1 auto; }
.km-fee-row small { display: block; color: var(--km-muted); font-weight: 500; font-size: .8rem; margin-top: .2rem; }
.km-fee-row b { font-size: 1.08rem; font-weight: 800; color: var(--km-green-700); white-space: nowrap; }

.km-payment-box {
    margin-top: 1.3rem; background: #f4fbf6; border: 1px solid rgba(31,162,76,.2);
    border-radius: 16px; padding: 1.1rem 1.3rem; display: flex; gap: .9rem; align-items: flex-start;
}
.km-charge-card--gold .km-payment-box { background: #fff8e8; border-color: rgba(232,148,12,.25); }
.km-payment-box i { color: var(--km-green-600); font-size: 1.2rem; margin-top: .15rem; flex: 0 0 auto; }
.km-charge-card--gold .km-payment-box i { color: var(--km-gold-600); }
.km-payment-box b { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; color: var(--km-green-700); margin-bottom: .3rem; }
.km-charge-card--gold .km-payment-box b { color: var(--km-gold-600); }
.km-payment-box p { margin: 0; font-size: .87rem; color: var(--km-ink); line-height: 1.65; }

.km-charge-price {
    font-size: 2.3rem; font-weight: 900; color: var(--km-gold-600); margin: .3rem 0 0; line-height: 1.15;
}
.km-charge-price small { display: block; font-size: .82rem; font-weight: 600; color: var(--km-muted); margin-top: .3rem; }

.km-total-banner {
    margin-top: 2rem; border-radius: 24px; padding: 1.7rem 2rem; text-align: center;
    background: linear-gradient(120deg, var(--km-green-800), var(--km-green-600) 55%, var(--km-gold-500));
    color: #fff; box-shadow: var(--km-shadow-lg); position: relative; overflow: hidden;
}
.km-total-banner::before {
    content: ""; position: absolute; left: -40px; bottom: -60px; width: 200px; height: 200px;
    border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.14), transparent 70%);
}
.km-total-banner span { font-size: 1rem; font-weight: 700; opacity: .92; display: block; margin-bottom: .35rem; letter-spacing: .02em; }
.km-total-banner b { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 900; }

.km-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.km-steps li { display: flex; gap: 1.1rem; align-items: flex-start; padding: 0 0 1.4rem; position: relative; }
.km-steps li::before {
    counter-increment: step; content: counter(step);
    flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%;
    background: linear-gradient(140deg, var(--km-green-600), var(--km-green-500)); color: #fff;
    display: grid; place-items: center; font-weight: 800; font-size: 1rem; z-index: 1;
    box-shadow: 0 8px 16px -8px rgba(21,128,61,.7);
}
.km-steps li:not(:last-child)::after {
    content: ""; position: absolute; left: 19px; top: 38px; bottom: -4px; width: 2px; background: var(--km-line);
}
.km-steps li p { margin: 0; padding-top: .6rem; font-size: .96rem; color: var(--km-ink); line-height: 1.65; }

.km-contact-card__row { display: flex; align-items: flex-start; gap: .9rem; padding: .9rem 0; border-bottom: 1px dashed var(--km-line); }
.km-contact-card__row:last-child { border-bottom: 0; }
.km-contact-card__row i {
    width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto;
    background: rgba(31,162,76,.1); color: var(--km-green-600);
    display: grid; place-items: center; font-size: 1rem;
}
.km-contact-card__row p { margin: 0; font-size: .92rem; color: var(--km-ink); line-height: 1.55; }
.km-contact-card__row b { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--km-muted); margin-bottom: .2rem; font-weight: 700; }

/* ---------- schedule ------------------------------------------------------ */

.km-day {
    height: 100%; background: #fff; border: 1px solid var(--km-line);
    border-radius: 28px; overflow: hidden; box-shadow: var(--km-shadow-lg);
    transition: transform .25s ease;
}
.km-day:hover { transform: translateY(-4px); }
.km-day__head {
    padding: 1.6rem 1.8rem; color: #fff; display: flex; align-items: center;
    justify-content: space-between; gap: 1rem; position: relative; overflow: hidden;
    background: linear-gradient(120deg, var(--km-green-800), var(--km-green-500));
}
.km-day__head::after {
    content: ""; position: absolute; right: -30px; top: -30px; width: 150px; height: 150px;
    border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%);
}
.km-day--two .km-day__head { background: linear-gradient(120deg, var(--km-gold-600), var(--km-gold-400)); }
.km-day__head b { font-size: 1.35rem; font-weight: 800; }
.km-day__head span { font-size: .92rem; opacity: .9; font-weight: 600; }
.km-day__body { padding: 1.6rem 1.7rem 1.2rem; }

.km-slot {
    display: flex; gap: 1.1rem; padding: 0 0 1.5rem; position: relative;
}
.km-slot::before {
    content: ""; position: absolute; left: 22px; top: 44px; bottom: -4px; width: 2px;
    background: var(--km-line);
}
.km-slot:last-child { padding-bottom: 0; }
.km-slot:last-child::before { display: none; }
.km-slot time {
    flex: 0 0 46px; height: 46px; border-radius: 50%; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    font-weight: 800; font-size: .58rem; line-height: 1.1; text-align: center;
    letter-spacing: .04em; text-transform: uppercase;
    color: #fff; background: linear-gradient(140deg, var(--km-green-600), var(--km-green-500));
    box-shadow: 0 8px 16px -8px rgba(21, 128, 61, .8); z-index: 1;
    font-variant-numeric: tabular-nums;
}
.km-slot__step { font-size: 1.2rem; line-height: 1; }
.km-day--two .km-slot time { background: linear-gradient(140deg, var(--km-gold-500), var(--km-gold-300)); color: #3d2503; box-shadow: 0 8px 16px -8px rgba(232, 148, 12, .8); }
.km-slot .km-slot__body {
    flex: 1 1 auto; background: #fbfdfb; border: 1px solid var(--km-line); border-radius: 16px;
    padding: .8rem 1.1rem; transition: transform .18s ease, box-shadow .18s ease;
}
.km-slot:hover .km-slot__body { transform: translateX(4px); box-shadow: var(--km-shadow-sm); }
.km-slot p { margin: 0; font-size: 1.02rem; font-weight: 600; }
.km-slot small { color: var(--km-muted); font-size: .86rem; }

/* ---------- venue --------------------------------------------------------- */

.km-venue {
    background: #fff; border: 1px solid var(--km-line); border-radius: var(--km-radius);
    padding: 2rem; box-shadow: var(--km-shadow-sm); height: 100%;
}
.km-venue__row { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--km-line); }
.km-venue__row:last-child { border-bottom: 0; padding-bottom: 0; }
.km-venue__row i {
    flex: 0 0 42px; height: 42px; display: grid; place-items: center; border-radius: 12px;
    background: rgba(31, 162, 76, .1); color: var(--km-green-600);
}
.km-venue__row b { display: block; font-size: .98rem; }
.km-venue__row span { font-size: .92rem; color: var(--km-muted); }

.km-map {
    border-radius: var(--km-radius); overflow: hidden; border: 1px solid var(--km-line);
    box-shadow: var(--km-shadow-sm); min-height: 320px; height: 100%;
}
.km-map iframe { display: block; width: 100%; height: 100%; min-height: 320px; border: 0; }

/* ---------- CTA ----------------------------------------------------------- */

.km-cta {
    background: linear-gradient(120deg, var(--km-green-700), var(--km-green-500) 55%, var(--km-gold-500));
    color: #fff; border-radius: 28px; padding: clamp(2.2rem, 5vw, 3.4rem);
    text-align: center; box-shadow: var(--km-shadow-lg);
}
.km-cta h2 { font-weight: 800; font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: .6rem; }
.km-cta p { color: rgba(255, 255, 255, .84); max-width: 58ch; margin: 0 auto 1.8rem; }

.km-cta__qr {
    display: inline-flex; align-items: center; gap: 1rem; margin: 2rem auto 0;
    background: #fff; border-radius: 18px; padding: .9rem 1.4rem .9rem .9rem;
    box-shadow: var(--km-shadow-md); text-align: left;
}
.km-cta__qr img { width: 76px; height: 76px; border-radius: 8px; display: block; }
.km-cta__qr span { display: flex; flex-direction: column; }
.km-cta__qr b { color: var(--km-green-800); font-size: .92rem; }
.km-cta__qr em { font-style: normal; color: var(--km-muted); font-size: .8rem; }

/* ---------- page header (inner pages) ------------------------------------ */

.km-pagehead {
    background: linear-gradient(140deg, var(--km-green-800), var(--km-green-600));
    color: #fff; padding: clamp(2.4rem, 5vw, 3.6rem) 0; position: relative; overflow: hidden;
}
.km-pagehead::after {
    content: ""; position: absolute; right: -60px; top: -60px; width: 320px; height: 320px;
    border-radius: 50%; background: radial-gradient(circle, rgba(255, 215, 100, .22), transparent 70%);
}
.km-pagehead h1 { font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.8rem); margin: .4rem 0 .5rem; }
.km-pagehead p { color: rgba(255, 255, 255, .8); max-width: 62ch; margin: 0; }

.km-breadcrumb { font-size: .86rem; color: rgba(255, 255, 255, .62); }
.km-breadcrumb a { color: rgba(255, 255, 255, .78); }
.km-breadcrumb a:hover { color: #fff; }

/* ---------- forms --------------------------------------------------------- */

.km-form {
    background: #fff; border: 1px solid var(--km-line); border-radius: var(--km-radius);
    box-shadow: var(--km-shadow-md); padding: clamp(1.4rem, 3vw, 2.4rem);
}

.km-fieldset { border: 0; padding: 0; margin: 0 0 2.2rem; }
.km-fieldset:last-of-type { margin-bottom: 1rem; }

.km-legend {
    display: flex; align-items: center; gap: .7rem; font-size: 1.05rem; font-weight: 800;
    padding-bottom: .8rem; margin-bottom: 1.4rem; border-bottom: 2px solid var(--km-line); width: 100%;
}
.km-legend i {
    width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px;
    background: rgba(31, 162, 76, .1); color: var(--km-green-600); font-size: .9rem;
}
.km-legend small { font-weight: 500; color: var(--km-muted); font-size: .84rem; }

.km-field { margin-bottom: 1.1rem; }
.km-field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
.km-field label .km-req { color: var(--km-danger); }
.km-field label .km-hint { font-weight: 400; color: var(--km-muted); font-size: .82rem; }
.km-hint { color: var(--km-muted); font-size: .8rem; }
.km-hint.text-warning { color: var(--km-warn); font-weight: 600; }

.km-proforma-note {
    background: #fffbea; border: 1px solid rgba(232, 148, 12, .28); border-radius: 12px;
    padding: .85rem 1.1rem; font-size: .88rem; color: #7a5b00; margin-bottom: 1.2rem;
}

.km-instructions {
    background: #fef6f6; border: 1px solid rgba(220, 38, 38, .2); border-radius: 14px;
    padding: 1.1rem 1.3rem; font-size: .88rem; color: var(--km-ink); margin-bottom: 1.8rem;
}
.km-instructions b { color: var(--km-danger); }
.km-instructions ul { line-height: 1.8; }

.km-input, .km-select, .km-textarea {
    width: 100%; padding: .78rem 1rem; font-size: .96rem; font-family: inherit;
    border: 2px solid #cfdcd4; border-radius: 12px; background: #f5f9f6;
    color: var(--km-ink); transition: border-color .16s, box-shadow .16s, background .16s;
}
.km-input:hover, .km-select:hover, .km-textarea:hover { border-color: #b7cabf; }
.km-input:focus, .km-select:focus, .km-textarea:focus {
    outline: none; border-color: var(--km-green-500); background: #fff;
    box-shadow: 0 0 0 4px rgba(31, 162, 76, .16);
}
.km-input.is-invalid, .km-select.is-invalid { border-color: var(--km-danger); background: #fef6f6; }
.km-textarea { min-height: 96px; resize: vertical; }

.km-error { display: block; color: var(--km-danger); font-size: .84rem; margin-top: .35rem; font-weight: 600; }

.km-check { display: flex; align-items: flex-start; gap: .6rem; padding: .55rem 0; cursor: pointer; }
.km-check input { width: 18px; height: 18px; margin-top: .12rem; accent-color: var(--km-green-600); flex: 0 0 auto; }
.km-check span { font-size: .93rem; }

.km-checkgrid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .2rem 1.2rem;
}

.km-formnote {
    background: #f4fbf6; border: 1px solid rgba(31, 162, 76, .2); border-radius: 14px;
    padding: 1rem 1.2rem; font-size: .9rem; color: var(--km-green-700); margin-bottom: 1.8rem;
}

.km-formactions {
    display: flex; flex-wrap: wrap; gap: .9rem; align-items: center;
    padding-top: 1.4rem; border-top: 1px solid var(--km-line);
}

.km-alert-summary {
    background: #fef2f2; border: 1px solid rgba(185, 28, 28, .28); color: var(--km-danger);
    border-radius: 14px; padding: 1rem 1.2rem; margin-bottom: 1.6rem; font-size: .92rem;
}
.km-alert-summary b { display: block; margin-bottom: .3rem; }

/* ---------- ticket / success --------------------------------------------- */

.km-ticket {
    background: #fff; border-radius: 24px; overflow: hidden;
    box-shadow: var(--km-shadow-lg); border: 1px solid var(--km-line);
}
.km-ticket__top {
    background: linear-gradient(135deg, var(--km-green-700), var(--km-green-500));
    color: #fff; padding: 2.2rem; text-align: center; position: relative;
}
.km-ticket__check {
    width: 68px; height: 68px; border-radius: 50%; background: rgba(255, 255, 255, .18);
    display: grid; place-items: center; font-size: 1.9rem; margin: 0 auto 1rem;
    border: 3px solid rgba(255, 255, 255, .5);
}
.km-ticket__top h1 { font-size: 1.6rem; font-weight: 800; margin-bottom: .3rem; }
.km-ticket__top p { color: rgba(255, 255, 255, .85); margin: 0; }

.km-ticket__number {
    background: #fff; color: var(--km-green-800); border-radius: 16px;
    padding: 1rem 1.6rem; display: inline-block; margin-top: 1.4rem;
    box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .5);
}
.km-ticket__number small {
    display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
    color: var(--km-muted); margin-bottom: .2rem;
}
.km-ticket__number b { font-size: 1.8rem; font-weight: 800; letter-spacing: .04em; font-variant-numeric: tabular-nums; }

.km-ticket__perf {
    height: 26px; background:
        radial-gradient(circle at 13px 0, transparent 13px, #fff 13px) repeat-x;
    background-size: 26px 26px; border-bottom: 2px dashed var(--km-line);
}

.km-ticket__body { padding: 2rem; }

.km-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.1rem 1.6rem; }
.km-kv__item { border-bottom: 1px solid var(--km-line); padding-bottom: .7rem; }
.km-kv__item small {
    display: block; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
    color: var(--km-muted); margin-bottom: .2rem;
}
.km-kv__item b { font-size: 1rem; font-weight: 700; }

/* ---------- badges -------------------------------------------------------- */

.km-badge {
    display: inline-flex; align-items: center; gap: .35rem; font-size: .76rem; font-weight: 700;
    padding: .3rem .7rem; border-radius: 999px; letter-spacing: .03em;
}
.km-badge--pending  { background: #fffbeb; color: var(--km-warn);      border: 1px solid rgba(180, 83, 9, .3); }
.km-badge--approved { background: #f2fbf5; color: var(--km-green-700); border: 1px solid rgba(31, 162, 76, .35); }
.km-badge--rejected { background: #fef2f2; color: var(--km-danger);    border: 1px solid rgba(185, 28, 28, .3); }
.km-badge--cancelled{ background: #f3f4f6; color: #4b5563;             border: 1px solid #d1d5db; }
.km-badge--paid     { background: #f2fbf5; color: var(--km-green-700); border: 1px solid rgba(31, 162, 76, .35); }
.km-badge--unpaid   { background: #fffbeb; color: var(--km-warn);      border: 1px solid rgba(180, 83, 9, .3); }
.km-badge--refunded { background: #ecfeff; color: var(--km-info);      border: 1px solid rgba(14, 116, 144, .3); }

/* ---------- tables -------------------------------------------------------- */

.km-panel {
    background: #fff; border: 1px solid var(--km-line); border-radius: var(--km-radius);
    box-shadow: var(--km-shadow-sm); overflow: hidden;
}
.km-panel__head {
    padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--km-line);
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
}
.km-panel__head h2 { font-size: 1.1rem; font-weight: 800; margin: 0; }
.km-panel__body { padding: 1.5rem; }
.km-panel__body p {
    font-size: 1.05rem; line-height: 1.75; text-align: justify;
    color: var(--km-ink);
}

.km-tablewrap { overflow-x: auto; }
.km-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 720px; }
.km-table th {
    text-align: left; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
    color: var(--km-muted); font-weight: 700; padding: .9rem 1rem;
    border-bottom: 2px solid var(--km-line); background: #fbfdfb; white-space: nowrap;
}
.km-table td { padding: .85rem 1rem; border-bottom: 1px solid var(--km-line); vertical-align: middle; }
.km-table tbody tr:hover { background: #f8fdf9; }
.km-table__num { font-weight: 700; color: var(--km-green-700); font-variant-numeric: tabular-nums; }

.km-empty { text-align: center; padding: 3rem 1rem; color: var(--km-muted); }
.km-empty i { font-size: 2.4rem; color: var(--km-line); display: block; margin-bottom: .8rem; }

/* ---------- admin --------------------------------------------------------- */

.km-admin { background: #f6f8f6; min-height: 70vh; padding: 2rem 0 3rem; }

.km-adminbar {
    display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.8rem;
    background: #fff; border: 1px solid var(--km-line); border-radius: 16px; padding: .5rem;
}
.km-adminbar a {
    padding: .6rem 1.1rem; border-radius: 11px; font-weight: 600; font-size: .9rem; color: var(--km-muted);
}
.km-adminbar a:hover { background: #f2fbf5; color: var(--km-green-700); }
.km-adminbar a.is-active { background: var(--km-green-600); color: #fff; }

.km-metric {
    background: #fff; border: 1px solid var(--km-line); border-radius: 16px;
    padding: 1.3rem; height: 100%; position: relative; overflow: hidden;
}
.km-metric i {
    position: absolute; right: 1rem; top: 1rem; font-size: 1.8rem;
    color: rgba(31, 162, 76, .12);
}
.km-metric small {
    display: block; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase;
    color: var(--km-muted); margin-bottom: .35rem;
}
.km-metric b { font-size: 1.9rem; font-weight: 800; color: var(--km-green-800); font-variant-numeric: tabular-nums; }
.km-metric span { font-size: .82rem; color: var(--km-muted); }
.km-metric--gold b { color: var(--km-gold-600); }
.km-metric--gold i { color: rgba(232, 148, 12, .16); }

.km-dropzone {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; gap: .4rem; cursor: pointer; padding: 2.6rem 1.5rem;
    border: 2px dashed var(--km-line); border-radius: 18px; background: #f9fcfa;
    transition: border-color .15s ease, background .15s ease;
}
.km-dropzone i { font-size: 2.2rem; color: var(--km-green-500); margin-bottom: .3rem; }
.km-dropzone b { font-size: 1rem; }
.km-dropzone span { font-size: .84rem; color: var(--km-muted); }
.km-dropzone.is-drag, .km-dropzone:hover { border-color: var(--km-green-500); background: #f2fbf5; }
.km-dropzone.is-filled { border-style: solid; border-color: var(--km-green-500); background: #f2fbf5; }
.km-dropzone.is-filled i { color: var(--km-gold-500); }
.km-dropzone.is-filled i::before { content: "\f15c"; } /* file icon once a file is chosen */

.km-import-result {
    display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-radius: 14px;
}
.km-import-result--ok { background: #f2fbf5; border: 1px solid rgba(31, 162, 76, .25); }
.km-import-result--warn { background: #fffbea; border: 1px solid rgba(232, 148, 12, .3); }
.km-import-result__num { font-size: 2rem; font-weight: 800; color: var(--km-green-700); line-height: 1; }

.km-printqueue-banner {
    display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem;
    background: #f6f8f6; border: 1px solid var(--km-line); border-radius: 16px; padding: 1.1rem 1.4rem;
}
.km-printqueue-banner.is-ready { background: #fffbea; border-color: rgba(232, 148, 12, .35); }
.km-printqueue-banner__num { font-size: 2.2rem; font-weight: 800; color: var(--km-green-700); line-height: 1; }
.km-printqueue-banner.is-ready .km-printqueue-banner__num { color: var(--km-gold-600); }
.km-printqueue-banner__hint { font-size: .86rem; font-weight: 700; color: var(--km-gold-600); }
.km-printqueue-banner__hint i { animation: km-pulse 1.4s ease-in-out infinite; }
@keyframes km-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.km-allot-list { display: flex; flex-direction: column; gap: .9rem; }
.km-allot-card { background: #fff; border: 1px solid var(--km-line); border-radius: 16px; overflow: hidden; }
.km-allot-card__head {
    width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: .6rem; padding: 1rem 1.3rem; background: none; border: 0; text-align: left; cursor: pointer;
}
.km-allot-card__head:hover { background: #f9fcfa; }
.km-allot-card__head i { transition: transform .15s ease; color: var(--km-muted); }
.km-allot-card__head.is-open i { transform: rotate(180deg); }
.km-allot-card__body { padding: 0 1.3rem 1.3rem; border-top: 1px solid var(--km-line); }

.km-allot-progress { font-weight: 700; color: var(--km-green-700); }
.km-allot-tier { margin-top: 1rem; }
.km-allot-tier__label { font-size: .82rem; font-weight: 700; color: var(--km-muted); margin-bottom: .5rem; text-transform: uppercase; letter-spacing: .04em; }
.km-allot-grid { display: flex; flex-wrap: wrap; gap: .4rem; }

.km-allot-cell {
    display: flex; align-items: center; justify-content: center; width: 58px; height: 34px;
    border-radius: 8px; font-size: .74rem; font-weight: 700; border: 1px solid transparent; position: relative;
}
.km-allot-cell--free {
    background: #f2fbf5; border-color: rgba(31, 162, 76, .35); color: var(--km-green-700); cursor: pointer;
}
.km-allot-cell--free:hover { background: #e3f7ea; }
.km-allot-cell--free input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.km-allot-cell--free:has(input:checked), .km-allot-cell--free.is-checked { background: var(--km-green-600); border-color: var(--km-green-700); color: #fff; }
.km-allot-cell--free:has(input:disabled:not(:checked)) { opacity: .4; cursor: not-allowed; }
.km-allot-cell--taken { background: #fef2f2; border-color: rgba(220, 38, 38, .25); color: #b91c1c; cursor: not-allowed; opacity: .75; }

.km-select--sm, .km-input--sm { padding: .35rem .5rem; font-size: .8rem; }
.km-receipt-form {
    display: flex; flex-direction: column; gap: .35rem; background: #f9fcfa;
    border: 1px solid var(--km-line); border-radius: 10px; padding: .5rem;
}

.km-ratecard {
    display: flex; align-items: center; gap: .9rem; padding: .9rem 0;
    border-bottom: 1px dashed var(--km-line);
}
.km-ratecard i { font-size: 1.5rem; color: var(--km-gold-500); width: 32px; text-align: center; }
.km-ratecard div { display: flex; flex-direction: column; }
.km-ratecard b { font-size: .95rem; }
.km-ratecard span { font-size: 1.15rem; font-weight: 800; color: var(--km-green-700); }

.km-adtype-picker { display: flex; gap: 1rem; margin-bottom: .5rem; }
.km-adtype-option {
    flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: .3rem;
    padding: 1.2rem 1rem; border: 2px solid var(--km-line); border-radius: 14px;
    cursor: pointer; text-align: center; transition: border-color .15s ease, background .15s ease;
    position: relative;
}
.km-adtype-option i { font-size: 1.5rem; color: var(--km-muted); }
.km-adtype-option span { font-size: .82rem; color: var(--km-muted); }
.km-adtype-option input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.km-adtype-option:has(input:checked) { border-color: var(--km-green-500); background: #f2fbf5; }
.km-adtype-option:has(input:checked) i { color: var(--km-green-600); }

.km-adtype-picker--sm { margin-bottom: 1.1rem; }
.km-adtype-picker--sm .km-adtype-option { flex-direction: row; padding: .7rem 1rem; gap: .6rem; justify-content: center; }
.km-adtype-picker--sm .km-adtype-option i { font-size: 1.05rem; }
.km-adtype-picker--sm .km-adtype-option b { font-size: .88rem; font-weight: 700; }

.km-adqueue {
    position: relative; max-width: 780px; margin: 0 auto 2.4rem; border-radius: 20px;
    overflow: hidden; box-shadow: var(--km-shadow-lg); background: #000; aspect-ratio: 16 / 9;
}
.km-adqueue__player { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.km-adqueue__yt { width: 100%; height: 100%; }
.km-adqueue__yt iframe { width: 100%; height: 100%; display: block; border: 0; }
.km-adqueue__linkcard {
    width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: .6rem; text-align: center; padding: 1.5rem;
    background: linear-gradient(160deg, #0d4d29, #06301a); color: #fff; text-decoration: none;
}
.km-adqueue__linkcard i { font-size: 3rem; color: var(--km-gold-400); }
.km-adqueue__linkcard b { font-size: 1.05rem; }
.km-adqueue__linkcard span { font-size: .82rem; color: rgba(255, 255, 255, .65); word-break: break-all; max-width: 90%; }
.km-adqueue__mute {
    position: absolute; top: .8rem; right: .8rem; width: 38px; height: 38px; border-radius: 50%;
    background: rgba(0, 0, 0, .5); color: #fff; border: 0; display: flex; align-items: center; justify-content: center;
    cursor: pointer; backdrop-filter: blur(4px);
}
.km-adqueue__label {
    position: absolute; left: .9rem; bottom: 2.2rem; color: #fff; font-weight: 700; font-size: .85rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .6);
}
.km-adqueue__dots { position: absolute; left: 0; right: 0; bottom: .8rem; display: flex; justify-content: center; gap: .4rem; }
.km-adqueue__dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .4); transition: background .2s ease; }
.km-adqueue__dots span.is-active { background: var(--km-gold-400); }

.km-adposter-show {
    position: relative; max-width: 620px; margin: 0 auto 2.4rem; border-radius: 20px;
    overflow: hidden; box-shadow: var(--km-shadow-lg); background: #fff; aspect-ratio: 16 / 9;
}
.km-adposter-slide {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity .6s ease; pointer-events: none;
}
.km-adposter-slide.is-active { opacity: 1; pointer-events: auto; }
.km-adposter-slide img { width: 100%; height: 100%; object-fit: cover; }
.km-adposter-slide__label {
    position: absolute; left: .9rem; bottom: .8rem; background: rgba(0, 0, 0, .55); color: #fff;
    font-weight: 700; font-size: .8rem; padding: .25rem .7rem; border-radius: 999px;
}
.km-adposter-show__dots {
    position: absolute; left: 0; right: 0; bottom: .8rem; display: flex; justify-content: center;
    gap: .4rem; z-index: 2;
}
.km-adposter-show__dots span {
    width: 8px; height: 8px; border-radius: 50%; background: rgba(0, 0, 0, .22); cursor: pointer;
    transition: background .2s ease;
}
.km-adposter-show__dots span.is-active { background: var(--km-gold-400); }

.km-featurerow {
    display: flex; align-items: center; gap: 1.2rem; padding: 1.1rem 0;
    border-bottom: 1px solid var(--km-line);
}
.km-featurerow:last-of-type { border-bottom: 0; }
.km-featurerow__text { flex: 1 1 auto; display: flex; flex-direction: column; gap: .25rem; }
.km-featurerow__text b { font-size: .98rem; }
.km-featurerow__text b i { color: var(--km-green-600); margin-right: .35rem; }

.km-switch { position: relative; flex: 0 0 auto; display: inline-block; width: 50px; height: 28px; }
.km-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.km-switch__track {
    position: absolute; inset: 0; background: #d5dbd6; border-radius: 999px; transition: background .2s ease;
}
.km-switch__thumb {
    position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
    background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s ease;
}
.km-switch input:checked ~ .km-switch__track { background: var(--km-green-500); }
.km-switch input:checked ~ .km-switch__track .km-switch__thumb { transform: translateX(22px); }
.km-switch input:focus-visible ~ .km-switch__track { outline: 2px solid var(--km-green-600); outline-offset: 2px; }

.km-login {
    min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem;
    background: linear-gradient(140deg, var(--km-green-900), var(--km-green-700) 60%, var(--km-green-600));
}
.km-login__card {
    background: #fff; border-radius: 24px; box-shadow: var(--km-shadow-lg);
    padding: clamp(1.8rem, 4vw, 2.8rem); width: 100%; max-width: 420px;
}
.km-login__logo { text-align: center; margin-bottom: 1.6rem; }
.km-login__logo img { height: 72px; width: 72px; object-fit: cover; border-radius: 50%; }
.km-login__logo h1 { font-size: 1.3rem; font-weight: 800; margin: .8rem 0 .2rem; }
.km-login__logo p { color: var(--km-muted); font-size: .9rem; margin: 0; }

/* ---------- footer -------------------------------------------------------- */

.km-footer { background: var(--km-green-900); color: rgba(255, 255, 255, .72); padding: 3.5rem 0 2rem; margin-top: 4rem; }
.km-footer h6 {
    color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
    margin-bottom: 1rem; font-weight: 700;
}
.km-footer a { display: block; color: rgba(255, 255, 255, .66); font-size: .92rem; padding: .28rem 0; }
.km-footer a:hover { color: var(--km-gold-300); }

.km-footer__brand { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; }
.km-footer__brand img { height: 58px; width: 58px; object-fit: cover; background: #fff; border-radius: 50%; padding: 2px; }
.km-footer__brand strong { display: block; color: #fff; font-size: .98rem; line-height: 1.3; }
.km-footer__brand span { font-size: .84rem; }

.km-footer__note { font-size: .9rem; line-height: 1.7; max-width: 46ch; }
.km-footer__contact { font-size: .9rem; margin-bottom: .55rem; display: flex; gap: .6rem; align-items: flex-start; }
.km-footer__contact i { color: var(--km-gold-400); margin-top: .2rem; flex: 0 0 16px; }

.km-footer hr { border-color: rgba(255, 255, 255, .12); margin: 2.4rem 0 1.4rem; }
.km-footer__base { text-align: center; font-size: .84rem; }
.km-footer__base p { margin-bottom: .3rem; }

/* ---------- ads ------------------------------------------------------------ */

.km-ad {
    max-width: 970px; margin: 0 auto clamp(2rem, 5vw, 3.5rem);
    text-align: center; overflow: hidden;
}
.km-ad__label {
    display: block; font-size: .68rem; font-weight: 700; letter-spacing: .14em;
    text-transform: uppercase; color: var(--km-muted); margin-bottom: .5rem;
}

/* ---------- misc ---------------------------------------------------------- */

.km-reveal {
    opacity: 0; transform: translateY(22px);
    transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1);
}
.km-reveal.is-visible { opacity: 1; transform: none; }

/* ---------- interactive ground map ------------------------------------- */

.km-map__legend {
    display: flex; flex-wrap: wrap; gap: .5rem .9rem; justify-content: center;
    margin-bottom: 1.2rem;
}
.km-map__legend-item {
    display: inline-flex; align-items: center; gap: .45rem; font-size: .84rem;
    font-weight: 600; color: var(--km-ink);
}
.km-map__swatch { width: 13px; height: 13px; border-radius: 4px; display: inline-block; }

.km-map__note {
    background: #f4fbf6; border: 1px solid rgba(31, 162, 76, .2); border-radius: 14px;
    padding: .85rem 1.2rem; font-size: .88rem; color: var(--km-green-700);
    text-align: center; margin-bottom: 2rem;
}

.km-map__wide { max-width: 1600px; }

.km-map__canvas {
    background: #fbfdfb; border: 1px solid var(--km-line); border-radius: 24px;
    padding: 1.8rem; overflow-x: auto; box-shadow: var(--km-shadow-md);
    width: 100%;
}

.km-map__caption {
    font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
    color: var(--km-muted); margin: .3rem 0 .5rem;
}
.km-map__caption--cm { color: var(--km-gold-600, #b45309); display: flex; align-items: center; gap: .4rem; }

.km-map__band {
    display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1.6rem;
    padding: 1.3rem 0; border-bottom: 1px dashed var(--km-line);
    max-width: 100%;
}
.km-map__band:last-child { border-bottom: 0; }
.km-map__band--top { align-items: center; gap: 1.2rem; }
.km-map__band--open { flex-direction: column; }
.km-map__band--vip { flex-direction: column; }

.km-map__entry {
    display: flex; align-items: center; gap: .4rem; font-weight: 800; font-size: .85rem;
    color: var(--km-green-700); white-space: nowrap; padding-top: 1.6rem;
}
.km-map__group { display: flex; flex-direction: column; }
.km-map__group--grow { flex: 1 1 auto; }
.km-map__row-group { display: flex; gap: .6rem; }

.km-map__vip {
    display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: .9rem;
    color: var(--km-green-700); margin-bottom: .6rem;
}
.km-map__vip-row { width: 100%; }

.km-map__shakti {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; font-weight: 800; font-size: .95rem; color: #7a5b00;
    background: linear-gradient(160deg, #fff7e0, #ffedb8);
    border: 2px solid var(--km-gold-400); border-radius: 16px;
    padding: 1.4rem 1.6rem; min-width: 150px; align-self: stretch;
}

.km-map__topgrid, .km-map__row-group, .km-map__group > .km-map__block { display: flex; }
.km-map__topgrid { flex: 1 1 0; min-width: 0; }

.km-map__block { display: flex; flex-direction: column; border-radius: 8px; overflow: hidden; }
.km-map__block--fluid { width: 100%; }
.km-map__row { display: flex; }

.km-map__cell {
    --zc: #94a3b8; --zc-light: #eef1f5;
    width: 38px; height: 38px; flex: 0 0 auto;
    border: 1px solid rgba(15, 23, 42, .12);
    background: var(--zc-light);
    color: var(--km-ink);
    font-size: .68rem; font-weight: 800; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    padding: 0; transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
    margin: -1px 0 0 -1px; position: relative;
}

/* topGovt (27 cells) and vipRow (44 cells) are wider than any container at
   their natural cell size — fill 100% of the available width instead of
   overflowing it, so the canvas never needs a horizontal scrollbar. */
.km-map__row--fluid { width: 100%; }
.km-map__row--fluid .km-map__cell {
    flex: 1 1 0; width: auto; min-width: 0;
    font-size: clamp(.5rem, 1.6vw, .78rem);
}
.km-map__cell:hover {
    background: var(--zc); color: #fff; transform: scale(1.14); z-index: 2;
    box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .4);
}
.km-map__cell.is-selected {
    background: var(--zc); color: #fff; transform: scale(1.14); z-index: 3;
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--zc);
}

.km-map__open-quad {
    display: grid; grid-template-columns: repeat(2, auto); gap: 1.4rem 2.2rem; margin-bottom: .4rem;
}
.km-map__openhs { display: flex; align-items: flex-start; gap: 1.6rem; }
.km-map__openhs .km-map__block:last-child .km-map__cell { width: 48px; }

.km-map__exit { font-weight: 800; color: var(--km-danger); display: flex; align-items: center; gap: .4rem; white-space: nowrap; font-size: .82rem; }
.km-map__compass {
    position: relative; width: 52px; height: 52px; border: 1px solid var(--km-line); border-radius: 10px;
    display: flex; align-items: center; justify-content: center; color: var(--km-muted); flex: 0 0 auto;
}
.km-map__compass i { font-size: .62rem; color: var(--km-green-600); }
.km-map__compass span { position: absolute; font-size: .48rem; font-weight: 700; line-height: 1; }
.km-map__compass-n { top: 2px; left: 50%; transform: translateX(-50%); }
.km-map__compass-s { bottom: 2px; left: 50%; transform: translateX(-50%); }
.km-map__compass-e { right: 2px; top: 50%; transform: translateY(-50%); }
.km-map__compass-w { left: 2px; top: 50%; transform: translateY(-50%); }

.km-map__backdrop {
    position: fixed; inset: 0; z-index: 1049; background: rgba(8, 20, 12, .48);
    backdrop-filter: blur(2px); opacity: 0; transition: opacity .22s ease;
}
.km-map__backdrop:not([hidden]) { opacity: 1; }

.km-map__panel {
    position: fixed; right: 1.4rem; bottom: 1.4rem; top: 1.4rem; z-index: 1050;
    background: #fff; border-radius: 22px; box-shadow: var(--km-shadow-lg);
    border: 1px solid var(--km-line); padding: 0; width: min(480px, calc(100vw - 2.4rem));
    margin: auto 0; max-height: calc(100vh - 2.8rem); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(16px) scale(.97);
    transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
}
.km-map__panel.is-open {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .22s ease, transform .22s ease;
}
.km-map__panel-close {
    position: absolute; top: .9rem; right: .9rem; border: 0; background: rgba(15, 23, 42, .06);
    color: var(--km-muted); font-size: 1rem; cursor: pointer; padding: .4rem .55rem; border-radius: 50%;
    z-index: 2;
}
.km-map__panel-head {
    display: flex; align-items: center; gap: 1rem;
    background: linear-gradient(160deg, var(--zc-light, #f2fbf5), #fff);
    padding: 1.6rem 1.4rem 1.2rem; border-bottom: 1px solid var(--km-line);
}
.km-map__panel-head i {
    width: 52px; height: 52px; border-radius: 14px; flex: 0 0 auto;
    background: var(--zc); color: #fff; font-size: 1.3rem;
    display: flex; align-items: center; justify-content: center;
}
.km-map__panel-num { font-size: 1.7rem; font-weight: 800; line-height: 1.1; color: var(--km-ink); }
.km-map__panel-zone { font-weight: 700; font-size: .92rem; color: var(--km-muted); margin-top: .15rem; }
.km-map__panel-size {
    color: var(--km-muted); font-size: .85rem; padding: .9rem 1.4rem 0;
}
.km-map__panel-tier { padding: 1rem 1.4rem 0; }
.km-map__panel-tier-head {
    display: flex; align-items: baseline; justify-content: space-between; gap: .8rem;
    font-weight: 800; font-size: 1.02rem;
}
.km-map__panel-tier-head strong { font-size: 1.3rem; color: var(--km-green-700); }
.km-map__panel-tier-note { color: var(--km-muted); font-size: .78rem; margin: .15rem 0 .8rem; }
.km-map__panel-features { list-style: none; padding: 0; margin: 0; }
.km-map__panel-features li {
    font-size: .88rem; padding: .4rem 0; border-top: 1px dashed var(--km-line);
    display: flex; align-items: baseline; gap: .55rem;
}
.km-map__panel-features li:first-child { border-top: 0; }
.km-map__panel-features li i { color: var(--km-green-600); font-size: .72rem; }

.km-map__panel-foot { padding: 1.2rem 1.4rem 1.4rem; }
.km-map__panel-avail { font-size: .82rem; font-weight: 700; color: var(--km-green-700); margin-bottom: .6rem; }
.km-map__panel-note {
    font-size: .86rem; color: var(--km-green-700);
    background: #f4fbf6; border: 1px solid rgba(31, 162, 76, .2); border-radius: 12px; padding: .9rem 1rem;
}

.km-errorpage { text-align: center; padding: 5rem 1rem; }
.km-errorpage b { display: block; font-size: 5rem; font-weight: 800; color: var(--km-green-600); line-height: 1; }
.km-errorpage h1 { font-size: 1.6rem; font-weight: 800; margin: 1rem 0 .6rem; }
.km-errorpage p { color: var(--km-muted); max-width: 46ch; margin: 0 auto 2rem; }

@media (prefers-reduced-motion: reduce) {
    .km-reveal { opacity: 1; transform: none; transition: none; }
    .km-poster__badge, .km-live-dot { animation: none; }
}

@media print {
    .km-nav, .km-footer, .km-noprint { display: none !important; }
    .km-ticket { box-shadow: none; border: 2px solid #ccc; }
    body { background: #fff; }
}

/* ---------- printable QR poster (admin) ------------------------------------ */

.km-qrpage {
    max-width: 210mm; margin: 2rem auto; background: #fff; border: 1px solid var(--km-line);
    border-radius: 4px; box-shadow: var(--km-shadow-lg);
    padding: 18mm 15mm; text-align: center;
}
.km-qrpage__logo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-bottom: 1rem; }
.km-qrpage h1 {
    font-size: 2.1rem; font-weight: 800; color: var(--km-green-800); margin: 0 0 .2rem;
}
.km-qrpage__uni { color: var(--km-muted); font-size: 1.05rem; margin: 0 0 .1rem; }
.km-qrpage__qr {
    width: 65mm; height: 65mm; margin: 2rem auto; display: block;
    border: 10px solid #fff; box-shadow: 0 0 0 2px var(--km-line);
}
.km-qrpage__scan { font-size: 1.6rem; font-weight: 800; color: var(--km-ink); margin: 0 0 .3rem; }
.km-qrpage__meta {
    display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.6rem;
    margin: 1.6rem 0 1rem; font-size: 1rem; color: var(--km-green-700); font-weight: 600;
}
.km-qrpage__meta i { color: var(--km-gold-500); margin-right: .35rem; }
.km-qrpage__helpline { color: var(--km-muted); font-size: .92rem; margin: 0; }

@media print {
    @page { size: A4 portrait; margin: 0; }
    body { background: #fff; }
    .km-qrpage {
        max-width: none; width: 210mm; min-height: 297mm; margin: 0; border: 0; box-shadow: none;
        border-radius: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
    }
}

@media (max-width: 991.98px) {
    .km-poster { margin-top: 3rem; max-width: 340px; }
    .km-poster__badge--a { left: -6%; }
    .km-poster__badge--b { right: -4%; }
    .km-count__card { justify-content: center; text-align: center; }
    .km-count__label { flex-direction: column; gap: .4rem; }
}

@media (max-width: 575.98px) {
    .km-count__grid { gap: .45rem; }
    .km-count__box { min-width: 66px; padding: .6rem .3rem; }
    .km-count__box b { font-size: 1.35rem; }
    .km-count__box:not(:last-child)::after { right: -.5rem; font-size: 1.1rem; }
    .km-poster__badge { padding: .6rem .8rem; }
    .km-poster__badge b { font-size: 1rem; }
    .km-hero__cta .km-btn { width: 100%; }
}
