/* THE TOON-UP — shared styles for booking, account and admin pages */
:root {
  --ink: #14101a; --muted: #5e566b; --line: #ece7f1; --soft: #f6f3f8; --bg: #ffffff;
  --pink: #e0136b; --orange: #ff7a00; --ok: #0f8a5f; --err: #c2183b;
  --sunset: linear-gradient(90deg, #ff7a00, #e0136b 60%, #b0219e);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Manrope, system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.display { font-family: Anton, Impact, sans-serif; font-weight: 400; text-transform: uppercase; line-height: 0.95; letter-spacing: 0.005em; margin: 0; }
.grad { background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }
[hidden] { display: none !important; }

/* header */
header.site { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
header.site nav { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo span { font-family: Anton, Impact, sans-serif; font-size: 22px; letter-spacing: 0.04em; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 11px 12px; border-radius: 999px; }
.nav-links a:hover { background: var(--soft); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 999px; border: 0; font: 800 16px/1 Manrope, system-ui, sans-serif; text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn-primary { background: var(--sunset); color: #fff; box-shadow: 0 12px 26px -14px rgba(224,19,107,.8); }
.btn-primary:not(:disabled):hover { transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; border: 2px solid var(--ink); color: var(--ink); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* page head */
.page-head { padding: 40px 0 8px; }
.page-head h1 { font-size: clamp(40px, 7vw, 72px); }
.page-head p { margin: 14px 0 0; color: var(--muted); font-size: 17px; line-height: 1.55; }
.crumb { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--muted); text-decoration: none; margin-bottom: 18px; min-height: 44px; }

/* steps */
.step { padding: 28px 0; border-bottom: 1px solid var(--line); }
.step:last-of-type { border-bottom: 0; }
.step-title { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: 20px; font-weight: 800; }
.step-num { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 14px; font-weight: 800; }
.step.locked { opacity: .45; pointer-events: none; }

/* model choice */
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.choice { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 18px; border: 2px solid var(--line); background: #fff; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; min-height: 112px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:hover { border-color: #d6cfe0; }
.choice.selected { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(224,19,107,.12); }
.choice:has(input:focus-visible) { outline: 3px solid var(--orange); outline-offset: 2px; }
.choice .c-name { font-weight: 800; font-size: 18px; }
.choice .c-desc { color: var(--muted); font-size: 14px; line-height: 1.4; }
.choice .c-meta { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--muted); }
.choice .c-price { font-weight: 800; font-size: 20px; color: var(--ink); }
.check { position: absolute; top: 14px; right: 14px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; }
.choice.selected .check { background: var(--pink); border-color: var(--pink); }
.choice.selected .check::after { content: ""; width: 10px; height: 6px; border: 2.5px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px,-1px); }

/* platform cards (chooser) */
.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; padding: 24px 0 64px; }
.platform { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 24px; background: #0f0e11; color: #fff; text-decoration: none; min-height: 220px; position: relative; overflow: hidden; }
.platform::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255,122,0,.35), rgba(255,122,0,0) 70%); }
.platform h2 { font-size: 40px; }
.platform p { margin: 0; color: rgba(255,255,255,.7); }
.platform .btn { margin-top: auto; align-self: flex-start; position: relative; z-index: 1; }

/* dates: one horizontal row that scrolls, never wraps */
.dates { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 2px 10px; margin: 0 -2px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.date { flex: 0 0 76px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 0; border-radius: 16px; border: 2px solid var(--line); background: #fff; cursor: pointer; font: inherit; color: var(--ink); min-height: 92px; }
.date .d-dow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.date .d-num { font-size: 24px; font-weight: 800; }
.date .d-mon { font-size: 12px; color: var(--muted); }
.date .d-free { margin-top: 4px; font-size: 11px; font-weight: 700; color: var(--ok); }
.date:disabled { cursor: not-allowed; background: var(--soft); border-color: var(--soft); }
.date:disabled .d-num, .date:disabled .d-dow, .date:disabled .d-mon { color: #b4adbf; }
.date:disabled .d-free { color: #9a92a6; }
.date.selected { border-color: var(--pink); background: #fff5f9; box-shadow: 0 0 0 4px rgba(224,19,107,.12); }
.date:focus-visible, .time:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* times: equal-width grid, always tidy */
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-top: 14px; }
.time { min-height: 48px; border-radius: 12px; border: 2px solid var(--line); background: #fff; font: 700 16px Manrope, system-ui, sans-serif; color: var(--ink); cursor: pointer; }
.time.selected { background: var(--ink); border-color: var(--ink); color: #fff; }
.hint { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 10px 0 0; }

/* form */
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 14px; }
.field input, .field textarea, .field select { font: 500 16px Manrope, system-ui, sans-serif; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 13px 14px; min-height: 50px; width: 100%; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); }
.field .err { color: var(--err); font-size: 13px; font-weight: 600; }
.field.invalid input { border-color: var(--err); }
.tick { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--muted); margin-top: 16px; }
.tick input { width: 22px; height: 22px; flex: none; margin-top: 1px; accent-color: var(--pink); }

/* summary bar */
.summary { position: sticky; bottom: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 14px 0 calc(14px + env(safe-area-inset-bottom)); }
.summary .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.summary .s-text { font-size: 14px; color: var(--muted); line-height: 1.4; min-width: 0; }
.summary .s-text b { color: var(--ink); font-size: 16px; }
@media (max-width: 560px) { .summary .btn { width: 100%; } }

/* notices & cards */
.notice { border-radius: 16px; padding: 16px 18px; font-size: 15px; line-height: 1.5; margin: 16px 0; }
.notice.err { background: #fdeef1; color: #8c1230; }
.notice.ok { background: #e8f7f0; color: #0b5e41; }
.notice.info { background: var(--soft); color: var(--ink); }
.card { border: 1px solid var(--line); border-radius: 22px; padding: 22px; background: #fff; }
.card + .card { margin-top: 16px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 700; word-break: break-word; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; background: var(--soft); }
.pill.ok { background: #e8f7f0; color: #0b5e41; }
.pill.warn { background: #fff4e5; color: #8a4b00; }
.skeleton { background: linear-gradient(90deg, #f2eef6 0%, #f9f7fb 50%, #f2eef6 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; border-radius: 12px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* photos */
.photo-group h4 { margin: 18px 0 10px; font-size: 15px; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.photos figure { margin: 0; position: relative; }
.photos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; display: block; background: var(--soft); }
.photos figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; }

footer.site { border-top: 1px solid var(--line); margin-top: 48px; }
footer.site .wrap { padding: 28px 20px 40px; font-size: 12px; line-height: 1.6; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { .spinner, .skeleton { animation: none; } .btn { transition: none; } }
