/* [ExchangeName] — mobile-first dark premium with fire-orange accent. */

:root {
  --bg:        #0E0E11;
  --surface:   #16161B;
  --surface-2: #1A1A1F;
  --surface-3: #1F1F26;
  --border:    #2A2A33;
  --border-2:  #2E2E36;
  --accent:    #FF6F32;
  --accent-2:  #BF360A;
  --text:      #F5F5F7;
  --muted:     #9CA3AF;
  --hint:      #6B7280;
  --success:   #34D399;
  --warn:      #FBBF24;
  --info:      #60A5FA;
  --danger:    #EF4444;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; padding-bottom: 24px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); }

/* Header */
.site-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px;
  position: sticky; top: 0; z-index: 10;
  background: rgba(14,14,17,0.92);
  backdrop-filter: blur(8px);
}
.logo { font-weight: 500; font-size: 16px; color: var(--text); letter-spacing: -0.01em; }
.logo .dot { color: var(--accent); }
.menu { position: relative; }
.menu-trigger {
  font-size: 22px; color: var(--muted); background: none; border: none;
  cursor: pointer; padding: 4px 8px; line-height: 1;
}
.menu-trigger:hover { color: var(--text); }
.menu-nav {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 40;
  background: var(--surface); border: 0.5px solid var(--border);
  border-radius: 12px; padding: 8px 0; min-width: 200px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.menu-nav a {
  display: block; padding: 9px 16px; color: var(--text); font-size: 13px;
  text-decoration: none;
}
.menu-nav a:hover { background: var(--surface-2); }

/* Hero */
.hero { padding: 24px 16px 12px; }
.eyebrow {
  color: var(--hint); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase;
  margin: 0 0 6px;
}
h1 { font-size: 22px; font-weight: 500; margin: 0 0 4px; line-height: 1.25; color: var(--text); }

/* Calculator */
.calculator { display: contents; }
.calc-card {
  margin: 0 16px; padding: 14px;
  background: var(--surface); border: 0.5px solid var(--border);
  border-radius: 16px;
}
.calc-card.is-locked { opacity: 0.6; }
.calc-section { padding: 12px; background: var(--surface-3); border-radius: 12px; }
.calc-label {
  display: block; color: var(--muted); font-size: 11px;
  letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 6px;
}
.calc-row { display: flex; align-items: center; gap: 8px; }
.calc-amount {
  flex: 1; min-width: 0;
  background: transparent; border: none; outline: none;
  font: inherit; color: var(--text); font-size: 22px; font-weight: 500;
  padding: 0;
}
.calc-output { color: var(--text); font-size: 22px; font-weight: 500; }
.calc-pick {
  background: var(--border); padding: 6px 10px; border-radius: 999px;
  color: var(--text); font-size: 12px; border: none; cursor: pointer;
  white-space: nowrap;
}
.calc-pick:hover { background: var(--border-2); }
.swap-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--border); color: var(--accent); border: none; cursor: pointer;
  margin: -5px auto -5px; display: block; font-size: 16px; position: relative; z-index: 1;
}
.calc-rate {
  margin-top: 12px; font-size: 11px; color: var(--muted);
  display: flex; justify-content: space-between;
}
.calc-rate strong { color: var(--text); font-weight: 500; }
.rate-stale { color: var(--warn); }

.calc-error {
  margin: 10px 16px 0; padding: 8px 12px;
  background: rgba(239,68,68,0.1); color: var(--danger);
  border-radius: 8px; font-size: 12px;
}
.cta {
  display: block;
  width: calc(100% - 32px);
  box-sizing: border-box;
  margin: 16px;
  background: var(--accent); color: #15140F;
  padding: 13px; border-radius: 12px; text-align: center;
  font-weight: 500; font-size: 14px; border: none; cursor: pointer;
  font-family: inherit;
}
.cta:disabled { opacity: 0.4; cursor: not-allowed; }
.trust { padding: 0 16px 14px; text-align: center; color: var(--hint); font-size: 11px; }

/* Banner */
.banner {
  margin: 14px 16px 0; padding: 10px 14px;
  border-radius: 10px; font-size: 12px;
}
.banner-warn { background: rgba(251,191,36,0.08); color: var(--warn); border: 0.5px solid rgba(251,191,36,0.3); }

/* Prose pages */
.prose { padding: 24px 16px; max-width: 720px; }
.prose h1 { margin-bottom: 14px; }
.prose p { color: var(--text); }
.prose .muted { color: var(--muted); }
.markdown-source { white-space: pre-wrap; font-family: ui-monospace, monospace; font-size: 12px; color: var(--muted); }
.review {
  background: var(--surface); padding: 12px 14px; border-radius: 12px;
  margin-bottom: 12px; border: 0.5px solid var(--border);
}
.review-author { font-size: 11px; color: var(--muted); margin: 0 0 4px; }

/* Footer */
.site-footer {
  padding: 24px 16px; text-align: center; color: var(--hint); font-size: 11px;
}
.site-footer p { margin: 4px 0; }
.site-footer a { color: var(--hint); }

/* === Order form === */
.order-form-wrap { padding: 12px 16px 24px; max-width: 480px; margin: 0 auto; }
.back-link { display: inline-block; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.form-title { font-size: 18px; font-weight: 500; margin: 4px 0 14px; }
.summary-card {
  background: var(--surface-3); border: 0.5px solid var(--border);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 14px;
}
.summary-amounts {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-weight: 500; font-size: 14px;
}
.summary-amounts .amount { color: var(--text); }
.summary-amounts .asset { color: var(--muted); font-size: 12px; }
.summary-amounts .arrow { color: var(--accent); }
.summary-amounts .target { color: var(--accent); }
.summary-meta { margin-top: 4px; color: var(--muted); font-size: 11px; }
.countdown { color: var(--accent); font-weight: 500; font-variant-numeric: tabular-nums; }

.order-form { display: block; }
.field { margin-bottom: 12px; }
.field label {
  display: block; color: var(--muted); font-size: 10px;
  letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 5px;
}
.field label .optional { text-transform: none; letter-spacing: 0; font-size: 10px; color: var(--hint); margin-left: 4px; }
.field input, .field textarea {
  width: 100%; background: var(--surface-2); border: 0.5px solid var(--border-2);
  border-radius: 8px; padding: 10px 12px; color: var(--text); font-size: 13px;
  font-family: inherit; outline: none; box-sizing: border-box;
}
.field input:focus { border-color: var(--accent); }
.field input::placeholder { color: #4A4A52; }
.input-paste { position: relative; }
.input-paste input { padding-right: 38px; }
.paste-btn {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: transparent; border: none; cursor: pointer; color: var(--muted); font-size: 14px;
}
.field-error {
  color: var(--danger); font-size: 11px; margin: 4px 0 0;
}
.form-error {
  margin-bottom: 12px; padding: 10px 12px;
  background: rgba(239,68,68,0.1); color: var(--danger);
  border-radius: 8px; font-size: 12px;
}
.form-error p { margin: 0; }
.tos {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 11px; color: var(--muted); line-height: 1.5;
  margin: 8px 0 14px;
}
.tos input { margin-top: 2px; accent-color: var(--accent); }
.tos a { color: var(--accent); }

/* === Payment instructions page === */
.payment-page { padding: 12px 16px 24px; max-width: 480px; margin: 0 auto; }
.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 500;
  margin-bottom: 12px;
}
.status-pill .dot { width: 6px; height: 6px; border-radius: 50%; }
.status-pill .dot-pulse { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.status-await { background: rgba(251,191,36,0.12); color: var(--warn); }
.status-await .dot { background: var(--warn); }
.status-recv { background: rgba(96,165,250,0.12); color: var(--info); }
.status-recv .dot { background: var(--info); }
.status-send { background: rgba(255,111,50,0.12); color: var(--accent); }
.status-send .dot { background: var(--accent); }
.status-done { background: rgba(52,211,153,0.12); color: var(--success); }
.status-done .dot { background: var(--success); }
.status-canc { background: rgba(239,68,68,0.12); color: var(--danger); }
.status-canc .dot { background: var(--danger); }
.status-exp { background: rgba(156,163,175,0.2); color: var(--muted); }
.status-exp .dot { background: var(--muted); }

.payment-title { font-size: 18px; font-weight: 500; margin: 4px 0 8px; line-height: 1.3; }
.payment-orderid { color: var(--muted); font-size: 12px; margin: 0 0 14px; }
.payment-orderid code, .mono { font-family: ui-monospace, monospace; color: var(--text); }
.break-all { word-break: break-all; }

.countdown-card {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--surface-3); border: 0.5px solid var(--border);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 14px;
}
.countdown-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.countdown-value { font-size: 18px; font-weight: 500; color: var(--accent); font-variant-numeric: tabular-nums; }

.sepa-card {
  background: var(--surface); border: 0.5px solid var(--border);
  border-radius: 14px; margin-bottom: 14px;
}
.sepa-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-bottom: 0.5px solid var(--surface-3);
}
.sepa-row:last-child { border-bottom: none; }
.sepa-row.highlight { background: rgba(255,111,50,0.06); }
.sepa-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; min-width: 80px; }
.sepa-value { flex: 1; font-size: 13px; color: var(--text); word-break: break-all; text-align: right; }
.sepa-value.amount { font-weight: 500; font-size: 15px; font-family: -apple-system, system-ui, sans-serif; }
.sepa-value.ref { color: var(--accent); font-weight: 500; }
.copy-btn {
  background: transparent; border: none; cursor: pointer;
  color: var(--muted); font-size: 14px; padding: 4px;
}
.copy-btn:hover { color: var(--text); }

.next-card {
  background: var(--surface-2); border: 0.5px solid var(--border);
  border-radius: 12px; padding: 12px 14px; font-size: 12px; color: var(--muted);
  margin-bottom: 12px;
}
.next-card strong { color: var(--text); font-weight: 500; }
.save-hint { text-align: center; color: var(--hint); font-size: 11px; margin: 0; }

/* === Desktop layout polish === */
@media (min-width: 768px) {
  .hero,
  .calc-card,
  .cta,
  .trust,
  .banner,
  .promo-banner,
  .order-form-wrap,
  .payment-page,
  .calc-error,
  .prose {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
  .cta { width: auto; }
  .hero { padding-top: 40px; }
  .calc-card { padding: 18px; }
  body { font-size: 15px; }
  h1 { font-size: 26px; }
}

/* Avoid FOUC: hide Alpine-controlled bits until Alpine initialises */
[x-cloak] { display: none !important; }

/* === Markdown legal pages === */
.prose.markdown { max-width: 720px; padding: 24px 16px; }
.prose.markdown h1 { font-size: 22px; font-weight: 500; margin: 0 0 14px; color: var(--text); }
.prose.markdown h2 { font-size: 17px; font-weight: 500; margin: 24px 0 8px; color: var(--text); }
.prose.markdown h3 { font-size: 14px; font-weight: 500; margin: 18px 0 6px; color: var(--muted); }
.prose.markdown p { margin: 0 0 10px; color: var(--text); line-height: 1.6; }
.prose.markdown ul, .prose.markdown ol { padding-left: 24px; margin: 0 0 12px; color: var(--text); }
.prose.markdown li { margin-bottom: 4px; }
.prose.markdown strong { color: var(--text); font-weight: 500; }
.prose.markdown em { color: var(--muted); }
.prose.markdown a { color: var(--accent); text-decoration: underline; }
.prose.markdown hr { border: none; border-top: 0.5px solid var(--border); margin: 24px 0; }
.prose.markdown code { background: var(--surface-2); padding: 1px 6px; border-radius: 4px; font-family: ui-monospace, monospace; font-size: 12px; }
.prose.markdown blockquote { border-left: 2px solid var(--accent); padding-left: 12px; color: var(--muted); margin: 12px 0; }

/* === R2: native dropdowns instead of cycle buttons === */
.calc-select {
  background: var(--border); padding: 6px 28px 6px 10px;
  border-radius: 999px; color: var(--text); font-size: 12px;
  border: none; cursor: pointer; font-family: inherit;
  appearance: none; -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text) 50%),
    linear-gradient(135deg, var(--text) 50%, transparent 50%);
  background-position:
    calc(100% - 14px) 50%,
    calc(100% - 9px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  outline: none;
}
.calc-select:hover { background-color: var(--border-2); }
.calc-select:focus { outline: 1px solid var(--accent); outline-offset: 1px; }
.calc-select option { background: var(--surface); color: var(--text); }

/* === R2.1 — premium asset picker (replaces native <select>) === */
.asset-picker { position: relative; }
.asset-trigger {
  display: flex; align-items: center; gap: 8px;
  background: var(--border); padding: 5px 10px 5px 5px;
  border-radius: 999px; border: none; cursor: pointer;
  color: var(--text); font: inherit; font-size: 13px;
  transition: background 0.15s;
}
.asset-trigger:hover { background: var(--border-2); }
.asset-trigger[aria-expanded="true"] { background: var(--border-2); }
.asset-icon {
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 500; font-size: 14px; line-height: 1;
  flex-shrink: 0;
}
.asset-pill-label { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.asset-ticker { font-weight: 500; font-size: 13px; }
.asset-sub { font-size: 10px; color: var(--muted); margin-top: 1px; }
.asset-chev { font-size: 11px; color: var(--muted); margin-left: 2px; }

.asset-panel {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 20;
  background: var(--surface); border: 0.5px solid var(--border);
  border-radius: 14px; padding: 6px;
  width: 280px;
  max-height: 360px; overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.asset-row {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 8px 10px;
  background: transparent; border: none; cursor: pointer;
  color: var(--text); font: inherit; text-align: left;
  border-radius: 8px;
  transition: background 0.12s;
}
.asset-row:hover:not(:disabled) { background: var(--surface-3); }
.asset-row.active { background: rgba(255, 111, 50, 0.08); }
.asset-row.disabled { opacity: 0.35; cursor: not-allowed; }
.asset-row-label { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.asset-row-name { font-size: 13px; color: var(--text); font-weight: 500; }
.asset-row-sub { font-size: 11px; color: var(--muted); margin-top: 1px; }
.asset-row-ticker { font-size: 11px; color: var(--muted); margin-left: auto; flex-shrink: 0; }

/* Mobile: full-width panel anchored bottom */
@media (max-width: 480px) {
  .asset-panel {
    position: fixed; bottom: 0; left: 0; right: 0; top: auto;
    width: 100%; max-height: 60vh;
    border-radius: 16px 16px 0 0;
    border-bottom: none;
  }
}

.field-hint {
  font-size: 11px; color: var(--muted); margin: 5px 0 0;
}

/* === R4 — mobile polish === */

/* Prevent iOS Safari auto-zoom on input focus (font-size ≥ 16px required) */
@media (max-width: 768px) {
  .calc-amount, .field input, .field textarea,
  input[type="text"], input[type="email"], input[type="tel"], input[type="number"] {
    font-size: 16px !important;
  }
}

/* Honeypot — display:none alone is too suspicious to bots; keep tabindex out */
input[name="website"] {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Safe-area insets for iOS notch / home-indicator */
@supports (padding: max(0px)) {
  body {
    padding-left:   env(safe-area-inset-left);
    padding-right:  env(safe-area-inset-right);
  }
  .site-header { padding-top: max(14px, env(safe-area-inset-top)); }
  .site-footer { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
}

/* Tap-target sizing — minimum 44×44 px per Apple HIG / Material */
@media (max-width: 768px) {
  .calc-pick, .calc-select, .swap-btn, .asset-trigger, .cta,
  .copy-btn, .paste-btn, .menu summary {
    min-height: 44px;
  }
  .swap-btn { width: 44px; height: 44px; }
  .copy-btn, .paste-btn { padding: 12px; }
}

/* Smooth scroll on news / reviews / legal — better long-page UX */
html { scroll-behavior: smooth; }

/* === Reviews — card layout via hr separators in markdown === */
.prose.markdown hr + h2,
.prose.markdown > h2:first-child {
  margin-top: 0;
}
.prose.markdown h2 {
  color: var(--text); font-size: 13px; font-weight: 500;
  border: 0.5px solid var(--border); border-radius: 12px;
  padding: 14px 16px 4px; margin: 12px 0 0;
  background: var(--surface);
}
.prose.markdown h2 + p {
  border: 0.5px solid var(--border); border-top: none;
  border-radius: 0 0 12px 12px;
  padding: 0 16px 14px; margin: 0 0 12px;
  background: var(--surface);
  font-size: 13px; color: var(--text);
}
.prose.markdown hr { display: none; }

/* === R5.1 — Compact language switcher with popover === */
.lang-switcher { position: relative; margin-left: auto; margin-right: 12px; }
.lang-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface-2);
  color: var(--text); font: inherit; font-size: 12px;
  border: 0.5px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px 4px 6px;
  cursor: pointer;
  transition: background 0.15s;
}
.lang-trigger:hover, .lang-trigger[aria-expanded="true"] { background: var(--border); }
.lang-flag {
  display: inline-block;
  font-size: 14px; line-height: 1;
  flex-shrink: 0;
  /* Force emoji rendering on systems that have variant selectors */
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", emoji, sans-serif;
}
.lang-code { font-weight: 500; letter-spacing: 0.04em; }
.lang-chev { color: var(--muted); font-size: 10px; }

.lang-panel {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 50;
  background: var(--surface); border: 0.5px solid var(--border);
  border-radius: 12px; padding: 4px; min-width: 200px;
  max-height: 70vh; overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
/* Sheet header (title + close ✕) — only used on mobile via @media below */
.panel-sheet-header { display: none; }
.lang-row-form { display: block; margin: 0; }
.lang-row {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 8px 10px;
  background: transparent; border: none; cursor: pointer;
  color: var(--text); font: inherit; font-size: 13px; text-align: left;
  border-radius: 8px;
}
.lang-row:hover { background: var(--surface-3); }
.lang-row.active { background: rgba(255, 111, 50, 0.10); color: var(--accent); }
.lang-name { flex: 1; }
.lang-tag { font-size: 10px; color: var(--muted); letter-spacing: 0.05em; }

@media (max-width: 640px) {
  /* Drop backdrop-filter on mobile — it creates a containing block for
     position:fixed descendants and traps the full-screen panels inside
     the header strip. */
  .site-header { backdrop-filter: none; }
  /* Full-screen sheet for lang + menu panels on mobile */
  .lang-panel, .menu-nav {
    position: fixed; inset: 0;
    border-radius: 0; padding: 0;
    max-height: none; overflow-y: auto;
    z-index: 1000;
    min-width: auto;
    background: var(--surface);
  }
  .panel-sheet-header {
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 1;
    padding: 14px 20px;
    background: var(--surface);
    border-bottom: 0.5px solid var(--border);
  }
  .panel-sheet-title { font-size: 17px; font-weight: 600; color: var(--text); }
  .panel-sheet-close {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--surface-2); border: none; color: var(--text);
    font-size: 16px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
  }
  .panel-sheet-close:hover { background: var(--surface-3); }
  /* Lang rows — bigger tap targets */
  .lang-row-form { padding: 6px 12px; }
  .lang-row { padding: 16px; font-size: 17px; min-height: 56px; border-radius: 12px; }
  .lang-flag { font-size: 22px; }
  .lang-name { font-size: 17px; }
  .lang-tag { font-size: 12px; }
  /* Menu links — bigger tap targets */
  .menu-nav a { padding: 16px 20px; font-size: 17px; min-height: 56px; display: flex; align-items: center; }
}

/* =========================================================
   Reviews (R8)
   ========================================================= */

.review-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.review-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.15s;
}
.review-card:hover { border-color: var(--border-2); }

/* Subtle accent stripe for verified customer reviews */
.review-card--user {
  border-left: 3px solid var(--accent);
  padding-left: 17px;
}
.review-card--curated {
  border-left: 3px solid var(--border-2);
  padding-left: 17px;
}

.review-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

.review-card__name {
  font-weight: 600;
  color: var(--text);
}

.review-card__stars {
  color: var(--warn);          /* gold */
  letter-spacing: 1px;
  font-size: 0.95rem;
}

.review-card__date {
  color: var(--muted);
  font-size: 0.85rem;
  margin-left: auto;            /* push to right edge */
}

.review-card__verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--success);
  color: #0E0E11;
  font-size: 0.7rem;
  font-weight: 700;
}

.review-card__body {
  color: var(--text);
  line-height: 1.55;
  margin: 0;
  font-size: 0.95rem;
}

/* Flag pill inside review cards is slightly smaller than the switcher's */
.review-card .lang-flag {
  font-size: 13px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 32px 0 16px;
  color: var(--muted);
  font-size: 0.95rem;
}
.pagination a {
  color: var(--accent);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.pagination a:hover { background: var(--surface-2); }

/* ------ Review submission form ------ */

.review-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 560px;
  margin: 24px 0;
}
.review-form label {
  font-weight: 600;
  margin-top: 12px;
  color: var(--text);
}
.review-form input[type="text"],
.review-form textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
  width: 100%;
  box-sizing: border-box;
}
.review-form textarea { resize: vertical; min-height: 110px; }
.review-form input:focus,
.review-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.field-hint  { color: var(--hint);   font-size: 0.85rem; margin: 2px 0 0; }
.field-error { color: var(--danger); font-size: 0.88rem; margin: 4px 0 0; }

/* Star picker — clickable buttons styled as huge stars */
.star-picker {
  display: inline-flex;
  gap: 4px;
  margin: 6px 0;
}
.star {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
  padding: 4px 6px;
  color: var(--border-2);     /* dim by default */
  transition: color 0.1s, transform 0.05s;
}
.star:hover  { color: var(--warn); transform: scale(1.05); }
.star.filled { color: var(--warn); }

.alert {
  padding: 10px 14px;
  border-radius: 8px;
  margin: 12px 0;
}
.alert-warning {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid var(--warn);
  color: var(--warn);
}

.container.narrow { max-width: 640px; margin: 0 auto; }

/* Mobile: single column for cards */
@media (max-width: 600px) {
  .review-list { grid-template-columns: 1fr; }
  .review-card__date { margin-left: 0; }
}

/* =========================================================
   R9 — News post cards (wraps H2 + body via post-processor)
   ========================================================= */

.prose.markdown .news-post {
  background: var(--surface-2);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 14px 0;
  transition: border-color 0.15s;
}
.prose.markdown .news-post:hover { border-color: var(--border-2); }

.prose.markdown .news-post h2 {
  /* Override the global card-styled h2 — inside a news-post the H2
     is just a heading, the card is the wrapper. */
  background: none;
  border: none;
  padding: 0 0 4px;
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.prose.markdown .news-post .news-post__date {
  color: var(--muted);
  font-size: 12px;
  margin: -4px 0 12px;
  font-style: italic;
}

.prose.markdown .news-post p:last-child { margin-bottom: 0; }

/* When the post-processor wraps cards, the legacy h2 chrome must NOT
   apply outside of news-post — neutralize stray h2 cards on non-news
   pages by only applying chrome to direct children of .prose.markdown
   that are NOT inside a wrapper. */
.prose.markdown > .news-post + .news-post { margin-top: 14px; }

/* =========================================================
   R10 — Homepage intro lead + promo banner + footer last-updated
   ========================================================= */

.hero .lead {
  margin: 8px 0 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 540px;
}
.hero .lead strong { font-weight: 600; }

.promo-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 16px 0;
  padding: 10px 14px;
  background: linear-gradient(90deg, rgba(255,111,50,0.10), rgba(255,111,50,0.04));
  border: 0.5px solid var(--accent);
  border-radius: 12px;
  color: var(--text);
  font-size: 0.92rem;
}
.promo-badge { font-size: 1.1rem; }
.promo-text strong { color: var(--accent); font-weight: 600; }

.small { font-size: 0.78rem; }
.site-footer .small { margin-top: 4px; opacity: 0.6; }


/* =========================================================
   R11 — Cookie consent banner (GDPR)
   ========================================================= */

.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  max-width: 720px;
  margin: 0 auto;
  z-index: 100;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
}
.cookie-banner__text {
  flex: 1 1 280px;
  margin: 0;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.45;
}
.cookie-banner__text a { color: var(--accent); text-decoration: underline; }
.cookie-banner__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.cookie-banner__btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.cookie-banner__btn--decline:hover { background: var(--surface-3); }
.cookie-banner__btn--accept {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}
.cookie-banner__btn--accept:hover { background: var(--accent-2); border-color: var(--accent-2); }

@media (max-width: 480px) {
  .cookie-banner { flex-direction: column; align-items: stretch; left: 8px; right: 8px; bottom: 8px; }
  .cookie-banner__actions { justify-content: flex-end; }
}

/* Reserve space below content while the cookie banner is visible so it
   doesn't cover Continue / form-submit buttons on narrow viewports. */
body.has-cookie-banner main { padding-bottom: 260px; }
@media (min-width: 600px) {
  body.has-cookie-banner main { padding-bottom: 120px; }
}

/* R11.1 — Cookie settings button styled as an inline footer link */
.footer-link {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--accent);
  cursor: pointer;
  text-decoration: none;
}
.footer-link:hover { text-decoration: underline; }
