/* ===== tokens ===== */
:root {
  --ink: #14110D;
  --paper: #F0E6D2;
  --paper-raised: #FFFBF0;
  --paper-deep: #DCC9A0;
  --safety: #FF5A1F;
  --safety-ink: #C6440F;
  --marigold: #F2A91E;
  --verified: #1C6B43;
  --line: #B7A878;

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Public Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
}

body {
  padding: 18px 16px 48px;
  background-color: var(--paper);
  background-image: radial-gradient(circle at 1px 1px, rgba(20,17,13,0.07) 1px, transparent 0);
  background-size: 14px 14px;
}

:focus-visible { outline: 3px solid var(--safety); outline-offset: 2px; }

/* ===== sheet (auth / dashboard / scan / admin) ===== */
.sheet { max-width: 460px; margin: 0 auto; }

/* ===== landing container ===== */
.land {
  max-width: 460px;
  margin: 0 auto;
}

/* ===== landing nav ===== */
.land-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  margin: -18px -16px 0;
  background: var(--ink);
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.land-nav::-webkit-scrollbar { display: none; }
.land-nav::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: repeating-linear-gradient(45deg, var(--safety) 0 6px, var(--ink) 6px 12px);
  pointer-events: none;
}

.land-tab {
  flex-shrink: 0;
  padding: 14px 15px 11px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: rgba(240,230,210,0.5);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.land-tab:hover { color: var(--paper-raised); }
.land-tab.is-active { color: var(--marigold); border-bottom-color: var(--marigold); }

/* ===== land pages (show/hide) ===== */
.land-page { display: none; }
.land-page.is-active { display: block; }

/* ===== header ===== */
.head {
  position: relative;
  margin: 0 -16px 22px;
  padding: 30px 20px 22px;
  background: var(--ink);
  overflow: hidden;
}
.head::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: repeating-linear-gradient(45deg, var(--safety) 0 10px, var(--ink) 10px 20px);
}

/* auth/dashboard/scan: head bleeds top too */
.sheet .head { margin-top: -18px; }

.eyebrow {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--marigold);
}
.title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 13vw, 3.4rem);
  line-height: 0.94;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--paper-raised);
}
.sub {
  margin: 0;
  max-width: 32ch;
  font-size: 0.97rem;
  line-height: 1.45;
  color: #D9CCAE;
}

.quota-info { margin: 14px 0 0; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.02em; color: #D9CCAE; }
.quota-info.is-low { color: var(--safety); font-weight: 700; }

.link-btn {
  display: inline-block;
  margin-top: 14px;
  padding: 0;
  border: none;
  background: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--verified);
  text-decoration: underline;
  cursor: pointer;
}
.link-btn:hover { color: var(--safety-ink); }
.head .link-btn { color: var(--marigold); }
.head .link-btn:hover { color: var(--safety); }

/* ===== intake card ===== */
.intake {
  position: relative;
  z-index: 0;
  background: var(--paper-raised);
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.intake::after {
  content: "";
  position: absolute;
  top: 7px; left: 7px; right: -7px; bottom: -7px;
  z-index: -1;
  background: var(--paper-deep);
  border: 2px solid var(--ink);
  border-radius: inherit;
}

.viewfinder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4/3;
  border: 2px dashed var(--ink);
  background: repeating-linear-gradient(135deg, rgba(20,17,13,0.05) 0, rgba(20,17,13,0.05) 2px, transparent 2px, transparent 10px);
  cursor: pointer;
  overflow: hidden;
}
.viewfinder input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.corner { position: absolute; width: 22px; height: 22px; border: 3px solid var(--ink); opacity: 0.55; }
.corner.tl { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.corner.tr { top: 8px; right: 8px; border-left: none; border-bottom: none; }
.corner.bl { bottom: 8px; left: 8px; border-right: none; border-top: none; }
.corner.br { bottom: 8px; right: 8px; border-left: none; border-top: none; }

.viewfinder-cta { display: flex; flex-direction: column; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.08em; color: var(--ink); }
.cam-icon { font-size: 1.6rem; line-height: 1; color: var(--safety-ink); }

#preview { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#preview[src]:not([src=""]) { display: block; }
.viewfinder:has(#preview[src]:not([src=""])) .viewfinder-cta { display: none; }

.divider { display: flex; align-items: center; gap: 10px; color: #8a8478; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.field { width: 100%; padding: 13px 14px; border: 2px solid var(--ink); border-radius: 3px; background: var(--paper); font-family: var(--font-mono); font-size: 0.95rem; color: var(--ink); }
.field::placeholder { color: #9b9586; }

.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: #41464c; cursor: pointer; }
.checkbox-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--verified); cursor: pointer; }

.cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 15px;
  border: 2px solid var(--ink); border-radius: 3px;
  background: var(--safety); color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.15s ease;
}
.cta:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ink); background: var(--safety-ink); }
.cta:disabled { background: #b9b3a3; box-shadow: 3px 3px 0 var(--line); cursor: not-allowed; }
.cta--muted { background: #b9b3a3; box-shadow: 3px 3px 0 var(--line); }
.cta-arrow { font-size: 0.8rem; }

/* ===== dashboard history ===== */
.history { margin-top: 26px; }
.history-title { margin: 0 0 12px; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--safety-ink); }
.history-list { position: relative; z-index: 0; display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; }
.history-list::after { content: ""; position: absolute; top: 6px; left: 6px; right: -6px; bottom: -6px; z-index: -1; background: var(--paper-deep); border: 2px solid var(--ink); }

.history-item { position: relative; background: var(--paper-raised); border: 2px solid var(--ink); border-top: none; padding: 12px 16px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.history-list .history-item:first-child { border-top: 2px solid var(--ink); }
.history-item::before { content: ""; display: block; position: absolute; top: -5px; left: -1px; right: -1px; height: 10px; background-image: radial-gradient(circle 4.5px, var(--paper) 4.5px, transparent 5px); background-size: 18px 10px; background-position: 6px -5px; }
.history-list .history-item:first-child::before { display: none; }
.history-item .h-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.history-item .h-product { font-size: 0.88rem; font-weight: 600; word-break: break-word; }
.history-item .h-date { font-family: var(--font-mono); font-size: 0.7rem; color: #8a8478; }
.history-item .h-offer { flex-shrink: 0; font-family: var(--font-mono); font-weight: 600; font-size: 0.85rem; color: var(--verified); text-align: right; }
.history-empty { padding: 14px 2px; font-size: 0.85rem; color: #6b675c; }

/* ===== status ===== */
.status { min-height: 1.2em; margin: 16px 4px; font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.02em; color: #585d63; text-align: center; }
.status.is-loading::after { content: ""; display: inline-block; animation: dots 1.2s steps(4,end) infinite; }
.status.is-error { color: var(--safety-ink); font-weight: 600; }

@media (prefers-reduced-motion: no-preference) {
  @keyframes dots { 0%{content:""} 25%{content:"."} 50%{content:".."} 75%,100%{content:"..."} }
}

/* ===== result ticket ===== */
.result { position: relative; z-index: 0; display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; }
.result::after { content: ""; position: absolute; top: 6px; left: 6px; right: -6px; bottom: -6px; z-index: -1; background: var(--paper-deep); border: 2px solid var(--ink); }

.section { position: relative; background: var(--paper-raised); border: 2px solid var(--ink); border-top: none; padding: 16px; }
.result .section:first-child, .land-steps { border-top: 2px solid var(--ink); }
.section::before { content: ""; display: block; position: absolute; top: -6px; left: -2px; right: -2px; height: 11px; background-image: radial-gradient(circle 5px, var(--paper) 5px, transparent 5.5px); background-size: 20px 11px; background-position: 6px -5px; }
.result .section:first-child::before, .land-steps::before { display: none; }
.section h2 { margin: 0 0 10px; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--safety-ink); }

.line { display: flex; align-items: baseline; gap: 8px; padding: 5px 0; }
.line .label { flex-shrink: 0; font-size: 0.85rem; color: #41464c; }
.line .leader { flex: 1; border-bottom: 1px dotted var(--line); margin-bottom: 4px; }
.line .value { flex-shrink: 1; min-width: 0; font-family: var(--font-mono); font-weight: 600; font-size: 0.9rem; text-align: right; white-space: normal; overflow-wrap: break-word; word-break: break-word; }

.big { font-family: var(--font-mono); font-weight: 700; font-size: 2rem; color: var(--ink); letter-spacing: -0.02em; }

.listing { padding: 10px 0; border-top: 2px dashed var(--line); }
.listing:first-of-type { border-top: none; padding-top: 2px; }
.listing .l-title { font-size: 0.9rem; margin-bottom: 3px; }
.listing .l-price { font-family: var(--font-mono); font-weight: 600; }
.listing a { display: inline-block; margin-top: 4px; color: var(--verified); font-family: var(--font-mono); font-size: 0.8rem; text-decoration: none; border-bottom: 1px solid currentColor; }

.empty-note { font-size: 0.85rem; color: #6b675c; margin: 0; }
.fb-link { display: inline-flex; align-items: center; gap: 6px; color: var(--verified); font-family: var(--font-mono); font-size: 0.9rem; text-decoration: none; border-bottom: 1px solid currentColor; }

.badge { display: inline-block; margin-left: 6px; font-family: var(--font-mono); font-weight: 700; font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 9px; border: 2px solid var(--ink); border-radius: 999px; background: var(--marigold); color: var(--ink); vertical-align: middle; }

.offer-section { text-align: center; padding-top: 22px; padding-bottom: 22px; }
.stamp { display: inline-block; margin: 4px 0 14px; padding: 16px 30px; background: rgba(242,169,30,0.14); border: 4px double var(--verified); border-radius: 50% / 42%; transform: rotate(-6deg); color: var(--verified); }
.stamp .stamp-label { display: block; font-family: var(--font-display); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 2px; }
.stamp .stamp-value { display: block; font-family: var(--font-mono); font-weight: 700; font-size: 1.7rem; letter-spacing: -0.01em; }
.reasoning { max-width: 34ch; margin: 0 auto; font-size: 0.85rem; line-height: 1.5; color: #41464c; }

/* ===== footer ===== */
.foot { margin: 28px 4px 0; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.03em; color: #8a8478; text-align: center; }

/* ===== HOME PAGE ===== */
.land-hero { position: relative; z-index: 0; display: flex; flex-direction: column; align-items: center; gap: 26px; padding: 30px 4px 34px; }
.land-hero::before { content: ""; position: absolute; top: -10px; left: -16px; right: -16px; bottom: -10px; z-index: -1; background: repeating-linear-gradient(45deg, rgba(255,90,31,0.12) 0 14px, transparent 14px 28px); }

.price-tag { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 38px 18px; background: var(--paper-raised); border: 3px solid var(--ink); border-radius: 4px; transform: rotate(-3deg); box-shadow: 5px 5px 0 var(--marigold), 5px 5px 0 3px var(--ink); }
.price-tag-hole { position: absolute; top: 10px; left: 12px; width: 10px; height: 10px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
.price-tag-old { font-family: var(--font-mono); font-size: 1.05rem; color: var(--safety-ink); text-decoration: line-through; text-decoration-thickness: 2px; }
.price-tag-new { font-family: var(--font-mono); font-weight: 700; font-size: 2.1rem; color: var(--verified); background: rgba(28,107,67,0.1); border: 3px solid var(--verified); border-radius: 50%; padding: 8px 20px; line-height: 1; }
.price-tag-caption { margin-top: 6px; font-family: var(--font-display); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }

.land-cta { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.land-cta .cta { max-width: 320px; }

.land-steps .step-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.step { display: flex; align-items: flex-start; gap: 12px; }
.step-num { flex-shrink: 0; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--ink); border-radius: 50%; background: var(--safety); font-family: var(--font-mono); font-weight: 700; font-size: 0.88rem; color: #fff; }
.step-body { display: flex; flex-direction: column; gap: 2px; }
.step-title { font-weight: 600; font-size: 0.92rem; }
.step-text { font-size: 0.82rem; color: #6b675c; }

/* ===== CE OFERIM PAGE ===== */
.feat-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  z-index: 0;
  margin-bottom: 6px;
}
.feat-grid::after {
  content: "";
  position: absolute;
  top: 6px; left: 6px; right: -6px; bottom: -6px;
  z-index: -1;
  background: var(--paper-deep);
  border: 2px solid var(--ink);
}

.feat-card {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--paper-raised);
  border: 2px solid var(--ink);
  border-top: none;
  padding: 16px;
}
.feat-card:first-child { border-top: 2px solid var(--ink); }

.feat-card::before {
  content: "";
  display: block;
  position: absolute;
  top: -6px; left: -2px; right: -2px;
  height: 11px;
  background-image: radial-gradient(circle 5px, var(--paper) 5px, transparent 5.5px);
  background-size: 20px 11px;
  background-position: 6px -5px;
}
.feat-card:first-child::before { display: none; }

.feat-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  background: var(--ink);
  color: var(--paper-raised);
}
.feat-icon--offer { background: var(--safety); border-color: var(--safety-ink); color: #fff; font-size: 1.1rem; }
.feat-icon--hist  { background: var(--verified); border-color: #154e31; color: #fff; font-size: 1rem; }
.feat-icon--mob   { background: var(--paper-deep); color: var(--ink); font-size: 1.1rem; }

.feat-body { flex: 1; min-width: 0; }
.feat-title { margin: 0 0 6px; font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: 0.02em; }
.feat-text { margin: 0 0 8px; font-size: 0.85rem; line-height: 1.5; color: #41464c; }
.feat-detail { margin-top: 4px; }
.feat-detail .line { padding: 2px 0; }

.feat-cta {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.feat-cta .cta { max-width: 320px; }

/* ===== PLANURI PAGE ===== */
.plans-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 26px;
}

.plan-card {
  position: relative;
  background: var(--paper-raised);
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 20px;
  box-shadow: 4px 4px 0 var(--ink);
}
.plan-card--premium {
  border-color: var(--marigold);
  box-shadow: 4px 4px 0 var(--marigold);
  background: #FFFDF5;
}

.plan-coming { margin-bottom: 10px; }

.plan-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}
.plan-card--premium .plan-head { border-bottom-color: var(--marigold); }

.plan-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.plan-price-wrap { text-align: right; }
.plan-price { font-family: var(--font-mono); font-weight: 700; font-size: 2rem; letter-spacing: -0.02em; line-height: 1; }
.plan-price--tbd { color: #8a8478; }
.plan-unit { display: block; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; color: #8a8478; }

.plan-feats {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pf {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
}
.pf::before {
  content: "✓";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--verified);
  color: var(--verified);
  font-size: 0.72rem;
  font-weight: 700;
}
.pf-no { color: #8a8478; }
.pf-no::before {
  content: "×";
  border-color: var(--line);
  color: var(--line);
}
.pf-highlight { font-weight: 600; }
.pf-highlight::before { background: var(--verified); color: #fff; }

.plan-note {
  margin: 12px 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #6b675c;
  text-align: center;
}

.plans-compare {
  position: relative;
  background: var(--paper-raised);
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 6px;
}
.plans-compare h2 {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--safety-ink);
}

/* ===== CONTACT PAGE ===== */
.contact-info {
  border-top: 2px solid var(--ink) !important;
  margin-bottom: 24px;
}
.contact-info h2 { margin: 0 0 12px; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--safety-ink); }

.faq { margin-bottom: 8px; }
.faq-title {
  margin: 0 0 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--safety-ink);
  padding: 0 0 10px;
}

.faq-item {
  border-top: 2px solid var(--ink);
  background: var(--paper-raised);
}
.faq-item:last-child { border-bottom: 2px solid var(--ink); }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}
.faq-q:hover { background: rgba(20,17,13,0.03); }
.faq-arrow {
  flex-shrink: 0;
  font-size: 0.7rem;
  color: var(--safety-ink);
  transition: transform 0.2s ease;
}
.faq-item.is-open .faq-arrow { transform: rotate(90deg); }

.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.28s ease;
}
.faq-item.is-open .faq-a { max-height: 400px; }
.faq-a p {
  margin: 0;
  padding: 0 16px 16px;
  font-size: 0.87rem;
  line-height: 1.6;
  color: #41464c;
}

/* ===== admin console ===== */
.admin-shell {
  --adm-bg: #14171a; --adm-surface: #1c2024; --adm-surface-raised: #242931;
  --adm-line: #2f3640; --adm-text: #e8e6e0; --adm-text-dim: #888e96;
  --adm-accent: #ff5a1f; --adm-paid: #3fbf7f; --adm-free: #f0a83c; --adm-blocked: #ff5d5d;
  max-width: 720px; margin: 0 auto;
  background: var(--adm-bg); color: var(--adm-text);
  border-radius: 8px; padding: 20px 16px 28px;
  font-family: var(--font-body);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.adm-bar { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--adm-line); }
.adm-bar-id { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.adm-eyebrow { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--adm-accent); }
.adm-operator { font-family: var(--font-mono); font-size: 0.78rem; color: var(--adm-text-dim); }
.adm-link { border: none; background: none; padding: 0; font-family: var(--font-mono); font-size: 0.75rem; color: var(--adm-text-dim); text-decoration: underline; cursor: pointer; }
.adm-link:hover { color: var(--adm-text); }
.adm-unlock { display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.adm-unlock-sub { margin: 0; font-size: 0.88rem; color: var(--adm-text-dim); }
.adm-input { padding: 11px 13px; border: 1px solid var(--adm-line); border-radius: 3px; background: var(--adm-surface); color: var(--adm-text); font-family: var(--font-mono); font-size: 0.9rem; }
.adm-input::placeholder { color: #555c64; }
.adm-cta { padding: 12px; border: none; border-radius: 3px; background: var(--adm-accent); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.05em; cursor: pointer; }
.adm-cta:disabled { background: #5a5d62; }
.adm-status { min-height: 1.1em; margin: 10px 0; font-family: var(--font-mono); font-size: 0.78rem; color: var(--adm-text-dim); }
.adm-status.is-loading::after { content: ""; display: inline-block; animation: dots 1.2s steps(4,end) infinite; }
.adm-status.is-error { color: var(--adm-blocked); font-weight: 600; }
.adm-stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--adm-line); border: 1px solid var(--adm-line); border-radius: 4px; overflow: hidden; margin-bottom: 18px; }
@media (min-width: 560px) { .adm-stats { grid-template-columns: repeat(5,1fr); } }
.adm-stat { background: var(--adm-surface); padding: 14px 12px; border-top: 3px solid var(--adm-text-dim); display: flex; flex-direction: column; gap: 4px; }
.adm-stat[data-tone="total"] { border-top-color: var(--adm-accent); }
.adm-stat[data-tone="paid"]  { border-top-color: var(--adm-paid); }
.adm-stat[data-tone="free"]  { border-top-color: var(--adm-free); }
.adm-stat[data-tone="blocked"] { border-top-color: var(--adm-blocked); }
.adm-stat-value { font-family: var(--font-mono); font-weight: 600; font-size: 1.7rem; line-height: 1; letter-spacing: -0.02em; }
.adm-stat-label { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--adm-text-dim); }
.adm-list { display: flex; flex-direction: column; gap: 10px; }
.adm-card { background: var(--adm-surface); border: 1px solid var(--adm-line); border-left: 3px solid var(--adm-text-dim); border-radius: 4px; padding: 14px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; box-shadow: 2px 2px 0 var(--adm-line); }
.adm-card[data-status="paid"]    { border-left-color: var(--adm-paid); }
.adm-card[data-status="free"]    { border-left-color: var(--adm-free); }
.adm-card[data-status="blocked"] { border-left-color: var(--adm-blocked); }
.adm-card-id { display: flex; flex-direction: column; gap: 4px; min-width: 200px; }
.adm-email { font-family: var(--font-mono); font-size: 0.88rem; font-weight: 600; word-break: break-word; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.adm-meta { font-size: 0.75rem; color: var(--adm-text-dim); }
.adm-badge { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 6px; border-radius: 999px; border: 1px solid currentColor; }
.adm-badge-admin   { color: var(--adm-accent); }
.adm-badge-blocked { color: var(--adm-blocked); }
.adm-card-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.adm-segmented { display: inline-flex; border: 1px solid var(--adm-line); border-radius: 3px; overflow: hidden; }
.adm-seg-btn { padding: 7px 12px; border: none; background: var(--adm-surface-raised); color: var(--adm-text-dim); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer; }
.adm-seg-btn + .adm-seg-btn { border-left: 1px solid var(--adm-line); }
.adm-seg-btn[data-active="true"] { color: #fff; }
.adm-seg-btn[data-plan="free"][data-active="true"] { background: var(--adm-free); }
.adm-seg-btn[data-plan="paid"][data-active="true"] { background: var(--adm-paid); }
.adm-limit { width: 56px; padding: 7px 8px; border: 1px solid var(--adm-line); border-radius: 3px; background: var(--adm-surface-raised); color: var(--adm-text); font-family: var(--font-mono); font-size: 0.8rem; text-align: center; }
.adm-block-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.adm-chip { padding: 6px 10px; border: 1px solid var(--adm-line); border-radius: 999px; background: var(--adm-surface-raised); color: var(--adm-text-dim); font-family: var(--font-mono); font-size: 0.7rem; cursor: pointer; }
.adm-chip:hover { border-color: var(--adm-blocked); color: var(--adm-blocked); }
.adm-block-status { font-family: var(--font-mono); font-size: 0.72rem; color: var(--adm-blocked); display: flex; align-items: center; gap: 6px; }
.adm-unblock-x { border: 1px solid var(--adm-blocked); background: none; color: var(--adm-blocked); border-radius: 999px; width: 18px; height: 18px; line-height: 1; cursor: pointer; font-size: 0.7rem; }

@media (prefers-reduced-motion: no-preference) {
  .adm-list, .adm-stats { animation: adm-fade-in 0.25s ease both; }
  @keyframes adm-fade-in { from{opacity:0;transform:translateY(4px)} to{opacity:1;transform:translateY(0)} }
}

@media (prefers-reduced-motion: reduce) { .cta { transition: none; } }

/* ===== desktop ===== */
@media (min-width: 900px) {
  .land    { max-width: 1080px; }
  .sheet   { max-width: 560px; }

  /* nav: reset mobile bleed, stays sticky within 1080px container */
  .land-nav { margin: 0; border-radius: 4px 4px 0 0; }

  /* home page 2-col grid */
  #page-home.is-active {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    grid-template-areas:
      "head  hero"
      "steps steps"
      "foot  foot";
    column-gap: 48px;
    row-gap: 34px;
    align-items: start;
  }
  #page-home .head       { grid-area: head; margin: 0; align-self: center; }
  #page-home .land-hero  { grid-area: hero; align-self: center; padding-top: 0; }
  #page-home .land-steps { grid-area: steps; }
  #page-home .foot       { grid-area: foot; margin-top: 4px; }

  #page-home .land-steps .step-list { flex-direction: row; gap: 24px; }
  #page-home .land-steps .step { flex-direction: column; flex: 1; text-align: center; align-items: center; }

  /* features page: 2-col grid */
  .feat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  /* restore ticket borders for grid: first row top-border */
  .feat-card { border-top: none; border-left: none; }
  .feat-card:nth-child(odd)  { border-left: 2px solid var(--ink); }
  .feat-card:nth-child(1),
  .feat-card:nth-child(2)    { border-top: 2px solid var(--ink); }
  .feat-card:nth-child(1)::before,
  .feat-card:nth-child(2)::before { display: none; }

  /* plans page: side by side */
  .plans-grid { flex-direction: row; align-items: stretch; }
  .plan-card  { flex: 1; }

  /* scan tool 2-pane */
  #appView { max-width: 1000px; }
  #appView:not([hidden]) {
    display: grid;
    grid-template-columns: 380px 1fr;
    grid-template-areas:
      "head   head"
      "intake result"
      "status result"
      "foot   foot";
    column-gap: 32px;
    align-items: start;
  }
  #appView .head   { grid-area: head; }
  #appView .intake { grid-area: intake; }
  #appView #status { grid-area: status; }
  #appView #result { grid-area: result; }
  #appView .foot   { grid-area: foot; }
}
