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

/* =========================================================================
   KayaBuy — Corporate Design System
   Deep navy + warm gold accent · Inter (UI) + Fraunces (editorial)
   ========================================================================= */

:root {
  /* Palette */
  --c-ink:         #0F172A;
  --c-ink-2:       #1E293B;
  --c-ink-3:       #334155;
  --c-muted:       #64748B;
  --c-muted-2:     #94A3B8;
  --c-border:      #E2E8F0;
  --c-border-2:    #CBD5E1;
  --c-bg:          #FAFAF8;
  --c-surface:     #FFFFFF;
  --c-surface-2:   #F8FAFC;
  --c-accent:      #B8935E;
  --c-accent-dark: #8F7043;
  --c-accent-soft: #F5ECD9;
  --c-success:     #059669;
  --c-error:       #B91C1C;
  --c-warning:     #D97706;

  /* Aliases (kept for backwards-compat) */
  --c-primary:      var(--c-ink);
  --c-primary-dark: #000000;
  --c-text:         var(--c-ink);
  --c-google:       #334155;

  /* Radii */
  --r-xs: 4px;
  --r-sm: 6px;
  --r:    10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --radius:    var(--r);
  --radius-sm: var(--r-sm);

  /* Shadows (refined, border-first) */
  --sh-xs: 0 1px 2px rgba(15,23,42,.04);
  --sh-sm: 0 1px 2px rgba(15,23,42,.05), 0 1px 3px rgba(15,23,42,.04);
  --sh:    0 2px 4px rgba(15,23,42,.04), 0 4px 8px rgba(15,23,42,.04);
  --sh-md: 0 4px 12px rgba(15,23,42,.08), 0 2px 4px rgba(15,23,42,.04);
  --sh-lg: 0 20px 40px -20px rgba(15,23,42,.2);
  --shadow-sm: var(--sh-sm);
  --shadow:    var(--sh);
  --shadow-md: var(--sh-md);

  --container: 1280px;
  --header-h:  72px;

  --ease: cubic-bezier(.2,.8,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--c-ink);
  background: var(--c-bg);
  font-size: 15px;
  line-height: 1.55;
  font-feature-settings: 'cv11','ss01';
}
body.rtl { direction: rtl; }

img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
a { color: var(--c-ink); text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--c-accent-dark); }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  margin: 0 0 .5em;
}
h1 { font-size: 32px; line-height: 1.15; }
h2 { font-size: 22px; line-height: 1.25; }
h3 { font-size: 18px; line-height: 1.3; }
.serif { font-family: 'Fraunces', Georgia, serif; font-weight: 600; letter-spacing: -0.01em; }

::selection { background: var(--c-accent-soft); color: var(--c-ink); }

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.muted     { color: var(--c-muted); }
.small     { font-size: 13px; }
section    { margin: 48px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: var(--r);
  background: var(--c-surface);
  color: var(--c-ink);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  cursor: pointer;
  text-align: center;
  transition: all .18s var(--ease);
  box-shadow: var(--sh-xs);
  white-space: nowrap;
}
.btn:hover { border-color: var(--c-border-2); box-shadow: var(--sh-sm); color: var(--c-ink); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-primary {
  background: var(--c-ink);
  color: #fff;
  border-color: var(--c-ink);
}
.btn-primary:hover { background: #000; color: #fff; border-color: #000; box-shadow: var(--sh-md); }

.btn-accent {
  background: var(--c-accent);
  color: #fff;
  border-color: var(--c-accent);
}
.btn-accent:hover { background: var(--c-accent-dark); color: #fff; border-color: var(--c-accent-dark); }

.btn-ghost    { background: transparent; border-color: var(--c-border); }
.btn-ghost:hover { background: var(--c-surface-2); }

.btn-danger   { background: var(--c-error); color: #fff; border-color: var(--c-error); }
.btn-danger:hover { background: #991B1B; color: #fff; border-color: #991B1B; }

.btn-google   { background: var(--c-surface); color: var(--c-ink); border-color: var(--c-border); }
.btn-google:hover { background: var(--c-surface-2); color: var(--c-ink); }

.btn-glass    { background: rgba(255,255,255,.8); backdrop-filter: blur(10px); border-color: var(--c-border); color: var(--c-ink); }
.btn-glass:hover { background: #fff; color: var(--c-ink); }

.btn-lg    { padding: 14px 28px; font-size: 15px; }
.btn-sm    { padding: 6px 12px; font-size: 12px; font-weight: 600; }
.btn-block { display: flex; width: 100%; }
.btn-link  { background: none; border: 0; color: var(--c-accent-dark); cursor: pointer; padding: 4px 8px; font: inherit; font-weight: 600; font-size: 13px; box-shadow: none; }
.btn-link:hover { color: var(--c-ink); background: none; box-shadow: none; }

/* ---------- Forms ---------- */
input[type=text], input[type=email], input[type=password], input[type=tel],
input[type=number], input[type=search], input[type=date], input[type=datetime-local],
select, textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  background: var(--c-surface);
  color: var(--c-ink);
  font-size: 14px;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--c-ink);
  box-shadow: 0 0 0 3px rgba(15,23,42,.08);
}
textarea { resize: vertical; min-height: 80px; }
label { display: block; font-size: 12px; font-weight: 600; color: var(--c-muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--c-border);
  height: var(--header-h);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  padding: 0 24px; height: 100%; max-width: var(--container); margin: 0 auto;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo { height: 36px; width: auto; }

.header-search {
  flex: 1;
  display: flex;
  max-width: 520px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  background: var(--c-surface);
  overflow: hidden;
  transition: border-color .15s var(--ease);
}
.header-search:focus-within { border-color: var(--c-ink); }
.header-search input {
  flex: 1; border: 0; background: transparent;
  padding: 10px 14px; font-size: 14px; outline: none;
}
.header-search button {
  border: 0; background: var(--c-ink); color: #fff;
  padding: 0 22px; font-weight: 600; cursor: pointer; font-size: 13px;
  letter-spacing: .02em;
}
.header-search button:hover { background: #000; }

.header-nav { display: flex; align-items: center; gap: 22px; }
.header-nav a {
  color: var(--c-ink-3); font-size: 14px; font-weight: 500;
  position: relative; transition: color .15s var(--ease);
}
.header-nav a:hover { color: var(--c-ink); }
.header-nav a.btn, .header-nav a.btn-primary { color: #fff; }
.header-nav a.btn-primary:hover { color: #fff; }

.lang-form { display: inline-flex; margin: 0; }
.lang-select {
  padding: 7px 10px; border: 1px solid var(--c-border);
  border-radius: var(--r-sm); background: var(--c-surface);
  font-size: 12px; font-weight: 600; cursor: pointer; color: var(--c-ink-3);
}
.lang-select:hover { border-color: var(--c-border-2); }

.nav-sep { display: inline-block; width: 1px; height: 24px; background: var(--c-border); margin: 0 4px; }
.nav-link { letter-spacing: -0.005em; }

.nav-msg { position: relative; }
.nav-badge {
  display: inline-block; min-width: 18px; height: 18px; line-height: 18px;
  background: var(--c-accent); color: #fff;
  font-size: 10px; font-weight: 700; padding: 0 5px;
  border-radius: 999px; margin-left: 4px; text-align: center;
}

/* ---------- Flash ---------- */
.flash { padding: 10px 0; font-size: 14px; border-bottom: 1px solid var(--c-border); }
.flash-success { background: #ECFDF5; color: #065F46; }
.flash-error   { background: #FEF2F2; color: var(--c-error); }
.alert { padding: 12px 16px; border-radius: var(--r-sm); margin-bottom: 16px; font-size: 14px; border: 1px solid transparent; }
.alert-error   { background: #FEF2F2; color: var(--c-error);   border-color: #FECACA; }
.alert-success { background: #ECFDF5; color: #065F46; border-color: #A7F3D0; }

/* ---------- Verified tick ---------- */
.verified-tick {
  display: inline-flex; vertical-align: middle;
  color: #1DA1F2;
  margin-left: 3px;
}
.verified-tick-lg { margin-left: 6px; }
.verified-tick svg { display: block; }

/* ---------- Listing placeholder (no cover) ---------- */
.listing-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(15,23,42,.35);
  background: linear-gradient(135deg, #F8FAFC 0%, #EEF2F7 100%);
  position: relative;
}
.listing-placeholder::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(30deg, rgba(184,147,94,.04) 12%, transparent 12.5%, transparent 87%, rgba(184,147,94,.04) 87.5%, rgba(184,147,94,.04)),
    linear-gradient(150deg, rgba(184,147,94,.04) 12%, transparent 12.5%, transparent 87%, rgba(184,147,94,.04) 87.5%, rgba(184,147,94,.04));
  background-size: 40px 70px; pointer-events: none;
}
.listing-placeholder-vehicle     { background: linear-gradient(135deg, #F1F5F9 0%, #E6EAF0 100%); }
.listing-placeholder-real_estate { background: linear-gradient(135deg, #FAF8F3 0%, #EDE6D5 100%); color: rgba(139,111,68,.5); }

/* ---------- Hero Editorial ---------- */
.hero-editorial {
  padding: 72px 0 48px;
  background: linear-gradient(180deg, #FAFAF8 0%, #FFFFFF 100%);
  border-bottom: 1px solid var(--c-border);
  position: relative;
  overflow: hidden;
}
.hero-editorial::before {
  content: ''; position: absolute; top: -40%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(184,147,94,.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 0 24px; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: 999px; font-size: 12px; font-weight: 600;
  color: var(--c-ink-3); margin-bottom: 28px; letter-spacing: .01em;
  box-shadow: var(--sh-xs);
}
.hero-badge-dot {
  width: 7px; height: 7px; background: var(--c-accent); border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(184,147,94,.25);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(184,147,94,.2); }
  50%      { box-shadow: 0 0 0 7px rgba(184,147,94,.05); }
}
.hero-headline {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 64px; font-weight: 600;
  line-height: 1.05; letter-spacing: -0.035em;
  color: var(--c-ink); margin: 0 0 20px;
}
.hero-headline span {
  color: var(--c-accent); font-style: italic; font-weight: 500;
}
.hero-lead {
  font-size: 18px; line-height: 1.6;
  color: var(--c-muted); max-width: 640px; margin: 0 auto 40px;
}

/* Hero Search Bar */
.hero-searchbar {
  display: grid;
  grid-template-columns: 180px 180px 1fr auto;
  gap: 0;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 14px;
  padding: 6px;
  max-width: 920px;
  margin: 0 auto 40px;
  box-shadow: 0 10px 30px -10px rgba(15,23,42,.12);
  text-align: left;
}
.hsb-field {
  padding: 10px 16px;
  border-right: 1px solid var(--c-border);
  display: flex; flex-direction: column; justify-content: center;
  min-width: 0;
}
.hsb-field:last-of-type { border-right: 0; }
.hsb-field-grow { flex: 1; }
.hsb-field label {
  font-size: 10px; font-weight: 700;
  color: var(--c-muted-2); text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 2px;
}
.hsb-field select, .hsb-field input {
  border: 0; padding: 0; background: transparent;
  font-size: 14px; font-weight: 500; color: var(--c-ink);
  outline: none; box-shadow: none !important; min-height: auto;
}
.hsb-field select:focus, .hsb-field input:focus { border: 0; box-shadow: none; }
.hsb-submit {
  border-radius: 10px;
  padding: 0 24px;
  gap: 8px;
  margin-left: 6px;
}

/* Hero Stats */
.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 18px 32px;
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(6px);
  border: 1px solid var(--c-border);
  border-radius: 14px;
  flex-wrap: wrap; justify-content: center;
}
.hs-item { display: flex; flex-direction: column; align-items: center; min-width: 90px; }
.hs-item strong {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 28px; font-weight: 600; color: var(--c-ink);
  letter-spacing: -0.02em; line-height: 1;
}
.hs-item span {
  font-size: 11px; color: var(--c-muted);
  text-transform: uppercase; letter-spacing: .08em;
  font-weight: 600; margin-top: 6px;
}
.hs-sep { width: 1px; height: 32px; background: var(--c-border); }

/* Category section (tiles) */
.cat-section {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin: 56px 0;
}
.cat-tile {
  display: flex; gap: 20px; padding: 32px;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); color: var(--c-ink);
  transition: all .25s var(--ease); position: relative; overflow: hidden;
}
.cat-tile::before {
  content: ''; position: absolute; right: -30px; top: -30px;
  width: 160px; height: 160px; border-radius: 50%;
  background: var(--c-accent-soft); opacity: 0;
  transition: opacity .3s var(--ease);
}
.cat-tile:hover {
  transform: translateY(-3px); border-color: var(--c-ink);
  box-shadow: var(--sh-md); color: var(--c-ink);
}
.cat-tile:hover::before { opacity: .8; }
.cat-tile-icon {
  width: 64px; height: 64px; flex-shrink: 0;
  background: var(--c-ink); color: #fff;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
}
.cat-tile-vehicle .cat-tile-icon { background: var(--c-accent); }
.cat-tile-body { position: relative; z-index: 1; }
.cat-tile-body h3 { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 600; margin: 0 0 6px; }
.cat-tile-body p  { margin: 0 0 12px; color: var(--c-muted); font-size: 14px; }
.cat-tile-arrow { color: var(--c-accent-dark); font-size: 13px; font-weight: 600; }

/* Section head */
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin: 40px 0 20px; gap: 20px; flex-wrap: wrap;
}
.section-head h2 { margin: 0 0 4px; }
.section-head .section-sub { margin: 0; }

/* How it works */
.how-it-works {
  padding: 64px 32px;
  background: var(--c-ink);
  color: #fff;
  border-radius: var(--r-lg);
  margin: 80px 0 40px;
}
.how-it-works h2 { color: #fff; }
.how-it-works .section-sub { color: rgba(255,255,255,.6); margin-bottom: 48px; }
.hiw-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  max-width: 960px; margin: 0 auto;
}
.hiw-step { text-align: center; }
.hiw-num {
  font-family: 'Fraunces', serif;
  font-size: 40px; font-weight: 600;
  color: var(--c-accent); letter-spacing: -0.02em;
  line-height: 1; margin-bottom: 16px;
}
.hiw-step h4 {
  font-family: 'Fraunces', serif; font-size: 20px; font-weight: 600;
  color: #fff; margin: 0 0 10px;
}
.hiw-step p { color: rgba(255,255,255,.7); margin: 0; font-size: 14px; line-height: 1.6; }
.how-it-works .btn-primary { background: var(--c-accent); border-color: var(--c-accent); }
.how-it-works .btn-primary:hover { background: var(--c-accent-dark); border-color: var(--c-accent-dark); }

/* ---------- Hero (legacy classes kept for backward compat) ---------- */
.hero, .hero-premium {
  padding: 80px 0 48px;
  text-align: center;
  position: relative;
}
.hero-bg-glow { display: none; }
.hero-content { max-width: 780px; margin: 0 auto; }
.hero-logo-wrapper { margin-bottom: 28px; }
.hero-logo { height: 72px; margin: 0 auto; }
.hero-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 56px; font-weight: 600; letter-spacing: -0.03em;
  line-height: 1.05; margin-bottom: 20px; color: var(--c-ink);
}
.hero-title span { color: var(--c-accent); font-style: italic; font-weight: 500; }
.hero-subtitle { font-size: 18px; color: var(--c-muted); max-width: 560px; margin: 0 auto 36px; line-height: 1.6; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.hero-cats, .premium-cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  max-width: 720px;
  margin: 56px auto 0;
}
.cat-card, .premium-cat-card {
  display: flex; align-items: center; gap: 16px;
  padding: 24px; background: var(--c-surface);
  border: 1px solid var(--c-border); border-radius: var(--r);
  color: var(--c-ink); transition: all .2s var(--ease);
}
.cat-card:hover, .premium-cat-card:hover {
  transform: translateY(-2px); border-color: var(--c-ink);
  box-shadow: var(--sh-md); color: var(--c-ink);
}
.cat-icon, .cat-card > span:first-child { font-size: 28px; }
.cat-card strong, .premium-cat-card strong { font-size: 15px; font-weight: 600; }

/* ---------- Section Headings ---------- */
section > h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 28px; font-weight: 600; letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.section-sub { color: var(--c-muted); font-size: 14px; margin: 0 0 24px; }

/* ---------- Listing Grid / Card ---------- */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.listing-card {
  display: block; background: var(--c-surface);
  border: 1px solid var(--c-border); border-radius: var(--r);
  overflow: hidden; color: var(--c-ink);
  transition: transform .25s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.listing-card:hover { transform: translateY(-3px); border-color: var(--c-ink); box-shadow: var(--sh-md); color: var(--c-ink); }
.listing-card.is-featured { border-color: var(--c-accent); }
.listing-card.is-featured::before {
  content: ''; display: block; height: 2px; background: var(--c-accent);
}
.listing-cover { position: relative; height: 200px; background: var(--c-surface-2); overflow: hidden; }
.listing-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.listing-card:hover .listing-cover img { transform: scale(1.04); }
.badge-featured {
  position: absolute; top: 12px; left: 12px;
  background: var(--c-accent); color: #fff;
  padding: 4px 10px; border-radius: var(--r-xs);
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  z-index: 1;
}
.badge-deal {
  position: absolute; top: 12px; right: 12px;
  padding: 4px 10px; border-radius: var(--r-xs);
  font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  z-index: 1;
}
.badge-deal-sale  { background: var(--c-ink); color: #fff; }
.badge-deal-rent  { background: #047857; color: #fff; }
.badge-deal-daily { background: #7C3AED; color: #fff; }

/* Inline badge (listing detail — position:static) */
.ld-info .badge-featured, .ld-info .badge-deal {
  position: static; display: inline-block;
}
.listing-body { padding: 16px 18px; }
.listing-title { font-size: 14px; font-weight: 600; margin: 0 0 8px; line-height: 1.4; min-height: 40px; color: var(--c-ink); }
.listing-price { color: var(--c-ink); font-size: 18px; font-weight: 700; margin: 0 0 4px; letter-spacing: -0.01em; }
.listing-meta  { color: var(--c-muted); font-size: 12px; margin: 0; }

/* ---------- Auth ---------- */
.auth-page { padding: 60px 24px; display: flex; justify-content: center; }
.auth-box {
  width: 100%; max-width: 420px;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: 40px 36px;
  box-shadow: var(--sh);
}
.auth-box h1 { font-family: 'Fraunces', Georgia, serif; font-size: 28px; font-weight: 600; text-align: center; margin-bottom: 8px; }
.auth-box > p:first-of-type { text-align: center; color: var(--c-muted); margin-bottom: 28px; }
.auth-box label { margin-top: 16px; margin-bottom: 6px; }
.auth-box input { margin-bottom: 4px; }
.auth-box .btn-block { margin-top: 24px; }
.auth-divider { text-align: center; color: var(--c-muted-2); margin: 20px 0; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; position: relative; }
.auth-divider::before, .auth-divider::after {
  content: ''; position: absolute; top: 50%; width: 38%; height: 1px; background: var(--c-border);
}
.auth-divider::before { left: 0; } .auth-divider::after { right: 0; }
.auth-footer { text-align: center; margin-top: 24px; font-size: 13px; color: var(--c-muted); }
.auth-footer a { color: var(--c-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Post / Edit Listing Form ---------- */
.post-form fieldset {
  border: 1px solid var(--c-border); border-radius: var(--r);
  padding: 24px 24px 8px; margin-bottom: 20px; background: var(--c-surface);
}
.post-form legend { font-weight: 700; padding: 0 8px; color: var(--c-ink); font-size: 14px; letter-spacing: -0.01em; }
.post-form label { margin-top: 14px; }
.post-form .form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.post-form .cat-toggle { display: flex; gap: 12px; margin-bottom: 16px; }
.post-form .cat-toggle label {
  flex: 1; cursor: pointer;
  padding: 14px; border: 1px solid var(--c-border); border-radius: var(--r-sm);
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; color: var(--c-ink-3); text-transform: none; letter-spacing: 0;
  transition: all .15s var(--ease);
}
.post-form .cat-toggle label:has(input:checked) { border-color: var(--c-ink); background: var(--c-surface-2); color: var(--c-ink); }
.post-form button[type=submit] { margin-top: 8px; }

/* ---------- Listing Detail ---------- */
.listing-detail h1 { font-family: 'Fraunces', Georgia, serif; font-size: 28px; font-weight: 600; }
.listing-detail .ld-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 32px; margin: 24px 0 36px; }
.ld-cover-wrapper { position: relative; }
.ld-cover {
  height: 440px; background: var(--c-surface-2) center/cover no-repeat;
  border-radius: var(--r); cursor: zoom-in; position: relative;
  transition: background-image .3s ease;
}
.ld-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.95); border: 1px solid var(--c-border);
  color: var(--c-ink); font-size: 22px; line-height: 1;
  cursor: pointer; z-index: 2; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-md);
  transition: transform .15s var(--ease), background .15s var(--ease);
}
.ld-nav:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.ld-nav-prev { left: 14px; }
.ld-nav-next { right: 14px; }
.ld-counter {
  position: absolute; bottom: 14px; right: 14px;
  background: rgba(15,23,42,.75); color: #fff;
  padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  backdrop-filter: blur(4px);
}
.ld-thumbs {
  display: flex; gap: 8px; margin-top: 12px;
  overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin;
}
.ld-thumbs img {
  width: 104px; height: 78px; object-fit: cover;
  border-radius: var(--r-sm); cursor: pointer;
  border: 2px solid transparent; opacity: .7;
  transition: all .15s var(--ease); flex-shrink: 0;
}
.ld-thumbs img:hover { opacity: 1; }
.ld-thumbs img.active { border-color: var(--c-ink); opacity: 1; }
.ld-info { padding-top: 4px; }
.ld-price { font-family: 'Fraunces', Georgia, serif; color: var(--c-ink); font-size: 36px; font-weight: 600; margin: 8px 0 12px; letter-spacing: -0.02em; }
.ld-contact { margin-top: 20px; }
.ld-details { width: 100%; border-collapse: collapse; }
.ld-details th, .ld-details td { padding: 10px 14px; border-bottom: 1px solid var(--c-border); font-size: 14px; text-align: left; }
.ld-details th { color: var(--c-muted); font-weight: 500; width: 200px; text-transform: none; letter-spacing: 0; font-size: 13px; }
.ld-actions { display: flex; gap: 10px; margin-top: 14px; align-items: center; flex-wrap: wrap; }
.btn-fav { background: var(--c-surface); border: 1px solid var(--c-border); padding: 8px 14px; border-radius: var(--r-sm); cursor: pointer; font-size: 13px; display: inline-flex; gap: 6px; align-items: center; color: var(--c-ink-3); }
.btn-fav:hover { border-color: var(--c-ink); color: var(--c-ink); }
.btn-fav.is-active { border-color: var(--c-accent); color: var(--c-accent); background: var(--c-accent-soft); }

/* Map */
.ld-map { margin-top: 20px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--c-border); aspect-ratio: 16/9; }
.ld-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(15,23,42,.95); z-index: 200; display: none; align-items: center; justify-content: center; padding: 40px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--r-sm); }
.lightbox .lb-close { position: absolute; top: 20px; right: 20px; color: #fff; background: rgba(255,255,255,.1); border: 0; padding: 10px 14px; border-radius: var(--r-sm); cursor: pointer; font-size: 18px; }
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.1); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 22px; }
.lightbox .lb-prev { left: 20px; } .lightbox .lb-next { right: 20px; }

/* ---------- Search Filters ---------- */
.search-filters {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px;
  align-items: end; padding: 20px; background: var(--c-surface);
  border: 1px solid var(--c-border); border-radius: var(--r); margin: 20px 0;
}
.search-filters .btn { grid-column: auto; height: 42px; }

/* ---------- Cards / Tables ---------- */
.card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r); padding: 24px; box-shadow: var(--sh-xs); }
.card h2 { font-size: 18px; margin-bottom: 16px; }

.data-table { width: 100%; border-collapse: collapse; background: var(--c-surface); border-radius: var(--r); overflow: hidden; border: 1px solid var(--c-border); }
.data-table th, .data-table td { padding: 12px 16px; border-bottom: 1px solid var(--c-border); text-align: left; font-size: 13px; vertical-align: middle; }
.data-table thead th { background: var(--c-surface-2); font-weight: 600; color: var(--c-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.data-table tbody tr:hover { background: var(--c-surface-2); }
.data-table tbody tr:last-child td { border-bottom: 0; }

.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .03em; }
.status-active   { background: #ECFDF5; color: #065F46; }
.status-pending  { background: #FFFBEB; color: #92400E; }
.status-rejected { background: #FEF2F2; color: var(--c-error); }
.status-passive  { background: #F1F5F9; color: var(--c-muted); }

.plan-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.plan-free    { background: #F1F5F9; color: var(--c-muted); }
.plan-monthly { background: var(--c-accent-soft); color: var(--c-accent-dark); }
.plan-yearly  { background: var(--c-ink); color: #fff; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 4px; justify-content: center; margin: 32px 0; flex-wrap: wrap; }
.pagination a { padding: 8px 13px; border: 1px solid var(--c-border); border-radius: var(--r-sm); font-size: 13px; color: var(--c-ink-3); background: var(--c-surface); }
.pagination a:hover { border-color: var(--c-ink); color: var(--c-ink); }
.pagination a.active { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }

/* ---------- Messages ---------- */
.messages-page h1 { margin-bottom: 16px; }
.msg-grid { display: grid; grid-template-columns: 300px 1fr; gap: 16px; min-height: 560px; }
.msg-sidebar { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r); padding: 0; max-height: 640px; overflow-y: auto; }
.msg-conv { display: block; padding: 14px 16px; border-bottom: 1px solid var(--c-border); color: var(--c-ink); position: relative; transition: background .12s var(--ease); }
.msg-conv:hover { background: var(--c-surface-2); color: var(--c-ink); }
.msg-conv.active { background: var(--c-surface-2); }
.msg-conv.active::before { content: ''; position: absolute; left: 0; top: 10%; bottom: 10%; width: 3px; background: var(--c-ink); border-radius: 0 3px 3px 0; }
.msg-conv strong { display: block; font-size: 14px; margin-bottom: 2px; }
.msg-conv small  { color: var(--c-muted); font-size: 12px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-badge { position: absolute; top: 14px; right: 14px; background: var(--c-accent); color: #fff; font-size: 10px; padding: 2px 7px; border-radius: 999px; font-weight: 700; }

.msg-thread { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r); display: flex; flex-direction: column; }
.msg-thread-header { padding: 16px 20px; border-bottom: 1px solid var(--c-border); }
.msg-list { flex: 1; padding: 20px; overflow-y: auto; max-height: 460px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 72%; display: flex; flex-direction: column; }
.msg.me   { align-self: flex-end;   align-items: flex-end; }
.msg.them { align-self: flex-start; align-items: flex-start; }
.msg-bubble { padding: 10px 14px; border-radius: var(--r); font-size: 14px; line-height: 1.45; word-break: break-word; }
.msg.me   .msg-bubble { background: var(--c-ink); color: #fff; border-bottom-right-radius: 4px; }
.msg.them .msg-bubble { background: var(--c-surface-2); color: var(--c-ink); border: 1px solid var(--c-border); border-bottom-left-radius: 4px; }
.msg-time { font-size: 11px; color: var(--c-muted-2); margin-top: 3px; }
.msg-compose { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--c-border); }
.msg-compose textarea { flex: 1; min-height: 44px; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin: 40px 0; }
.pricing-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 36px 28px; text-align: center; position: relative; transition: all .2s var(--ease); }
.pricing-card:hover { border-color: var(--c-ink); box-shadow: var(--sh-md); }
.pricing-card.featured { border-color: var(--c-ink); background: var(--c-ink); color: #fff; }
.pricing-card.featured h2, .pricing-card.featured .pricing-amount { color: #fff; }
.pricing-card.featured .pricing-amount small { color: rgba(255,255,255,.6); }
.pricing-card.featured li { border-color: rgba(255,255,255,.12); color: rgba(255,255,255,.9); }
.pricing-card.featured .btn-primary { background: var(--c-accent); border-color: var(--c-accent); }
.pricing-card.featured .btn-primary:hover { background: var(--c-accent-dark); border-color: var(--c-accent-dark); }
.pricing-card h2 { font-family: 'Fraunces', Georgia, serif; font-size: 22px; font-weight: 600; margin-bottom: 12px; }
.pricing-amount { font-family: 'Fraunces', Georgia, serif; font-size: 44px; font-weight: 600; letter-spacing: -0.02em; margin: 16px 0; line-height: 1; }
.pricing-amount small { display: block; font-size: 12px; color: var(--c-muted); font-weight: 400; font-family: 'Inter', sans-serif; margin-top: 8px; letter-spacing: 0; }
.pricing-card ul { list-style: none; padding: 0; margin: 20px 0; text-align: left; }
.pricing-card li { padding: 10px 0; border-bottom: 1px solid var(--c-border); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.pricing-card li::before { content: '✓'; color: var(--c-accent); font-weight: 700; }

/* ---------- Checkout ---------- */
.checkout-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin: 20px 0; }
.checkout-form .promo-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.price-summary { margin: 20px 0; padding: 20px; background: var(--c-surface-2); border-radius: var(--r); border: 1px solid var(--c-border); }
.price-summary > div { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.price-summary .total { border-top: 1px solid var(--c-border); margin-top: 8px; padding-top: 14px; font-size: 16px; font-weight: 700; }
.price-summary .discount { color: var(--c-success); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; background: rgba(15,23,42,.5); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal[hidden] { display: none; }
.modal-box { background: var(--c-surface); border-radius: var(--r-lg); padding: 28px; max-width: 480px; width: 100%; box-shadow: var(--sh-lg); }
.modal-box h3 { margin-bottom: 12px; }
.modal-box textarea { margin: 12px 0; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ---------- Profile ---------- */
.profile-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; margin: 24px 0; }
.profile-layout .card { padding: 28px; }
.avatar-row { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.avatar-img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 1px solid var(--c-border); }
.avatar-verified {
  position: absolute; bottom: -2px; right: -2px;
  color: #1DA1F2; background: #fff; border-radius: 50%;
  padding: 2px; border: 2px solid #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,.15);
}
.verified-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: #E0F2FE; color: #0369A1;
  padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: .02em;
}
.verified-chip::before {
  content: '✓'; font-weight: 700;
}
.stacked-form label { margin-top: 14px; }
.image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 10px 0; }
.image-cell { position: relative; border: 1px solid var(--c-border); border-radius: var(--r-sm); overflow: hidden; background: var(--c-surface-2); }
.image-cell img { width: 100%; height: 110px; object-fit: cover; }
.image-cell .image-actions { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(15,23,42,.8)); padding: 8px; display: flex; gap: 8px; justify-content: center; opacity: 0; transition: opacity .15s var(--ease); }
.image-cell:hover .image-actions { opacity: 1; }
.image-cell .image-actions .btn-link { color: #fff; }
.image-cell .image-actions .btn-link:hover { color: var(--c-accent); background: none; }

.profile-card { margin-bottom: 24px; padding: 24px; align-items: flex-start; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-ink); color: rgba(255,255,255,.75); margin-top: 80px; padding: 56px 0 0; }
.site-footer a { color: rgba(255,255,255,.9); transition: color .15s var(--ease); }
.site-footer a:hover { color: var(--c-accent); }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 0 24px 48px;
}
.footer-col h4 {
  color: #fff; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; margin: 0 0 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding: 6px 0; font-size: 14px; }
.footer-brand-col { max-width: 420px; }
.footer-logo { height: 32px; filter: brightness(0) invert(1); opacity: .95; margin-bottom: 14px; }
.footer-tagline { margin: 0 0 14px; font-size: 14px; color: rgba(255,255,255,.65); }
.footer-company { font-size: 11px; color: rgba(255,255,255,.4); line-height: 1.5; margin: 0; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
}
.footer-bottom .container {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.footer-bottom p { margin: 0; font-size: 12px; color: rgba(255,255,255,.5); }
.footer-payments { font-size: 13px; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand-col { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Legal pages ---------- */
.legal-page { max-width: 880px; margin: 0 auto; padding: 40px 24px 80px; }
.legal-page h1 { margin-bottom: 8px; }
.legal-block { margin: 32px 0; }
.legal-block h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px; font-weight: 600; margin: 0 0 14px;
  padding-bottom: 10px; border-bottom: 1px solid var(--c-border);
}
.legal-block p, .legal-block ul { margin: 10px 0; line-height: 1.7; color: var(--c-ink-3); }
.legal-block ul { padding-left: 24px; }
.legal-block li { margin: 6px 0; }
.legal-info { width: 100%; border-collapse: collapse; margin: 12px 0; }
.legal-info th, .legal-info td { padding: 10px 14px; border-bottom: 1px solid var(--c-border); text-align: left; font-size: 14px; vertical-align: top; }
.legal-info th { color: var(--c-muted); font-weight: 500; width: 180px; text-transform: none; letter-spacing: 0; }

.contact-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-top: 24px; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

.danger-zone { border-left: 3px solid var(--c-error); }
.danger-zone summary { cursor: pointer; list-style: none; }
.danger-zone summary::-webkit-details-marker { display: none; }

/* Cookie banner */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px;
  background: var(--c-ink); color: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg); z-index: 90;
  padding: 16px 20px;
  animation: slideUp .3s var(--ease);
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.cookie-inner {
  display: flex; align-items: center; gap: 16px;
  max-width: var(--container); margin: 0 auto; flex-wrap: wrap;
}
.cookie-inner p { margin: 0; flex: 1; font-size: 13px; color: rgba(255,255,255,.85); min-width: 260px; }
.cookie-inner a { color: var(--c-accent); text-decoration: underline; text-underline-offset: 2px; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin: 24px 0; }
.blog-card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r); overflow: hidden; color: var(--c-ink);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.blog-card:hover { transform: translateY(-3px); border-color: var(--c-ink); box-shadow: var(--sh-md); color: var(--c-ink); }
.blog-cover { height: 180px; background: var(--c-surface-2) center/cover no-repeat; }
.blog-cover-fallback { display: flex; align-items: center; justify-content: center; font-size: 40px; opacity: .3; }
.blog-body { padding: 20px; }
.blog-body time { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.blog-body h3 { font-family: 'Fraunces', Georgia, serif; font-size: 18px; font-weight: 600; margin: 8px 0 10px; line-height: 1.3; }
.blog-body p { color: var(--c-muted); font-size: 14px; line-height: 1.5; margin: 0; }

.blog-post { max-width: 760px; margin: 0 auto; padding: 40px 24px 80px; }
.blog-post h1 { font-size: 36px; line-height: 1.15; margin: 12px 0 16px; }
.blog-meta { font-size: 13px; margin-bottom: 24px; }
.blog-post-cover { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--r); margin: 20px 0 32px; }
.blog-content { font-size: 16px; line-height: 1.75; color: var(--c-ink-3); }
.blog-content h2 { font-family: 'Fraunces', Georgia, serif; font-size: 24px; margin: 32px 0 12px; color: var(--c-ink); }
.blog-content p, .blog-content ul, .blog-content ol { margin: 14px 0; }
.blog-content img { max-width: 100%; border-radius: var(--r-sm); margin: 16px 0; }
.blog-content a { color: var(--c-accent-dark); text-decoration: underline; }

/* ---------- Notifications bell ---------- */
.notif-wrapper { position: relative; }
.notif-bell { position: relative; padding: 8px; border-radius: var(--r-sm); cursor: pointer; display: inline-flex; align-items: center; }
.notif-bell:hover { background: var(--c-surface-2); }
.notif-bell .nav-badge { position: absolute; top: 0; right: 0; }
.notif-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 340px; background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r); box-shadow: var(--sh-lg);
  overflow: hidden; z-index: 60;
}
.notif-header { padding: 14px 16px; border-bottom: 1px solid var(--c-border); font-size: 12px; color: var(--c-muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.notif-item { display: block; padding: 12px 16px; border-bottom: 1px solid var(--c-border); color: var(--c-ink); }
.notif-item:hover { background: var(--c-surface-2); color: var(--c-ink); }
.notif-item strong { display: block; font-size: 13px; }
.notif-item small  { display: block; color: var(--c-muted); font-size: 11px; margin-bottom: 4px; }
.notif-item p { margin: 0; font-size: 13px; color: var(--c-ink-3); line-height: 1.4; }
.notif-all { display: block; text-align: center; padding: 10px; color: var(--c-accent-dark); font-weight: 600; font-size: 13px; background: var(--c-surface-2); }

/* User menu */
.user-menu { position: relative; }
.user-avatar-btn { background: none; border: 0; padding: 0; cursor: pointer; border-radius: 50%; transition: transform .15s var(--ease); }
.user-avatar-btn:hover { transform: scale(1.06); }
.user-avatar { width: 36px; height: 36px; border-radius: 50%; display: block; border: 1px solid var(--c-border); }
.user-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: 240px; background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r); box-shadow: var(--sh-lg); z-index: 60; padding: 8px 0;
}
.user-info { padding: 12px 16px; border-bottom: 1px solid var(--c-border); margin-bottom: 4px; }
.user-info strong { display: block; font-size: 14px; }
.user-info small  { color: var(--c-muted); font-size: 12px; }
.user-dropdown a {
  display: block; padding: 9px 16px; color: var(--c-ink-3);
  font-size: 14px; transition: background .1s var(--ease);
}
.user-dropdown a:hover { background: var(--c-surface-2); color: var(--c-ink); }
.user-menu-sep { height: 1px; background: var(--c-border); margin: 6px 0; }
.user-menu-logout { color: var(--c-error) !important; }

/* Breadcrumb */
.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 4px; align-items: center;
  font-size: 13px; color: var(--c-muted); margin: 16px 0;
}
.breadcrumb a { color: var(--c-muted); }
.breadcrumb a:hover { color: var(--c-ink); }
.breadcrumb .sep { color: var(--c-muted-2); margin: 0 4px; }
.breadcrumb .current { color: var(--c-ink); font-weight: 500; }

/* Share buttons */
.share-bar { display: flex; gap: 8px; margin-top: 12px; align-items: center; flex-wrap: wrap; }
.share-bar small { color: var(--c-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; margin-right: 6px; }
.share-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-surface); border: 1px solid var(--c-border); cursor: pointer;
  color: var(--c-ink-3); transition: all .15s var(--ease);
  text-decoration: none;
}
.share-btn:hover { border-color: var(--c-ink); color: var(--c-ink); transform: translateY(-1px); }

/* Similar listings */
.similar-section { margin-top: 48px; }

/* Message read ticks */
.msg-tick { font-size: 11px; margin-left: 4px; opacity: .7; }
.msg.me .msg-tick { color: rgba(255,255,255,.85); }
.msg-tick.read { color: #60D394; opacity: 1; }

/* Dashboard user stats */
.user-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 24px; }
.user-stat { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r); padding: 18px 22px; }
.user-stat .n { font-family: 'Fraunces', Georgia, serif; font-size: 26px; font-weight: 600; color: var(--c-ink); letter-spacing: -0.02em; line-height: 1; }
.user-stat .l { color: var(--c-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; margin-top: 6px; display: block; }

/* Admin mobile menu */
.admin-menu-btn { display: none; background: none; border: 1px solid var(--c-border); padding: 8px 10px; border-radius: var(--r-sm); cursor: pointer; }

/* Listing owner stats panel */
.stats-panel {
  margin: 48px 0 32px;
  padding: 28px;
  background: linear-gradient(135deg, var(--c-ink) 0%, #1E293B 100%);
  color: #fff;
  border-radius: var(--r-lg);
}
.stats-panel h2 { color: #fff; }
.stats-panel .section-sub { color: rgba(255,255,255,.6); }
.stats-panel .card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); color: #fff; }
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px; margin-top: 20px;
}
.stat-box {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r); padding: 18px; text-align: center;
}
.stat-box .n {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 28px; font-weight: 600; letter-spacing: -0.02em;
  color: var(--c-accent); line-height: 1;
}
.stat-box .l {
  display: block; font-size: 11px; color: rgba(255,255,255,.7);
  text-transform: uppercase; letter-spacing: .05em; font-weight: 600; margin-top: 8px;
}
.stat-box small { display: block; margin-top: 4px; color: rgba(255,255,255,.4) !important; font-size: 11px; }

/* Advanced filters */
.advanced-filters {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r); margin-bottom: 20px; overflow: hidden;
}
.advanced-filters summary {
  cursor: pointer; padding: 14px 20px; font-weight: 600; color: var(--c-ink);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  font-size: 14px;
}
.advanced-filters summary::-webkit-details-marker { display: none; }
.advanced-filters summary::after { content: '+'; font-size: 20px; color: var(--c-accent); font-weight: 400; }
.advanced-filters[open] summary::after { content: '−'; }
.adv-count { color: var(--c-accent); font-size: 18px; line-height: 1; }
.adv-form { border-top: 1px solid var(--c-border); padding: 20px; margin: 0; }

/* Reviews / Ratings */
.stars { color: var(--c-accent); font-size: 16px; letter-spacing: 1px; display: inline-flex; align-items: center; gap: 1px; }
.star-half { position: relative; display: inline-block; }
.star-half::after { content: '☆'; position: absolute; left: 0; top: 0; color: var(--c-border); }
.star-num { font-size: 13px; color: var(--c-ink); font-weight: 600; margin-left: 4px; font-family: 'Inter', sans-serif; }
.card-rating { color: var(--c-accent); font-size: 12px; font-weight: 600; margin-left: 6px; }

.reviews-section { margin: 48px 0; }
.reviews-list { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.review-item {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r); padding: 20px;
}
.review-header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.review-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 1px solid var(--c-border); }
.review-header time { margin-left: auto; }
.review-text { margin: 12px 0 0; color: var(--c-ink-3); font-size: 14px; line-height: 1.6; }

.review-form { margin-bottom: 24px; }
.review-form h3 { margin: 0 0 12px; font-size: 16px; }
.review-form textarea { width: 100%; margin: 12px 0; }

.star-input { display: inline-flex; gap: 4px; direction: rtl; }
.star-input input { display: none; }
.star-input label { cursor: pointer; font-size: 28px; color: var(--c-border); transition: color .1s; }
.star-input label span { display: block; }
.star-input label:hover span, .star-input label:hover ~ label span,
.star-input input:checked ~ label span { color: var(--c-accent) !important; }

/* Store page */
.store-header {
  display: flex; gap: 24px; align-items: center;
  padding: 40px 0 32px; border-bottom: 1px solid var(--c-border); margin-bottom: 32px;
}
.store-avatar img { width: 96px; height: 96px; border-radius: 50%; border: 2px solid var(--c-border); object-fit: cover; }
.store-info h1 { margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.store-meta { display: flex; gap: 20px; flex-wrap: wrap; color: var(--c-muted); font-size: 14px; }
@media (max-width: 480px) { .store-header { flex-direction: column; text-align: center; } .store-meta { justify-content: center; } }

/* Custom file input — native Choose File yerine */
.file-input {
  display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.file-input > input[type="file"] {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0,0,0,0) !important; border: 0 !important; white-space: nowrap !important;
  opacity: 0;
}
.file-input-label {
  display: inline-flex !important; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px !important;
  background: var(--c-ink) !important; color: #fff !important;
  border: 1px solid var(--c-ink) !important; border-radius: var(--r-sm) !important;
  font-size: 14px !important; font-weight: 600 !important;
  cursor: pointer !important; user-select: none;
  transition: all .15s var(--ease);
  box-shadow: var(--sh-xs);
  min-height: 42px;
  white-space: nowrap;
  margin: 0 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.file-input-label:hover {
  background: #000 !important; border-color: #000 !important; color: #fff !important;
  transform: translateY(-1px);
  box-shadow: var(--sh-md);
}
.file-input-label:active { transform: translateY(0); }
.file-input-label svg { flex-shrink: 0; }
.file-input-name {
  font-size: 13px; color: var(--c-muted); font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 260px;
}
html[data-theme="dark"] .file-input-label {
  background: var(--c-accent) !important; color: #0B1120 !important; border-color: var(--c-accent) !important;
}
html[data-theme="dark"] .file-input-label:hover {
  background: var(--c-accent-dark) !important; border-color: var(--c-accent-dark) !important;
}

/* ===== 2FA Card — professional ===== */
.tfa-card {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--c-border);
}

.tfa-header {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 28px 28px 20px;
  border-bottom: 1px solid var(--c-border);
  background: linear-gradient(135deg, var(--c-surface) 0%, var(--c-surface-2) 100%);
}
.tfa-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  background: var(--c-ink); color: var(--c-accent);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.tfa-title { flex: 1; min-width: 0; }
.tfa-title h2 {
  margin: 0 0 4px; font-size: 20px; font-weight: 700;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.tfa-title p { margin: 0; font-size: 13px; line-height: 1.5; }

.tfa-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
  font-family: 'Inter', sans-serif;
}
.tfa-badge-on  { background: #DCFCE7; color: #065F46; }
.tfa-badge-off { background: #FEF2F2; color: #991B1B; }

.tfa-status-box {
  margin: 28px; padding: 20px;
  background: linear-gradient(135deg, rgba(184,147,94,.08), rgba(184,147,94,.02));
  border: 1px solid var(--c-accent-soft);
  border-left: 3px solid var(--c-accent);
  border-radius: var(--r);
  color: var(--c-ink);
}
.tfa-status-box strong { font-size: 15px; color: var(--c-accent-dark); }

.tfa-disable {
  margin: 0 28px 28px;
  padding: 16px 20px;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
}
.tfa-disable summary {
  cursor: pointer; font-size: 13px; color: var(--c-muted);
  font-weight: 600; list-style: none;
}
.tfa-disable summary::-webkit-details-marker { display: none; }
.tfa-disable summary::before { content: '▸ '; color: var(--c-accent); }
.tfa-disable[open] summary::before { content: '▾ '; }
.tfa-disable form { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--c-border); max-width: 360px; }

/* Setup Steps */
.tfa-steps {
  padding: 8px 28px 28px;
}
.tfa-step {
  display: flex; gap: 16px; padding: 24px 0;
  border-bottom: 1px solid var(--c-border);
}
.tfa-step:last-child { border-bottom: 0; }

.tfa-step-num {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--c-ink); color: var(--c-accent);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 18px; font-weight: 600;
  box-shadow: 0 0 0 4px rgba(184,147,94,.1);
}
.tfa-step-body { flex: 1; min-width: 0; }
.tfa-step-body h4 {
  margin: 6px 0 4px; font-size: 15px; font-weight: 700;
  font-family: 'Inter', sans-serif; letter-spacing: -0.01em;
}
.tfa-step-body p {
  margin: 0 0 12px; font-size: 13px; line-height: 1.55;
  color: var(--c-muted);
}

.tfa-apps {
  display: flex; flex-wrap: wrap; gap: 8px;
  font-size: 12px; padding: 10px 14px;
  background: var(--c-surface-2); border-radius: var(--r-sm);
}
.tfa-apps a { color: var(--c-accent-dark); font-weight: 600; }
.tfa-apps span { color: var(--c-muted-2); }

.tfa-qr-container {
  display: flex; gap: 24px;
  align-items: center; flex-wrap: wrap;
  margin-top: 6px;
}
.tfa-qr {
  width: 180px; height: 180px; flex-shrink: 0;
  padding: 14px; background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  box-shadow: var(--sh);
}
.tfa-qr img { width: 100%; height: 100%; display: block; }

.tfa-manual { flex: 1; min-width: 200px; }
.tfa-manual-label {
  display: block; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--c-muted); margin-bottom: 8px;
}
.tfa-manual-key {
  display: flex; gap: 8px; align-items: center;
  background: var(--c-surface-2); border: 1px solid var(--c-border);
  padding: 10px 12px; border-radius: var(--r-sm);
}
.tfa-manual-key code {
  flex: 1; font-family: 'SFMono-Regular', Menlo, monospace;
  font-size: 13px; color: var(--c-ink);
  word-break: break-all; letter-spacing: 0.02em;
}
.tfa-manual-key button { padding: 6px 10px; flex-shrink: 0; }

.tfa-verify-form {
  display: flex; gap: 10px; align-items: stretch;
  max-width: 380px; flex-wrap: wrap;
}
.tfa-code-input {
  flex: 1; min-width: 160px;
  padding: 14px 18px !important;
  font-family: 'SFMono-Regular', Menlo, monospace;
  font-size: 22px !important;
  letter-spacing: 10px !important;
  text-align: center;
  font-weight: 600;
  border: 2px solid var(--c-border) !important;
}
.tfa-code-input:focus { border-color: var(--c-accent) !important; }
.tfa-verify-form button { padding: 0 24px; }

/* Dark mode */
html[data-theme="dark"] .tfa-header {
  background: linear-gradient(135deg, var(--c-surface) 0%, var(--c-bg) 100%);
}
html[data-theme="dark"] .tfa-badge-on  { background: rgba(52,211,153,.15); color: #6EE7B7; }
html[data-theme="dark"] .tfa-badge-off { background: rgba(248,113,113,.15); color: #FCA5A5; }
html[data-theme="dark"] .tfa-qr { background: #fff; }

@media (max-width: 600px) {
  .tfa-header { padding: 20px; }
  .tfa-steps, .tfa-status-box, .tfa-disable { padding-left: 20px; padding-right: 20px; margin-left: 0; margin-right: 0; }
  .tfa-step-num { width: 32px; height: 32px; font-size: 15px; }
  .tfa-qr { width: 150px; height: 150px; }
  .tfa-code-input { font-size: 18px !important; letter-spacing: 6px !important; }
}

/* Slug input with live feedback */
.slug-input-wrap { position: relative; }
.slug-input { padding-right: 40px !important; }
.slug-feedback {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-size: 12px; font-weight: 600; white-space: nowrap;
  padding: 2px 8px; border-radius: 999px;
  pointer-events: none;
}
.slug-feedback.ok { background: #DCFCE7; color: #065F46; }
.slug-feedback.err { background: #FEE2E2; color: #991B1B; }
.slug-feedback.checking { background: var(--c-surface-2); color: var(--c-muted); }
html[data-theme="dark"] .slug-feedback.ok  { background: rgba(52,211,153,.15); color: #6EE7B7; }
html[data-theme="dark"] .slug-feedback.err { background: rgba(248,113,113,.15); color: #FCA5A5; }

/* Consent checkboxes (register) */
.consent-group { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.consent-check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 12px; font-weight: 400; color: var(--c-muted);
  text-transform: none; letter-spacing: 0; margin: 0;
  cursor: pointer; line-height: 1.5;
}
.consent-check input[type="checkbox"] {
  width: 16px; height: 16px; margin: 2px 0 0; flex-shrink: 0;
  accent-color: var(--c-accent);
}
.consent-check span { flex: 1; }
.consent-check a { color: var(--c-accent-dark); text-decoration: underline; text-underline-offset: 2px; }
html[data-theme="dark"] .consent-check { color: var(--c-muted-2); }
html[data-theme="dark"] .consent-check a { color: var(--c-accent); }

/* Empty state */
.empty-state {
  text-align: center; padding: 60px 24px;
  background: var(--c-surface); border: 1px dashed var(--c-border);
  border-radius: var(--r-lg);
}
.empty-icon { font-size: 48px; margin-bottom: 16px; opacity: .6; }
.empty-state h3 { font-family: 'Fraunces', Georgia, serif; font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.empty-state p  { color: var(--c-muted); margin: 0 auto 20px; max-width: 420px; }

/* Utilities */
.row { display: flex; gap: 12px; }
.row-wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.hidden { display: none !important; }
