/* ============================================================
   DriveQ · app.css · v1.0
   Source of truth: design/driveq/project/website.html
   Spec: Plan/THEME.md + Plan/handover.md
   Light theme only. No toggleable dark mode.
   ============================================================ */

:root {
  /* Text · cool neutral ramp */
  --ink:        oklch(0.165 0.008 250);
  --ink-mute:   oklch(0.40 0.008 250);
  --ink-dim:    oklch(0.55 0.008 250);
  --ink-faint:  oklch(0.72 0.008 250);

  /* Lines */
  --line:       oklch(0.86 0.005 85);
  --line-soft:  oklch(0.91 0.005 85);

  /* Surfaces · warm neutral ramp */
  --paper:      oklch(0.975 0.004 85);
  --paper-2:    oklch(0.95 0.005 85);
  --paper-3:    oklch(0.88 0.005 85);

  /* Primary accent · CHAMPAGNE GOLD */
  --gold:       oklch(0.78 0.10 84);
  --gold-deep:  oklch(0.50 0.08 84);
  --gold-100:   oklch(0.94 0.05 84);

  /* Functional */
  --green:      oklch(0.55 0.14 150);
  --green-100:  oklch(0.95 0.06 150);
  --amber:      oklch(0.65 0.16 65);
  --amber-100:  oklch(0.96 0.06 65);
  --red:        oklch(0.58 0.20 25);
  --red-100:    oklch(0.96 0.05 25);
  --blue:       oklch(0.55 0.14 248);
  --blue-100:   oklch(0.95 0.05 248);
  --purple:     oklch(0.55 0.14 295);
  --purple-100: oklch(0.95 0.05 295);

  /* Type families */
  --f-display:  "Instrument Serif", "Times New Roman", serif;
  --f-ui:       "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --f-mono:     "Geist Mono", ui-monospace, Menlo, monospace;
  --f-logo:     "Saira", sans-serif;

  /* Radius */
  --r-2: 6px;  --r-3: 8px;  --r-4: 10px; --r-5: 14px; --r-6: 18px;

  /* Spacing */
  --s-1: 6px;  --s-2: 12px; --s-3: 18px; --s-4: 24px;
  --s-5: 32px; --s-6: 48px; --s-7: 72px; --s-8: 96px;
}

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

html, body { margin: 0; padding: 0; }
body {
  background: white;
  font-family: var(--f-ui); color: var(--ink);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden; /* belt-and-braces against accidental horizontal scroll */
}
a { color: inherit; text-decoration: none; cursor: pointer; }
button, input, textarea, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }

/* Skip-to-content (a11y) */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: white;
  padding: 10px 14px; border-radius: 0 0 var(--r-3) 0;
  font-size: 13px; z-index: 1000;
}
.skip-link:focus { left: 0; outline: 2px solid var(--gold); }

/* ============ PAGE WRAPPER ============
   Edge-to-edge below 1600px (the design canvas baseline). Above that the
   page caps at 1600px and centres on a white body — content just stops
   at the cap; no visual surround. The cap exists to prevent 4K sprawl
   (hero columns, nav, featured card all balloon without it). */
.page {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  background: white;
}

/* Reusable horizontal padding so every section gutter responds together.
   Replace inline `padding: ... 72px` with class-based control. */
.pad-x   { padding-left: 72px; padding-right: 72px; }
.pad-x-l { padding-left: 72px; }
.pad-x-r { padding-right: 72px; }

/* ============ TYPOGRAPHY ============ */
.display-xl { font-family: var(--f-display); font-size: 128px; line-height: 0.96; letter-spacing: -0.02em; font-weight: 400; margin: 0; text-wrap: pretty; }
.display    { font-family: var(--f-display); font-size: 72px; line-height: 1.04; letter-spacing: -0.02em; font-weight: 400; margin: 0; text-wrap: pretty; }
.h1         { font-family: var(--f-display); font-size: 48px; line-height: 1.08; letter-spacing: -0.015em; font-weight: 400; margin: 0; text-wrap: pretty; }
.h2         { font-family: var(--f-display); font-size: 36px; line-height: 1.12; letter-spacing: -0.012em; font-weight: 400; margin: 0; text-wrap: pretty; }
.h3         { font-family: var(--f-display); font-size: 24px; line-height: 1.18; letter-spacing: -0.01em; font-weight: 400; margin: 0; }
.eyebrow    { font-family: var(--f-ui); font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); }
.body       { font-family: var(--f-ui); font-size: 15px; line-height: 1.6; color: var(--ink-mute); margin: 0; text-wrap: pretty; }
.body-l     { font-family: var(--f-ui); font-size: 18px; line-height: 1.55; color: var(--ink-mute); margin: 0; text-wrap: pretty; }
.caption    { font-family: var(--f-ui); font-size: 13px; color: var(--ink-mute); margin: 0; }
.mono       { font-family: var(--f-mono); font-size: 12px; color: var(--ink-dim); letter-spacing: 0.04em; }
.em-gold    { font-style: italic; color: var(--gold-deep); }
.tabular    { font-variant-numeric: tabular-nums; }

/* ============ LOGO ============ */
.dq-wm { display: inline-flex; align-items: center; gap: 4px; font-family: var(--f-logo); font-weight: 800; font-style: italic; letter-spacing: -0.03em; line-height: 1; color: var(--ink); cursor: pointer; }
.dq-wm svg { display: block; overflow: visible; }
.dq-wm.is-light { color: white; }
.dq-wm.is-light svg { fill: var(--gold); }

/* Animated wordmark (default site logo) */
.anim-wm { display: inline-flex; align-items: center; gap: 0.04em; font-family: var(--f-logo); font-weight: 800; font-style: italic; letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.anim-wm.is-light { color: white; }
.anim-wm .letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em) scale(0.92);
  filter: blur(8px);
  animation: dqLetterIn 0.5s cubic-bezier(.2,.8,.2,1) forwards;
}
.anim-wm .letter:nth-child(1) { animation-delay: 0s; }
.anim-wm .letter:nth-child(2) { animation-delay: 0.18s; }
.anim-wm .letter:nth-child(3) { animation-delay: 0.36s; }
.anim-wm .letter:nth-child(4) { animation-delay: 0.54s; }
.anim-wm .letter:nth-child(5) { animation-delay: 0.72s; }
@keyframes dqLetterIn { to { opacity: 1; transform: none; filter: none; } }
.anim-wm .caret {
  display: inline-block; width: 0.06em; height: 0.85em;
  background: var(--gold-deep); margin-left: 0.04em; align-self: center;
  animation: dqCaretBlink 0.6s steps(1) infinite, dqCaretHide 0.4s 1.4s forwards;
}
@keyframes dqCaretBlink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }
@keyframes dqCaretHide  { to { opacity: 0; transform: scaleX(0); } }
.anim-wm .q-svg { width: 1.08em; height: 1em; opacity: 0; animation: dqQContainer 0.4s 1.3s forwards; overflow: visible; }
.q-outline { fill: none; stroke: var(--gold-deep); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 800; stroke-dashoffset: 800; animation: dqQDraw 1.2s 1.4s cubic-bezier(.65,0,.35,1) forwards, dqQOutlineFade 0.3s 2.6s forwards; }
.q-fill    { fill: var(--gold-deep); opacity: 0; animation: dqQFillIn 0.35s 2.6s forwards; }
.anim-wm.is-light .q-fill,
.anim-wm.is-light .q-bar,
.anim-wm.is-light .q-tail { fill: var(--gold); }
.q-bar { fill: var(--gold-deep); opacity: 0; transform: translateX(-30px); transform-box: fill-box; transform-origin: left center; animation: dqBarSlide 0.4s cubic-bezier(.2,.8,.2,1) forwards; }
.q-bar.bar-1 { animation-delay: 3.05s; }
.q-bar.bar-2 { animation-delay: 3.25s; }
.q-tail { fill: var(--gold-deep); opacity: 0; transform: translate(-12px,-12px) scale(0.5); transform-origin: top left; transform-box: fill-box; animation: dqTailExtend 0.5s 3.55s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes dqQContainer   { to { opacity: 1; } }
@keyframes dqQDraw        { to { stroke-dashoffset: 0; } }
@keyframes dqQOutlineFade { to { opacity: 0; } }
@keyframes dqQFillIn      { to { opacity: 1; } }
@keyframes dqBarSlide     { to { opacity: 1; transform: translateX(0); } }
@keyframes dqTailExtend   { to { opacity: 1; transform: translate(0,0) scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .anim-wm .letter, .anim-wm .q-svg, .q-fill, .q-bar, .q-tail {
    opacity: 1; transform: none; filter: none; animation: none;
  }
  .anim-wm .caret, .q-outline { display: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============ NAV (PUBLIC SITE) ============
   Sticky so the brand + sign-in CTA stay reachable while the user scrolls
   the auctions carousel and the long marketing sections. Subtle backdrop
   blur + 92% opacity keeps the underlying content faintly visible without
   crashing legibility. z-index 50 sits below modals (z-100+) but above
   every inline-styled section. */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--ink-mute); }
.nav-links a { transition: color 120ms cubic-bezier(.2,0,0,1); }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); font-weight: 500; }
.nav-right { display: flex; align-items: center; gap: 12px; }

/* ============ CURRENCY TOGGLE + FLAG ============ */
.cur {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px 6px 8px;
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: 999px;
  font-family: var(--f-mono); font-size: 12px; color: var(--ink); font-weight: 500;
  cursor: pointer; user-select: none;
}
.cur-flag {
  width: 18px; height: 18px; border-radius: 999px; overflow: hidden;
  display: inline-flex; flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}
.cur-flag.ng { background: linear-gradient(to right, #008751 33%, white 33%, white 66%, #008751 66%); }
.cur-toggle { display: inline-flex; background: var(--paper-2); border-radius: 999px; padding: 2px; }
.cur-opt { padding: 2px 8px; border-radius: 999px; font-size: 11px; color: var(--ink-mute); transition: all 180ms cubic-bezier(.2,.7,.3,1); cursor: pointer; }
.cur-opt.on { background: var(--ink); color: white; }
.cur-rate { color: var(--ink-mute); font-size: 11px; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 16px; height: 40px;
  border-radius: var(--r-3); font-size: 14px; font-weight: 500;
  cursor: pointer; border: 1px solid transparent;
  transition: background 120ms cubic-bezier(.2,0,0,1), box-shadow 120ms, transform 120ms;
  white-space: nowrap; font-family: var(--f-ui);
}
.btn:hover  { box-shadow: 0 4px 12px -4px oklch(0 0 0 / 0.18); }
.btn:active { transform: translateY(1px); }
.btn:disabled,
.btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }

.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn-xl { height: 56px; padding: 0 28px; font-size: 16px; }
.btn-full { width: 100%; }

.btn-primary   { background: var(--gold); color: white; border-color: var(--gold); }
.btn-primary:hover { background: oklch(0.72 0.10 84); }
.btn-invert    { background: var(--ink); color: white; }
.btn-invert:hover { background: oklch(0.22 0.008 250); }
.btn-secondary { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { background: var(--paper-2); }
.btn-ghost     { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--paper); }
.btn-danger    { background: transparent; color: var(--red); border-color: oklch(0.65 0.16 25 / 0.5); }
.btn-danger:hover { background: var(--red-100); }

.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px oklch(0.85 0.08 84 / 0.55); }

/* ============ PILLS ============ */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
  border: 1px solid transparent; line-height: 1; white-space: nowrap;
}
.pill-dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; position: relative; flex-shrink: 0; }
.pill-dot::after {
  content: ''; position: absolute; inset: -2px; border-radius: 999px;
  border: 1.5px solid currentColor; opacity: 0.5;
  animation: dqPulse 1.4s ease-in-out infinite;
}
@keyframes dqPulse {
  0%, 100% { transform: scale(1);   opacity: 0.5; }
  50%      { transform: scale(1.4); opacity: 0; }
}
.pill-live    { background: var(--green-100); color: oklch(0.42 0.14 150); border-color: oklch(0.85 0.10 150); }
.pill-gold    { background: var(--gold-100);  color: var(--gold-deep);     border-color: oklch(0.85 0.08 84); }
.pill-warn    { background: var(--amber-100); color: oklch(0.50 0.14 65);  border-color: oklch(0.85 0.10 65); }
.pill-red     { background: var(--red-100);   color: var(--red);            border-color: oklch(0.85 0.10 25); }
.pill-blue    { background: var(--blue-100);  color: var(--blue);           border-color: oklch(0.85 0.08 248); }
.pill-purple  { background: var(--purple-100);color: var(--purple);         border-color: oklch(0.85 0.08 295); }
.pill-neutral { background: var(--paper-2);   color: var(--ink-mute);       border-color: var(--paper-3); }

/* ============ CARDS ============ */
.card { background: white; border: 1px solid var(--line-soft); border-radius: var(--r-5); padding: var(--s-5); }
.card-pad-sm { padding: var(--s-3); }
.card-pad-lg { padding: var(--s-6); }
.card-paper  { background: var(--paper); }
.card-dark   { background: var(--ink); color: white; border-color: var(--ink); }
.card-dark .eyebrow { color: var(--gold); }
.card-dark .body { color: rgba(255,255,255,0.7); }

/* ============ FORMS ============
   Policy (CLAUDE.md § 3.4b):
   - Every input MUST have a `placeholder` showing the expected format
   - Inputs whose intent benefits from an icon use `.input-wrap` + `.input-icon`
     + `.input.has-icon` (left-padded so the glyph doesn't overlap)
   - All required fields use HTML5 `required` + `pattern` / `type`
   - Errors render as `.input.is-error` + `.field-error-msg` (red)
   - `aria-describedby` ties the hint or error to the input */
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 13px; color: var(--ink); font-weight: 500; }
.field-hint  { font-family: var(--f-mono); font-size: 11px; color: var(--ink-dim); }
.input {
  padding: 12px 14px; background: white;
  border: 1.5px solid var(--line-soft); border-radius: var(--r-3);
  font-size: 14px; color: var(--ink); font-family: var(--f-ui);
  transition: border 120ms, box-shadow 120ms;
  width: 100%;
}
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px oklch(0.85 0.08 84 / 0.4); }
.input::placeholder { color: var(--ink-faint); }
.input.is-error,
.field-error .input { border-color: var(--red); }
.input.is-error:focus { box-shadow: 0 0 0 3px oklch(0.85 0.10 25 / 0.35); }
.field-error-msg { font-size: 12px; color: var(--red); display: flex; align-items: center; gap: 4px; }

/* Icon-prefixed input */
.input-wrap { position: relative; }
.input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--ink-dim); pointer-events: none;
  display: inline-flex; align-items: center;
}
.input-wrap .input.has-icon { padding-left: 42px; }
.input-wrap:focus-within .input-icon { color: var(--gold-deep); }

/* Select with trailing chevron */
select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a7a7a' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; appearance: none; }

textarea.input { min-height: 96px; resize: vertical; font-family: var(--f-ui); }

/* ============ AUTH SPLIT (login, signup, forgot) ============
   Left half = ink hero (vehicle photo + brand mood)
   Right half = white form pane */
.auth-split {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: white;
}
.auth-hero {
  min-height: 240px;
}
.auth-form {
  padding: 64px 72px;
  display: flex; flex-direction: column; justify-content: center;
  max-width: 560px;
  width: 100%;
}
@media (max-width: 1024px) {
  .auth-split { grid-template-columns: 1fr; min-height: auto; }
  .auth-hero { min-height: 360px; }
  .auth-form { padding: 48px 32px; max-width: 100%; }
}
@media (max-width: 480px) {
  .auth-hero  { min-height: 220px; }
  .auth-form  { padding: 32px 16px; }
  .auth-hero  .display { font-size: 36px !important; }
}

/* ============ FOOTER ============ */
.footer { padding: 48px; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 28px; background: white; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h5 { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--ink-dim); text-transform: uppercase; margin: 0 0 6px; }
.footer-col a  { font-size: 13.5px; color: var(--ink-mute); transition: color 120ms; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; align-items: center; }

/* ============ APP SHELL (dealer) ============ */
.app-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.app-nav-links { display: flex; gap: 22px; font-size: 13.5px; color: var(--ink-mute); }
.app-nav-links a.active { color: var(--ink); font-weight: 500; }

/* ============ FAQ ACCORDION ============ */
.faq-item { padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
.faq-item-q { display: flex; justify-content: space-between; align-items: center; gap: 24px; cursor: pointer; }
.faq-item-q h4 { font-family: var(--f-display); font-size: 22px; letter-spacing: -0.01em; margin: 0; color: var(--ink); }
.faq-item-q .ico { width: 28px; height: 28px; border-radius: 999px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--ink-mute); flex-shrink: 0; }
.faq-item-a { margin-top: 14px; max-width: 760px; }
.faq-item.collapsed .faq-item-a { display: none; }

/* ============ COUNTDOWN ============ */
.countdown { display: inline-flex; align-items: flex-start; gap: 12px; font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.countdown-box { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; }
.countdown-num { font-size: 22px; font-weight: 500; line-height: 1; letter-spacing: -0.02em; color: var(--ink); }
.countdown-lbl { font-family: var(--f-ui); font-size: 10px; color: var(--ink-dim); letter-spacing: 0.12em; text-transform: uppercase; }
.countdown-sep { font-size: 22px; color: var(--ink-dim); margin-top: 2px; }
.countdown.t-warn   .countdown-num { color: var(--amber); }
.countdown.t-urgent .countdown-num { color: var(--red); }
.countdown.t-urgent { animation: dqPulse 1.4s ease-in-out infinite; }
.countdown.t-freeze .countdown-num { color: var(--red); font-weight: 600; }

/* Compact inline countdown (carousel cards) */
.countdown-inline { font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-size: 16px; }
.countdown-inline.t-warn   { color: var(--amber); }
.countdown-inline.t-urgent { color: var(--red); }

/* ============ BID POOL ============ */
.bid-row {
  display: grid; grid-template-columns: 40px 1fr auto auto;
  align-items: center; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  animation: dqRowReveal 240ms cubic-bezier(.16,1,.3,1);
}
@keyframes dqRowReveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.bid-row.is-yours { background: oklch(0.94 0.05 84 / 0.4); border-left: 3px solid var(--gold); padding-left: 13px; }
.bid-row.is-leading .bid-amount { color: var(--gold-deep); font-weight: 600; }
.bid-ordinal { font-family: var(--f-mono); color: var(--ink-dim); font-size: 12px; }
.bid-pseudonym { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.bid-amount    { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.bid-time      { font-family: var(--f-mono); font-size: 12px; color: var(--ink-dim); }

/* Live indicator */
.live-ind { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 11px; color: var(--green); letter-spacing: 0.04em; text-transform: uppercase; }
.live-ind .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--green); position: relative; }
.live-ind .dot::after { content:''; position:absolute; inset:-3px; border-radius:999px; border: 1.5px solid var(--green); opacity: 0.5; animation: dqPulse 1.4s ease-in-out infinite; }

/* ============ DIVIDERS ============ */
.divider { height: 1px; background: var(--line-soft); width: 100%; }
.divider-dashed { border-top: 1px dashed var(--line-soft); height: 0; }

/* ============ AUCTION CARD (grid) ============ */
.auction-card { background: white; border: 1px solid var(--paper-3); border-radius: var(--r-4); padding: 14px; transition: transform 120ms cubic-bezier(.2,0,0,1), box-shadow 120ms; }
.auction-card:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px oklch(0 0 0 / 0.12); }
.auction-card .img { aspect-ratio: 16/10; border-radius: var(--r-3); background-size: cover; background-position: center; background-color: #1d2128; position: relative; }

/* Standalone "live" indicator dot — used on card images.
   The pulse ring + dot read as "alive" — no text needed.
   Pinned to top-right of the parent so it doesn't fight a status pill. */
.live-dot {
  position: absolute; top: 10px; right: 10px;
  width: 10px; height: 10px; border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.85);
}
.live-dot::after {
  content: ''; position: absolute; inset: -4px; border-radius: 999px;
  border: 1.5px solid var(--green); opacity: 0.6;
  animation: dqPulse 1.4s ease-in-out infinite;
}

/* ============ TOAST ============ */
.toast {
  --tc: var(--gold); --tc-bg: var(--gold-100);
  --ti: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E");
  position: fixed; top: 24px; right: 24px;
  display: flex; align-items: flex-start; gap: 11px;
  background: var(--tc-bg);
  border: 1px solid color-mix(in oklch, var(--tc) 55%, transparent);
  border-radius: var(--r-6);
  padding: 13px 16px; box-shadow: 0 14px 34px -14px oklch(0 0 0 / 0.30);
  color: var(--ink); font-size: 14px; line-height: 1.45; font-weight: 450;
  max-width: 380px; z-index: 1000;
  animation: dqToastIn 240ms cubic-bezier(.16,1,.3,1);
}
.toast::before {
  content: ''; flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px;
  background-color: var(--tc);
  -webkit-mask: var(--ti) center / contain no-repeat;
          mask: var(--ti) center / contain no-repeat;
}
.toast.t-success {
  --tc: var(--green); --tc-bg: var(--green-100);
  --ti: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8.5 12 2.5 2.5 5-5'/%3E%3C/svg%3E");
}
.toast.t-warn {
  --tc: var(--amber); --tc-bg: var(--amber-100);
  --ti: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 4 2.4 18a2 2 0 0 0 1.7 3h15.8a2 2 0 0 0 1.7-3L13.7 4a2 2 0 0 0-3.4 0Z'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E");
}
.toast.t-danger {
  --tc: var(--red); --tc-bg: var(--red-100);
  --ti: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m15 9-6 6'/%3E%3Cpath d='m9 9 6 6'/%3E%3C/svg%3E");
}
.toast.t-info {
  --tc: var(--gold); --tc-bg: var(--gold-100);
}
@keyframes dqToastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

/* ============ INK SURFACE (login hero, admin) ============ */
.ink-surface {
  background: var(--ink); color: white;
}
.ink-surface .eyebrow { color: var(--gold); }
.ink-surface .body    { color: rgba(255,255,255,0.7); }

/* ============ RESPONSIVE ============
   Many sections still use inline styles lifted from the design canvas.
   The selectors below use `[style*=...]` + `!important` to override those
   without rewriting every template. As templates get refactored to use
   classes, these can shrink. Breakpoints:
     ≥1440px  wide      (default rules above)
     ≤1280px  desktop-narrow — tighter gutters
     ≤1024px  tablet     — collapse 2-col grids, hide nav-links (mobile menu)
     ≤ 768px  mobile-l   — single column, shorter hero
     ≤ 480px  mobile     — minimum supported (per PRD § 7.5.5)
*/

/* Force-wrap any 2-column section grid to single column on small screens. */
@media (max-width: 1024px) {
  .nav { padding: 16px 20px !important; gap: 12px; flex-wrap: wrap; }
  .nav-links {
    order: 99; width: 100%; gap: 16px; padding-top: 8px;
    border-top: 1px solid var(--line-soft); margin-top: 8px;
    overflow-x: auto; white-space: nowrap;
  }
  .nav-right { gap: 8px; flex-wrap: wrap; }
  .footer { padding: 32px 24px !important; }
  .footer-top { grid-template-columns: 1fr 1fr !important; gap: 24px !important; }

  /* Any section using inline `grid-template-columns: 1.1fr 1fr` (hero pattern)
     or `repeat(N, 1fr)` collapses to single column. */
  section[style*="grid-template-columns: 1.1fr 1fr"],
  section[style*="grid-template-columns: 1.2fr 1fr"],
  section[style*="grid-template-columns: 1.4fr 1fr"],
  section[style*="grid-template-columns: 1fr 1.2fr"],
  section[style*="grid-template-columns: 1fr 2fr"],
  section[style*="grid-template-columns: 220px 1fr"],
  section[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  section[style*="grid-template-columns: 1.2fr 1fr 1fr 1fr"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
  }
  section[style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  section[style*="grid-template-columns: 1fr 1fr 1fr"] {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Pad-x → gutter at 24px on tablet. */
  section[style*="padding: 80px 72px"], section[style*="padding: 96px 72px"],
  section[style*="padding: 88px 72px"], section[style*="padding: 96px 72px 64px"],
  section[style*="padding: 0 72px"],     section[style*="padding: 48px 72px"],
  section[style*="padding: 32px 72px"],  section[style*="padding: 64px 72px"],
  section[style*="padding: 72px 72px"],  section[style*="padding: 72px"],
  section[style*="padding: 0 72px 96px"], section[style*="padding: 56px 0 56px 72px"],
  section[style*="padding: 32px 72px 56px"], section[style*="padding: 16px 72px"],
  section[style*="padding: 0 72px 24px"], section[style*="padding: 28px 72px 0"] {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
}

/* Mobile-large: 481–768. Hero text smaller, nav buttons trim. */
@media (max-width: 768px) {
  .display-xl { font-size: 72px !important; }
  .display    { font-size: 56px !important; }
  .h1         { font-size: 36px !important; }
  .h2         { font-size: 28px !important; }
  .h3         { font-size: 22px !important; }
  .body-l     { font-size: 16px !important; }

  /* Buy box / featured-card needs to drop big numbers. */
  [style*="font-size: 112px"] { font-size: 64px !important; line-height: 1 !important; }
  [style*="font-size: 64px"]  { font-size: 44px !important; }
  [style*="font-size: 48px"]  { font-size: 32px !important; }
  [style*="font-size: 40px"]  { font-size: 28px !important; }
  [style*="font-size: 36px"]  { font-size: 26px !important; }
  [style*="font-size: 32px"]  { font-size: 22px !important; }
  [style*="font-size: 28px"]  { font-size: 22px !important; }

  /* Collapse remaining 3-col + 4-col grids to single. */
  section[style*="grid-template-columns: repeat(4, 1fr)"],
  section[style*="grid-template-columns: 1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  section[style*="grid-template-columns: 1.2fr 1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* "How it works" 4-step strip: each step gets its own row + bottom border. */
  section[style*="grid-template-columns: repeat(4, 1fr); gap: 0"] {
    grid-template-columns: 1fr !important;
  }
  section[style*="grid-template-columns: repeat(4, 1fr); gap: 0"] > div {
    border-right: 0 !important;
    border-bottom: 1px solid var(--paper-3);
  }

  /* 5-step process timeline: stack steps vertically. */
  div[style*="grid-template-columns: repeat(5, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  div[style*="grid-template-columns: repeat(5, 1fr)"] + div[style*="position: absolute"] { display: none; }
  section [style*="left: 80px"][style*="height: 2px"] { display: none; }

  /* Hero stats row wraps. */
  [style*="margin-top: 48px"][style*="display: flex"][style*="gap: 48px"] {
    flex-wrap: wrap; gap: 24px !important;
  }

  /* Carousel cards: full width minus gutter. */
  .auction-card[style*="width: 280px"] { width: calc(100vw - 80px) !important; max-width: 320px; }

  /* Currency toggle / nav extras hide on narrow widths. */
  .nav-right .cur { display: none; }

  /* Buy box / featured card padding shrink. */
  [style*="padding: 22px"]:not(input):not(button) { padding: 16px !important; }
  [style*="padding: 28px"]:not(input):not(button) { padding: 20px !important; }
  [style*="padding: 32px"]:not(input):not(button) { padding: 20px !important; }

  /* Footer cleanly stacks. */
  .footer-top { grid-template-columns: 1fr 1fr !important; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* Mobile: ≤480 — the PRD-minimum width. */
@media (max-width: 480px) {
  .display-xl { font-size: 56px !important; }
  .display    { font-size: 40px !important; }
  .h1         { font-size: 30px !important; }
  .h2         { font-size: 24px !important; }
  .h3         { font-size: 20px !important; }

  [style*="font-size: 112px"] { font-size: 52px !important; }

  section[style*="padding: 80px 72px"], section[style*="padding: 96px 72px"],
  section[style*="padding: 88px 72px"], section[style*="padding: 0 72px"],
  section[style*="padding: 48px 72px"], section[style*="padding: 64px 72px"],
  section[style*="padding: 72px"],      section[style*="padding: 32px 72px"],
  section[style*="padding: 0 72px 96px"], section[style*="padding: 56px 0 56px 72px"],
  section[style*="padding: 32px 72px 56px"], section[style*="padding: 16px 72px"],
  section[style*="padding: 96px 72px"],   section[style*="padding: 96px 72px 64px"],
  section[style*="padding: 0 72px 24px"], section[style*="padding: 28px 72px 0"] {
    padding-left: 16px !important;
    padding-right: 16px !important;
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }

  .nav-links a { font-size: 13px; }

  /* Buttons in hero cluster wrap. */
  [style*="display: flex"][style*="gap: 12px"] { flex-wrap: wrap; }

  .btn-xl { height: 48px !important; padding: 0 18px !important; font-size: 14px !important; }
  .btn-lg { height: 44px !important; padding: 0 16px !important; font-size: 14px !important; }

  /* Buy-box price + countdown row stacks. */
  [style*="justify-content: space-between"][style*="align-items: flex-end"] {
    flex-wrap: wrap; gap: 12px;
  }

  /* Footer goes to single column. */
  .footer-top { grid-template-columns: 1fr !important; }

  /* Auction-detail breadcrumb + live ind on separate rows. */
  section[style*="padding: 28px 72px 0"][style*="justify-content: space-between"] {
    flex-direction: column; align-items: flex-start; gap: 12px;
  }
}

/* ---------- pjax: full-content form/navigation loading ---------- */
.dq-pjax-busy { cursor: progress; }
.dq-pjax-busy #main { opacity: 0.55; transition: opacity 0.12s ease; pointer-events: none; }
.dq-pjax-busy::after {
  content: ""; position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 9999;
  background: linear-gradient(90deg, transparent, #c7a55a, transparent);
  background-size: 50% 100%; background-repeat: no-repeat;
  animation: dq-pjax-bar 0.9s linear infinite;
}
@keyframes dq-pjax-bar { 0% { background-position: -50% 0; } 100% { background-position: 150% 0; } }

/* ---------- Buy Now chip on auction cards ---------- */
.auction-card-wrap { position: relative; display: block; }
.buy-now-chip {
  position: absolute; top: 24px; right: 24px; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px;
  background: var(--gold); color: oklch(0.22 0.03 84);
  font-family: var(--f-mono); font-size: 12px; font-weight: 600; line-height: 1;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 4px 14px -4px oklch(0.06 0 0 / 0.5);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.buy-now-chip:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -6px oklch(0.06 0 0 / 0.55); }
.buy-now-chip svg { flex: none; }
/* Mobile grid: icon-only buy-now button */
@media (max-width: 640px) {
  .buy-now-chip { top: 22px; right: 22px; padding: 9px; }
  .buy-now-chip .buy-now-label { display: none; }
}
