/* ============================================================
   MY YARD FINDER — Master Stylesheet
   Colors: Warm spring/fall palette
   ============================================================ */

:root {
  --orange:    #D97706;
  --orange-lt: #F59E0B;
  --orange-dk: #B45309;
  --green:     #65A30D;
  --green-lt:  #84CC16;
  --green-dk:  #4D7C0F;
  --cream:     #FFFBEB;
  --cream-dk:  #FEF3C7;
  --brown:     #92400E;
  --brown-lt:  #D97706;
  --charcoal:  #1C1917;
  --gray:      #78716C;
  --gray-lt:   #E7E5E4;
  --white:     #FFFFFF;
  --red:       #DC2626;
  --shadow:    0 4px 24px rgba(0,0,0,0.10);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --radius:    12px;
  --radius-lg: 20px;
  --font:      'Inter', 'Segoe UI', Arial, sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-size: 16px; font-family: var(--font); background: var(--cream); color: var(--charcoal); line-height: 1.65; }
img  { max-width: 100%; height: auto; display: block; }
a    { color: var(--orange-dk); text-decoration: none; }
a:hover { color: var(--orange); text-decoration: underline; }
ul, ol { padding-left: 1.4em; }

/* ── Typography ─────────────────────────────────────────────── */
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.2; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p  { margin-bottom: 1em; }
.lead { font-size: 1.2rem; color: var(--gray); }

/* ── Layout ──────────────────────────────────────────────────── */
.container   { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.container-sm{ max-width: 760px;  margin: 0 auto; padding: 0 20px; }
.section     { padding: 72px 0; }
.section-sm  { padding: 48px 0; }
.section-lg  { padding: 100px 0; }
.text-center { text-align: center; }
.flex        { display: flex; gap: 16px; }
.flex-center { display: flex; align-items: center; justify-content: center; gap: 16px; }
.grid-2      { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3      { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4      { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mt-1        { margin-top: 8px; }
.mt-2        { margin-top: 16px; }
.mt-3        { margin-top: 24px; }
.mt-4        { margin-top: 40px; }
.mb-1        { margin-bottom: 8px; }
.mb-2        { margin-bottom: 16px; }
.mb-3        { margin-bottom: 24px; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 28px; border-radius: var(--radius);
  font-size: 1rem; font-weight: 700; cursor: pointer; border: none;
  transition: all 0.18s ease; text-decoration: none; white-space: nowrap;
}
.btn-primary   { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dk); color: var(--white); text-decoration: none; }
.btn-secondary { background: var(--green); color: var(--white); }
.btn-secondary:hover { background: var(--green-dk); color: var(--white); text-decoration: none; }
.btn-outline   { background: transparent; color: var(--orange); border: 2px solid var(--orange); }
.btn-outline:hover { background: var(--orange); color: var(--white); text-decoration: none; }
.btn-white     { background: var(--white); color: var(--orange-dk); }
.btn-white:hover { background: var(--cream); color: var(--orange-dk); text-decoration: none; }
.btn-lg        { padding: 18px 40px; font-size: 1.1rem; }
.btn-sm        { padding: 10px 20px; font-size: 0.9rem; }
.btn:disabled  { opacity: 0.55; cursor: not-allowed; }

/* ── Navbar ──────────────────────────────────────────────────── */
.navbar {
  background: var(--white);
  border-bottom: 2px solid var(--cream-dk);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  padding: 0 20px 0 8px;
  max-width: 1180px;
  margin: 0 auto;
  min-height: 60px;
}
.navbar-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; padding: 0; margin: 0; margin-left: 0; }
.navbar-logo img {
  height: 144px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.navbar-logo-text {
  font-size: 1.3rem; font-weight: 900; color: var(--charcoal); line-height: 1.1;
}
.navbar-logo-text span { color: var(--orange); }
.navbar-logo-sub {
  font-size: 0.68rem;
  color: var(--gray);
  font-weight: 500;
  letter-spacing: 0.03em;
  display: block;
}
.navbar-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: nowrap;
  flex-shrink: 0;
  margin-left: 32px;
}
.navbar-links a { font-weight: 600; color: var(--charcoal); font-size: 0.95rem; }
.navbar-links a:hover { color: var(--orange); text-decoration: none; }
.navbar-cta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
  flex-wrap: nowrap;
  margin-left: 32px;
  padding-left: 24px;
  border-left: 1px solid #e5e7eb;
}
.hamburger   { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 26px; height: 3px; background: var(--charcoal); margin: 5px 0; border-radius: 2px; transition: 0.2s; }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 50%, #ECFCCB 100%);
  padding: 80px 0 60px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(245,158,11,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--orange); color: var(--white);
  padding: 6px 14px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; margin-bottom: 20px;
}
.hero h1 { color: var(--charcoal); margin-bottom: 20px; }
.hero h1 span { color: var(--orange); }
.hero .lead { font-size: 1.18rem; margin-bottom: 32px; color: var(--gray); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust {
  display: flex; gap: 20px; flex-wrap: wrap; margin-top: 28px;
  font-size: 0.88rem; color: var(--gray);
}
.hero-trust span::before { content: '✓ '; color: var(--green); font-weight: 700; }
.hero-img {
  position: relative; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow);
}
.hero-img img { width: 100%; height: 380px; object-fit: cover; }

/* ── Search bar ──────────────────────────────────────────────── */
.search-bar {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 8px 8px 8px 20px;
  display: flex; gap: 8px; align-items: center;
  border: 2px solid var(--cream-dk);
  max-width: 640px;
}
.search-bar input, .search-bar select {
  border: none; outline: none; font-size: 1rem;
  background: transparent; color: var(--charcoal); flex: 1;
  padding: 8px 4px;
  font-family: var(--font);
}
.search-bar select {
  border-left: 2px solid var(--gray-lt);
  padding-left: 12px; max-width: 160px;
  cursor: pointer;
}
.search-big {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 2px solid var(--cream-dk);
  max-width: 760px; margin: 0 auto;
}
.search-big .search-row { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.search-big input, .search-big select {
  flex: 1; min-width: 120px; padding: 14px 16px;
  border: 2px solid var(--gray-lt); border-radius: var(--radius);
  font-size: 1rem; color: var(--charcoal); outline: none;
  font-family: var(--font); transition: border-color 0.15s;
}
.search-big input:focus, .search-big select:focus { border-color: var(--orange); }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1.5px solid var(--gray-lt);
  overflow: hidden; transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-img    { width: 100%; height: 200px; object-fit: cover; }
.card-body   { padding: 18px; }
.card-title  { font-weight: 800; font-size: 1rem; margin-bottom: 6px; color: var(--charcoal); }
.card-meta   { font-size: 0.84rem; color: var(--gray); margin-bottom: 8px; }
.card-price  { font-size: 1.4rem; font-weight: 900; color: var(--orange); }
.card-badge  {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.75rem; font-weight: 700; padding: 4px 10px;
  border-radius: 999px;
}
.badge-active  { background: #DCFCE7; color: #166534; }
.badge-featured{ background: #FEF3C7; color: #92400E; }
.badge-expiring{ background: #FEE2E2; color: #991B1B; }
.badge-ai      { background: #EDE9FE; color: #5B21B6; }

/* ── Sale item grid card ─────────────────────────────────────── */
.item-card { cursor: pointer; }
.item-card .card-img { height: 180px; }
.item-card .sold-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.4rem; font-weight: 900; letter-spacing: 0.1em;
}
.item-card-wrap { position: relative; }

/* ── Forms ───────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; color: var(--charcoal); }
label .required { color: var(--red); margin-left: 3px; }
.form-control {
  width: 100%; padding: 13px 16px;
  border: 2px solid var(--gray-lt); border-radius: var(--radius);
  font-size: 1rem; color: var(--charcoal); outline: none;
  font-family: var(--font); transition: border-color 0.15s; background: var(--white);
}
.form-control:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(217,119,6,0.12); }
.form-control.is-error { border-color: var(--red); }
.form-error { color: var(--red); font-size: 0.84rem; margin-top: 4px; }
.form-hint  { color: var(--gray); font-size: 0.84rem; margin-top: 4px; }
textarea.form-control { min-height: 120px; resize: vertical; }
select.form-control { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.form-check input[type=checkbox] { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--orange); cursor: pointer; flex-shrink: 0; }
.form-check label { font-weight: 400; font-size: 0.93rem; margin-bottom: 0; cursor: pointer; }

/* ── Step wizard ─────────────────────────────────────────────── */
.steps { display: flex; gap: 0; counter-reset: step; margin-bottom: 40px; }
.step {
  flex: 1; text-align: center; position: relative;
  padding: 0 10px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gray-lt); color: var(--gray);
  font-weight: 800; font-size: 1rem; margin: 0 auto 8px;
  position: relative; z-index: 1;
}
.step.active::before { background: var(--orange); color: var(--white); }
.step.done::before   { background: var(--green);  color: var(--white); content: '✓'; }
.step::after {
  content: ''; position: absolute; top: 20px; left: 50%; right: -50%;
  height: 2px; background: var(--gray-lt);
}
.step:last-child::after { display: none; }
.step-label { font-size: 0.8rem; font-weight: 600; color: var(--gray); }
.step.active .step-label { color: var(--orange); }
.step.done   .step-label { color: var(--green); }

/* ── Upload zone ─────────────────────────────────────────────── */
.upload-zone {
  border: 3px dashed var(--orange-lt); border-radius: var(--radius-lg);
  padding: 48px 24px; text-align: center; cursor: pointer;
  background: var(--cream); transition: border-color 0.2s, background 0.2s;
  position: relative;
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--orange); background: var(--cream-dk);
}
.upload-zone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-icon { font-size: 3rem; margin-bottom: 12px; }
.upload-zone h3 { color: var(--charcoal); margin-bottom: 8px; }
.upload-zone p  { color: var(--gray); font-size: 0.9rem; }

/* ── Photo preview grid ──────────────────────────────────────── */
.photo-preview-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px; margin-top: 16px;
}
.photo-preview-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 1; background: var(--gray-lt);
}
.photo-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-preview-item .remove-btn {
  position: absolute; top: 4px; right: 4px;
  background: rgba(0,0,0,0.6); color: white;
  border: none; border-radius: 50%;
  width: 24px; height: 24px; cursor: pointer;
  font-size: 0.7rem; display: flex; align-items: center; justify-content: center;
}

/* ── AI result card ──────────────────────────────────────────── */
.ai-result-card {
  background: linear-gradient(135deg, #FFFBEB, #ECFCCB);
  border: 2px solid var(--orange-lt);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
}
.ai-result-card .ai-badge {
  position: absolute; top: -12px; left: 20px;
  background: var(--orange); color: white;
  padding: 4px 14px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 800;
}
.ai-price-row { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.ai-price-market { color: var(--gray); text-decoration: line-through; font-size: 0.95rem; }
.ai-price-suggested { font-size: 1.6rem; font-weight: 900; color: var(--green-dk); }
.ai-price-save { background: var(--green); color: white; padding: 4px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; }

/* ── Sale storefront banner ──────────────────────────────────── */
.sale-banner {
  padding: 48px 24px; text-align: center;
  background: linear-gradient(135deg, var(--orange), var(--orange-dk));
  color: white; position: relative; overflow: hidden;
}
.sale-banner::before {
  content: ''; position: absolute; inset: 0;
  background: url('/assets/images/pattern.svg') center/cover;
  opacity: 0.07;
}
.sale-banner h1 { color: white; }
.sale-banner .sale-meta { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.sale-meta-item { display: flex; align-items: center; gap: 6px; font-size: 0.95rem; opacity: 0.92; }

/* ── Countdown timer ─────────────────────────────────────────── */
.countdown {
  display: flex; gap: 12px; justify-content: center; margin-top: 16px;
}
.countdown-unit {
  background: rgba(255,255,255,0.2); border-radius: var(--radius);
  padding: 10px 16px; text-align: center; min-width: 64px;
}
.countdown-num { font-size: 2rem; font-weight: 900; display: block; }
.countdown-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.85; }

/* ── Stats bar ───────────────────────────────────────────────── */
.stats-bar {
  background: var(--orange-dk); color: white;
  padding: 20px 0;
}
.stats-inner { display: flex; gap: 0; justify-content: space-around; flex-wrap: wrap; }
.stat-item { text-align: center; padding: 8px 20px; }
.stat-number { font-size: 2rem; font-weight: 900; display: block; }
.stat-label  { font-size: 0.8rem; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.05em; }

/* ── Feature blocks ──────────────────────────────────────────── */
.feature-icon {
  width: 64px; height: 64px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin-bottom: 16px;
  background: var(--cream-dk);
}
.feature-block { padding: 8px 0; }
.feature-block h3 { margin-bottom: 8px; }
.feature-block p  { color: var(--gray); font-size: 0.95rem; margin-bottom: 0; }

/* ── How it works ────────────────────────────────────────────── */
.how-step {
  text-align: center; padding: 12px;
}
.how-step-num {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-lt));
  color: white; font-size: 1.4rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.how-step h3 { margin-bottom: 8px; font-size: 1.05rem; }
.how-step p  { color: var(--gray); font-size: 0.9rem; }

/* ── Pricing cards ───────────────────────────────────────────── */
.pricing-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 2px solid var(--gray-lt); padding: 36px 28px;
  text-align: center; transition: box-shadow 0.2s;
}
.pricing-card.featured {
  border-color: var(--orange); box-shadow: 0 0 0 4px rgba(217,119,6,0.12);
  position: relative;
}
.pricing-card.featured::before {
  content: 'MOST POPULAR'; position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--orange); color: white; padding: 4px 16px;
  border-radius: 999px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em;
}
.pricing-price { font-size: 2.8rem; font-weight: 900; color: var(--orange); margin: 12px 0 4px; }
.pricing-price sup { font-size: 1.2rem; vertical-align: super; }
.pricing-price sub { font-size: 0.9rem; color: var(--gray); font-weight: 400; }
.pricing-features { list-style: none; padding: 0; margin: 20px 0 28px; text-align: left; }
.pricing-features li {
  padding: 8px 0; border-bottom: 1px solid var(--gray-lt);
  font-size: 0.93rem; display: flex; gap: 8px; align-items: flex-start;
}
.pricing-features li::before { content: '✓'; color: var(--green); font-weight: 900; flex-shrink: 0; }
.pricing-features li.no::before { content: '✗'; color: var(--gray-lt); }
.pricing-features li.no { color: var(--gray); }

/* ── Alerts / notices ────────────────────────────────────────── */
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 16px; font-size: 0.95rem; border-left: 4px solid; }
.alert-success { background: #F0FDF4; border-color: #16A34A; color: #166534; }
.alert-error   { background: #FEF2F2; border-color: var(--red); color: #991B1B; }
.alert-warning { background: #FFFBEB; border-color: var(--orange); color: #92400E; }
.alert-info    { background: #EFF6FF; border-color: #3B82F6; color: #1E40AF; }

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  background: var(--charcoal); color: #D6D3D1; padding: 64px 0 28px;
  margin-top: auto;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo-text { font-size: 1.4rem; font-weight: 900; color: var(--white); margin-bottom: 10px; }
.footer-brand .logo-text span { color: var(--orange-lt); }
.footer-tagline { font-size: 0.9rem; color: #A8A29E; margin-bottom: 16px; }
.footer-contact a { color: var(--orange-lt); }
.footer h4 { color: var(--white); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { color: #A8A29E; font-size: 0.9rem; transition: color 0.15s; }
.footer ul li a:hover { color: var(--orange-lt); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid #292524; padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; font-size: 0.84rem; color: #78716C;
}
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a { color: #78716C; font-size: 0.84rem; }
.footer-legal a:hover { color: var(--orange-lt); text-decoration: none; }

/* ── Dashboard ───────────────────────────────────────────────── */
.dash-layout { display: grid; grid-template-columns: 240px 1fr; gap: 0; min-height: 80vh; }
.dash-sidebar {
  background: var(--charcoal); padding: 32px 0;
  border-right: 2px solid rgba(255,255,255,0.05);
}
.dash-sidebar .sidebar-user { padding: 0 24px 24px; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 16px; }
.dash-sidebar .sidebar-user-name { font-weight: 800; color: white; font-size: 1rem; }
.dash-sidebar .sidebar-user-plan { font-size: 0.8rem; color: var(--orange-lt); }
.dash-sidebar nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 24px; color: #A8A29E; font-size: 0.93rem; font-weight: 600;
  transition: color 0.15s, background 0.15s;
}
.dash-sidebar nav a:hover, .dash-sidebar nav a.active {
  color: white; background: rgba(217,119,6,0.15);
  text-decoration: none; border-right: 3px solid var(--orange);
}
.dash-main { padding: 36px 40px; background: #F9F8F7; }
.dash-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.dash-stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.dash-stat {
  background: white; border-radius: var(--radius); padding: 20px;
  border: 1.5px solid var(--gray-lt);
}
.dash-stat-num  { font-size: 2rem; font-weight: 900; color: var(--charcoal); }
.dash-stat-label{ font-size: 0.82rem; color: var(--gray); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 4px; }

/* ── Admin ───────────────────────────────────────────────────── */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { background: var(--cream-dk); padding: 12px 16px; text-align: left; font-size: 0.85rem; font-weight: 700; color: var(--charcoal); }
.admin-table td { padding: 12px 16px; border-bottom: 1px solid var(--gray-lt); font-size: 0.9rem; vertical-align: middle; }
.admin-table tr:hover td { background: #FAFAFA; }

/* ── Loader ──────────────────────────────────────────────────── */
.loader { display: inline-block; width: 22px; height: 22px; border: 3px solid rgba(217,119,6,0.2); border-top-color: var(--orange); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ai-loading { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px; }
.ai-loading p { color: var(--gray); font-size: 0.95rem; }

/* ── Responsive ──────────────────────────────────────────────── */

/* ── Mobile nav — hidden globally, shown only on mobile via .open ── */
#mobile-nav,
.navbar-mobile {
  display: none !important;
  background: #fff;
  padding: 16px 20px;
  border-top: 1px solid var(--gray-lt);
  flex-direction: column;
  gap: 12px;
}
.navbar-mobile.open,
#mobile-nav.open {
  display: flex !important;
}
.navbar-mobile a,
#mobile-nav a {
  display: block;
  padding: 12px 0;
  font-weight: 600;
  color: var(--charcoal);
  border-bottom: 1px solid var(--gray-lt);
}
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dash-stat-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .navbar-logo-sub { display: none; }
  .navbar-logo-text { font-size: 1.1rem; }
  .navbar-logo img { width: 36px; height: 36px; }
  .hero-img   { display: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-row   { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .navbar-links, .navbar-cta { display: none; }
  .hamburger  { display: block; }

  .navbar-mobile a { display: block; padding: 12px 0; font-weight: 600; color: var(--charcoal); border-bottom: 1px solid var(--gray-lt); }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-sidebar { display: none; }
  .dash-main { padding: 20px 16px; }
  .search-bar { flex-direction: column; gap: 8px; align-items: stretch; }
  .search-bar select { max-width: 100%; border-left: none; border-top: 2px solid var(--gray-lt); padding-top: 10px; }
  .stats-inner { gap: 0; }
  .stat-item { padding: 12px; }
  h1 { font-size: 1.9rem; }
  .btn-lg { padding: 14px 24px; font-size: 1rem; }
  .section { padding: 48px 0; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .steps  { flex-direction: column; }
  .steps .step::after { display: none; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .pricing-card { padding: 24px 18px; }

  /* Sale page action buttons */
  .sale-action-btns { flex-direction: column !important; gap: 10px !important; }
  .sale-action-btns a,
  .sale-action-btns button { width: 100% !important; text-align: center; }

  /* PIN modal full-screen on mobile */
  .pin-modal-box { width: 94vw !important; max-width: 94vw !important; padding: 24px 16px !important; }

  /* Browse filter tabs — horizontal scroll */
  .filter-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch;
                 display: flex; flex-wrap: nowrap; padding-bottom: 4px; }
  .filter-tabs::-webkit-scrollbar { height: 3px; }
  .filter-tab  { white-space: nowrap; flex-shrink: 0; }

  /* Item cards 2-col on small phone */
  .items-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }

  /* Form containers — no side overflow */
  .form-card { padding: 24px 16px !important; }

  /* Strength meter label wrap */
  #pws-label { font-size: 11px !important; }
}

/* ── Tall-phone (430px+ like iPhone 14 Pro Max) ── */
@media (min-width: 390px) and (max-width: 480px) {
  .items-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ── Accessibility: prevent iOS zoom on input focus ── */
@media (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* ── Accessibility: larger tap targets for 60+ users ── */
.btn { min-height: 44px; }
.form-control { min-height: 48px; font-size: 16px; }
