:root {
  --color-bg: #FFFFFF;
  --color-surface: #F5F6F8;
  --color-surface-alt: #EDEFF3;
  --color-border: #E2E4E8;
  --color-text: #14171F;
  --color-text-muted: #6B7280;
  --color-primary: #2454FF;
  --color-primary-pressed: #1B3FCC;
  --color-primary-soft: #EBF0FF;
  --color-primary-text: #FFFFFF;
  --color-danger: #DC2626;
  --color-danger-soft: #FDECEC;
  --color-success: #16A34A;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 3px rgba(11, 16, 32, 0.06);
  --shadow-md: 0 6px 14px rgba(11, 16, 32, 0.1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* App promo bar */
.app-promo-bar {
  background: var(--color-primary);
  color: var(--color-primary-text);
}
.app-promo-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  padding: 7px var(--space-lg);
  text-align: center;
}
.app-promo-text {
  font-size: 13px;
  font-weight: 600;
  flex: 1 1 auto;
  min-width: 0;
}
.app-promo-links {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
}
.app-promo-links a {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary-text);
  background: rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
}
.app-promo-links a:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.4px;
  font-size: 16px;
  flex-shrink: 0;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
}

.main-nav {
  display: flex;
  gap: var(--space-md);
  flex: 1;
}

.main-nav a {
  font-weight: 600;
  color: var(--color-text-muted);
  padding: 6px 2px;
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--color-primary);
}

.auth-area {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-left: auto;
}

.auth-area .user-email {
  font-size: 13px;
  color: var(--color-text-muted);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

main {
  min-height: calc(100vh - 64px);
  padding-bottom: var(--space-xxl);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  background: var(--color-primary);
  color: var(--color-primary-text);
  transition: background 0.15s ease, opacity 0.15s ease;
}

.btn:hover { background: var(--color-primary-pressed); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}

.btn-secondary:hover { background: var(--color-surface-alt); }

.btn-danger {
  background: var(--color-danger-soft);
  color: var(--color-danger);
}

.btn-block { width: 100%; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: var(--radius-pill); }

/* Forms */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--space-md);
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
}

.field .hint {
  font-size: 12px;
  color: var(--color-text-muted);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="tel"],
.field input[type="number"],
.field textarea,
.field select {
  height: 46px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  padding: 0 var(--space-md);
  font-size: 15px;
  color: var(--color-text);
  background: var(--color-surface);
  width: 100%;
}

.field textarea {
  height: 100px;
  padding: var(--space-sm) var(--space-md);
  resize: vertical;
  font-family: inherit;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--color-bg);
}

.field-error {
  font-size: 12px;
  color: var(--color-danger);
}

.field-row {
  display: flex;
  gap: var(--space-md);
}
.field-row .field { flex: 1; }

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-md);
}

.switch-row label { font-size: 15px; font-weight: 500; }

/* Pills */
.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.pill.selected {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

/* Auth screens */
.auth-screen {
  max-width: 420px;
  margin: var(--space-xxl) auto;
  padding: 0 var(--space-lg);
}

/* Mobil uygulamadaki kayıt/giriş başlığıyla aynı: köşeleri yuvarlatılmış logo, tek satır açıklama. */
.auth-header { margin-bottom: var(--space-lg); text-align: left; }
.auth-header img.logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  margin-bottom: var(--space-md);
  display: block;
}
.auth-header h1 { font-size: 28px; margin: 0 0 4px; letter-spacing: -0.4px; }
.auth-header p { margin: 0; color: var(--color-text-muted); }

/* Kayıttaki okul şeridi, form sütununun kenarından kenarına uzanır. */
.auth-schools { margin: 0 calc(-1 * var(--space-lg)) var(--space-xl); }
.auth-schools-label {
  padding: 0 var(--space-lg);
  margin-bottom: var(--space-sm);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--color-text-muted);
}
.school-marquee-placeholder { height: 66px; background: var(--color-surface); }

/* Sağa doğru yavaşça akan okul şeridi (üç özdeş kopya; biri kayınca döngü görünmez). */
.school-marquee {
  overflow: hidden;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 14px 0;
}
.school-track {
  display: flex;
  width: max-content;
  animation: school-drift 36s linear 1.2s infinite;
  transform: translateX(-33.3333%);
}
.school-set { display: flex; }
.school-item { display: inline-flex; align-items: center; gap: 8px; padding-left: 22px; }
.school-item .university-emblem { width: 36px; height: 36px; flex-basis: 36px; }
.school-item .university-emblem img { width: 32px; height: 32px; }
.school-name { font-size: 14px; font-weight: 700; color: var(--color-text); letter-spacing: 0.2px; white-space: nowrap; }
@keyframes school-drift {
  from { transform: translateX(-33.3333%); }
  to { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .school-track { animation: none; transform: none; }
}

.error-banner {
  display: flex;
  gap: var(--space-xs);
  align-items: flex-start;
  background: var(--color-danger-soft);
  color: var(--color-danger);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  font-size: 13px;
  margin-bottom: var(--space-md);
}

.success-banner {
  display: flex;
  gap: var(--space-xs);
  align-items: flex-start;
  background: #E7F7EE;
  color: var(--color-success);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  font-size: 13px;
  margin-bottom: var(--space-md);
}

.link-center {
  display: block;
  text-align: center;
  margin-top: var(--space-md);
  font-weight: 600;
  color: var(--color-primary);
}

.link-right {
  display: block;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

/* Empty state */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-xs);
  padding: var(--space-xxl) var(--space-lg);
  color: var(--color-text-muted);
}
.empty-state .icon { font-size: 40px; margin-bottom: var(--space-sm); }
.empty-state h3 { margin: 0; color: var(--color-text); font-size: 17px; }
.empty-state p { margin: 0; max-width: 320px; }

/* Kesfet header */
.kesfet-header {
  padding: var(--space-md) 0 var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.kesfet-header .page-title { font-size: 26px; font-weight: 700; letter-spacing: -0.3px; margin: 0; }

.intro-banner {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: var(--color-primary-soft);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}
.intro-banner .intro-copy { flex: 1; min-width: 0; }
.intro-banner strong { display: block; font-size: 15px; color: var(--color-text); }
.intro-banner p { margin: 2px 0 0; font-size: 13px; color: var(--color-text-muted); }
.intro-banner .btn { flex-shrink: 0; }
#introBanner .school-marquee { margin-top: var(--space-sm); border-radius: var(--radius-md); border: 1px solid var(--color-border); }
.search-wrapper { position: relative; }
.search-wrapper input {
  height: 46px;
  width: 100%;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  padding: 0 var(--space-md) 0 38px;
  font-size: 15px;
}
.search-wrapper .search-icon {
  position: absolute;
  left: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}

/* Listing grid / card */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-sm);
  padding: var(--space-md) 0;
}

.listing-card {
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Fotoğraf alanı her zaman kare. Resim akıştan çıkarılır (absolute), yoksa dik bir
   fotoğraf kutuyu kendi boyuna uzatır ve aynı satırdaki bütün kartlar onunla uzar. */
.listing-card .image-wrapper {
  position: relative;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--color-surface-alt);
}
.listing-card .image-wrapper img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.listing-card .image-placeholder {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary);
  font-size: 34px;
  background: linear-gradient(135deg, var(--color-primary-soft), var(--color-surface-alt));
}
.listing-card .badge {
  position: absolute;
  top: var(--space-xs);
  left: var(--space-xs);
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(20,23,31,0.50);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 500;
}
.listing-card .body { padding: var(--space-sm); display: flex; flex-direction: column; gap: 3px; }
.listing-card .title { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.listing-card .price { color: var(--color-primary); font-weight: 700; font-size: 15px; }
.listing-card .items-text { font-size: 13px; font-weight: 600; color: var(--color-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.listing-card .location { font-size: 13px; color: var(--color-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.listing-card .date { font-size: 13px; color: var(--color-text-muted); }
.listing-location-row { display: flex; align-items: center; gap: 5px; min-height: 28px; }
.listing-location-row .location { min-width: 0; }
.university-emblem { position: relative; width: 28px; height: 28px; flex: 0 0 28px;
  border-radius: 50%; border: 1px solid #C1CDDD; overflow: hidden;
  background: #E8EEF7; display: inline-flex; align-items: center; justify-content: center; }
.university-emblem img { position: absolute; inset: 1px; width: 24px; height: 24px; border-radius: 50%; object-fit: contain; background: #E8EEF7; }
.university-emblem-fallback { font-size: 14px; }

.load-more-row { display: flex; justify-content: center; padding: var(--space-lg) 0; }
.loading-row { display: flex; justify-content: center; padding: var(--space-xl) 0; color: var(--color-text-muted); }

/* Listing detail */
.detail-page {
  display: flex;
  flex-direction: column;
  max-width: 1100px;
  margin: 0 auto;
}
.detail-main { min-width: 0; }
.detail-sidebar { display: none; }

@media (min-width: 900px) {
  .detail-page {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-xl);
    padding: 0 var(--space-lg);
  }
  .detail-main {
    flex: 1 1 auto;
    max-width: 700px;
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
  }
  .detail-sidebar.has-items {
    display: block;
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: calc(64px + var(--space-lg));
    padding-top: var(--space-lg);
  }
}
.detail-sidebar h2 {
  font-size: 15px;
  margin: 0 0 var(--space-sm);
}
.related-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.related-list .listing-card { flex-direction: row; }
.related-list .image-wrapper { width: 92px; aspect-ratio: 1 / 1; flex-shrink: 0; }
.related-list .badge { display: none; }
.related-list .body { flex: 1; min-width: 0; justify-content: center; }

.detail-gallery {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--color-surface);
  overflow: hidden;
}
.detail-gallery-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.detail-gallery-track img {
  flex: 0 0 100%;
  scroll-snap-align: start;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}
.detail-gallery-placeholder {
  height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-xs);
  color: var(--color-primary); font-size: 44px;
  background: linear-gradient(135deg, var(--color-primary-soft), var(--color-surface-alt));
}
.detail-gallery-placeholder .caption {
  font-size: 13px; font-weight: 600; color: var(--color-text-muted);
}
.detail-dots {
  position: absolute;
  bottom: var(--space-sm);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}
.detail-dots .dot { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.5); }
.detail-dots .dot.active { background: #fff; width: 16px; }

.detail-body { padding: var(--space-lg); max-width: 720px; margin: 0 auto; }
.detail-top-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-xs); }
.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
}
.share-btn {
  width: 34px; height: 34px; border-radius: 17px;
  background: var(--color-primary-soft);
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; color: var(--color-primary); font-size: 16px;
}
.detail-body h1 { font-size: 26px; margin: 0 0 4px; letter-spacing: -0.3px; }
.detail-price { font-size: 20px; font-weight: 700; color: var(--color-primary); margin: 4px 0; }
.detail-location { display: flex; align-items: center; gap: 4px; color: var(--color-text-muted); font-size: 14px; }

.detail-card {
  margin-top: var(--space-md);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
}
.detail-card .card-title { font-size: 13px; font-weight: 700; color: var(--color-primary); margin: 0 0 var(--space-sm); }
.detail-row { display: flex; gap: var(--space-xs); align-items: flex-start; padding: 4px 0; font-size: 15px; }
.detail-row .icon { color: var(--color-text-muted); }

/* İlan Ver: Eşya kalem editörü */
.item-editor-list { display: flex; flex-direction: column; gap: var(--space-sm); margin: var(--space-sm) 0; }
.item-editor {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  background: var(--color-bg);
}
.item-editor-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-sm); }
.item-price-row { display: grid; grid-template-columns: 1fr auto; gap: var(--space-sm); align-items: end; }
.item-price-row .field { margin-bottom: var(--space-md); }
.item-editor .item-free label { display: flex; align-items: center; gap: 6px; font-weight: 600; cursor: pointer; min-height: 46px; white-space: nowrap; }
#itemsSection { margin-bottom: var(--space-lg); }
.item-editor .item-photo { display: flex; align-items: center; gap: var(--space-sm); }
.link-button { background: none; border: none; color: var(--color-danger); font-weight: 600; font-size: 13px; cursor: pointer; padding: 4px; }

.item-row { display: flex; align-items: center; gap: var(--space-sm); padding: 6px 0; }
.item-row.sold { opacity: 0.55; }
.item-thumb { width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--color-surface-alt); object-fit: cover; flex-shrink: 0; }
.item-thumb-placeholder {
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary); font-size: 16px;
  background: linear-gradient(135deg, var(--color-primary-soft), var(--color-surface-alt));
}
.item-body { flex: 1; min-width: 0; }
.item-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-meta { font-size: 12px; color: var(--color-text-muted); }
.item-sold-toggle {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  background: none;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
}
.item-sold-toggle.active { border-color: var(--color-success); background: #E7F7EE; color: var(--color-success); }
.item-sold-badge {
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  background: var(--color-surface-alt);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.detail-description { margin-top: var(--space-md); line-height: 1.6; white-space: pre-wrap; }
/* İlan detayı: iletişim yalnızca uygulamada; sitede uygulamaya yönlendirme kutusu. */
.app-contact {
  margin-top: var(--space-xl);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: var(--color-primary-soft);
}
.app-contact strong { display: block; font-size: 16px; color: var(--color-text); }
.app-contact p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--color-text-muted); }
.app-contact .contact-row { margin-top: var(--space-md); }
.app-contact .contact-row .btn { justify-content: center; text-align: center; white-space: nowrap; }
@media (max-width: 480px) {
  .app-contact .contact-row { flex-direction: column; }
}
.contact-row { display: flex; gap: var(--space-sm); margin-top: var(--space-xl); }
.contact-row .btn { flex: 1; }
.report-row {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  margin-top: var(--space-lg); padding: var(--space-xs) 0;
  color: var(--color-text-muted); font-size: 13px; background: none; border: none; cursor: pointer; width: 100%;
}

/* Category grid (ilan ver step 1) */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-sm);
  margin: var(--space-md) 0 var(--space-xl);
}
.category-card {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  background: var(--color-surface);
  cursor: pointer;
  text-align: left;
}
.category-card.selected { border-color: var(--color-primary); background: var(--color-bg); box-shadow: var(--shadow-sm); }
.category-icon-circle {
  width: 40px; height: 40px; border-radius: 20px;
  background: var(--color-surface-alt);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; margin-bottom: var(--space-sm);
}
.category-card.selected .category-icon-circle { background: var(--color-primary-soft); }
.category-card .label { font-weight: 600; font-size: 14px; }

.section-label {
  font-size: 13px; font-weight: 700; color: var(--color-primary);
  text-transform: uppercase; letter-spacing: 0.4px;
  margin: var(--space-md) 0 var(--space-sm);
}

.hint-box {
  display: flex; gap: var(--space-xs); align-items: center;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  padding: var(--space-sm);
  color: var(--color-text-muted);
  font-size: 13px;
  margin-bottom: var(--space-md);
}

.photo-input-row { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-bottom: var(--space-md); }
.photo-thumb { position: relative; width: 84px; height: 84px; border-radius: var(--radius-sm); overflow: hidden; }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-thumb button {
  position: absolute; top: 2px; right: 2px;
  width: 20px; height: 20px; border-radius: 10px;
  border: none; background: rgba(20,23,31,0.72); color: #fff;
  font-size: 12px; line-height: 1; cursor: pointer;
}
.photo-add-btn {
  width: 84px; height: 84px; border-radius: var(--radius-sm);
  border: 1.5px dashed var(--color-border);
  background: var(--color-surface);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-muted); font-size: 22px; cursor: pointer;
}

.page-title-block { padding: var(--space-lg) var(--space-lg) 0; max-width: 640px; margin: 0 auto; }
.form-wrap { max-width: 640px; margin: 0 auto; padding: 0 var(--space-lg) var(--space-xxl); }

.logged-out-prompt {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: var(--space-md); padding: var(--space-xxl) var(--space-lg);
}
.logged-out-prompt .icon { font-size: 40px; }
.logged-out-prompt h3 { margin: 0; font-size: 18px; }
.logged-out-prompt p { margin: 0; color: var(--color-text-muted); max-width: 320px; }

.spinner {
  width: 28px; height: 28px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: var(--space-xl) auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

footer.site-footer {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 12px;
  padding: var(--space-lg);
}

@media (max-width: 640px) {
  .main-nav { gap: var(--space-sm); font-size: 13px; }
  .site-header .container { gap: var(--space-sm); }
  .auth-area .user-email { display: none; }
  .field-row { flex-direction: column; gap: 0; }
}

@media (max-width: 420px) {
  .container { padding: 0 var(--space-sm); }
  .brand span.brand-word { display: none; }
  .main-nav { gap: 6px; font-size: 12px; }
  .auth-area { gap: 6px; }
  .auth-area .btn-sm { padding: 6px 9px; font-size: 12px; }
  .app-promo-text { font-size: 12px; }
  .app-promo-links a { padding: 3px 9px; font-size: 11px; }
  /* Mobil uygulamadaki gibi (numColumns=2) dar ekranlarda da hep 2 sütun —
     minmax(200px,1fr) burada tek sütuna düşerdi, kartlar devasa kare
     görsellerle çok fazla dikey yer kaplardı. */
  .listing-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
}
