/* ==========================================================================
   Domadi — frontend stylesheet
   Mobile-first, responsive. Deep indigo/violet theme.
   ========================================================================== */

:root {
  --c-primary: #4f46e5;
  --c-primary-dark: #4338ca;
  --c-primary-light: #eef2ff;
  --c-accent: #db2777;
  --c-bg: #f6f7fb;
  --c-surface: #ffffff;
  --c-text: #1f2333;
  --c-muted: #6b7280;
  --c-border: #e5e7eb;
  --c-success: #16a34a;
  --c-success-bg: #dcfce7;
  --c-warning: #d97706;
  --c-warning-bg: #fef3c7;
  --c-danger: #dc2626;
  --c-danger-bg: #fee2e2;
  --c-info: #2563eb;
  --c-info-bg: #dbeafe;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(17, 24, 39, 0.05), 0 1px 3px rgba(17, 24, 39, 0.06);
  --shadow-md: 0 4px 14px rgba(17, 24, 39, 0.08), 0 2px 6px rgba(17, 24, 39, 0.05);
  --shadow-lg: 0 14px 40px rgba(17, 24, 39, 0.14);
  --ring: 0 0 0 3px rgba(79, 70, 229, 0.28);
  --header-h: 62px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Accessible focus ring for keyboard users across interactive elements. */
:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
  border-radius: 4px;
}
.btn:focus-visible,
.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 0;
  box-shadow: var(--ring);
}

h1, h2, h3, h4 { letter-spacing: -0.01em; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}

.app-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

/* ---------- Header ------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--c-border);
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--header-h);
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--c-primary);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--c-primary) 0%, #7c3aed 100%);
  color: #fff;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 800;
  box-shadow: 0 3px 8px rgba(79, 70, 229, 0.35);
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-link {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--c-text);
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
}
.nav-link:hover { background: var(--c-primary-light); text-decoration: none; }
.nav-link.active { color: var(--c-primary); background: var(--c-primary-light); }

.bell {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 8px;
  border-radius: 50%;
  line-height: 1;
}
.bell:hover { background: var(--c-primary-light); }
.bell-badge {
  position: absolute;
  top: 2px; right: 2px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  background: var(--c-accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 8px;
  display: grid;
  place-items: center;
}

.user-menu { position: relative; }
.user-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  padding: 5px 10px 5px 5px;
  cursor: pointer;
  font: inherit;
}
.user-trigger:hover { background: var(--c-primary-light); }
.avatar {
  display: inline-grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}
.user-name { font-size: 0.9rem; font-weight: 600; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 200px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  display: none;
}
.dropdown.open { display: block; }
/* Items mirrored from the top nav — only needed in the dropdown on mobile,
   where the top-nav links (hide-sm) disappear. Hidden on desktop. */
.dropdown .show-sm { display: none; }
.dropdown a, .dropdown button {
  display: block;
  width: 100%;
  text-align: right;
  padding: 9px 12px;
  border: none;
  background: none;
  font: inherit;
  color: var(--c-text);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.dropdown a:hover, .dropdown button:hover { background: var(--c-primary-light); text-decoration: none; }
.dropdown .sep { height: 1px; background: var(--c-border); margin: 6px 0; }

/* ---------- Buttons ------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s, transform 0.12s, box-shadow 0.15s;
  text-decoration: none;
  line-height: 1.2;
}
.btn:hover { text-decoration: none; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(135deg, var(--c-primary) 0%, #6d4bf0 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.28);
}
.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--c-primary-dark) 0%, #5b3ed6 100%);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.38);
}
.btn-secondary { background: var(--c-surface); color: var(--c-text); border-color: var(--c-border); }
.btn-secondary:hover:not(:disabled) { background: var(--c-bg); }
.btn-danger { background: var(--c-danger); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #b91c1c; }
.btn-success { background: var(--c-success); color: #fff; }
.btn-success:hover:not(:disabled) { background: #15803d; }
.btn-ghost { background: none; color: var(--c-primary); }
.btn-ghost:hover:not(:disabled) { background: var(--c-primary-light); }
.btn-sm { padding: 6px 10px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------- Forms -------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 0.9rem; }
.field .hint { font-size: 0.8rem; color: var(--c-muted); }
.input, .select, .textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  font: inherit;
  background: var(--c-surface);
  color: var(--c-text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder, .textarea::placeholder { color: #9aa1ac; }
.input:hover, .select:hover, .textarea:hover { border-color: #cfd3db; }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: var(--ring);
}
.textarea { resize: vertical; min-height: 96px; }
.field.has-error .input,
.field.has-error .select,
.field.has-error .textarea { border-color: var(--c-danger); }
.field-error { color: var(--c-danger); font-size: 0.82rem; }
.checkbox-row { display: flex; align-items: center; gap: 8px; }
.checkbox-row input { width: 18px; height: 18px; }

/* ---------- Cards / surfaces -------------------------------------------- */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.panel {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.page-head h1 { margin: 0; font-size: 1.6rem; }
.page-head .subtitle { color: var(--c-muted); margin: 4px 0 0; }

/* ---------- Browse hero -------------------------------------------------- */
.browse-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 34px 28px;
  margin-bottom: 22px;
  color: #fff;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(219, 39, 119, 0.55) 0%, rgba(219, 39, 119, 0) 45%),
    linear-gradient(130deg, #4f46e5 0%, #6d28d9 55%, #7c3aed 100%);
  box-shadow: var(--shadow-md);
}
.browse-hero::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
}
.browse-hero .hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  margin-bottom: 14px;
}
.browse-hero h1 {
  margin: 0 0 8px;
  font-size: 2rem;
  line-height: 1.15;
  font-weight: 800;
  max-width: 620px;
}
.browse-hero p {
  margin: 0;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
}
.browse-hero .hero-actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; }
.browse-hero .btn-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.browse-hero .btn-secondary:hover:not(:disabled) { background: rgba(255, 255, 255, 0.24); }
.browse-hero .btn-hero-light {
  background: #fff;
  color: var(--c-primary-dark);
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.2);
}
.browse-hero .btn-hero-light:hover:not(:disabled) { background: #f4f4ff; }

/* ---------- Listing grid / cards ---------------------------------------- */
.listing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.listing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.listing-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: #d6d9f5;
}
.listing-card.featured {
  border-color: #fcd9a8;
  background:
    linear-gradient(180deg, rgba(254, 243, 199, 0.5) 0%, rgba(255, 255, 255, 0) 70px),
    var(--c-surface);
}
.listing-card.featured::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--c-warning), #fbbf24);
}
.listing-card .domain {
  font-size: 1.2rem;
  font-weight: 700;
  word-break: break-all;
  color: var(--c-text);
  padding-right: 40px;
}
.listing-card .domain:hover { color: var(--c-primary); text-decoration: none; }
.listing-card .price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--c-primary);
  letter-spacing: -0.01em;
}
.listing-card .price.offer { color: var(--c-accent); font-size: 1.05rem; }
.listing-card .badges { display: flex; flex-wrap: wrap; gap: 6px; }
.listing-card .meta {
  display: flex;
  gap: 14px;
  color: var(--c-muted);
  font-size: 0.82rem;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--c-border);
}
.fav-btn {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--c-border);
  border-radius: 50%;
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
  box-shadow: var(--shadow);
  transition: background 0.15s, border-color 0.15s, transform 0.12s, color 0.15s;
}
.fav-btn:hover { background: var(--c-primary-light); transform: scale(1.08); }
.fav-btn.active { color: var(--c-accent); border-color: var(--c-accent); }
.star { color: var(--c-warning); }

/* ---------- Badges ------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  background: var(--c-primary-light);
  color: var(--c-primary-dark);
  white-space: nowrap;
}
.badge-success { background: var(--c-success-bg); color: var(--c-success); }
.badge-warning { background: var(--c-warning-bg); color: var(--c-warning); }
.badge-danger  { background: var(--c-danger-bg);  color: var(--c-danger); }
.badge-info    { background: var(--c-info-bg);    color: var(--c-info); }
.badge-muted   { background: #f3f4f6; color: var(--c-muted); }

/* ---------- Announcement banner ----------------------------------------- */
.announcement-banner {
  background: var(--c-info-bg);
  color: var(--c-info);
  text-align: center;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 1px solid var(--c-border);
}

/* ---------- Filters ------------------------------------------------------ */
.filters {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.filters .filter-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

/* ---------- Tabs --------------------------------------------------------- */
.tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 20px;
}
.tab {
  padding: 10px 14px;
  border: none;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--c-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.tab.active { color: var(--c-primary); border-bottom-color: var(--c-primary); }

/* ---------- Tables ------------------------------------------------------- */
.table-wrap { overflow-x: auto; }
table.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
table.table th, table.table td {
  padding: 10px 12px;
  text-align: right;
  border-bottom: 1px solid var(--c-border);
  vertical-align: middle;
}
table.table th {
  background: var(--c-bg);
  font-weight: 700;
  color: var(--c-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
table.table tr:last-child td { border-bottom: none; }

/* ---------- Pagination --------------------------------------------------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
.pagination .page-info { color: var(--c-muted); font-size: 0.9rem; }

/* ---------- Toasts ------------------------------------------------------- */
.toasts {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: calc(100% - 32px);
  max-width: 420px;
}
.toast {
  background: var(--c-text);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toast-in 0.2s ease-out;
}
.toast.success { background: var(--c-success); }
.toast.error { background: var(--c-danger); }
.toast.info { background: var(--c-info); }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Modal -------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.5);
  display: grid;
  place-items: center;
  z-index: 150;
  padding: 16px;
}
.modal {
  background: var(--c-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 460px;
  padding: 24px;
  animation: toast-in 0.18s ease-out;
}
.modal h3 { margin-top: 0; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* ---------- Spinner / states -------------------------------------------- */
.spinner {
  display: inline-block;
  width: 28px; height: 28px;
  border: 3px solid var(--c-primary-light);
  border-top-color: var(--c-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-state {
  display: grid;
  place-items: center;
  padding: 60px 0;
  gap: 12px;
  color: var(--c-muted);
}
.empty-state {
  text-align: center;
  padding: 48px 16px;
  color: var(--c-muted);
}
.empty-state .icon { font-size: 2.5rem; margin-bottom: 8px; }
.error-state {
  text-align: center;
  padding: 48px 16px;
  color: var(--c-danger);
}

/* ---------- Misc --------------------------------------------------------- */
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row.between { justify-content: space-between; }
.muted { color: var(--c-muted); }
.text-sm { font-size: 0.88rem; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.nowrap { white-space: nowrap; }
.divider { height: 1px; background: var(--c-border); margin: 16px 0; }

.auth-wrap { max-width: 420px; margin: 24px auto; }
.auth-wrap h1 { text-align: center; }
.auth-switch { text-align: center; margin-top: 16px; color: var(--c-muted); }

.announcement {
  background: var(--c-warning-bg);
  color: var(--c-warning);
  border: 1px solid #fcd34d;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 16px;
  font-weight: 500;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.stat-card .num { font-size: 1.8rem; font-weight: 800; color: var(--c-primary); }
.stat-card .label { color: var(--c-muted); font-size: 0.85rem; }

.detail-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.detail-main .domain-title { font-size: 1.8rem; margin: 0 0 8px; word-break: break-all; }
.detail-price { font-size: 1.5rem; font-weight: 800; color: var(--c-primary); }
.detail-price.offer { color: var(--c-accent); }
.detail-desc { white-space: pre-wrap; color: var(--c-text); }

.instructions {
  background: var(--c-primary-light);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 12px 0;
}
.instructions ol { margin: 0; padding-right: 18px; }
.instructions li { margin-bottom: 8px; word-break: break-word; }
.code-box {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--c-text);
  color: #fff;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  word-break: break-all;
  font-size: 0.85rem;
  margin: 6px 0;
}

.thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
  padding: 4px;
}
.msg {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: var(--c-bg);
  border: 1px solid var(--c-border);
}
.msg.mine { align-self: flex-start; background: var(--c-primary-light); border-color: #c7d2fe; }
.msg.theirs { align-self: flex-end; }
.msg .who { font-size: 0.75rem; color: var(--c-muted); font-weight: 600; margin-bottom: 2px; }
.msg .when { font-size: 0.7rem; color: var(--c-muted); margin-top: 2px; }

.notif {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--c-border);
}
.notif:last-child { border-bottom: none; }
.notif.unread { background: var(--c-primary-light); }
.notif .when { font-size: 0.78rem; color: var(--c-muted); }

/* ---------- Footer ------------------------------------------------------- */
.site-footer {
  margin-top: auto;
  background: #1c1a33;
  color: #b9bccb;
  border-top: 1px solid #2a2748;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "brand"
    "links1"
    "links2"
    "donate"
    "bottom";
  gap: 26px 24px;
  padding-top: 44px;
  padding-bottom: 28px;
}
.footer-brand { grid-area: brand; }
.footer-links-1 { grid-area: links1; }
.footer-links-2 { grid-area: links2; }
.footer-donate { grid-area: donate; align-self: start; }
.footer-bottom { grid-area: bottom; }

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
}
.footer-logo:hover { text-decoration: none; color: #fff; }
.footer-mark {
  display: inline-grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 9px;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--c-primary) 0%, #7c3aed 100%);
  box-shadow: 0 3px 10px rgba(124, 58, 237, 0.5);
}
.footer-tag {
  margin: 12px 0 6px;
  color: #e5e7f2;
  font-weight: 600;
  font-size: 0.95rem;
}
.footer-desc {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #9498ab;
  max-width: 340px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-heading {
  margin: 0 0 4px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6f7390;
}
.footer-col a {
  color: #c3c6d6;
  font-size: 0.92rem;
  width: fit-content;
}
.footer-col a:hover { color: #fff; text-decoration: none; }
/* Auth-aware links: default state is logged-out (body lacks .is-authed). */
.auth-only { display: none; }
body.is-authed .auth-only { display: block; }
body.is-authed .guest-only { display: none; }

/* reCAPTCHA */
.recaptcha-field { display: flex; justify-content: center; }
.recaptcha-holder { min-height: 78px; }
.captcha-gate { text-align: center; display: grid; gap: 10px; justify-items: center; padding: 22px; }
.footer-donate .btn { box-shadow: 0 4px 14px rgba(225, 29, 72, 0.4); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 22px;
  border-top: 1px solid #2a2748;
}
.footer-copy, .footer-contact { margin: 0; font-size: 0.85rem; color: #8b8fa5; }
.footer-contact a { color: #c3c6d6; }
.footer-contact a:hover { color: #fff; }

/* ---------- Responsive --------------------------------------------------- */
@media (min-width: 600px) {
  .footer-inner {
    grid-template-columns: 2.2fr 1fr 1fr auto;
    grid-template-areas:
      "brand links1 links2 donate"
      "bottom bottom bottom bottom";
    gap: 34px 28px;
  }
  .footer-donate { justify-self: end; }
}
@media (min-width: 600px) {
  .listing-grid { grid-template-columns: repeat(2, 1fr); }
  .filters .filter-row { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 900px) {
  .listing-grid { grid-template-columns: repeat(3, 1fr); }
  .filters .filter-row { grid-template-columns: repeat(4, 1fr); }
  .detail-grid { grid-template-columns: 2fr 1fr; align-items: start; }
}
@media (max-width: 560px) {
  .header-nav .nav-link.hide-sm { display: none; }
  .dropdown .show-sm { display: block; }
  .user-name { display: none; }
  .page-head h1 { font-size: 1.35rem; }
}
