/* ============================================================
   DnShelf.com — Main Stylesheet
   Colorful & Vibrant | Domain Directory / Listings
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --c-bg:        #0a0a0f;
  --c-surface:   #13131a;
  --c-card:      #1a1a26;
  --c-border:    #2a2a3d;
  --c-text:      #e8e8f0;
  --c-muted:     #7a7a9a;
  --c-white:     #ffffff;

  /* Vibrant palette */
  --c-coral:     #ff5f6d;
  --c-orange:    #ff9a3c;
  --c-yellow:    #ffd93d;
  --c-lime:      #6bcb77;
  --c-cyan:      #4ecdc4;
  --c-blue:      #4d96ff;
  --c-violet:    #a855f7;
  --c-pink:      #f472b6;

  --grad-hero:   linear-gradient(135deg, #ff5f6d 0%, #ffc371 50%, #4ecdc4 100%);
  --grad-card:   linear-gradient(135deg, rgba(255,95,109,0.12) 0%, rgba(78,205,196,0.12) 100%);

  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body:    'Inter', sans-serif;

  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   22px;
  --radius-xl:   32px;

  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 40px rgba(255,95,109,0.2);

  --transition:  all 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 99px; }

/* ── Utility ───────────────────────────────────────────────── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.gradient-text {
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--grad-hero);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255,95,109,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255,95,109,0.45); }

.btn-outline {
  background: transparent;
  color: var(--c-text);
  border: 1.5px solid var(--c-border);
}
.btn-outline:hover { border-color: var(--c-coral); color: var(--c-coral); }

.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--c-text);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); }

/* ── Navigation ────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--c-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--grad-hero);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--c-muted);
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--c-text); background: var(--c-card); }

.nav-cta { margin-left: 8px; padding: 9px 20px !important; font-size: 0.88rem !important; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  padding: 16px 24px;
  gap: 4px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--c-muted);
  transition: var(--transition);
}
.nav-mobile a:hover { color: var(--c-text); background: var(--c-card); }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
}
.hero-blob-1 { width: 500px; height: 500px; background: var(--c-coral); top: -100px; left: -100px; }
.hero-blob-2 { width: 400px; height: 400px; background: var(--c-cyan); bottom: -80px; right: -80px; }
.hero-blob-3 { width: 300px; height: 300px; background: var(--c-violet); top: 30%; left: 40%; }

.hero-content { position: relative; z-index: 1; text-align: center; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255,95,109,0.12);
  border: 1px solid rgba(255,95,109,0.3);
  border-radius: 99px;
  font-size: 0.82rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--c-coral);
  margin-bottom: 28px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.03em;   /* Plus Jakarta Sans needs slightly tighter tracking */
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--c-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label { font-size: 0.82rem; color: var(--c-muted); font-weight: 500; }

/* ── Section Commons ───────────────────────────────────────── */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.section-header p { color: var(--c-muted); font-size: 1.05rem; max-width: 520px; margin: 0 auto; }

/* ── Category Grid (Home) ──────────────────────────────────── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}

.cat-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: var(--transition);
  background: var(--grad-card);
}
.cat-card:hover { transform: translateY(-4px); border-color: rgba(255,95,109,0.3); box-shadow: var(--shadow-card); }
.cat-card:hover::before { opacity: 1; }

.cat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
  position: relative;
}

.cat-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.cat-card p { font-size: 0.85rem; color: var(--c-muted); line-height: 1.5; margin-bottom: 18px; }

.cat-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cat-count {
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--c-muted);
}
.cat-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: var(--transition);
}
.cat-card:hover .cat-arrow { background: var(--c-coral); color: #fff; transform: translateX(3px); }

/* ── Featured Domains ──────────────────────────────────────── */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.domain-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.domain-card:hover { transform: translateY(-3px); border-color: rgba(78,205,196,0.3); box-shadow: 0 8px 32px rgba(0,0,0,0.3); }

.domain-header {
  display: flex;
  flex-direction: column;   /* always stack — name on top, badge below */
  align-items: flex-start;
  gap: 8px;
}

.domain-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-white);
  word-break: break-word;
  width: 100%;              /* always full card width */
}

.domain-badge {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.badge-hot { background: rgba(255,95,109,0.15); color: var(--c-coral); border: 1px solid rgba(255,95,109,0.25); }
.badge-new { background: rgba(107,203,119,0.15); color: var(--c-lime); border: 1px solid rgba(107,203,119,0.25); }
.badge-sale { background: rgba(255,217,61,0.15); color: var(--c-yellow); border: 1px solid rgba(255,217,61,0.25); }

.domain-desc { font-size: 0.88rem; color: var(--c-muted); line-height: 1.55; }

.domain-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; gap: 10px; }

.domain-price {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--c-white);
}
.domain-price span { font-size: 0.78rem; color: var(--c-muted); font-weight: 400; display: block; }

.btn-offer {
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  background: var(--grad-hero);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-offer:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(255,95,109,0.4); }

/* ── How it Works ──────────────────────────────────────────── */
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.how-card {
  text-align: center;
  padding: 36px 24px;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
}

.how-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--grad-hero);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.how-card h3 { font-family: var(--font-display); font-weight: 700; margin-bottom: 10px; font-size: 1.05rem; }
.how-card p { color: var(--c-muted); font-size: 0.88rem; line-height: 1.6; }

/* ── Page Hero (inner pages) ───────────────────────────────── */
.page-hero {
  padding: 60px 0 48px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--c-border);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--c-muted);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--c-muted); transition: var(--transition); }
.breadcrumb a:hover { color: var(--c-coral); }
.breadcrumb span { color: var(--c-border); }

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.page-hero p { color: var(--c-muted); font-size: 1rem; max-width: 540px; }

.page-hero-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 24px;
}

/* ── Domain Listing (Category Page) ───────────────────────── */
.listing-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.listing-count { font-size: 0.9rem; color: var(--c-muted); }
.listing-count strong { color: var(--c-text); font-family: var(--font-display); }

.listing-sort {
  display: flex;
  align-items: center;
  gap: 8px;
}
.listing-sort label { font-size: 0.85rem; color: var(--c-muted); }
.listing-sort select {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  color: var(--c-text);
  padding: 8px 12px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  cursor: pointer;
  outline: none;
}
.listing-sort select:focus { border-color: var(--c-coral); }

.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

/* ── Offer Modal ───────────────────────────────────────────── */
/* ── Offer Modal ───────────────────────────────────────────────
   Layout:
   .modal           = fixed box, flex column, max-height capped
   .modal-header    = sticky top — close button + title ALWAYS visible
   .modal-body      = flex-grow + overflow-y:auto — scrolls the form
   ─────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* Outer shell — flex column so header is fixed and body scrolls */
.modal {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 480px;
  max-height: 88vh;          /* cap height — never overflows screen */
  display: flex;
  flex-direction: column;
  z-index: 1001;
  overflow: hidden;          /* clip children to border-radius */
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.modal-overlay.open .modal {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

/* ── Sticky header — NEVER scrolls away ── */
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 22px 14px;
  flex-shrink: 0;            /* never shrink — always fully visible */
  border-bottom: 1px solid var(--c-border);
  background: var(--c-surface);
}
.modal-header h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 2px;
  line-height: 1.2;
}

/* ── Scrollable form body ── */
.modal-body {
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;            /* take remaining height, scroll when needed */
  padding: 18px 22px 24px;
}

.modal-close {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--c-muted);
  font-size: 0.9rem;
  transition: var(--transition);
  line-height: 1;
  margin-top: 2px;
}
.modal-close:hover { color: var(--c-text); background: var(--c-border); }

.modal-domain {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Forms ─────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 8px;
  font-family: var(--font-display);
}
.form-control {
  width: 100%;
  background: var(--c-card);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm);
  color: var(--c-text);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--c-coral); box-shadow: 0 0 0 3px rgba(255,95,109,0.12); }
.form-control::placeholder { color: var(--c-muted); }
textarea.form-control { resize: vertical; min-height: 100px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-note { font-size: 0.78rem; color: var(--c-muted); margin-top: 6px; }

.form-success {
  text-align: center;
  padding: 20px 0;
  display: none;
}
.form-success.show { display: block; }
.form-success-icon { font-size: 3rem; margin-bottom: 16px; }
.form-success h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.form-success p { color: var(--c-muted); font-size: 0.9rem; }

/* ── Contact Page ──────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  align-items: flex-start;
}

.contact-info h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.contact-info p { color: var(--c-muted); font-size: 0.95rem; line-height: 1.7; margin-bottom: 32px; }

.contact-items { display: flex; flex-direction: column; gap: 16px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
}
.contact-item-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--grad-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.contact-item-text strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 3px;
}
.contact-item-text span { font-size: 0.85rem; color: var(--c-muted); }

.contact-form-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  padding: 40px;
}
.contact-form-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 28px;
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--c-border);
  padding: 64px 0 0;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand p {
  color: var(--c-muted);
  font-size: 0.88rem;
  line-height: 1.7;
  margin: 16px 0 24px;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-muted);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  font-size: 0.88rem;
  color: var(--c-muted);
  transition: var(--transition);
}
.footer-col ul a:hover { color: var(--c-text); }

.footer-bottom {
  border-top: 1px solid var(--c-border);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.82rem; color: var(--c-muted); }

/* ── Animations ────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

.animate-fade-up { animation: fadeUp 0.6s ease both; }
.anim-delay-1 { animation-delay: 0.1s; }
.anim-delay-2 { animation-delay: 0.2s; }
.anim-delay-3 { animation-delay: 0.3s; }
.anim-delay-4 { animation-delay: 0.4s; }

/* ── Ticker / Marquee ──────────────────────────────────────── */
.ticker-wrap {
  overflow: hidden;
  padding: 16px 0;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  background: var(--c-surface);
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  animation: ticker 30s linear infinite;
  gap: 0;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 32px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--c-muted);
}
.ticker-dot { color: var(--c-coral); font-size: 0.6rem; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Search Bar ────────────────────────────────────────────── */
.search-wrap {
  max-width: 600px;
  margin: 0 auto 48px;
  position: relative;
}
.search-input {
  width: 100%;
  background: var(--c-card);
  border: 1.5px solid var(--c-border);
  border-radius: 99px;
  color: var(--c-text);
  padding: 16px 56px 16px 24px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
  outline: none;
}
.search-input:focus { border-color: var(--c-coral); box-shadow: 0 0 0 4px rgba(255,95,109,0.1); }
.search-input::placeholder { color: var(--c-muted); }
.search-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  background: var(--grad-hero);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.search-btn:hover { transform: translateY(-50%) scale(1.08); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  .hero { padding: 64px 0 56px; }
  .hero-stats { gap: 24px; }

  .categories-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .listing-grid { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .form-row { grid-template-columns: 1fr; }
  .contact-form-card { padding: 28px 20px; }

  /* ══ MOBILE MODAL — bottom sheet, tight & scrollable ══ */
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .modal {
    max-width: 100%;
    max-height: 75vh;              /* strict cap — 75% of screen */
    border-radius: 18px 18px 0 0;
    transform: translateY(40px);
  }
  .modal-overlay.open .modal {
    transform: translateY(0);
  }
  /* Tighter header */
  .modal-header {
    padding: 12px 16px 10px;
  }
  .modal-header h2 {
    font-size: 0.95rem;
    margin-bottom: 1px;
  }
  .modal-domain {
    font-size: 0.82rem;
  }
  .modal-close {
    width: 26px;
    height: 26px;
    font-size: 0.78rem;
  }
  /* Tighter scrollable body */
  .modal-body {
    padding: 10px 16px 28px;
  }
  /* Much tighter form fields */
  .modal-body .form-group {
    margin-bottom: 8px;
  }
  .modal-body .form-group label {
    font-size: 0.78rem;
    margin-bottom: 4px;
  }
  .modal-body .form-control {
    padding: 8px 11px;
    font-size: 0.85rem;
    border-radius: 8px;
  }
  /* Stack phone + amount side by side to save vertical space */
  .modal-body .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  /* Textarea — very short on mobile */
  .modal-body textarea.form-control {
    min-height: 48px;
    resize: none;
  }
  /* Privacy note — tiny */
  .modal-body .form-note {
    font-size: 0.7rem;
    margin-bottom: 10px;
    margin-top: 4px;
  }
  /* Submit button — compact */
  .modal-body #submitOffer {
    padding: 10px;
    font-size: 0.88rem;
  }
}

@media (max-width: 480px) {
  .how-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .hero-actions { flex-direction: column; align-items: stretch; text-align: center; }
}