/* ==========================================================================
   Lefra / LTickets — design system
   Premium dark theatre UI · one warm accent · glass + grain · 2026 feel
   ========================================================================== */

/* ----------------------------------------------------------------- tokens */
:root {
    /* Surfaces — warm near-black, layered */
    --bg:            #0c0807;
    --bg-elev:       #17100e;
    --surface:       #1e1411;
    --surface-2:     #281a16;
    --surface-glass: rgba(36, 21, 19, 0.55);

    /* Accent — Lefra RED is the brand (from the wordmark's red echo + the
       LTickets ticket-red). Gold is the secondary highlight (the "L" medallion). */
    --accent:          #e21f28;   /* brand red — primary */
    --accent-alt:      #ff4e54;   /* brighter red for accent text/hovers */
    --accent-deep:     #a3121a;   /* deep red — gradient base, shadows */
    --accent-contrast: #ffffff;   /* text on red */
    --accent-soft:     rgba(226, 31, 40, 0.14);

    /* Gold — secondary highlight (prices, badges, stat numbers, the L mark) */
    --gold:            #f7b41d;
    --gold-soft:       rgba(247, 180, 29, 0.14);

    /* Ink */
    --text:       #f6f1ea;
    --text-muted: #b8aaa0;
    --text-dim:   #978b7e;

    /* Lines & glass */
    --border:      rgba(226, 31, 40, 0.18);
    --border-soft: rgba(246, 241, 234, 0.08);
    --hairline:    rgba(246, 241, 234, 0.06);

    /* Radius */
    --r-sm:   10px;
    --r:      16px;
    --r-lg:   24px;
    --r-xl:   32px;
    --r-pill: 999px;

    /* Shadow & glow */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow:    0 18px 50px -18px rgba(0, 0, 0, 0.65);
    --shadow-lg: 0 40px 90px -30px rgba(0, 0, 0, 0.8);
    --glow:      0 0 0 1px var(--border), 0 20px 60px -25px rgba(226, 31, 40, 0.4);

    /* Type */
    --font-display: "Fraunces", "Playfair Display", Georgia, "Times New Roman", serif;
    --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    /* Layout */
    --container: 1640px;
    --gutter: clamp(1.1rem, 3vw, 3.5rem);

    /* Motion */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --t-fast: 0.18s var(--ease);
    --t: 0.32s var(--ease);
    --t-slow: 0.6s var(--ease);
}

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: clamp(1rem, 0.97rem + 0.2vw, 1.075rem);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Ambient warm glows + subtle grain, fixed behind everything */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(60vw 60vw at 78% -8%, rgba(226, 31, 40, 0.18), transparent 60%),
        radial-gradient(48vw 48vw at -8% 6%, rgba(163, 18, 26, 0.16), transparent 55%),
        radial-gradient(40vw 40vw at 50% 112%, rgba(247, 180, 29, 0.06), transparent 60%);
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0.035;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }

input, textarea, select { font: inherit; color: inherit; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection { background: var(--accent); color: var(--accent-contrast); }

/* ------------------------------------------------------------- typography */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -0.015em;
    font-optical-sizing: auto;
}

.display {
    font-size: clamp(2.6rem, 1.6rem + 5vw, 5.4rem);
    font-weight: 600;
}

p { color: var(--text); }

.muted { color: var(--text-muted); }

/* --------------------------------------------------------------- layout -- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section {
    padding-block: clamp(3.5rem, 2rem + 7vw, 7rem);
    position: relative;
}

.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }

.section-head {
    max-width: 640px;
    margin-bottom: clamp(1.8rem, 1rem + 3vw, 3rem);
}

.section-head--center {
    margin-inline: auto;
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-alt);
    margin-bottom: 1rem;
}

.eyebrow::before {
    content: "";
    width: 1.6rem;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

.section-head--center .eyebrow { justify-content: center; }
.section-head--center .eyebrow::before { display: none; }

.section-title {
    font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.1rem);
}

.section-lead {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: clamp(1.02rem, 1rem + 0.3vw, 1.18rem);
}

/* --------------------------------------------------------------- glass --- */
.glass {
    background: var(--surface-glass);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow);
}

/* --------------------------------------------------------------- buttons - */
.btn {
    --btn-bg: var(--surface-2);
    --btn-fg: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.85rem 1.5rem;
    border-radius: var(--r-pill);
    font-weight: 600;
    font-size: 0.96rem;
    letter-spacing: 0.01em;
    background: var(--btn-bg);
    color: var(--btn-fg);
    border: 1px solid var(--border-soft);
    transition: transform var(--t-fast), box-shadow var(--t), background var(--t), border-color var(--t);
    will-change: transform;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
    --btn-fg: var(--accent-contrast);
    background: linear-gradient(135deg, var(--accent-alt), var(--accent) 55%, var(--accent-deep));
    border-color: transparent;
    box-shadow: 0 12px 30px -12px rgba(226, 31, 40, 0.65);
}

.btn--primary:hover {
    box-shadow: 0 18px 44px -12px rgba(226, 31, 40, 0.85);
}

.btn--ghost {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}

.btn--ghost:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.btn--lg { padding: 1.05rem 2rem; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn--sm { padding: 0.55rem 1rem; font-size: 0.85rem; }

/* --------------------------------------------------------------- badges -- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.32rem 0.7rem;
    border-radius: var(--r-pill);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--gold-soft);
    color: var(--gold);
    border: 1px solid rgba(247, 180, 29, 0.28);
}

.badge--marquee {
    background: rgba(216, 48, 47, 0.14);
    color: #ff8a82;
    border-color: rgba(216, 48, 47, 0.3);
}

/* status tags (admin) */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.65rem;
    border-radius: var(--r-pill);
    font-size: 0.76rem;
    font-weight: 600;
    border: 1px solid var(--border-soft);
    text-transform: capitalize;
}
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tag--aktief        { color: #6ee7a8; background: rgba(110, 231, 168, 0.10); }
.tag--wagtend       { color: var(--gold); background: var(--gold-soft); }
.tag--gekanselleer  { color: #ff8a82; background: rgba(226, 31, 40, 0.12); }
.tag--admin         { color: var(--gold); background: var(--gold-soft); }
.tag--user          { color: var(--text-muted); background: rgba(246, 241, 234, 0.05); }

/* ----------------------------------------------------------------- brand */
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand__mark {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    display: grid; place-items: center;
    flex: none;
    background: radial-gradient(circle at 38% 30%, #ff3b32, #c4151c 58%, #8c0d12);
    box-shadow: 0 2px 12px -3px rgba(226, 31, 40, 0.7);
}
.brand__mark svg { width: 19px; height: 19px; }
.brand__word {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text);
    line-height: 1;
    text-shadow: 0.028em 0.034em 0 var(--accent);
}
.brand__word .dot { color: var(--gold); }
.brand--sm .brand__word { font-size: 1.28rem; }
.brand--sm .brand__mark { width: 31px; height: 31px; }

/* Brand logo image (logo.png if present, else the svg fallback) */
.brand-img { height: 64px; width: auto; display: block; }
.brand-img--sm { height: 42px; }
.footer-brand__logo .brand-img { height: 54px; margin-bottom: 1rem; }
.admin-side__brand .brand-img { height: 40px; }
@media (max-width: 760px) { .brand-img { height: 50px; } }

/* =========================================================== site header = */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background var(--t), backdrop-filter var(--t), border-color var(--t);
    border-bottom: 1px solid transparent;
}

.site-header.is-stuck {
    background: rgba(12, 9, 7, 0.72);
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    border-bottom-color: var(--hairline);
}

/* Header height stays constant on scroll — only the glass background fades in.
   Changing the height here caused a layout-shift feedback loop / scroll stutter. */
.nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-block: 1.15rem;
}

.nav__logo { margin-right: auto; display: inline-flex; align-items: center; }
.nav__logo svg { height: 30px; width: auto; }

.nav__links {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    list-style: none;
    padding: 0;
}

.nav__link {
    position: relative;
    padding: 0.5rem 0.85rem;
    border-radius: var(--r-pill);
    color: var(--text-muted);
    font-size: 0.94rem;
    font-weight: 500;
    transition: color var(--t-fast), background var(--t-fast);
}

.nav__link:hover { color: var(--text); }

.nav__link.is-active { color: var(--accent-alt); }
.nav__link.is-active::after {
    content: "";
    position: absolute;
    left: 0.85rem; right: 0.85rem; bottom: 0.18rem;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

.nav__actions { display: flex; align-items: center; gap: 0.6rem; }

.nav__toggle {
    display: none;
    width: 44px; height: 44px;
    border-radius: var(--r-sm);
    border: 1px solid var(--border-soft);
    position: relative;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
    content: "";
    position: absolute;
    left: 50%; top: 50%;
    width: 18px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transform: translate(-50%, -50%);
    transition: transform var(--t), opacity var(--t-fast);
}
.nav__toggle span::before { transform: translate(-50%, -7px); }
.nav__toggle span::after  { transform: translate(-50%, 5px); }

/* ----------------------------------------------------------------- hero -- */
.hero {
    position: relative;
    padding-block: clamp(3rem, 1.5rem + 9vw, 8rem) clamp(3.5rem, 2rem + 7vw, 7rem);
    overflow: hidden;
}

.hero__inner {
    position: relative;
    max-width: none;
}

.hero__title {
    font-size: clamp(2.7rem, 1.4rem + 6.2vw, 6rem);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.028em;
    /* Signature: the brand's red offset-echo from the Lefra wordmark — a tight,
       half-strength footlight cast that stays legible at display size. */
    text-shadow: 0.02em 0.028em 0 rgba(226, 31, 40, 0.5);
}
.hero__title .accent {
    color: var(--gold);
    /* The gold word takes depth from a dark shadow instead — a red echo behind
       gold vibrates because the two high-chroma hues sit adjacent. */
    text-shadow: 0.018em 0.026em 0 rgba(0, 0, 0, 0.5);
}

/* Footlight: a warm, static spotlight wash behind the headline. */
.hero__glow {
    position: absolute;
    inset: -10% -5% auto -5%;
    height: 125%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(58% 70% at 24% 32%, rgba(226, 31, 40, 0.16), rgba(226, 31, 40, 0) 60%),
        radial-gradient(46% 58% at 68% 26%, rgba(247, 180, 29, 0.10), rgba(247, 180, 29, 0) 62%);
}
.hero > .container { position: relative; z-index: 1; }

.hero__subtitle {
    margin-top: 1.6rem;
    max-width: 600px;
    font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem);
    color: var(--text-muted);
}

.hero__actions {
    margin-top: 2.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.hero__meta {
    margin-top: 2.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1.4rem, 1rem + 2vw, 3rem);
    padding-top: 1.8rem;
    border-top: 1px solid var(--hairline);
}

.hero__stat .n {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem);
    color: var(--gold);
    font-weight: 600;
    display: block;
}
.hero__stat .l { font-size: 0.85rem; color: var(--text-muted); }

/* Genre strip under the hero — a static playbill of what's on. */
.hero__ticker {
    margin-top: 2.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    color: var(--text-dim);
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1rem, 0.9rem + 0.6vw, 1.4rem);
}
.hero__ticker span { display: inline-flex; align-items: center; gap: 2.5rem; }
.hero__ticker span::after { content: "✦"; color: var(--accent); font-style: normal; }
.hero__ticker span:last-child::after { content: none; }

/* Centered hero variant — used on Tuis and as the membership masthead on Vriende. */
.hero--center { text-align: center; }
.hero--center .hero__inner { margin-inline: auto; }
.hero--center .hero__title { text-wrap: balance; }
.hero--center .hero__subtitle { margin-inline: auto; max-width: 600px; text-wrap: balance; }
.hero--center .hero__actions,
.hero--center .hero__meta,
.hero--center .hero__ticker { justify-content: center; }

/* Tall full-bleed masthead (Tuis) — content spans the full width and is
   vertically centered in a near-full-viewport hero. */
.hero--tall {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero--tall .hero__title { font-size: clamp(2.8rem, 1.4rem + 7vw, 7rem); }

/* Compact membership treatment (Vriende) — narrower column, smaller headline,
   tighter base. */
.hero--compact { padding-bottom: clamp(2.5rem, 1.5rem + 2.5vw, 4rem); }
.hero--compact .hero__inner { max-width: 960px; }
.hero--compact .hero__title { font-size: clamp(2.5rem, 1.5rem + 3.4vw, 4.2rem); }

/* Membership perks — what every Vriend gets, in one scannable row. */
.hero__perks {
    margin: 2.6rem auto 0;
    max-width: 900px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem 2rem;
    padding-top: 1.8rem;
    border-top: 1px solid var(--hairline);
    list-style: none;
}
.hero__perks li {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--text-muted);
    font-size: 1rem;
}
.hero__perks li::before {
    content: "";
    flex: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--accent-soft);
    border: 1px solid rgba(247, 180, 29, 0.5);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f7b41d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
    background-size: 11px 11px;
    background-repeat: no-repeat;
    background-position: center;
}

/* ---- VIP Teaterklub: VOORDELE list ---- */
.perk-list { list-style: none; max-width: 840px; margin: 0 auto; display: grid; gap: 0.7rem; }
.perk-list--grid { max-width: 940px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 0.7rem 0.9rem; }
.perk-list__item {
    display: flex; gap: 0.8rem; align-items: flex-start;
    padding: 0.85rem 1.05rem;
    background: var(--surface); border: 1px solid var(--border-soft);
    border-radius: var(--r-lg); color: var(--text-muted); font-size: 0.97rem;
}
.perk-list__check { width: 19px; height: 19px; flex: none; margin-top: 2px; color: var(--gold); }

/* ---- accordion (Hoe werk die Klub) ---- */
.accordion { display: grid; gap: 0.55rem; }
.accordion__item { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r-lg); overflow: hidden; }
.accordion__btn {
    width: 100%; display: flex; align-items: center; gap: 0.9rem;
    padding: 0.95rem 1.15rem; background: transparent; border: 0; cursor: pointer;
    color: var(--text); font-family: inherit; font-size: 1rem; font-weight: 500; text-align: left;
}
.accordion__btn:hover { background: rgba(246, 241, 234, 0.03); }
.accordion__num {
    flex: none; width: 28px; height: 28px; display: grid; place-items: center;
    border-radius: 50%; background: var(--accent-soft); color: var(--accent-alt);
    font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
}
.accordion__title { flex: 1; }
.accordion__chev { width: 18px; height: 18px; flex: none; color: var(--text-dim); transition: transform var(--t-fast); }
.accordion__btn[aria-expanded="true"] .accordion__chev { transform: rotate(180deg); }
.accordion__body { padding: 0 1.15rem 1.1rem 3.05rem; color: var(--text-muted); line-height: 1.65; }
.accordion__body p { margin: 0; }

/* ---- multi-step form wizard ---- */
.wizard__head { display: none; margin-bottom: 1.4rem; }
.wizard.is-enhanced .wizard__head { display: block; }
.wizard__progress { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.wizard__bar { height: 5px; border-radius: 999px; background: rgba(246, 241, 234, 0.08); overflow: hidden; }
.wizard__bar > span { display: block; height: 100%; width: 20%; background: var(--accent); border-radius: 999px; transition: width var(--t); }
.wizard__step { border: 0; padding: 0; margin: 0; min-width: 0; }
.wizard__legend { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--text); margin-bottom: 1rem; padding: 0; }
.wizard__nav { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }
.wizard__nav .btn { flex: 1 1 auto; }
.input--error { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
/* progressive enhancement: without JS it stays one long form with a single submit */
.wizard:not(.is-enhanced) [data-wizard-prev],
.wizard:not(.is-enhanced) [data-wizard-next] { display: none !important; }
.wizard [hidden] { display: none !important; }

/* form section divider */
.form__sep { border: 0; border-top: 1px solid var(--hairline); margin: 1.6rem 0 1.2rem; }

/* ---- Bepalings en Voorwaardes list ---- */
.terms-list { display: grid; gap: 0.85rem; padding-left: 1.5rem; color: var(--text-muted); line-height: 1.7; }
.terms-list li { padding-left: 0.35rem; }
.terms-list li::marker { color: var(--gold); font-weight: 600; }

/* ----------------------------------------------------- generic grids ---- */
.grid { display: grid; gap: clamp(1rem, 0.6rem + 1.5vw, 1.7rem); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid--3 { grid-template-columns: 1fr; } }

/* --------------------------------------------------- production cards ---- */
.filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}
.filter__btn {
    padding: 0.5rem 1.1rem;
    border-radius: var(--r-pill);
    border: 1px solid var(--border-soft);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.filter__btn:hover { color: var(--text); border-color: var(--border); }
.filter__btn.is-active {
    color: var(--accent-contrast);
    background: linear-gradient(135deg, var(--accent-alt), var(--accent));
    border-color: transparent;
}

.production-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--border-soft);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.production-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border);
}

.production-card__poster {
    position: relative;
    aspect-ratio: 3 / 2;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    overflow: hidden;
    /* category-tinted gradient "poster" placeholder */
    background:
        radial-gradient(120% 120% at 100% 0%, var(--cat, var(--accent)) 0%, transparent 55%),
        linear-gradient(160deg, var(--surface-2), #100c09);
}
.production-card__poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.production-card__poster::after {
    /* big ghosted initial, theatrical */
    content: attr(data-initial);
    position: absolute;
    top: -0.3em; right: 0.1em;
    font-family: var(--font-display);
    font-size: 9rem;
    font-weight: 900;
    line-height: 1;
    color: rgba(246, 241, 234, 0.06);
    pointer-events: none;
}
.production-card__poster .badge { position: relative; z-index: 1; }

.production-card__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.production-card__title { font-size: 1.5rem; }
.production-card__blurb { color: var(--text-muted); font-size: 0.95rem; }

.production-card__meta {
    margin-top: 0.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}
.production-card__meta div { display: flex; align-items: center; gap: 0.55rem; }
.production-card__meta svg { width: 15px; height: 15px; color: var(--accent); flex: none; }

.production-card__foot {
    margin-top: auto;
    padding-top: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    border-top: 1px solid var(--hairline);
}
.price { font-family: var(--font-display); font-size: 1.15rem; color: var(--gold); }
.price small { color: var(--text-muted); font-family: var(--font-body); font-size: 0.72rem; display: block; }

/* category accent hues (set --cat used by poster) */
[data-category="Musiek"]  { --cat: rgba(240, 163, 46, 0.5); }
[data-category="Komedie"] { --cat: rgba(122, 196, 255, 0.32); }
[data-category="Drama"]   { --cat: rgba(216, 48, 47, 0.4); }
[data-category="Familie"] { --cat: rgba(110, 231, 168, 0.32); }
[data-category="Teater"]  { --cat: rgba(199, 146, 234, 0.32); }

/* ------------------------------------------------------------ festival --- */
.festival {
    position: relative;
    border-radius: var(--r-xl);
    padding: clamp(2rem, 1.2rem + 4vw, 3.6rem);
    overflow: hidden;
    background:
        radial-gradient(80% 120% at 100% 0%, rgba(216, 48, 47, 0.22), transparent 60%),
        linear-gradient(135deg, #1a1310, #0f0b08);
    border: 1px solid var(--border);
}
.festival__inner { position: relative; display: grid; gap: 2rem; grid-template-columns: 1.3fr 1fr; align-items: center; }
.festival__title { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.9rem); margin-top: 0.8rem; }
.festival__blurb { color: var(--text-muted); margin-top: 1rem; max-width: 46ch; }

.countdown { display: flex; gap: 0.8rem; }
.countdown__unit {
    flex: 1;
    text-align: center;
    padding: 1rem 0.5rem;
    border-radius: var(--r);
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-soft);
}
.countdown__num { font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); color: var(--gold); font-weight: 600; }
.countdown__label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); }

/* ------------------------------------------------------------ benefits --- */
.benefits {
    display: grid;
    gap: 1rem;
    /* Stretch the cards to fill the row (equal columns, flush with the page's
       other full-width bands) instead of capping each card and centering the
       cluster — which left big dead gutters beside 3–4 items. */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.benefit {
    padding: 1.5rem;
    border-radius: var(--r-lg);
    background: var(--surface);
    border: 1px solid var(--border-soft);
    transition: transform var(--t), border-color var(--t), background var(--t);
}
.benefit:hover { transform: translateY(-4px); border-color: var(--border); background: var(--surface-2); }
.benefit__icon {
    width: 46px; height: 46px;
    display: grid; place-items: center;
    border-radius: 13px;
    background: var(--accent-soft);
    color: var(--accent);
    margin-bottom: 1rem;
}
.benefit__icon svg { width: 22px; height: 22px; }
.benefit h3 { font-size: 1.2rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
.benefit p { color: var(--text-muted); font-size: 0.94rem; margin-top: 0.4rem; }

/* --------------------------------------------------- membership plans ---- */
.plans {
    display: grid;
    gap: 1.2rem;
    /* Plans stretch to fill the row at equal width & height — flush with the
       page's other bands. They're content-rich enough (price, benefits, qty,
       full-width CTA) to read well even when wide. */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    align-items: stretch;
}
/* A lone plan shouldn't stretch the full width into one giant sparse card —
   keep it a sensible, centered card. (2+ plans fill the row nicely.) */
.plans:has(> .plan:only-child) { max-width: 560px; margin-inline: auto; }
.plan {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-width: 0;
    padding: 1.9rem 1.6rem;
    border-radius: var(--r-lg);
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--border-soft);
    transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.plan:hover { transform: translateY(-4px); border-color: var(--border); box-shadow: var(--shadow-lg); }
.plan--popular { border-color: var(--accent); box-shadow: 0 24px 60px -28px rgba(226, 31, 40, 0.5); }
.plan__tag {
    position: absolute; top: -0.7rem; right: 1.2rem;
    background: linear-gradient(135deg, var(--accent-alt), var(--accent));
    color: #fff; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; padding: 0.3rem 0.75rem; border-radius: var(--r-pill);
}
.plan__name { font-size: 1.6rem; }
.plan__tagline { color: var(--text-muted); font-size: 0.92rem; }
.plan__price { display: flex; align-items: baseline; gap: 0.35rem; margin: 0.5rem 0 0.6rem; }
.plan__amount { font-family: var(--font-display); font-size: 2.5rem; font-weight: 600; color: var(--gold); line-height: 1; }
.plan__per { color: var(--text-muted); font-size: 0.9rem; }
.plan__benefits { list-style: none; padding: 0; margin: 0.4rem 0 1.3rem; display: grid; gap: 0.55rem; }
.plan__benefits li { position: relative; padding-left: 1.5rem; color: var(--text-muted); font-size: 0.93rem; }
.plan__benefits li::before {
    content: ""; position: absolute; left: 0; top: 0.42em;
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft);
}
.plan form,
.plan > .btn { margin-top: auto; }
.qty-field { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.6rem; }
.qty-field span { font-size: 0.9rem; color: var(--text-muted); }

/* Themed quantity stepper — replaces the browser's native number spinners */
.qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-soft);
    border-radius: var(--r-pill);
    background: rgba(12, 9, 7, 0.6);
    transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.qty-stepper:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
    background: rgba(12, 9, 7, 0.85);
}
.qty-stepper__btn {
    width: 2.25rem;
    height: 2.4rem;
    display: grid;
    place-items: center;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: var(--r-pill);
    color: var(--text-muted);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    transition: color var(--t-fast), background var(--t-fast);
}
.qty-stepper__btn:hover { color: var(--text); background: var(--surface-2); }
.qty-stepper__btn:active { color: var(--accent-alt); }
.qty-stepper__btn:focus-visible { outline: none; color: var(--text); background: var(--surface-2); }
.qty-stepper__btn:disabled { opacity: 0.3; cursor: default; background: transparent; }
.qty-stepper__input {
    width: 2.6rem;
    padding: 0.45rem 0;
    text-align: center;
    background: transparent;
    border: 0;
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    -moz-appearance: textfield;
    appearance: textfield;
}
.qty-stepper__input:focus { outline: none; }
.qty-stepper__input::-webkit-outer-spin-button,
.qty-stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.plan__total { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 0.85rem; }
.plan__total strong { color: var(--gold); font-family: var(--font-display); font-size: 1.05rem; }

/* ------------------------------------- VIP plan picker (wizard step 3) --- */
.plan-picker { display: grid; gap: 0.85rem; }
.plan-opt {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.05rem 1.15rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface-2);
    cursor: pointer;
    transition: border-color var(--t), background var(--t), box-shadow var(--t);
}
.plan-opt:hover { border-color: var(--hairline); }
.plan-opt.is-selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent) inset;
}
.plan-opt input[type="radio"] { accent-color: var(--accent); width: 20px; height: 20px; flex: none; }
.plan-opt__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.plan-opt__name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.plan-opt__badge {
    font-family: var(--font-body);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--gold);
    border-radius: 999px;
    padding: 0.1rem 0.5rem;
}
.plan-opt__tag { font-size: 0.85rem; color: var(--text-muted); }
.plan-opt__price {
    text-align: right;
    flex: none;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--gold);
    line-height: 1.1;
    display: flex;
    flex-direction: column;
}
.plan-opt__price small { font-family: var(--font-body); font-size: 0.72rem; font-weight: 400; color: var(--text-muted); }

.plan-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.3rem;
    padding: 1rem 1.15rem;
    border: 1px dashed var(--border);
    border-radius: 14px;
    background: var(--surface-2);
}
.plan-summary__label { color: var(--text-muted); font-size: 0.9rem; }
.plan-summary__value strong { font-family: var(--font-display); font-size: 1.7rem; color: var(--gold); }
.plan-summary__per { color: var(--text-muted); font-size: 0.85rem; }

@media (max-width: 520px) {
    .plan-opt { flex-wrap: wrap; }
    .plan-opt__price { text-align: left; flex-direction: row; align-items: baseline; gap: 0.4rem; width: 100%; padding-left: 2rem; }
}

/* --------------------------------------------------------- testimonials -- */
/* auto-fit (not auto-fill): collapse empty tracks so 2–3 quotes stretch to fill
   the row instead of left-clustering with a big empty gap on the right. */
.quotes { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.quote {
    padding: 1.8rem;
    border-radius: var(--r-lg);
    background: var(--surface-glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-soft);
}
.quote__mark { font-family: var(--font-display); font-size: 3rem; line-height: 0.6; color: var(--accent); }
.quote p { margin-top: 0.6rem; font-size: 1.05rem; }
.quote__author { margin-top: 1.1rem; font-weight: 600; }
.quote__role { color: var(--text-muted); font-size: 0.85rem; }

/* ----------------------------------------------------------------- cta --- */
.cta-band {
    text-align: center;
    border-radius: var(--r-xl);
    padding: clamp(2.4rem, 1.5rem + 4vw, 4.5rem);
    background:
        radial-gradient(70% 140% at 50% 0%, rgba(226, 31, 40, 0.2), transparent 60%),
        linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--border);
}
.cta-band h2 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.2rem); }
.cta-band p { color: var(--text-muted); margin: 1rem auto 0; max-width: 52ch; }
.cta-band .hero__actions { justify-content: center; }

/* ----------------------------------------------------------- newsletter -- */
.newsletter-form {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.6rem;
    max-width: 460px;
}
.newsletter-form .input { flex: 1; }
@media (max-width: 480px) { .newsletter-form { flex-direction: column; } }

/* --------------------------------------------------------------- forms --- */
.form { display: grid; gap: 1.15rem; }
.form__row { display: grid; gap: 1.15rem; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

.field { display: grid; gap: 0.45rem; }
.field__label { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.field__label .opt { color: var(--text-dim); font-weight: 400; }

.input, .textarea, .select {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: var(--r-sm);
    background: rgba(12, 9, 7, 0.6);
    border: 1px solid var(--border-soft);
    color: var(--text);
    transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.textarea { min-height: 120px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--text-dim); }
.input:focus, .textarea:focus, .select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
    background: rgba(12, 9, 7, 0.85);
}
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23a89e93' stroke-width='2'%3E%3Cpath d='M3 5l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.4rem; }

.field--error .input,
.field--error .textarea,
.field--error .select { border-color: #ff8a82; box-shadow: 0 0 0 3px rgba(216, 48, 47, 0.12); }
.field__error { color: #ff9a92; font-size: 0.82rem; }
.help { color: var(--text-muted); font-size: 0.82rem; }

.checkbox { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.9rem; color: var(--text-muted); }
.checkbox input { margin-top: 0.25rem; accent-color: var(--accent); width: 16px; height: 16px; }

/* --------------------------------------------------------------- alerts -- */
.flash-stack { display: grid; gap: 0.7rem; }
.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.9rem 1.1rem;
    border-radius: var(--r-sm);
    border: 1px solid var(--border-soft);
    background: var(--surface);
    font-size: 0.94rem;
}
.alert svg { width: 18px; height: 18px; flex: none; margin-top: 0.15rem; }
.alert--success { border-color: rgba(110, 231, 168, 0.3); background: rgba(110, 231, 168, 0.08); color: #b8f0d0; }
.alert--error   { border-color: rgba(216, 48, 47, 0.3); background: rgba(216, 48, 47, 0.08); color: #ffc7c2; }
.alert--info    { border-color: var(--border); background: var(--accent-soft); color: var(--accent-alt); }

/* --------------------------------------------------------- auth + panels - */
.panel {
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--border-soft);
    border-radius: var(--r-lg);
    padding: clamp(1.5rem, 1rem + 2vw, 2.6rem);
}

.auth-wrap {
    min-height: calc(100vh - 80px);
    display: grid;
    place-items: center;
    padding-block: clamp(2.5rem, 2rem + 4vw, 5rem);
}
.auth-card { width: 100%; max-width: 440px; }
.auth-card .eyebrow { margin-bottom: 0.6rem; }
.auth-card h1 { font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.4rem); }
.auth-switch { margin-top: 1.4rem; text-align: center; color: var(--text-muted); font-size: 0.92rem; }
.auth-switch a { color: var(--accent-alt); font-weight: 600; }

/* ----------------------------------------------------- profile layout --- */
.profile-grid { display: grid; gap: 1.5rem; grid-template-columns: 320px 1fr; align-items: start; }
@media (max-width: 860px) { .profile-grid { grid-template-columns: 1fr; } }

.profile-card { text-align: center; }
.avatar {
    width: 84px; height: 84px; margin: 0 auto 1rem;
    border-radius: 50%;
    display: grid; place-items: center;
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--accent-contrast);
    background: linear-gradient(135deg, var(--accent-alt), var(--accent));
}
.info-list { list-style: none; padding: 0; display: grid; gap: 0.9rem; }
.info-list li { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--hairline); }
.info-list li:last-child { border-bottom: none; padding-bottom: 0; }
.info-list .k { color: var(--text-muted); font-size: 0.9rem; }
.info-list .v { font-weight: 600; text-align: right; }

/* empty-state */
.empty {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border: 1px dashed var(--border);
    border-radius: var(--r-lg);
    color: var(--text-muted);
}

/* =============================================================== admin === */
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
@media (max-width: 880px) { .admin-shell { grid-template-columns: 1fr; } }
.admin-bar { display: none; }   /* mobile-only top bar (see responsive block) */

.admin-side {
    border-right: 1px solid var(--hairline);
    padding: 1.5rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    position: sticky;
    top: 0;
    height: 100vh;
}
@media (max-width: 880px) {
    /* Mobile: the sidebar collapses behind a hamburger in a sticky top bar. */
    .admin-bar {
        display: flex; align-items: center; justify-content: space-between; gap: 1rem;
        padding: 0.7rem 1rem;
        border-bottom: 1px solid var(--hairline);
        position: sticky; top: 0; z-index: 60;
        background: var(--bg);
    }
    .admin-bar__brand svg { height: 24px; width: auto; display: block; }
    .admin-bar__brand .brand-img { height: 30px; }
    .admin-bar__toggle {
        display: inline-flex; align-items: center; justify-content: center;
        width: 42px; height: 42px;
        border: 1px solid var(--border-soft); border-radius: var(--r-sm);
        background: transparent; color: var(--text); cursor: pointer;
    }
    .admin-bar__toggle svg { width: 22px; height: 22px; }
    .admin-bar__toggle .i-close { display: none; }
    .admin-shell.side-open .admin-bar__toggle .i-open { display: none; }
    .admin-shell.side-open .admin-bar__toggle .i-close { display: inline; }

    .admin-side {
        display: none;
        position: static; height: auto;
        border-right: none; border-bottom: 1px solid var(--hairline);
        padding: 1rem 1.2rem 1.4rem;
    }
    .admin-shell.side-open .admin-side { display: flex; }
    .admin-side__brand { display: none; }   /* logo lives in the bar on mobile */
}

.admin-side__brand { margin-bottom: 1.4rem; }
.admin-side__brand svg { height: 26px; }
.admin-nav { display: flex; flex-direction: column; gap: 0.2rem; }
.admin-nav a {
    display: flex; align-items: center; gap: 0.7rem;
    padding: 0.7rem 0.9rem;
    border-radius: var(--r-sm);
    color: var(--text-muted);
    font-weight: 500;
    transition: background var(--t-fast), color var(--t-fast);
}
.admin-nav a svg { width: 18px; height: 18px; }
.admin-nav a:hover { color: var(--text); background: rgba(246, 241, 234, 0.04); }
.admin-nav a.is-active { color: var(--accent-alt); background: var(--accent-soft); }
.admin-side__foot { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--hairline); }

/* overflow-x: clip keeps any too-wide admin content (tables, code blocks, grids)
   from scrolling the whole page sideways. It's a sibling of the sticky sidebar,
   not an ancestor, so it doesn't affect sticky; overflow-y stays visible. */
.admin-main { padding: clamp(1.4rem, 1rem + 2vw, 2.6rem); min-width: 0; overflow-x: clip; }
.admin-head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.8rem; }
.admin-head h1 { font-size: clamp(1.6rem, 1.3rem + 1.5vw, 2.3rem); }

/* ---- admin settings page ---- */
.settings-stack { display: grid; gap: 1.4rem; max-width: 1000px; }
.settings-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.settings-card__title { font-family: var(--font-body); font-weight: 700; font-size: 1.3rem; }
.code-block {
    background: rgba(12, 8, 7, 0.6); border: 1px solid var(--border-soft);
    border-radius: var(--r-sm); padding: 0.8rem; margin: 0; font-size: 0.82rem;
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    color: var(--text-muted); white-space: pre-wrap; overflow-wrap: anywhere;
}
.code-inline {
    background: rgba(12, 8, 7, 0.6); border: 1px solid var(--border-soft);
    border-radius: var(--r-sm); padding: 0.15rem 0.45rem; font-size: 0.85rem;
    font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--text);
}

/* Long lines in code/URL blocks wrap instead of forcing the page wide. */
pre { white-space: pre-wrap; overflow-wrap: anywhere; }

.stat-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin-bottom: 2rem; }
.stat {
    padding: 1.4rem;
    border-radius: var(--r-lg);
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--border-soft);
}
.stat__num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; color: var(--gold); line-height: 1; }
.stat__label { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.4rem; }
.stat--accent { border-color: rgba(201, 162, 90, 0.4); background: linear-gradient(180deg, rgba(201, 162, 90, 0.1), var(--surface)); }

/* ------------------------------------------------ admin dashboard charts --- */
.dash-charts { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); margin-bottom: 1.5rem; }
.dash-title { font-family: var(--font-body); font-weight: 700; font-size: 1.15rem; }

/* vertical bar chart — new members per month */
.bars { display: flex; align-items: stretch; gap: 0.5rem; height: 200px; padding-top: 0.5rem; }
.bars__col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.35rem; min-width: 0; }
.bars__val { font-size: 0.72rem; color: var(--text-muted); height: 1em; font-variant-numeric: tabular-nums; }
.bars__track { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.bars__fill { width: 62%; max-width: 26px; border-radius: 5px 5px 0 0; background: linear-gradient(180deg, var(--gold), rgba(201, 162, 90, 0.3)); transition: height var(--t); }
.bars__lbl { font-size: 0.72rem; color: var(--text-dim); }

/* donut — subscription status */
.donut-wrap { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.donut { width: 150px; height: 150px; flex: none; }
.donut__num { font-family: var(--font-display); font-size: 26px; fill: var(--text); font-weight: 600; }
.donut__cap { font-size: 9px; fill: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; flex: 1; min-width: 150px; }
.legend li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; }
.legend__dot { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.legend__label { color: var(--text-muted); }
.legend__val { margin-left: auto; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }

/* horizontal bars — plan mix */
.hbars { display: grid; gap: 0.8rem; }
.hbars__row { display: grid; grid-template-columns: minmax(90px, 170px) 1fr auto; align-items: center; gap: 0.8rem; }
.hbars__label { font-size: 0.9rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbars__track { height: 12px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: 999px; overflow: hidden; }
.hbars__fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); border-radius: 999px; }
.hbars__val { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }

/* export cards */
.export-grid { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.export-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.15rem; border: 1px solid var(--border-soft); border-radius: var(--r); background: var(--surface-2); }
.export-card__title { font-family: var(--font-display); font-size: 1.05rem; color: var(--text); }
.export-card__desc { color: var(--text-muted); font-size: 0.8rem; margin-top: 0.15rem; }
.export-card__actions { display: flex; gap: 0.4rem; flex: none; }
/* export filter toolbar */
.export-filter {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 1.2rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-soft);
    border-radius: var(--r);
    background: rgba(12, 9, 7, 0.35);
}
.export-filter__label { font-size: 0.78rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; }
.export-filter__sep { color: var(--text-dim); }

/* custom date picker */
.dp { position: relative; display: inline-block; }
.dp.is-open { z-index: 200; } /* lift the open picker above the export cards below it */
/* Panels carry will-change (scroll-reveal), which makes each a stacking context and
   would trap the popup — so a later panel paints over the calendar's lower half.
   Lift the panel holding an open picker above its sibling panels. */
.panel:has(.dp.is-open) { position: relative; z-index: 50; }
/* While a picker is open, recede the export cards behind it so the calendar is the clear focus. */
.panel:has(.dp.is-open) .export-grid { opacity: 0.28; pointer-events: none; transition: opacity 0.15s ease; }
.dp__field {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    min-width: 158px;
    padding: 0.55rem 0.85rem;
    border-radius: var(--r-sm);
    border: 1px solid var(--border-soft);
    background: rgba(12, 9, 7, 0.6);
    color: var(--text-muted);
    font: inherit;
    cursor: pointer;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.dp__field:hover { border-color: var(--hairline); }
.dp.is-open .dp__field,
.dp__field:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.dp__field.is-set { color: var(--text); }
.dp__field svg { width: 16px; height: 16px; color: var(--text-dim); flex: none; }

.dp__pop {
    position: absolute;
    z-index: 200;
    top: calc(100% + 6px);
    left: 0;
    width: 272px;
    padding: 0.9rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: var(--shadow-lg);
}
.dp__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.6rem; }
.dp__title { font-family: var(--font-display); font-size: 0.98rem; color: var(--text); }
.dp__nav {
    width: 30px; height: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-soft);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.15rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.dp__nav:hover { color: var(--text); background: var(--surface); }
.dp__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp__wd { text-align: center; font-size: 0.68rem; color: var(--text-dim); padding: 0.3rem 0; text-transform: uppercase; }
.dp__day {
    aspect-ratio: 1;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background var(--t-fast), color var(--t-fast);
}
.dp__day:hover { background: var(--surface); color: var(--text); }
.dp__day--empty { cursor: default; }
.dp__day.is-today { box-shadow: inset 0 0 0 1px var(--border); color: var(--text); }
.dp__day.is-selected,
.dp__day.is-selected:hover { background: var(--accent); color: #fff; }

@media (max-width: 560px) {
    .export-filter .dp, .export-filter .dp__field { width: 100%; }
    .dp__pop { width: 100%; min-width: 260px; }
}

.toolbar { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; margin-bottom: 1.2rem; }
.toolbar .input { max-width: 280px; }
.toolbar__spacer { margin-left: auto; }

/* Unified search control — magnifier + input + embedded submit share one
   themed shell, so the button reads as part of the field instead of a
   mismatched pill floating beside it. */
.search-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    max-width: 380px;
    padding: 0.3rem 0.3rem 0.3rem 0.85rem;
    border-radius: var(--r-sm);
    background: rgba(12, 9, 7, 0.6);
    border: 1px solid var(--border-soft);
    transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.search-field:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
    background: rgba(12, 9, 7, 0.85);
}
.search-field__icon { width: 18px; height: 18px; color: var(--text-dim); flex: none; }
.search-field input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: 0;
    color: var(--text);
    padding: 0.5rem 0;
}
.search-field input::placeholder { color: var(--text-dim); }
.search-field input:focus { outline: none; }
.search-field .btn { flex: none; }

.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--border-soft); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; min-width: 640px; }
.table th, .table td { padding: 0.9rem 1.1rem; text-align: left; }
.table thead th {
    font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--text-muted); font-weight: 600;
    border-bottom: 1px solid var(--hairline);
    background: rgba(12, 9, 7, 0.4);
}
.table tbody tr { border-bottom: 1px solid var(--hairline); transition: background var(--t-fast); }
.table tbody tr:last-child { border-bottom: none; }
.table tbody tr:hover { background: rgba(246, 241, 234, 0.025); }
.table .cell-strong { font-weight: 600; }
.table .cell-muted { color: var(--text-muted); font-size: 0.88rem; }
.row-actions { display: flex; gap: 0.4rem; justify-content: flex-end; }
.icon-btn {
    width: 34px; height: 34px;
    display: grid; place-items: center;
    border-radius: var(--r-sm);
    border: 1px solid var(--border-soft);
    color: var(--text-muted);
    transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.icon-btn:hover { color: var(--text); border-color: var(--border); }
.icon-btn--danger:hover { color: #ff9a92; border-color: rgba(216, 48, 47, 0.4); background: rgba(216, 48, 47, 0.08); }
.icon-btn svg { width: 16px; height: 16px; }

/* =============================================================== footer == */
.site-footer {
    border-top: 1px solid var(--hairline);
    margin-top: 2rem;
    padding-block: clamp(2.5rem, 2rem + 3vw, 4rem) 2rem;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.3));
}
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand__logo svg { height: 30px; margin-bottom: 1rem; }
.footer-brand p { color: var(--text-muted); max-width: 34ch; font-size: 0.94rem; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-dim); margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.footer-col a { color: var(--text-muted); font-size: 0.94rem; transition: color var(--t-fast); }
.footer-col a:hover { color: var(--accent-alt); }
.social { display: flex; gap: 0.6rem; margin-top: 1.2rem; }
.social a {
    width: 40px; height: 40px; display: grid; place-items: center;
    border-radius: 50%; border: 1px solid var(--border-soft); color: var(--text-muted);
    transition: color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.social a:hover { color: var(--accent-alt); border-color: var(--border); transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; }
.payments { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.payments span {
    padding: 0.35rem 0.7rem; border-radius: 6px;
    border: 1px solid var(--border-soft); background: var(--surface);
    font-size: 0.72rem; color: var(--text-muted); font-weight: 600; letter-spacing: 0.03em;
}
.footer-bottom {
    margin-top: 2.5rem; padding-top: 1.5rem;
    border-top: 1px solid var(--hairline);
    display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; justify-content: space-between;
    color: var(--text-dim); font-size: 0.85rem;
}

/* Developer watermark — R5 Systems, centred between the legal lines.
   The volt icon (#CCFF00) lives in the SVG itself. */
.footer-credit {
    display: inline-flex; align-items: center; gap: 0.5rem;
    color: var(--text-dim); font-size: 0.85rem; letter-spacing: 0.02em;
    transition: color var(--t-fast);
}
.footer-credit:hover { color: var(--text-muted); }
.footer-credit strong { color: var(--text-muted); font-weight: 600; transition: color var(--t-fast); }
.footer-credit:hover strong { color: #ccff00; }
.footer-credit__icon { width: 16px; height: 16px; display: block; flex-shrink: 0; }

/* ----------------------------------------------------------- error page -- */
.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.error-code { font-family: var(--font-display); font-size: clamp(5rem, 3rem + 14vw, 12rem); line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--border); }

/* ====================================================== scroll reveal ==== */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity var(--t-slow), transform var(--t-slow);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ------------------------------------------------------------- utilities - */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Skip link — visually hidden until it receives keyboard focus (WCAG 2.4.1). */
.skip-link {
    position: fixed;
    left: -9999px;
    top: 0;
    z-index: 1000;
    padding: 0.7rem 1.1rem;
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--accent);
    border-radius: 0 0 var(--r-sm) 0;
    font-weight: 600;
}
.skip-link:focus,
.skip-link:focus-visible {
    left: 0;
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.stack-sm { display: grid; gap: 0.6rem; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }
.text-center { text-align: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ========================================================= responsive ==== */
@media (max-width: 880px) {
    .festival__inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .nav__links {
        position: fixed;
        inset: 0 0 0 auto;
        width: min(82vw, 340px);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0.35rem;
        padding: 5rem 1.3rem 2.2rem;
        /* Elevated, opaque panel with depth. The fade uses opacity, which is
           safe here because there is NO backdrop-filter (opacity + backdrop-filter
           is what rendered the panel see-through before) and the gradient
           background is fully opaque. */
        background: linear-gradient(195deg, #1f1714 0%, #140e0b 55%, #0f0a08 100%);
        border-left: 1px solid rgba(247, 180, 29, 0.16);
        box-shadow: -28px 0 70px -16px rgba(0, 0, 0, 0.85);
        /* Pinned at the right edge so it never sits off-screen and extends the
           page width — a fixed off-screen drawer is NOT clipped by overflow-x on
           <body>, and clipping <html> breaks the sticky header. */
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.26s ease, visibility 0s linear 0.26s;
        z-index: 90;
    }
    .nav.is-open .nav__links {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: opacity 0.26s ease, visibility 0s;
    }
    /* Tapping a link navigates away; close instantly (no fade) so the menu does
       not appear to "hang" mid-fade while the next page loads. */
    .nav.is-leaving .nav__links,
    .nav.is-leaving .nav__backdrop { transition: none; }
    .nav__link { padding: 0.95rem 0.9rem; font-size: 1.08rem; border-radius: var(--r-sm); }
    .nav__link.is-active::after { display: none; }
    /* Refined active state — accent text + a slim left bar, not a heavy filled box. */
    .nav__link.is-active { background: transparent; color: var(--gold); font-weight: 600; box-shadow: inset 3px 0 0 var(--gold); }
    /* Set the auth / CTA actions apart from the nav links. */
    .nav__logout { margin-top: 0.9rem; }
    .nav__toggle { display: block; z-index: 95; }
    .nav.is-open .nav__toggle span { background: transparent; }
    .nav.is-open .nav__toggle span::before { transform: translate(-50%, 0) rotate(45deg); background: var(--text); }
    .nav.is-open .nav__toggle span::after  { transform: translate(-50%, 0) rotate(-45deg); background: var(--text); }
    body.nav-open { overflow: hidden; }

    /* Scrim behind the slide-in menu — tap to close. */
    .nav__backdrop {
        position: fixed;
        inset: 0;
        background: rgba(6, 4, 3, 0.6);
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--t);
        z-index: 85;
    }
    .nav.is-open .nav__backdrop { opacity: 1; pointer-events: auto; }
}

@media (min-width: 761px) {
    .nav__backdrop { display: none; }
}

/* ===================================================== reduced motion ==== */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}
