/* Cherry Bomb - public booking app (always dark, embed-friendly) */
:root {
    --book-pink: #ea64ae;
    --book-pink-hover: #f078bb;
    --book-pink-soft: #f7c8e4;
    --book-pink-glow: rgba(234, 100, 174, 0.25);
    --book-black: #000000;
    --book-dark: #0c0c0c;
    --book-dark-elevated: #121212;
    --book-dark-surface: #161616;
    --book-dark-border: #2a2a2a;
    --book-dark-border-soft: #1e1e1e;
    --book-text: #f4f4f4;
    --book-text-muted: #9a9a9a;
    --book-text-faint: #6f6f6f;
    --book-radius: 20px;
    --book-radius-md: 14px;
    --book-radius-pill: 999px;
    --book-app-max-width: 480px;
    --book-font: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --book-mono: "IBM Plex Mono", ui-monospace, monospace;
    --book-safe-top: env(safe-area-inset-top, 0px);
    --book-safe-right: env(safe-area-inset-right, 0px);
    --book-safe-bottom: env(safe-area-inset-bottom, 0px);
    --book-safe-left: env(safe-area-inset-left, 0px);
    --book-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    --book-shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.45);
}

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

html, body.book-page {
    margin: 0;
    min-height: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.book-page {
    background: var(--book-black);
    color: var(--book-text);
    font-family: var(--book-font);
    font-size: 16px;
    line-height: 1.5;
}

.book-app {
    max-width: var(--book-app-max-width);
    min-height: 100dvh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    position: relative;
}

.book-main {
    flex: 1;
    padding: 0 16px 24px;
    width: 100%;
}

/* Booking flow embedded inside the marketing site chrome (site header + footer). */
body.book-embedded .book-app { min-height: auto; margin-top: 8px; margin-bottom: 32px; }
body.book-embedded .book-main { padding-top: 20px; }
.book-legal-footer {
    padding: 16px 16px calc(20px + var(--book-safe-bottom, 0px));
    text-align: center;
    font-size: 13px;
}
.book-legal-footer a { color: var(--book-text-muted); text-decoration: none; }
.book-legal-footer a:hover { color: var(--book-text); text-decoration: underline; }
.book-legal-footer span { color: var(--book-text-faint); margin: 0 4px; }
.book-inline-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--book-text-muted);
    font-size: 14px;
    text-decoration: none;
    margin: 0 0 14px;
}
.book-inline-back:hover { color: var(--book-text); }

.book-main:has(.book-flow-footer) {
    padding-bottom: calc(96px + var(--book-safe-bottom));
}

/* Top bar */
.book-topbar {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    padding: calc(8px + var(--book-safe-top)) max(12px, var(--book-safe-right)) 8px max(12px, var(--book-safe-left));
    min-height: calc(52px + var(--book-safe-top));
    position: sticky;
    top: 0;
    z-index: 30;
    /* Solid background instead of backdrop-filter: a sticky blur layer over the
       scrolling flow forces a full re-blur every frame, which on mobile WebKit
       drops compositor tiles (black/blank regions) and makes the page feel
       frozen. The page background is already this color, so it blends. */
    background: var(--book-black);
}

.book-topbar-title {
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.85;
}

.book-topbar-title--hidden {
    visibility: hidden;
    pointer-events: none;
}

.book-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
}

.book-icon-btn:active { background: rgba(255, 255, 255, 0.08); }

.book-topbar-slot {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-topbar-slot .book-icon-btn[hidden],
.book-topbar .book-icon-spacer[hidden] {
    display: none !important;
}

.book-icon-spacer {
    display: block;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

/* Progress */
.book-progress {
    display: flex;
    gap: 6px;
    padding: 0 20px 16px;
}

.book-progress-seg {
    flex: 1;
    height: 3px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.12);
    transition: background 0.25s ease, transform 0.25s ease;
}

.book-progress-seg.is-current {
    background: var(--book-pink);
    transform: scaleY(1.3);
}

.book-progress-seg.is-done {
    background: var(--book-pink);
    opacity: 0.5;
}

.book-progress-seg[hidden] {
    display: none;
}

/* Flow header */
.book-flow { width: 100%; }

.book-flow-header {
    margin-bottom: 20px;
    padding: 0 4px;
}

.book-flow-heading {
    font-size: 1.625rem;
    font-weight: 700;
    margin: 0 0 6px;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.book-flow-sub {
    font-size: 0.875rem;
    color: var(--book-text-muted);
    margin: 0;
}

.book-flow-note {
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--book-text-muted);
    margin: 10px 0 0;
}

.book-step-panel {
    display: none;
}

.book-step-panel.is-active {
    display: block;
    animation: bookSlideIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes bookSlideIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Service cards */
.book-service-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.book-service-grid[hidden],
#book-service-simple[hidden],
#book-service-categories[hidden] {
    display: none !important;
}

.book-service-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
    padding: 20px 48px 20px 20px;
    border: 1px solid var(--book-dark-border);
    border-radius: var(--book-radius-md);
    background: var(--book-dark-elevated);
    color: var(--book-text);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.book-service-card:active { transform: scale(0.985); }

.book-service-card.is-selected,
.book-service-card:hover {
    border-color: var(--book-pink);
    background: linear-gradient(135deg, rgba(234, 100, 174, 0.12) 0%, var(--book-dark-elevated) 100%);
    box-shadow: 0 0 0 1px var(--book-pink-glow);
}

.book-service-card-title {
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.book-service-card-meta {
    font-size: 0.8125rem;
    color: var(--book-text-muted);
}

.book-service-card-arrow {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.4;
}

.book-catalog-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.book-catalog-panel[hidden] {
    display: none !important;
}

.book-catalog-back {
    align-self: flex-start;
    background: none;
    border: none;
    color: var(--book-pink);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0;
    cursor: pointer;
}

.book-catalog-heading {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--book-text-muted);
}

.book-catalog-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.book-catalog-subgroup {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.book-catalog-service-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.book-catalog-service-block + .book-catalog-service-block {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.book-catalog-service-pick {
    margin-bottom: 12px;
}

.book-catalog-subgroup + .book-catalog-subgroup {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.book-catalog-subgroup-heading {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--book-text-muted);
}

.book-catalog-subgroup-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.book-catalog-item-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: stretch;
}

.book-catalog-item-row .book-catalog-item {
    min-width: 0;
}

.book-catalog-item-lead {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.book-catalog-item-thumb {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.06);
}

.book-catalog-item-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.book-catalog-item-info-hint {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--book-muted, rgba(255, 255, 255, 0.55));
}

.book-catalog-info-btn {
    align-self: center;
    padding: 10px 12px;
    border-radius: var(--book-radius);
    border: 1px solid var(--book-dark-border);
    background: var(--book-dark-elevated);
    color: var(--book-pink);
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.book-catalog-info-btn:active {
    transform: scale(0.98);
}

.book-variant-info-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: max(16px, var(--book-safe-top)) max(16px, var(--book-safe-right)) max(16px, var(--book-safe-bottom)) max(16px, var(--book-safe-left));
}

.book-variant-info-modal[hidden] {
    display: none !important;
}

.book-variant-info-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
}

.book-variant-info-panel {
    position: relative;
    width: min(100%, 420px);
    max-height: min(85vh, 640px);
    overflow: auto;
    border-radius: 18px 18px 14px 14px;
    background: var(--book-dark-elevated);
    border: 1px solid var(--book-dark-border);
    padding: 20px 18px 18px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.book-variant-info-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: transparent;
    color: var(--book-text);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.75;
}

.book-variant-info-image {
    display: block;
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 14px;
    background: rgba(255, 255, 255, 0.05);
}

.book-variant-info-image[hidden] {
    display: none !important;
}

.book-variant-info-title {
    margin: 0 0 10px;
    font-size: 1.25rem;
    line-height: 1.2;
}

.book-variant-info-desc {
    margin: 0 0 16px;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--book-muted, rgba(255, 255, 255, 0.72));
    white-space: pre-wrap;
}

.book-variant-info-desc[hidden] {
    display: none !important;
}

body.book-modal-open {
    overflow: hidden;
}

@media (min-width: 720px) {
    .book-variant-info-modal {
        align-items: center;
    }

    .book-variant-info-panel {
        border-radius: 18px;
    }
}

.book-catalog-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 16px 18px;
    border-radius: var(--book-radius);
    border: 1px solid var(--book-dark-border);
    background: var(--book-dark-elevated);
    color: var(--book-text);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, transform 0.1s;
}

.book-catalog-item:active {
    transform: scale(0.985);
}

.book-catalog-item.is-selected,
.book-catalog-item:hover {
    border-color: var(--book-pink);
    background: linear-gradient(135deg, rgba(234, 100, 174, 0.12) 0%, var(--book-dark-elevated) 100%);
}

.book-catalog-item-name {
    font-size: 1rem;
    font-weight: 600;
}

.book-catalog-item-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--book-pink);
    white-space: nowrap;
}

.book-catalog-item-price-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    text-align: right;
}

.book-catalog-item-breakdown {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--book-muted, rgba(255, 255, 255, 0.55));
    line-height: 1.25;
    max-width: 11rem;
}

.book-catalog-item[hidden] {
    display: none !important;
}

/* Panel cards */
.book-panel-card {
    background: var(--book-dark-elevated);
    border-radius: var(--book-radius);
    padding: 20px;
    border: 1px solid var(--book-dark-border);
}

.book-panel-card-form {
    padding: 24px 20px;
}

.book-form-intro {
    margin: 0 0 20px;
    font-size: 0.9375rem;
    color: var(--book-text-muted);
    line-height: 1.45;
}

.book-field-label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--book-text-faint);
    margin: 0 0 10px;
}

/* Time step layout */
.book-time-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.book-time-col-slots {
    min-width: 0;
}

.book-time-layout.is-single-day .book-time-col-calendar {
    display: none;
}

.book-single-day-banner {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: var(--book-radius-md);
    border: 1px solid var(--book-dark-border);
    background: var(--book-dark-surface);
}

.book-single-day-eyebrow {
    margin: 0 0 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--book-text-muted);
}

.book-single-day-date {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--book-text);
    line-height: 1.2;
}

/* Calendar */
.book-calendar-card {
    background: var(--book-dark-surface);
    border-radius: var(--book-radius-md);
    padding: 18px 14px 14px;
    border: 1px solid var(--book-dark-border);
}

.book-calendar-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 0 4px;
}

.book-calendar-month-label {
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--book-text);
    line-height: 1.1;
}

.book-calendar-sub {
    font-size: 0.8125rem;
    color: var(--book-text-muted);
    margin-top: 2px;
}

.book-calendar-nav {
    display: flex;
    gap: 6px;
}

.book-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--book-dark-border);
    background: var(--book-dark-elevated);
    color: var(--book-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.book-nav-btn:hover {
    border-color: var(--book-text-faint);
    background: var(--book-dark-surface);
}

.book-nav-btn:active {
    background: var(--book-dark-border-soft);
}

.book-week-strip {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.book-day-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 0;
    min-height: 72px;
    border: none;
    border-radius: 14px;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    position: relative;
}

.book-day-btn .book-day-name {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--book-text-faint);
}

.book-day-btn .book-day-num {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--book-text);
    line-height: 1;
}

.book-day-btn.is-today:not(.is-selected)::after {
    content: '';
    position: absolute;
    bottom: 8px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--book-pink);
}

.book-day-avail-dot {
    position: absolute;
    bottom: 7px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: transparent;
    opacity: 0;
    transition: opacity 0.2s;
}

.book-day-btn.has-availability:not(.is-selected) .book-day-avail-dot {
    opacity: 1;
    background: #7ee787;
    box-shadow: 0 0 6px rgba(126, 231, 135, 0.55);
}

.book-day-btn.is-selected.has-availability .book-day-avail-dot {
    opacity: 1;
    background: rgba(0, 0, 0, 0.55);
    box-shadow: none;
}

.book-week-strip.is-loading-availability .book-day-avail-dot {
    opacity: 0.35;
}

.book-day-btn.is-today.has-availability:not(.is-selected)::after {
    bottom: 14px;
}

.book-day-btn.no-availability:not(.is-selected) {
    opacity: 0.42;
}

.book-day-btn.no-availability:not(.is-selected) .book-day-num {
    color: var(--book-text-faint);
}

.book-day-btn:not(:disabled):not(.is-selected):hover {
    background: rgba(255, 255, 255, 0.06);
}

.book-day-btn.is-selected {
    background: var(--book-pink);
    box-shadow: 0 4px 16px var(--book-pink-glow);
    transform: scale(1.02);
}

.book-day-btn.is-selected .book-day-name,
.book-day-btn.is-selected .book-day-num {
    color: var(--book-black);
}

.book-day-btn:disabled {
    opacity: 0.28;
    cursor: not-allowed;
}

/* Time slots */
.book-slots-section { margin-top: 0; }

.book-slots-wrap { min-height: 80px; }

.book-slots-loading,
.book-slots-empty {
    padding: 28px 16px;
    text-align: center;
    color: var(--book-text-muted);
    font-size: 0.9375rem;
    background: var(--book-dark-surface);
    border-radius: var(--book-radius-md);
    border: 1px solid var(--book-dark-border-soft);
}

/* Bouncing cherry - Cherry Bomb loading mark */
.book-cherry-loader {
    display: block;
    font-size: 38px;
    line-height: 1;
    margin: 0 auto 14px;
    transform-origin: 50% 100%;
    animation: book-cherry-bounce 0.9s cubic-bezier(0.5, 0.05, 0.5, 0.95) infinite;
    will-change: transform;
}
@keyframes book-cherry-bounce {
    0%   { transform: translateY(0) scale(1, 1); }
    28%  { transform: translateY(-16px) scale(0.93, 1.08); }
    52%  { transform: translateY(0) scale(1.09, 0.9); }
    70%  { transform: translateY(-6px) scale(0.99, 1.01); }
    100% { transform: translateY(0) scale(1, 1); }
}
@media (prefers-reduced-motion: reduce) {
    .book-cherry-loader { animation: none; }
}

.book-slots-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.book-slot-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 18px;
    border: 1.5px solid var(--book-dark-border);
    border-radius: var(--book-radius-md);
    background: var(--book-dark-surface);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--book-text);
    cursor: pointer;
    transition: all 0.18s ease;
    text-align: left;
}

.book-slot-chip:hover {
    border-color: var(--book-text-faint);
    background: var(--book-dark-elevated);
}

.book-slot-chip.is-selected {
    background: var(--book-pink);
    border-color: var(--book-pink);
    color: var(--book-black);
    box-shadow: 0 6px 20px var(--book-pink-glow);
}

.book-slot-chip-label {
    font-variant-numeric: tabular-nums;
}

.book-slot-chip-tag {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: var(--book-radius-pill);
    background: rgba(255, 255, 255, 0.08);
    color: var(--book-text-muted);
}

.book-slot-chip.is-selected .book-slot-chip-tag {
    background: rgba(0, 0, 0, 0.15);
    color: rgba(0, 0, 0, 0.7);
}

/* Pills & segmented */
.book-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.book-pill {
    padding: 10px 16px;
    border-radius: var(--book-radius-pill);
    border: 1.5px solid var(--book-dark-border);
    background: var(--book-dark-surface);
    color: var(--book-text);
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.book-pill:hover {
    border-color: var(--book-text-faint);
}

.book-pill.is-selected {
    background: var(--book-pink);
    border-color: var(--book-pink);
    color: var(--book-black);
}

.book-segmented {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 4px;
    background: var(--book-dark-elevated);
    border-radius: 12px;
    border: 1px solid var(--book-dark-border);
    margin-bottom: 4px;
}

.book-segment {
    padding: 12px;
    border: 1.5px solid transparent;
    border-radius: 10px;
    background: transparent;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--book-text-muted);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.book-segment:hover:not(.is-selected) {
    color: var(--book-text);
    border-color: var(--book-dark-border);
    background: rgba(255, 255, 255, 0.04);
}

.book-segment.is-selected {
    background: var(--book-pink);
    border-color: var(--book-pink);
    color: var(--book-black);
    box-shadow: 0 2px 12px var(--book-pink-glow);
}

/* Form fields */
.book-form-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.book-field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 380px) {
    .book-field-grid { grid-template-columns: 1fr; }
}

.book-field { margin-bottom: 14px; }

.book-field label {
    display: block;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--book-text-faint);
    margin-bottom: 6px;
}

/* Required question indicators */
.book-required-mark {
    color: var(--book-pink);
    font-weight: 700;
    margin-left: 0.12em;
}

.book-field:has(.book-input[required]) > label:not(.book-checkbox-label):not(.book-service-question-check)::after,
.book-field:has(input[required]:not([type="hidden"]):not([type="checkbox"])) > label:not(.book-checkbox-label):not(.book-service-question-check)::after,
.book-field:has(select[required]) > label:not(.book-checkbox-label)::after,
.book-field:has(textarea[required]) > label:not(.book-checkbox-label)::after,
.book-field--require-one > label:not(.book-checkbox-label)::after {
    content: ' *';
    color: var(--book-pink);
    font-weight: 700;
}

.book-service-question:has([required]) > label:first-of-type::after,
.book-service-question:has([required]) .book-service-question-prompt::after {
    content: ' *';
    color: var(--book-pink);
    font-weight: 700;
}

.book-input,
.book-field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
.book-field textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1.5px solid var(--book-dark-border);
    background: var(--book-dark-surface);
    color: var(--book-text);
    font-family: var(--book-font);
    font-size: 1rem;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    -webkit-appearance: none;
    appearance: none;
}

.book-input::placeholder,
.book-field textarea::placeholder {
    color: var(--book-text-faint);
}

.book-input:focus,
.book-field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):focus,
.book-field textarea:focus {
    outline: none;
    border-color: var(--book-pink);
    background: var(--book-dark-elevated);
    box-shadow: 0 0 0 4px var(--book-pink-glow);
}

.book-field textarea { min-height: 100px; resize: vertical; }

.book-field-hint {
    font-size: 0.75rem;
    color: var(--book-text-muted);
    margin: 12px 0 0;
    line-height: 1.45;
}

.book-field-hint-tight {
    margin: 6px 0 12px;
}

.book-service-questions {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--book-border);
}

.book-service-questions[hidden] {
    display: none !important;
}

.book-service-question-checkbox {
    padding: 14px;
    border-radius: 12px;
    background: var(--book-dark-elevated);
    border: 1px solid var(--book-border);
}

.book-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--book-text-muted);
    margin: 0;
    cursor: pointer;
}

.book-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.book-service-question-prompt {
    margin: 0 0 12px;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--book-text);
    font-weight: 500;
}

.book-service-question-check {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--book-text);
    margin: 0;
    cursor: pointer;
}

.book-field label.book-service-question-check {
    display: flex;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--book-text);
    margin-bottom: 0;
}

.book-service-question-check input[type="checkbox"],
.book-field label.book-service-question-check input[type="checkbox"] {
    margin: 0;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    min-width: 20px;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: transparent;
    box-shadow: none;
    -webkit-appearance: checkbox;
    appearance: auto;
    accent-color: var(--book-pink);
    cursor: pointer;
}

.book-service-question-check input[type="checkbox"]:focus,
.book-field label.book-service-question-check input[type="checkbox"]:focus {
    outline: 2px solid var(--book-pink);
    outline-offset: 2px;
    box-shadow: none;
    background: transparent;
}

.book-service-question-check span {
    line-height: 1.35;
    flex: 1;
}

.book-review-answer-line {
    margin: 0 0 6px;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--book-text-muted);
}

.book-review-answer-line:last-child {
    margin-bottom: 0;
}

.book-ref-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.book-ref-upload-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.book-ref-upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: var(--book-radius-md);
    border: 1.5px dashed var(--book-dark-border);
    background: var(--book-dark-surface);
    color: var(--book-text);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.book-ref-upload-btn:hover {
    border-color: var(--book-pink);
    color: var(--book-pink-soft);
}

.book-ref-preview-grid,
.book-ref-review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 10px;
}

.book-ref-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--book-dark-border);
    background: var(--book-dark-surface);
}

.book-ref-preview-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-ref-preview-item.is-loading {
    background: linear-gradient(110deg, rgba(255, 255, 255, 0.04) 30%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.04) 70%);
    background-size: 200% 100%;
    animation: bookRefShimmer 1.1s linear infinite;
}

@keyframes bookRefShimmer {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
    .book-ref-preview-item.is-loading { animation: none; }
}

.book-ref-preview-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.book-ref-preview-remove:hover {
    background: rgba(0, 0, 0, 0.9);
}

.book-summary-row-stack {
    align-items: flex-start;
}

.book-summary-row-stack .book-summary-label {
    padding-top: 4px;
}

.book-ref-review-grid img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--book-dark-border);
}

.book-native-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    clip: rect(0, 0, 0, 0) !important;
}

/* datetime-local color scheme for dark inputs */
.book-field input[type="datetime-local"] {
    color-scheme: dark;
}

/* Footer CTA */
.book-flow-footer {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 100%;
    max-width: var(--book-app-max-width);
    padding: 16px 16px calc(16px + var(--book-safe-bottom));
    z-index: 40;
    /* No backdrop-filter here: this fixed footer sits over the scrolling flow,
       and a live blur layer re-blurs the whole page every frame, which on
       mobile WebKit causes blank/black tiles and a frozen-feeling page. The
       opaque gradient already hides the content sliding behind the buttons. */
    background: linear-gradient(to top, var(--book-black) 72%, transparent);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.book-flow-footer .book-btn[hidden],
.book-btn[hidden] {
    display: none !important;
}

/* Buttons */
.book-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: var(--book-radius-pill);
    padding: 17px 28px;
    font-family: var(--book-font);
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 0.12s ease, opacity 0.12s, box-shadow 0.12s;
    text-decoration: none;
}

.book-btn:active { transform: scale(0.98); }
.book-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.book-btn-primary {
    background: var(--book-pink);
    color: var(--book-black);
    box-shadow: 0 4px 20px var(--book-pink-glow);
}

.book-btn-primary:hover { background: var(--book-pink-hover); }

.book-btn-block { display: flex; width: 100%; white-space: normal; text-align: center; line-height: 1.25; }

.book-btn-secondary {
    background: var(--book-dark-elevated);
    color: var(--book-text);
    border: 1px solid var(--book-dark-border);
}

/* Summary */
.book-summary-card {
    background: var(--book-dark-surface);
    border-radius: var(--book-radius-md);
    padding: 4px 16px;
    margin-bottom: 16px;
    border: 1px solid var(--book-dark-border-soft);
}

.book-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 14px 0;
    font-size: 0.9375rem;
}

.book-summary-row + .book-summary-row {
    border-top: 1px solid var(--book-dark-border);
}

.book-summary-label { color: var(--book-text-muted); }
.book-summary-value { font-weight: 600; text-align: right; }

.book-summary-total {
    font-size: 1.125rem;
    font-weight: 700;
}

.book-summary-total .book-summary-value { color: var(--book-pink); }

/* Flash preview */
.book-flash-preview {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 14px;
    margin-bottom: 16px;
    background: var(--book-dark-elevated);
    border-radius: var(--book-radius-md);
    border: 1px solid var(--book-dark-border);
}

.book-flash-preview img {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: contain;
    background: #fff;
}

/* Full-bleed flash: fill the tile edge-to-edge with no white letterboxing. */
.book-flash-preview--bleed img {
    object-fit: cover;
    background: transparent;
}

.book-flash-preview-body h3 {
    margin: 0 0 2px;
    font-size: 0.9375rem;
    font-weight: 600;
}

.book-flash-preview-body p {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--book-text-muted);
}

/* Landing */
.book-landing {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 48px 20px 64px;
    min-height: calc(100dvh - 56px);
    justify-content: center;
    max-width: 420px;
    margin: 0 auto;
}

.book-landing--below-brand {
    min-height: 0;
    justify-content: flex-start;
    padding-top: 20px;
    padding-bottom: 48px;
}

.book-landing--below-brand .book-event-brand {
    margin-bottom: 16px;
}

.book-landing--below-brand .book-flow-heading {
    margin-top: 4px;
}

.book-landing-logo,
.book-landing-logo-fallback {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    margin-bottom: 20px;
}

.book-landing-logo {
    object-fit: cover;
    background: #000;
    border: 2px solid var(--book-dark-border);
}

.book-landing-handle-link {
    color: inherit;
    text-decoration: none;
}

.book-landing-handle-link:hover {
    color: var(--book-pink);
    text-decoration: underline;
}
.book-landing-logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--book-pink);
    background: var(--book-dark-elevated);
    border: 2px solid var(--book-dark-border);
}

.book-landing-handle {
    font-family: var(--book-mono);
    font-size: 1rem;
    color: var(--book-pink-soft);
    margin: 0 0 12px;
}

.book-landing-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 8px;
    line-height: 1.15;
}

.book-landing-sub {
    font-size: 0.9375rem;
    color: var(--book-text-muted);
    margin: 0 0 40px;
}

.book-landing-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.book-btn-gift {
    border-color: rgba(234, 100, 174, 0.5) !important;
    background: linear-gradient(135deg, rgba(234, 100, 174, 0.16), rgba(234, 100, 174, 0.05)) !important;
    color: var(--book-pink-soft) !important;
}
.book-btn-gift:hover {
    border-color: var(--book-pink) !important;
    background: linear-gradient(135deg, rgba(234, 100, 174, 0.26), rgba(234, 100, 174, 0.1)) !important;
}

/* --- Booking landing home: hero + rich option cards --- */
.book-landing.book-landing--home {
    max-width: 560px;
    justify-content: flex-start;
    padding-top: 32px;
    gap: 0;
    position: relative;
}
.book-landing.book-landing--home::before {
    content: "";
    position: absolute; inset: -10% -30% auto -30%; height: 70%;
    background: radial-gradient(60% 60% at 50% 0%, rgba(234, 100, 174, 0.22), transparent 70%);
    pointer-events: none; z-index: 0;
}
.book-landing-hero { position: relative; z-index: 1; margin-bottom: 34px; }
.book-landing-eyebrow {
    font-family: var(--book-mono); text-transform: uppercase; letter-spacing: 0.24em;
    font-size: 12px; font-weight: 700; color: var(--book-pink); margin: 0 0 16px;
}
.book-landing--home .book-landing-title {
    font-weight: 800; font-size: clamp(2.3rem, 9vw, 3.4rem); line-height: 1.0;
    letter-spacing: -0.02em; margin: 0 0 16px;
}
.book-landing--home .book-landing-sub {
    font-size: 1rem; color: var(--book-text-muted); margin: 0 auto 36px; max-width: 32ch; line-height: 1.5;
}
.book-landing-options {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1fr; gap: 14px; width: 100%;
}
.book-option {
    display: flex; align-items: center; gap: 18px; text-align: left;
    padding: 20px 22px; border-radius: 18px;
    background: var(--book-dark-elevated); border: 1px solid var(--book-dark-border);
    color: var(--book-text); text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.book-option:hover, .book-option:focus-visible {
    transform: translateY(-3px); border-color: var(--book-pink);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
    outline: none;
}
.book-option-icon {
    flex: 0 0 auto; width: 56px; height: 56px; border-radius: 14px;
    display: grid; place-items: center;
    background: rgba(234, 100, 174, 0.14); color: var(--book-pink);
}
.book-option-icon svg { width: 28px; height: 28px; }
.book-option-text { display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; min-width: 0; }
.book-option-title { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.01em; }
.book-option-desc { font-size: 0.875rem; color: var(--book-text-muted); line-height: 1.35; }
.book-option-arrow {
    flex: 0 0 auto; font-size: 1.5rem; line-height: 1; color: var(--book-text-faint);
    transition: transform 0.18s ease, color 0.18s ease;
}
.book-option:hover .book-option-arrow { transform: translateX(4px); color: var(--book-pink); }

/* Primary option = pink fill with dark ink text (legible) */
.book-option--primary {
    background: linear-gradient(135deg, var(--book-pink), var(--book-pink-hover));
    border-color: transparent; color: #1c0712;
}
.book-option--primary .book-option-desc { color: rgba(28, 7, 18, 0.72); }
.book-option--primary .book-option-icon { background: rgba(28, 7, 18, 0.16); color: #1c0712; }
.book-option--primary .book-option-arrow { color: rgba(28, 7, 18, 0.55); }
.book-option--primary:hover {
    border-color: transparent; box-shadow: 0 16px 42px rgba(234, 100, 174, 0.42);
}
.book-option--primary:hover .book-option-arrow { color: #1c0712; }

@media (min-width: 720px) {
    .book-landing.book-landing--home { max-width: 760px; padding: 40px 32px 72px; }
    .book-landing--home .book-landing-sub { margin-bottom: 44px; }
    .book-landing-options { grid-template-columns: 1fr 1fr; }
    .book-option--primary { grid-column: 1 / -1; }
    /* Gift card sits alone on the last row - span it full width so it doesn't
       look like a stranded half-card. */
    .book-option--gift { grid-column: 1 / -1; }
    .book-option { padding: 24px 26px; }
    .book-option-icon { width: 60px; height: 60px; }
    .book-option-icon svg { width: 30px; height: 30px; }
    .book-option-title { font-size: 1.3rem; }
}

/* Misc */
.book-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--book-text-muted);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.book-error {
    color: #ff6b6b;
    margin: 0 0 16px;
    padding: 14px 16px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 12px;
    font-size: 0.9375rem;
}

.book-hint {
    color: var(--book-text-muted);
    font-size: 0.875rem;
    line-height: 1.5;
}

.book-footer {
    text-align: center;
    padding: 16px;
    font-size: 0.6875rem;
    color: var(--book-text-muted);
    opacity: 0.6;
}

/* Flash gallery */
.book-page-header h1 {
    margin: 0 0 6px;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.book-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 16px;
    scrollbar-width: none;
}

.book-filters a {
    flex-shrink: 0;
    padding: 8px 14px;
    border-radius: var(--book-radius-pill);
    background: var(--book-dark-elevated);
    color: #ccc;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1px solid var(--book-dark-border-soft);
}

.book-filters a.active {
    background: var(--book-pink);
    color: var(--book-black);
    border-color: var(--book-pink);
}

.book-flash-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

/* ── Flashbook browse: sidebar + grid ── */
.book-main:has(.book-flash-layout) {
    padding-bottom: 32px;
}

.book-flash-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0 -16px;
}

.book-flash-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
}

.book-flash-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
    width: min(88vw, 320px);
    height: 100dvh;
    background: var(--book-dark-elevated);
    border-right: 1px solid var(--book-dark-border);
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
    padding-top: var(--book-safe-top);
    padding-bottom: var(--book-safe-bottom);
    padding-left: var(--book-safe-left);
}

.book-flash-sidebar.is-open {
    transform: translateX(0);
}

.book-flash-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px 12px;
    border-bottom: 1px solid var(--book-dark-border-soft);
}

.book-flash-sidebar-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.book-flash-sidebar-close {
    flex-shrink: 0;
}

.book-flash-sidebar-search {
    padding: 12px 16px;
    border-bottom: 1px solid var(--book-dark-border-soft);
}

.book-flash-search-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--book-text-muted);
    margin-bottom: 8px;
}

.book-flash-search-wrap {
    position: relative;
}

.book-flash-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--book-text-faint);
    pointer-events: none;
}

.book-flash-search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px 11px 40px;
    border-radius: 12px;
    border: 1px solid var(--book-dark-border);
    background: var(--book-dark-surface);
    color: var(--book-text);
    font: inherit;
    font-size: 0.9375rem;
}

.book-flash-search-input::placeholder {
    color: var(--book-text-faint);
}

.book-flash-search-input:focus {
    outline: none;
    border-color: var(--book-pink);
}

.book-flash-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    -webkit-overflow-scrolling: touch;
}

.book-flash-sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--book-text);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid transparent;
    transition: background 0.15s, border-color 0.15s;
}

.book-flash-sidebar-link:hover {
    background: rgba(255, 255, 255, 0.04);
}

.book-flash-sidebar-link.active {
    background: rgba(255, 105, 180, 0.12);
    border-color: rgba(255, 105, 180, 0.35);
    color: var(--book-pink);
    font-weight: 600;
}

.book-flash-sidebar-link-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.book-flash-sidebar-count {
    flex-shrink: 0;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--book-radius-pill);
    background: rgba(255, 255, 255, 0.08);
    color: var(--book-text-muted);
}

.book-flash-sidebar-link.active .book-flash-sidebar-count {
    background: rgba(255, 105, 180, 0.2);
    color: var(--book-pink);
}

.book-flash-sidebar-section {
    margin: 16px 0 6px;
    padding: 0 12px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--book-text-muted);
}

.book-flash-sidebar-link-artist .book-flash-sidebar-link-label {
    font-weight: 500;
}

.flash-card-artist {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--book-text-muted);
}

.book-flash-main {
    flex: 1;
    min-width: 0;
    padding: 0 16px;
}

.book-flash-main-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.book-flash-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--book-dark-border);
    background: var(--book-dark-elevated);
    color: var(--book-text);
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
}

.book-flash-main-search {
    flex: 1;
    min-width: 0;
}

.book-flash-page-header {
    margin-bottom: 16px;
}

.book-flash-page-header h1 {
    margin: 0 0 4px;
    font-size: 1.375rem;
}

.book-flash-result-count {
    margin: 0;
}

.book-flash-empty-search,
.book-flash-grid-empty {
    grid-column: 1 / -1;
    margin: 0 0 12px;
}

body.book-flash-sidebar-open {
    overflow: hidden;
}

.book-flash-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--book-radius-pill);
    background: var(--book-dark-elevated);
    color: var(--book-text);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
    border: 1px solid var(--book-dark-border);
    transition: border-color 0.15s, background 0.15s;
}

.book-flash-category-pill:hover {
    border-color: var(--book-text-faint);
}

.book-flash-category-pill.active {
    background: var(--book-pink);
    color: var(--book-black);
    border-color: var(--book-pink);
}

.book-flash-category-count {
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--book-radius-pill);
    background: rgba(255, 255, 255, 0.12);
    color: inherit;
    opacity: 0.85;
}

.book-flash-category-pill.active .book-flash-category-count {
    background: rgba(0, 0, 0, 0.15);
}

.flash-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    align-items: start;
}

.flash-card[hidden] {
    display: none !important;
}

.flash-card {
    aspect-ratio: 1;
    width: 100%;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-sizing: border-box;
    display: grid;
    grid-template: 1fr / 1fr;
    padding: 11%;
    transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.flash-card:hover {
    border-color: var(--book-pink);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.flash-card-media {
    grid-area: 1 / 1;
    min-width: 0;
    min-height: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.flash-card-media img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}

/* Full-bleed flash: image fills the tile edge-to-edge with no padding. */
.flash-card--bleed { padding: 0; }
.flash-card--bleed .flash-card-media img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
}

.flash-card-placeholder {
    grid-area: 1 / 1;
    aspect-ratio: auto;
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 0.75rem;
}

.flash-card-title {
    display: none;
}

/* Artist Flash landing: a tile per artist that shows their name + design count.
   The card background is white (#fff), so these sit on light - use dark ink,
   not the app's light --book-text (which would be white-on-white). */
.flash-card--artist-tile .flash-card-title,
.flash-card--artist-tile .flash-card-artist {
    display: block;
    padding: 10px 12px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1d1d1b;
}

.flash-card--artist-tile .flash-card-subtitle {
    display: block;
    padding: 2px 12px 12px;
    font-size: 0.78rem;
    color: rgba(29, 29, 27, 0.6);
}

.book-flash-hero {
    margin: 0 -16px 20px;
    background: #fff;
    border-top: 1px solid var(--book-dark-border-soft);
    border-bottom: 1px solid var(--book-dark-border-soft);
}

.book-flash-detail {
    display: block;
}

.book-flash-detail-body {
    min-width: 0;
}

.book-flash-detail-title {
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-weight: 700;
}

.book-flash-detail-desc {
    margin-bottom: 20px;
}

.book-flash-detail-size {
    margin: 0 0 24px;
    font-weight: 500;
}

.book-main:has(.book-flash-detail) {
    padding-bottom: calc(96px + var(--book-safe-bottom));
}

.book-flash-hero-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    min-height: 200px;
    max-height: min(52vh, 420px);
    box-sizing: border-box;
}

.book-flash-hero-frame img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: min(48vh, 380px);
    object-fit: contain;
    object-position: center;
    background: #fff;
}

/* Full-bleed flash detail: artwork fills the hero with no padding. */
.book-flash-hero--bleed .book-flash-hero-frame { padding: 0; min-height: 0; max-height: min(60vh, 520px); }
.book-flash-hero--bleed .book-flash-hero-frame img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: min(60vh, 520px);
    object-fit: cover;
}

.book-flash-price { font-size: 1.375rem; font-weight: 700; color: var(--book-pink); margin: 0 0 4px; }
.book-flash-estimate { font-size: 0.875rem; color: var(--book-text-muted); margin: 0 0 24px; }
.book-section-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--book-pink);
    margin: 0 0 10px;
}

.book-sticky-cta {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 100%;
    max-width: var(--book-app-max-width);
    padding: 16px 16px calc(16px + var(--book-safe-bottom));
    background: linear-gradient(to top, var(--book-black) 75%, transparent);
    z-index: 20;
}

.book-status-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(105, 219, 124, 0.15);
    color: #69db7c;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.75rem;
}

.book-card {
    background: var(--book-dark-elevated);
    border: 1px solid var(--book-dark-border);
    border-radius: var(--book-radius);
    padding: 20px;
}

.event-flyer {
    width: 100%;
    max-height: 360px;
    object-fit: contain;
    border-radius: var(--book-radius);
    margin-bottom: 16px;
}

/* ── Desktop / embed layout ── */
@media (min-width: 640px) {
    :root {
        --book-app-max-width: 640px;
    }

    .book-main:has(.book-flash-layout) {
        padding-left: 24px;
        padding-right: 24px;
    }

    .book-flash-layout {
        margin: 0;
    }

    .book-flash-main {
        padding: 0;
    }

    .book-main {
        padding: 0 24px 32px;
    }

    .book-flow-heading {
        font-size: 1.875rem;
    }

    .book-service-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .book-slots-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .flash-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .book-progress {
        padding: 0 24px 20px;
    }

    .book-flow-footer,
    .book-sticky-cta {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (min-width: 768px) {
    :root {
        --book-app-max-width: 920px;
    }

    .book-main:has(.book-flash-layout) {
        --book-app-max-width: 1120px;
        padding-left: 32px;
        padding-right: 32px;
    }

    .book-app:has(.book-flash-layout) {
        max-width: 1120px;
    }

    .book-flash-layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 24px;
        margin: 0;
    }

    .book-flash-sidebar-backdrop {
        display: none !important;
    }

    .book-flash-sidebar {
        position: sticky;
        top: 12px;
        z-index: 1;
        width: 240px;
        flex-shrink: 0;
        height: calc(100dvh - 88px);
        max-height: 720px;
        transform: none;
        border-radius: 16px;
        border: 1px solid var(--book-dark-border);
    }

    .book-flash-sidebar-close {
        display: none;
    }

    .book-flash-sidebar-search {
        display: block;
    }

    .book-flash-filter-toggle {
        display: none;
    }

    .book-flash-main-search {
        display: none;
    }

    .book-flash-main {
        padding: 0;
    }

    .book-flash-page-header h1 {
        font-size: 1.625rem;
    }

    .book-main {
        padding: 0 32px 40px;
    }

    .book-main:has(.book-flow-footer) {
        padding-bottom: calc(104px + var(--book-safe-bottom));
    }

    .book-flow-header {
        margin-bottom: 28px;
    }

    .book-flow-heading {
        font-size: 2rem;
    }

    .book-panel-card {
        padding: 28px;
    }

    .book-panel-card-form {
        padding: 32px 28px;
    }

    /* Side-by-side calendar + slots */
    .book-time-layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        align-items: start;
    }

    .book-calendar-card {
        margin-bottom: 0;
    }

    .book-slots-section {
        position: sticky;
        top: 68px;
    }

    .book-slots-grid {
        grid-template-columns: 1fr;
        max-height: min(420px, calc(100dvh - 200px));
        overflow-y: auto;
        padding-right: 4px;
        scrollbar-width: thin;
        scrollbar-color: var(--book-dark-border) transparent;
    }

    .book-slots-grid::-webkit-scrollbar {
        width: 6px;
    }

    .book-slots-grid::-webkit-scrollbar-thumb {
        background: var(--book-dark-border);
        border-radius: 3px;
    }

    .book-landing {
        padding: 72px 32px 96px;
        max-width: 480px;
    }

    .book-landing--below-brand {
        padding-top: 28px;
        padding-bottom: 72px;
    }

    .book-landing-logo,
    .book-landing-logo-fallback {
        width: 140px;
        height: 140px;
        margin-bottom: 24px;
    }

    .book-landing-title {
        font-size: 2.25rem;
    }

    .book-landing-sub {
        margin-bottom: 48px;
    }

    .book-landing-actions {
        max-width: 360px;
    }

    .flash-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    .book-flash-hero {
        margin: 0 0 24px;
        border-radius: var(--book-radius);
        overflow: hidden;
        border: 1px solid var(--book-dark-border);
    }

    .book-flash-detail {
        display: grid;
        grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
        gap: 28px;
        align-items: start;
        max-width: 760px;
        margin: 0 auto;
    }

    .book-flash-detail .book-flash-hero {
        margin: 0;
    }

    .book-flash-hero-frame {
        max-height: 360px;
        min-height: 0;
        padding: 20px;
    }

    .book-flash-hero-frame img {
        max-height: 320px;
    }

    .book-main:has(.book-flash-detail) {
        padding-bottom: 40px;
    }

    .book-flash-detail .book-sticky-cta {
        position: static;
        left: auto;
        transform: none;
        width: auto;
        max-width: none;
        padding: 8px 0 0;
        background: none;
    }

    .book-flash-detail .book-btn-primary {
        font-size: 1rem;
        padding: 18px 28px;
    }

    .book-flow-footer,
    .book-sticky-cta {
        padding-left: 32px;
        padding-right: 32px;
    }
}

@media (min-width: 1024px) {
    .book-main:has(.book-flash-layout) {
        --book-app-max-width: 1200px;
    }

    .book-app:has(.book-flash-layout) {
        max-width: 1200px;
    }

    .book-flash-sidebar {
        width: 260px;
    }

    .flash-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }

    .book-service-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .book-slots-grid {
        grid-template-columns: repeat(2, 1fr);
        max-height: none;
        overflow-y: visible;
    }
}

/* Artist flash directory & per-artist galleries */
.book-artist-flash-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 8px;
}

.book-artist-flash-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--book-radius);
    border: 1px solid var(--book-dark-border);
    background: var(--book-dark-surface);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s;
}

.book-artist-flash-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
}

.book-artist-flash-avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    background: rgba(176, 252, 56, 0.15);
    color: var(--book-accent, #B0FC38);
}

.book-artist-flash-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.book-artist-flash-meta strong {
    font-weight: 600;
    font-size: 1rem;
}

.book-artist-flash-arrow {
    flex-shrink: 0;
    opacity: 0.45;
}

.book-artist-flash-badge {
    text-align: center;
    margin: 0 0 12px;
    font-size: 0.875rem;
    opacity: 0.85;
}

.book-flash-main-artist {
    padding-top: 0;
}

.book-flash-artists-link {
    margin-top: 12px;
}

/* Per-event public page branding (booking + walk-in line). */
.book-event-brand {
    text-align: center;
    margin: 0 0 20px;
    padding: 0 4px;
}
.book-event-brand--compact {
    margin-bottom: 14px;
}
.book-event-brand-hero {
    margin-bottom: 14px;
    border-radius: var(--book-radius-md);
    overflow: hidden;
}
.book-event-brand-hero img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}
.book-event-brand-logo img {
    display: inline-block;
    max-height: 72px;
    max-width: min(220px, 70vw);
    object-fit: contain;
    margin-bottom: 10px;
}
.book-event-brand-title {
    margin: 0 0 8px;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
}
.event-queue-flash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}
.event-queue-flash-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px;
    border-radius: 12px;
    border: 1.5px solid var(--book-dark-border);
    background: var(--book-dark-surface);
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.event-queue-flash-option.is-selected {
    border-color: var(--book-pink);
    box-shadow: 0 0 0 3px var(--book-pink-glow);
}
.event-queue-flash-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.event-queue-flash-option img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
}
.event-queue-flash-noimg {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--book-dark-elevated);
    color: var(--book-text-faint);
    font-size: 1.25rem;
}
.event-queue-flash-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    color: var(--book-text);
}
.event-queue-flash-price {
    font-size: 0.6875rem;
    color: var(--book-pink);
    font-weight: 700;
}
