/* Онлайн-бронь — визуальный язык Ватрушкин PRO (B2B) */

.book-app {
    --bg: #030304;
    --bg-elevated: #0a0a0f;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-hover: rgba(255, 255, 255, 0.07);
    --stroke: rgba(255, 255, 255, 0.08);
    --stroke-strong: rgba(255, 255, 255, 0.14);
    --text: #f8f8fa;
    --text-secondary: #a1a1aa;
    --text-tertiary: #71717a;
    --red: #ef4444;
    --red-bright: #ff3b3b;
    --red-glow: rgba(239, 68, 68, 0.45);
    --red-dim: rgba(239, 68, 68, 0.12);
    --cyan: #38bdf8;
    --cyan-dim: rgba(56, 189, 248, 0.15);
    --green: #22c55e;
    --green-dim: rgba(34, 197, 94, 0.15);
    --gold: #fbbf24;
    --radius: 20px;
    --radius-lg: 28px;
    --font: "Inter", system-ui, sans-serif;
    --display: "Bricolage Grotesque", var(--font);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 80px -20px var(--red-glow);
    --book-max: 640px;
}

.book-app,
.book-app * {
    box-sizing: border-box;
}

.book-app {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

.book-app--embed {
    min-height: 100%;
    --book-max: 860px;
    font-size: 1.0625rem;
}

.book-app--embed .book-shell {
    width: min(100% - 24px, var(--book-max));
    padding: 14px 0 20px;
}

.book-app--embed .book-header {
    margin-bottom: 14px;
    padding-bottom: 12px;
}

.book-app--embed .book-hero {
    margin-bottom: 14px;
}

.book-app--embed .book-title {
    font-size: clamp(1.45rem, 3.5vw, 1.85rem);
    margin-bottom: 6px;
}

.book-app--embed .book-lead {
    font-size: 0.9rem;
}

.book-app--embed .book-progress {
    margin-bottom: 16px;
    padding: 10px 12px;
}

.book-app--embed .book-panel {
    padding: 22px 24px;
}

.book-app--embed .book-footer {
    margin-top: 14px;
    padding-top: 10px;
}

.book-app--embed .book-slots {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
}

.book-app--embed .book-slot-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(120px, 0.55fr);
    gap: 14px;
    align-items: end;
    margin-bottom: 4px;
}

@media (max-width: 520px) {
    .book-app--embed .book-slot-toolbar {
        grid-template-columns: 1fr;
    }
}

/* Ambient */
.book-ambient {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.book-ambient__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.45;
    animation: book-orb 18s var(--ease-out) infinite alternate;
}

.book-ambient__orb--1 {
    width: min(80vw, 520px);
    height: min(80vw, 520px);
    top: -15%;
    left: 50%;
    margin-left: -40vw;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.35) 0%, transparent 70%);
}

.book-ambient__orb--2 {
    width: 320px;
    height: 320px;
    bottom: 5%;
    right: -12%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.14) 0%, transparent 70%);
    animation-delay: -8s;
}

.book-ambient__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 90% 50% at 50% 0%, black 15%, transparent 70%);
    opacity: 0.35;
}

.book-ambient__noise {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes book-orb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(2%, 4%) scale(1.06); }
}

/* Shell */
.book-shell {
    position: relative;
    z-index: 1;
    width: min(100% - 32px, var(--book-max));
    margin: 0 auto;
    padding: 20px 0 32px;
}

.book-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--stroke);
}

.book-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.book-brand__mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(145deg, #ff4d4d 0%, #b91c1c 100%);
    display: grid;
    place-items: center;
    font-size: 1rem;
    color: #fff;
    box-shadow: 0 8px 28px var(--red-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.book-brand__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.book-brand__name {
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.book-brand__tag {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.book-header__link {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--stroke-strong);
    background: var(--surface);
    transition: background 0.25s, color 0.25s, border-color 0.25s;
    white-space: nowrap;
}

.book-header__link:hover {
    color: var(--text);
    background: var(--surface-hover);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Hero */
.book-hero {
    margin-bottom: 24px;
}

.book-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px 7px 10px;
    border-radius: 999px;
    background: var(--red-dim);
    border: 1px solid rgba(239, 68, 68, 0.25);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fecaca;
    margin: 0 0 14px;
}

.book-badge__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--red-bright);
    box-shadow: 0 0 12px var(--red-glow);
    animation: book-pulse 2s ease infinite;
}

@keyframes book-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

.book-title {
    font-family: var(--display);
    font-size: clamp(1.65rem, 5vw, 2.15rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 0 0 10px;
    background: linear-gradient(135deg, #fff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.book-lead {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 42ch;
}

.book-muted {
    color: var(--text-tertiary);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

.book-muted--tight {
    margin-top: 8px;
}

/* Progress */
.book-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    margin-bottom: 22px;
    padding: 12px 14px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--stroke);
}

.book-progress__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
    opacity: 0.45;
    transition: opacity 0.3s var(--ease-out);
}

.book-progress__item.is-active,
.book-progress__item.is-done {
    opacity: 1;
}

.book-progress__num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    border: 1px solid var(--stroke-strong);
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-secondary);
    transition: all 0.3s var(--ease-out);
}

.book-progress__item.is-active .book-progress__num {
    border-color: rgba(239, 68, 68, 0.5);
    background: var(--red-dim);
    color: #fecaca;
    box-shadow: 0 0 20px var(--red-glow);
}

.book-progress__item.is-done .book-progress__num {
    border-color: rgba(34, 197, 94, 0.4);
    background: var(--green-dim);
    color: #86efac;
}

.book-progress__label {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    white-space: nowrap;
}

.book-progress__line {
    flex: 0 0 12px;
    height: 1px;
    background: var(--stroke);
    margin-top: -14px;
}

/* Steps */
.book-step {
    display: none;
    animation: book-step-in 0.45s var(--ease-out);
}

.book-step.is-on {
    display: block;
}

@keyframes book-step-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .book-step.is-on { animation: none; }
    .book-ambient__orb { animation: none; }
    .book-badge__dot { animation: none; }
}

/* Panel */
.book-panel {
    border-radius: var(--radius-lg);
    padding: clamp(22px, 4vw, 28px);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid var(--stroke-strong);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-soft), var(--shadow-glow);
}

.book-panel--center {
    text-align: center;
}

.book-panel__title {
    font-family: var(--display);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.02em;
}

.book-panel__title i {
    color: #fca5a5;
    font-size: 0.95rem;
}

/* Rules */
.book-rules {
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: var(--radius);
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--stroke);
}

.book-rules p {
    margin: 0 0 12px;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

.book-rules p:last-child {
    margin-bottom: 0;
}

.book-rules__warn {
    color: #fca5a5 !important;
    font-weight: 600;
    font-size: 0.85rem !important;
    padding-top: 10px;
    border-top: 1px solid var(--stroke);
}

/* Checkbox */
.book-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    margin: 18px 0 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.book-check input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.book-check__box {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 2px;
    border-radius: 8px;
    border: 1px solid var(--stroke-strong);
    background: rgba(0, 0, 0, 0.35);
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    position: relative;
}

.book-check input:checked + .book-check__box {
    border-color: rgba(239, 68, 68, 0.6);
    background: var(--red-dim);
    box-shadow: 0 0 16px var(--red-glow);
}

.book-check input:checked + .book-check__box::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 11px;
    border: solid #fecaca;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.book-check__text strong {
    color: var(--text);
    font-weight: 600;
}

.book-check--inline {
    margin: 14px 0 18px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--stroke);
    background: var(--surface);
}

.book-double-row.is-hidden,
.book-double-row[hidden] {
    display: none !important;
    margin: 0;
    padding: 0;
    border: none;
}

/* Дата */
.book-date {
    display: block;
    margin-bottom: 0;
}

.book-date__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 6px;
}

.book-date__control {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    min-height: 52px;
    border-radius: 14px;
    border: 1px solid var(--stroke-strong);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(0, 0, 0, 0.35) 100%);
    transition: border-color 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.book-date__control:focus-within {
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 0 0 3px var(--cyan-dim);
}

.book-date__control > i {
    color: var(--cyan);
    font-size: 1.05rem;
    flex-shrink: 0;
    pointer-events: none;
}

.book-date__input {
    flex: 1;
    min-width: 0;
    width: 100%;
    padding: 14px 0;
    margin: 0;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    color: var(--text);
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color-scheme: dark;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.book-date__input:focus,
.book-date__input:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
}

/* Убираем белый «внутренний» прямоугольник Chrome/Edge при фокусе */
.book-date__input::-webkit-datetime-edit,
.book-date__input::-webkit-datetime-edit-fields-wrapper,
.book-date__input::-webkit-datetime-edit-text,
.book-date__input::-webkit-datetime-edit-month-field,
.book-date__input::-webkit-datetime-edit-day-field,
.book-date__input::-webkit-datetime-edit-year-field {
    background: transparent !important;
    color: var(--text);
    padding: 0;
    border: none;
    outline: none;
}

.book-date__input::-webkit-datetime-edit-month-field:focus,
.book-date__input::-webkit-datetime-edit-day-field:focus,
.book-date__input::-webkit-datetime-edit-year-field:focus {
    background: rgba(56, 189, 248, 0.2) !important;
    color: var(--text);
    outline: none;
}

.book-date__input::-webkit-calendar-picker-indicator {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
}

.book-field--seats {
    margin-bottom: 0;
}

.book-field--seats select {
    min-height: 52px;
}

.book-slot-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(110px, 0.5fr);
    gap: 12px;
    align-items: end;
    margin-bottom: 8px;
}

@media (max-width: 480px) {
    .book-slot-toolbar {
        grid-template-columns: 1fr;
    }
}

/* Ride type */
.book-type {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 16px 0 22px;
}

.book-type__btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 18px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--stroke-strong);
    background: rgba(0, 0, 0, 0.2);
    color: var(--text);
    cursor: pointer;
    text-align: left;
    transition:
        border-color 0.25s,
        background 0.25s,
        transform 0.25s var(--ease-spring),
        box-shadow 0.25s;
}

.book-type__btn:hover {
    background: var(--surface-hover);
    transform: translateY(-2px);
}

.book-type__btn.is-on[data-ride-type="adult"] {
    border-color: rgba(239, 68, 68, 0.55);
    background: var(--red-dim);
    box-shadow: 0 0 32px -8px var(--red-glow);
}

.book-type__btn.is-on[data-ride-type="child"] {
    border-color: rgba(56, 189, 248, 0.55);
    background: var(--cyan-dim);
    box-shadow: 0 0 36px -6px rgba(56, 189, 248, 0.5);
}

.book-type__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.06);
    color: #fca5a5;
    font-size: 1rem;
}

.book-type__btn.is-on[data-ride-type="adult"] .book-type__icon {
    background: rgba(239, 68, 68, 0.2);
}

.book-type__btn.is-on[data-ride-type="child"] .book-type__icon {
    background: rgba(56, 189, 248, 0.22);
    color: #7dd3fc;
}

.book-type__name {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1rem;
}

.book-type__hint {
    font-size: 0.72rem;
    color: var(--text-tertiary);
}

/* Fields */
.book-field {
    display: block;
    margin-bottom: 14px;
}

.book-field--grow {
    flex: 1;
}

.book-row {
    display: flex;
    gap: 12px;
}

.book-field__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 6px;
}

.book-field input,
.book-field select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--stroke-strong);
    background: rgba(0, 0, 0, 0.35);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.book-field input::placeholder {
    color: var(--text-tertiary);
}

.book-field input:focus,
.book-field select:focus {
    outline: none;
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 0 0 3px var(--cyan-dim);
}

.book-field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%2371717a'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* Slots */
.book-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 10px;
    margin: 14px 0 16px;
    min-height: 48px;
}

.book-slots .book-muted,
.book-slots__hint {
    grid-column: 1 / -1;
    padding: 0 0 10px;
}

.book-slots-legend {
    color: #fca5a5;
}

.book-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    border-radius: 14px;
    border: 1px solid var(--stroke-strong);
    background: rgba(0, 0, 0, 0.25);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.22s var(--ease-out);
}

.book-slot:hover:not(:disabled) {
    background: var(--surface-hover);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.book-slot--ok:hover:not(:disabled) {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Мало мест */
.book-slot--scarce {
    border-color: rgba(239, 68, 68, 0.45);
    background: var(--red-dim);
    box-shadow: 0 0 20px -6px var(--red-glow);
}

.book-slot--scarce .book-slot__cap {
    color: #fca5a5;
    font-weight: 600;
}

.book-slot--scarce:hover:not(:disabled) {
    border-color: rgba(239, 68, 68, 0.65);
    background: rgba(239, 68, 68, 0.18);
}

/* Занято */
.book-slot--full {
    border-color: rgba(239, 68, 68, 0.25);
    background: rgba(0, 0, 0, 0.35);
    opacity: 0.55;
    cursor: not-allowed;
}

.book-slot--full .book-slot__time {
    color: var(--text-tertiary);
}

.book-slot--full .book-slot__cap {
    color: #f87171;
    font-weight: 600;
}

.book-slot.is-on {
    border-color: rgba(34, 197, 94, 0.55);
    background: var(--green-dim);
    box-shadow: 0 0 24px rgba(34, 197, 94, 0.2);
}

.book-slot.is-on.book-slot--scarce {
    border-color: rgba(34, 197, 94, 0.55);
    background: var(--green-dim);
    box-shadow: 0 0 24px rgba(34, 197, 94, 0.2);
}

.book-slot.is-on .book-slot__cap {
    color: #86efac;
    font-weight: 600;
}

.book-slot:disabled {
    cursor: not-allowed;
}

.book-slot__time {
    font-weight: 700;
    font-size: 0.95rem;
    font-variant-numeric: tabular-nums;
}

.book-slot__cap {
    font-size: 0.68rem;
    color: var(--text-tertiary);
    letter-spacing: 0.02em;
}

/* Summary */
.book-summary {
    margin: 0 0 18px;
    padding: 16px 18px;
    border-radius: var(--radius);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--stroke);
}

.book-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 8px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--stroke);
}

.book-summary__row:last-child {
    border-bottom: none;
}

.book-summary__row span {
    color: var(--text-tertiary);
}

.book-summary__row strong {
    font-weight: 700;
    color: var(--text);
}

.book-summary__row--accent strong {
    color: #86efac;
    font-size: 1.05rem;
}

/* Итог оплаты (шаг 4) */
.book-pay-hero {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 4px 0 12px;
    border-bottom: 1px solid var(--stroke);
    margin-bottom: 10px;
}

.book-pay-hero__label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.book-pay-hero__sum {
    font-family: var(--display);
    font-size: clamp(1.75rem, 5vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #86efac;
    line-height: 1;
}

.book-pay-note {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

.book-pay-note strong {
    color: var(--text);
    font-weight: 600;
}

.book-pay-note .book-muted {
    font-size: 0.82rem;
}

/* Buttons */
.book-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 26px;
    border: none;
    border-radius: 999px;
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition:
        transform 0.25s var(--ease-spring),
        box-shadow 0.35s var(--ease-out),
        opacity 0.2s;
}

.book-btn:active:not(:disabled) {
    transform: scale(0.97);
}

.book-btn--primary {
    background: linear-gradient(180deg, #ff5555 0%, #dc2626 100%);
    color: #fff;
    box-shadow: 0 4px 24px var(--red-glow), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.book-btn--primary:hover:not(:disabled) {
    box-shadow: 0 8px 36px var(--red-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.book-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none;
}

.book-btn__arrow {
    transition: transform 0.3s var(--ease-out);
}

.book-btn:hover:not(:disabled) .book-btn__arrow {
    transform: translateX(4px);
}

.book-btn--pay {
    font-size: 0.9rem;
}

.book-btn--ghost {
    background: var(--surface);
    color: var(--text-secondary);
    border: 1px solid var(--stroke-strong);
}

.book-btn--ghost:hover:not(:disabled) {
    color: var(--text);
    background: var(--surface-hover);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.book-actions {
    display: grid;
    grid-template-columns: minmax(110px, 0.85fr) minmax(0, 1.35fr);
    gap: 12px;
    margin-top: 18px;
    align-items: stretch;
}

.book-actions .book-btn {
    width: 100%;
    margin-top: 0;
}

@media (max-width: 400px) {
    .book-actions {
        grid-template-columns: 1fr;
    }
    .book-actions .book-btn--ghost {
        order: 2;
    }
}

/* Errors & footer */
.book-err {
    color: #fca5a5;
    font-size: 0.85rem;
    min-height: 1.2em;
    margin: 12px 0 0;
}

.book-footer {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid var(--stroke);
    font-size: 0.72rem;
    color: var(--text-tertiary);
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.book-footer__sep {
    opacity: 0.4;
}

/* Receipt (success page) */
.book-receipt {
    border-radius: var(--radius-lg);
    padding: clamp(24px, 5vw, 32px);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(34, 197, 94, 0.35);
    box-shadow: var(--shadow-soft), 0 0 60px -16px rgba(34, 197, 94, 0.25);
}

.book-receipt--warn {
    border-color: rgba(251, 191, 36, 0.4);
    box-shadow: var(--shadow-soft), 0 0 40px -12px rgba(251, 191, 36, 0.2);
}

.book-receipt__ok {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--green-dim);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #86efac;
    font-weight: 700;
    font-size: 0.85rem;
    margin: 0 0 16px;
}

.book-receipt h1 {
    font-family: var(--display);
    font-size: clamp(1.5rem, 4vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 20px;
}

.book-receipt__rows {
    margin: 0 0 20px;
}

.book-receipt__rows div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--stroke);
    font-size: 0.9rem;
}

.book-receipt__rows dt {
    color: var(--text-tertiary);
    font-weight: 500;
}

.book-receipt__rows dd {
    margin: 0;
    text-align: right;
    font-weight: 600;
}

.book-receipt__sum {
    margin: 8px 0 20px;
    padding-top: 12px;
    border-top: 1px solid var(--stroke-strong);
}

.book-receipt__line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.95rem;
}

.book-receipt__line--paid strong {
    color: #86efac;
    font-size: 1.1rem;
}

@media (max-width: 400px) {
    .book-progress__label {
        display: none;
    }
    .book-type {
        grid-template-columns: 1fr;
    }
}
