/* ==========================================================================
   Cyclorama Studio Rental — design system
   Cool-tone gradient theme: blue → cyan → emerald.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Sora:wght@600;700;800&display=swap');

/* ---- Design tokens --------------------------------------------------- */

:root {
    /* Cool tone: blue → cyan → emerald */
    --g1: #2563eb;
    --g2: #06b6d4;
    --g3: #10b981;
    --btn-g1: #1d4ed8;
    --btn-g2: #0e7490;
    --primary: #2563eb;

    --bg: #f6f9fc;
    --surface: #ffffff;
    --text: #16182d;
    --text-muted: #5b6072;
    --border: #e4e4ef;
    --border-strong: #c9c9dc;

    --success: #15803d;
    --success-bg: #ecfdf3;
    --warning: #b45309;
    --warning-bg: #fffbeb;
    --info: #1d4ed8;
    --info-bg: #eff6ff;
    --review: #7e22ce;
    --review-bg: #faf5ff;
    --danger: #b91c1c;
    --danger-bg: #fef2f2;
    --neutral: #475569;
    --neutral-bg: #f1f5f9;

    --font-display: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 2px rgba(22, 24, 45, 0.05);
    --shadow: 0 1px 3px rgba(22, 24, 45, 0.06), 0 8px 24px -12px rgba(22, 24, 45, 0.12);
    --shadow-lg: 0 2px 6px rgba(22, 24, 45, 0.06), 0 20px 40px -16px rgba(22, 24, 45, 0.18);

    --grad-brand: linear-gradient(135deg, var(--g1), var(--g2) 55%, var(--g3));
    --grad-btn: linear-gradient(135deg, var(--btn-g1), var(--btn-g2));
}

/* ---- Base ------------------------------------------------------------ */

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

/* Soft aurora glow behind the page (static, decorative) */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(56rem 30rem at 115% -8%, color-mix(in srgb, var(--g3) 16%, transparent), transparent 65%),
        radial-gradient(50rem 28rem at -12% 4%, color-mix(in srgb, var(--g1) 15%, transparent), transparent 62%),
        radial-gradient(44rem 30rem at 50% 118%, color-mix(in srgb, var(--g2) 10%, transparent), transparent 60%);
}

h1, h2, h3 {
    font-family: var(--font-display);
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
}

h1 { font-size: clamp(1.65rem, 4.5vw, 2.2rem); font-weight: 800; }
h2 { font-size: 1.25rem; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; }

p { margin: 0 0 1rem; }

a { color: var(--primary); }
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent);
    outline-offset: 2px;
    border-radius: 4px;
}

img { max-width: 100%; }

.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;
}

/* ---- Hero (home landing) ----------------------------------------------- */

/* Full-bleed escape from .container */
.full-bleed {
    position: relative;
    width: 100vw;
    left: 50%;
    margin-left: -50vw;
}

html, body { overflow-x: clip; }

.hero {
    margin-top: -1.75rem; /* cancel .container top padding */
    height: max(560px, calc(100dvh - 59px)); /* viewport minus sticky header */
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    color: #fff;
    background: #101018;
}

.hero-slides, .hero-slides .hero-slide { position: absolute; inset: 0; }

.hero-slide {
    opacity: 0;
    transition: opacity 1.6s ease;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-slide.is-active { opacity: 1; }

.hero-slide.is-active img {
    animation: hero-zoom 9s ease-out forwards;
}

@keyframes hero-zoom {
    from { transform: scale(1.02); }
    to   { transform: scale(1.12); }
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(8, 8, 16, 0.85) 0%, rgba(8, 8, 16, 0.45) 40%, rgba(8, 8, 16, 0.22) 70%, rgba(8, 8, 16, 0.3) 100%),
        linear-gradient(100deg, rgba(8, 8, 16, 0.55) 0%, rgba(8, 8, 16, 0.2) 40%, transparent 65%),
        linear-gradient(135deg, color-mix(in srgb, var(--g1) 20%, transparent), transparent 45%, color-mix(in srgb, var(--g3) 14%, transparent));
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 1.25rem 4.5rem;
    text-shadow: 0 2px 22px rgba(8, 8, 16, 0.45);
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
}

.hero-eyebrow::before {
    content: '';
    width: 34px;
    height: 2px;
    border-radius: 2px;
    background: var(--grad-brand);
}

.hero h1 {
    font-size: clamp(2.3rem, 6.5vw, 4.3rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin: 0 0 1rem;
    max-width: 15ch;
    text-wrap: balance;
}

.hero h1 .grad {
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: brightness(1.35) saturate(1.1);
}

.hero .hero-sub {
    max-width: 44rem;
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 1.75rem;
}

.hero-actions { display: flex; gap: 0.85rem; flex-wrap: wrap; }

.btn-ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.22); }

/* Slide dots */
.hero-dots {
    position: absolute;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 2;
    display: flex;
    gap: 0.5rem;
}

.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.hero-dots button.is-active { background: #fff; transform: scale(1.25); }

/* Scroll cue */
.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 1.1rem;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
}

.scroll-cue svg { width: 20px; height: 20px; animation: cue-bounce 1.8s ease-in-out infinite; }

@keyframes cue-bounce {
    0%, 100% { transform: translateY(0); opacity: 0.9; }
    50%      { transform: translateY(7px); opacity: 0.45; }
}

/* ---- Studio gallery strip ------------------------------------------------ */

.gallery { padding: 3.5rem 0 3rem; }

.gallery .gallery-head {
    max-width: 1060px;
    margin: 0 auto 1.75rem;
    padding: 0 1.25rem;
}

.strip-wrap { overflow: hidden; }

.strip {
    display: flex;
    gap: 1rem;
    width: max-content;
    padding: 0.25rem 0;
    animation: strip-scroll 55s linear infinite;
}

.strip:hover { animation-play-state: paused; }

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

.strip figure {
    margin: 0;
    flex: none;
    width: clamp(240px, 34vw, 420px);
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
}

.strip figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.strip figure:hover img { transform: scale(1.05); }

.strip figcaption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 1.6rem 0.9rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(to top, rgba(8, 8, 16, 0.72), transparent);
}

/* ---- Scroll reveal -------------------------------------------------------- */

/* Visible by default (fail-safe); the entrance animation plays when the
   IntersectionObserver adds .in-view as the element scrolls into view. */
.reveal.in-view { animation: reveal-rise 0.65s ease backwards; }

@keyframes reveal-rise {
    from { opacity: 0; transform: translateY(26px); }
}

@media (prefers-reduced-motion: reduce) {
    .reveal.in-view { animation: none; }
    .strip { animation: none; }
    .strip-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .hero-slide.is-active img { animation: none; }
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.site-header .bar {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0.65rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.brand-name span {
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.site-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.site-nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    transition: color 0.2s, background-color 0.2s;
}

.site-nav a:hover { color: var(--text); background: var(--neutral-bg); }

.site-nav a.is-active {
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 10%, transparent);
}

.site-footer {
    margin-top: auto;
    border-top: 1px solid var(--border);
    padding: 1.4rem 1.25rem 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
}

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

/* ---- Layout ------------------------------------------------------------ */

.container {
    width: 100%;
    max-width: 1060px;
    margin: 0 auto;
    padding: 1.75rem 1.25rem 3.5rem;
}

.container--narrow { max-width: 620px; }

.page-intro { margin-bottom: 1.5rem; }

.page-intro .eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.35rem;
}

.page-intro .lede { color: var(--text-muted); max-width: 46rem; }

/* ---- Cards ------------------------------------------------------------ */

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 1.5rem;
}

.card + .card { margin-top: 1.25rem; }

.card--accent { border-top: 4px solid transparent; position: relative; }
.card--accent::before {
    content: '';
    position: absolute;
    top: -4px; left: 14px; right: 14px;
    height: 4px;
    border-radius: 0 0 4px 4px;
    background: var(--grad-brand);
}

/* ---- Buttons ----------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.7rem 1.4rem;
    border: 0;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
    touch-action: manipulation;
}

.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary {
    color: #fff;
    background: var(--grad-btn);
    box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--btn-g1) 60%, transparent);
}

.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--btn-g1) 70%, transparent); }
.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
    color: var(--text);
    background: var(--surface);
    border: 1.5px solid var(--border-strong);
}

.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

.btn-danger {
    color: var(--danger);
    background: var(--surface);
    border: 1.5px solid color-mix(in srgb, var(--danger) 40%, transparent);
}

.btn-danger:hover { background: var(--danger-bg); }

.btn-block { width: 100%; }

.btn[disabled], .btn.is-loading { opacity: 0.6; pointer-events: none; }

/* ---- Forms -------------------------------------------------------------- */

form { margin: 0; }

.field { display: block; margin-bottom: 1.1rem; }

.field > .field-label,
fieldset legend {
    display: block;
    font-weight: 600;
    font-size: 0.94rem;
    margin-bottom: 0.4rem;
}

.field-hint {
    display: block;
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

input[type='text'], input[type='email'], input[type='date'], input[type='tel'],
input[type='password'], input[type='number'], input:not([type]), textarea, select {
    width: 100%;
    min-height: 48px;
    padding: 0.65rem 0.9rem;
    font: inherit;
    color: var(--text);
    background: var(--surface);
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s;
}

textarea { min-height: 90px; resize: vertical; }

input:hover, textarea:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--border-strong)); }

input:focus, textarea:focus, select:focus {
    border-color: var(--primary);
    outline: 3px solid color-mix(in srgb, var(--primary) 25%, transparent);
    outline-offset: 0;
}

fieldset {
    border: 0;
    padding: 0;
    margin: 0 0 1.4rem;
}

.req { color: var(--danger); }

.error, .form-error {
    background: var(--danger-bg);
    border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent);
    color: var(--danger);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

/* Numbered form sections */
.form-section { padding: 1.5rem; }
.form-section + .form-section { margin-top: 1.25rem; }

.section-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.1rem;
}

.section-num {
    flex: none;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--grad-brand);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
}

.section-head h2 { margin: 0; }
.section-head .sub { font-size: 0.85rem; color: var(--text-muted); margin: 0.1rem 0 0; }

/* Option cards (radio) */
.option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.option-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.9rem 1rem;
    background: var(--surface);
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    min-height: 48px;
}

.option-card:hover { border-color: var(--primary); }
.option-card:active { transform: scale(0.99); }

.option-card input { position: absolute; opacity: 0; pointer-events: none; }

.option-card .option-title {
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.option-card .option-sub { font-size: 0.84rem; color: var(--text-muted); }

.option-card .option-price {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* check indicator */
.option-card .option-title::after {
    content: '';
    flex: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border-strong);
    transition: border-color 0.2s, background 0.2s;
}

.option-card:has(input:checked) {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent), var(--shadow-sm);
}

.option-card:has(input:checked) .option-title::after {
    border-color: var(--primary);
    background:
        radial-gradient(circle at center, #fff 0 3px, transparent 3.5px),
        var(--grad-btn);
}

.option-card:has(input:focus-visible) {
    outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent);
    outline-offset: 2px;
}

.option-card.is-off {
    opacity: 0.55;
    cursor: not-allowed;
    background: var(--neutral-bg);
    border-style: dashed;
}

.option-card.is-off:hover { border-color: var(--border-strong); }

.option-card .option-flag {
    display: none;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--danger);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.option-card.is-off .option-flag { display: block; }

/* Checkbox chips (equipment) */
.chip-grid { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1rem; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1rem;
    min-height: 44px;
    border: 1.5px solid var(--border-strong);
    border-radius: 999px;
    background: var(--surface);
    font-weight: 500;
    font-size: 0.92rem;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

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

.chip .chip-check { display: none; width: 15px; height: 15px; }

.chip:hover { border-color: var(--primary); }

.chip:has(input:checked) {
    border-color: var(--primary);
    background: color-mix(in srgb, var(--primary) 10%, var(--surface));
    color: var(--primary);
    font-weight: 600;
}

.chip:has(input:checked) .chip-check { display: block; }

.chip:has(input:focus-visible) {
    outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent);
    outline-offset: 2px;
}

/* Two-column detail fields on wider screens */
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 640px) {
    .field-row { grid-template-columns: 1fr 1fr; }
}

/* Estimate bar */
.estimate {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
    border-radius: var(--radius);
    border: 1px solid color-mix(in srgb, var(--primary) 25%, var(--border));
    background: color-mix(in srgb, var(--primary) 6%, var(--surface));
}

.estimate .label { font-size: 0.86rem; color: var(--text-muted); font-weight: 600; }

.estimate .value {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.estimate .note { flex-basis: 100%; font-size: 0.82rem; color: var(--text-muted); margin: 0; }

/* ---- Badges & status ---------------------------------------------------- */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.22rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.badge--pending_quote  { color: var(--warning); background: var(--warning-bg); }
.badge--ready_to_pay   { color: var(--info); background: var(--info-bg); }
.badge--transfer_review{ color: var(--review); background: var(--review-bg); }
.badge--paid           { color: var(--success); background: var(--success-bg); }
.badge--cancelled      { color: var(--neutral); background: var(--neutral-bg); }

/* ---- Confirmation / success --------------------------------------------- */

.status-hero { text-align: center; padding: 2.25rem 1.5rem; }

.status-hero .icon-ring {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--grad-brand);
    color: #fff;
    box-shadow: 0 12px 28px -10px color-mix(in srgb, var(--g1) 55%, transparent);
}

.status-hero .icon-ring svg { width: 30px; height: 30px; }

.status-hero .lede { color: var(--text-muted); max-width: 34rem; margin: 0 auto 0.5rem; }

.booking-number {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0.75rem auto 0.25rem;
    padding: 0.55rem 0.6rem 0.55rem 1.2rem;
    border-radius: 999px;
    border: 1.5px dashed color-mix(in srgb, var(--primary) 45%, var(--border-strong));
    background: color-mix(in srgb, var(--primary) 6%, var(--surface));
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.booking-number button {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border: 0;
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    color: #fff;
    background: var(--grad-btn);
}

.booking-number button svg { width: 14px; height: 14px; }

.detail-list {
    list-style: none;
    margin: 1.25rem 0;
    padding: 0;
    text-align: left;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.detail-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 1.1rem;
    background: var(--surface);
}

.detail-list li + li { border-top: 1px solid var(--border); }

.detail-list .k { color: var(--text-muted); font-size: 0.9rem; flex: none; }
.detail-list .v { font-weight: 600; text-align: right; }

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.25rem;
}

/* ---- Pay flow ------------------------------------------------------------ */

.amount-hero {
    text-align: center;
    padding: 1.5rem;
    border-radius: var(--radius);
    background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        var(--grad-brand) border-box;
    border: 2px solid transparent;
    margin-bottom: 1.5rem;
}

.amount-hero .label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }

.amount-hero .amount {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.15;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.pay-methods { display: grid; gap: 1rem; }
@media (min-width: 640px) { .pay-methods { grid-template-columns: 1fr 1fr; } }

.pay-method {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.4rem;
    text-align: left;
}

.pay-method .icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: color-mix(in srgb, var(--primary) 10%, var(--surface));
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.pay-method .icon svg { width: 22px; height: 22px; }

.pay-method h2 { font-size: 1.1rem; margin: 0; }
.pay-method p { color: var(--text-muted); font-size: 0.9rem; margin: 0 0 1rem; }
.pay-method form, .pay-method .btn { margin-top: auto; }

/* Big booking-number input on the lookup screen */
.lookup-input input {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-align: center;
    min-height: 58px;
}

/* Steps (BCEL flow) */
.steps { list-style: none; margin: 0 0 1.5rem; padding: 0; counter-reset: step; }

.steps li {
    position: relative;
    padding: 0 0 1.4rem 3rem;
    counter-increment: step;
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--grad-brand);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
}

.steps li:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 15px;
    top: 36px;
    bottom: 4px;
    width: 2px;
    background: var(--border);
}

.steps h2 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.steps p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 0.6rem; }

.qr-frame {
    display: inline-block;
    padding: 0.9rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.qr-frame img { display: block; width: min(260px, 100%); height: auto; }

.copy-line {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.5rem 0.4rem 0.9rem;
    border-radius: 999px;
    background: var(--neutral-bg);
    font-weight: 700;
    font-family: var(--font-display);
}

/* File upload */
.upload-box { display: block; cursor: pointer; }

.upload-box input[type='file'] {
    position: absolute;
    width: 1px; height: 1px;
    opacity: 0;
}

.upload-box .drop {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.1rem 1.2rem;
    border: 2px dashed var(--border-strong);
    border-radius: var(--radius);
    background: var(--surface);
    transition: border-color 0.2s, background-color 0.2s;
}

.upload-box:hover .drop { border-color: var(--primary); }

.upload-box:has(input:focus-visible) .drop {
    outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent);
    outline-offset: 2px;
}

.upload-box.has-file .drop {
    border-style: solid;
    border-color: var(--success);
    background: var(--success-bg);
}

.upload-box .drop svg { width: 26px; height: 26px; flex: none; color: var(--primary); }
.upload-box.has-file .drop svg { color: var(--success); }

.upload-box .drop .t { font-weight: 600; display: block; }
.upload-box .drop .s { font-size: 0.84rem; color: var(--text-muted); display: block; overflow-wrap: anywhere; }

/* ---- Tables (admin) ------------------------------------------------------- */

.toolbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.toolbar .spacer { margin-left: auto; }

.filter-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.filter-chip {
    border: 1.5px solid var(--border-strong);
    background: var(--surface);
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}

.filter-chip:hover { border-color: var(--primary); color: var(--primary); }

.filter-chip.is-active {
    color: #fff;
    background: var(--grad-btn);
    border-color: transparent;
}

.table-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow-x: auto;
}

table.data {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.94rem;
}

table.data th {
    text-align: left;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

table.data td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr { transition: background-color 0.15s; }
table.data tbody tr:hover { background: color-mix(in srgb, var(--primary) 4%, var(--surface)); }

table.data .num a {
    font-family: var(--font-display);
    font-weight: 700;
    text-decoration: none;
}

table.data .num a:hover { text-decoration: underline; }

table.data .amount { font-variant-numeric: tabular-nums; font-weight: 600; }

.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 2.5rem 1rem;
}

/* ---- Admin detail ---------------------------------------------------------- */

.admin-head {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.admin-head h1 { margin: 0; }
.admin-head .back {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.panel-title svg { width: 20px; height: 20px; color: var(--primary); }

.danger-zone {
    border: 1.5px solid color-mix(in srgb, var(--danger) 30%, transparent);
    background: color-mix(in srgb, var(--danger) 3%, var(--surface));
}

.danger-zone .panel-title svg { color: var(--danger); }

.inline-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ---- Motion & responsiveness ------------------------------------------------ */

@media (max-width: 560px) {
    .site-header .bar { flex-wrap: wrap; padding: 0.55rem 1rem; }
    .site-nav {
        flex: 1 1 100%;
        margin-left: 0;
    }
    .site-nav a {
        padding: 0.45rem 0.6rem;
        font-size: 0.88rem;
        white-space: nowrap;
    }
    .brand-name { font-size: 0.98rem; }
    .card, .form-section { padding: 1.15rem; }
    .action-row .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
