/* ==========================================================================
   Pastoral Appointment Manager — styles
   Warm paper + deep navy + gold. Light and dark themes follow the device.
   ========================================================================== */

:root {
  color-scheme: light;
  --bg: #f7f4ee;
  --bg-glow: #efe7d8;
  --surface: #ffffff;
  --surface-2: #fbf9f5;
  --surface-3: #f3eee5;
  --ink: #1f1b16;
  --ink-2: #3d362e;
  --muted: #736b60;
  --line: #e8e1d4;
  --line-strong: #d9d0c0;

  --brand: #222b48;
  --brand-2: #34406a;
  --brand-ink: #ffffff;
  --accent: #b5803a;
  --accent-2: #d6a560;
  --accent-ink: #ffffff;
  --accent-soft: #f6ecdc;

  --ok: #2f7a4f;
  --ok-soft: #e4f2e9;
  --warn: #93650d;
  --warn-soft: #fbf0d4;
  --info: #2c5f9e;
  --info-soft: #e4ecf8;
  --danger: #a3372c;
  --danger-soft: #f9e5e2;

  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(31, 27, 22, 0.06);
  --shadow: 0 1px 2px rgba(31, 27, 22, 0.05), 0 6px 20px rgba(31, 27, 22, 0.06);
  --shadow-lg: 0 2px 6px rgba(31, 27, 22, 0.06), 0 24px 60px rgba(31, 27, 22, 0.14);
  --ring: 0 0 0 3px rgba(181, 128, 58, 0.28);

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #111318;
    --bg-glow: #1a1d26;
    --surface: #1a1d24;
    --surface-2: #20242c;
    --surface-3: #272b35;
    --ink: #efebe4;
    --ink-2: #d4cec4;
    --muted: #a39b8f;
    --line: #2d313b;
    --line-strong: #3a3f4b;

    --brand: #1a2036;
    --brand-2: #2a3352;
    --accent: #d39d55;
    --accent-2: #e8bb7c;
    --accent-ink: #1b1306;
    --accent-soft: #3a2d1b;

    --ok: #6cc391;
    --ok-soft: #1c3226;
    --warn: #e2b553;
    --warn-soft: #362b14;
    --info: #86b3ec;
    --info-soft: #1b2a40;
    --danger: #ef8a7d;
    --danger-soft: #3b1f1c;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.4), 0 24px 60px rgba(0, 0, 0, 0.5);
    --ring: 0 0 0 3px rgba(211, 157, 85, 0.35);
  }
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
a { color: var(--accent); text-underline-offset: 2px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
svg.i-sm { width: 15px; height: 15px; }
svg.i-lg { width: 22px; height: 22px; }
::selection { background: var(--accent-soft); }

/* ---------- Layout ---------- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 640px; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  background: linear-gradient(180deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 92%, black) 100%);
  color: var(--brand-ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 6px 20px rgba(17, 20, 35, 0.18);
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.topbar .brand { display: flex; align-items: center; gap: 12px; flex: 1 1 auto; min-width: 0; }
.topbar .brand-text { min-width: 0; overflow: hidden; }
.topbar .brand small { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 420px) { .topbar .brand-text { display: none; } }
.topbar .brand-text > span { display: block; font-family: var(--serif); font-size: 19px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .brand small { display: block; font-family: var(--sans); font-size: 11px; opacity: 0.65; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }
.topbar .who { display: flex; align-items: center; gap: 8px; font-size: 14px; flex: none; }
.topbar [data-user-name] { max-width: 180px; overflow: hidden; text-overflow: ellipsis; display: inline-block; }
@media (max-width: 600px) {
  .topbar .brand-text > span { font-size: 16px; }
  .topbar .brand small { font-size: 10px; letter-spacing: 0.08em; }
  .topbar .lang-select { min-width: 0; max-width: 126px; padding-left: 32px; padding-right: 32px; background-position: left 11px center, right 11px center; }
  .topbar [data-user-name] { max-width: 72px; }
  .topbar .brand-mark { width: 32px; height: 32px; }
}
.topbar .btn-ghost { color: var(--brand-ink); border-color: rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.04); }
.topbar .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--accent-2), var(--accent));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 12px rgba(181, 128, 58, 0.35);
}
.brand-mark svg { width: 18px; height: 18px; stroke: #fff; stroke-width: 2.2; fill: none; stroke-linecap: round; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 14px/1 var(--sans);
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--brand);
  color: var(--brand-ink);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease, filter 0.15s ease;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; filter: none; transform: none; }
.btn-accent { background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: var(--accent-ink); box-shadow: 0 4px 14px rgba(181, 128, 58, 0.3); }
.btn-accent:hover { box-shadow: 0 6px 18px rgba(181, 128, 58, 0.38); }
.btn-ok { background: var(--ok); color: #fff; }
@media (prefers-color-scheme: dark) { .btn-ok { color: #0f1f15; } }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface-2); filter: none; border-color: var(--muted); }
.btn-danger-ghost { background: transparent; color: var(--danger); border-color: transparent; }
.btn-danger-ghost:hover { background: var(--danger-soft); filter: none; }
.btn-sm { padding: 7px 11px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 15px 24px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }

/* ---------- Forms ---------- */
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); }
.field { margin-bottom: 16px; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
input, select, textarea {
  width: 100%;
  font: 15px var(--sans);
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.btn:focus-visible, .chip:focus-visible, .icon-btn:focus-visible { outline: none; box-shadow: var(--ring); }
textarea { resize: vertical; min-height: 90px; }
select {
  appearance: none; -webkit-appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23736b60' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  cursor: pointer;
}
@media (prefers-color-scheme: dark) { select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a39b8f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); } }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

.error-box { display: flex; gap: 8px; align-items: flex-start; background: var(--danger-soft); color: var(--danger); padding: 11px 13px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; }

/* ---------- Status pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface-3); color: var(--muted); letter-spacing: 0.01em; vertical-align: 1px; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.8; }
.pill.waiting { background: var(--warn-soft); color: var(--warn); }
.pill.called { background: var(--accent-soft); color: var(--accent); }
.pill.with_pastor { background: var(--info-soft); color: var(--info); }
.pill.completed { background: var(--ok-soft); color: var(--ok); }
.pill.cancelled, .pill.no_show, .pill.declined { background: var(--danger-soft); color: var(--danger); }
.pill.pending { background: var(--info-soft); color: var(--info); }
.tag { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }

/* ---------- Toast ---------- */
#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 100; width: min(440px, calc(100% - 32px)); }
.toast { display: flex; align-items: center; gap: 10px; background: #1f1b16; color: #fff; padding: 13px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: 14px; animation: rise 0.25s cubic-bezier(.2,.8,.2,1); }
.toast::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); flex: none; }
.toast.error { background: var(--danger); }
.toast.error::before { background: #fff; }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } }

/* ---------- Dialog ---------- */
dialog {
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 0;
  width: min(540px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}
dialog[open] { animation: pop 0.2s cubic-bezier(.2,.8,.2,1); }
@keyframes pop { from { transform: translateY(8px) scale(0.98); opacity: 0; } }
dialog::backdrop { background: rgba(17, 19, 26, 0.5); backdrop-filter: blur(3px); }
dialog .dialog-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px 16px; }
dialog .dialog-head h2 { font-size: 22px; }
dialog .dialog-body { padding: 4px 22px 18px; }
dialog .dialog-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.icon-btn { background: none; border: none; font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted); padding: 6px 9px; border-radius: 8px; }
.icon-btn:hover { background: var(--surface-3); color: var(--ink); }

/* ==========================================================================
   Public booking page
   ========================================================================== */
.public { min-height: 100vh; background:
  radial-gradient(900px 500px at 85% -10%, var(--bg-glow), transparent 70%),
  radial-gradient(700px 400px at -10% 110%, var(--bg-glow), transparent 70%),
  var(--bg); }

.page-lang { display: flex; justify-content: flex-end; padding-top: 16px; }

.book-layout > * { min-width: 0; }
.book-layout {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px;
  align-items: start; padding-top: 20px; padding-bottom: 48px;
}
@media (max-width: 900px) { .book-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 12px; } }

.book-hero {
  position: sticky; top: 20px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  color: #fff;
  background:
    radial-gradient(420px 260px at 100% 0%, rgba(214, 165, 96, 0.38), transparent 70%),
    radial-gradient(360px 300px at 0% 100%, rgba(83, 101, 170, 0.45), transparent 70%),
    linear-gradient(160deg, #283257 0%, #1b2240 100%);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}
.book-hero::after { /* soft dotted texture */
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0.18;
  background-image: radial-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1.2px);
  background-size: 18px 18px;
  mask-image: linear-gradient(180deg, black, transparent 75%);
}
.book-hero .brand-mark { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 26px; }
.book-hero .brand-mark svg { width: 22px; height: 22px; }
.book-hero .eyebrow { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 10px; font-weight: 600; }
.book-hero h1 { font-size: clamp(30px, 3.6vw, 42px); color: #fff; }
.book-hero p { color: rgba(255, 255, 255, 0.78); margin: 14px 0 0; font-size: 15.5px; }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.hero-points li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255, 255, 255, 0.88); font-size: 14px; }
.hero-points .i { margin-top: 1px; color: var(--accent-2); }
.hero-points .bubble { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.1); flex: none; }
.hero-points li > div { padding-top: 5px; }
.hero-address { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 13px; color: rgba(255, 255, 255, 0.65); display: flex; gap: 8px; }
@media (max-width: 900px) {
  .book-hero { position: static; padding: 22px 20px; }
  .book-hero .brand-mark { width: 38px; height: 38px; margin-bottom: 14px; }
  .book-hero h1 { font-size: 27px; }
  .book-hero > p { display: none; }
  .hero-points { gap: 8px; margin-top: 16px; }
  .hero-points li { font-size: 13px; align-items: center; }
  .hero-points li > div { padding-top: 0; }
  .hero-points .bubble { width: 28px; height: 28px; }
  .hero-address { margin-top: 16px; padding-top: 14px; }
  .card { padding: 18px; }
  .progress span { padding: 7px 6px; font-size: 12.5px; }
}

/* progress */
.progress { display: flex; gap: 6px; margin: 2px 0 16px; padding: 5px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm); }
.progress span { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 10px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--muted); transition: background 0.25s, color 0.25s; }
.progress span b { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: var(--surface-3); color: var(--muted); transition: inherit; }
.progress span.active { background: var(--brand); color: #fff; }
.progress span.active b { background: var(--accent); color: #fff; }
.progress span.done { color: var(--ok); }
.progress span.done b { background: var(--ok-soft); color: var(--ok); }
@media (prefers-color-scheme: dark) { .progress span.active { background: var(--brand-2); } }

.step { margin-bottom: 16px; animation: fadeUp 0.35s cubic-bezier(.2,.8,.2,1); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }
.step-title { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
.step-title h2 { font-size: 21px; flex: 1; }
.step-title .picked { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.linkish { background: none; border: none; padding: 0; color: var(--accent); font: 600 13px var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -2px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.chip {
  flex: none; scroll-snap-align: start;
  border: 1px solid var(--line); background: var(--surface-2); border-radius: 12px;
  padding: 10px 12px; min-width: 70px; text-align: center; cursor: pointer;
  font: inherit; color: var(--ink);
  transition: border-color 0.15s, background 0.15s, transform 0.12s, box-shadow 0.15s;
}
.chip:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.chip[aria-pressed='true'] { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(34, 43, 72, 0.3); }
@media (prefers-color-scheme: dark) { .chip[aria-pressed='true'] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); } }
.chip .d1 { font-size: 11px; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.chip .d2 { font-size: 22px; font-family: var(--serif); line-height: 1.25; }
.chip .d3 { font-size: 12px; opacity: 0.7; }
.chip .dots { display: flex; justify-content: center; gap: 3px; margin-top: 4px; }
.chip .dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--ok); opacity: 0.8; }
.chip[aria-pressed='true'] .dots i { background: currentColor; }

.slot-group + .slot-group { margin-top: 16px; }
.slot-group h3 { font: 600 12px var(--sans); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 0 0 8px; display: flex; align-items: center; gap: 6px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.slots .chip { min-width: 0; padding: 11px 8px; font-weight: 600; font-variant-numeric: tabular-nums; }

.success { text-align: center; padding: 40px 24px; }
.success .tick { width: 68px; height: 68px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; margin: 0 auto 18px; animation: popIn 0.45s cubic-bezier(.2,1.4,.4,1); }
.success .tick svg { width: 32px; height: 32px; stroke-width: 2.6; }
@keyframes popIn { from { transform: scale(0.4); opacity: 0; } }
.success h2 { font-size: 30px; }
.summary { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 6px 18px; text-align: left; margin: 22px auto; max-width: 400px; }
.summary div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.summary div:last-child { border-bottom: none; }
.summary span:first-child { color: var(--muted); }
.summary span:last-child { font-weight: 600; text-align: right; }
.ref { font-family: ui-monospace, Menlo, monospace; letter-spacing: 0.1em; }

.footer { text-align: center; color: var(--muted); font-size: 13px; padding: 8px 16px 40px; }

/* ==========================================================================
   Staff dashboards
   ========================================================================== */
.staff { min-height: 100vh; }
.dash { padding-top: 26px; padding-bottom: 72px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.toolbar h1 { font-size: 30px; }
.toolbar .actions-right { display: flex; gap: 8px; flex-wrap: wrap; }
.date-nav { display: flex; align-items: center; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); }
.date-nav .btn-ghost { border-color: transparent; background: transparent; }
.date-nav .btn-ghost:hover { background: var(--surface-3); }
.date-nav input { width: auto; padding: 6px 8px; border: none; background: transparent; font-size: 14px; }
.date-nav input:focus { box-shadow: none; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-sm); display: flex; gap: 14px; align-items: center; }
.stat .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--surface-3); color: var(--ink-2); }
.stat.s-waiting .ico { background: var(--warn-soft); color: var(--warn); }
.stat.s-with .ico { background: var(--info-soft); color: var(--info); }
.stat.s-done .ico { background: var(--ok-soft); color: var(--ok); }
.stat .n { font-family: var(--serif); font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .l { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat .ico { width: 36px; height: 36px; } }

.call-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background:
    radial-gradient(400px 200px at 100% 0%, rgba(255, 255, 255, 0.22), transparent 70%),
    linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff; border-radius: var(--radius-lg);
  padding: 20px 24px; margin-bottom: 20px; box-shadow: 0 12px 30px rgba(181, 128, 58, 0.35);
  animation: pulse 1.6s ease-in-out 3;
}
.call-banner .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.9; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.call-banner .nm { font-family: var(--serif); font-size: 28px; margin-top: 2px; }
.call-banner .btn { background: #fff; color: #7a531f; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12); }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(181, 128, 58, 0.2), 0 12px 30px rgba(181, 128, 58, 0.35); } }

.blocked-note.info { background: var(--info-soft); color: var(--info); }
.blocked-note { display: flex; gap: 10px; align-items: center; background: var(--warn-soft); color: var(--warn); padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-size: 14px; font-weight: 500; }

.list-card { padding: 0; overflow: hidden; }
.appt-list { display: grid; }
.appt {
  position: relative;
  display: grid; grid-template-columns: 84px 40px 1fr auto; gap: 14px; align-items: center;
  padding: 15px 18px 15px 20px; border-bottom: 1px solid var(--line);
  transition: background 0.15s;
}
.appt:hover { background: var(--surface-2); }
.appt:last-child { border-bottom: none; }
.appt::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--line-strong); }
.appt[data-status='waiting']::before { background: var(--warn); }
.appt[data-status='called']::before { background: var(--accent); }
.appt[data-status='with_pastor']::before { background: var(--info); }
.appt[data-status='completed']::before { background: var(--ok); }
.appt[data-status='pending']::before { background: var(--info); opacity: 0.7; }
.appt[data-status='cancelled']::before, .appt[data-status='no_show']::before, .appt[data-status='declined']::before { background: var(--danger); opacity: 0.6; }
.appt[data-status='called'] { background: color-mix(in srgb, var(--accent-soft) 55%, transparent); }
.appt .time { font-family: var(--serif); font-size: 18px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.appt .name { font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.appt .meta { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 3px; }
.appt .meta a { color: inherit; }
.appt .reason { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; font-style: italic; }
.appt .reason.note { font-style: normal; color: var(--muted); }
.appt .actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: center; }
.appt.dim .time, .appt.dim .name, .appt.dim .avatar { opacity: 0.55; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font: 600 14px var(--sans); letter-spacing: 0.02em;
  color: var(--av-ink, #fff); background: var(--av, var(--brand-2));
}
@media (max-width: 760px) {
  .appt { grid-template-columns: 40px 1fr; padding-left: 16px; }
  .appt .time { grid-column: 2; grid-row: 1; font-size: 15px; color: var(--muted); }
  .appt .avatar { grid-row: 1 / span 2; align-self: start; }
  .appt > div:nth-child(3) { grid-column: 2; }
  .appt .actions { grid-column: 1 / -1; justify-content: flex-start; }
}
.empty { text-align: center; color: var(--muted); padding: 48px 16px; display: grid; justify-items: center; gap: 10px; }
.empty .i { width: 30px; height: 30px; opacity: 0.5; }

.menu { position: relative; }
.menu-list { position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); min-width: 200px; padding: 6px; z-index: 20; animation: pop 0.15s ease-out; }
.menu-list button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: none; padding: 9px 10px; border-radius: 8px; font: 14px var(--sans); color: var(--ink); cursor: pointer; }
.menu-list button:hover { background: var(--surface-3); }
.menu-list button.danger { color: var(--danger); }

/* Pastor view */
.pastor-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 900px) { .pastor-grid { grid-template-columns: minmax(0, 1fr); } }
.now-card {
  position: sticky; top: 88px;
  padding: 32px; border: none; color: #fff; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(420px 260px at 100% 0%, rgba(214, 165, 96, 0.32), transparent 70%),
    radial-gradient(360px 300px at 0% 100%, rgba(83, 101, 170, 0.4), transparent 70%),
    linear-gradient(160deg, #283257 0%, #1b2240 100%);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
}
@media (max-width: 900px) { .now-card { position: static; } }
.now-card .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent-2); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.now-card .lbl .live { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 0 rgba(214, 165, 96, 0.6); animation: live 1.8s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 10px rgba(214, 165, 96, 0); } 100% { box-shadow: 0 0 0 0 rgba(214, 165, 96, 0); } }
.now-card .who-now { display: flex; align-items: center; gap: 16px; margin: 14px 0 6px; }
.now-card .avatar { width: 56px; height: 56px; font-size: 19px; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15); }
.now-card .nm { font-family: var(--serif); font-size: 36px; line-height: 1.1; }
.now-card .muted { color: rgba(255, 255, 255, 0.65); }
.now-card .reason-box { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.1); border-left: 3px solid var(--accent-2); padding: 14px 16px; border-radius: 10px; margin: 20px 0 10px; font-size: 15.5px; font-family: var(--serif); font-style: italic; color: rgba(255, 255, 255, 0.92); }
.now-card .reason-box.muted { font-style: normal; font-family: var(--sans); font-size: 14px; }
.now-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.now-card .btn-ghost { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.2); }
.now-card .btn-ghost:hover { background: rgba(255, 255, 255, 0.16); }
.now-card .btn-danger-ghost { color: #ffb4a8; }
.now-card .btn-danger-ghost:hover { background: rgba(255, 120, 100, 0.12); }
.now-card .btn-ok { color: #fff; }
.idle { text-align: center; padding: 20px 6px; }
.idle .glyph { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); color: var(--accent-2); }
.idle .glyph svg { width: 28px; height: 28px; }
.idle .big { font-family: var(--serif); font-size: 30px; margin-bottom: 8px; color: #fff; }
.idle p { color: rgba(255, 255, 255, 0.72); max-width: 360px; margin: 0 auto 22px; }
.idle p b { color: #fff; }
.section-title { display: flex; justify-content: space-between; align-items: baseline; margin: 0 2px 10px; }
.section-title h2 { font-size: 19px; }
.section-title .muted { font-size: 13px; }
.pastor-grid .list-card { margin-bottom: 22px; }
.pastor-grid .list-card .appt { grid-template-columns: 70px 36px 1fr auto; padding-top: 12px; padding-bottom: 12px; }
.pastor-grid .list-card .avatar { width: 36px; height: 36px; font-size: 13px; }
@media (max-width: 760px) { .pastor-grid .list-card .appt { grid-template-columns: 36px 1fr auto; } .pastor-grid .list-card .appt .time { grid-column: 2; } }

/* Settings */
.hours-row { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hours-row:last-child { border-bottom: none; }
.ranges { display: grid; gap: 6px; }
.range { display: flex; gap: 8px; align-items: center; }
.range input { padding: 8px 9px; width: auto; flex: 1; min-width: 0; }
.blocked-list { list-style: none; padding: 0; margin: 12px 0 0; }
.blocked-list li { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.section-head { font-size: 18px; margin: 14px 0 4px; }

/* ==========================================================================
   Sign-in
   ========================================================================== */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 48px; color: #fff; display: flex; flex-direction: column; justify-content: space-between;
  background:
    radial-gradient(520px 320px at 100% 0%, rgba(214, 165, 96, 0.35), transparent 70%),
    radial-gradient(480px 380px at 0% 100%, rgba(83, 101, 170, 0.45), transparent 70%),
    linear-gradient(160deg, #283257 0%, #161c35 100%);
}
.auth-side::after { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0.16; background-image: radial-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1.2px); background-size: 18px 18px; mask-image: linear-gradient(180deg, black, transparent 80%); }
.auth-side h2 { font-size: 40px; max-width: 420px; color: #fff; }
.auth-side p { color: rgba(255, 255, 255, 0.72); max-width: 380px; }
.auth-main { display: grid; place-items: center; padding: 32px 16px; }
.auth-card { width: min(400px, 100%); }
.auth-card h1 { font-size: 32px; margin-bottom: 6px; }
@media (max-width: 860px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* ---------- Language picker ---------- */
.lang-select {
  width: auto;
  min-width: 140px;
  padding: 8px 40px 8px 36px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 999px;
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23736b60' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23736b60' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: left 13px center, right 15px center;
  background-size: 16px, 15px;
  box-shadow: var(--shadow-sm);
}
@media (prefers-color-scheme: dark) { .lang-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a39b8f' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a39b8f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); } }
.topbar .lang-select {
  background-color: rgba(255, 255, 255, 0.06);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffffcc' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffffcc' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  color: var(--brand-ink); border-color: rgba(255, 255, 255, 0.18); box-shadow: none;
}
.topbar .lang-select:hover { background-color: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.3); }
.topbar .lang-select option { color: #1f1b16; background: #fff; }
.lang-tag { font-size: 11px; font-weight: 600; color: var(--info); background: var(--info-soft); padding: 1px 8px; border-radius: 999px; }
@media (max-width: 600px) { .hide-sm { display: none !important; } }

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

/* ---------- Visit order ---------- */
.list-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 20px 8px; font: 600 12px var(--sans); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line); }
.appt .time { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.qpos { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 7px; border-radius: 999px; font: 700 12px var(--sans); background: var(--brand); color: #fff; letter-spacing: 0; }
@media (prefers-color-scheme: dark) { .qpos { background: var(--accent); color: var(--accent-ink); } }
.qpos.now { background: var(--accent); }
.mover { display: inline-flex; flex-direction: column; border: 1px solid var(--line-strong); border-radius: 9px; overflow: hidden; background: var(--surface); }
.mover button { display: grid; place-items: center; width: 30px; height: 18px; border: none; background: none; color: var(--muted); cursor: pointer; padding: 0; }
.mover button + button { border-top: 1px solid var(--line); }
.mover button:hover:not(:disabled) { background: var(--accent-soft); color: var(--accent); }
.mover button:disabled { opacity: 0.25; cursor: default; }
.mover svg { width: 14px; height: 14px; stroke-width: 2.4; }
.appt.moving { animation: nudge 0.35s ease; }
@keyframes nudge { 0% { background: var(--accent-soft); } 100% { background: transparent; } }
@media (max-width: 760px) { .appt .time { flex-direction: row; align-items: center; gap: 8px; } }

/* ---------- Booking requests (pastor) ---------- */
.requests { margin-bottom: 22px; }
.requests .card { padding: 0; overflow: hidden; border-color: color-mix(in srgb, var(--info) 30%, var(--line)); }
.request { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.request:last-child { border-bottom: none; }
.request .when { font-weight: 600; color: var(--ink-2); font-size: 14px; display: flex; align-items: center; gap: 6px; }
.request .who { font-weight: 600; }
.request .meta { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 2px; }
.request .reason { font-size: 13.5px; font-style: italic; color: var(--ink-2); margin-top: 6px; }
.request .actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.count-badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--info); color: #fff; font: 700 12px var(--sans); margin-left: 8px; vertical-align: 3px; }
@media (prefers-color-scheme: dark) { .count-badge { color: #0d1a2b; } }
@media (max-width: 760px) { .request { grid-template-columns: 40px 1fr; } .request .actions { grid-column: 1 / -1; justify-content: flex-start; } }

/* ---------- Switch ---------- */
.switch { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); cursor: pointer; margin: 6px 0 18px; }
.switch input { appearance: none; -webkit-appearance: none; flex: none; width: 42px; height: 24px; border-radius: 999px; background: var(--line-strong); position: relative; cursor: pointer; transition: background 0.2s; margin: 1px 0 0; padding: 0; border: none; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.25); transition: transform 0.2s; }
.switch input:checked { background: var(--ok); }
.switch input:checked::after { transform: translateX(18px); }
.switch b { display: block; font-size: 14px; color: var(--ink); margin-bottom: 2px; }
.switch span { font-size: 13px; color: var(--muted); font-weight: 400; }

/* ---------- Month calendar (booking page) ---------- */
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.cal-title { font-family: var(--serif); font-size: 19px; }
.cal-nav { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.cal-nav:hover:not(:disabled) { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.cal-nav:disabled { opacity: 0.3; cursor: default; }
.cal-nav:focus-visible { outline: none; box-shadow: var(--ring); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-dow { margin-bottom: 6px; }
.cal-dow span { text-align: center; font: 600 11px var(--sans); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding: 4px 0; }
.cal-day { position: relative; aspect-ratio: 1 / 0.9; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: inherit; min-width: 0; }
.cal-day .n { font-family: var(--serif); font-size: 18px; line-height: 1; font-variant-numeric: tabular-nums; }
.cal-day .left { font-size: 10.5px; font-weight: 600; color: var(--ok); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; padding: 0 2px; }
.cal-day.blank { visibility: hidden; }
.cal-day.off { color: var(--muted); opacity: 0.38; background: repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--line) 60%, transparent) 6px 7px); }
.cal-day.open { border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; transition: transform 0.12s, border-color 0.15s, box-shadow 0.15s, background 0.15s; }
.cal-day.open:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.cal-day.open:focus-visible { outline: none; box-shadow: var(--ring); }
.cal-day.open[aria-pressed='true'] { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(34, 43, 72, 0.3); }
.cal-day.open[aria-pressed='true'] .left { color: rgba(255, 255, 255, 0.8); }
@media (prefers-color-scheme: dark) { .cal-day.open[aria-pressed='true'] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); } .cal-day.open[aria-pressed='true'] .left { color: var(--accent-ink); } }
.cal-day.today .n::after { content: ''; display: block; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); margin: 3px auto 0; }
.cal-msg { grid-column: 1 / -1; text-align: center; padding: 18px 8px; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; font-size: 12px; color: var(--muted); }
.cal-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend .sw { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.cal-legend .sw.open { border: 1px solid var(--line-strong); background: var(--surface); }
.cal-legend .sw.closed { background: var(--line); opacity: 0.8; }
.cal-legend .sw.sel { background: var(--brand); }
@media (prefers-color-scheme: dark) { .cal-legend .sw.sel { background: var(--accent); } }
@media (max-width: 480px) {
  .cal-grid { gap: 4px; }
  .cal-day { border-radius: 10px; aspect-ratio: 1 / 1; }
  .cal-day .n { font-size: 16px; }
  .cal-day .left { display: none; }
  .cal-day.open::after { content: ''; position: absolute; bottom: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--ok); }
  .cal-day.open[aria-pressed='true']::after { background: currentColor; }
}

/* ---------- Booking hero with the pastor's photo ---------- */
/* The photo is cropped from its top-right corner so the ministry logo always stays visible. */
.book-hero.has-photo {
  padding: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: min(820px, max(760px, calc(100vh - 90px)));
  background: #1b2036;
}
.book-hero.has-photo::after { display: none; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 96% 0; z-index: -2; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(14, 18, 34, 0.18) 0%, rgba(14, 18, 34, 0) 14%, rgba(14, 18, 34, 0) 44%, rgba(14, 18, 34, 0.72) 62%, rgba(14, 18, 34, 0.95) 100%),
    radial-gradient(500px 300px at 0% 100%, rgba(214, 165, 96, 0.22), transparent 70%);
}
.hero-top { position: absolute; top: 20px; left: 20px; display: flex; align-items: center; gap: 10px; }
.hero-chip {
  padding: 7px 13px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #fff;
  background: rgba(20, 26, 48, 0.62); border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero-body { position: relative; padding: 30px 30px 32px; }
.hero-body h1 { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35); }
.hero-body .hero-points { margin-top: 22px; gap: 12px; }
.hero-body .hero-points .bubble { background: rgba(255, 255, 255, 0.12); backdrop-filter: blur(6px); }
@media (max-width: 1200px) { .hero-body > p { display: none; } }
@media (max-width: 900px) {
  /* On phones the panel takes the photo's own 2:3 shape (capped), so nothing important is cropped. */
  .book-hero.has-photo { position: relative; min-height: 0; aspect-ratio: 3 / 5; max-height: 760px; }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(14, 18, 34, 0.18) 0%, rgba(14, 18, 34, 0) 12%, rgba(14, 18, 34, 0) 38%, rgba(14, 18, 34, 0.82) 56%, rgba(14, 18, 34, 0.97) 100%),
      radial-gradient(400px 260px at 0% 100%, rgba(214, 165, 96, 0.22), transparent 70%);
  }
  .hero-body > p { display: none; }
  .hero-body { padding: 20px 20px 22px; }
  .hero-top { top: 14px; left: 14px; }
}
@media (max-width: 480px) {
  .hero-body h1 { font-size: 25px; }
  .hero-body .hero-points { margin-top: 14px; gap: 8px; }
}

/* Progress bar on narrow phones: only the current step keeps its label. */
.progress span { min-width: 0; }
.progress span > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 420px) {
  .progress span:not(.active) { flex: 0 0 auto; padding: 7px 10px; }
  .progress span:not(.active) > span { display: none; }
}
