/* =====================================================================
   Shift and Bids LLC — theme
   Colors, fonts and sizes mirror the shiftandbids.com block theme.
   Mobile-first: base styles target phones, media queries widen layouts.
   ===================================================================== */


:root {
  /* Palette */
  --paper: #101214;      /* page background */
  --surface: #1C2023;    /* raised sections & cards */
  --ink: #F3F4EF;        /* primary text */
  --muted: #AFB6BB;      /* secondary text */
  --accent: #D0F34A;     /* lime */
  --accent-hover: #b3d140;
  --on-accent: #000000;
  --line: rgba(243, 244, 239, .12);
  --danger: #ff7a6b;

  /* Type */
  --font-body: Arial, Helvetica, sans-serif;
  --font-display: Arial, Helvetica, sans-serif;
  --fs-body: 17px;
  --fs-lead: 19px;
  --fs-display: clamp(40px, 9vw, 80px);
  --fs-heading: clamp(30px, 5.5vw, 52px);
  --fs-subheading: clamp(22px, 3vw, 26px);

  /* Space */
  --gutter: 20px;
  --section: 64px;
  --large: 32px;
  --wide: 1320px;
  --radius: 8px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 .5em;
}
h1 { font-size: var(--fs-display); letter-spacing: -0.045em; }
h2 { font-size: var(--fs-heading); letter-spacing: -0.045em; }
h3 { font-size: var(--fs-subheading); letter-spacing: -0.025em; }

.lead { font-size: var(--fs-lead); }
.muted { color: var(--muted); }
.eyebrow {
  font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent);
}
.small { font-size: 14px; }

.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.bg-surface { background: var(--surface); }
.bg-accent { background: var(--accent); color: var(--on-accent); }
.bg-accent .lead { color: var(--on-accent); }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--accent); color: var(--on-accent); padding: 8px 16px; border-radius: var(--radius); }
.skip-link:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px;
  padding: 12px 24px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  font: inherit; font-weight: 600; line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.btn-outline { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-outline:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.btn-dark { background: var(--on-accent); border-color: var(--on-accent); color: var(--accent); }
.btn-dark:hover { background: #222; border-color: #222; color: var(--accent); }

.btn-block { width: 100%; }

.link-arrow {
  display: inline-block; padding: 4px 0;
  color: var(--ink); font-weight: 600;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
}
.link-arrow:hover { color: var(--accent); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(16, 18, 20, .92);
  border-bottom: 1px solid var(--line);
}
/* The blur sits on a pseudo-element: a backdrop-filter on the header itself
   would trap the fixed phone menu inside the header's 68px box. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -0.02em; text-decoration: none; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
  width: 44px; height: 44px; padding: 11px 10px; margin-right: -10px;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Phone menu: full-screen black overlay below the header */
.site-nav {
  position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
  z-index: 99;
  overflow-y: auto;
  display: flex; flex-direction: column;
  padding: 24px var(--gutter);
  background: #000;
  opacity: 0; visibility: hidden;
  transition: opacity .2s, visibility .2s;
}
.site-nav.open { opacity: 1; visibility: visible; }
.site-nav a {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: 28px; font-weight: 600; letter-spacing: -0.03em;
  text-decoration: none;
}
.site-nav a[aria-current="page"] { color: var(--accent); }

/* "Services" group: an expandable section in the phone menu */
.nav-group { border-bottom: 1px solid var(--line); }
.nav-group-toggle {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px;
  padding: 16px 0; background: none; border: 0; color: var(--ink); cursor: pointer; text-align: left;
  font-family: var(--font-display); font-size: 28px; font-weight: 600; letter-spacing: -0.03em;
}
.nav-group-toggle svg { width: 22px; height: 22px; flex: none; transition: transform .2s; }
.nav-group-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-group.is-current .nav-group-toggle { color: var(--accent); }
.nav-sub { display: none; flex-direction: column; padding: 0 0 12px 16px; }
.nav-group.open .nav-sub { display: flex; }
.site-nav .nav-sub a { padding: 10px 0; border-bottom: 0; font-size: 21px; }
body.nav-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 var(--section); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-copy .lead { color: var(--muted); max-width: 34em; }
.hero-meta { margin-top: 28px; font-size: 14px; color: var(--muted); }
.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}
.hero-media.landscape img { aspect-ratio: 4 / 3; }

/* ---------- Section heading row ---------- */
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head .lead { color: var(--muted); }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 32px; list-style: none; margin: 0; padding: 0; }
.steps li { padding-top: 20px; border-top: 1px solid var(--line); }
.step-label { margin-bottom: 12px; font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.steps p { color: var(--muted); }

/* ---------- Service cards ---------- */
.cards { display: grid; gap: 20px; }
.card {
  display: flex; flex-direction: column; gap: 12px;
  padding: var(--large);
  background: var(--surface);
  border-radius: var(--radius);
}
.card h3 { margin: 0; }
.card p { color: var(--muted); margin: 0; }
.card .link-arrow { margin-top: auto; padding-top: 12px; align-self: flex-start; }

/* ---------- CTA band ---------- */
.cta-grid { display: grid; gap: 24px; align-items: end; }
.cta-grid h2 { margin: 0; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.checklist li {
  position: relative;
  padding: 16px 0 16px 36px;
  border-bottom: 1px solid var(--line);
}
.checklist li:first-child { border-top: 1px solid var(--line); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 19px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* ---------- FAQ accordion ---------- */
.faq { display: grid; gap: 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 18px 0;
  font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -0.02em;
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 26px; font-weight: 400; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--muted); max-width: 46em; }

.two-col { display: grid; gap: 40px; }

/* ---------- Empty state ---------- */
.empty-state {
  padding: var(--large);
  border: 1px dashed rgba(243, 244, 239, .25);
  border-radius: var(--radius);
  background: var(--surface);
}
.empty-state h3 { margin-bottom: 12px; }
.empty-state p { color: var(--muted); }
.empty-state .btn { margin-top: 12px; }

/* ---------- Auction listings (shown when listings exist) ---------- */
.filters { display: grid; gap: 12px; margin-bottom: 24px; }
.listing-grid { display: grid; gap: 20px; }
.listing {
  display: flex; flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
}
.listing-media { position: relative; aspect-ratio: 4 / 3; background: #0b0c0d; }
.listing-media img { width: 100%; height: 100%; object-fit: cover; }
.listing-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(16, 18, 20, .85); color: var(--ink);
  font-size: 12px; font-weight: 600;
}
.listing-badge.ending { background: var(--accent); color: var(--on-accent); }
.listing-body { display: flex; flex-direction: column; gap: 12px; padding: 20px; flex: 1; }
.listing-body h3 { font-size: 22px; margin: 0; }
.listing-meta { color: var(--muted); font-size: 14px; margin: 0; }
.listing-foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line);
}
.listing-foot small { display: block; font-size: 12px; color: var(--muted); }
.listing-foot strong { font-family: var(--font-display); font-size: 22px; font-variant-numeric: tabular-nums; }
.listing-timer { text-align: right; }
.listing-timer strong { font-size: 16px; }
.listing-timer.ending strong { color: var(--accent); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; }
.field { display: grid; align-content: start; gap: 8px; font-size: 15px; font-weight: 600; }
.field .req { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid rgba(243, 244, 239, .22);
  border-radius: var(--radius);
  font: inherit; font-size: 16px; font-weight: 400; /* 16px stops iOS zoom */
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(208, 243, 74, .2); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23F3F4EF' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; padding-right: 40px; }
.form-panel { padding: var(--large) var(--gutter); background: var(--surface); border-radius: var(--radius); }
.form-note { font-size: 14px; color: var(--muted); }
.form-status { padding: 16px; border-radius: var(--radius); background: rgba(208, 243, 74, .12); border: 1px solid rgba(208, 243, 74, .4); }
.form-status.error { background: rgba(255, 122, 107, .1); border-color: rgba(255, 122, 107, .45); }
.form-status h4 { margin: 0 0 4px; font-size: 18px; }

/* ---------- Bid dialog ---------- */
.dialog {
  width: 100%; max-width: 100%;
  margin: auto 0 0;
  padding: 0; border: 0;
  border-radius: 16px 16px 0 0;
  background: var(--surface); color: var(--ink);
  max-height: 92vh;
}
.dialog::backdrop { background: rgba(0, 0, 0, .7); }
.dialog-body { position: relative; display: grid; gap: 16px; padding: 24px var(--gutter); }
.dialog-body h3 { margin: 0; }
.dialog-close {
  position: absolute; top: 12px; right: 12px;
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(243, 244, 239, .1); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer;
}
.bid-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bid-summary div { padding: 12px; background: var(--paper); border-radius: var(--radius); }
.bid-summary span { display: block; font-size: 13px; color: var(--muted); }
.bid-summary strong { font-family: var(--font-display); font-size: 20px; font-variant-numeric: tabular-nums; }
.form-error { min-height: 1.2em; margin: 0; color: var(--danger); font-size: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); padding: 48px 0 32px; }
.footer-grid { display: grid; gap: 32px; }
.footer-brand .brand { font-size: 22px; }
.footer-brand p { margin-top: 12px; color: var(--muted); max-width: 22em; }
.footer-col h3 { font-family: var(--font-body); font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-col a { display: inline-block; padding: 6px 0; text-decoration: none; }
.footer-col a:hover { color: var(--accent); }
.footer-legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* ======================= Tablet ≥ 700px ======================= */
@media (min-width: 700px) {
  :root { --gutter: 32px; --section: 80px; --large: 48px; }

  .cards { grid-template-columns: repeat(2, 1fr); }
  .listing-grid { grid-template-columns: repeat(2, 1fr); }
  .filters { grid-template-columns: 2fr 1fr 1fr; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .form-panel { padding: var(--large); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }

  .dialog { width: min(520px, calc(100% - 32px)); margin: auto; border-radius: 16px; }
  .dialog-body { padding: 28px; }
}

/* ======================= Desktop ≥ 1000px ======================= */
@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static; flex-direction: row; align-items: center; gap: 32px;
    padding: 0; background: none; height: auto; overflow: visible;
    opacity: 1; visibility: visible;
  }
  .site-nav a { padding: 6px 0; border: 0; font-family: var(--font-body); font-size: 16px; font-weight: 500; letter-spacing: 0; }
  .site-nav a:hover { color: var(--accent); }
  .site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 8px; }

  /* "Services" group: a dropdown on desktop (opens on hover or click) */
  .nav-group { position: relative; border: 0; }
  .nav-group-toggle {
    width: auto; justify-content: flex-start; gap: 6px; padding: 6px 0;
    font-family: var(--font-body); font-size: 16px; font-weight: 500; letter-spacing: 0;
  }
  .nav-group-toggle svg { width: 14px; height: 14px; }
  .nav-group-toggle:hover, .nav-group:hover .nav-group-toggle { color: var(--accent); }
  .nav-group.is-current .nav-group-toggle { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 8px; }
  .nav-sub {
    position: absolute; top: 100%; left: -14px; z-index: 10; min-width: 200px;
    margin-top: 12px; padding: 8px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
  }
  .nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* keeps hover alive across the gap */
  .nav-group:hover .nav-sub { display: flex; }
  .nav-account .nav-sub { left: auto; right: -14px; }   /* near the right edge: open leftwards */
  .site-nav .nav-sub a { padding: 10px 12px; border-radius: 6px; font-size: 15px; white-space: nowrap; }
  .site-nav .nav-sub a:hover { background: rgba(243, 244, 239, .06); }
  .site-nav .nav-sub a[aria-current="page"] { color: var(--accent); text-decoration: none; }

  .hero { padding: 64px 0 var(--section); }
  .hero-grid { grid-template-columns: 1.15fr 1fr; gap: 64px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .cta-grid { grid-template-columns: 1.4fr 1fr; gap: 48px; }
  .two-col { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .listing-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* =====================================================================
   Accounts: sign up / sign in / account
   ===================================================================== */
.auth-main { padding: 40px 0 var(--section); min-height: calc(100vh - var(--header-h) - 200px); }
.auth-card {
  max-width: 520px; margin: 0 auto;
  padding: 28px var(--gutter);
  background: var(--surface);
  border-radius: var(--radius);
}
.auth-card .form { margin-top: 24px; }
.auth-card > [role="status"] { margin-top: 20px; }
.auth-title { font-size: clamp(34px, 7vw, 52px); margin-bottom: 12px; }
.auth-switch { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; }
.auth-switch a { color: var(--accent); font-weight: 600; }

.field-help { font-size: 13px; font-weight: 400; color: var(--muted); }
.field-error { font-size: 13px; font-weight: 500; color: var(--danger); }
.field-error:empty, .field-ok:empty { display: none; }
.field-ok { font-size: 13px; font-weight: 500; color: var(--accent); }
.field input[aria-invalid="true"] { border-color: var(--danger); }

.password-wrap { position: relative; display: block; }
.password-wrap input { padding-right: 72px; }
.password-toggle {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  min-height: 38px; padding: 0 12px;
  background: none; border: 0; border-radius: 6px;
  color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.password-toggle:hover { color: var(--ink); }

.text-button {
  justify-self: start; padding: 4px 0; margin-top: -6px;
  background: none; border: 0; color: var(--muted);
  font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.text-button:hover { color: var(--ink); }

/* Account page */
#account-notice { max-width: 520px; margin: 0 auto; }
.account-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.account-head .auth-title { margin: 0; }
.account-grid { display: grid; gap: 20px; }
.account-grid .auth-card { max-width: none; margin: 0; }
.card-title { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 0; }
.details { display: grid; gap: 0; margin: 16px 0 0; }
.details div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.details div:last-child { border-bottom: 0; }
.details dt { color: var(--muted); }
.details dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }

@media (min-width: 700px) {
  .auth-main { padding-top: 64px; }
  .auth-card { padding: 40px; }
}
@media (min-width: 1000px) {
  .account-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .account-grid .auth-card:first-child { grid-row: span 2; }
  .site-nav a.nav-auth {
    padding: 8px 18px; border: 1px solid rgba(243, 244, 239, .35); border-radius: var(--radius);
    text-decoration: none;
  }
  .site-nav a.nav-auth:hover { border-color: var(--accent); }
  .site-nav a.nav-auth[aria-current="page"] { border-color: var(--accent); }
}

/* =====================================================================
   Header: "+ New Listing" (signed in)
   ===================================================================== */
.site-nav a.nav-cta { color: var(--accent); }
@media (min-width: 1000px) {
  .site-nav a.nav-cta {
    padding: 8px 18px; border-radius: var(--radius);
    background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none;
  }
  .site-nav a.nav-cta:hover { background: var(--accent-hover); color: var(--on-accent); }
  .site-nav a.nav-cta[aria-current="page"] { color: var(--on-accent); text-decoration: none; }
}

/* =====================================================================
   New listing page
   ===================================================================== */
.listing-wrap { max-width: 880px; }
#listing-notice { margin-bottom: 24px; }
.listing-form { display: grid; gap: 20px; margin-top: 32px; }
.form-section { max-width: none; margin: 0; display: grid; gap: 18px; }
.form-section .card-title { display: flex; align-items: center; gap: 12px; }
.form-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.step-num {
  display: inline-grid; place-items: center; flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  font-family: var(--font-body); font-size: 15px; font-weight: 700; letter-spacing: 0;
}
.photo-count { font-size: 14px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.form-grid { display: grid; gap: 18px; }

/* Drop zone */
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 140px; padding: 24px;
  border: 2px dashed rgba(243, 244, 239, .25); border-radius: var(--radius);
  background: var(--paper); text-align: center; cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--accent); background: rgba(208, 243, 74, .05); }
.dropzone:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.dropzone.is-full { opacity: .5; pointer-events: none; }
.dropzone-icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font-size: 28px; font-weight: 400; line-height: 1;
}
.dropzone-text strong { color: var(--ink); }
.dropzone-text { color: var(--muted); }
@media (hover: none) { .hide-touch { display: none; } }

/* Photo thumbnails */
.photo-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photo-grid:empty { display: none; }
.photo {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: 6px; background: var(--paper);
}
.photo.ready { cursor: grab; }
.photo.is-dragging { opacity: .4; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-loading { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; color: var(--muted); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .4; } }
.photo-cover, .photo-num {
  position: absolute; left: 6px; bottom: 6px;
  padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700;
}
.photo-cover { background: var(--accent); color: var(--on-accent); }
.photo-num { background: rgba(16, 18, 20, .8); color: var(--ink); }
.photo-actions { position: absolute; top: 4px; right: 4px; display: flex; gap: 4px; }
.photo-actions button {
  display: grid; place-items: center; width: 32px; height: 32px;
  border: 0; border-radius: 50%; background: rgba(16, 18, 20, .82); color: var(--ink);
  font-size: 18px; line-height: 1; cursor: pointer;
}
.photo-actions button:hover { background: var(--ink); color: var(--paper); }
.photo-actions button[data-action="cover"] { font-size: 15px; color: var(--accent); }

/* VIN */
.vin-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.vin-row input { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.vin-row .btn { min-height: 50px; padding: 0 18px; }
.vin-status { font-size: 14px; font-weight: 500; color: var(--muted); }
.vin-status:empty { display: none; }
.vin-status.is-ok { color: var(--accent); }
.vin-status.is-warn { color: #ffc56b; }
.field input.autofilled { animation: autofill-flash 1.6s ease-out; }
@keyframes autofill-flash { 0% { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(208, 243, 74, .35); } }

/* $ / mi affixes */
.input-affix { position: relative; display: block; }
.input-affix .affix-start, .input-affix .affix-end {
  position: absolute; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-weight: 500; pointer-events: none;
}
.input-affix .affix-start { left: 14px; }
.input-affix .affix-end { right: 14px; }
.input-affix .affix-start + input { padding-left: 30px; }
.input-affix input:has(+ .affix-end) { padding-right: 40px; }

/* Submit + progress */
.listing-submit { display: grid; gap: 14px; }
.zip-place.is-ok { color: var(--ink); font-weight: 600; }
.zip-place.is-warn { color: #ffc56b; }
.progress-bar { height: 8px; border-radius: 999px; background: var(--surface); overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .25s; }
.progress p { margin-top: 8px; }

/* Account: your listings */
.my-listings { margin-top: 48px; }
.my-listings .account-head { margin-bottom: 20px; align-items: center; }
.my-listings-grid { display: grid; gap: 20px; }
.my-listings-grid:empty { display: none; }
.my-listings > [role="status"] { margin-bottom: 20px; }

@media (min-width: 560px) {
  .photo-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 700px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .photo-grid { grid-template-columns: repeat(5, 1fr); gap: 10px; }
  .my-listings-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-actions button { width: 28px; height: 28px; font-size: 16px; }
}
@media (min-width: 1000px) {
  .my-listings-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Account page: Profile card + Edit profile popup ---------- */
.profile-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.btn-sm { min-height: 38px; padding: 8px 16px; font-size: 14px; }
.auth-card > #profile-status { margin: 12px 0 4px; }
.profile-dialog h3 { padding-right: 48px; font-size: 24px; }
.profile-dialog .form { gap: 18px; }
.profile-dialog-actions { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
/* Only one card now: keep it a comfortable width instead of half the grid */
@media (min-width: 700px) {
  .account-grid { grid-template-columns: minmax(0, 640px); }
  .account-grid .auth-card:first-child { grid-row: auto; }
}
