/* ==========================================================================
   GiftWait (圣诞礼物请等等) — North Pole Audit Desk & Letterpress Paper System
   Warm cream dot-grid paper, crisp ink borders, holly red & pine green stamps.
   ========================================================================== */

:root {
  --paper: #faf6ee;
  --paper-card: #fffdf8;
  --paper-soft: #f3ecdf;
  --paper-tint: #ece3d2;

  --ink: #1e1b18;
  --ink-muted: #5b5349;
  --ink-dim: #857b6f;

  --pine: #1b5e43;
  --pine-hover: #154b35;
  --pine-soft: #e3f1ea;

  --holly: #c23b38;
  --holly-hover: #a62f2c;
  --holly-soft: #fbe8e7;

  --amber: #e2a43b;
  --amber-bright: #ffe89e;
  --amber-soft: #fff5d6;

  --shadow-paper: 4px 4px 0 #e4dac6;
  --shadow-ink: 4px 4px 0 #1e1b18;
  --shadow-amber: 5px 5px 0 #e7c677;
  --shadow-pine: 4px 4px 0 #b8d8c8;

  --font-display: 'Fraunces', 'Noto Serif SC', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --max-w: 1180px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(30, 27, 24, 0.09) 1px, transparent 1px);
  background-size: 20px 20px;
  line-height: 1.65;
  overflow-x: hidden;
}

/* Signature North Pole airmail ribbon across the very top edge */
body::before {
  content: '';
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  z-index: 60;
  background: repeating-linear-gradient(
    -45deg,
    var(--holly) 0 14px,
    var(--paper) 14px 22px,
    var(--pine) 22px 36px,
    var(--paper) 36px 44px
  );
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, textarea, select {
  font-family: inherit;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 5px;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 22px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 5px;
  z-index: 45;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1.5px solid var(--ink);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: 66px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
  white-space: nowrap;
}

.brand-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  color: var(--pine);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-muted);
  white-space: nowrap;
  border: 1.5px solid transparent;
  transition: all 0.16s ease;
}

.nav-link:hover {
  color: var(--ink);
  background: var(--paper-soft);
}

.nav-link.is-active {
  color: var(--ink);
  background: var(--amber-bright);
  border-color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 13px;
  border-radius: var(--radius-pill);
  background: var(--paper-card);
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform 0.14s, box-shadow 0.14s, background 0.14s;
}

.pill-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
  background: var(--amber-soft);
}

.pill-btn-pine {
  background: var(--pine);
  color: #fffdf8;
}

.pill-btn-pine:hover {
  background: var(--pine-hover);
  color: #fffdf8;
}

.mobile-menu-btn {
  display: none;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(30, 27, 24, 0.55);
  backdrop-filter: blur(4px);
  display: none;
  justify-content: flex-end;
}

.mobile-drawer.is-open {
  display: flex;
}

.drawer-panel {
  width: min(320px, 86vw);
  height: 100%;
  background: var(--paper);
  border-left: 2px solid var(--ink);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1.5px dashed var(--ink-dim);
}

.drawer-label {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pine);
}

.drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--paper-card);
  border: 1.5px solid var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
}

/* ==========================================================================
   Buttons, Badges, Price Tags & Inputs
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.94rem;
  font-weight: 700;
  border: 1.5px solid var(--ink);
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.14s, box-shadow 0.14s, background 0.14s;
  text-align: center;
}

.btn:hover:not(:disabled) {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn:active:not(:disabled) {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ink);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-pine {
  background: var(--pine);
  color: #fffdf8;
}
.btn-pine:hover:not(:disabled) {
  background: var(--pine-hover);
}

.btn-holly {
  background: var(--holly);
  color: #fffdf8;
}
.btn-holly:hover:not(:disabled) {
  background: var(--holly-hover);
}

.btn-amber {
  background: var(--amber-bright);
  color: var(--ink);
}

.btn-paper {
  background: var(--paper-card);
  color: var(--ink);
}
.btn-paper:hover:not(:disabled) {
  background: var(--paper-soft);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.84rem;
  box-shadow: 2px 2px 0 var(--ink);
}

.price-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 8px;
  background: var(--amber-bright);
  border: 1.5px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  border: 1.5px solid var(--ink);
  white-space: nowrap;
}

.badge-open { background: var(--amber-soft); color: #7a4e0b; border-color: #b88121; }
.badge-approved { background: var(--pine-soft); color: var(--pine); border-color: var(--pine); }
.badge-held { background: var(--holly-soft); color: var(--holly); border-color: var(--holly); }
.badge-tied { background: var(--paper-tint); color: var(--ink-muted); border-color: var(--ink-dim); }
.badge-mode-other { background: #fff0ee; color: #9c2b29; border-color: rgba(194, 59, 56, 0.45); }
.badge-mode-self { background: #eef4fa; color: #264e73; border-color: rgba(38, 78, 115, 0.4); }

.input, .textarea, .select {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  background: #ffffff;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font-size: 0.94rem;
  outline: none;
  transition: box-shadow 0.16s, border-color 0.16s;
}

.input:focus, .textarea:focus, .select:focus {
  border-color: var(--pine);
  box-shadow: 0 0 0 3px rgba(27, 94, 67, 0.16);
}

.textarea {
  resize: vertical;
  min-height: 104px;
  line-height: 1.6;
}

.field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}

/* ==========================================================================
   Paper Slip Cards & Rubber Stamp Effects
   ========================================================================== */
.paper-card {
  background: var(--paper-card);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-paper);
  position: relative;
}

.slip-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--paper-card);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-paper);
  position: relative;
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.slip-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-amber);
}

.slip-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.slip-main-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.slip-thumb {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  flex-shrink: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.slip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  border: 1.5px solid var(--ink);
}

.slip-title {
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 700;
  line-height: 1.32;
  margin: 0 0 8px;
}

.slip-reason {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.slip-planb-box {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--paper-soft);
  border: 1px dashed var(--ink-dim);
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.slip-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1.5px dashed #d5cab6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--ink-dim);
}

.stamp-corner {
  position: absolute;
  top: 12px;
  right: 12px;
  transform: rotate(-10deg);
  pointer-events: none;
  opacity: 0.92;
}

.rubber-stamp-svg {
  animation: stampSlap 0.35s cubic-bezier(0.22, 1.35, 0.36, 1) both;
}

@keyframes stampSlap {
  from { opacity: 0; transform: scale(1.6) rotate(-18deg); }
  to { opacity: 0.94; transform: scale(1) rotate(0deg); }
}

/* ==========================================================================
   Hero Section — North Pole Audit Desk
   ========================================================================== */
.hero-section {
  padding: 42px 0 54px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 38px;
  align-items: center;
}

.bureau-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: var(--paper-card);
  border: 1.5px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--holly);
  letter-spacing: 0.04em;
  box-shadow: 2px 2px 0 var(--ink);
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.65vw, 3.22rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0 0 16px;
}

.hero-accent {
  color: var(--pine);
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 5px;
  text-underline-offset: 6px;
}

.hero-desc {
  font-size: 1.03rem;
  color: var(--ink-muted);
  max-width: 560px;
  margin: 0 0 24px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.pulse-stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 540px;
}

.pulse-stat-box {
  padding: 13px 14px;
  border-radius: 14px;
  background: var(--paper-card);
  border: 1.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--paper-tint);
}

.pulse-stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--pine);
  line-height: 1.15;
}

.pulse-stat-num.is-red {
  color: var(--holly);
}

.pulse-stat-label {
  display: block;
  margin-top: 3px;
  font-size: 0.76rem;
  color: var(--ink-muted);
  font-weight: 600;
}

/* Interactive Sample Audit Desk Ticket in Hero */
.hero-ticket-wrap {
  position: relative;
}

.hero-ticket {
  background: var(--paper-card);
  border: 2px solid var(--ink);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 7px 7px 0 var(--ink);
  position: relative;
}

.ticket-header-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1.5px dashed #cfc3ad;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-dim);
}

.demo-vote-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.demo-feedback {
  margin-top: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--paper-soft);
  border: 1.5px dashed var(--pine);
  font-size: 0.85rem;
  color: var(--ink);
  display: none;
}

.demo-feedback.is-visible {
  display: block;
}

/* ==========================================================================
   Sections, Grids, Tools, Guides & FAQ
   ========================================================================== */
.section {
  padding: 64px 0;
}

.section-band {
  background: var(--paper-soft);
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
}

.section-head {
  max-width: 680px;
  margin: 0 auto 38px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--holly);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 10px;
}

.section-desc {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.step-card {
  background: var(--paper-card);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  box-shadow: var(--shadow-paper);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--amber-bright);
  border: 1.5px solid var(--ink);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.step-card h3 {
  margin: 0 0 8px;
  font-size: 1.04rem;
}

.step-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.plaza-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--paper-card);
  border: 1.5px solid var(--ink);
  box-shadow: var(--shadow-paper);
  transition: transform 0.16s, box-shadow 0.16s;
}

.tool-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-ink);
}

.tool-card h3 {
  font-family: var(--font-display);
  font-size: 1.32rem;
  margin: 8px 0 6px;
}

.tool-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.guide-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--paper-card);
  border: 1.5px solid var(--ink);
  box-shadow: var(--shadow-paper);
  transition: transform 0.16s, box-shadow 0.16s;
}

.guide-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-amber);
}

.guide-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.35;
}

.guide-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border-radius: var(--radius-md);
  background: var(--paper-card);
  border: 1.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--paper-tint);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--pine);
}
.faq-item[open] summary::after { content: '−'; color: var(--holly); }

.faq-answer {
  padding: 0 20px 18px;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.closing-banner {
  border-radius: var(--radius-lg);
  padding: 46px 28px;
  text-align: center;
  background: var(--pine);
  color: #fffdf8;
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
}

.closing-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  margin: 0 0 10px;
}

.closing-banner p,
.prose-wrap .closing-banner p {
  margin: 0 auto 24px;
  max-width: 520px;
  color: #e4f2eb;
}

/* ==========================================================================
   Filter Bar, Detail Page, Blind Gate, Progress & Thermal Receipt
   ========================================================================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.filter-chip {
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  background: var(--paper-card);
  border: 1.5px solid var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
  transition: background 0.14s, color 0.14s;
}

.filter-chip.is-active, .filter-chip:hover {
  background: var(--amber-bright);
  color: var(--ink);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
  padding: 32px 0 68px;
}

.progress-track {
  width: 100%;
  height: 12px;
  border-radius: 99px;
  background: var(--paper-tint);
  border: 1.5px solid var(--ink);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--pine);
  transition: width 0.3s ease;
}

.tally-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 18px 0;
}

.tally-box {
  padding: 16px;
  border-radius: 14px;
  border: 1.5px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
}

.tally-box.is-approve { background: var(--pine-soft); color: var(--pine); }
.tally-box.is-hold { background: var(--holly-soft); color: var(--holly); }

.tally-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
}

.blind-gate-box {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--amber-soft);
  border: 2px dashed var(--ink);
  margin-top: 20px;
}

.vote-choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}

.vote-choice-btn {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--paper-card);
  border: 2px solid var(--ink);
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  transition: all 0.14s;
}

.vote-choice-btn.is-approve.is-selected {
  background: var(--pine);
  color: #fffdf8;
}

.vote-choice-btn.is-hold.is-selected {
  background: var(--holly);
  color: #fffdf8;
}

.comment-card {
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--paper-card);
  border: 1.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--paper-tint);
}

.comment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

/* Form grids */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cat-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.cat-pick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 8px 4px;
  border-radius: 12px;
  background: var(--paper-card);
  border: 1.5px solid #d5cab6;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
}

.cat-pick-btn.is-selected {
  border-color: var(--ink);
  background: var(--amber-soft);
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}

/* Thermal Receipt Paper Aesthetic (/receipt) */
.receipt-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: start;
}

.receipt-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--paper-card);
  border: 1.5px solid var(--ink);
  margin-bottom: 10px;
}

.receipt-toggle-group {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.receipt-toggle {
  padding: 5px 10px;
  border-radius: 8px;
  border: 1.5px solid var(--ink);
  background: var(--paper-soft);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.receipt-toggle.is-resisted {
  background: var(--pine);
  color: #fffdf8;
}

.receipt-toggle.is-bought {
  background: var(--holly);
  color: #fffdf8;
}

.thermal-paper {
  background: #ffffff;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  padding: 24px 20px;
  font-family: var(--font-mono);
  box-shadow: 6px 6px 0 #dcd2be;
  position: relative;
}

/* Countdown & Gift Ideas & Secret Santa */
.countdown-digits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 620px;
  margin: 22px auto;
}

.digit-box {
  padding: 18px 10px;
  border-radius: 14px;
  background: var(--paper-card);
  border: 1.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  text-align: center;
}

.digit-num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 700;
  color: var(--pine);
}

/* Prose / Guides / Legal */
.prose-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 36px 0 72px;
}

.prose-wrap h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.3vw, 2.6rem);
  line-height: 1.24;
  margin: 12px 0 14px;
}

.prose-wrap h2 {
  font-family: var(--font-display);
  font-size: 1.42rem;
  color: var(--pine);
  margin: 30px 0 10px;
}

.prose-wrap p, .prose-wrap li {
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.8;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(30, 27, 24, 0.65);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--paper-card);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 6px 6px 0 var(--ink);
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 2px solid var(--ink);
  background: var(--paper-soft);
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 26px;
  margin-bottom: 30px;
}

.footer-col h4 {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pine);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-col a {
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.footer-col a:hover {
  color: var(--holly);
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 18px;
  border-top: 1.5px dashed #cfc3ad;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--ink-dim);
}

/* Floating Language Card (Bottom-Right, clean & unobtrusive) */
.lang-suggest-bar {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 55;
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--paper-card);
  border: 1.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  width: min(330px, calc(100vw - 32px));
  font-size: 0.84rem;
}

.lang-suggest-bar.is-visible {
  display: flex;
}

.toast-root {
  position: fixed;
  top: 84px;
  right: 20px;
  z-index: 95;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast-item {
  padding: 11px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: #fffdf8;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 3px 3px 0 var(--amber);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid, .detail-layout, .receipt-split {
    grid-template-columns: 1fr;
  }
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .guides-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
}

@media (max-width: 720px) {
  .plaza-grid, .tools-grid, .steps-grid, .guides-grid, .form-grid-2, .tally-grid, .vote-choice-row, .footer-grid {
    grid-template-columns: 1fr;
  }
  .pulse-stats-row {
    grid-template-columns: 1fr;
  }
  .cat-picker-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .lang-suggest-bar {
    left: 16px;
    right: 16px;
    width: auto;
  }
}
