/* Account pages (orders, new order, email links): same palette, type and buttons as the landing page (/style.css). */
body.page { background: radial-gradient(120% 60% at 50% 0%, var(--night-2), var(--night) 60%) fixed; min-height: 100vh; }
.sheet { padding-top: calc(84px + env(safe-area-inset-top)); padding-bottom: 72px; }
.sheet > * + * { margin-top: 18px; }
.sheet h1 { color: #fff; font-size: clamp(28px, 6vw, 40px); }
.card-panel { background: var(--cream); color: var(--ink); border-radius: 22px; padding: 24px 20px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.card-panel h1 { color: var(--ink); }
.who { color: rgba(255,255,255,.75); font-size: 14px; align-self: center; max-width: 42vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Phones: the account header is two lines (name; email + buttons), so the page starts lower. */
@media (max-width: 600px) {
  .top.stack .who { max-width: 52vw; min-width: 0; }
  .top.stack ~ .sheet { padding-top: calc(124px + env(safe-area-inset-top)); }
}
.notice { background: var(--cream); color: var(--ok); border-radius: 14px; padding: 12px 16px; font-weight: 600; }
.notice.error { color: var(--red); }
.hint { font-size: 15px; color: var(--ink-2); margin: 0 0 12px; }
.row-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.row-head h1 { margin: 0; line-height: 1.3; }
#ordersPanel .orders, #ordersPanel .empty { margin-top: 22px; }
.empty { color: rgba(255,255,255,.8); }
.draft-badge { display: inline-block; background: var(--gold); color: var(--ink); font-weight: 700; font-size: 14px; border-radius: 999px; padding: 6px 14px; }
.sheet h2 { color: #fff; font-size: 22px; margin-top: 1.2em; }
.page main.sheet > p:not(.notice):not(.draft-badge) { color: rgba(255,255,255,.85); }

/* Orders */
.orders { display: grid; gap: 16px; }
.order { background: var(--cream); border-radius: 20px; padding: 18px; box-shadow: 0 14px 40px rgba(0,0,0,.3); }
.order.focus { box-shadow: 0 0 0 3px var(--gold), 0 14px 40px rgba(0,0,0,.3); }
.order h3 { font-size: 24px; margin: 0 0 4px; }
.order .meta { color: var(--ink-2); font-size: 14px; margin: 0 0 12px; }
.pill { display: inline-block; font-size: 13px; font-weight: 700; border-radius: 999px; padding: 4px 12px; background: var(--cream-2); color: var(--ink); }
.pill.ready { background: #d7f0df; color: var(--ok); }
.pill.work { background: #fff0c9; color: #7a5300; }
.pill.bad { background: #fbd9da; color: var(--red); }
.order video { width: 100%; border-radius: 14px; background: #000; margin: 10px 0 12px; aspect-ratio: 16 / 9; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.actions .btn { flex: 1 1 160px; }
.btn.danger { background: transparent; color: var(--red); box-shadow: inset 0 0 0 1.5px var(--red); }
.btn.link-btn { background: none; color: rgba(42, 26, 18, .7); box-shadow: none; text-decoration: underline; margin-top: 6px; }

/* Progress */
.progress { margin: 12px 0 8px; }
.bar { height: 14px; border-radius: 999px; background: var(--cream-2); overflow: hidden; box-shadow: inset 0 1px 3px rgba(0,0,0,.15); }
.bar > span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--red), var(--gold)); transition: width .8s ease; }
.bar.queued > span { width: 100% !important; opacity: .35; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .15; } }
.progress .line { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; font-weight: 600; margin-top: 8px; }
.progress .mail-hint { font-size: 14px; color: var(--ink-2); margin: 6px 0 0; }

/* New order */
.step { border-top: 1px solid #ecd9b8; padding-top: 16px; margin-top: 16px; }
.step:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.step h2 { color: var(--ink); font-size: 21px; margin: 0 0 10px; display: flex; align-items: center; gap: 10px; }
.num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--red); color: #fff; font: 700 16px var(--sans); }
.field input.invalid { border-color: var(--red); }
.hint.error { color: var(--red); }
.btn.file { position: relative; overflow: hidden; margin-top: 4px; }
.req { font: 600 12px var(--sans); color: var(--red); background: #fbd9da; border-radius: 999px; padding: 2px 8px; margin-left: 4px; }
.step:last-of-type { margin-bottom: 8px; }
#orderSubmit { margin-top: 22px; }
.form-error { margin: 18px 0 0; }
.btn.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.btn.file:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.form-error { color: var(--red); font-weight: 600; }

/* Photo framing: the frame has the exact shape of the photo spot in the film */
.crop { margin-top: 12px; }
.crop-frame { position: relative; box-sizing: content-box; width: min(calc(100% - 20px), 400px); margin: 0 auto; overflow: hidden; border-radius: 6px; background: #241812;
  border: 10px solid #c99a3b; box-shadow: 0 0 0 2px #7a5510, 0 10px 30px rgba(0,0,0,.35); touch-action: none; cursor: grab; user-select: none; }
.crop-frame:active { cursor: grabbing; }
.crop-frame:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.crop-frame img.crop-bg { position: absolute; inset: 0; pointer-events: none; width: 100% !important; height: 100% !important; object-fit: cover; transform: scale(1.15) !important; filter: blur(14px) brightness(.85); }
.shape-pick { display: flex; gap: 8px; justify-content: center; margin: 0 0 12px; }
.shape { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 2px solid rgba(0,0,0,.15); background: #fff; color: inherit; font: inherit; font-size: 16px; cursor: pointer; }
.shape[aria-pressed="true"] { border-color: var(--red); color: var(--red); font-weight: 700; }
/* The gift frame is the film's playful red frame, not gold (founder 27 Nov). */
.crop[data-kind="present"] .crop-frame { border-color: #d22f2f; box-shadow: 0 0 0 2px #fff inset, 0 0 0 2px #8f1b1b, 0 10px 30px rgba(0,0,0,.35); }
.shape-icon { display: inline-block; border: 2px solid currentColor; border-radius: 3px; }
.shape-icon.tall { width: 12px; height: 16px; } .shape-icon.wide { width: 18px; height: 12px; }
.crop-frame img:not(.crop-bg) { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; }
.zoom { display: flex; align-items: center; gap: 10px; max-width: 420px; margin: 12px auto 0; font-weight: 700; color: var(--ink-2); }
.zoom input { flex: 1; accent-color: var(--red); min-height: 32px; }
#orderForm.busy { opacity: .7; pointer-events: none; }

/* Terms and privacy page */
.legal { scroll-margin-top: 90px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.legal-nav a { color: var(--ink); background: var(--cream-2); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 15px; text-decoration: none; }
.sheet .legal h2 { color: var(--ink); margin-top: 0; font-size: 26px; }
.legal h3 { font-size: 19px; margin: 22px 0 6px; color: var(--ink); }
.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 22px; margin: 6px 0; }
.legal li + li { margin-top: 4px; }
.legal blockquote { margin: 10px 0; padding: 12px 16px; border-left: 4px solid var(--red); background: #fff; border-radius: 0 12px 12px 0; }
.legal a { color: var(--red); }
mark.fill { background: #ffe08a; color: var(--ink); border-radius: 4px; padding: 0 4px; font-weight: 600; }

/* Payment by transfer (temporary) */
.pay { margin-top: 12px; background: #fff; border-radius: 16px; padding: 14px; box-shadow: inset 0 0 0 1.5px #ecd9b8; }
.pay-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; flex-wrap: wrap; }
.pay-row + .pay-row { border-top: 1px dashed #ecd9b8; }
.pay-label { display: block; font-size: 13px; color: var(--ink-2); }
.pay-value { font-size: 22px; letter-spacing: .04em; font-variant-numeric: tabular-nums; word-break: break-all; }
.pay-steps { margin: 10px 0 0; padding-left: 22px; }
.pay-steps > li { margin-top: 12px; font-weight: 600; }
.pay-steps > li > p { margin: 0 0 6px; }
.pay-note { font-size: 14px; color: var(--ink-2); font-weight: 500; margin: 8px 0 0; }
/* Two boxes side by side, centered: 150×125 where they fit, scaled down together on narrow phones. */
.pay-methods { display: flex; justify-content: center; gap: 12px; margin: 8px 0 6px; container-type: inline-size; }
.pay-method { flex: 0 0 auto; width: min(150px, calc(50cqw - 6px)); height: auto; aspect-ratio: 150 / 125; display: grid; place-items: center; padding: 10px; border: 0; border-radius: 16px; background: var(--cream, #fff8ec); box-shadow: inset 0 0 0 1.5px #ecd9b8; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.pay-method:hover, .pay-method:focus-visible { transform: translateY(-2px); box-shadow: inset 0 0 0 2px var(--gold, #d4a641), 0 6px 14px rgba(0,0,0,.12); outline: none; }
.pay-method img { width: 51%; height: auto; aspect-ratio: 1; border-radius: 22%; }
.pay-method img[src$='.svg'] { width: 67%; aspect-ratio: auto; border-radius: 8px; }
/* Payment picture window: the picture fits the screen (phone or computer), close button in its top right corner. */
.pay-dialog { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; overflow: visible; }
.pay-dialog::backdrop { background: rgba(6, 20, 12, .82); }
.pay-pic { position: relative; margin: 0; width: min(92vw, calc(92dvh * 1000 / 1573), 520px); container-type: inline-size; }
.pay-pic img { display: block; width: 100%; height: auto; border-radius: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.pay-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: #1d2b22; font: 700 28px/1 system-ui, sans-serif; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.35); }
.pay-close:focus-visible { outline: 3px solid var(--gold, #d4a641); outline-offset: 2px; }
.pay-over { position: absolute; left: 6%; right: 6%; display: grid; justify-items: center; gap: 1cqw; text-align: center; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.pay-over p { margin: 0; }
.pay-pic.idram .pay-over { top: 81.5%; }
.pay-pic.bank-card .pay-over { top: 68%; }
.pay-hint { font-size: 3.7cqw; font-weight: 600; white-space: nowrap; }
.pay-code { font-size: 4.1cqw; font-weight: 800; letter-spacing: .02em; color: #ffe39a; white-space: nowrap; }
.pay-card { font-size: 7cqw; font-weight: 800; letter-spacing: .06em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pay-over .btn.copy { font-size: max(14px, 3.6cqw); text-shadow: none; }
.pay-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 8px; }
.pay-links .btn { flex: 1 1 200px; }
.btn.copy { background: var(--cream-2); color: var(--ink); box-shadow: none; min-height: 40px; }
.btn.social { color: #fff; }
.btn.social.ig { background: linear-gradient(90deg, #f58529, #dd2a7b 55%, #8134af); }
.btn.social.fb { background: #1877f2; }

/* Admin payments page */
.admin-search { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-search input { flex: 1 1 180px; font: 600 22px var(--sans); letter-spacing: .1em; padding: 12px 14px; border-radius: 14px; border: 2px solid #e5cfa9; min-height: 52px; }
.pay-list { display: grid; gap: 12px; margin-top: 18px; }
.pay-item { background: var(--cream); border-radius: 18px; padding: 14px 16px; display: grid; gap: 6px; }
.pay-item .code { font: 800 26px var(--sans); letter-spacing: .08em; color: var(--ink); }
.pay-item .meta { margin: 0; }
.pay-item .pill { justify-self: start; }

/* Founder dashboard */
.dash { max-width: 1040px; }
.dash .card-panel h2 { color: var(--ink); font-size: 21px; margin: 0 0 12px; }
.updated { color: rgba(255,255,255,.7); font-size: 14px; margin-top: 6px !important; }
.period { display: inline-flex; background: rgba(255,255,255,.1); border-radius: 999px; padding: 4px; gap: 2px; }
.period button { font: 600 15px var(--sans); color: #fff; background: none; border: 0; border-radius: 999px; padding: 8px 14px; min-height: 40px; cursor: pointer; }
.period button[aria-pressed="true"] { background: var(--cream); color: var(--ink); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
@media (max-width: 420px) { .tile-value { font-size: 20px; } .tile.big .tile-value { font-size: 22px; } }
.tile { background: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: inset 0 0 0 1.5px #ecd9b8; display: grid; gap: 2px; align-content: start; }
.tile-label { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.tile-value { font-size: 24px; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tile.big .tile-value { font-size: 28px; color: var(--ok); }
.tile-note { font-size: 13px; color: var(--ink-2); }
.tile.warn { box-shadow: inset 0 0 0 2px var(--gold); background: #fff8e2; }
.tile.bad { box-shadow: inset 0 0 0 2px var(--red); background: #fdeeee; }
.bars { display: grid; gap: 10px; }
.bar-head { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; margin-bottom: 4px; color: var(--ink); }
.bar-track { height: 12px; background: var(--cream-2); border-radius: 999px; overflow: hidden; }
.bar-track > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--red), var(--gold)); }
.hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; align-items: end; height: 150px; }
.hour { display: grid; grid-template-rows: 1fr auto; height: 100%; }
.hour-bars { display: flex; align-items: flex-end; gap: 1px; height: 100%; }
.hour-bars span { flex: 1; border-radius: 3px 3px 0 0; min-height: 0; }
.hour-bars .v, .legend .visits { background: var(--gold); }
.hour-bars .o, .legend .orders { background: var(--red); }
.hour-label { font-size: 11px; color: var(--ink-2); text-align: center; height: 16px; }
.legend { font-size: 14px; color: var(--ink-2); margin: 10px 0 0; display: flex; align-items: center; gap: 6px; }
.legend .k { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-left: 8px; }
.tile.text .tile-value { font-size: 18px; }

/* Terms page: a clear way back (founder note 27 Nov). */
.back-link { padding: 8px 16px; font-size: 16px; }
.back-bottom { text-align: center; margin: 28px 0 8px; }
.legal[id] { scroll-margin-top: 84px; }
