/* Talepify web panel tarzı — sidebar + kart tabanlı SaaS düzeni, Emlak Connect kırmızı marka */
:root {
  --brand: #e63312;
  --brand-dark: #b82a0f;
  --sidebar-bg: #0f1419;
  --sidebar-hover: #1a222d;
  --sidebar-text: #94a3b8;
  --sidebar-active: #ffffff;
  --surface: #f4f6f9;
  --card: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.04);
  --sidebar-width: 260px;
  --header-h: 64px;
  --login-gradient: linear-gradient(145deg, #fff 0%, #ffe8e3 35%, #f5b8a8 70%, rgba(230, 51, 18, 0.45) 100%);
}

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

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

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

/* ——— Giriş (iOS LoginView + Talepify temiz form) ——— */
.login-page {
  min-height: 100vh;
  background: var(--login-gradient);
  display: flex;
  flex-direction: column;
}

.login-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem 1rem;
  text-align: center;
}

.login-hero h1 {
  margin: 0.75rem 0 0.25rem;
  font-size: 1.65rem;
  color: var(--brand);
}

.login-hero p { margin: 0; color: rgba(230, 51, 18, 0.75); font-size: 0.95rem; }

.login-card {
  background: var(--card);
  border-radius: 28px 28px 0 0;
  padding: 2rem 1.5rem 2.5rem;
  box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.08);
}

.login-card .field {
  margin-bottom: 1rem;
}

.login-card label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.login-card input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1.25rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}

.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-secondary {
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f1f5f9;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

.btn-ghost {
  background: transparent;
  border: none;
  color: var(--brand);
  font-weight: 600;
  cursor: pointer;
  padding: 0.5rem;
}

/* ——— Panel kabuğu (Talepify sidebar) ——— */
.app-layout {
  display: flex;
  min-height: 100vh;
}

.app-sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  transition: transform 0.25s ease;
}

.sidebar-top {
  padding: 1.25rem 0.5rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-app-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 1rem;
  text-decoration: none;
}

.sidebar-app-logo:hover {
  text-decoration: none;
  opacity: 0.92;
}

.sidebar-app-logo img {
  display: block;
  max-height: 156px;
  width: auto;
  max-width: min(100%, 240px);
  object-fit: contain;
}

.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0;
  background: var(--sidebar-bg);
}

.sidebar-user-card__profile-link {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.sidebar-user-card__profile-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
}

.sidebar-user-card__profile-link svg {
  width: 18px;
  height: 18px;
}

.sidebar-user-card__meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.sidebar-user-card__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-card__office {
  font-size: 0.7rem;
  color: var(--sidebar-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-card__logo-wrap {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.sidebar-user-card__logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 0.5rem;
}

.sidebar-promo-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.25rem 0.25rem 0.85rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-promo-block--single {
  grid-template-columns: 1fr;
}

.sidebar-promo-col--stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-promo-col--single {
  display: flex;
}

.sidebar-promo-col--single .sidebar-promo-btn {
  flex: 1;
  min-height: 0;
}

.sidebar-promo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.25rem 0.25rem 0.85rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-promo-row:has(.sidebar-promo-btn:only-child) {
  grid-template-columns: 1fr;
}

.sidebar-promo-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 4.25rem;
  padding: 0.75rem 0.5rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.sidebar-promo-btn svg {
  flex-shrink: 0;
  opacity: 0.9;
  stroke: currentColor;
}

.sidebar-promo-btn--office {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.22);
  color: #bbf7d0;
}

.sidebar-promo-btn--office:hover {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(74, 222, 128, 0.45);
  color: #fff;
  text-decoration: none;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.2),
    0 8px 24px rgba(34, 197, 94, 0.2);
}

.sidebar-promo-btn--office.active {
  background: rgba(34, 197, 94, 0.22);
  border-color: rgba(74, 222, 128, 0.55);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(74, 222, 128, 0.35),
    0 8px 20px rgba(34, 197, 94, 0.25);
}

.sidebar-promo-btn--meetings {
  background: rgba(249, 115, 22, 0.08);
  border-color: rgba(249, 115, 22, 0.22);
  color: #fed7aa;
}

.sidebar-promo-btn--meetings:hover {
  background: rgba(249, 115, 22, 0.18);
  border-color: rgba(251, 146, 60, 0.45);
  color: #fff;
  text-decoration: none;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.2),
    0 8px 24px rgba(249, 115, 22, 0.2);
}

.sidebar-promo-btn--meetings.active {
  background: rgba(249, 115, 22, 0.22);
  border-color: rgba(251, 146, 60, 0.55);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(251, 146, 60, 0.35),
    0 8px 20px rgba(249, 115, 22, 0.25);
}

.sidebar-promo-btn--doviz {
  background: rgba(234, 179, 8, 0.08);
  border-color: rgba(234, 179, 8, 0.22);
  color: #fef08a;
}

.sidebar-promo-btn--doviz:hover {
  background: rgba(234, 179, 8, 0.18);
  border-color: rgba(250, 204, 21, 0.45);
  color: #fff;
  text-decoration: none;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.2),
    0 8px 24px rgba(234, 179, 8, 0.2);
}

.sidebar-promo-btn--doviz.active {
  background: rgba(234, 179, 8, 0.22);
  border-color: rgba(250, 204, 21, 0.55);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(250, 204, 21, 0.35),
    0 8px 20px rgba(234, 179, 8, 0.25);
}

.sidebar-promo-btn--belge {
  background: rgba(230, 51, 18, 0.1);
  border-color: rgba(230, 51, 18, 0.28);
  color: #fecaca;
}

.sidebar-promo-btn--belge:hover {
  background: rgba(230, 51, 18, 0.2);
  border-color: rgba(248, 113, 113, 0.45);
  color: #fff;
  text-decoration: none;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.2),
    0 8px 24px rgba(230, 51, 18, 0.22);
}

.sidebar-promo-btn--belge.active {
  background: rgba(230, 51, 18, 0.32);
  border-color: rgba(248, 113, 113, 0.55);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(248, 113, 113, 0.35),
    0 8px 20px rgba(230, 51, 18, 0.28);
}

.nav-section-title {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.75rem 0.75rem 0.35rem;
  color: #475569;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  margin: 2px 0;
  border-radius: 10px;
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.nav-link:hover {
  background: var(--sidebar-hover);
  color: #e2e8f0;
  text-decoration: none;
}

.nav-link.active {
  background: rgba(230, 51, 18, 0.15);
  color: var(--sidebar-active);
  border-left: 3px solid var(--brand);
  padding-left: calc(0.85rem - 3px);
}

.nav-link svg { flex-shrink: 0; opacity: 0.85; }

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
}

.app-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
}

.app-header {
  height: var(--header-h);
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0c1222 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 50;
}

.app-header__start {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.app-header h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.header-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
}

.header-toggle-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
}

.app-header .header-toggle-switch {
  width: 44px;
  height: 26px;
}

.app-header .toggle-slider {
  background: rgba(255, 255, 255, 0.28);
}

.app-header .toggle-slider::before {
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.app-header .toggle-switch input:checked + .toggle-slider {
  background: #34c759;
}

.app-header .toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(18px);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #fff;
}

body.theme-dark .app-header,
body:not(.theme-dark) .app-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0c1222 100%);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.app-content {
  flex: 1;
  padding: 1.25rem 1.5rem 2rem;
}

/* ——— Site alt bilgisi (yasal belgeler) ——— */
.site-footer {
  margin-top: auto;
  flex-shrink: 0;
  padding: 1rem 1.5rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 0.85rem;
  max-width: 100%;
}

.site-footer-nav a {
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
}

.site-footer-nav a:hover {
  color: var(--brand);
  text-decoration: underline;
}

body.theme-dark .site-footer {
  background: var(--card);
  border-top-color: #2d3748;
}

body.theme-dark .site-footer-nav a {
  color: #94a3b8;
}

body.theme-dark .site-footer-nav a:hover {
  color: var(--brand);
}

.public-page > .site-footer {
  width: 100%;
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  border-top: none;
  background: transparent;
}

@media (max-width: 640px) {
  .site-footer {
    padding: 0.85rem 1rem 1rem;
  }

  .site-footer-nav {
    gap: 0.35rem 0.6rem;
  }

  .site-footer-nav a {
    font-size: 0.72rem;
    white-space: normal;
  }
}

/* Kartlar & grid */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.card-padded { padding: 1.25rem; }

.account-info-title {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.account-info-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.account-info-logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border, #e2e8f0);
}

.account-info-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.account-info-row {
  display: grid;
  grid-template-columns: minmax(8rem, 38%) 1fr;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border, #e2e8f0);
  font-size: 0.9rem;
}

.account-info-row:last-child {
  border-bottom: none;
}

.account-info-label {
  color: var(--text-muted, #64748b);
  font-weight: 500;
}

.account-info-value {
  color: var(--text, #0f172a);
  word-break: break-word;
}

.account-info-loading {
  margin: 0;
  color: var(--text-muted, #64748b);
}

.account-info-error {
  margin: 0;
  color: #b91c1c;
}

body.theme-dark .account-info-value {
  color: #e2e8f0;
}

.segmented {
  display: inline-flex;
  background: #e2e8f0;
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 1.25rem;
}

.segmented button {
  border: none;
  background: transparent;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text-muted);
}

.segmented button.active {
  background: var(--card);
  color: var(--brand);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

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

/* İlanlarım — Hepsiemlak tarzı vitrin kartları */
.my-listings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.my-listings-empty {
  grid-column: 1 / -1;
}

@media (max-width: 1100px) {
  .my-listings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .my-listings-grid {
    grid-template-columns: 1fr;
  }
}

.listing-card-vitrin {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.listing-card-vitrin:hover {
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
}

.listing-card-vitrin-media {
  position: relative;
  flex: 0 0 auto;
  min-height: 0;
  background: #e2e8f0;
}

.listing-card-vitrin-media img,
.listing-card-vitrin-media .listing-video-thumb,
.listing-card-vitrin-media .listing-media-empty {
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  display: block;
  border-radius: 14px 14px 0 0;
}

.listing-card-vitrin-media .listing-video-thumb {
  background: #1e293b;
}

.listing-card-vitrin-media .listing-video-thumb-img,
.listing-card-vitrin-media .listing-video-thumb-video {
  aspect-ratio: 5 / 3;
  border-radius: 14px 14px 0 0;
}

.listing-opsiyon-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  padding: 3px 8px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  background: #e63312;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(230, 51, 18, 0.35);
  pointer-events: none;
}

.listing-opsiyon-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text, #0f172a);
  cursor: pointer;
}

.listing-opsiyon-toggle input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: #e63312;
}

.listing-card-vitrin-watermark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-22deg);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 1;
  white-space: nowrap;
  user-select: none;
}

.listing-card-vitrin-fav {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  color: #f59e0b;
  display: flex;
  align-items: center;
  justify-content: center;
}

.listing-card-vitrin-fav:hover {
  background: #fff;
}

.listing-card-vitrin-body {
  flex: 1 1 auto;
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.listing-card-vitrin-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

.listing-card-vitrin-price {
  color: var(--brand);
  font-weight: 800;
  font-size: 1.08rem;
  line-height: 1.3;
}

.listing-card-vitrin-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 0.1rem;
}

.listing-card-vitrin-actions {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border);
}

.listing-card-vitrin-action {
  border: none;
  background: none;
  padding: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: none;
}

.listing-card-vitrin-action:hover {
  color: var(--brand);
  text-decoration: underline;
}

.listing-card-vitrin-action--danger {
  color: #b91c1c;
}

.listing-card-vitrin-action--danger:hover {
  color: #991b1b;
}

.listing-card {
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.listing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.listing-card img,
.listing-card .listing-video-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #e2e8f0;
}

.listing-video-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  background: #1e293b;
}

.listing-video-thumb-img,
.listing-video-thumb-video {
  width: 100%;
  height: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.listing-video-thumb-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 0.95rem;
  line-height: 1;
  pointer-events: none;
  z-index: 1;
}

.listing-video-thumb--ready .listing-video-thumb-play,
.listing-video-thumb--fallback .listing-video-thumb-play {
  opacity: 0.95;
}

.listing-media-empty {
  aspect-ratio: 4/3;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.85rem;
}

.listing-detail-media {
  margin-bottom: 1rem;
}

.listing-detail-gallery {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
}

.listing-detail-gallery--single .listing-detail-video {
  display: block;
}

.listing-detail-gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.listing-detail-gallery-track::-webkit-scrollbar {
  display: none;
}

.listing-detail-gallery-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.listing-detail-gallery-slide--video {
  background: #0f172a;
}

.listing-gallery-photo {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.listing-detail-gallery-slide--video .listing-detail-video,
.listing-detail-gallery--single .listing-detail-video {
  width: 100%;
  height: 280px;
  max-height: none;
  border-radius: 0;
  background: #0f172a;
  object-fit: contain;
}

.listing-detail-gallery-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.65rem;
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  pointer-events: none;
}

.listing-detail-gallery-dot {
  width: 7px;
  height: 7px;
  border: none;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  pointer-events: auto;
  cursor: pointer;
}

.listing-detail-gallery-dot.is-active {
  background: #fff;
  transform: scale(1.15);
}

.listing-card-body { padding: 1rem; }

.listing-card-body h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  line-height: 1.35;
}

.listing-price {
  color: var(--brand);
  font-weight: 700;
  font-size: 1.05rem;
}

.listing-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.profile-hero {
  margin-bottom: 1rem;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand), #b91c1c);
  color: #fff;
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.profile-hero-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.25);
  margin: 0 auto 0.5rem;
  display: block;
}

.profile-hero-initials {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin: 0 auto 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.profile-hero h2 {
  margin: 0;
  font-size: 1.1rem;
  color: #fff;
}

.profile-hero-firma {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  opacity: 0.85;
}

.profile-hero-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 1rem;
}

.profile-hero-stats strong {
  display: block;
  font-size: 1.15rem;
}

.profile-hero-stats span {
  font-size: 0.75rem;
  opacity: 0.85;
}

.profile-toggle-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
}

.profile-toggle-card .toggle-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: #f2f2f7;
  flex-shrink: 0;
}

body.theme-dark .profile-toggle-card .toggle-icon {
  background: var(--card);
}

.profile-toggle-card.customer-on .toggle-icon {
  background: rgba(230, 51, 18, 0.12);
}

.profile-toggle-card .toggle-body {
  flex: 1;
  min-width: 0;
}

.profile-toggle-card .toggle-body strong {
  display: block;
  font-size: 0.95rem;
}

.profile-toggle-card .toggle-body span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.profile-toggle-card.customer-on .toggle-body span {
  color: var(--brand);
}

.menu-section-title {
  padding: 0.65rem 1rem 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.profile-logo-upload {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  opacity: 0.9;
}

.profile-logo-upload input {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  max-width: 100%;
}

.btn-logout-profile {
  width: 100%;
  margin-top: 1rem;
  padding: 0.85rem;
  border: none;
  border-radius: 12px;
  background: var(--card);
  color: var(--brand);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.btn-logout-profile:hover {
  background: #fef2f2;
}

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-list a, .menu-list button.menu-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.9rem 1rem;
  border: none;
  background: none;
  text-align: left;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.menu-list a .menu-chevron {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.profile-hero-doviz {
  font-size: 0.8rem;
  opacity: 0.9;
  margin: 0.5rem 0 0;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #cbd5e1;
  border-radius: 28px;
  transition: 0.2s;
}

.toggle-slider::before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--brand);
}

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

.menu-list li:last-child a,
.menu-list li:last-child .menu-row { border-bottom: none; }

.menu-list a:hover, .menu-list .menu-row:hover { background: #f8fafc; }

.badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
}

.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-orange { background: #ffedd5; color: #c2410c; }
.badge-green { background: #dcfce7; color: #15803d; }
.badge-red { background: #fee2e2; color: #b91c1c; }

.listing-wizard .wizard-ozellik-hint {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.listing-wizard .wizard-ozellikler .wizard-seg-block {
  grid-column: 1 / -1;
}
.listing-wizard .wizard-seg-block label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}
.listing-wizard .wizard-seg-block .seg-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.listing-wizard .wizard-seg-block .seg-btn {
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f1f5f9;
  color: var(--text);
  font-size: 0.85rem;
  cursor: pointer;
}
.listing-wizard .wizard-seg-block .seg-btn.active {
  background: var(--brand-red, #dc2626);
  border-color: var(--brand-red, #dc2626);
  color: #fff;
}
.listing-wizard .wizard-actions { display: flex; gap: 0.5rem; margin-top: 1rem; }
.listing-wizard .chk-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.35rem; }
.listing-wizard label.chk {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
}
.listing-wizard label.chk input[type="checkbox"] {
  width: auto;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
}
.listing-wizard .credit-fields {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}
.listing-wizard .kredi-limiti-field {
  width: 100%;
}
.photo-preview-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.photo-preview-grid img { width: 80px; height: 60px; object-fit: cover; border-radius: 8px; }
.btn-sm { padding: 0.35rem 0.65rem !important; font-size: 0.75rem !important; }

body.theme-dark {
  --surface: #0f1419;
  --card: #1a222d;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: #2d3748;
}
body.theme-dark .app-sidebar { background: #0a0e14; }
/* Login page keeps light card + red-white gradient even in dark theme */
body.theme-dark .login-page-v2 {
  background:
    radial-gradient(ellipse 75% 55% at 12% 8%, rgba(255, 255, 255, 0.85), transparent 55%),
    radial-gradient(ellipse 70% 50% at 88% 92%, rgba(230, 51, 18, 0.2), transparent 55%),
    linear-gradient(145deg, #ffffff 0%, #ffe8e3 35%, #f5b8a8 70%, rgba(230, 51, 18, 0.55) 100%);
}
body.theme-dark .login-glass {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.08),
    0 8px 24px rgba(230, 51, 18, 0.06);
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  padding: 0.85rem 1.25rem;
  background: #0f172a;
  color: #fff;
  border-radius: 10px;
  z-index: 9999;
  max-width: 360px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.toast.error { background: #b91c1c; }

.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
}

.mobile-menu-btn {
  display: none;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 90;
}

@media (max-width: 900px) {
  .app-sidebar {
    transform: translateX(-100%);
  }
  .app-sidebar.open { transform: translateX(0); }
  .sidebar-overlay.open { display: block; }
  .app-main { margin-left: 0; }
  .mobile-menu-btn { display: inline-flex; }
  .app-header { padding: 0 1rem; }
  .header-actions { gap: 0.65rem; }
}

@media (max-width: 520px) {
  .header-toggle-label { display: none; }
  .header-actions { gap: 0.5rem; }
  .user-chip {
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
  }
}

.customer-mode .listing-price,
.customer-mode .listing-card-vitrin-price,
.customer-mode .portal-listing-price,
.customer-mode .price-hide { display: none !important; }

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-grid label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
}

/* Yardım merkezi & iletişim */
.help-intro {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

.help-quick-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.help-quick-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.help-quick-link:hover {
  border-color: var(--brand);
  box-shadow: 0 2px 12px rgba(230, 51, 18, 0.08);
  text-decoration: none;
  color: inherit;
}

.help-chevron {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.help-faq-wrap h2 {
  color: var(--text);
}

.help-faq-section {
  margin-bottom: 1.25rem;
}

.help-faq-section:last-child {
  margin-bottom: 0;
}

.help-faq-section h3 {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.help-faq-item {
  border-bottom: 1px solid var(--border);
  padding: 0.35rem 0;
}

.help-faq-item:last-child {
  border-bottom: none;
}

.help-faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.5rem 0;
  list-style: none;
}

.help-faq-item summary::-webkit-details-marker {
  display: none;
}

.help-faq-item summary::after {
  content: "+";
  float: right;
  color: var(--brand);
  font-weight: 700;
}

.help-faq-item[open] summary::after {
  content: "−";
}

.help-faq-item p {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  line-height: 1.55;
  font-size: 0.92rem;
}

.help-footer-note {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.contact-info-row {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-info-row:last-child {
  border-bottom: none;
}

.contact-info-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.contact-info-value {
  font-size: 0.95rem;
}

.contact-info-value a {
  color: var(--brand);
  text-decoration: none;
}

.contact-info-value a:hover {
  text-decoration: underline;
}

.wizard-steps {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.wizard-steps span {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background: #e2e8f0;
  color: var(--text-muted);
}

.wizard-steps span.active {
  background: var(--brand);
  color: #fff;
}

.compare-bar {
  position: fixed;
  bottom: 0;
  left: var(--sidebar-width);
  right: 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 40;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
}

@media (max-width: 900px) {
  .compare-bar { left: 0; }
}

.portal-doviz-ticker {
  font-size: 0.8rem;
  opacity: 0.9;
  margin: 0 0 0.5rem;
}

/* ——— Kamuya açık sayfalar (yasal, yardım, iletişim) ——— */
.public-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
}

.public-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.public-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.public-brand .brand-logo {
  height: 36px;
  width: auto;
}

.public-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.public-theme-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.public-theme-toggle input {
  accent-color: var(--brand);
}

.public-login-link {
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.45rem 0.9rem;
}

.public-content {
  flex: 1;
  width: 100%;
  max-width: 52rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
}

body.theme-dark .public-header {
  background: #1a222d;
  border-color: #2d3748;
}

/* ——— Yasal metinler ——— */
.legal-prose {
  max-width: 48rem;
  line-height: 1.65;
  color: var(--text);
}

.legal-prose .legal-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.legal-prose h1 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
}

.legal-prose .legal-intro {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.legal-prose h2 {
  margin: 1.75rem 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

.legal-prose h2:first-of-type {
  margin-top: 0.5rem;
}

.legal-prose p {
  margin: 0 0 0.85rem;
}

.legal-prose .legal-meta {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.legal-prose ul {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.legal-prose li {
  margin-bottom: 0.4rem;
}

.legal-prose a {
  word-break: break-word;
}

@media print {
  .app-sidebar,
  .app-header,
  .sidebar-overlay,
  .no-print,
  .mobile-menu-btn { display: none !important; }
  .app-main { margin: 0 !important; }
  .app-content { padding: 0 !important; }
  body { background: #fff; }
  .legal-prose { max-width: none; }
}
