/* ============================================================
   DeReal Estate — estate.deinv.in
   Design tokens + shared components for the static MVP
   ============================================================ */

:root {
  --bg: #050a12;
  --bg-soft: #070e19;
  --surface: #0a1322;
  --surface-2: #0e1a2d;
  --surface-3: #12203a;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --ink: #e9f0fb;
  --muted: #93a4be;
  --faint: #65758f;
  --accent: #0878ff;
  --accent-2: #4c9aff;
  --accent-ink: #04121f;
  --green: #4c9aff;
  --amber: #8fbcff;
  --red: #b6d5ff;
  --grad: linear-gradient(118deg, #0878ff, #4c9aff);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; margin: 0; }
p { margin: 0; }
::selection { background: rgba(76, 154, 255, 0.32); }

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: min(var(--wrap), calc(100% - 40px)); margin-inline: auto; }
.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 18px;
}
.section { padding: 84px 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-head p { color: var(--muted); max-width: 52ch; margin-top: 10px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.005em;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: var(--accent-ink); box-shadow: 0 10px 28px rgba(34, 211, 238, 0.18); }
.btn-primary:hover { box-shadow: 0 14px 34px rgba(76, 154, 255, 0.34); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); }
.btn-quiet { background: transparent; color: var(--muted); padding: 8px 12px; }
.btn-quiet:hover { color: var(--ink); }
.btn-sm { padding: 8px 15px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(5, 10, 18, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 22px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { height: 40px; width: auto; }
.foot-brand .brand img { height: 30px; }
.brand-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--faint);
  border-left: 1px solid var(--line-strong);
  padding-left: 10px;
  text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 500; }
.nav-links a { color: var(--muted); transition: color 0.18s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 18px;
  line-height: 1;
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 74px 0 60px; isolation: isolate; }
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 780px;
  background:
    radial-gradient(560px 420px at 78% 18%, rgba(76, 154, 255, 0.18), transparent 70%),
    radial-gradient(460px 380px at 18% 8%, rgba(34, 211, 238, 0.12), transparent 72%);
  z-index: -1;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(140, 180, 240, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 180, 240, 0.05) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(70% 60% at 50% 20%, #000 10%, transparent 75%);
  z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { color: var(--muted); font-size: 1.06rem; max-width: 50ch; margin-top: 22px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 26px; padding: 0; list-style: none; font-size: 13.5px; color: var(--muted); }
.hero-points li { display: inline-flex; align-items: center; gap: 7px; }
.hero-points li::before { content: "✓"; color: var(--green); font-size: 12px; }
.hero-media { position: relative; }
.hero-media img { border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 4 / 3.1; object-fit: cover; }
.hero-note {
  position: absolute;
  left: -18px;
  bottom: 22px;
  background: rgba(9, 17, 29, 0.92);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 13px 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  max-width: 230px;
}
.hero-note strong { display: block; font-size: 13.5px; }
.hero-note span { font-size: 11.5px; color: var(--muted); }

/* ---------- Search panel ---------- */
.search-panel {
  background: linear-gradient(180deg, rgba(19, 32, 52, 0.92), rgba(10, 19, 34, 0.92));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow);
  margin-top: 34px;
}
.search-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 16px; background: rgba(255, 255, 255, 0.04); border-radius: 999px; }
.search-tabs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.18s;
}
.search-tabs button[aria-selected="true"] { background: var(--grad); color: var(--accent-ink); }
.search-fields { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 10px; }
.search-fields .btn { border-radius: 12px; }

/* ---------- Form controls ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }
.field .hint { font-size: 11.5px; color: var(--faint); }
.field .err { font-size: 11.5px; color: var(--red); display: none; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: rgba(255, 111, 111, 0.55); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], select, textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 13px;
  font-size: 14px;
  color: var(--ink);
  transition: border-color 0.18s, background 0.18s;
}
input::placeholder, textarea::placeholder { color: #5c6c85; }
input:focus, select:focus, textarea:focus { border-color: rgba(76, 154, 255, 0.6); background: rgba(255, 255, 255, 0.06); outline: none; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%2393a4be' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px; }
textarea { min-height: 110px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.check input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .span-2 { grid-column: 1 / -1; }

/* ---------- Cards & badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge-verified { background: rgba(47, 211, 155, 0.12); color: #4c9aff; border-color: rgba(47, 211, 155, 0.28); }
.badge-review { background: rgba(245, 181, 68, 0.12); color: #b6d5ff; border-color: rgba(245, 181, 68, 0.28); }
.badge-none { background: rgba(255, 255, 255, 0.05); color: var(--muted); border-color: var(--line); }
.badge-sponsored { background: rgba(76, 154, 255, 0.14); color: #a9cdff; border-color: rgba(76, 154, 255, 0.3); }
.badge-live { background: rgba(47, 211, 155, 0.12); color: #4c9aff; border-color: rgba(47, 211, 155, 0.28); }
.badge-offer { background: rgba(245, 181, 68, 0.12); color: #b6d5ff; border-color: rgba(245, 181, 68, 0.28); }

.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.lcard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.lcard:hover { transform: translateY(-3px); border-color: rgba(76, 154, 255, 0.32); box-shadow: var(--shadow); }
.lcard-media { position: relative; aspect-ratio: 16 / 10.5; overflow: hidden; background: var(--surface-2); }
.lcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.lcard:hover .lcard-media img { transform: scale(1.035); }
.lcard-tags { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; max-width: calc(100% - 70px); }
.save-btn {
  position: absolute;
  top: 11px;
  right: 11px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(5, 10, 18, 0.6);
  backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  transition: 0.18s;
}
.save-btn:hover { background: rgba(5, 10, 18, 0.85); }
.save-btn[aria-pressed="true"] { color: #b6d5ff; border-color: rgba(255, 123, 138, 0.5); }
.lcard-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.lcard-price { font-family: var(--font-display); font-size: 1.28rem; font-weight: 600; letter-spacing: -0.02em; }
.lcard-price small { font-family: var(--font-body); font-size: 12px; font-weight: 500; color: var(--faint); letter-spacing: 0; }
.lcard-title { font-size: 14.5px; font-weight: 500; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lcard-meta { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lcard-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }
.lcard-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11.5px;
  color: var(--faint);
}

/* ---------- Verification rows ---------- */
.vrow { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.07); font-size: 13px; }
.vrow:last-child { border-bottom: 0; }
.vdot { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; flex: none; background: var(--faint); }
.vrow.passed .vdot { background: var(--green); box-shadow: 0 0 0 3px rgba(47, 211, 155, 0.14); }
.vrow.review .vdot { background: var(--amber); box-shadow: 0 0 0 3px rgba(245, 181, 68, 0.14); }
.vrow.pending .vdot { background: var(--amber); }
.vrow.none .vdot { background: #46566d; }
.vrow .vlabel { flex: 1; }
.vrow .vlabel small { display: block; color: var(--faint); font-size: 11px; }
.vstate { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); font-family: var(--font-mono); }

/* ---------- Locality tiles ---------- */
.locality-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.locality {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent);
  font-size: 14px;
  transition: 0.18s;
}
.locality:hover { border-color: rgba(76, 154, 255, 0.4); background: rgba(76, 154, 255, 0.07); }
.locality span { color: var(--faint); font-size: 11.5px; font-family: var(--font-mono); }

/* ---------- Feature/step blocks ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.info-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.info-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.info-card p { color: var(--muted); font-size: 13.5px; }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(76, 154, 255, 0.12);
  color: #9cc8ff;
  border: 1px solid rgba(76, 154, 255, 0.24);
  font-family: var(--font-mono);
  font-size: 12px;
  margin-bottom: 16px;
}
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-strip div strong { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.stat-strip div span { font-size: 12px; color: var(--faint); }

/* ---------- Browse page ---------- */
.browse { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 30px; padding: 34px 0 80px; align-items: start; }
.filters { position: sticky; top: 92px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.filters h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--font-mono); color: var(--muted); margin-bottom: 16px; }
.filters .field { margin-bottom: 14px; }
.filters .btn { margin-top: 6px; }
.results-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px 5px 12px;
  border-radius: 999px;
  background: rgba(76, 154, 255, 0.1);
  border: 1px solid rgba(76, 154, 255, 0.26);
  font-size: 12px;
  color: #b6d5ff;
}
.chip button { border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 14px; line-height: 1; padding: 0 2px; }
.empty {
  text-align: center;
  padding: 60px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  color: var(--muted);
}
.empty strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 6px; }

/* ---------- Detail page ---------- */
.detail { padding: 26px 0 80px; }
.crumbs { font-size: 12px; color: var(--faint); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.crumbs a:hover { color: var(--muted); }
.detail-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 22px; }
.detail-head h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); max-width: 26ch; }
.detail-head .loc { color: var(--muted); font-size: 14px; margin-top: 8px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2, 1fr); gap: 10px; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 34px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; background: var(--surface-2); }
.gallery img:first-child { grid-row: 1 / 3; aspect-ratio: 4 / 3; }
.gallery img:not(:first-child) { aspect-ratio: 16 / 9; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 34px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.panel + .panel { margin-top: 18px; }
.panel h2 { font-size: 1.05rem; margin-bottom: 14px; }
.panel p { color: var(--muted); font-size: 14px; }
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.spec { background: var(--surface); padding: 14px 16px; }
.spec span { display: block; font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-mono); }
.spec strong { font-weight: 500; font-size: 14.5px; }
.amenities { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.amenities li { font-size: 12.5px; padding: 6px 11px; border-radius: 8px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); color: var(--muted); }
.aside { position: sticky; top: 92px; }
.price-box { background: linear-gradient(180deg, rgba(76, 154, 255, 0.12), rgba(10, 19, 34, 0.6)); border: 1px solid rgba(76, 154, 255, 0.26); border-radius: var(--radius-lg); padding: 22px; }
.price-box .amount { font-family: var(--font-display); font-size: 2rem; font-weight: 600; letter-spacing: -0.03em; }
.price-box .amount small { font-size: 13px; color: var(--muted); font-family: var(--font-body); font-weight: 500; }
.price-box dl { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.price-box dl dd { margin: 0; color: var(--ink); font-weight: 500; }
.lister { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(76, 154, 255, 0.16);
  border: 1px solid rgba(76, 154, 255, 0.3);
  color: #b6d5ff; font-family: var(--font-display); font-weight: 600; font-size: 15px; flex: none;
}
.lister strong { display: block; font-size: 14px; }
.lister span { font-size: 11.5px; color: var(--faint); }
.note { font-size: 11.5px; color: var(--faint); line-height: 1.55; }

/* ---------- Data tables (dashboard/admin) ---------- */
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); font-family: var(--font-mono); font-weight: 500; background: rgba(255, 255, 255, 0.02); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
.pill { font-size: 11px; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); margin-bottom: 26px; overflow-x: auto; }
.tabs button {
  background: none; border: 0; cursor: pointer;
  padding: 12px 0; font-size: 14px; font-weight: 600; color: var(--muted);
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent-2); }

/* ---------- Modal / toast ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(2, 6, 12, 0.72); backdrop-filter: blur(6px);
}
.modal-overlay.open { display: flex; }
.modal { width: min(560px, 100%); max-height: 88vh; overflow-y: auto; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); }
.modal h2 { font-size: 1.2rem; margin-bottom: 6px; }
.modal p.muted { font-size: 13.5px; margin-bottom: 18px; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 20px);
  z-index: 300;
  background: #0f1e33;
  border: 1px solid rgba(47, 211, 155, 0.4);
  color: var(--ink);
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 13.5px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
  max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { border-color: rgba(255, 111, 111, 0.5); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 52px 0 34px; margin-top: 20px; background: var(--bg-soft); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 34px; }
.foot-grid h3 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; font-weight: 500; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 13.5px; color: var(--muted); }
.foot-grid a:hover { color: var(--ink); }
.foot-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 12px; color: var(--faint); }
.foot-brand p { color: var(--muted); font-size: 13px; max-width: 34ch; margin-top: 12px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { order: -1; max-width: 560px; }
  .detail-layout { grid-template-columns: 1fr; }
  .aside { position: static; }
  .browse { grid-template-columns: 1fr; }
  .filters { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 14px 20px 20px;
    background: rgba(6, 12, 22, 0.98);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open a { padding: 9px 0; width: 100%; }
  .brand-sub { display: none; }
  .search-fields { grid-template-columns: 1fr 1fr; }
  .search-fields .btn { grid-column: 1 / -1; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery img:first-child { grid-row: auto; grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .section { padding: 58px 0; }
  .nav { height: 64px; }
  .nav-links.open { top: 64px; }
  .brand img { height: 32px; }
  .foot-brand .brand img { height: 26px; }
  .hero { padding: 46px 0 40px; }
  .hero-note { left: 10px; bottom: 10px; }
  .form-grid { grid-template-columns: 1fr; }
  .search-fields { grid-template-columns: 1fr; }
  .listing-grid { grid-template-columns: 1fr; }
  .card-grid, .foot-grid { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .panel { padding: 18px; }
  .modal { padding: 20px; }
  .tabs { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
