/* Airline Pilot Logbook Printing Co. — Customer portal
   Theme matched to the main site: navy (#0B1F3A), gold (#C4A35A),
   cream (#F7F4EE) on white. Pill buttons, sticky white header,
   navy footer. Shared by every portal page. */

/* The `hidden` attribute must always win: button classes like .btn set
   their own display, which would otherwise override it. */
[hidden] {
  display: none !important;
}

:root {
  --navy: #0B1F3A;
  --navy-deep: #071528;
  --gold: #C4A35A;
  --gold-hover: #D4B56E;
  --gold-muted: rgba(196, 163, 90, 0.15);
  --white: #FFFFFF;
  --cream: #F7F4EE;
  --paper: #FFFFFF;
  --charcoal: #2C2C2C;
  --muted: #5A5A5A;
  --line: #E5E1D8;
  --radius: 12px;

  --pill-ok: #2e7d4f;
  --pill-action: #f97316;
  --pill-problem: #b3261e;
  --pill-default: #5A5A5A;

  --focus: #C4A35A;
  --shadow: 0 8px 30px rgba(11, 31, 58, 0.08);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--charcoal);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--navy);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
a:hover { color: var(--gold); }

/* ---------- Header (sticky white, logo like the main site) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 1.25rem;
}
.site-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
  text-decoration: none;
}
.logo-mark {
  height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  flex-shrink: 0;
}
/* Header buttons match the main site's header button size exactly */
.site-header .btn-sm { padding: 0.55rem 1.1rem; font-size: 0.875rem; }
.wordmark {
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: 1.05rem;
  color: var(--navy);
  text-decoration: none;
}
.wordmark:hover { color: var(--gold); text-decoration: none; }
.header-tag {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.header-email {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Layout ---------- */
.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3rem;
}
.wrap-narrow { max-width: 520px; }

h1 { font-size: 1.6rem; margin: 0 0 0.5rem; color: var(--navy); }
h2 { font-size: 1.15rem; margin: 1.75rem 0 0.5rem; color: var(--navy); }
p { margin: 0.5rem 0; }
.sub { color: var(--muted); font-size: 0.95rem; }
.signin-paths { margin: 0 0 1.25rem; }
.signin-paths p { color: var(--muted); font-size: 0.95rem; margin: 0 0 0.6rem; }
.signin-paths p strong:first-child { color: var(--ink); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; }

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1rem 0;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 0.35rem; font-size: 1.05rem; color: var(--navy); }
.card-link { text-decoration: none; color: inherit; display: block; }
.card-link:hover { border-color: var(--gold); }
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ---------- Status pills ---------- */
.pill {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--pill-default);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  white-space: nowrap;
}
/* ---------- Admin header dropdown ---------- */
.dropdown { position: relative; display: inline-block; }
.dropdown-toggle::after { content: " ▾"; font-size: 0.8em; }
.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(60, 40, 10, 0.16);
  padding: 0.35rem;
  z-index: 200;
}
.dropdown-menu[hidden] { display: none; }
.dropdown-menu a {
  display: block;
  padding: 0.6rem 0.9rem;
  border-radius: 7px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
}
.dropdown-menu a:hover { background: #f6f1e7; }
.dropdown-menu a.active { font-weight: 700; background: #f6f1e7; }
.dropdown-sep { border-top: 1px solid var(--line); margin: 0.35rem 0; }

/* ---------- Attention dashboard ---------- */
.attn-group { margin: 0 0 1.25rem; }
.attn-group:last-child { margin-bottom: 0; }
.attn-group > h4 { margin: 0 0 0.6rem; font-size: 1rem; }
.attn-item {
  border: 1px solid var(--line);
  border-left: 4px solid var(--pill-action);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  margin: 0 0 0.6rem;
}
.attn-item.cleared { border-left-color: var(--pill-ok); }
.attn-item .btn-row { margin-top: 0.5rem; }

/* Status pills: green = all normal, nothing for the viewer to do;
   orange = the viewer needs to do something; red = a problem.
   (Customer and admin views use the same colors with the viewer flipped:
   e.g. proof_ready is orange for the customer, calm for the admin.) */
.pill.confirmed, .pill.paid, .pill.proof_approved, .pill.in_production,
.pill.shipped, .pill.delivered, .pill.approved, .pill.changes_requested,
.pill.proof_preparing, .pill.with_customer {
  background: var(--pill-ok);
}
.pill.pending_payment, .pill.proof_pending, .pill.pending,
.pill.needs_format, .pill.changes_needed,
.pill.proof_ready {
  background: var(--pill-action);
}
.pill.awaiting_proof {
  background: var(--gold);
  color: var(--navy);
}
.pill.cancelled, .pill.refunded, .pill.failed {
  background: var(--pill-problem);
}

/* ---------- Interview update pages ---------- */
.update-card {
  border: 1px solid var(--line, #E7E2D6);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  margin: 0 0 1rem;
  background: #FDFCF9;
}
.update-card .card-top { margin-bottom: 0.25rem; }
.update-card .meta { margin: 0 0 0.5rem; }

/* ---------- Order books (dashboard cards + details) ---------- */
.book-line {
  display: grid;
  grid-template-columns: 5.5rem 1fr auto auto;
  gap: 0.5rem;
  align-items: center;
  margin: 0.35rem 0;
  line-height: 1.5;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line, #E5E7EB);
}
.book-line:last-child { border-bottom: none; }
.book-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft, #6B7280);
}
.book-airline { font-weight: 700; color: var(--navy); }
.book-date { color: var(--ink-soft, #6B7280); white-space: nowrap; }
.book-line .pill { justify-self: end; }
.dot { color: var(--ink-soft, #6B7280); margin: 0 0.15rem; }

/* ---------- Visual timeline (order details) ---------- */
.timeline { position: relative; margin: 0.5rem 0 0; padding: 0; list-style: none; }
.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold, #C4A35A), var(--line, #E7E2D6));
  border-radius: 1px;
}
.timeline li {
  position: relative;
  padding: 0 0 1.4rem 2.75rem;
  line-height: 1.5;
}
.timeline li:last-child { padding-bottom: 0.25rem; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold, #C4A35A);
  border: 4px solid #fff;
  box-shadow: 0 0 0 2px var(--gold, #C4A35A), 0 2px 6px rgba(0,0,0,0.12);
}
.timeline li::after {
  content: "✓";
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--navy, #1B2A4A);
}
.timeline li.pending::before {
  background: #fff;
  box-shadow: 0 0 0 2px var(--line, #E7E2D6);
}
.timeline li.pending::after { content: none; }
.timeline li.pending strong { color: var(--ink-soft, #9AA0AA); font-weight: 500; }
.timeline li strong { font-size: 1rem; }
.timeline .tl-date { display: block; font-size: 0.85rem; color: var(--ink-soft, #6B7280); margin-top: 0.15rem; }
.timeline li.pending .tl-date { font-style: italic; }

/* ---------- Proofs (order details) ---------- */
.proof-item {
  border: 1px solid var(--line, #E7E2D6);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  margin: 0 0 1rem;
  background: #FDFCF9;
}
.proof-item:last-child { margin-bottom: 0; }
.proof-item .btn-row { margin: 0.6rem 0 0; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.proof-changes-form { margin-top: 0.8rem; }
.proof-changes-form textarea {
  width: 100%;
  border: 1px solid var(--line, #E7E2D6);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  font: inherit;
  resize: vertical;
}

/* ---------- Buttons (pill, gold primary like the main site) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--gold);
  color: var(--navy);
  border: 2px solid var(--gold);
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
  color: var(--navy);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-ghost:hover { background: var(--cream); border-color: var(--navy); color: var(--navy); }
/* btn-ghost-dark — exact match to the main site's secondary button (privacy/terms pages). */
.btn-ghost-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-ghost-dark:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: var(--cream);
}
/* Sign out — small quiet outline pill for the white header. */
.btn-outline-cream {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--line);
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  border-radius: 999px;
  font-weight: 600;
}
.btn-outline-cream:hover { background: var(--cream); border-color: var(--navy); color: var(--navy); }
.btn-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.page-head h1 { margin-bottom: 0.25rem; }
.page-head .btn { flex-shrink: 0; margin-top: 0.25rem; }
.btn-block { display: block; width: 100%; }
.btn-lg { padding: 1rem 1.75rem; font-size: 1.05rem; }

/* ---------- Forms ---------- */
.field { margin: 1rem 0; }
.field-row { display: grid; gap: 0 1rem; grid-template-columns: 1fr 1fr; }
.field-row .field { margin: 0.75rem 0; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; margin-bottom: 0.35rem; color: var(--navy); }
.opt { font-weight: 400; color: var(--muted); font-size: 0.9em; }
input[type="email"], input[type="text"], input[type="tel"], input[type="date"], select, textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--charcoal);
}
input:focus, textarea:focus, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
textarea { min-height: 110px; resize: vertical; }
.hint { font-size: 0.88rem; color: var(--muted); margin-top: 0.4rem; }
.divider { display: flex; align-items: center; gap: 0.75rem; margin: 1.25rem 0 1rem; color: var(--muted); font-size: 0.85rem; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.passkey-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; border-top: 1px solid var(--line); }
.passkey-row:first-child { border-top: none; }
.btn-small { padding: 0.35rem 0.8rem; font-size: 0.85rem; }

/* ---------- Alerts / states ---------- */
.alert {
  border: 1px solid var(--line);
  border-left: 4px solid var(--pill-default);
  border-radius: 8px;
  background: var(--paper);
  padding: 0.9rem 1rem;
  margin: 1rem 0;
}
.alert.error { border-left-color: #b3382e; }
.alert.action { border-left-color: var(--pill-action); }
.alert.ok { border-left-color: var(--pill-ok); }
.alert p { margin: 0.25rem 0; }

.spinner {
  width: 34px; height: 34px;
  border: 4px solid var(--line);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 2rem auto 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
.center { text-align: center; }

/* ---------- Lists: books, proofs ---------- */
.list-reset { list-style: none; margin: 0.5rem 0; padding: 0; }
.list-reset li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}
.list-reset li:last-child { border-bottom: 0; }
.meta { color: var(--muted); font-size: 0.9rem; }

table.books {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0;
  font-size: 0.95rem;
}
table.books th, table.books td {
  text-align: left;
  padding: 0.55rem 0.5rem;
  border-bottom: 1px solid var(--line);
}
table.books th { color: var(--muted); font-weight: 600; font-size: 0.85rem; }

.kv { display: grid; grid-template-columns: 130px 1fr; gap: 0.25rem 1rem; margin: 0.75rem 0; }
.kv dt { color: var(--muted); font-size: 0.9rem; }
.kv dd { margin: 0; font-weight: 600; color: var(--navy); }

/* ---------- Timeline (vertical) ---------- */
.timeline { list-style: none; margin: 1rem 0; padding: 0; }
.timeline li {
  position: relative;
  padding: 0 0 1.25rem 1.75rem;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 6px; top: 6px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--navy);
}
.timeline li::after {
  content: "";
  position: absolute;
  left: 10px; top: 20px; bottom: 0;
  width: 2px;
  background: var(--line);
}
.timeline li:last-child::after { display: none; }
.timeline .t-label { font-weight: 700; color: var(--navy); }
.timeline .t-sub { font-size: 0.9rem; color: var(--muted); }
.timeline .t-at { font-size: 0.82rem; color: var(--muted); }

/* ---------- Proof callout ---------- */
.proof-callout {
  background: var(--cream);
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  margin-top: 0.9rem;
}
.proof-callout strong { color: var(--navy); }

/* ---------- PDF embed ---------- */
.pdf-frame {
  width: 100%;
  height: 65vh;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.pdf-fallback { margin-top: 0.5rem; font-size: 0.9rem; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; padding: 0; margin: 0.75rem 0; }
.checklist li {
  padding: 0.5rem 0 0.5rem 2rem;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: "☐";
  position: absolute;
  left: 0.25rem;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Interactive checklist (proof approval): real checkboxes instead of the
   decorative box glyph, so every item must be explicitly checked. */
.checklist-interactive li { padding-left: 0.25rem; }
.checklist-interactive li::before { content: none; }
.checklist-interactive label {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  cursor: pointer;
}
.checklist-interactive input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  flex: 0 0 auto;
  accent-color: var(--gold);
  cursor: pointer;
}
.checklist-hint {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0.25rem 0 0.75rem;
}

/* ---------- Demo banner ---------- */
.demo-banner {
  background: repeating-linear-gradient(
    -45deg,
    #e8590c, #e8590c 18px,
    #0B1F3A 18px, #0B1F3A 36px
  );
  color: #fff;
  text-align: center;
  padding: 0.85rem 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.demo-note {
  background: var(--cream);
  border-bottom: 1px solid var(--gold);
  padding: 0.6rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--charcoal);
}

/* ---------- Footer (identical to the main site footer) ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.75);
  border-top: 1px solid rgba(196, 163, 90, 0.2);
  margin-top: 2rem;
  padding: 2.5rem 0 2rem;
}
.footer-inner {
  width: min(100% - 2rem, 1120px);
  margin-inline: auto;
  display: grid;
  gap: 1.5rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.footer-logo {
  height: 56px;
  width: auto;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
}
.footer-name {
  margin: 0;
  font-weight: 650;
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.3;
}
.footer-tag {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: var(--gold);
  text-transform: uppercase;
}
.footer-contact p {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
}
.footer-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.15rem;
}
.footer-contact a {
  color: var(--white);
  text-decoration: none;
}
.footer-contact a:hover {
  color: var(--gold);
}
.footer-legal {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}
.footer-legal a {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-copy {
  margin: 0.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}
@media (min-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .footer-copy {
    grid-column: 1 / -1;
  }
}
@media (min-width: 960px) {
  .footer-inner {
    grid-template-columns: 1.4fr 1fr auto;
    align-items: center;
  }
  .footer-copy {
    grid-column: auto;
    border-top: none;
    padding-top: 0;
    margin: 0;
    text-align: right;
  }
}
.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--navy);
  font-size: 0.95rem;
}
.back-link:hover { color: var(--gold); }

/* ---------- Order form ---------- */
.steps {
  list-style: none;
  margin: 1.25rem 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
}
.steps li { flex: 1; min-width: 0; }
.steps .step-static, .steps button[data-goto] {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  width: 100%;
  background: none;
  border: 0;
  padding: 0.25rem 0;
  font: inherit;
  color: var(--muted);
  cursor: default;
  text-align: center;
}
.steps button[data-goto] { cursor: pointer; }
.steps .n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--muted);
}
.steps .t { font-size: 0.72rem; line-height: 1.25; }
.steps li.current .n { border-color: var(--gold); background: var(--gold); color: var(--navy); }
.steps li.current .t { color: var(--navy); font-weight: 700; }
.steps li.done .n { border-color: var(--navy); background: var(--navy); color: #fff; }
.steps button[data-goto]:hover .n { border-color: var(--gold); }

.step-panel h2 { margin-top: 0.5rem; }
.price-line {
  background: var(--cream);
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-weight: 600;
  color: var(--navy);
}
.price-line span { font-weight: 400; color: var(--muted); }

.choice-group { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.25rem 0 0.5rem; }
.choice { margin: 0; }
.choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.choice span {
  display: inline-block;
  padding: 0.55rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--charcoal);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.choice span:hover { border-color: var(--gold); }
.choice input:checked + span { border-color: var(--navy); background: var(--navy); color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

.prior-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 0.9rem; margin-top: 0.5rem; }
@media (min-width: 560px) { .prior-grid { grid-template-columns: 1fr 1fr 1fr; } }
.prior-cell label { font-size: 0.82rem; font-weight: 600; margin-bottom: 0.2rem; }
.prior-cell input { padding: 0.55rem 0.65rem; font-size: 0.95rem; }

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

.progress {
  height: 10px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.75rem;
}
.progress i { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 999px; transition: width 0.2s ease; }

.check { display: flex; gap: 0.65rem; align-items: flex-start; font-weight: 400; color: var(--charcoal); cursor: pointer; }
.check input { width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; flex-shrink: 0; accent-color: var(--navy); }

.field-invalid input, .field-invalid select, .field-invalid textarea { border-color: #b3382e; }
#form-error ul { margin: 0.4rem 0 0.2rem; padding-left: 1.25rem; }
#form-error li { margin: 0.2rem 0; }

.review-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.review-label { font-weight: 700; color: var(--navy); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
.review-edit {
  background: none;
  border: 0;
  padding: 0.2rem 0;
  font: inherit;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  flex-shrink: 0;
}
.review-edit:hover { color: var(--gold); }
tr.total-row td { border-bottom: 0; font-size: 1.05rem; }

.next-steps { margin: 0.5rem 0 1rem; padding-left: 1.4rem; }
.next-steps li { margin: 0.4rem 0; }
.next-steps li::marker { color: var(--gold); font-weight: 700; }

.step-nav { margin-top: 1.5rem; }
.step-nav .btn { flex: 1; }
@media (min-width: 560px) { .step-nav .btn { flex: 0 1 auto; } .step-nav #next-btn { margin-left: auto; } }

@media (max-width: 520px) {
  h1 { font-size: 1.35rem; }
  .kv { grid-template-columns: 110px 1fr; }
  .header-email { display: none; }
  .pdf-frame { height: 60vh; min-height: 340px; }
}

/* Admin overview: KPIs, charts, record-keeping */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.75rem; margin: 1rem 0; }
.kpi-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow); }
.kpi-value { font-size: 1.7rem; font-weight: 700; color: var(--navy); }
.kpi-label { font-size: 0.8rem; color: var(--muted); margin-top: 0.2rem; }
.chart-row { display: grid; grid-template-columns: 2fr 1fr; gap: 0.75rem; margin: 0 0 1rem; }
@media (max-width: 700px) { .chart-row { grid-template-columns: 1fr; } }
.chart-svg { width: 100%; height: auto; display: block; }
.chart-svg .bar { fill: var(--gold); }
.chart-svg .bar:hover { fill: var(--gold-hover); }
.chart-svg .axis { fill: var(--muted); font-size: 10px; }
.hbar-row { display: flex; align-items: center; gap: 0.6rem; margin: 0.55rem 0; }
.hbar-label { width: 4.2rem; font-size: 0.85rem; color: var(--charcoal); flex: none; }
.hbar-track { flex: 1; background: #EFECE4; border-radius: 4px; height: 14px; overflow: hidden; }
.hbar-fill { background: var(--gold); height: 100%; border-radius: 4px; min-width: 2px; }
.hbar-num { width: 2.2rem; text-align: right; font-size: 0.85rem; color: var(--charcoal); flex: none; }

/* Money ledger */
.filter-row { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: flex-end; }
.filter-row label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.8rem; color: var(--muted); }
.filter-row select, .filter-row input { padding: 0.45rem 0.6rem; border: 1px solid var(--line); border-radius: 8px; font-size: 0.9rem; background: var(--paper); color: var(--charcoal); }
.filter-search { flex: 1; min-width: 10rem; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.75rem; }
.form-grid label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.85rem; color: var(--charcoal); }
.form-grid .span2 { grid-column: span 2; }
.form-grid input, .form-grid select { padding: 0.5rem 0.65rem; border: 1px solid var(--line); border-radius: 8px; font-size: 0.95rem; background: var(--paper); color: var(--charcoal); }
.form-grid .check { flex-direction: row; align-items: center; gap: 0.5rem; }
.amt-rev { color: #1a7a3a; font-weight: 600; }
.amt-exp { color: #b02a2a; font-weight: 600; }
.btn-sm { padding: 0.25rem 0.6rem; font-size: 0.8rem; }

/* ---------- Header nav (mirrors the main site header) ---------- */
.nav-desktop { display: none; margin-left: auto; gap: 1.35rem; align-items: center; }
.nav-desktop a { color: var(--navy); text-decoration: none; font-size: 0.9rem; font-weight: 500; white-space: nowrap; }
.nav-desktop a:hover { color: var(--gold); }
.nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; padding: 8px; border: none; background: transparent; cursor: pointer; border-radius: 8px; flex-shrink: 0; }
.nav-toggle-bar { display: block; height: 2px; width: 100%; background: var(--navy); border-radius: 1px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.nav-mobile { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.5rem 1.25rem 1.25rem; border-top: 1px solid var(--line); background: var(--paper); }
.nav-mobile a:not(.btn) { padding: 0.75rem 0.5rem; color: var(--navy); text-decoration: none; font-weight: 500; }
@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .header-actions { margin-left: 0; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
}

/* Prominent file dropzone (order form, step 2) */
.dropzone {
  display: block;
  border: 2px dashed var(--gold);
  border-radius: 10px;
  background: var(--cream);
  padding: 1.75rem 1rem;
  text-align: center;
  cursor: pointer;
  margin-top: 0.6rem;
}
.dropzone:hover { border-color: var(--gold-hover); }
.dropzone:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.dropzone.drag { border-style: solid; background: #fff; }
.dropzone-title { display: block; font-size: 1.15rem; font-weight: 700; color: var(--navy); }
.dropzone .hint { margin: 0.35rem 0 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Order hub (order-details.html) ---------- */
body.page-order { background: var(--cream); }

/* Full-bleed navy hero band */
.hero-band {
  background: linear-gradient(140deg, #0e2547 0%, var(--navy) 45%, var(--navy-deep) 100%);
  color: #fff;
  border-bottom: 3px solid var(--gold);
}
.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.25rem 2.25rem;
}
.hero-back {
  display: inline-block;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  text-decoration: none;
  margin-bottom: 1.1rem;
}
.hero-back:hover { color: var(--gold); }
.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.35rem;
}
.hero-title {
  margin: 0;
  color: #fff;
  font-size: 2rem;
  letter-spacing: 0.02em;
}
.hero-meta {
  margin: 0.6rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.98rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  align-items: center;
}
.hero-band .pill { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25); }

/* The one next step */
.action-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  margin: 1.25rem 0;
  box-shadow: var(--shadow);
}
.action-card h2 { margin: 0 0 0.3rem; font-size: 1.15rem; }
.action-card p { margin: 0.35rem 0; }
.action-card.calm { border-left-color: var(--pill-ok); }
.action-card.info { border-left-color: var(--navy); }
.action-card .btn-row { margin-top: 0.8rem; }

/* Section eyebrows */
.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9a7b2d;
  margin: 2rem 0 0.15rem;
}
.section-title { margin: 0 0 0.75rem; font-size: 1.3rem; }

/* Journey stepper */
.stepper {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  overflow-x: auto;
  scrollbar-width: thin;
}
.stepper li {
  flex: 1 0 86px;
  min-width: 86px;
  text-align: center;
  position: relative;
  padding: 0 4px;
}
.stepper .s-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin: 0 auto 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  background: #fff;
  border: 2px solid var(--line);
  color: var(--muted);
  position: relative;
  z-index: 1;
}
.stepper li::before {
  content: "";
  position: absolute;
  top: 15px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: var(--line);
  z-index: 0;
}
.stepper li:first-child::before { display: none; }
.stepper li.done .s-dot {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}
.stepper li.done::before { background: var(--gold); }
.stepper li.now .s-dot {
  border-color: var(--navy);
  color: var(--navy);
  box-shadow: 0 0 0 4px rgba(11, 31, 58, 0.12);
}
.stepper li.now::before { background: linear-gradient(to right, var(--gold), var(--line)); }
.stepper .s-label {
  font-size: 0.72rem;
  line-height: 1.3;
  color: var(--muted);
  display: block;
}
.stepper li.done .s-label { color: var(--charcoal); font-weight: 600; }
.stepper li.now .s-label { color: var(--navy); font-weight: 700; }
.stepper .s-when { font-size: 0.68rem; color: var(--muted); display: block; margin-top: 0.1rem; }

/* Hub cards */
.hub-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem;
  margin: 0 0 1rem;
  box-shadow: var(--shadow);
}
.hub-card:last-child { margin-bottom: 0; }

/* Proof cards inside the order */
.proof-card { border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.15rem; margin: 0 0 0.9rem; background: #FDFCF9; }
.proof-card:last-child { margin-bottom: 0; }
.proof-card.ready { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.proof-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.25rem; }
.proof-head h3 { margin: 0; font-size: 1.05rem; color: var(--navy); }
.proof-viewer { margin-top: 0.9rem; }
.proof-frame {
  width: 100%;
  height: 62vh;
  min-height: 380px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.proof-tools { margin-top: 0.9rem; }

/* Two-column facts (shipping / receipt) */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 1.25rem; margin: 0.5rem 0 0; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }
.fact-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.15rem; }
.fact-value { color: var(--charcoal); }

/* Update uploads */
.update-row { border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; margin: 0 0 0.8rem; background: #fff; }
.update-row:last-child { margin-bottom: 0; }
.update-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.update-head strong { color: var(--navy); }
.update-detail { margin-top: 0.8rem; }
.mini-check { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0.7rem 0; cursor: pointer; font-size: 0.95rem; }
.mini-check input { width: 1.15rem; height: 1.15rem; margin-top: 0.15rem; accent-color: var(--gold); flex: none; }

.tracking-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Beauty pass — September 2026
   A premium print-shop feel on the main site's exact palette: generous
   whitespace, soft layered shadows, gold accents, calm hierarchy.
   These rules intentionally come last so they refine the base styles above.
   ========================================================================== */

::selection { background: rgba(196, 163, 90, 0.35); }

:root {
  --shadow-soft: 0 2px 14px rgba(11, 31, 58, 0.07);
  --shadow-lift: 0 14px 34px rgba(11, 31, 58, 0.13);
  --gold-glow: 0 2px 10px rgba(196, 163, 90, 0.35);
}

/* ---------- Headings & type rhythm ---------- */
h1 {
  font-size: 1.8rem;
  letter-spacing: -0.015em;
  line-height: 1.25;
  font-weight: 700;
}
h2 { letter-spacing: -0.01em; line-height: 1.35; }
.wrap { padding-top: 2.25rem; }

/* ---------- Cards: softer, deeper, lift on hover ---------- */
.card, .hub-card, .kpi-card {
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  border-color: #EAE5D8;
}
a.card-link:hover, .card-link:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}
.card-link { transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }

/* ---------- Buttons: a touch of gold light ---------- */
.btn {
  box-shadow: var(--gold-glow);
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { box-shadow: 0 4px 16px rgba(196, 163, 90, 0.45); }
.btn-ghost, .btn-ghost-dark, .btn-outline-cream { box-shadow: none; }
.btn-ghost-dark:hover, .btn-outline-cream:hover { box-shadow: var(--shadow-soft); }

/* ---------- Pills: a little more presence ---------- */
.pill {
  padding: 0.3rem 0.85rem;
  letter-spacing: 0.03em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

/* ---------- Alerts: softer, more composed ---------- */
.alert {
  border-radius: 12px;
  border: 1px solid #EAE5D8;
  border-left-width: 4px;
  box-shadow: var(--shadow-soft);
  background: #fff;
}
.alert.ok { background: #F4FAF6; }
.alert.error { background: #FDF6F5; }
.alert.action { background: #FFFBF3; }

/* ---------- Forms: calmer inputs ---------- */
input[type="email"], input[type="text"], input[type="tel"], input[type="date"],
select, textarea {
  border-radius: 10px;
  border-color: #DCD6C6;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input[type="email"]:focus, input[type="text"]:focus, input[type="tel"]:focus,
input[type="date"]:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196, 163, 90, 0.18);
  outline: none;
}

/* ==========================================================================
   Order page hero — layered gold light over navy, with a stat row
   ========================================================================== */
.hero-band {
  background:
    radial-gradient(640px 320px at 88% -60px, rgba(196, 163, 90, 0.28), transparent 62%),
    radial-gradient(420px 220px at 6% 130%, rgba(196, 163, 90, 0.14), transparent 60%),
    linear-gradient(140deg, #0e2547 0%, var(--navy) 45%, var(--navy-deep) 100%);
  border-bottom: 3px solid var(--gold);
}
.hero-inner { padding: 2.4rem 1.25rem 2.4rem; }
.hero-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  padding: 0.3rem 0;
}
.hero-title {
  font-size: 2.35rem;
  letter-spacing: 0.01em;
  line-height: 1.1;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.3);
}
/* Stat row replaces the old inline meta line */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem 2.5rem;
  margin-top: 1.4rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.hero-stat .hs-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.3rem;
}
.hero-stat .hs-value {
  font-size: 1.08rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
}
.hero-band .pill { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25); }

/* ==========================================================================
   The one next step — a navy banner that commands the page
   ========================================================================== */
.action-card {
  background:
    radial-gradient(420px 200px at 95% -40px, rgba(196, 163, 90, 0.22), transparent 60%),
    linear-gradient(135deg, #122c55 0%, var(--navy-deep) 100%);
  border: none;
  border-radius: 18px;
  padding: 1.6rem 1.6rem 1.5rem;
  margin: 1.5rem 0;
  box-shadow: 0 16px 40px rgba(11, 31, 58, 0.28);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.action-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), rgba(196, 163, 90, 0.15));
}
.action-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.5rem;
}
.action-card h2 { color: #fff; margin: 0 0 0.4rem; font-size: 1.35rem; letter-spacing: -0.01em; }
.action-card p { color: rgba(255, 255, 255, 0.85); }
.action-card p.sub { color: rgba(255, 255, 255, 0.72); }
.action-card strong { color: #fff; }
.action-card a:not(.btn) { color: var(--gold); }
.action-card .btn-row { margin-top: 1rem; }
/* Secondary buttons turn into light outline pills on the navy banner */
.action-card .btn-ghost-dark {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  background: transparent;
  box-shadow: none;
}
.action-card .btn-ghost-dark:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(196, 163, 90, 0.08);
  box-shadow: none;
}
.action-card .tracking-num { color: #fff; }

/* ==========================================================================
   Section eyebrows — a small gold tick, like a printer's mark
   ========================================================================== */
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #9a7b2d;
  margin: 2.4rem 0 0.2rem;
}
.section-eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
  flex: none;
}
.section-title { font-size: 1.4rem; margin-bottom: 0.9rem; }

/* ==========================================================================
   Journey stepper — larger dots, glowing "you are here"
   ========================================================================== */
.stepper { margin-top: 1rem; padding: 0.25rem 0 0.5rem; }
.stepper li { flex: 1 0 92px; min-width: 92px; }
.stepper .s-dot {
  width: 34px;
  height: 34px;
  font-size: 0.85rem;
  border-width: 2px;
  transition: box-shadow 0.2s ease;
}
.stepper li::before { top: 17px; height: 2px; }
.stepper li.done .s-dot {
  box-shadow: 0 2px 8px rgba(196, 163, 90, 0.4);
}
.stepper li.now .s-dot {
  border-color: var(--navy);
  border-width: 2.5px;
  color: var(--navy);
  box-shadow: 0 0 0 5px rgba(196, 163, 90, 0.28);
  background: #fff;
}
.stepper .s-label { font-size: 0.74rem; margin-top: 0.15rem; }
.stepper .s-when { font-size: 0.7rem; }

/* ==========================================================================
   Proof cards — crisp white documents with a version chip
   ========================================================================== */
.proof-card {
  background: #fff;
  border-radius: 14px;
  border-color: #EAE5D8;
  box-shadow: var(--shadow-soft);
  padding: 1.25rem 1.3rem;
}
.proof-card.ready {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), var(--shadow-soft);
}
.proof-head h3 { font-size: 1.12rem; letter-spacing: -0.01em; }
.version-chip {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--navy);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  margin-left: 0.5rem;
  vertical-align: 0.12em;
}
.proof-frame {
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(11, 31, 58, 0.04);
}
.proof-tools .btn-row { margin-top: 1rem; }

/* Interactive checklist rows feel tactile */
.checklist-interactive li {
  border: 1px solid #EFEADD;
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  margin-bottom: 0.5rem;
  background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.checklist-interactive li.done, .checklist-interactive li:has(input:checked) {
  border-color: var(--gold);
  background: #FDFBF4;
}

/* ==========================================================================
   Dashboard order cards
   ========================================================================== */
.order-card { transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
.order-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  border-color: var(--gold);
}
.order-card.needs-action { border-left: 4px solid var(--pill-action); }
.order-card .card-top h3 { font-size: 1.2rem; letter-spacing: 0.01em; }
.cancel-countdown {
  margin: 0.45rem 0 0;
  font-size: 0.85rem;
  color: var(--muted, #5b6470);
}
.cancel-countdown strong { color: var(--navy, #1b2a4a); }
.order-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}
.order-foot-btns {
  display: inline-flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.proof-callout {
  border-radius: 12px;
  border: 1px solid #F0DFAE;
  border-left: 4px solid var(--gold);
  background: #FDF9EE;
  box-shadow: var(--shadow-soft);
}

/* Empty states feel intentional, not broken */
.empty-state { text-align: center; padding: 3rem 1.5rem; }
.empty-state h3 { font-size: 1.25rem; }
.empty-state .sub { max-width: 26rem; margin-left: auto; margin-right: auto; }

/* ==========================================================================
   Sign-in page — a card with a gold crown
   ========================================================================== */
.auth-card {
  border-top: 3px solid var(--gold);
  border-radius: 18px;
  padding: 1.75rem 1.6rem;
}
.auth-title {
  text-align: center;
  font-size: 1.9rem;
  letter-spacing: -0.015em;
  margin-bottom: 0.4rem;
}
.auth-sub { text-align: center; max-width: 30rem; margin: 0 auto 0.5rem; }

/* ==========================================================================
   Order form — step panels become calm white cards
   ========================================================================== */
.step-panel {
  background: #fff;
  border: 1px solid #EAE5D8;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  padding: 1.6rem 1.5rem;
  margin-top: 1.25rem;
}
.step-panel h2 { margin-top: 0; font-size: 1.35rem; letter-spacing: -0.01em; }
.steps { margin: 1.5rem 0 0.5rem; }
.steps .n {
  width: 2.2rem;
  height: 2.2rem;
  font-size: 0.95rem;
  box-shadow: var(--shadow-soft);
}
.steps li.current .n {
  box-shadow: 0 0 0 4px rgba(196, 163, 90, 0.25);
}
.steps .t { font-size: 0.74rem; margin-top: 0.15rem; }
.price-line {
  border-radius: 12px;
  border: 1px solid #EFE3C2;
  border-left: 4px solid var(--gold);
  background: #FDFBF4;
  box-shadow: var(--shadow-soft);
}
.dropzone {
  border-radius: 14px;
  border-width: 2px;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.dropzone:hover, .dropzone.drag {
  box-shadow: 0 0 0 4px rgba(196, 163, 90, 0.15);
}
.review-row { padding: 1rem 0; }
.step-nav { margin-top: 1.75rem; }

/* ==========================================================================
   Proof page — give the PDF a proper frame with a header bar
   ========================================================================== */
.pdf-card { padding: 0; overflow: hidden; border-radius: 18px; }
.pdf-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}
.pdf-card-head h3 { margin: 0; font-size: 1.05rem; }
.pdf-card-head a { font-size: 0.88rem; font-weight: 600; white-space: nowrap; }
.pdf-card .pdf-frame { border: none; border-radius: 0; }

/* ==========================================================================
   Admin & money — quiet polish, nothing structural
   ========================================================================== */
.kpi-card { transition: transform 0.18s ease, box-shadow 0.18s ease; }
.kpi-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.kpi-value { letter-spacing: -0.01em; }
.attn-item {
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  background: #fff;
}
.dropdown-menu { border-radius: 12px; }

/* Header: a whisper of depth under the sticky bar */
.site-header { box-shadow: 0 1px 12px rgba(11, 31, 58, 0.06); }

/* Footer: soften the legal links */
.footer-legal a { color: rgba(255, 255, 255, 0.55); }

/* Loading state */
.spinner { border-top-color: var(--gold); }

@media (max-width: 520px) {
  h1 { font-size: 1.5rem; }
  .hero-title { font-size: 1.9rem; }
  .hero-stats { gap: 1.1rem 1.75rem; }
  .action-card { padding: 1.3rem 1.2rem 1.2rem; border-radius: 16px; }
  .step-panel { padding: 1.25rem 1.1rem; border-radius: 16px; }
  .auth-card { padding: 1.4rem 1.2rem; }
}

/* ---------- Header dropdown menu ---------- */
.dropdown-toggle { min-width: 88px; }
.dropdown-menu {
  border-radius: 14px;
  border: 1px solid #EAE5D8;
  box-shadow: 0 18px 44px rgba(11, 31, 58, 0.18);
  padding: 0.45rem;
  min-width: 248px;
  animation: menu-in 0.14s ease;
}
@keyframes menu-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.dropdown-menu a {
  display: flex;
  align-items: center;
  padding: 0.65rem 0.95rem;
  border-radius: 9px;
  color: var(--charcoal);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  white-space: nowrap;
}
.dropdown-menu a:hover { background: var(--cream); color: var(--navy); }
.dropdown-menu a.active { font-weight: 700; color: var(--navy); background: #F7F1E2; }
.dropdown-menu button {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.65rem 0.95rem;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--charcoal);
  font-size: 0.94rem;
  font-weight: 500;
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
}
.dropdown-menu button:hover { background: var(--cream); color: var(--navy); }
.dropdown-sep { border-top: 1px solid var(--line); margin: 0.4rem 0.3rem; }
@media (max-width: 520px) {
  .dropdown-menu { min-width: 210px; }
  .header-email { display: none; }
}

/* ---------- Dashboard: order cards with structured book rows ---------- */
.book-list { margin: 0.5rem 0 0; }
.book-line {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 0.75rem; margin: 0; padding: 0.9rem 0;
  border-top: 1px solid var(--line); line-height: 1.45;
}
.book-line:first-child { border-top: 0; padding-top: 0.4rem; }
.book-line:last-child { padding-bottom: 0.2rem; }
.book-line-main { display: flex; flex-direction: column; gap: 0.18rem; min-width: 0; }
.book-num {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--muted);
}
.book-line-title { font-size: 1.02rem; color: var(--charcoal); }
.book-line-title strong { color: var(--navy); }
.book-line .pill { flex-shrink: 0; margin-top: 0.15rem; }
.order-card .card-top h3 { font-size: 1.18rem; letter-spacing: 0.01em; }
.order-card .meta { margin-bottom: 0.15rem; }

/* ---------- Cancel order: inside the content + confirmation modal ---------- */
.cancel-card {
  border: 1px solid rgba(178, 40, 40, 0.28);
  background: #fff9f9;
  border-radius: 12px;
  padding: 0.9rem 1.15rem;
  margin: 0 0 1.25rem;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.6rem 1.25rem;
}
.cancel-card p { margin: 0; font-size: 0.88rem; color: #6b3030; flex: 1 1 16rem; }
.cancel-card strong { color: #8f1d1d; }
.cancel-card .btn { flex-shrink: 0; }

/* Modal (replaces native confirm() for cancellations) */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(7, 21, 40, 0.6);
  display: flex; align-items: center; justify-content: center;
  padding: 1.25rem;
}
.modal {
  background: #fff; border-radius: 14px;
  max-width: 27rem; width: 100%;
  padding: 1.4rem 1.4rem 1.25rem;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}
.modal-eyebrow {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: #a33; margin: 0 0 0.35rem;
}
.modal h2 { font-size: 1.25rem; color: var(--navy); margin: 0 0 0.6rem; }
.modal-body { font-size: 0.95rem; line-height: 1.55; color: var(--charcoal); margin: 0; }
.modal-body strong { color: var(--navy); }
.modal-error {
  margin: 0.8rem 0 0; font-size: 0.88rem; color: #8f1d1d;
  background: #fdeeee; border: 1px solid rgba(178, 40, 40, 0.3);
  border-radius: 8px; padding: 0.6rem 0.8rem;
}
.modal-btns { display: flex; gap: 0.7rem; justify-content: flex-end; margin-top: 1.2rem; flex-wrap: wrap; }
.btn-danger {
  background: #b32828; border-color: #b32828; color: #fff;
}
.btn-danger:hover { background: #962020; border-color: #962020; color: #fff; }

/* Book cancellation selection */
.book-cancel-list { display: flex; flex-direction: column; gap: 0.5rem; margin: 0.5rem 0; }
.book-cancel-row {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 0.9rem; border: 1px solid rgba(26, 43, 76, 0.15);
  border-radius: 8px; cursor: pointer; font-size: 0.95rem;
}
.book-cancel-row:hover { border-color: var(--gold); background: rgba(212, 175, 55, 0.05); }
.book-cancel-row input[type="checkbox"] { width: 1.1rem; height: 1.1rem; accent-color: var(--gold); }
