/* ============================================================
   Yurt Pazarı — Modern Dark SaaS Design System (Linear & Raycast Aesthetic)
   Karanlık Kömür & Neon Aksanlar: #09090B, #121215, #10B981, #7C3AED
============================================================ */

:root {
  /* Renk Paleti ve Derinlik Katmanları */
  --bg: #09090B;
  --bg-subtle: #0E0E12;
  --surface: #121215;
  --surface-card: #141418;
  --surface-elevated: #18181B;
  --surface-hover: #1C1C22;
  --surface-glass: rgba(18, 18, 21, 0.82);

  /* Çizgi ve Kenarlıklar */
  --line: rgba(255, 255, 255, 0.08);
  --line-subtle: rgba(255, 255, 255, 0.05);
  --line-hover: rgba(255, 255, 255, 0.16);
  --line-strong: rgba(255, 255, 255, 0.22);

  /* Tipografi Renkleri */
  --ink: #F4F4F5;
  --ink-secondary: #D4D4D8;
  --muted: #A1A1AA;
  --muted-dim: #71717A;

  /* Canlı SaaS Vurguları (Emerald & Electric Purple) */
  --primary: #10B981;
  --primary-hover: #059669;
  --primary-glow: rgba(16, 185, 129, 0.28);
  --primary-glow-hover: rgba(16, 185, 129, 0.45);

  --accent: #7C3AED;
  --accent-hover: #6D28D9;
  --accent-glow: rgba(124, 58, 237, 0.28);

  --amber: #F59E0B;
  --amber-glow: rgba(245, 158, 11, 0.2);

  --danger: #EF4444;
  --danger-hover: #DC2626;
  --danger-bg: rgba(239, 68, 68, 0.12);
  --danger-line: rgba(239, 68, 68, 0.3);

  --success: #10B981;
  --success-bg: rgba(16, 185, 129, 0.12);
  --success-line: rgba(16, 185, 129, 0.3);

  --warning: #F59E0B;
  --warning-bg: rgba(245, 158, 11, 0.12);

  --gift-color: #A855F7;
  --gift-bg: rgba(168, 85, 247, 0.12);
  --gift-border: rgba(168, 85, 247, 0.3);
  --gift-glow: rgba(168, 85, 247, 0.25);

  /* Gölgeler ve Parıltılar */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px -2px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 32px -4px rgba(0, 0, 0, 0.65);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.45);
  --glow-subtle: 0 0 24px rgba(124, 58, 237, 0.15);

  /* Yarıçaplar */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Fontlar */
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* ------------------------------------------------------------
   Temel Sıfırlama ve Nokta Matrisi (Dot Matrix) Arka Planı
------------------------------------------------------------ */
* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: env(safe-area-inset-top, 0px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  background-color: var(--bg);
  /* Linear tarzı zarif nokta matrisi */
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  background-attachment: fixed;
  color: var(--ink);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  min-height: 100vh;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: var(--ink);
}

button, input, select, textarea {
  font-family: var(--font);
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  transition: transform .18s cubic-bezier(0.2, 0, 0, 1),
              background-color .18s ease,
              border-color .18s ease,
              box-shadow .18s ease,
              color .18s ease;
}

button:active {
  transform: scale(0.97);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 18px;
  position: relative;
}

/* ------------------------------------------------------------
   Üst Çubuk (Modern Dark Frosted Header)
------------------------------------------------------------ */
.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 12px;
}

.brand {
  background: none;
  border: 0;
  color: var(--ink);
  padding: 0;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  white-space: nowrap;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  color: #fff;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: 0 0 16px var(--accent-glow);
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.brand-text {
  background: linear-gradient(180deg, #FFFFFF 0%, #D4D4D8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ------------------------------------------------------------
   Düğmeler (Buttons & SaaS Glowing Actions)
------------------------------------------------------------ */
.btn {
  border: 1px solid var(--line);
  background: var(--surface-elevated);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-weight: 600;
  font-size: .92rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  background: var(--surface-hover);
  border-color: var(--line-hover);
  color: #fff;
}

/* Canlı Zümrüt Yeşili Ana Buton (Primary CTA) */
.btn.primary {
  background: linear-gradient(180deg, #10B981 0%, #059669 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 0 16px var(--primary-glow), 0 2px 4px rgba(0, 0, 0, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn.primary:hover {
  background: linear-gradient(180deg, #34D399 0%, #10B981 100%);
  box-shadow: 0 0 24px var(--primary-glow-hover), 0 4px 10px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--ink-secondary);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line-hover);
  color: #fff;
}

.sheet .btn.ghost, .card .btn.ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
  color: var(--ink-secondary);
}

.sheet .btn.ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn.small {
  padding: 6px 12px;
  font-size: .84rem;
  border-radius: var(--radius-xs);
}

.btn.danger {
  color: #F87171;
  border-color: var(--danger-line);
  background: var(--danger-bg);
}

.btn.danger:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: var(--danger);
  color: #fff;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.3);
}

.btn.wide {
  width: 100%;
}

.btn[disabled] {
  opacity: .45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ------------------------------------------------------------
   Giriş Ekranı (Raycast & Linear Bento Showcase)
------------------------------------------------------------ */
.auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 18px;
  position: relative;
  overflow: hidden;
}

.auth-ambient-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.18;
  z-index: 1;
}

.auth-glow-1 {
  top: -100px;
  left: -100px;
  background: var(--accent);
}

.auth-glow-2 {
  bottom: -120px;
  right: -120px;
  background: var(--primary);
}

.auth-layout {
  display: grid;
  grid-template-columns: 1.15fr minmax(360px, 440px);
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
}

@media (max-width: 900px) {
  .auth-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 500px;
  }
}

.auth-showcase {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: #C4B5FD;
  font-size: .8rem;
  font-weight: 600;
  width: fit-content;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}

.badge-dot.pulse {
  animation: pulseDot 2s infinite;
}

.showcase-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.18;
  color: #FFFFFF;
}

.gradient-text {
  background: linear-gradient(135deg, #10B981 0%, #A855F7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.showcase-desc {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 520px;
}

/* Bento Grid Düzeni */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 10px;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .22s cubic-bezier(0.2, 0, 0, 1), border-color .22s ease, box-shadow .22s ease;
}

.bento-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-hover);
  box-shadow: var(--shadow-lg), var(--glow-subtle);
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.bento-span-2 {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
}

@media (max-width: 560px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-span-2 {
    flex-direction: column;
  }
}

.bento-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  flex: none;
}

.bento-icon-box.green {
  background: rgba(16, 185, 129, 0.12);
  color: var(--primary);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.bento-icon-box.purple {
  background: rgba(124, 58, 237, 0.12);
  color: #A78BFA;
  border: 1px solid rgba(124, 58, 237, 0.25);
}

.bento-icon-box.amber {
  background: rgba(245, 158, 11, 0.12);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.bento-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.bento-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.bento-content p {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.5;
}

.bento-meta {
  display: flex;
  gap: 6px;
  margin-bottom: 2px;
  flex-wrap: wrap;
}

.micro-badge {
  font-size: .72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-secondary);
  border: 1px solid var(--line);
  letter-spacing: 0.01em;
}

.micro-badge.emerald {
  background: rgba(16, 185, 129, 0.1);
  color: #34D399;
  border-color: rgba(16, 185, 129, 0.25);
}

.micro-badge.purple {
  background: rgba(124, 58, 237, 0.1);
  color: #C4B5FD;
  border-color: rgba(124, 58, 237, 0.25);
}

.micro-badge.amber {
  background: rgba(245, 158, 11, 0.1);
  color: #FCD34D;
  border-color: rgba(245, 158, 11, 0.25);
}

/* Auth Card Paneli */
.auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 34px 28px;
  width: 100%;
  display: grid;
  gap: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
  position: relative;
  backdrop-filter: blur(20px);
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.auth-card-header {
  display: grid;
  gap: 6px;
}

.logo {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.03em;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.45;
}

/* ------------------------------------------------------------
   Parçalı Seçici (Segmented Control — Raycast Style)
------------------------------------------------------------ */
.seg {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  padding: 3px;
  gap: 4px;
  max-width: 100%;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.seg::-webkit-scrollbar {
  display: none;
}

.seg button {
  border: 0;
  background: none;
  padding: 8px 16px;
  font-weight: 600;
  color: var(--muted);
  border-radius: var(--radius-sm);
  font-size: .88rem;
  transition: all .16s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.seg button:hover {
  color: var(--ink);
}

.seg button[aria-pressed="true"] {
  background: var(--surface-elevated);
  color: #FFFFFF;
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.auth-card .seg {
  width: 100%;
}

.auth-card .seg button {
  flex: 1;
  padding: 9px;
}

/* ------------------------------------------------------------
   Formlar ve Girdiler (#18181B zemin, #F4F4F5 yazı)
------------------------------------------------------------ */
.form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.field > span {
  font-size: .84rem;
  font-weight: 600;
  color: var(--ink-secondary);
}

.field input, .field select, .field textarea {
  width: 100%;
  min-width: 0;
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 15px;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.field input::placeholder, .field textarea::placeholder {
  color: var(--muted-dim);
}

.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--primary);
  background: var(--surface-hover);
  box-shadow: 0 0 0 3px var(--primary-glow);
  outline: none;
}

.field select {
  cursor: pointer;
  background-color: var(--surface-elevated);
}

.field select option {
  background-color: var(--surface-card);
  color: var(--ink);
}

.field textarea {
  resize: vertical;
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.msg {
  margin: 0;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--danger-bg);
  border: 1px solid var(--danger-line);
  color: #F87171;
  font-size: .88rem;
  font-weight: 600;
}

.msg.ok {
  background: var(--success-bg);
  border-color: var(--success-line);
  color: #34D399;
}

.note {
  margin: 0;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius-sm);
  padding: 11px 15px;
  font-size: .86rem;
  color: #DDD6FE;
  line-height: 1.5;
}

/* Hediye (Ücretsiz) Switch */
.gift-field {
  background: var(--gift-bg);
  border: 1px solid var(--gift-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-top: 2px;
}

.gift-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.gift-switch input {
  display: none;
}

.gift-slider {
  width: 44px;
  height: 24px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  position: relative;
  flex: none;
  transition: background-color .2s;
  border: 1px solid var(--line);
}

.gift-slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: transform .2s cubic-bezier(0.2, 0, 0, 1);
}

.gift-switch input:checked + .gift-slider {
  background: var(--gift-color);
  box-shadow: 0 0 12px var(--gift-glow);
}

.gift-switch input:checked + .gift-slider::after {
  transform: translateX(20px);
}

.gift-text {
  display: grid;
  gap: 2px;
}

.gift-text strong {
  color: #C084FC;
  font-size: .92rem;
}

.gift-text small {
  color: var(--muted);
  font-size: .8rem;
}

.price-locked {
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--muted-dim) !important;
  cursor: not-allowed;
  border-color: var(--line) !important;
}

/* ------------------------------------------------------------
   Ana Sayfa, Ambient Glow & Hero Bölümü
------------------------------------------------------------ */
#homeView {
  padding-top: 10px;
}

.hero-ambient-glow {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, rgba(16, 185, 129, 0.08) 50%, transparent 80%);
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

.hero-section {
  position: relative;
  z-index: 1;
  padding-bottom: 12px;
}

.hero-welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.22);
  color: #34D399;
  font-size: .78rem;
  font-weight: 700;
  margin-bottom: 6px;
  width: fit-content;
}

.intro {
  padding-block: 18px 12px;
  display: grid;
  gap: 6px;
}

.intro h2 {
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  color: #FFFFFF;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.intro p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  max-width: 600px;
}

/* Güvenlik Bandı (Linear Banner / Notification Pill) */
.safety-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(90deg, rgba(18, 18, 21, 0.95) 0%, rgba(24, 24, 27, 0.95) 100%);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-left: 3px solid var(--primary);
  color: var(--ink);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  margin: 18px 0 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 2;
}

.safety-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  background: rgba(16, 185, 129, 0.12);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex: none;
}

.safety-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: .88rem;
  line-height: 1.45;
}

.safety-text strong {
  color: #FFFFFF;
  font-weight: 700;
}

.safety-text span {
  color: var(--muted);
}

.safety-text b {
  color: #34D399;
}

/* Ana Sayfa Bento Hızlı Bloklar */
.home-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
  margin-bottom: 22px;
}

@media (max-width: 760px) {
  .home-bento {
    grid-template-columns: 1fr;
  }
}

.home-bento-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all .18s ease;
}

.home-bento-card:hover {
  border-color: var(--line-hover);
  background: var(--surface-card);
  transform: translateY(-1px);
}

.h-bento-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  flex: none;
}

.h-bento-icon.emerald {
  background: rgba(16, 185, 129, 0.1);
  color: var(--primary);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.h-bento-icon.purple {
  background: rgba(124, 58, 237, 0.1);
  color: #A78BFA;
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.h-bento-icon.amber {
  background: rgba(245, 158, 11, 0.1);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.h-bento-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.h-bento-info strong {
  font-size: .88rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.h-bento-info span {
  font-size: .78rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Raycast / Spotlight Stili Arama Çubuğu */
.search-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 14px;
}

.search {
  width: 100%;
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 70px 14px 44px;
  font-size: 15px;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23A1A1AA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 15px center;
  transition: all .16s ease;
}

.search:focus {
  border-color: var(--primary);
  background-color: var(--surface-hover);
  box-shadow: 0 0 0 3px var(--primary-glow), var(--shadow-md);
  outline: none;
}

.search-kbd {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--muted-dim);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  padding: 3px 6px;
  border-radius: 4px;
  pointer-events: none;
}

@media (max-width: 768px) {
  .search-kbd {
    display: none !important;
  }
  .search {
    padding-right: 18px !important;
  }
}

/* Filtreler Detay Paneli */
.filters {
  margin-top: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.filters summary {
  padding: 13px 18px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filters summary::-webkit-details-marker {
  display: none;
}

.filters summary::after {
  content: '▾';
  font-size: 1.1rem;
  color: var(--muted);
  transition: transform .2s ease;
}

.filters[open] summary::after {
  transform: rotate(180deg);
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 4px 18px 18px;
  align-items: end;
}

.filters-grid .btn {
  grid-column: 1 / -1;
}

@media (min-width: 720px) {
  .filters-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 18px 0 12px;
}

.count {
  color: var(--muted);
  font-size: .88rem;
  font-weight: 600;
  margin: 0;
}

/* ------------------------------------------------------------
   Dinamik İlan Listesi & Bento İlan Kartları
------------------------------------------------------------ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

@media (max-width: 520px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

/* Modern İlan Kartı (Linear & Raycast Koyu Glass Estetiği) */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
  box-shadow: var(--shadow-card);
  transition: transform .22s cubic-bezier(0.2, 0, 0, 1),
              box-shadow .22s ease,
              border-color .22s ease;
}

.card[data-open] {
  cursor: pointer;
}

.card[data-open]:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(0, 0, 0, 0.4);
  border-color: var(--line-hover);
}

.card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0B0B0E;
}

.card .pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.card:hover .pic {
  transform: scale(1.04);
}

.card .nopic, .card .pic-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #141418 0%, #0E0E12 100%);
  color: var(--muted-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: .84rem;
  font-weight: 600;
}

.card-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
  z-index: 2;
}

.tag {
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(9, 9, 11, 0.8);
  color: #E4E4E7;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.01em;
}

.tag.hizmet {
  background: rgba(124, 58, 237, 0.25);
  border-color: rgba(124, 58, 237, 0.4);
  color: #C4B5FD;
}

.tag.gift, .tag-gift {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.4) 0%, rgba(124, 58, 237, 0.4) 100%) !important;
  border-color: rgba(168, 85, 247, 0.5) !important;
  color: #F5D0FE !important;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.3) !important;
}

.photo-count-badge {
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.7);
  color: #D4D4D8;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mine {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: .68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  backdrop-filter: blur(6px);
  z-index: 2;
}

.card .body {
  padding: 12px 14px 14px;
  display: grid;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.card .t {
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.35;
  color: var(--ink);
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 2px;
}

.price {
  font-weight: 800;
  font-size: 1.2rem;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.price small {
  font-weight: 600;
  color: var(--muted);
  font-size: .8rem;
}

.price-gift {
  font-weight: 800;
  font-size: 1rem;
  color: #C084FC;
  background: var(--gift-bg);
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--gift-border);
  display: inline-block;
}

.card .desc {
  margin: 0;
  font-size: .82rem;
  color: var(--muted);
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
}

.card-footer {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--line-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: .78rem;
  color: var(--muted);
}

.seller-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.seller-name-clip {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  color: var(--ink-secondary);
}

.time-ago {
  white-space: nowrap;
  flex: none;
  font-size: .74rem;
  color: var(--muted-dim);
}

/* ------------------------------------------------------------
   İskelet Yükleme Animasyonu (Dark Shimmer)
------------------------------------------------------------ */
@keyframes shimmerDark {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer {
  background: linear-gradient(90deg, #18181B 25%, #27272A 37%, #18181B 63%);
  background-size: 200% 100%;
  animation: shimmerDark 1.6s infinite;
}

.skeleton-card {
  pointer-events: none;
  border-color: var(--line-subtle);
}

.skeleton-pic {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.skeleton-body {
  padding: 12px 14px;
  display: grid;
  gap: 8px;
}

.skeleton-line {
  height: 12px;
  border-radius: 4px;
}

.skeleton-line.w-70 { width: 70%; height: 16px; }
.skeleton-line.w-40 { width: 40%; height: 20px; }
.skeleton-line.w-90 { width: 90%; }
.skeleton-line.w-50 { width: 50%; }

/* ------------------------------------------------------------
   Modal Pencereler & Detay Görünümü (.sheet)
------------------------------------------------------------ */
.sheet {
  border: 1px solid var(--line);
  padding: 0;
  border-radius: var(--radius-xl);
  width: min(680px, calc(100% - 24px));
  max-height: calc(100% - 32px);
  background: rgba(18, 18, 21, 0.96);
  color: var(--ink);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  overflow: hidden;
}

.sheet::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.sheet .form {
  padding: 22px;
  max-height: calc(90vh - 20px);
  overflow-y: auto;
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 4px;
}

.sheet-head h2 {
  color: #FFFFFF;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}

@media (max-width: 600px) {
  .sheet {
    width: 100%;
    max-width: 100%;
    margin: auto 0 0;
    border-radius: 20px 20px 0 0;
    max-height: 92%;
    border-bottom: 0;
  }
}

.detail {
  display: grid;
  gap: 0;
  max-height: 88vh;
  overflow-y: auto;
}

.detail .gallery {
  background: #09090B;
  padding: 18px;
  display: grid;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.detail-main-wrap {
  position: relative;
  width: 100%;
  cursor: zoom-in;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
}

.detail-main-wrap .main {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #000000;
  display: block;
}

.zoom-hint {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(9, 9, 11, 0.8);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
  pointer-events: none;
  border: 1px solid var(--line);
}

.thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.thumbs button {
  width: 64px;
  height: 50px;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
}

.thumbs button[aria-pressed="true"] {
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail .info {
  padding: 22px;
  display: grid;
  gap: 16px;
}

.detail .info h2 {
  color: #FFFFFF;
  font-size: 1.5rem;
  overflow-wrap: anywhere;
}

.detail .info p {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  font-size: .95rem;
  line-height: 1.6;
  color: var(--ink-secondary);
}

/* Satıcı Kartı (Detay İçi Dark Bento) */
.seller-card {
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.seller-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #27272A 0%, #18181B 100%);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1.25rem;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid var(--line);
}

.seller-details {
  display: grid;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.seller-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.seller-name-text {
  font-weight: 700;
  font-size: 1rem;
  color: #FFFFFF;
}

.seller-room-text {
  font-size: .84rem;
  color: var(--muted);
}

/* Satıcı Rozetleri */
.badge-pill {
  font-size: .74rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.badge-new {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-secondary);
  border: 1px solid var(--line);
}

.badge-trusted {
  background: rgba(16, 185, 129, 0.12);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-experienced {
  background: rgba(124, 58, 237, 0.12);
  color: #C4B5FD;
  border: 1px solid rgba(124, 58, 237, 0.3);
}

.badge-legend {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.2) 100%);
  color: #FCD34D;
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

/* Çevrimiçi Durumu */
.presence-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  color: var(--muted);
}

.presence-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted-dim);
  flex: none;
}

.presence-dot.online {
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: .75; }
}

.seller-stats-row {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.stat-pill {
  font-size: .78rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-xs);
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  color: var(--ink-secondary);
}

.stat-pill.success {
  background: var(--success-bg);
  border-color: var(--success-line);
  color: #34D399;
}

@media (min-width: 760px) {
  #detailDialog {
    width: min(860px, calc(100% - 24px));
  }
  .detail {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }
  .detail .close-row {
    grid-column: 1 / -1;
  }
}

/* ------------------------------------------------------------
   TAM EKRAN GÖRSEL GÖRÜNTÜLEYİCİ (LIGHTBOX)
------------------------------------------------------------ */
.lightbox {
  position: fixed;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  background: rgba(5, 5, 7, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  touch-action: none;
  overflow: hidden;
  z-index: 200;
}

.lightbox:not([open]) {
  display: none !important;
}

.lightbox::backdrop {
  background: transparent;
}

.lightbox-close {
  position: absolute;
  top: max(16px, env(safe-area-inset-top, 16px));
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all .15s ease;
  z-index: 205;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
}

.lightbox-viewport {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 70px;
}

@media (max-width: 600px) {
  .lightbox-viewport {
    padding: 60px 16px;
  }
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.85);
  animation: lightboxZoom .2s cubic-bezier(0.2, 0, 0, 1);
}

@keyframes lightboxZoom {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all .15s ease;
  z-index: 205;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav.prev { left: 16px; }
.lightbox-nav.next { right: 16px; }

.lightbox-counter {
  position: absolute;
  bottom: max(20px, env(safe-area-inset-bottom, 20px));
  background: rgba(18, 18, 21, 0.85);
  border: 1px solid var(--line);
  color: #fff;
  font-size: .86rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
}

/* ------------------------------------------------------------
   Alt Menü (Mobil: Sabit Alt Bar / Masaüstü: Floating Dock)
------------------------------------------------------------ */
.tabbar {
  position: fixed;
  z-index: 25;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: rgba(18, 18, 21, 0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all .22s cubic-bezier(0.2, 0, 0, 1);
}

/* Mobil Ekranlar (< 768px): Ekranın Altına Sabit Tam Genişlik Alt Bar */
@media (max-width: 767px) {
  .tabbar {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    border-top: 1px solid var(--line);
    padding: 8px max(10px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px));
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.5);
  }
}

/* Masaüstü Ekranlar (>= 768px): Şık Yüzen Kapsül (Floating Dock) */
@media (min-width: 768px) {
  .tabbar {
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
    width: calc(100% - 32px);
    max-width: 540px;
    border-radius: 18px;
    padding: 8px 14px;
  }
}

.tabbar button {
  position: relative;
  border: 0;
  background: none;
  color: var(--muted);
  font-weight: 600;
  font-size: .78rem;
  padding: 6px 4px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.tabbar button svg {
  opacity: .75;
  transition: opacity .15s, transform .15s;
}

.tabbar button:hover svg {
  opacity: 1;
}

.tabbar button[aria-current="page"] {
  color: #FFFFFF;
}

.tabbar button[aria-current="page"] svg {
  opacity: 1;
  stroke: var(--primary);
}

.tabbar button[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: 1px;
  width: 14px;
  height: 2px;
  background: var(--primary);
  border-radius: 999px;
  box-shadow: 0 0 6px var(--primary);
}

.tabbar .newtab {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%) !important;
  color: #FFFFFF !important;
  font-weight: 700;
  box-shadow: 0 0 14px var(--accent-glow);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.tabbar .newtab svg {
  opacity: 1 !important;
}

.tabbar .badge {
  position: absolute;
  top: 2px;
  right: 12px;
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  background: var(--danger);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  padding: 0 4px;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

/* ------------------------------------------------------------
   Mesajlaşma Paneli (Inbox & Chat)
------------------------------------------------------------ */
.msgwrap {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 16px;
  margin-top: 14px;
  height: calc(100vh - 56px - 84px - 28px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  height: calc(100dvh - 56px - 84px - 28px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  min-height: 420px;
}

.inbox, .chatpane {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.inbox-title {
  padding: 16px 18px 12px;
  color: #FFFFFF;
  font-size: 1.2rem;
  border-bottom: 1px solid var(--line-subtle);
}

.convlist {
  overflow-y: auto;
  display: grid;
  align-content: start;
}

.conv {
  text-align: left;
  border: 0;
  border-top: 1px solid var(--line-subtle);
  background: none;
  padding: 12px 16px;
  display: grid;
  gap: 2px;
  min-width: 0;
  transition: background-color .15s;
}

.conv:hover {
  background: var(--surface-card);
}

.conv.on {
  background: rgba(124, 58, 237, 0.12);
  border-left: 3px solid var(--accent);
}

.conv .cn, .chathead .cn {
  font-weight: 700;
  color: #FFFFFF;
}

.conv .ct, .chathead .ct {
  font-size: .82rem;
  color: #A78BFA;
}

.conv .cp {
  font-size: .86rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conv.unread .cp {
  color: #FFFFFF;
  font-weight: 700;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 6px var(--primary);
  margin-left: 6px;
}

.nochat {
  flex: 1;
  display: grid;
  place-items: center;
  color: var(--muted-dim);
  padding: 24px;
  text-align: center;
}

.chatbox {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.chathead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-card);
}

.chathead-text {
  min-width: 0;
}

.msglist {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #09090B;
}

.bub {
  max-width: 82%;
  padding: 10px 14px 7px;
  border-radius: var(--radius-md);
  display: grid;
  gap: 4px;
  overflow-wrap: anywhere;
  box-shadow: var(--shadow-sm);
}

.bub.me {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--accent) 0%, #6D28D9 100%);
  color: #FFFFFF;
  border-bottom-right-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 10px var(--accent-glow);
}

.bub.them {
  align-self: flex-start;
  background: var(--surface-elevated);
  color: var(--ink);
  border: 1px solid var(--line);
  border-bottom-left-radius: 2px;
}

.bub .mtxt {
  white-space: pre-wrap;
  font-size: .94rem;
}

.bub .mimg {
  max-width: 100%;
  max-height: 260px;
  border-radius: var(--radius-sm);
  display: block;
}

.bub .mtime {
  font-size: .72rem;
  opacity: .75;
  justify-self: end;
}

.chatnote {
  margin: 0;
  border-radius: 0;
  font-size: .8rem;
  padding: 8px 16px;
  background: rgba(245, 158, 11, 0.08);
  border-top: 1px solid rgba(245, 158, 11, 0.2);
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
  color: #FCD34D;
}

.composer {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface-card);
}

.composer input[type="text"] {
  flex: 1;
  min-width: 0;
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 15px;
  color: var(--ink);
}

.composer input[type="text"]:focus {
  border-color: var(--primary);
  outline: none;
}

.attach {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  cursor: pointer;
  background: var(--surface-elevated);
  font-size: 1.3rem;
  color: var(--muted);
  transition: all .15s ease;
}

.attach:hover {
  background: var(--surface-hover);
  color: #fff;
  border-color: var(--line-hover);
}

@media (max-width: 760px) {
  .msgwrap {
    grid-template-columns: minmax(0, 1fr);
  }
  .msgwrap .chatpane {
    display: none;
  }
  .msgwrap.show-chat .chatpane {
    display: flex;
  }
  .msgwrap.show-chat .inbox {
    display: none;
  }
  #chatBack {
    display: inline-flex;
  }
}

@media (min-width: 761px) {
  #chatBack {
    display: none;
  }
}

/* ------------------------------------------------------------
   Hukuki Metinler & QR Afiş Stilleri
------------------------------------------------------------ */
.legal-content {
  max-height: 60vh;
  overflow-y: auto;
  padding: 4px 6px 14px;
  font-size: .92rem;
  line-height: 1.6;
  color: var(--ink-secondary);
}

.legal-content h3 {
  color: #FFFFFF;
  margin: 18px 0 6px;
  font-size: 1.05rem;
}

.legal-content ul {
  margin: 6px 0 12px 20px;
  padding: 0;
}

.legal-content li {
  margin-bottom: 4px;
}

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--primary);
  text-decoration: underline;
  font-weight: 600;
  cursor: pointer;
  font: inherit;
}

.link-btn:hover {
  color: #34D399;
}

.chat-actions {
  display: flex;
  gap: 6px;
}

.btn-icon {
  border: 1px solid var(--line);
  background: var(--surface-elevated);
  border-radius: var(--radius-xs);
  padding: 5px 10px;
  font-size: .8rem;
  cursor: pointer;
  color: var(--muted);
}

.btn-icon:hover {
  border-color: var(--line-hover);
  color: #fff;
}

/* QR Afiş */
.poster-preview {
  background: #0E0E12;
  border: 2px dashed rgba(124, 58, 237, 0.4);
  border-radius: var(--radius-xl);
  padding: 30px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 440px;
  margin: 0 auto;
}

.poster-header h1 {
  background: linear-gradient(135deg, #10B981 0%, #A855F7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0;
}

.poster-header p {
  color: var(--muted);
  font-weight: 600;
  margin: 4px 0 0;
  font-size: 1rem;
}

.poster-qr-wrap {
  background: #FFFFFF;
  padding: 16px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.poster-qr-wrap img, .poster-qr-wrap canvas {
  max-width: 180px;
  max-height: 180px;
  display: block;
}

.poster-features {
  text-align: left;
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  width: 100%;
  font-size: .88rem;
  color: var(--ink-secondary);
}

.poster-features ul {
  margin: 4px 0 0 18px;
  padding: 0;
  line-height: 1.6;
}

.poster-footer {
  font-size: .84rem;
  color: #34D399;
  font-weight: 700;
}

@media print {
  body * { visibility: hidden; }
  #qrDialog, #qrDialog * { visibility: visible; }
  #qrDialog { position: absolute; left: 0; top: 0; width: 100%; max-width: 100%; border: 0; padding: 0; box-shadow: none; background: #fff; color: #000; }
  .sheet::backdrop { background: none; }
  .no-print { display: none !important; }
  .poster-preview { border: 3px solid #000; max-width: 580px; padding: 40px; background: #fff; color: #000; }
  .poster-header h1 { -webkit-text-fill-color: #000; color: #000; }
  .poster-features { background: #f0f0f0; color: #000; border-color: #ccc; }
  .poster-footer { color: #000; }
}

/* ------------------------------------------------------------
   Yönetici Paneli (Admin)
------------------------------------------------------------ */
.admin-badge {
  background: var(--warning);
  color: #000;
  font-size: .74rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-left: 6px;
  font-weight: 700;
}

.banned-badge {
  background: var(--danger);
  color: #fff;
  font-size: .74rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.status.pending {
  color: var(--warning);
  font-weight: 700;
}

.status.rejected {
  color: var(--danger);
  font-weight: 700;
}

.admin-view {
  padding-block: 20px;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  overflow-x: auto;
}

.admin-tab-btn {
  background: none;
  border: 0;
  padding: 8px 16px;
  font-weight: 600;
  color: var(--muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
}

.admin-tab-btn.active {
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  color: #fff;
}

.admin-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
  display: grid;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.admin-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.admin-card-title {
  font-weight: 700;
  color: #fff;
  font-size: 1.05rem;
}

.admin-card-meta {
  font-size: .84rem;
  color: var(--muted);
}

.admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.report-target {
  background: var(--surface-card);
  border-radius: var(--radius-xs);
  padding: 10px 14px;
  font-size: .9rem;
  border-left: 3px solid var(--accent);
}

.blocked-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

/* Bildirim Ayarları Paneli */
.notif-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 4px 0;
  max-width: 520px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.notif-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-subtle);
  cursor: default;
}

.notif-row:last-child {
  border-bottom: 0;
}

.notif-label {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.notif-label strong {
  font-size: .95rem;
  color: var(--ink);
}

.notif-label small {
  font-size: .8rem;
  color: var(--muted);
}

.notif-toggle {
  flex: none;
  min-width: 72px;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: .84rem;
  font-weight: 700;
  background: var(--surface-elevated);
  color: var(--muted);
  transition: all .16s ease;
}

.notif-toggle.on {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 12px var(--primary-glow);
}

.notif-ios-hint {
  margin: 0;
  padding: 12px 16px;
  background: rgba(245, 158, 11, 0.1);
  border-bottom: 1px solid var(--line);
  font-size: .85rem;
  color: #FCD34D;
  line-height: 1.5;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.notif-warn {
  margin: 0;
  padding: 10px 16px;
  background: var(--danger-bg);
  border-bottom: 1px solid var(--line);
  color: #F87171;
  font-size: .85rem;
}

.notif-hint {
  margin: 0;
  padding: 8px 16px 12px;
  font-size: .82rem;
  color: var(--muted-dim);
  border-bottom: 1px solid var(--line);
}

/* Profilim Panel */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  max-width: 520px;
  box-shadow: var(--shadow-sm);
}

.sub {
  margin: 28px 0 14px;
  font-size: 1.25rem;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.mylist {
  display: grid;
  gap: 12px;
}

.myitem {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.myitem img, .myitem .nopic {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #0E0E12;
  display: grid;
  place-items: center;
  font-size: .75rem;
  color: var(--muted-dim);
  border: 1px solid var(--line);
}

.myitem .t {
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}

.myitem .acts {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.status {
  font-size: .82rem;
  font-weight: 700;
  color: #34D399;
}

.status.sold {
  color: var(--muted-dim);
}

/* Fotoğraf Seçici */
.photos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.photos .ph {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
}

.photos .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photos .ph button {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  line-height: 1;
}

.photos .add {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  border: 1.5px dashed rgba(255, 255, 255, 0.2);
  background: var(--surface-elevated);
  color: var(--muted);
  font-size: 2rem;
  transition: all .15s ease;
}

.photos .add:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--surface-hover);
}

/* Toast Bildirimi */
.toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(90px + env(safe-area-inset-bottom, 0px));
  background: rgba(18, 18, 21, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #FFFFFF;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  z-index: 150;
  max-width: min(92vw, 440px);
  font-weight: 600;
  font-size: .92rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--line);
  animation: toastUp .25s cubic-bezier(0.2, 0, 0, 1);
}

@keyframes toastUp {
  from { opacity: 0; transform: translate(-50%, 14px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.empty {
  text-align: center;
  padding: 56px 16px;
  color: var(--muted);
  grid-column: 1 / -1;
  font-size: 1rem;
}

.empty.small {
  padding: 28px 16px;
  font-size: .9rem;
}

.more {
  text-align: center;
  padding: 24px 0 8px;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.avatar-report-btn {
  margin-top: 4px;
  background: none;
  border: 0;
  padding: 0;
  font-size: .75rem;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
}

.avatar-report-btn:hover {
  color: var(--danger);
}


/* ------------------------------------------------------------
   Minimalist UI SVG İkonlar & Genişletilmiş Bileşenler
------------------------------------------------------------ */
.ui-icon {
  display: inline-block;
  vertical-align: -2px;
  stroke-width: 1.75px;
  stroke: currentColor;
  fill: none;
  flex: none;
}

.icon-sm {
  width: 14px;
  height: 14px;
}

.icon-md {
  width: 16px;
  height: 16px;
}

/* Mesajlar Listesi Avatar & Profil */
.conv {
  text-align: left;
  border: 0;
  border-top: 1px solid var(--line-subtle);
  background: none;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  transition: background-color .15s;
  cursor: pointer;
}

.conv-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
  display: grid;
  place-items: center;
  flex: none;
  overflow: hidden;
}

.conv-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.conv-info {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

/* Sohbet Başlığı Tıklanabilir Karşı Taraf Profili */
.chathead-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: background-color .15s, border-color .15s;
  min-width: 0;
  border: 1px solid transparent;
}

.chathead-profile:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
}

.chathead-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  font-size: .95rem;
  display: grid;
  place-items: center;
  flex: none;
  overflow: hidden;
}

.chathead-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Güvenli Alışveriş Hatırlatması Modalı */
.safety-notice-dialog {
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
  box-shadow: 0 0 50px rgba(16, 185, 129, 0.18), 0 32px 80px rgba(0, 0, 0, 0.9) !important;
}

.safety-notice-card {
  padding: 30px 24px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}

.safety-notice-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: rgba(16, 185, 129, 0.12);
  color: var(--primary);
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: grid;
  place-items: center;
  box-shadow: 0 0 24px var(--primary-glow);
}

.safety-notice-card h2 {
  font-size: 1.35rem;
  color: #FFFFFF;
  margin: 0;
  letter-spacing: -0.025em;
}

.safety-notice-text {
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  text-align: left;
  display: grid;
  gap: 12px;
  font-size: .92rem;
  line-height: 1.55;
  color: var(--ink-secondary);
}

.safety-notice-text strong {
  color: #FFFFFF;
}

.safety-notice-text p {
  margin: 0;
}

/* Herkese Açık Satıcı / Kullanıcı Profili Modalı */
.user-profile-header {
  padding: 24px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-card);
}

.user-profile-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.user-profile-avatar-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--line);
  overflow: hidden;
  background: var(--surface-elevated);
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink);
  flex: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.user-profile-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-profile-main-info {
  display: grid;
  gap: 6px;
}

.user-profile-main-info h2 {
  font-size: 1.4rem;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.user-profile-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .86rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.user-profile-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.user-profile-listings-section {
  padding: 22px;
  display: grid;
  gap: 16px;
  max-height: 52vh;
  overflow-y: auto;
}

.user-profile-listings-section h3 {
  font-size: 1.15rem;
  color: #FFFFFF;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.user-profile-listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

@media (max-width: 520px) {
  .user-profile-listings-grid {
    grid-template-columns: 1fr;
  }
}

.clickable-profile {
  cursor: pointer;
  transition: opacity .15s;
}

.clickable-profile:hover {
  opacity: .85;
}


/* ------------------------------------------------------------
   Genel Yurt Duyuru Bandı (Linear Announcement Banner)
------------------------------------------------------------ */
.announcement-banner {
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.22) 0%, rgba(16, 185, 129, 0.16) 100%);
  border: 1px solid rgba(124, 58, 237, 0.4);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  margin: 12px 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.15);
  animation: toastUp .2s ease;
}

.announcement-content {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: .9rem;
  line-height: 1.45;
}

.announcement-content strong {
  color: #C4B5FD;
  font-weight: 700;
  white-space: nowrap;
}

.announcement-dismiss {
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color .15s;
}

.announcement-dismiss:hover {
  color: #FFFFFF;
}

/* ------------------------------------------------------------
   Bekleyen Teslimat Onayı Bildirim Bandı
------------------------------------------------------------ */
.pending-delivery-banner {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.18) 0%, rgba(18, 18, 21, 0.95) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin: 12px 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  box-shadow: 0 4px 24px rgba(16, 185, 129, 0.15);
}

.pending-delivery-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.pending-delivery-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.2);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex: none;
}

.pending-delivery-text {
  display: grid;
  gap: 2px;
  font-size: .88rem;
}

.pending-delivery-text strong {
  color: #FFFFFF;
  font-size: .94rem;
}

.pending-delivery-text span {
  color: var(--ink-secondary);
}

/* ------------------------------------------------------------
   Favori (Kalp) Butonları ve Fiyat İndirim Rozetleri
------------------------------------------------------------ */
.btn-fav {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(9, 9, 11, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 3;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
  padding: 0;
}

.btn-fav:hover {
  transform: scale(1.1);
  color: #F87171;
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(18, 18, 21, 0.9);
}

.btn-fav.active {
  color: #EF4444;
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.15);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.3);
}

.btn-fav.active svg {
  fill: #EF4444;
  stroke: #EF4444;
}

.old-price {
  text-decoration: line-through;
  color: var(--muted-dim);
  font-size: .9rem;
  font-weight: 500;
  margin-right: 4px;
}

.tag.tag-discount {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3) 0%, rgba(5, 150, 105, 0.4) 100%) !important;
  color: #34D399 !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
  font-weight: 800;
}

.tag.tag-request {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.35) 0%, rgba(109, 40, 217, 0.45) 100%) !important;
  color: #DDD6FE !important;
  border-color: rgba(124, 58, 237, 0.5) !important;
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.25) !important;
  font-weight: 800;
}

/* ------------------------------------------------------------
   Yönetici 4'lü Bento İstatistik ve Duyuru Paneli
------------------------------------------------------------ */
.admin-stats-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

@media (max-width: 760px) {
  .admin-stats-bento {
    grid-template-columns: repeat(2, 1fr);
  }
}

.admin-bento-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, border-color .18s ease;
}

.admin-bento-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-hover);
}

.a-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  flex: none;
}

.a-stat-icon.purple {
  background: rgba(124, 58, 237, 0.12);
  color: #A78BFA;
  border: 1px solid rgba(124, 58, 237, 0.25);
}

.a-stat-icon.emerald {
  background: rgba(16, 185, 129, 0.12);
  color: var(--primary);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.a-stat-icon.amber {
  background: rgba(245, 158, 11, 0.12);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.a-stat-icon.blue {
  background: rgba(59, 130, 246, 0.12);
  color: #60A5FA;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.a-stat-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.a-stat-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.a-stat-label {
  font-size: .8rem;
  color: var(--muted);
  font-weight: 600;
}

.admin-announcement-panel {
  margin-bottom: 20px;
}

.panel-title {
  font-size: 1.05rem;
  color: #FFFFFF;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.current-ann-box {
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: .9rem;
}

.profile-tabs-wrap {
  margin-top: 24px;
  margin-bottom: 8px;
}

.profile-tabs-wrap .seg {
  width: 100%;
}

.profile-tabs-wrap .seg button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
}

/* ============================================================
   AYDINLIK TEMA — [data-theme="light"] (Linear / Apple Aesthetic)
============================================================ */
[data-theme="light"] {
  --bg: #FAFAFA;
  --bg-subtle: #F5F5F5;
  --surface: #FFFFFF;
  --surface-card: #FFFFFF;
  --surface-elevated: #FFFFFF;
  --surface-hover: #F4F4F5;
  --surface-glass: rgba(255, 255, 255, 0.85);

  --line: rgba(0, 0, 0, 0.08);
  --line-subtle: rgba(0, 0, 0, 0.05);
  --line-hover: rgba(0, 0, 0, 0.14);
  --line-strong: rgba(0, 0, 0, 0.20);

  --ink: #09090B;
  --ink-secondary: #27272A;
  --muted: #52525B;
  --muted-dim: #71717A;

  --primary: #059669;
  --primary-hover: #047857;
  --primary-glow: rgba(5, 150, 105, 0.22);
  --primary-glow-hover: rgba(5, 150, 105, 0.38);

  --accent: #7C3AED;
  --accent-hover: #6D28D9;
  --accent-glow: rgba(124, 58, 237, 0.22);

  --amber: #D97706;
  --amber-glow: rgba(217, 119, 6, 0.18);

  --danger: #DC2626;
  --danger-hover: #B91C1C;
  --danger-bg: rgba(220, 38, 38, 0.08);
  --danger-line: rgba(220, 38, 38, 0.25);

  --success: #059669;
  --success-bg: rgba(5, 150, 105, 0.08);
  --success-line: rgba(5, 150, 105, 0.25);

  --warning: #D97706;
  --warning-bg: rgba(217, 119, 6, 0.08);

  --gift-color: #7C3AED;
  --gift-bg: rgba(124, 58, 237, 0.08);
  --gift-border: rgba(124, 58, 237, 0.22);
  --gift-glow: rgba(124, 58, 237, 0.18);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px -2px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 12px 32px -4px rgba(0, 0, 0, 0.16);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.08);
  --glow-subtle: 0 0 24px rgba(124, 58, 237, 0.08);
}

/* Dot-matrix arka planı aydınlık temaya uyarla */
[data-theme="light"] body {
  background-image: radial-gradient(rgba(0, 0, 0, 0.06) 1px, transparent 1px);
}

/* Header aydınlık tema */
[data-theme="light"] .top {
  background: rgba(250, 250, 250, 0.88);
}

/* Auth ambient glow aydınlık temada hafiflet */
[data-theme="light"] .auth-ambient-glow,
[data-theme="light"] .hero-ambient-glow {
  opacity: 0.25;
}

/* Safety banner aydınlık temada */
[data-theme="light"] .safety-banner {
  background: rgba(5, 150, 105, 0.07);
  border-color: rgba(5, 150, 105, 0.22);
}

/* Announcement banner aydınlık tema */
[data-theme="light"] .announcement-banner {
  background: rgba(124, 58, 237, 0.07);
  border-color: rgba(124, 58, 237, 0.20);
}

/* Pending delivery banner */
[data-theme="light"] .pending-delivery-banner {
  background: rgba(217, 119, 6, 0.07);
  border-color: rgba(217, 119, 6, 0.22);
}

/* Dialogs / Sheets */
[data-theme="light"] .sheet {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.10);
}

/* Lightbox arka planı */
[data-theme="light"] #lightboxOverlay {
  background: rgba(0, 0, 0, 0.72);
}

/* Theme toggle butonu - icon-only varyant */
.btn.ghost.small.icon-only {
  padding: 6px 8px;
  min-width: 32px;
}

/* ============================================================
   ŞİFRE YARDIMCI METNİ (Helper Text — Kayıt Formu)
============================================================ */
.pass-helper-text {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 4px 0 0;
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.45;
  padding: 7px 10px;
  background: rgba(16, 185, 129, 0.07);
  border: 1px solid rgba(16, 185, 129, 0.18);
  border-radius: var(--radius-xs);
}

.pass-helper-text svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 1px;
}

[data-theme="light"] .pass-helper-text {
  background: rgba(5, 150, 105, 0.07);
  border-color: rgba(5, 150, 105, 0.22);
  color: #374151;
}

/* ============================================================
   GERİ BİLDİRİM BUTONU (Öneri & Destek)
============================================================ */
#openFeedbackBtn {
  position: relative;
}

.resolved-card {
  opacity: 0.65;
}

.pill-resolved {
  background: var(--success-bg) !important;
  color: var(--primary) !important;
  border-color: var(--success-line) !important;
}

/* ============================================================
   AYDINLIK TEMA — Bileşen Override'ları
   (Karanlık modda sabit beyaz/renk kullanan seçiciler için)
============================================================ */

/* 1. Sol üst logo metni — gradient beyazdan koyu metne */
[data-theme="light"] .brand-text {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: var(--ink);
  color: var(--ink);
}

/* 2. Hero başlığı (Merhaba, ...) — sabit #fff → koyu */
[data-theme="light"] .intro h2 {
  color: var(--ink);
}

/* 2b. Hero welcome badge — koyu zeminde yeşil yazı */
[data-theme="light"] .hero-welcome-badge {
  background: rgba(5, 150, 105, 0.10);
  border-color: rgba(5, 150, 105, 0.28);
  color: #047857;
}

/* 3. Güvenli Alışveriş banneri */
[data-theme="light"] .safety-banner {
  background: rgba(240, 253, 250, 0.95);
  border-color: rgba(5, 150, 105, 0.28);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}
[data-theme="light"] .safety-text strong {
  color: #065F46;
}
[data-theme="light"] .safety-text span {
  color: #374151;
}
[data-theme="light"] .safety-text b {
  color: #059669;
}

/* 4. Aktif filtre / seg butonu — koyu arka plan + beyaz yazı korunur,
      pasif butonlar koyu metin alır */
[data-theme="light"] .seg button {
  color: var(--muted);
}
[data-theme="light"] .seg button:hover {
  color: var(--ink);
}
[data-theme="light"] .seg button[aria-pressed="true"] {
  background: var(--ink);
  color: #FFFFFF;
  border-color: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

/* 5. Alt menü barı (tabbar) - Aydınlık Tema */
[data-theme="light"] .tabbar {
  background: rgba(255, 255, 255, 0.92);
  border-color: #E4E4E7;
  box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.10), 0 4px 12px rgba(0, 0, 0, 0.05);
}
@media (max-width: 767px) {
  [data-theme="light"] .tabbar {
    border-top-color: #E4E4E7;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
  }
}
[data-theme="light"] .tabbar button {
  color: #52525B;
}
[data-theme="light"] .tabbar button[aria-current="page"] {
  color: var(--ink);
}
[data-theme="light"] .tabbar button[aria-current="page"] svg {
  stroke: #059669;
}
[data-theme="light"] .tabbar button[aria-current="page"]::after {
  background: #059669;
  box-shadow: 0 0 6px rgba(5, 150, 105, 0.5);
}

/* 6. .note bilgi kutusu (DDD6FE metin aydınlıkta soluk kalır) */
[data-theme="light"] .note {
  background: rgba(124, 58, 237, 0.06);
  border-color: rgba(124, 58, 237, 0.18);
  color: #4C1D95;
}

/* 6b. msg hata/başarı renkleri aydınlıkta yüksek kontrast */
[data-theme="light"] .msg {
  color: #B91C1C;
}
[data-theme="light"] .msg.ok {
  color: #065F46;
}

/* 6c. Gift text — C084FC soluk görünür aydınlıkta */
[data-theme="light"] .gift-text strong {
  color: #7C3AED;
}

/* 6d. Gift slider arka planı */
[data-theme="light"] .gift-slider {
  background: rgba(0, 0, 0, 0.12);
}

/* 6e. Auth showcase gradient başlık */
[data-theme="light"] .showcase-title {
  color: var(--ink);
}
[data-theme="light"] .showcase-desc {
  color: var(--muted);
}

/* 6f. Announcement banner içerik rengi */
[data-theme="light"] .announcement-banner {
  color: #3B0764;
}

/* 6g. panel-title sabit beyaz */
[data-theme="light"] .panel-title {
  color: var(--ink);
}

/* 6h. Rozetler & Fiyatlar (Aydınlık modda yüksek kontrast) */
[data-theme="light"] .tag.tag-discount {
  background: rgba(5, 150, 105, 0.12) !important;
  color: #065F46 !important;
  border-color: rgba(5, 150, 105, 0.3) !important;
}

[data-theme="light"] .tag.tag-request {
  background: rgba(124, 58, 237, 0.10) !important;
  color: #5B21B6 !important;
  border-color: rgba(124, 58, 237, 0.28) !important;
}

[data-theme="light"] .price-gift {
  color: #7C3AED;
}

[data-theme="light"] .old-price {
  color: #71717A;
}

[data-theme="light"] .nopic,
[data-theme="light"] .pic-fallback {
  background: #F4F4F5;
  color: #71717A;
  border-color: #E4E4E7;
}

/* ============================================================
   GLOBAL RENK GEÇİŞ ANİMASYONLARI (flash olmadan tema değişimi)
============================================================ */
html {
  transition: background-color 0.22s ease, color 0.22s ease;
}

body,
.top,
.card,
.listing-card,
.bento-card,
.sheet,
.auth-card,
.safety-banner,
.announcement-banner,
.pending-delivery-banner,
.field input,
.field select,
.field textarea,
.seg,
.seg button,
.btn,
.micro-badge,
.profile-card,
.chat-bubble,
.msg-row,
.admin-box,
.current-ann-box,
.seller-info-box,
.detail-seller-row,
.stat-pill,
.nav-bar {
  transition: background-color 0.22s ease,
              color 0.22s ease,
              border-color 0.22s ease,
              box-shadow 0.22s ease;
}

/* ============================================================
   KAPSAMLI MOBİL & MASAÜSTÜ ARAYÜZ / UX İYİLEŞTİRMELERİ
============================================================ */

/* 1. Üst Navigasyon Buton Metinleri (Responsive Kısalma) */
.nav-text-short {
  display: none;
}

@media (max-width: 640px) {
  /* Üst barda yer tasarrufu için mobilde "Afiş / QR" gizle (Profilim sayfasında yer alıyor) */
  #btnTopQr {
    display: none !important;
  }
  .top-row {
    padding-block: 8px;
    gap: 8px;
  }
  .top-actions {
    gap: 4px;
    flex-shrink: 0;
  }
  .top-actions .btn.small {
    padding: 6px 10px;
    font-size: .8rem;
    min-height: 36px;
    gap: 4px;
  }
  .nav-text-full {
    display: none !important;
  }
  .nav-text-short {
    display: inline !important;
  }
}

/* 2. Mobil Üst Navigasyon Çubuğu (Header - 480px & 380px altı) */
@media (max-width: 480px) {
  .top-actions {
    gap: 3px;
  }
  .top-actions .btn.small {
    padding: 6px 8px;
    font-size: .78rem;
  }
  #btnLogout .nav-btn-text {
    display: none !important;
  }
  #btnLogout {
    padding: 6px 8px;
    min-width: 32px;
  }
  .brand {
    gap: 6px;
    font-size: 1.1rem;
  }
  .logo-mark {
    width: 28px;
    height: 28px;
    font-size: .74rem;
  }
}

@media (max-width: 380px) {
  .wrap {
    padding: 0 12px;
  }
  .brand-text {
    display: none;
  }
  .top-actions {
    gap: 3px;
  }
  .top-actions .btn.small {
    padding: 5px 6px;
    font-size: .76rem;
  }
}

/* 3. Arama Çubuğu (Mobilde ⌘K rozetini gizle) */
@media (max-width: 768px) {
  .search-kbd, .kbd-hint {
    display: none !important;
  }
  .search {
    padding-right: 18px !important;
  }
}

/* 4. Mesajlar Listesi İlan Fiyatı ve Kategori Rozetleri */
.conv-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0 3px;
  flex-wrap: wrap;
}

.conv-price {
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-mono);
  background: var(--primary-glow);
  padding: 1px 7px;
  border-radius: var(--radius-xs);
  font-size: .76rem;
  display: inline-block;
  line-height: 1.4;
}

.conv-price.is-free {
  color: var(--gift-color);
  background: var(--gift-bg);
}

.conv-badge {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  padding: 1px 7px;
  border-radius: var(--radius-xs);
  font-weight: 600;
  font-size: .74rem;
  white-space: nowrap;
  line-height: 1.4;
}

[data-theme="light"] .conv-badge {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.08);
  color: var(--ink-secondary);
}

[data-theme="light"] .conv-price {
  color: #047857;
  background: rgba(5, 150, 105, 0.12);
}

[data-theme="light"] .conv-price.is-free {
  color: #7C3AED;
  background: rgba(124, 58, 237, 0.10);
}

/* 5. Hero & Bento Blokları */
@media (max-width: 480px) {
  .intro h2 {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem);
  }
  .intro p {
    font-size: .9rem;
  }
  .safety-banner {
    padding: 10px 12px;
    gap: 10px;
  }
  .safety-text {
    font-size: .82rem;
  }
}

/* 6. İlan Kartları Grid'i (Mobilde tek sütun / akıcı dizilim) */
@media (max-width: 480px) {
  .grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .card .pic {
    height: 195px;
  }
  .card .body {
    padding: 13px 15px;
  }
  .card .meta {
    font-size: .78rem;
  }
}

/* 7. Modallar (Bottom Sheet, Klavye & Dokunma Hedefleri) */
@media (max-width: 600px) {
  .sheet {
    width: 100% !important;
    max-width: 100% !important;
    margin: auto 0 0 !important;
    border-radius: 20px 20px 0 0 !important;
    max-height: 92vh !important;
    border-bottom: 0 !important;
  }
  .sheet .form {
    padding: 18px 16px calc(24px + env(safe-area-inset-bottom, 0px)) !important;
    max-height: calc(88vh - 40px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
  }
  .sheet-head h2 {
    font-size: 1.15rem;
  }
  .two {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  /* iOS otomatik zoom engellemesi ve dokunma alanları */
  .field input, .field select, .field textarea {
    font-size: 16px !important;
    min-height: 44px;
  }
  .btn {
    min-height: 44px;
  }
  .btn.small {
    min-height: 38px;
  }
}

/* 8. Mobil Alt Menü Barı (.tabbar) ve Body Alt Boşluğu (iOS Safari Uyumu) */
@media (max-width: 767px) {
  body {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }
  .tabbar {
    padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
  }
  .tabbar button {
    min-height: 44px;
    font-size: .74rem;
    gap: 3px;
  }
  .toast {
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }
}

/* 9. Masaüstü Ekranlarda Body Alt Boşluğu (Floating Dock İçin) */
@media (min-width: 768px) {
  body {
    padding-bottom: 105px;
  }
  .toast {
    bottom: 95px;
  }
}

/* 10. Giriş Ekranı (AuthView - 480px altı) */
@media (max-width: 480px) {
  .auth-card {
    padding: 22px 16px;
    border-radius: var(--radius-lg);
  }
  .showcase-title {
    font-size: 1.5rem;
  }
  .bento-card {
    padding: 14px;
  }
}

/* 11. Yönetici Paneli (AdminView - 480px altı) */
@media (max-width: 480px) {
  .admin-stats-bento {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .admin-bento-card {
    padding: 12px 10px;
    gap: 10px;
  }
  .a-stat-num {
    font-size: 1.25rem;
  }
  .a-stat-label {
    font-size: .72rem;
  }
  .admin-tabs {
    gap: 4px;
    padding-bottom: 6px;
  }
  .admin-tab-btn {
    padding: 6px 10px;
    font-size: .8rem;
  }
}
