/* ---------- Tokens ---------- */
:root {
  --forest-900: #0F3D22;
  --forest-800: #14532D;
  --forest-700: #166534;
  --forest-600: #1F7A3F;
  --yellow-400: #FACC15;
  --yellow-300: #FDE047;
  --ink: #0A0F0C;
  --ink-2: #2C3A33;
  --muted: #5C6B63;
  --bone: #F8F7F2;
  --line: #E6E3DA;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 2px rgba(15, 61, 34, 0.06), 0 2px 6px rgba(15, 61, 34, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 61, 34, 0.08);
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1180px;
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
h1 { font-weight: 700; }
h2 { font-weight: 600; font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; }
h4 { font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
p  { margin: 0; color: var(--ink-2); }

.eyebrow {
  display: inline-block;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest-700);
  background: rgba(20, 83, 45, 0.08);
  padding: 8px 14px;
  border-radius: 999px;
}

.section__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--forest-900);
  margin-bottom: 14px;
}
.section__title--light { color: var(--white); }
.section__lede { font-size: 1.125rem; color: var(--muted); max-width: 640px; margin-bottom: 56px; }
.section__lede--light { color: rgba(255,255,255,0.85); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 12px 22px;
  border-radius: 12px;
  transition: transform 120ms ease, box-shadow 200ms ease, background 200ms ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--yellow-400);
  color: var(--forest-900);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 4px 14px rgba(250, 204, 21, 0.45);
}
.btn--primary:hover { background: var(--yellow-300); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn--ghost:hover { background: rgba(255,255,255,0.08); }
.btn--lg { padding: 16px 28px; font-size: 1rem; }

/* ---------- Ticker (sliding gas prices) ---------- */
.ticker {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #0A2615;
  color: var(--white);
  border-bottom: 1px solid rgba(250, 204, 21, 0.18);
  padding: 8px 16px;
  font-family: var(--display);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 60;
  overflow: hidden;
}
.ticker__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--yellow-400);
  white-space: nowrap;
}
.ticker__dot {
  width: 8px; height: 8px;
  background: var(--yellow-400);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.6);
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(250, 204, 21, 0); }
  100% { box-shadow: 0 0 0 0 rgba(250, 204, 21, 0); }
}
.ticker__viewport {
  flex: 1 1 auto;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0, #000 36px, #000 calc(100% - 36px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 36px, #000 calc(100% - 36px), transparent 100%);
}
.ticker__track {
  display: inline-flex;
  gap: 36px;
  padding-left: 100%;
  white-space: nowrap;
  animation: ticker-slide 38s linear infinite;
}
.ticker__track:hover { animation-play-state: paused; }
@keyframes ticker-slide {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-100%, 0, 0); }
}
.ticker__item {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: rgba(255, 255, 255, 0.92);
}
.ticker__item strong {
  color: var(--white);
  font-weight: 600;
}
.ticker__item .price {
  color: var(--yellow-400);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.ticker__item .delta--up   { color: #ff7a7a; }
.ticker__item .delta--down { color: #94f59f; }
.ticker__loading {
  color: rgba(255,255,255,0.55);
  padding-left: 0;
}
.ticker__meta {
  flex: 0 0 auto;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

/* ---------- Reveal-on-scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .ticker__track { animation: none; }
  .ticker__dot { animation: none; }
  .hero__mark--float { animation: none; }
}

/* ---------- Floating logo ---------- */
.hero__mark--float { animation: floatY 6s ease-in-out infinite; }
@keyframes floatY {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50%      { transform: rotate(-2deg) translateY(-12px); }
}

/* ---------- Nav ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px;
  background: var(--forest-900);
  color: var(--white);
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--white); }
.brand__mark { width: 34px; height: 34px; }
.brand__word {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.22em;
}
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { font-size: 0.95rem; color: rgba(255,255,255,0.85); }
.nav__links a:hover { color: var(--white); }
.nav__links .btn { color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 96px 24px 80px;
}
.hero__title {
  font-size: clamp(3rem, 7vw, 5.25rem);
  font-weight: 700;
  color: var(--forest-900);
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero__title .accent {
  background: linear-gradient(180deg, var(--forest-700) 0%, var(--forest-900) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}
.hero__title .accent::after {
  content: "";
  display: block;
  width: 120px; height: 6px;
  background: var(--yellow-400);
  border-radius: 999px;
  margin-top: 14px;
}
.hero__lede { font-size: 1.18rem; color: var(--ink-2); max-width: 520px; margin-bottom: 32px; }

.hero__art {
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.hero__mark {
  width: 320px; height: 320px;
  border-radius: 64px;
  box-shadow: 0 30px 80px rgba(20, 83, 45, 0.25), 0 8px 24px rgba(20, 83, 45, 0.15);
  overflow: hidden;
  transform: rotate(-4deg);
}
.hero__mark img { width: 100%; height: 100%; }
.hero__art::before {
  content: "";
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(250,204,21,0.35), transparent 70%);
  top: -30px; right: -10px;
  filter: blur(10px);
  z-index: -1;
}

/* ---------- Email form ---------- */
.access {
  display: flex; flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
  max-width: 520px;
}
.access input[type="email"] {
  flex: 1 1 240px;
  font: inherit;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.access input[type="email"]:focus {
  border-color: var(--forest-600);
  box-shadow: 0 0 0 4px rgba(20, 83, 45, 0.12);
}
.access .btn { flex: 0 0 auto; }
.access__note,
.access__success {
  width: 100%;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
}
.access__success { color: var(--forest-700); font-weight: 500; }

/* ---------- How it works ---------- */
.how { background: var(--bone); padding: 96px 0; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.step__num {
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--forest-700);
  letter-spacing: 0.15em;
  margin-bottom: 18px;
}
.step h3 { color: var(--forest-900); margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.98rem; }

/* ---------- Coverage ---------- */
.coverage {
  background: var(--forest-900);
  color: var(--white);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
.coverage::before {
  content: "";
  position: absolute;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(250,204,21,0.18), transparent 65%);
  top: -120px; right: -120px;
  border-radius: 50%;
}
.regions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  position: relative;
}
.regions li {
  font-family: var(--display);
  font-weight: 500;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 0.95rem;
}

/* ---------- Why ---------- */
.why { padding: 96px 0; }
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  background: var(--white);
  transition: border-color 200ms ease, transform 200ms ease;
}
.card:hover { border-color: var(--forest-600); transform: translateY(-2px); }
.card h3 { color: var(--forest-900); margin-bottom: 8px; }
.card p { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { background: var(--bone); padding: 96px 0; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.faq details[open] { border-color: var(--forest-600); }
.faq summary {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--forest-900);
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--forest-700);
  transition: transform 200ms ease;
}
.faq details[open] summary::after { content: "−"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin-top: 12px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta {
  padding: 96px 0;
  background: linear-gradient(180deg, var(--white) 0%, var(--bone) 100%);
}
.cta__inner {
  text-align: center;
  background: var(--forest-900);
  color: var(--white);
  padding: 72px 32px;
  border-radius: 32px;
  position: relative;
  overflow: hidden;
}
.cta__inner::before {
  content: "";
  position: absolute;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(250,204,21,0.2), transparent 70%);
  top: -100px; left: -100px;
}
.cta__inner h2 { color: var(--white); margin-bottom: 14px; position: relative; }
.cta__inner p { color: rgba(255,255,255,0.8); max-width: 480px; margin: 0 auto 28px; position: relative; }
.cta__inner .btn { position: relative; }

/* ---------- Footer ---------- */
.footer {
  background: var(--forest-900);
  color: rgba(255,255,255,0.85);
  padding: 64px 0 24px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 48px;
}
.brand--footer { color: var(--white); }
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer h4 { color: rgba(255,255,255,0.6); margin-bottom: 14px; }
.footer ul li { margin-bottom: 8px; font-size: 0.95rem; }
.footer ul li a:hover { color: var(--white); }
.footer__base {
  display: flex; justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ============================================================
   ORDER PAGE
   ============================================================ */
.order-main { background: var(--bone); padding-bottom: 80px; }

.order-hero {
  background: var(--white);
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
}
.order-hero h1 {
  font-family: var(--display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--forest-900);
  letter-spacing: -0.02em;
  margin: 14px 0 10px;
}
.order-hero p { font-size: 1.1rem; color: var(--muted); max-width: 540px; }

/* layout: two columns on desktop */
.order-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
  margin-top: 48px;
}

/* form sections */
.order-form { display: flex; flex-direction: column; gap: 24px; }
.order-section {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.order-section legend {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--forest-900);
  margin-bottom: 18px;
  padding: 0;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--forest-900);
  color: var(--yellow-400);
  font-size: 0.85rem;
  font-weight: 700;
}
.order-hint {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 14px;
}
.order-hint--center { text-align: center; margin-top: 12px; }

/* grade cards */
.grades { display: grid; gap: 12px; }
.grade input[type="radio"] {
  position: absolute;
  opacity: 0; width: 0; height: 0;
}
.grade__card {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  background: var(--white);
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.grade__card:hover { border-color: var(--forest-600); transform: translateY(-1px); }
.grade input:focus-visible + .grade__card {
  border-color: var(--forest-700);
  box-shadow: 0 0 0 4px rgba(20, 83, 45, 0.15);
}
.grade.is-selected .grade__card,
.grade input:checked + .grade__card {
  border-color: var(--forest-800);
  background: linear-gradient(180deg, #F4FBF6, #FFFFFF);
  box-shadow: 0 6px 20px rgba(20, 83, 45, 0.10);
}
.grade__top { display: flex; align-items: center; gap: 12px; flex: 1 1 auto; }
.grade__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--forest-900);
}
.grade__sub { font-size: 0.85rem; color: var(--muted); margin-top: 2px; }
.grade__badge {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--yellow-400);
  color: var(--forest-900);
  margin-left: auto;
}
.grade__badge--marine { background: #DBEAFE; color: #1E40AF; }
.grade__price {
  display: inline-flex; align-items: baseline; gap: 4px;
  text-align: right;
  flex: 0 0 auto;
}
.grade__amount {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--forest-900);
  letter-spacing: -0.01em;
}
.grade__unit { color: var(--muted); font-size: 0.85rem; }
.grade__live {
  display: inline-flex; align-items: center; gap: 4px;
  margin-left: 10px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest-700);
  font-weight: 600;
}
.grade__live .dot {
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--forest-600);
  animation: pulse-dot 1.6s ease-out infinite;
}
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(31, 122, 63, 0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(31, 122, 63, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 122, 63, 0); }
}

/* quantity controls */
.qty {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 16px;
}
.qty input[type="number"] {
  width: 96px;
  text-align: center;
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--forest-900);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 10px 8px;
  outline: none;
  -moz-appearance: textfield;
}
.qty input[type="number"]::-webkit-outer-spin-button,
.qty input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}
.qty input[type="number"]:focus { border-color: var(--forest-700); box-shadow: 0 0 0 4px rgba(20, 83, 45, 0.12); }
.qty__btn {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--forest-900);
  color: var(--yellow-400);
  font-size: 1.5rem;
  font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 150ms ease, transform 150ms ease;
}
.qty__btn:hover { background: var(--forest-700); }
.qty__btn:active { transform: scale(0.94); }
.qty__unit {
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.95rem;
  margin-left: 4px;
}

/* slider */
input[type="range"]#gallonsRange {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: linear-gradient(90deg, var(--forest-700), var(--yellow-400));
  border-radius: 999px;
  outline: none;
  margin: 8px 0 6px;
}
input[type="range"]#gallonsRange::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--forest-800);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(20, 83, 45, 0.3);
  transition: transform 150ms ease;
}
input[type="range"]#gallonsRange::-webkit-slider-thumb:hover { transform: scale(1.1); }
input[type="range"]#gallonsRange::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--forest-800);
  cursor: pointer;
}
.qty__marks {
  display: flex; justify-content: space-between;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 16px;
}
.qty__quick {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.qty__quick button {
  font-family: var(--display);
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bone);
  border: 1.5px solid var(--line);
  color: var(--forest-900);
  font-size: 0.88rem;
  transition: border-color 150ms ease, background 150ms ease;
}
.qty__quick button:hover { border-color: var(--forest-700); }
.qty__quick button.is-active {
  background: var(--forest-900);
  color: var(--yellow-400);
  border-color: var(--forest-900);
}

/* fields */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
.field label {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select {
  font: inherit;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.field input:focus,
.field select:focus {
  border-color: var(--forest-700);
  box-shadow: 0 0 0 4px rgba(20, 83, 45, 0.12);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.btn--block { display: flex; width: 100%; }

/* summary */
.summary {
  position: sticky;
  top: 96px;
}
.summary__inner {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}
.summary h3 {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.summary__row {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--ink-2);
}
.summary__row span:last-child {
  font-family: var(--display);
  font-weight: 500;
  color: var(--forest-900);
}
.summary hr { border: 0; border-top: 1px dashed var(--line); margin: 14px 0; }
.summary__row--total {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--forest-900);
  padding-top: 14px;
}
.summary__row--total span:last-child { font-size: 1.5rem; transition: color 200ms ease; }
.summary__row--total .just-updated { color: var(--forest-600); }
.summary__row--total span.just-updated {
  animation: bump 350ms ease-out;
}
@keyframes bump {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.06); color: var(--forest-600); }
  100% { transform: scale(1); }
}
/* quality guarantee badge */
.guarantee {
  display: flex; align-items: flex-start; gap: 12px;
  margin: 22px 0 18px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #F4FBF6, #FFFFFF);
  border: 1.5px solid var(--forest-700);
  border-radius: 14px;
  color: var(--ink);
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.guarantee:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(20, 83, 45, 0.12);
}
.guarantee__icon {
  flex: 0 0 auto;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--forest-900);
  color: var(--yellow-400);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  margin-top: 2px;
}
.guarantee strong {
  display: block;
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--forest-900);
  margin-bottom: 3px;
}
.guarantee span {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}
.guarantee em {
  font-style: normal;
  color: var(--forest-700);
  font-weight: 600;
}

.trust {
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  display: flex; flex-direction: column; gap: 8px;
}
.trust li {
  position: relative;
  padding-left: 22px;
  font-size: 0.85rem;
  color: var(--muted);
}
.trust li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--forest-700);
  box-shadow: inset 0 0 0 3px var(--white), 0 0 0 1px var(--forest-700);
}

/* confirmation modal */
.modal {
  position: fixed; inset: 0;
  background: rgba(10, 38, 21, 0.6);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
  padding: 20px;
  backdrop-filter: blur(8px);
  animation: fadeIn 200ms ease;
}
.modal[hidden] { display: none; }
.modal__card {
  background: var(--white);
  border-radius: 24px;
  padding: 40px 36px 32px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
  animation: slideUp 280ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.modal__logo { width: 64px; height: 64px; margin: 0 auto 16px; }
.modal__card h2 { color: var(--forest-900); margin-bottom: 12px; }
.modal__card p { color: var(--ink-2); margin-bottom: 8px; line-height: 1.6; }
.modal__card .btn { margin-top: 18px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 900px) {
  .order-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
  .field-row { grid-template-columns: 1fr; }
  .grade__card { flex-direction: column; align-items: flex-start; gap: 10px; }
  .grade__price { align-self: flex-end; }
}

/* ============================================================
   POLICY PAGE
   ============================================================ */
.policy-main { background: var(--bone); padding-bottom: 80px; }
.policy-hero {
  background: var(--white);
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
}
.policy-hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  color: var(--forest-900);
  letter-spacing: -0.02em;
  margin: 14px 0 16px;
  max-width: 760px;
}
.policy-mission {
  font-size: 1.1rem;
  color: var(--ink-2);
  max-width: 720px;
  line-height: 1.6;
}
.policy-mission--small { font-size: 0.95rem; margin-top: 24px; }
.policy-meta {
  display: flex; flex-wrap: wrap; gap: 24px;
  margin-top: 28px;
  font-size: 0.85rem;
  color: var(--muted);
  font-family: var(--display);
}
.policy-meta strong { color: var(--ink-2); font-weight: 600; }

.policy-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: start;
  margin-top: 48px;
}

/* TOC */
.toc { position: sticky; top: 96px; }
.toc__inner {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.toc h4 {
  margin: 0 0 12px;
  padding: 0 8px;
}
.toc ol {
  counter-reset: toc;
  margin: 0; padding: 0;
  list-style: none;
}
.toc ol li { counter-increment: toc; }
.toc ol li a {
  display: block;
  position: relative;
  padding: 8px 8px 8px 32px;
  font-size: 0.88rem;
  color: var(--muted);
  border-radius: 8px;
  transition: background 150ms ease, color 150ms ease;
}
.toc ol li a::before {
  content: counter(toc);
  position: absolute;
  left: 8px; top: 50%; transform: translateY(-50%);
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  transition: all 150ms ease;
}
.toc ol li a:hover { background: var(--bone); color: var(--ink); }
.toc ol li a.is-active {
  color: var(--forest-900);
  font-weight: 600;
  background: rgba(20, 83, 45, 0.06);
}
.toc ol li a.is-active::before {
  background: var(--forest-900);
  color: var(--yellow-400);
  border-color: var(--forest-900);
}

/* policy body */
.policy-body section {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 80px;
}
.policy-body h2 {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--forest-900);
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(20, 83, 45, 0.08);
}
.sec-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--forest-900);
  color: var(--yellow-400);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0 8px;
}
.sec-num:empty { display: none; }

.policy-body h3 {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--forest-800);
  margin: 28px 0 10px;
  letter-spacing: -0.005em;
}
.policy-body h3:first-of-type { margin-top: 0; }
.policy-body p {
  color: var(--ink-2);
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0 0 14px;
}
.policy-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}
.policy-body ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.6;
}
.policy-body ul li::before {
  content: "";
  position: absolute;
  left: 4px; top: 0.65em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--yellow-400);
  border: 1.5px solid var(--forest-700);
  box-sizing: border-box;
}
.policy-body ul.promise li {
  padding: 14px 14px 14px 22px;
  background: var(--bone);
  border-left: 3px solid var(--yellow-400);
  border-radius: 0 8px 8px 0;
  margin-bottom: 10px;
}
.policy-body ul.promise li::before { display: none; }
.policy-body ul.promise li strong {
  font-family: var(--display);
  color: var(--forest-900);
  font-weight: 700;
  margin-right: 6px;
}

/* callout */
.callout {
  border-radius: 14px;
  padding: 18px 22px;
  margin: 0 0 24px;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink-2);
}
.callout--green {
  background: linear-gradient(180deg, #F4FBF6, #FFFFFF);
  border: 1.5px solid var(--forest-700);
  position: relative;
  padding-left: 56px;
}
.callout--green::before {
  content: "✓";
  position: absolute;
  left: 18px; top: 18px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--forest-900);
  color: var(--yellow-400);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}
.callout--green strong {
  color: var(--forest-900);
  font-family: var(--display);
  font-size: 1rem;
  display: block;
  margin-bottom: 4px;
}

/* TODO placeholder */
.todo {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #92400E;
  background: #FEF3C7;
  border: 1px dashed #D97706;
  border-radius: 6px;
  padding: 1px 8px;
  white-space: nowrap;
}

/* contact card */
.contact-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
  background: linear-gradient(180deg, #F4FBF6, #FFFFFF);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  margin-bottom: 24px;
}
.contact-card__name { display: flex; align-items: center; gap: 14px; }
.contact-card__name img { width: 56px; height: 56px; }
.contact-card__name strong {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--forest-900);
}
.contact-card__name span {
  font-size: 0.85rem;
  color: var(--muted);
}
.contact-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 18px;
  margin: 0;
  font-size: 0.92rem;
}
.contact-list dt {
  font-family: var(--display);
  font-weight: 600;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  align-self: center;
}
.contact-list dd {
  margin: 0;
  color: var(--ink-2);
  align-self: center;
}

.policy-footnote {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  line-height: 1.6;
}

@media (max-width: 960px) {
  .policy-grid { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; }
  .toc__inner { max-height: none; }
  .policy-body section { padding: 28px 24px; }
  .contact-card { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav { padding: 14px 20px; }
  .nav__links { gap: 16px; }
  .nav__links a:not(.btn) { display: none; }
  .hero { grid-template-columns: 1fr; padding: 56px 24px 64px; }
  .hero__art { order: -1; }
  .hero__mark { width: 220px; height: 220px; border-radius: 44px; }
  .steps, .grid, .regions, .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .steps, .grid, .regions, .footer__cols { grid-template-columns: 1fr; }
  .hero__title .accent::after { width: 80px; height: 5px; }
  .footer__base { flex-direction: column; gap: 6px; }
  .cta__inner { padding: 48px 24px; border-radius: 22px; }
}

/* ---------- Brand slogan ---------- */
.hero__slogan {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  color: var(--forest-700);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  margin: 4px 0 18px;
  position: relative;
  padding-left: 14px;
}
.hero__slogan::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 3px; background: var(--yellow-400); border-radius: 999px;
}
.footer__slogan {
  font-family: var(--display);
  font-style: italic;
  color: var(--yellow-400);
  font-size: 0.95rem;
  margin: 6px 0 0;
  letter-spacing: 0.01em;
}
.footer__base-slogan {
  font-family: var(--display);
  font-style: italic;
  color: var(--yellow-400);
  opacity: 0.85;
}

/* ============================================================
   Shared utilities (used across order, dispatch, account, admin)
   ============================================================ */
.muted { color: var(--muted); }
.btn--sm { padding: 7px 14px; font-size: 0.85rem; border-radius: 8px; }
.btn--block { display: block; width: 100%; text-align: center; }
.btn--ghost.btn--sm { color: var(--ink); border-color: var(--line); background: var(--white); }
.btn--ghost.btn--sm:hover { background: var(--bone); }
.eyebrow {
  display: inline-block; font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--forest-700); background: rgba(31,122,63,0.08);
  padding: 4px 10px; border-radius: 999px;
}
.demo-banner {
  background: #FEF3C7; color: #92400E;
  padding: 10px 18px; font-size: 13px; text-align: center;
  border-bottom: 1px solid #FDE68A;
}
.demo-banner strong { font-weight: 600; }
.demo-banner a { text-decoration: underline; }
.demo-banner--ops { background: #14532D; color: #FDE68A; border-bottom-color: #0F3D22; }
.demo-banner--ops a { color: #FDE047; }
.demo-banner--ops code { background: rgba(255,255,255,0.1); padding: 1px 5px; border-radius: 3px; font-size: 12px; }
.flash {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--forest-800); color: var(--white);
  padding: 14px 22px; border-radius: 12px; font-weight: 500;
  box-shadow: var(--shadow-md); opacity: 0; transition: opacity 200ms, transform 200ms;
  z-index: 9999;
}
.flash--show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Status pill colors — shared */
.status--pending   { background: #FEF3C7; color: #92400E; }
.status--assigned  { background: #DBEAFE; color: #1E40AF; }
.status--enroute   { background: #DDD6FE; color: #5B21B6; }
.status--delivered { background: #D1FAE5; color: #065F46; }
.status--cancelled { background: #FEE2E2; color: #991B1B; }
.status--available { background: #D1FAE5; color: #065F46; }
[class*="status--"] {
  display: inline-block; font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
}

/* ============================================================
   Auth-widget (lives in the main nav)
   ============================================================ */
.auth-widget__link {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.08); padding: 5px 12px 5px 5px;
  border-radius: 999px; color: var(--white); font-size: 13px; font-weight: 500;
  transition: background 150ms;
}
.auth-widget__link:hover { background: rgba(255,255,255,0.16); }
.auth-widget__link--guest { padding: 7px 14px; }
.auth-widget__avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--yellow-400); color: var(--forest-900);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
}
.auth-widget__pts { font-variant-numeric: tabular-nums; }

/* ============================================================
   DISPATCH DASHBOARD
   ============================================================ */
.dispatch-body { background: var(--bone); min-height: 100vh; }
.ops-nav {
  background: var(--forest-900); color: var(--white);
  display: flex; align-items: center; gap: 24px;
  padding: 14px 24px; border-bottom: 1px solid #0A2615;
}
.ops-nav .brand__word { color: var(--white); font-size: 14px; letter-spacing: 0.18em; }
.ops-nav__stats {
  display: flex; gap: 24px; margin-left: auto; margin-right: 16px;
  font-size: 13px; color: rgba(255,255,255,0.75);
}
.ops-nav__stats strong {
  color: var(--white); font-family: var(--display); font-size: 18px;
  margin-right: 6px; font-variant-numeric: tabular-nums;
}
.ops-nav .btn--ghost { color: var(--white); }

.dispatch {
  display: grid;
  grid-template-columns: 320px 1fr 320px;
  gap: 18px; padding: 18px;
  height: calc(100vh - 110px);
  min-height: 600px;
}
.dispatch__queue, .dispatch__detail, .dispatch__drivers {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; overflow: hidden;
}
.dispatch__queue > header,
.dispatch__drivers > header {
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
}
.dispatch__queue h3, .dispatch__drivers h3 {
  font-family: var(--display); font-size: 15px; margin: 0; color: var(--forest-900);
}
.queue-filters { display: flex; gap: 4px; }
.queue-filters button {
  padding: 5px 12px; border-radius: 999px; font-size: 12px;
  border: 1px solid var(--line); background: var(--white); color: var(--ink-2);
  font-weight: 500;
}
.queue-filters button.is-active { background: var(--forest-800); color: var(--white); border-color: var(--forest-800); }
.queue-list { overflow-y: auto; flex: 1; padding: 8px; }
.queue-item {
  padding: 10px 12px; border-radius: 10px; cursor: pointer;
  border: 1px solid transparent; margin-bottom: 4px;
  transition: background 120ms, border-color 120ms;
}
.queue-item:hover { background: var(--bone); }
.queue-item.is-selected { background: rgba(250, 204, 21, 0.12); border-color: var(--yellow-400); }
.queue-item__top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 4px;
}
.queue-item__id { font-size: 11px; color: var(--muted); font-family: ui-monospace, monospace; }
.queue-item__main { font-size: 14px; margin-bottom: 4px; color: var(--ink); }
.queue-item__meta {
  display: flex; justify-content: space-between; gap: 8px;
  font-size: 12px; color: var(--ink-2);
}
.queue-item__footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 6px; font-size: 11px;
}
.queue-item__driver { color: var(--forest-700); font-weight: 500; }
.queue-empty { padding: 32px 16px; text-align: center; color: var(--muted); font-size: 13px; }

.dispatch__detail { padding: 24px; overflow-y: auto; }
.detail-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; height: 100%; color: var(--muted);
}
.detail-empty__logo { width: 64px; height: 64px; opacity: 0.4; margin-bottom: 16px; }
.detail-empty h2 { color: var(--forest-900); font-family: var(--display); margin-bottom: 8px; }

.detail-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 18px;
}
.detail-head__id { font-size: 12px; color: var(--muted); font-family: ui-monospace, monospace; }
.detail-head h2 { font-family: var(--display); font-size: 22px; margin: 4px 0; color: var(--forest-900); }
.detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px;
}
.detail-card {
  background: var(--bone); border-radius: 10px; padding: 12px 14px;
}
.detail-card h4 {
  margin: 0 0 4px; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--muted); font-weight: 600;
}
.detail-card strong { display: block; font-size: 14px; color: var(--ink); }
.detail-card span { font-size: 12px; color: var(--muted); }

.detail-money {
  background: var(--bone); border-radius: 10px; padding: 14px 16px; margin-bottom: 18px;
}
.detail-money > div {
  display: flex; justify-content: space-between; padding: 4px 0; font-size: 13px; color: var(--ink-2);
}
.detail-money strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.detail-money--total {
  border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px !important;
  font-size: 16px !important;
}
.detail-money--total strong { color: var(--forest-800); font-family: var(--display); font-size: 18px; }

.detail-driver, .detail-events { margin-bottom: 18px; }
.detail-driver h4, .detail-events h4 {
  margin: 0 0 8px; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--muted); font-weight: 600;
}
.driver-chip {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; background: var(--bone); border-radius: 10px;
}
.driver-chip__avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--forest-700); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.driver-chip > div { flex: 1; }
.driver-chip strong { display: block; font-size: 14px; }
.driver-chip span { font-size: 12px; color: var(--muted); }

.detail-events ol { display: flex; flex-direction: column; gap: 6px; }
.detail-events li {
  font-size: 13px; color: var(--ink-2);
  padding-left: 10px; border-left: 2px solid var(--line);
}

.detail-actions {
  display: flex; gap: 8px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 16px;
}
.detail-actions select {
  padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--white); font: inherit; flex: 1; min-width: 180px;
}
.detail-actions .btn--primary { background: var(--forest-800); color: var(--white); box-shadow: none; }
.detail-actions .btn--primary:hover { background: var(--forest-700); }
.detail-actions .btn--ghost { color: var(--ink-2); border-color: var(--line); background: var(--white); }
.detail-actions .btn--ghost:hover { background: var(--bone); }

.drivers-list { padding: 10px; overflow-y: auto; flex: 1; }
.driver {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px; margin-bottom: 4px;
}
.driver:hover { background: var(--bone); }
.driver.is-busy { opacity: 0.7; }
.driver__avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--forest-700); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.driver__main { flex: 1; }
.driver__main strong { display: block; font-size: 14px; }
.driver__main span { font-size: 12px; color: var(--muted); }

@media (max-width: 1000px) {
  .dispatch { grid-template-columns: 1fr; height: auto; }
  .ops-nav__stats { display: none; }
}

/* ============================================================
   ACCOUNT (auth + dashboard)
   ============================================================ */
.account-main { padding: 40px 24px 80px; min-height: 70vh; }
.section-h {
  font-family: var(--display); font-size: 18px; color: var(--forest-900);
  margin: 32px 0 12px;
}

/* Auth card */
.auth-card { max-width: 880px; margin: 0 auto; }
.auth-card__inner {
  display: grid; grid-template-columns: 1fr 1.2fr;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-md);
}
.auth-card__art {
  background: linear-gradient(135deg, var(--forest-800), var(--forest-700));
  display: flex; align-items: center; justify-content: center; padding: 40px;
}
.auth-card__art img { width: 140px; height: 140px; }
.auth-card__forms { padding: 32px; }

.auth-tabs { display: flex; gap: 4px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.auth-tab {
  padding: 10px 16px; font-size: 14px; font-weight: 500;
  color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px;
  background: transparent;
}
.auth-tab.is-active { color: var(--forest-800); border-bottom-color: var(--forest-800); }

.auth-form h2 { font-family: var(--display); margin: 0 0 4px; color: var(--forest-900); }
.auth-form__sub { color: var(--muted); margin-bottom: 18px; font-size: 14px; }
.auth-form label { display: block; margin-bottom: 14px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.auth-form label > span { display: block; margin-bottom: 6px; }
.auth-form input {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; background: var(--white); transition: border-color 150ms, box-shadow 150ms;
}
.auth-form input:focus {
  outline: none; border-color: var(--forest-700);
  box-shadow: 0 0 0 3px rgba(31,122,63,0.15);
}
.auth-form .btn--primary {
  background: var(--forest-800); color: var(--white); box-shadow: none; margin-top: 6px;
}
.auth-form .btn--primary:hover { background: var(--forest-700); }
.auth-form__error {
  background: #FEE2E2; color: #991B1B; padding: 10px 14px; border-radius: 8px;
  font-size: 13px; margin-top: 12px;
}

/* Dashboard */
.dash-hero {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 28px; flex-wrap: wrap; gap: 16px;
}
.dash-hero h1 { font-family: var(--display); margin: 4px 0; color: var(--forest-900); }
.dash-hero .btn--ghost { color: var(--ink-2); border-color: var(--line); background: var(--white); }
.dash-hero .btn--ghost:hover { background: var(--bone); }

.dash-grid {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 22px; margin-bottom: 12px;
}
@media (max-width: 800px) { .dash-grid { grid-template-columns: 1fr; } }

.balance-card {
  background: linear-gradient(160deg, var(--forest-800), var(--forest-700));
  color: var(--white); padding: 28px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.balance-card__label {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.balance-card__num {
  font-family: var(--display); font-size: 56px; font-weight: 700; margin: 4px 0 16px;
  font-variant-numeric: tabular-nums; color: var(--yellow-400);
}
.balance-card__progress {
  background: rgba(255,255,255,0.18); height: 8px; border-radius: 999px; overflow: hidden;
}
.balance-card__bar {
  height: 100%; background: var(--yellow-400); transition: width 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.balance-card__hint { font-size: 13px; margin-top: 8px; color: rgba(255,255,255,0.85); }
.balance-card hr { border: none; border-top: 1px solid rgba(255,255,255,0.18); margin: 18px 0; }
.balance-card__row {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px;
}
.balance-card__row strong { font-family: var(--display); font-size: 22px; color: var(--yellow-400); }
.balance-card .btn--primary {
  background: var(--yellow-400); color: var(--forest-900); box-shadow: none;
}
.balance-card .btn--primary:hover { background: var(--yellow-300); }
.balance-card .btn--primary:disabled { opacity: 0.5; cursor: not-allowed; }

.stat-tiles {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.stat-tile {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; justify-content: space-between; min-height: 130px;
}
.stat-tile span { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.stat-tile strong {
  font-family: var(--display); font-size: 32px; color: var(--forest-800);
  font-variant-numeric: tabular-nums;
}
.stat-tile--cta {
  background: var(--forest-800); color: var(--white); justify-content: space-between;
}
.stat-tile--cta span { color: rgba(255,255,255,0.7); }
.stat-tile--cta .btn--primary {
  background: var(--yellow-400); color: var(--forest-900); box-shadow: none; align-self: flex-start;
}

.activity {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.activity__row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14px;
}
.activity__row:last-child { border-bottom: none; }
.activity__type {
  display: inline-block; font-size: 11px; font-weight: 600; text-transform: uppercase;
  background: var(--bone); color: var(--ink-2); padding: 2px 8px; border-radius: 999px;
  margin-right: 8px;
}
.activity__reason { color: var(--ink-2); }
.activity__right { text-align: right; }
.activity__amount { font-weight: 600; font-variant-numeric: tabular-nums; }
.activity__amount--up   { color: #065F46; }
.activity__amount--down { color: #991B1B; }
.activity__date { display: block; font-size: 12px; color: var(--muted); }
.activity__empty { padding: 32px 16px; text-align: center; color: var(--muted); }

.orders-list {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.order-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.order-row:last-child { border-bottom: none; }
.order-row strong { display: block; font-size: 14px; }
.order-row span { font-size: 12px; color: var(--muted); }
.order-row__right { text-align: right; }
.order-row__total {
  display: block; font-family: var(--display); font-size: 18px; color: var(--forest-800);
  font-variant-numeric: tabular-nums; margin-bottom: 4px;
}

@media (max-width: 700px) {
  .auth-card__inner { grid-template-columns: 1fr; }
  .auth-card__art { padding: 28px; }
  .auth-card__art img { width: 80px; height: 80px; }
  .stat-tiles { grid-template-columns: 1fr 1fr; }
}
