/* ════════════════════════════════════════════════════════════════════════════
   RentTruth — main.css
   Aesthetic: warm editorial + modern card design, deep amber + charcoal
   Fonts: Syne (display) + DM Sans (body)
════════════════════════════════════════════════════════════════════════════ */

/* ── Custom properties ─────────────────────────────────────────────────────── */
:root {
  --c-bg:       #0f0f0f;
  --c-surface:  #181818;
  --c-card:     #1e1e1e;
  --c-border:   rgba(255,255,255,.08);
  --c-text:     #f0ede8;
  --c-muted:    #888;
  --c-amber:    #f5a623;
  --c-amber-dk: #c97d0a;
  --c-amber-lt: #ffd580;
  --c-red:      #e05252;
  --c-green:    #4caf7d;
  --c-blue:     #5b9cf6;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shadow-card: 0 4px 24px rgba(0,0,0,.45);
  --shadow-pop:  0 24px 64px rgba(0,0,0,.7);

  --nav-h: 64px;
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --ease-out:    cubic-bezier(.16,1,.3,1);
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}
a { color: var(--c-amber); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
img { max-width: 100%; height: auto; display: block; }
input, textarea, select { font-family: inherit; }

/* ── Noise overlay ─────────────────────────────────────────────────────────── */
.noise {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: .03;
}

/* ── Navbar ────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 3rem);
  background: rgba(15,15,15,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--c-border);
  transition: background .3s;
}
.nav.scrolled { background: rgba(15,15,15,.97); }
.nav__logo {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 800;
  color: var(--c-text); letter-spacing: -.02em;
}
.nav__logo span { color: var(--c-amber); }
.nav__actions { display: flex; align-items: center; gap: .75rem; }
.nav__user { position: relative; }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem 1.25rem;
  border-radius: 50px;
  font-size: .9rem; font-weight: 500;
  transition: all .2s var(--ease-out);
  outline: none;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn--primary {
  background: var(--c-amber);
  color: #0f0f0f;
  font-weight: 700;
}
.btn--primary:hover { background: var(--c-amber-lt); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(245,166,35,.35); }
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  color: var(--c-muted);
  padding: .5rem;
  border-radius: 50%;
  width: 40px; height: 40px;
  display: grid; place-items: center;
}
.btn--ghost svg { width: 20px; height: 20px; }
.btn--ghost:hover { background: var(--c-surface); color: var(--c-text); }

.btn--outline {
  border: 1.5px solid rgba(255,255,255,.2);
  color: var(--c-text);
}
.btn--outline:hover { border-color: var(--c-amber); color: var(--c-amber); }

.btn--avatar {
  display: flex; align-items: center; gap: .5rem;
  padding: .3rem .75rem .3rem .3rem;
  border-radius: 50px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  font-size: .88rem; color: var(--c-text);
}
.btn--avatar:hover { border-color: var(--c-amber); }
.avatar-ring {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--c-amber); color: #0f0f0f;
  font-weight: 800; font-size: .85rem;
  display: grid; place-items: center;
}
.chevron { width: 14px !important; height: 14px !important; transition: transform .2s; }
.btn--avatar[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.btn--lg { padding: .8rem 1.75rem; font-size: 1rem; }
.btn--sm { padding: .4rem .9rem; font-size: .82rem; }
.btn--full { width: 100%; justify-content: center; }

.btn:disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }

/* Dropdown */
.dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 180px;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-pop);
  padding: .4rem;
  opacity: 0; pointer-events: none; transform: translateY(-8px);
  transition: all .2s var(--ease-out);
  z-index: 200;
}
.dropdown.open { opacity: 1; pointer-events: all; transform: translateY(0); }
.dropdown__item {
  display: block; width: 100%;
  padding: .6rem .9rem; border-radius: var(--r-sm);
  font-size: .88rem; color: var(--c-text);
  text-align: left; background: none; border: none;
  transition: background .15s;
}
.dropdown__item:hover { background: rgba(255,255,255,.06); text-decoration: none; }
.dropdown__item--danger { color: var(--c-red); }
.dropdown__sep { border: none; border-top: 1px solid var(--c-border); margin: .35rem 0; }

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 3rem) clamp(1.5rem,6vw,5rem) 5rem;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--c-amber);
  background: rgba(245,166,35,.1);
  border: 1px solid rgba(245,166,35,.2);
  padding: .35rem .85rem; border-radius: 50px;
  width: fit-content; margin-bottom: 1.75rem;
  animation: fadeUp .7s var(--ease-out) both;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 7.5rem);
  font-weight: 800; line-height: 1;
  letter-spacing: -.035em;
  animation: fadeUp .7s .1s var(--ease-out) both;
}
.hero__title--accent { color: var(--c-amber); }
.hero__sub {
  margin-top: 1.25rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--c-muted); max-width: 400px;
  animation: fadeUp .7s .2s var(--ease-out) both;
}
.hero__cta {
  margin-top: 2.5rem;
  display: flex; gap: 1rem; flex-wrap: wrap;
  animation: fadeUp .7s .3s var(--ease-out) both;
}
.hero__stats {
  margin-top: 4rem;
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  animation: fadeUp .7s .4s var(--ease-out) both;
}
.stat { display: flex; flex-direction: column; }
.stat__num {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 800; line-height: 1;
  color: var(--c-amber);
}
.stat__label { font-size: .78rem; color: var(--c-muted); text-transform: uppercase; letter-spacing: .08em; }
.stat__div { width: 1px; height: 40px; background: var(--c-border); }

/* Blobs */
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); pointer-events: none; z-index: -1;
}
.blob--1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(245,166,35,.18), transparent 70%);
  top: -100px; right: -100px;
  animation: blobFloat 8s ease-in-out infinite;
}
.blob--2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(91,156,246,.12), transparent 70%);
  bottom: 0; left: 10%;
  animation: blobFloat 10s ease-in-out infinite reverse;
}
.blob--3 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(76,175,125,.1), transparent 70%);
  top: 50%; right: 20%;
  animation: blobFloat 12s ease-in-out infinite;
}
@keyframes blobFloat { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(20px,-30px) scale(1.05); } }

/* ── Search bar ────────────────────────────────────────────────────────────── */
.search-bar {
  position: sticky; top: var(--nav-h); z-index: 90;
  background: rgba(15,15,15,.9); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--c-border);
  max-height: 0; overflow: hidden;
  transition: max-height .35s var(--ease-out), padding .35s;
}
.search-bar.open { max-height: 120px; padding: 1rem 0; }
.search-bar[aria-hidden="false"] { max-height: 120px; }
.search-bar__inner {
  display: flex; flex-direction: column; gap: .75rem;
  padding: 0 clamp(1.5rem,5vw,4rem);
  position: relative;
}
.search-bar__inner > svg {
  position: absolute; left: calc(clamp(1.5rem,5vw,4rem) + .85rem);
  top: .7rem; width: 18px; height: 18px; color: var(--c-muted);
}
#searchInput {
  width: 100%; padding: .7rem 1rem .7rem 2.75rem;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: 50px; color: var(--c-text); font-size: .95rem;
  outline: none; transition: border-color .2s;
}
#searchInput:focus { border-color: var(--c-amber); }
.search-bar__filters { display: flex; gap: .5rem; flex-wrap: wrap; }
.filter-pill {
  padding: .3rem .8rem; border-radius: 50px;
  font-size: .8rem; font-weight: 500;
  background: var(--c-surface); border: 1px solid var(--c-border);
  color: var(--c-muted); transition: all .15s;
}
.filter-pill.active, .filter-pill:hover { background: var(--c-amber); color: #0f0f0f; border-color: var(--c-amber); }

/* ── Feed ──────────────────────────────────────────────────────────────────── */
.feed {
  padding: 4rem clamp(1.5rem,5vw,4rem);
  max-width: 1400px; margin: 0 auto;
}
.feed__header { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 2rem; }
.feed__title { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; }
.feed__count { font-size: .85rem; color: var(--c-muted); }

/* Reviews grid — masonry-ish with CSS columns */
.reviews-grid {
  columns: 1; gap: 1.25rem;
  column-count: 1;
}
@media (min-width: 600px) { .reviews-grid { column-count: 2; } }
@media (min-width: 1000px) { .reviews-grid { column-count: 3; } }
@media (min-width: 1300px) { .reviews-grid { column-count: 4; } }

/* ── Review card ───────────────────────────────────────────────────────────── */
.review-card {
  break-inside: avoid;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 1.4rem;
  margin-bottom: 1.25rem;
  cursor: pointer;
  transition: transform .25s var(--ease-spring), box-shadow .25s, border-color .25s;
  animation: cardIn .4s var(--ease-out) both;
  position: relative; overflow: hidden;
}
.review-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.review-card[data-rating="5"]::before { background: var(--c-green); }
.review-card[data-rating="4"]::before { background: #7fc97a; }
.review-card[data-rating="3"]::before { background: var(--c-amber); }
.review-card[data-rating="2"]::before { background: #e0943b; }
.review-card[data-rating="1"]::before { background: var(--c-red); }
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); border-color: rgba(255,255,255,.15); }

.rc__header { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; margin-bottom: .75rem; }
.rc__stars { color: var(--c-amber); font-size: 1rem; letter-spacing: 1px; }
.rc__anon-badge {
  font-size: .7rem; padding: .2rem .5rem; border-radius: 4px;
  background: rgba(255,255,255,.07); color: var(--c-muted);
}
.rc__address {
  font-family: var(--font-display); font-size: .95rem; font-weight: 600;
  color: var(--c-text); margin-bottom: .2rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rc__landlord { font-size: .78rem; color: var(--c-muted); margin-bottom: .75rem; }
.rc__text {
  font-size: .88rem; line-height: 1.65; color: rgba(240,237,232,.8);
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.rc__images {
  display: flex; gap: .4rem; margin-top: .9rem; flex-wrap: wrap;
}
.rc__img {
  width: 60px; height: 60px; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--c-border);
}
.rc__img--more {
  width: 60px; height: 60px; border-radius: 8px;
  background: var(--c-surface); border: 1px solid var(--c-border);
  display: grid; place-items: center;
  font-size: .8rem; color: var(--c-muted);
}
.rc__footer { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; }
.rc__author { font-size: .78rem; color: var(--c-muted); }
.rc__helpful {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .78rem; color: var(--c-muted);
  background: var(--c-surface); padding: .25rem .6rem; border-radius: 50px;
  border: 1px solid var(--c-border); transition: all .15s;
}
.rc__helpful:hover { border-color: var(--c-amber); color: var(--c-amber); }
.rc__helpful.voted { color: var(--c-amber); border-color: var(--c-amber); }

/* Pagination */
.feed__pagination { display: flex; justify-content: center; gap: .5rem; margin-top: 2.5rem; }
.page-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--c-card); border: 1px solid var(--c-border);
  color: var(--c-text); font-size: .88rem;
  transition: all .15s;
}
.page-btn:hover, .page-btn.active { background: var(--c-amber); color: #0f0f0f; border-color: var(--c-amber); }

/* Loading */
.loading-state { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 4rem; color: var(--c-muted); }
.spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid rgba(245,166,35,.2);
  border-top-color: var(--c-amber);
  animation: spin 1s linear infinite;
}

/* Empty state */
.empty-state { text-align: center; padding: 5rem 2rem; color: var(--c-muted); }
.empty-state__icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state__title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--c-text); margin-bottom: .5rem; }

/* ── Modals ────────────────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.75); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  animation: fadeIn .2s both;
}
.modal-backdrop[hidden] { display: none; }

.modal {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: 2rem;
  width: 100%; max-width: 460px;
  max-height: 90svh; overflow-y: auto;
  position: relative;
  animation: modalIn .35s var(--ease-spring) both;
  scrollbar-width: thin; scrollbar-color: var(--c-border) transparent;
}
.modal--dash { max-width: 700px; }
.modal--submit { max-width: 580px; }
.modal--review { max-width: 640px; }

.modal__close {
  position: absolute; top: 1.2rem; right: 1.2rem;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.07); border: 1px solid var(--c-border);
  color: var(--c-muted); font-size: 1.1rem;
  display: grid; place-items: center;
  transition: all .15s;
}
.modal__close:hover { background: var(--c-red); color: #fff; border-color: var(--c-red); }

.modal__brand {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 800;
  margin-bottom: 1.25rem; color: var(--c-text);
}
.modal__brand span { color: var(--c-amber); }
.modal__title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-bottom: .35rem; }
.modal__sub { font-size: .88rem; color: var(--c-muted); margin-bottom: 1.5rem; }
.modal__msg {
  margin-top: 1rem; padding: .75rem 1rem; border-radius: var(--r-sm);
  font-size: .88rem; display: none;
}
.modal__msg.error { display: block; background: rgba(224,82,82,.12); border: 1px solid rgba(224,82,82,.3); color: #f08080; }
.modal__msg.success { display: block; background: rgba(76,175,125,.12); border: 1px solid rgba(76,175,125,.3); color: var(--c-green); }

/* Tabs */
.tab-row { display: flex; gap: .25rem; background: var(--c-surface); border-radius: 50px; padding: .25rem; margin-bottom: 1.5rem; }
.tab {
  flex: 1; padding: .55rem; border-radius: 50px;
  font-size: .88rem; font-weight: 500; color: var(--c-muted);
  transition: all .2s;
}
.tab.active { background: var(--c-amber); color: #0f0f0f; font-weight: 700; }

.tab-panel { display: flex; flex-direction: column; gap: 1rem; }
.tab-panel.hidden { display: none; }

/* Toggle row */
.toggle-row { display: flex; gap: .4rem; flex-wrap: wrap; }
.toggle {
  padding: .45rem .9rem; border-radius: 50px;
  border: 1px solid var(--c-border); color: var(--c-muted); font-size: .85rem;
  transition: all .15s;
}
.toggle.active { background: var(--c-amber); color: #0f0f0f; border-color: var(--c-amber); font-weight: 600; }

/* ── Form fields ───────────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: .4rem; }
.field__label { font-size: .82rem; font-weight: 500; color: rgba(240,237,232,.7); }
.field__input, .field__textarea {
  padding: .7rem 1rem;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-sm); color: var(--c-text); font-size: .95rem;
  outline: none; transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.field__input:focus, .field__textarea:focus {
  border-color: var(--c-amber);
  box-shadow: 0 0 0 3px rgba(245,166,35,.15);
}
.field__textarea { resize: vertical; min-height: 120px; }
.field__hint { font-size: .75rem; color: var(--c-muted); }
.field__wrap { position: relative; }
.field__wrap .field__input { padding-right: 3rem; }
.field__eye {
  position: absolute; right: .75rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; font-size: .95rem; cursor: pointer;
  color: var(--c-muted); padding: .25rem;
}
.field__counter { font-size: .75rem; color: var(--c-muted); text-align: right; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.field-row .field--sm { grid-column: span 1; }
.req { color: var(--c-amber); }

/* Password strength */
.strength-bar {
  height: 4px; background: var(--c-border); border-radius: 4px; overflow: hidden; margin-top: .25rem;
}
.strength-fill { height: 100%; width: 0; border-radius: 4px; transition: width .3s, background .3s; }

/* Anonymous preview */
.anon-preview {
  background: rgba(245,166,35,.08); border: 1px solid rgba(245,166,35,.2);
  border-radius: var(--r-sm); padding: .6rem .9rem;
  font-size: .82rem; color: var(--c-amber);
}

/* OTP */
.otp-icon { font-size: 3rem; margin-bottom: 1rem; }
.otp-inputs { display: flex; gap: .5rem; justify-content: center; margin-bottom: 1.25rem; }
.otp-box {
  width: 46px; height: 54px; text-align: center;
  background: var(--c-surface); border: 2px solid var(--c-border);
  border-radius: var(--r-sm); color: var(--c-text);
  font-size: 1.4rem; font-weight: 700; font-family: var(--font-display);
  outline: none; transition: border-color .2s, box-shadow .2s;
  caret-color: var(--c-amber);
}
.otp-box:focus { border-color: var(--c-amber); box-shadow: 0 0 0 3px rgba(245,166,35,.15); }
.otp-box.filled { border-color: rgba(245,166,35,.6); }
.link-btn {
  background: none; border: none; color: var(--c-amber); font-size: .85rem;
  text-align: center; padding: .25rem; cursor: pointer;
  transition: color .15s;
}
.link-btn:hover { color: var(--c-amber-lt); }

/* ── Star picker ───────────────────────────────────────────────────────────── */
.star-picker { display: flex; gap: .35rem; }
.star {
  font-size: 2.2rem; line-height: 1; color: var(--c-border);
  transition: color .15s, transform .15s var(--ease-spring);
  padding: 0 .1rem;
}
.star:hover, .star.active { color: var(--c-amber); }
.star.active { transform: scale(1.2); }
.star-labels { margin-top: .25rem; }
#starLabel { font-size: .82rem; color: var(--c-muted); font-style: italic; }

/* ── Upload zone ───────────────────────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--c-border); border-radius: var(--r-md);
  padding: 2rem; text-align: center; cursor: pointer;
  transition: all .2s;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--c-amber);
  background: rgba(245,166,35,.05);
}
.upload-zone svg { width: 32px; height: 32px; color: var(--c-muted); }
.upload-zone span { font-size: .88rem; color: var(--c-muted); }
.upload-zone u { color: var(--c-amber); }
.upload-zone__hint { font-size: .75rem; }

.image-preview { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .75rem; }
.img-thumb {
  position: relative; width: 80px; height: 80px;
}
.img-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; border: 1px solid var(--c-border); }
.img-thumb__rm {
  position: absolute; top: -6px; right: -6px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--c-red); color: #fff;
  font-size: .7rem; display: grid; place-items: center;
  border: 2px solid var(--c-card); transition: transform .15s;
}
.img-thumb__rm:hover { transform: scale(1.2); }

/* ── Dashboard ─────────────────────────────────────────────────────────────── */
.dash__header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1rem; margin-bottom: 1.75rem; flex-wrap: wrap;
}
.dash__title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; }
.dash__anon { font-size: .82rem; color: var(--c-muted); margin-top: .2rem; }
.dash__anon strong { color: var(--c-amber); }
.dash__reviews { display: flex; flex-direction: column; gap: 1rem; }

/* Dashboard review card */
.dash-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 1.1rem 1.25rem;
  position: relative;
}
.dash-card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.dash-card__addr { font-weight: 600; font-size: .95rem; }
.dash-card__meta { display: flex; gap: .5rem; align-items: center; font-size: .78rem; color: var(--c-muted); }
.status-badge {
  display: inline-block; padding: .15rem .5rem; border-radius: 4px;
  font-size: .72rem; font-weight: 600; text-transform: uppercase;
}
.status-badge--approved { background: rgba(76,175,125,.15); color: var(--c-green); }
.status-badge--pending  { background: rgba(245,166,35,.15);  color: var(--c-amber); }
.status-badge--flagged  { background: rgba(224,82,82,.15);   color: var(--c-red); }
.dash-card__text { font-size: .88rem; color: rgba(240,237,232,.7); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dash-card__imgs { display: flex; gap: .4rem; margin-top: .6rem; flex-wrap: wrap; }
.dash-card__img { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; border: 1px solid var(--c-border); }

/* Review detail modal */
.rd__address { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; margin-bottom: .25rem; }
.rd__meta { display: flex; gap: 1rem; align-items: center; font-size: .82rem; color: var(--c-muted); margin-bottom: 1rem; flex-wrap: wrap; }
.rd__stars { color: var(--c-amber); font-size: 1.2rem; }
.rd__text { font-size: .95rem; line-height: 1.75; color: rgba(240,237,232,.85); white-space: pre-wrap; }
.rd__images { display: flex; gap: .6rem; margin-top: 1.25rem; flex-wrap: wrap; }
.rd__img { width: 120px; height: 90px; object-fit: cover; border-radius: 10px; border: 1px solid var(--c-border); cursor: zoom-in; transition: transform .2s; }
.rd__img:hover { transform: scale(1.03); }
.rd__actions { display: flex; justify-content: flex-end; gap: .75rem; margin-top: 1.5rem; }

/* ── Toast ─────────────────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%) translateY(100px);
  background: var(--c-card); border: 1px solid var(--c-border);
  border-radius: 50px; padding: .65rem 1.5rem;
  font-size: .9rem; font-weight: 500;
  box-shadow: var(--shadow-pop); z-index: 9999;
  transition: transform .35s var(--ease-spring), opacity .3s;
  opacity: 0; pointer-events: none; white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: all; }
.toast.toast--ok  { border-color: rgba(76,175,125,.4); color: var(--c-green); }
.toast.toast--err { border-color: rgba(224,82,82,.4); color: var(--c-red); }

/* ── Footer ────────────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--c-border); padding: 2.5rem clamp(1.5rem,5vw,4rem); }
.footer__inner { max-width: 1400px; margin: 0 auto; display: flex; gap: 1.5rem; flex-direction: column; align-items: center; text-align: center; }
.footer__logo { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--c-text); }
.footer__logo span { color: var(--c-amber); }
.footer__copy { font-size: .8rem; color: var(--c-muted); max-width: 500px; }

/* ── Submit form layout ────────────────────────────────────────────────────── */
.submit-form { display: flex; flex-direction: column; gap: 1.1rem; }

/* ── Animations ────────────────────────────────────────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: scale(.93) translateY(16px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Staggered card animation */
.review-card:nth-child(1) { animation-delay: .05s; }
.review-card:nth-child(2) { animation-delay: .1s; }
.review-card:nth-child(3) { animation-delay: .15s; }
.review-card:nth-child(4) { animation-delay: .2s; }
.review-card:nth-child(5) { animation-delay: .25s; }
.review-card:nth-child(6) { animation-delay: .3s; }
.review-card:nth-child(n+7) { animation-delay: .35s; }

/* ── Utilities ─────────────────────────────────────────────────────────────── */
.hidden { display: none !important; }

/* ── Scrollbar ─────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.2); }

/* ── Responsive tweaks ─────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .modal { padding: 1.5rem 1.25rem; border-radius: var(--r-lg); }
  .field-row { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; }
  .btn--lg { width: 100%; justify-content: center; }
  .otp-box { width: 40px; height: 48px; font-size: 1.2rem; }
}

/* ── Selection ─────────────────────────────────────────────────────────────── */
::selection { background: rgba(245,166,35,.35); color: var(--c-text); }
