/* ════════════════════════════════════════════════════════════════════
   BUKANAKO · INK & GOLD — "The Ticket Office"
   ────────────────────────────────────────────────────────────────────
   Design system for the public surfaces: for-providers, directory,
   register, admin/login, auth/login. Dark-only by intent — one ink
   room, gold foil, ticket stubs. Every booking is a ticket; the UI
   says so.

   Type:    Clash Display (display) · Satoshi (body) · JetBrains Mono
   Motifs:  perforated ticket edges, № numbering, stamped seals,
            barcode strips, outline watermarks, film grain.

   Pages that DON'T use this file (customer portal, provider profile,
   reset password) keep directory.css/auth.css — do not load both.
   ════════════════════════════════════════════════════════════════════ */

:root {
    --ink:        #0A0A0B;
    --ink-2:      #0D0D10;
    --surface:    #131316;
    --surface-2:  #18181D;
    --line:       rgba(250, 250, 247, 0.08);
    --line-2:     rgba(250, 250, 247, 0.16);
    --paper:      #FAFAF7;
    --dim:        #9A9AA3;
    --faded:      #57575F;
    --gold:       #F9CB16;
    --gold-light: #FDE474;
    --gold-dark:  #D4A90E;
    --gold-glow:  rgba(249, 203, 22, 0.30);
    --gold-dim:   rgba(249, 203, 22, 0.10);
    /* Gold used as TEXT. Bright gold reads on dark; light mode deepens it
       (see the light block) for contrast on pale backgrounds. Fills/borders
       keep using --gold directly so buttons/chips stay bright. */
    --gold-text:  var(--gold);
    --wa:         #25D366;
    --wa-dim:     rgba(37, 211, 102, 0.12);
    --warn:       #FF6B6B;
    --warn-dim:   rgba(255, 107, 107, 0.10);

    --font-display: 'Clash Display', 'Outfit', sans-serif;
    --font-body:    'Satoshi', 'Instrument Sans', -apple-system, sans-serif;
    --font-mono:    'JetBrains Mono', ui-monospace, monospace;

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --pad-x: clamp(1.25rem, 4vw, 4rem);

    /* Always-dark ink for text sitting on gold / light fills — must NOT flip
       in light mode (otherwise gold buttons get light, unreadable text). */
    --on-gold: #0A0A0B;
}

/* ── Light theme ─────────────────────────────────────────────────────────
   Restores the platform-wide light/dark toggle the ink redesign dropped.
   Only the neutral ramp flips; the gold / WhatsApp / warn accents stay, and
   dark-on-gold text uses --on-gold (which never flips). */
:root[data-theme="light"] {
    --ink:        #FBFAF3;   /* page background — warm paper */
    --ink-2:      #F2EFE5;
    --surface:    #FFFFFF;
    --surface-2:  #F6F3EA;
    --line:       rgba(20, 18, 10, 0.12);
    --line-2:     rgba(20, 18, 10, 0.20);
    --paper:      #1A1813;   /* primary text */
    --dim:        #57554D;   /* secondary text */
    --faded:      #8C897F;   /* tertiary text */
    --gold-text:  #8A6200;   /* deep amber — gold as text, AA on pale bg */
    color-scheme: light;
}

:root[data-theme="light"] .grain { opacity: 0.035; }

/* Theme toggle button (ink masthead) */
.theme-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; padding: 0;
    background: transparent; border: 1px solid var(--line-2);
    border-radius: 999px; color: var(--dim); cursor: pointer;
    transition: color 0.18s var(--ease-out), border-color 0.18s var(--ease-out);
}
.theme-toggle:hover { color: var(--paper); border-color: var(--gold-dark); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun { display: inline-block; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: inline-block; }

/* ── Base ──────────────────────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; color-scheme: dark; }

body {
    background: var(--ink);
    color: var(--paper);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

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

/* importmap pages also load assets/styles/app.css, which paints headings
   and links near-black (--bk-dark) — invisible on ink. ink.css loads
   after it, so these inherit rules win the cascade. */
h1, h2, h3, h4, h5, h6 { color: inherit; }

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

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

/* ── Film grain ────────────────────────────────────────────────────── */
.grain {
    position: fixed; inset: 0;
    pointer-events: none;
    z-index: 300;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%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)' opacity='0.5'/%3E%3C/svg%3E");
    opacity: 0.055;
    mix-blend-mode: overlay;
}

/* ── Type helpers ──────────────────────────────────────────────────── */
.display {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.02;
}

.mono-label {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dim);
}

/* Outlined display word — the "foil-less" twin of a gold word. */
.outline-word {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--paper);
}

.gold-word { color: var(--gold-text); font-style: italic; }

/* ── Masthead ──────────────────────────────────────────────────────── */
.masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem var(--pad-x);
    border-bottom: 1px solid var(--line);
    position: relative;
    z-index: 20;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.brand-icon { display: block; }

/* Theme-conditional elements (e.g. the brand icon swaps dark↔light variant).
   Default = dark theme: show the dark-variant, hide the light-variant. */
.theme-light-only { display: none; }
:root[data-theme="light"] .theme-dark-only { display: none; }
:root[data-theme="light"] .theme-light-only { display: block; }

.brand-mark {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}

.brand-mark em { font-style: normal; color: var(--gold-text); }

.masthead-stamp {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.22em;
    color: var(--faded);
    border: 1px solid var(--line);
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    white-space: nowrap;
}

.masthead-actions { display: flex; align-items: center; gap: 1.25rem; }

.ghost-link {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dim);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: color 0.18s;
}

.ghost-link:hover { color: var(--paper); }
.ghost-link svg { transition: transform 0.18s var(--ease-out); }
.ghost-link:hover svg { transform: translateX(3px); }

/* ── Gold button ───────────────────────────────────────────────────── */
.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--gold);
    color: var(--on-gold);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: -0.01em;
    padding: 0.8rem 1.6rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: transform 0.18s var(--ease-out), box-shadow 0.18s, background 0.18s;
}

.btn-gold:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--gold-glow);
}

.btn-gold:active { transform: translateY(0); }
.btn-gold svg { transition: transform 0.18s var(--ease-out); }
.btn-gold:hover svg { transform: translateX(3px); }

.btn-gold.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.8125rem; }
.btn-gold.btn-block { width: 100%; justify-content: center; padding: 0.95rem 1.6rem; font-size: 1rem; }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--paper);
    border: 1px solid var(--line-2);
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.75rem 1.4rem;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s;
}

.btn-ghost:hover { border-color: var(--gold); background: var(--gold-dim); }

/* ── Ticket card ───────────────────────────────────────────────────────
   The signature element. A surface card whose top section is divided
   from the body by a perforation: dashed rule + two punched notches.
   Use:  <div class="ticket"> <div class="ticket-top">…</div>
         <div class="ticket-body">…</div> </div>                       */
.ticket {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line-2);
    border-radius: 10px;
}

.ticket-top { padding: 1.25rem 1.5rem; position: relative; }

.ticket-body { padding: 1.5rem; position: relative; }

.ticket-perf {
    position: relative;
    height: 0;
    border-top: 2px dashed var(--line-2);
    margin: 0 0.75rem;
}

.ticket-perf::before,
.ticket-perf::after {
    content: '';
    position: absolute;
    top: -9px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--ink);
    border: 1px solid var(--line-2);
}

.ticket-perf::before { left: -19px; clip-path: inset(0 0 0 50%); }
.ticket-perf::after  { right: -19px; clip-path: inset(0 50% 0 0); }

.ticket-num {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--gold-text);
}

/* Barcode strip — pure CSS, decorative. */
.barcode {
    height: 34px;
    background: repeating-linear-gradient(
        90deg,
        var(--paper) 0 2px, transparent 2px 5px,
        var(--paper) 5px 6px, transparent 6px 11px,
        var(--paper) 11px 14px, transparent 14px 17px,
        var(--paper) 17px 18px, transparent 18px 24px
    );
    opacity: 0.5;
    border-radius: 1px;
}

/* Rubber stamp seal. */
.stamp-seal {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-text);
    border: 1.5px solid var(--gold);
    border-radius: 3px;
    padding: 0.35rem 0.7rem 0.35rem 0.95rem;
    transform: rotate(-6deg);
    opacity: 0.85;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 60'%3E%3Cfilter id='r'%3E%3CfeTurbulence baseFrequency='0.6' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.92 0'/%3E%3CfeComposite operator='in' in2='SourceGraphic'/%3E%3C/filter%3E%3Crect width='200' height='60' filter='url(%23r)'/%3E%3C/svg%3E");
    mask-size: cover;
}

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    padding: clamp(4rem, 10vw, 8rem) var(--pad-x) clamp(3rem, 7vw, 5.5rem);
    overflow: hidden;
}

.hero-inner { position: relative; max-width: 1200px; z-index: 1; }

.oversized-stamp {
    position: absolute;
    top: -0.18em;
    right: -0.05em;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(6rem, 22vw, 19rem);
    letter-spacing: -0.04em;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(250, 250, 247, 0.35);
    opacity: 0.06;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    color: var(--dim);
    margin-bottom: 1.75rem;
}

.kicker .tick {
    width: 26px; height: 1px;
    background: var(--gold);
    display: inline-block;
}

.hero-line {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2.9rem, 8.5vw, 7rem);
    line-height: 0.98;
    letter-spacing: -0.035em;
    max-width: 13ch;
}

.hero-word { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero-word > span { display: inline-block; }

.hero-line .mark {
    color: var(--gold-text);
    font-style: italic;
    background: none;
    padding: 0;
}

.hero-line .outline { color: transparent; -webkit-text-stroke: 1.5px var(--paper); }

.lede {
    margin-top: 2rem;
    max-width: 56ch;
    font-size: clamp(1rem, 1.4vw, 1.1875rem);
    line-height: 1.7;
    color: var(--dim);
}

.lede strong { color: var(--paper); font-weight: 500; }

/* Stats strip — mono numbers separated by dashed rules. */
.stats-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(1.25rem, 3vw, 2.5rem);
    margin-top: clamp(2rem, 4vw, 3.25rem);
}

.stats-strip .rule { width: 1px; height: 34px; background: var(--line-2); }

.stat { display: flex; flex-direction: column; gap: 0.3rem; }

.stat-num {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--gold-text);
    line-height: 1;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--faded);
}

/* Scroll cue */
.scroll-cue {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: clamp(2.5rem, 5vw, 4rem);
    color: var(--dim);
    transition: color 0.2s;
}

.scroll-cue:hover { color: var(--gold-text); }

.scroll-cue-track { display: flex; flex-direction: column; gap: 3px; }

.scroll-cue-dot {
    width: 3px; height: 3px; border-radius: 50%;
    background: currentColor;
    animation: cue-fall 1.4s infinite;
}

.scroll-cue-dot:nth-child(2) { animation-delay: 0.15s; }
.scroll-cue-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes cue-fall {
    0%, 100% { opacity: 0.2; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(2px); }
}

.scroll-cue-label {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* ── Marquee ───────────────────────────────────────────────────────── */
.marquee {
    border-top: 2px dashed var(--line);
    border-bottom: 2px dashed var(--line);
    padding: 1.1rem 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.marquee-track {
    display: inline-flex;
    align-items: center;
    gap: 2.25rem;
    animation: marquee-roll 36s linear infinite;
    will-change: transform;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee-roll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.marquee-item {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: 0.02em;
    color: var(--paper);
}

.marquee-item:nth-child(4n+3) {
    color: transparent;
    -webkit-text-stroke: 1px var(--faded);
}

.marquee-dot { color: var(--gold-text); font-size: 0.6rem; }

/* ── Section heads ─────────────────────────────────────────────────── */
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 var(--pad-x);
    margin: clamp(3.5rem, 8vw, 6rem) 0 2rem;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.75rem, 4vw, 3rem);
    letter-spacing: -0.03em;
}

.section-meta {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--faded);
}

/* ── Pillars (for-providers) — a rack of ticket stubs ──────────────── */
.pillar-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.25rem;
    padding: 0 var(--pad-x);
}

.pillar {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line-2);
    border-radius: 10px;
    padding: 1.75rem 1.6rem 1.6rem;
    transition: transform 0.25s var(--ease-out), border-color 0.25s, box-shadow 0.25s;
    overflow: hidden;
}

.pillar::before {
    /* punched hole, top-left — every stub got torn off the same roll */
    content: '';
    position: absolute;
    top: 1.1rem; right: 1.25rem;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--ink);
    border: 1px solid var(--line-2);
}

.pillar:hover {
    transform: translateY(-4px) rotate(-0.4deg);
    border-color: var(--gold-dark);
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--gold-dim);
}

.pillar-num {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--gold-text);
    display: block;
    margin-bottom: 1.1rem;
}

.pillar-num::before { content: '№ '; color: var(--faded); }

.pillar-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.3rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.pillar-text { font-size: 0.9375rem; color: var(--dim); line-height: 1.65; }
.pillar-text strong { color: var(--paper); font-weight: 500; }

/* ── Register CTA (for-providers) ──────────────────────────────────── */
.cta-band {
    margin: clamp(3.5rem, 8vw, 6rem) var(--pad-x) 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.cta-headline {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2.1rem, 5vw, 3.6rem);
    letter-spacing: -0.03em;
    line-height: 1.02;
    margin-bottom: 1.1rem;
}

.cta-lede { color: var(--dim); max-width: 48ch; line-height: 1.7; }

.cta-fineprint { margin-top: 1.4rem; font-size: 0.875rem; color: var(--faded); }
.cta-fineprint a { color: var(--gold-text); }
.cta-fineprint a:hover { color: var(--gold-light); }

/* The big register ticket. */
.register-ticket {
    display: block;
    transform: rotate(1.2deg);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.register-ticket:hover {
    transform: rotate(0deg) translateY(-4px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--gold-dim);
}

.register-ticket .ticket-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.register-ticket .ticket-route {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.45rem;
    letter-spacing: -0.02em;
}

.register-ticket .ticket-route small {
    display: block;
    font-family: var(--font-mono);
    font-weight: 400;
    font-size: 0.625rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--faded);
    margin-top: 0.4rem;
}

.register-ticket .ticket-body {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.register-alt { font-size: 0.875rem; color: var(--faded); text-align: center; }
.register-alt strong { color: var(--gold-text); font-family: var(--font-mono); font-weight: 600; }
.register-alt a { color: var(--wa); font-weight: 500; }
.register-alt a:hover { text-decoration: underline; }

/* ── Closer band ───────────────────────────────────────────────────── */
.closer {
    margin: clamp(4rem, 9vw, 7rem) var(--pad-x) clamp(3rem, 6vw, 5rem);
    border: 1px solid var(--line-2);
    border-radius: 14px;
    background:
        radial-gradient(ellipse 90% 140% at 85% -20%, var(--gold-dim), transparent 55%),
        var(--surface);
    padding: clamp(2.25rem, 5vw, 4rem);
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    gap: 2rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.closer-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    letter-spacing: -0.03em;
    line-height: 1.02;
}

.closer-title .mark { color: var(--gold-text); font-style: italic; background: none; padding: 0; }

.closer-lede { margin-top: 1rem; color: var(--dim); max-width: 46ch; }

.closer-cta-stack { display: flex; flex-direction: column; align-items: flex-end; gap: 0.9rem; }

.closer-alt-link {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    color: var(--dim);
}

.closer-alt-link:hover { color: var(--wa); }

/* ── Directory browser ─────────────────────────────────────────────── */
.browser { padding: clamp(2.5rem, 5vw, 4rem) var(--pad-x) 2rem; }

.browser-toolbar { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2.25rem; }

.search-shell { max-width: 720px; }

.search-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--faded);
    margin-bottom: 0.6rem;
}

.search-field {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: var(--surface);
    border: 1px solid var(--line-2);
    border-radius: 6px;
    padding: 0 1.1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-field:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-dim);
}

.search-icon { color: var(--faded); flex-shrink: 0; }

.search-field input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--paper);
    font-family: var(--font-body);
    font-size: 1.05rem;
    padding: 1rem 0;
    caret-color: var(--gold-text);
    min-width: 0;
}

.search-field input::placeholder { color: var(--faded); }
.search-field input::-webkit-search-cancel-button { display: none; }

.search-clear {
    background: transparent;
    border: none;
    color: var(--dim);
    cursor: pointer;
    padding: 0.4rem;
    display: inline-flex;
    border-radius: 4px;
    transition: color 0.15s;
}

.search-clear:hover { color: var(--warn); }

/* Category chips — wrap into rows so every category stays on screen.
   On small screens the rail becomes a horizontal scroller instead. */
.cat-rail {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

@media (max-width: 700px) {
    .cat-rail {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        padding-bottom: 0.25rem;
        /* right-edge fade hints there's more to scroll */
        mask-image: linear-gradient(90deg, #000 calc(100% - 2.5rem), transparent);
    }
    .cat-rail::-webkit-scrollbar { display: none; }
}

.cat-chip {
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dim);
    border: 1px solid var(--line-2);
    border-radius: 999px;
    padding: 0.45rem 0.95rem;
    transition: all 0.18s var(--ease-out);
    user-select: none;
}

.cat-chip input { position: absolute; opacity: 0; pointer-events: none; }

.cat-chip:hover { border-color: var(--gold-dark); color: var(--paper); }

.cat-chip.is-active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--on-gold);
    font-weight: 600;
}

/* "Near me" location control */
.dir-locate { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }

.locate-btn {
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dim);
    background: transparent;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    padding: 0.45rem 0.95rem;
    transition: all 0.18s var(--ease-out);
}

.locate-btn:hover { border-color: var(--gold-dark); color: var(--paper); }

.locate-btn.is-active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--on-gold);
}

.locate-town {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--paper);
    background: var(--surface, transparent);
    border: 1px solid var(--line-2);
    border-radius: 999px;
    padding: 0.4rem 0.85rem;
}

.locate-status {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--dim);
}

/* Shelves */
.dir-shelf { margin-bottom: 2.5rem; }

.dir-shelf-head {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1rem;
}

.dir-shelf-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.dir-shelf-meta {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--faded);
    flex: 1;
}

.dir-shelf-nav { display: flex; gap: 0.4rem; }

.dir-shelf-nav-btn {
    width: 34px; height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    color: var(--dim);
    cursor: pointer;
    transition: all 0.18s;
}

.dir-shelf-nav-btn:hover { border-color: var(--gold); color: var(--gold-text); }

/* Edge-state fade: the shelf-swiper controller sets aria-disabled when a
   direction has nowhere to go, and .is-static when the rail fits whole. */
.dir-shelf-nav-btn[aria-disabled="true"] {
    opacity: 0.25;
    cursor: default;
    pointer-events: none;
}

.dir-shelf.is-static .dir-shelf-nav { visibility: hidden; }

.dir-shelf-rail { position: relative; overflow: hidden; }

/* Swiper ships its own stylesheet but we don't import it — the wrapper
   needs explicit flex behaviour so cards lay out horizontally both
   pre-init and post-init (same rationale as directory.css). */
.dir-shelf-rail .swiper-wrapper {
    list-style: none;
    padding: 0 1px 0 0;
    margin: 0;
    display: flex;
    align-items: stretch;
    gap: 1rem;
    box-sizing: content-box;
}

.dir-shelf-card {
    width: 250px;
    flex-shrink: 0;
    background: var(--surface);
    border: 1px solid var(--line-2);
    border-radius: 8px;
    transition: transform 0.22s var(--ease-out), border-color 0.22s;
    list-style: none;
}

.dir-shelf-card:hover { transform: translateY(-3px); border-color: var(--gold-dark); }

.dir-shelf-card > a { display: block; padding: 1.1rem 1.2rem; }

.dir-shelf-card-head { margin-bottom: 0.75rem; }

.dir-shelf-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dim);
}

.dir-shelf-tag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--faded); }

.dir-shelf--new .dir-shelf-tag-dot { background: var(--gold); }
.dir-shelf--new .dir-shelf-tag { color: var(--gold-text); }
.dir-shelf--available .dir-shelf-tag-dot { background: var(--wa); animation: pulse-dot 2s infinite; }
.dir-shelf--available .dir-shelf-tag { color: var(--wa); }
.dir-shelf--trending .dir-shelf-tag-dot { background: var(--paper); }
.dir-shelf--featured .dir-shelf-tag-dot { background: var(--gold); }
.dir-shelf--featured .dir-shelf-tag { color: var(--gold-text); }

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 var(--wa-dim); }
    50% { box-shadow: 0 0 0 5px transparent; }
}

.dir-shelf-card-name {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dir-shelf-card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed var(--line);
    padding-top: 0.7rem;
}

.dir-shelf-card-city {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--faded);
    letter-spacing: 0.06em;
}

.dir-shelf-card-arrow { color: var(--gold-text); opacity: 0; transform: translateX(-4px); transition: all 0.2s var(--ease-out); }
.dir-shelf-card:hover .dir-shelf-card-arrow { opacity: 1; transform: translateX(0); }

/* Result meta */
.result-meta {
    display: flex;
    align-items: baseline;
    gap: 1.25rem;
    border-top: 2px dashed var(--line);
    padding-top: 1.75rem;
    margin-bottom: 1.75rem;
}

.result-meta-num { display: flex; align-items: baseline; gap: 0.45rem; }

.num-display {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2.6rem;
    line-height: 1;
    color: var(--gold-text);
    letter-spacing: -0.02em;
}

.num-suffix {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    letter-spacing: 0.18em;
    color: var(--faded);
}

.result-meta-text { font-size: 0.9rem; color: var(--dim); }
.result-meta-text strong { color: var(--paper); font-weight: 500; }

.reset-link {
    background: none;
    border: none;
    color: var(--gold-text);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    margin-left: 0.5rem;
    padding: 0;
    text-decoration: underline dashed;
    text-underline-offset: 4px;
}

.reset-link:hover { color: var(--gold-light); }

/* Provider grid — every card a ticket */
.provider-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 1.25rem;
}

.provider-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line-2);
    border-radius: 10px;
    transition: transform 0.24s var(--ease-out), border-color 0.24s, box-shadow 0.24s;
}

.provider-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold-dark);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--gold-dim);
}

.provider-link { display: flex; flex-direction: column; height: 100%; padding: 1.4rem 1.5rem 1.2rem; }

.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.9rem; }

.card-industry {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-text);
}

.card-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 0.65rem;
}

.card-desc {
    font-size: 0.875rem;
    color: var(--dim);
    line-height: 1.6;
    margin-bottom: 1.1rem;
}

.card-meta { margin-top: auto; border-top: 2px dashed var(--line); padding-top: 0.9rem; }

/* dotted leader rows — timetable energy */
.meta-row {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    font-size: 0.8125rem;
    padding: 0.18rem 0;
}

.meta-row dt {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--faded);
    flex-shrink: 0;
}

.meta-row::before { content: none; }

.meta-row dd {
    flex: 1;
    text-align: right;
    color: var(--paper);
    overflow: hidden;
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 0.45rem;
}

.stars { letter-spacing: 0.1em; font-size: 0.75rem; }
.star { color: var(--faded); }
.star.on { color: var(--gold-text); }
.rating-num { font-family: var(--font-mono); font-size: 0.75rem; color: var(--gold-text); }
.rating-empty { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--faded); letter-spacing: 0.06em; }

.card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.1rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--gold-text);
}

.card-cta svg { transition: transform 0.2s var(--ease-out); }
.provider-card:hover .card-cta svg { transform: translateX(4px); }

.card-rule { display: none; }

/* Queue-status chips (category page cards) */
.queue-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--line-2);
    color: var(--dim);
}

.queue-chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--faded); }

.queue-chip.is-wait { color: var(--gold-text); border-color: var(--gold-dark); }
.queue-chip.is-wait::before { background: var(--gold); }
.queue-chip.is-clear { color: var(--wa); border-color: rgba(37, 211, 102, 0.4); }
.queue-chip.is-clear::before { background: var(--wa); }

/* Empty state */
.empty-state {
    display: flex;
    align-items: center;
    gap: 2rem;
    border: 2px dashed var(--line-2);
    border-radius: 12px;
    padding: clamp(2rem, 5vw, 3.5rem);
}

.empty-num {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(3.5rem, 9vw, 6rem);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--faded);
}

.empty-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
}

.empty-lede { color: var(--dim); max-width: 46ch; }

.empty-action {
    margin-top: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 1px solid var(--gold);
    color: var(--gold-text);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.18s;
}

.empty-action:hover { background: var(--gold); color: var(--on-gold); }

/* Load more */
.load-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    margin: 2.5rem 0 1rem;
}

.load-more-meta { font-family: var(--font-mono); font-size: 0.75rem; color: var(--faded); letter-spacing: 0.06em; }
.load-more-meta strong { color: var(--gold-text); }

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: transparent;
    border: 1px solid var(--line-2);
    color: var(--paper);
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.8rem 1.8rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s;
}

.load-more-btn:hover { border-color: var(--gold); color: var(--gold-text); }

.load-more-pip { color: var(--gold-text); font-size: 0.5rem; }
.load-more-sentinel { height: 1px; }

/* ── Auth tickets (login / register frames) ────────────────────────── */
.auth-frame {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(2.5rem, 7vw, 5.5rem) var(--pad-x) clamp(3rem, 7vw, 5rem);
    position: relative;
}

.auth-wrap { width: 100%; max-width: 460px; position: relative; }

.auth-wrap.is-wide { max-width: 640px; }

.auth-kicker {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.22em;
    color: var(--dim);
    margin-bottom: 1.1rem;
}

.auth-kicker .tick { width: 26px; height: 1px; background: var(--gold); }

/* Watermark behind the card */
.auth-watermark {
    position: absolute;
    top: 4rem;
    left: 50%;
    transform: translateX(-50%) rotate(-90deg);
    transform-origin: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(5rem, 16vw, 11rem);
    letter-spacing: 0.02em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(250, 250, 247, 0.3);
    opacity: 0.05;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
    z-index: 0;
}

.auth-ticket { position: relative; z-index: 1; box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55); }

.auth-ticket .ticket-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.auth-ticket-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.auth-ticket-title small {
    display: block;
    font-family: var(--font-mono);
    font-weight: 400;
    font-size: 0.625rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--faded);
    margin-top: 0.45rem;
}

.auth-ticket .ticket-body { padding: 1.75rem 1.5rem 1.5rem; }

.auth-foot {
    padding: 1.1rem 1.5rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-foot-links { font-size: 0.875rem; color: var(--faded); text-align: center; line-height: 1.9; }
.auth-foot-links a { color: var(--gold-text); }
.auth-foot-links a:hover { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }

.auth-edge {
    font-family: var(--font-mono);
    font-size: 0.5625rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--faded);
    text-align: center;
    margin-top: 1.25rem;
}

/* Channel pills under customer login */
.login-channels {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
}

.login-channels span {
    font-family: var(--font-mono);
    font-size: 0.5625rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--faded);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
}

.login-channels span.active { color: var(--wa); border-color: var(--wa); }

/* Flashes */
.flash-msg {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.875rem;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.1rem;
}

.flash-error { background: var(--warn-dim); color: var(--warn); border: 1px solid rgba(255, 107, 107, 0.3); }
.flash-success { background: var(--wa-dim); color: var(--wa); border: 1px solid rgba(37, 211, 102, 0.3); }

/* ── Form fields (shared: logins + register) ───────────────────────── */
.field-group { margin-bottom: 1.2rem; }

.form-label,
.auth-form label,
.reg-body label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 0.5rem;
}

.form-label-row { display: flex; justify-content: space-between; align-items: baseline; }
.form-label-hint { color: var(--faded); letter-spacing: 0.1em; }

.form-input,
.auth-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.reg-body input[type="text"],
.reg-body input[type="email"],
.reg-body input[type="tel"],
.reg-body input[type="password"],
.reg-body input[type="url"],
.reg-body input[type="number"],
.reg-body textarea,
.reg-body select {
    width: 100%;
    background: var(--ink-2);
    border: 1px solid var(--line-2);
    border-radius: 6px;
    color: var(--paper);
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.8rem 1rem;
    caret-color: var(--gold-text);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-input:focus,
.auth-form input:focus,
.reg-body input:focus,
.reg-body textarea:focus,
.reg-body select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-dim);
}

.form-input::placeholder,
.reg-body input::placeholder,
.reg-body textarea::placeholder { color: var(--faded); }

.reg-body textarea { min-height: 120px; resize: vertical; line-height: 1.6; }

.reg-body select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239A9AA3' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.6rem;
}

/* Input with +267 prefix (customer login) */
.form-input-with-prefix { display: flex; align-items: stretch; }

.form-input-prefix {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.9375rem;
    color: var(--gold-text);
    background: var(--surface-2);
    border: 1px solid var(--line-2);
    border-right: none;
    border-radius: 6px 0 0 6px;
    padding: 0 0.9rem;
}

.form-input-with-prefix .form-input { border-radius: 0 6px 6px 0; }

/* Errors emitted by Symfony form_errors() */
.auth-form ul,
.reg-body ul {
    list-style: none;
    color: var(--warn);
    font-size: 0.8125rem;
    margin-bottom: 0.6rem;
}

/* SSO hint (admin login) */
.sso-hint {
    display: none;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.8125rem;
    color: var(--dim);
    background: var(--surface-2);
    border: 1px solid var(--line-2);
    border-left: 3px solid #0078D4;
    border-radius: 6px;
    padding: 0.7rem 0.9rem;
    margin-bottom: 1rem;
}

/* ── Register specifics ────────────────────────────────────────────── */
.reg-steps {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.75rem;
}

.reg-step {
    flex: 1;
    height: 3px;
    border-radius: 2px;
    background: var(--line-2);
    position: relative;
    transition: background 0.3s;
}

.reg-step.active { background: var(--gold); box-shadow: 0 0 12px var(--gold-glow); }
.reg-step.done { background: var(--gold-dark); }

.reg-body > form > div { margin-bottom: 1.1rem; }

.reg-body .form-help,
.reg-body small.form-help,
.reg-body .help-text {
    display: block;
    font-size: 0.8125rem;
    color: var(--faded);
    margin-top: 0.4rem;
}

.reg-substep-hint { font-size: 0.875rem; color: var(--dim); margin-bottom: 0.9rem; }

/* Industry pick — stub rack */
.reg-industry {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    border: 1px solid var(--line-2);
    border-radius: 8px;
    background: var(--ink-2);
    padding: 0.8rem 1rem;
    margin-bottom: 0.55rem;
    cursor: pointer;
    transition: all 0.16s var(--ease-out);
}

.reg-industry:hover { border-color: var(--gold-dark); transform: translateX(3px); }

.reg-industry.selected {
    border-color: var(--gold);
    background: var(--gold-dim);
    box-shadow: 0 0 0 1px var(--gold);
}

.reg-industry.selected .reg-industry-name { color: var(--gold-text); }

.reg-industry-name { font-weight: 500; font-size: 0.9375rem; }

.reg-industry i { color: var(--dim) !important; }
.reg-industry.selected i { color: var(--gold-text) !important; }

/* Sub-category chips */
.reg-subcat-wrap { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.5rem; }

.reg-subcat-chip { cursor: pointer; }

.reg-subcat-chip input { position: absolute; opacity: 0; pointer-events: none; }

.reg-subcat-chip span {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    color: var(--dim);
    border: 1px solid var(--line-2);
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    transition: all 0.16s;
}

.reg-subcat-chip:hover span { border-color: var(--gold-dark); color: var(--paper); }

.reg-subcat-chip input:checked + span {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--on-gold);
    font-weight: 600;
}

.reg-subcat-chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Char counter */
.reg-char-count {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--faded);
    margin-top: 0.35rem;
    text-align: right;
}

.reg-char-count strong { color: var(--dim); font-weight: 600; }
.reg-char-count.is-short strong { color: var(--gold-text); }
.reg-char-count.is-near-max { color: var(--gold-dark); }
.reg-char-count.is-at-max { color: var(--warn); }

/* LocationPicker live component */
.reg-body .lp-field { margin-bottom: 1.1rem; }
.reg-body .lp-field[hidden] { display: none; }

/* Navigator buttons (multi-step form prev/next) */
.reg-body form button[type="submit"],
.reg-body .form-navigator button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: var(--gold);
    color: var(--on-gold);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.85rem 1.7rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.18s var(--ease-out), box-shadow 0.18s, background 0.18s;
}

.reg-body form button[type="submit"]:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 28px var(--gold-glow); }

.reg-body .form-navigator button[name$="[back]"],
.reg-body form button[value="back"] {
    background: transparent;
    color: var(--dim);
    border: 1px solid var(--line-2);
}

.reg-body .form-navigator button[name$="[back]"]:hover,
.reg-body form button[value="back"]:hover { color: var(--paper); border-color: var(--paper); box-shadow: none; }

/* ── Provider profile page ─────────────────────────────────────────── */
.crumbs {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 1.5rem var(--pad-x) 0;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--faded);
}

.crumbs a { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--dim); transition: color 0.15s; }
.crumbs a:hover { color: var(--gold-text); }
.crumb-current { color: var(--paper); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.provider-hero {
    position: relative;
    padding: clamp(2.5rem, 6vw, 4.5rem) var(--pad-x) clamp(1.5rem, 3vw, 2.5rem);
}

.provider-name-display {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2.4rem, 6.5vw, 5rem);
    letter-spacing: -0.035em;
    line-height: 1.02;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.verify-stamp {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    border: 1.5px solid currentColor;
    border-radius: 3px;
    padding: 0.4rem 0.7rem;
    transform: rotate(-4deg);
    flex-shrink: 0;
}

.verify-verified { color: var(--gold-text); }
.verify-trusted { color: var(--wa); }

.provider-lede { margin-top: 1.5rem; max-width: 60ch; color: var(--dim); font-size: 1.0625rem; line-height: 1.7; }

.provider-hero .stats-strip { margin-top: 2rem; }
.stat-num-text { font-size: 1.05rem; letter-spacing: 0; }

/* Two-column layout: content + booking aside */
.provider-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    padding: 0 var(--pad-x);
    align-items: start;
}

.provider-aside { position: sticky; top: 1.5rem; }

.provider-body .section-head { padding: 0; margin: clamp(2rem, 5vw, 3.25rem) 0 1.25rem; }
.provider-body .section-title { font-size: clamp(1.4rem, 3vw, 2rem); }

/* Live queue status strip */
.status-strip {
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--line-2);
    border-radius: 10px;
    background: var(--surface);
    padding: 1rem 1.25rem;
    margin-top: 0.5rem;
}

.status-pip { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

.status-strip.is-clear .status-pip { background: var(--wa); box-shadow: 0 0 12px var(--wa); animation: pulse-dot 2s infinite; }
.status-strip.is-busy .status-pip { background: var(--gold); box-shadow: 0 0 12px var(--gold-glow); animation: pulse-dot 2s infinite; }

.status-headline { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.status-strip.is-busy .status-headline { color: var(--gold-text); }
.status-strip.is-clear .status-headline { color: var(--wa); }
.status-sub { display: block; font-size: 0.8125rem; color: var(--dim); margin-top: 0.15rem; }

/* Services — the tariff board */
.service-list { list-style: none; border-top: 2px dashed var(--line); }

.service-row {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 1rem 0.25rem;
    border-bottom: 1px dashed var(--line);
    transition: background 0.15s;
}

.service-row:hover { background: rgba(250, 250, 247, 0.02); }

.service-num {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--gold-text);
    flex-shrink: 0;
}

.service-body { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 0.85rem; overflow: hidden; }

.service-name { font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; letter-spacing: -0.01em; flex-shrink: 0; }

.service-meta { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--faded); letter-spacing: 0.06em; }

/* dotted leader filling the space between name and price */
.service-body::after {
    content: '';
    flex: 1;
    border-bottom: 2px dotted var(--line-2);
    transform: translateY(-3px);
    min-width: 1.5rem;
}

.service-price {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--gold-text);
    flex-shrink: 0;
}

/* Reviews */
.review-list { list-style: none; display: flex; flex-direction: column; gap: 1.25rem; }

.review {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1.25rem 1.4rem;
}

.review-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.65rem; }

.review-date { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.16em; color: var(--faded); }

.review-comment { position: relative; color: var(--paper); line-height: 1.65; padding-left: 1.5rem; }

.quote-glyph {
    position: absolute;
    left: 0; top: -0.25rem;
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--gold-text);
    line-height: 1;
}

.review-reply {
    margin-top: 0.9rem;
    padding: 0.75rem 1rem;
    border-left: 2px solid var(--gold-dark);
    background: var(--ink-2);
    border-radius: 0 6px 6px 0;
    font-size: 0.875rem;
    color: var(--dim);
}

.reply-tag {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.5625rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-text);
    margin-bottom: 0.3rem;
}

/* Booking ticket (aside) */
.book-ticket .ticket-top { display: flex; justify-content: space-between; align-items: center; }

.book-ticket .ticket-body { display: flex; flex-direction: column; gap: 0.65rem; }

.cta-lede { font-size: 0.9rem; color: var(--dim); margin-bottom: 0.5rem; }

.cta-fineprint-sm { font-size: 0.75rem; color: var(--faded); text-align: center; margin-top: 0.35rem; }
.cta-fineprint-sm strong { color: var(--gold-text); }

.cta-channels {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.cta-channels__label {
    font-family: var(--font-mono);
    font-size: 0.5625rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--faded);
}

.cta-channel {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.04em;
    color: var(--dim);
    border: 1px solid var(--line-2);
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    transition: all 0.16s;
}

.cta-channel--whatsapp:hover { color: var(--wa); border-color: var(--wa); }
.cta-channel--messenger:hover { color: #0084FF; border-color: #0084FF; }

.book-ticket .auth-foot { padding: 1.1rem 1.5rem 1.3rem; }

.cta-meta { display: flex; flex-direction: column; }

.cta-meta-row {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    font-size: 0.8125rem;
    padding: 0.3rem 0;
}

.cta-meta-row dt {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--faded);
    flex-shrink: 0;
}

.cta-meta-row::after { content: none; }

.cta-meta-row dd { flex: 1; text-align: right; color: var(--paper); }

@media (max-width: 980px) {
    .provider-layout { grid-template-columns: 1fr; }
    .provider-aside { position: static; }
}

/* ── Colophon (footer) ─────────────────────────────────────────────── */
.colophon {
    border-top: 2px dashed var(--line);
    margin-top: clamp(3rem, 7vw, 5rem);
    padding: 2rem var(--pad-x) 2.5rem;
    position: relative;
    overflow: hidden;
}

.colophon-giant {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(3.5rem, 13vw, 11rem);
    line-height: 0.9;
    letter-spacing: -0.04em;
    color: transparent;
    /* Theme-aware outline: --line-2 is the same faint light stroke in dark mode
       and a faint dark stroke in light mode (so BUKA stays visible in both). */
    -webkit-text-stroke: 1px var(--line-2);
    user-select: none;
    pointer-events: none;
    white-space: nowrap;
    margin-bottom: 1.75rem;
}

.colophon-giant em { font-style: normal; -webkit-text-stroke-color: var(--gold-dark); }

.colophon-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--faded);
    padding: 0.6rem 0;
}

.colophon-row + .colophon-row { border-top: 1px solid var(--line); }

.colophon-nav { display: flex; align-items: center; gap: 0.75rem; }
.colophon-nav a { color: var(--dim); transition: color 0.15s; }
.colophon-nav a:hover { color: var(--gold-text); }
.colophon-nav .sep { color: var(--faded); }

.colophon-logo { height: 30px; display: block; }

.colophon-attribution { margin-top: 1rem; font-size: 0.75rem; color: var(--faded); }
.colophon-attribution a { color: var(--dim); display: inline-flex; align-items: center; gap: 0.25rem; }
.colophon-attribution a:hover { color: var(--gold-text); }

/* ── Pre-hide for GSAP entrances (js pages only) ───────────────────── */
body[data-js="1"] .anim-target,
body[data-js="1"] .anim-word > span { opacity: 0; }

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 880px) {
    .cta-band, .closer { grid-template-columns: 1fr; }
    .closer-cta-stack { align-items: flex-start; }
    .masthead-stamp { display: none; }
    .register-ticket { transform: none; }
    .empty-state { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

@media (max-width: 560px) {
    .masthead { padding: 0.9rem 1.25rem; }
    .ghost-link span { display: none; }
    .num-display { font-size: 2rem; }
    .auth-ticket .ticket-body { padding: 1.4rem 1.2rem 1.2rem; }
    .stats-strip .rule { display: none; }
}

/* ── Reduced motion ────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .marquee-track { animation: none; transform: none; }
    body[data-js="1"] .anim-target,
    body[data-js="1"] .anim-word > span { opacity: 1; }
}