/* ============================================
   LadieHub - Stilul principal
   Design 2026 | Dark + Light Mode | Responsive
   ============================================ */

/* ---------- Tokens de design ---------- */
:root {
  /* Light theme (default) */
  --bg: #f7f5f2;
  --bg-elev: #ffffff;
  --bg-elev-2: #faf8f5;
  --border: rgba(15, 15, 20, 0.08);
  --border-strong: rgba(15, 15, 20, 0.14);
  --text: #15141a;
  --text-soft: #5a5768;
  --text-muted: #8b8798;
  --brand: #d9416b;
  --brand-2: #ff6b8a;
  --brand-glow: rgba(217, 65, 107, 0.18);
  --accent: #1b1a24;
  --success: #18a966;
  --warning: #e0a020;
  --danger: #dc3545;
  --gold: #d4a82e;
  --gold-2: #f5cc4e;
  --shadow-sm: 0 1px 2px rgba(15, 15, 20, 0.04), 0 2px 6px rgba(15, 15, 20, 0.06);
  --shadow-md: 0 4px 14px rgba(15, 15, 20, 0.08), 0 12px 28px rgba(15, 15, 20, 0.08);
  --shadow-lg: 0 18px 40px rgba(15, 15, 20, 0.14);
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 999px;
}

[data-theme="dark"] {
  --bg: #0c0b10;
  --bg-elev: #16151c;
  --bg-elev-2: #1c1b24;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f3f1ee;
  --text-soft: #b6b3c0;
  --text-muted: #7a7788;
  --brand: #ff6b8a;
  --brand-2: #ff89a5;
  --brand-glow: rgba(255, 107, 138, 0.25);
  --accent: #f3f1ee;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 22px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 22px 50px rgba(0, 0, 0, 0.6);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 15.5px;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.3s ease, color 0.3s ease;
}

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700;9..144,800&family=Inter:wght@400;500;600;700&display=swap');

h1, h2, h3, h4 {
  font-family: 'Fraunces', 'Georgia', serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

a { color: var(--brand); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--brand-2); }

img { max-width: 100%; display: block; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Navigatie / Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(150%) blur(18px);
  -webkit-backdrop-filter: saturate(150%) blur(18px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 1.55rem;
  color: var(--text);
  letter-spacing: -0.04em;
}
.logo .dot {
  color: var(--brand);
  font-style: italic;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-links a,
.nav-links .nav-btn {
  padding: 9px 14px;
  border-radius: var(--radius-full);
  color: var(--text-soft);
  font-weight: 500;
  font-size: 0.94rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-links a:hover,
.nav-links .nav-btn:hover {
  background: var(--bg-elev-2);
  color: var(--text);
}
.nav-links a.active {
  color: var(--text);
  background: var(--bg-elev-2);
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.25s ease;
}
.theme-toggle:hover {
  border-color: var(--brand);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: inline; }
[data-theme="dark"] .theme-toggle .icon-sun { display: inline; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.mobile-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 8px 22px var(--brand-glow);
}
.btn-primary:hover { color: #fff; box-shadow: 0 12px 28px var(--brand-glow); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--bg-elev-2); }

.btn-whatsapp {
  background: #25d366;
  color: #fff;
}
.btn-whatsapp:hover { background: #1ebe5c; color: #fff; }

.btn-phone {
  background: var(--accent);
  color: var(--bg-elev);
}
[data-theme="dark"] .btn-phone { background: var(--bg-elev-2); color: var(--text); border: 1px solid var(--border-strong); }
.btn-phone:hover { opacity: 0.9; color: var(--bg-elev); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { color: #fff; opacity: 0.92; }

.btn-sm { padding: 7px 14px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 70px 0 50px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 900px;
  background: radial-gradient(circle at center, var(--brand-glow) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  max-width: 780px;
  margin-bottom: 14px;
}
.hero-title .accent {
  font-style: italic;
  color: var(--brand);
}
.hero-sub {
  color: var(--text-soft);
  font-size: 1.08rem;
  max-width: 620px;
  margin-bottom: 28px;
}

/* ---------- Search Bar ---------- */
.search-bar {
  display: grid;
  grid-template-columns: 1fr 220px 160px auto;
  gap: 10px;
  padding: 10px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  max-width: 980px;
}
.search-bar input,
.search-bar select {
  border: none;
  background: transparent;
  color: var(--text);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 0.96rem;
  outline: none;
  font-family: inherit;
}
.search-bar input:focus,
.search-bar select:focus { background: var(--bg-elev-2); }

.search-bar select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 34px;
}

/* ---------- Stat Bar ---------- */
.stat-bar {
  display: flex;
  gap: 30px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat .num {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.stat .label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* ---------- Filter Chips ---------- */
.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 30px 0 20px;
}
.chip {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.chip:hover { border-color: var(--brand); color: var(--text); }
.chip.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* ---------- Listings Grid ---------- */
.listings-section {
  padding: 30px 0 70px;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 16px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: 1.8rem;
  margin: 0;
}
.section-head .count {
  color: var(--text-muted);
  font-size: 0.92rem;
}

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

/* ---------- Listing Card ---------- */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.card.premium {
  border: 1px solid var(--gold-2);
  box-shadow: 0 0 0 1px var(--gold-2), 0 8px 24px rgba(212, 168, 46, 0.15);
}
.card.premium::before {
  content: '★ PREMIUM';
  position: absolute;
  top: 12px; left: 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #1a1108;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(212, 168, 46, 0.4);
}

.card-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-elev-2);
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .card-image img { transform: scale(1.04); }

.card-image .no-photo {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 2.5rem;
}

.photo-count {
  position: absolute;
  bottom: 10px; right: 10px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.78rem;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.card-title {
  font-family: 'Fraunces', serif;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}
.card-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.card-price {
  font-weight: 700;
  color: var(--brand);
  font-size: 1rem;
}

.card-actions {
  display: flex;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}
.card-actions .btn { flex: 1; padding: 8px 10px; font-size: 0.82rem; }

/* ---------- Listing detail ---------- */
.listing-detail {
  padding: 40px 0 70px;
}
.listing-wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 36px;
  align-items: start;
}
.gallery .main-img {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--bg-elev-2);
}
.gallery .main-img img { width: 100%; height: 100%; object-fit: cover; }
.thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.thumbs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  border: 2px solid transparent;
}
.thumbs img.active,
.thumbs img:hover {
  opacity: 1;
  border-color: var(--brand);
}

.detail-panel {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: 90px;
}
.detail-panel h1 {
  font-size: 1.7rem;
  margin-bottom: 10px;
}
.detail-price {
  font-size: 2rem;
  font-family: 'Fraunces', serif;
  color: var(--brand);
  font-weight: 700;
  margin: 10px 0 18px;
}
.detail-panel .meta-row {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.92rem;
}
.detail-panel .contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.description {
  white-space: pre-wrap;
  line-height: 1.7;
  color: var(--text-soft);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 20px;
}

/* ---------- Forms ---------- */
.auth-wrap,
.form-wrap {
  max-width: 480px;
  margin: 50px auto;
  padding: 36px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.form-wrap.wide { max-width: 820px; }

.auth-wrap h1,
.form-wrap h1 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}
.auth-wrap p.sub,
.form-wrap p.sub {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 0.94rem;
}

.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 6px;
}
.form-group .hint {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 4px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  border-radius: var(--radius-md);
  font-size: 0.96rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-glow);
}
.form-group textarea { min-height: 140px; resize: vertical; }

.captcha-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--bg-elev-2);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  margin-bottom: 18px;
}
.captcha-challenge {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 8px 14px;
  background: repeating-linear-gradient(45deg, var(--bg-elev), var(--bg-elev) 6px, var(--bg-elev-2) 6px, var(--bg-elev-2) 12px);
  border-radius: var(--radius-sm);
  user-select: none;
  color: var(--text);
  letter-spacing: 0.15em;
  text-decoration: line-through;
  text-decoration-color: var(--brand);
  text-decoration-thickness: 2px;
}
.captcha-box input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}
.captcha-refresh {
  background: none;
  border: 1px solid var(--border-strong);
  color: var(--text);
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.captcha-refresh:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- Alerts ---------- */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  font-size: 0.92rem;
  border: 1px solid transparent;
}
.alert-success { background: rgba(24,169,102,0.08); border-color: rgba(24,169,102,0.25); color: var(--success); }
.alert-error { background: rgba(220,53,69,0.08); border-color: rgba(220,53,69,0.25); color: var(--danger); }
.alert-info { background: rgba(27, 100, 217, 0.08); border-color: rgba(27, 100, 217, 0.25); color: #1b64d9; }
.alert-warning { background: rgba(224,160,32,0.08); border-color: rgba(224,160,32,0.25); color: var(--warning); }

/* ---------- Image uploader ---------- */
.uploader {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.uploader:hover,
.uploader.drag {
  border-color: var(--brand);
  background: var(--brand-glow);
}
.uploader input[type="file"] { display: none; }
.uploader .uploader-icon { font-size: 2.4rem; margin-bottom: 10px; }
.uploader .uploader-text { color: var(--text-soft); }

.img-preview-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.img-preview {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
}
.img-preview img { width: 100%; height: 100%; object-fit: cover; }
.img-preview .remove {
  position: absolute;
  top: 6px; right: 6px;
  width: 26px; height: 26px;
  border-radius: var(--radius-full);
  background: rgba(0,0,0,0.7);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
}
.img-preview .remove:hover { background: var(--danger); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 30px;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 60px;
}
.site-footer .row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.site-footer a { color: var(--text-soft); }
.site-footer a:hover { color: var(--brand); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-premium { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #1a1108; }
.badge-banned { background: rgba(220,53,69,0.15); color: var(--danger); }
.badge-admin { background: var(--text); color: var(--bg); }

/* ---------- Admin tables ---------- */
.table-wrap {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: auto;
  margin-bottom: 26px;
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
table.data th,
table.data td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
table.data th {
  background: var(--bg-elev-2);
  font-weight: 600;
  color: var(--text-soft);
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
}
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover { background: var(--bg-elev-2); }

.admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.admin-tabs a {
  padding: 12px 20px;
  color: var(--text-soft);
  font-weight: 500;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.admin-tabs a:hover { color: var(--text); }
.admin-tabs a.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}
.stat-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.stat-card .label {
  color: var(--text-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.stat-card .val {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
}
.pagination a,
.pagination span {
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.9rem;
}
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination .current {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* ---------- Helpers ---------- */
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 12px; }
.mt-4 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: 24px; }
.flex { display: flex; gap: 10px; align-items: center; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .listing-wrap {
    grid-template-columns: 1fr;
  }
  .detail-panel { position: static; }
  .search-bar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 14px;
    gap: 4px;
    align-items: stretch;
  }
  .nav-links.open { display: flex; }
  .nav-links a,
  .nav-links .nav-btn { text-align: left; }
  .mobile-toggle { display: inline-flex; }

  .hero { padding: 40px 0 30px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card-title { font-size: 0.94rem; }
  .card-body { padding: 12px; gap: 6px; }
  .card-actions { gap: 4px; }
  .card-actions .btn { padding: 7px 8px; font-size: 0.76rem; }

  .thumbs { grid-template-columns: repeat(5, 1fr); }
  .img-preview-grid { grid-template-columns: repeat(3, 1fr); }

  .auth-wrap, .form-wrap { padding: 22px; margin: 20px auto; }

  .stat-bar { gap: 18px; }
  .stat .num { font-size: 1.5rem; }
}

@media (max-width: 420px) {
  .grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2rem; }
}

/* ---------- Motion ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.card, .hero-title, .hero-sub, .search-bar, .auth-wrap, .form-wrap {
  animation: fadeUp 0.5s ease both;
}
.card:nth-child(2) { animation-delay: 0.04s; }
.card:nth-child(3) { animation-delay: 0.08s; }
.card:nth-child(4) { animation-delay: 0.12s; }
.card:nth-child(5) { animation-delay: 0.16s; }
.card:nth-child(6) { animation-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
