/* ==========================================================================
   Adsell — tasarım sistemi
   Tek dosya, sıfır bağımlılık. Sıralama: token -> reset -> düzen ->
   bileşen -> pazarlama -> panel -> yardımcı sınıf.
   ========================================================================== */

:root {
  /* --- nötrler --- */
  --ink-950: #070B14;
  --ink-900: #0B1220;
  --ink-800: #151C2C;
  --ink-700: #26304a;
  --ink-600: #414D68;
  --ink-500: #5B6884;
  /* İkincil metin rengi. Beyazda 5.0:1, --ink-50 zemininde 4.65:1 — ikisinde
     de WCAG AA küçük metin sınırı olan 4.5'in üstünde kalır. */
  --ink-400: #656F87;
  --ink-300: #AAB4C6;
  --ink-200: #D3DAE5;
  --ink-100: #E6EBF2;
  --ink-50:  #F4F6FA;
  --white:   #FFFFFF;

  /* --- marka --- */
  --brand-700: #3B31C4;
  --brand-600: #4C40E0;
  --brand-500: #635BFF;   /* ana aksiyon */
  --brand-400: #8A84FF;
  --brand-100: #E7E5FF;
  --brand-50:  #F3F2FF;

  /* --- saha tarafı (sıcak) --- */
  --amber-600: #B45309;
  --amber-500: #F59E0B;
  --amber-100: #FEF3C7;
  --amber-50:  #FFFBEB;

  /* --- durum --- */
  --green-700: #046C4E;
  --green-600: #059669;
  --green-100: #D1FAE5;
  --green-50:  #ECFDF5;
  --red-700:   #991B1B;
  --red-600:   #DC2626;
  --red-100:   #FEE2E2;
  --red-50:    #FEF2F2;
  --blue-700:  #1E40AF;
  --blue-600:  #2563EB;
  --blue-100:  #DBEAFE;
  --blue-50:   #EFF6FF;

  /* --- ölçek --- */
  --r-xs: 6px;  --r-sm: 8px;  --r-md: 12px;
  --r-lg: 16px; --r-xl: 24px; --r-full: 999px;

  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px; --sp-20: 80px; --sp-24: 96px;

  --shadow-xs: 0 1px 2px rgba(11, 18, 32, .06);
  --shadow-sm: 0 1px 3px rgba(11, 18, 32, .08), 0 1px 2px rgba(11, 18, 32, .04);
  --shadow-md: 0 4px 12px rgba(11, 18, 32, .08), 0 2px 4px rgba(11, 18, 32, .04);
  --shadow-lg: 0 12px 32px rgba(11, 18, 32, .12), 0 4px 8px rgba(11, 18, 32, .04);
  --shadow-xl: 0 24px 56px rgba(11, 18, 32, .16);

  --ring: 0 0 0 3px rgba(99, 91, 255, .28);
  --border: 1px solid var(--ink-100);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --sidebar-w: 248px;
  --topbar-h: 64px;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv02", "cv03", "cv04", "tnum" 0;
}

img, svg, video { display: block; max-width: 100%; }

/* `hidden` HER ZAMAN kazanmalı. Yukarıdaki `display: block` bir YAZAR kuralı
   olduğu için tarayıcının `[hidden] { display: none }` kuralını eziyordu:
   `img.hidden = true` hiçbir işe yaramıyor, galeride gizlenen <video> görselin
   üstünde boş bir oynatıcı olarak durmaya devam ediyordu. */
[hidden] { display: none !important; }

/* Çok satırlı alanlar (textarea) girildiği gibi gösterilir — satır sonları
   ve paragraf boşlukları korunur. */
.pre-line { white-space: pre-line; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }
h1, h2, h3, h4, h5 { line-height: 1.2; font-weight: 680; letter-spacing: -.02em; color: var(--ink-900); }
h1 { font-size: 2.25rem; letter-spacing: -.035em; }
h2 { font-size: 1.75rem; letter-spacing: -.03em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.0625rem; }
p { text-wrap: pretty; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-sm); }
::selection { background: var(--brand-100); color: var(--brand-700); }

/* ==========================================================================
   Düzen
   ========================================================================== */
.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--sp-6); }
.container-sm { max-width: 760px; }
.container-xs { max-width: 460px; }

.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-sidebar { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }

.stack { display: flex; flex-direction: column; gap: var(--sp-4); }
.row { display: flex; align-items: center; gap: var(--sp-3); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }
.row-wrap { flex-wrap: wrap; }
.spacer { flex: 1; }

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3, .grid-2, .grid-sidebar { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: minmax(0, 1fr); }
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }
}

/* ==========================================================================
   Butonlar
   ========================================================================== */
.btn {
  --btn-bg: var(--white);
  --btn-fg: var(--ink-800);
  --btn-bd: var(--ink-200);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 9px 16px;
  font-size: .9375rem; font-weight: 560; line-height: 1.25;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1px solid var(--btn-bd); border-radius: var(--r-sm);
  box-shadow: var(--shadow-xs);
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background .15s ease, border-color .15s ease,
              transform .06s ease, box-shadow .15s ease, color .15s ease;
}
.btn:hover { background: var(--ink-50); color: var(--ink-900); text-decoration: none; }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }

.btn-primary {
  --btn-bg: var(--brand-500); --btn-fg: var(--white); --btn-bd: var(--brand-500);
  box-shadow: 0 1px 2px rgba(11,18,32,.1), inset 0 1px 0 rgba(255,255,255,.16);
}
.btn-primary:hover { --btn-bg: var(--brand-600); --btn-bd: var(--brand-600); color: var(--white); }

.btn-dark { --btn-bg: var(--ink-900); --btn-fg: var(--white); --btn-bd: var(--ink-900); }
.btn-dark:hover { --btn-bg: var(--ink-800); color: var(--white); }

.btn-amber { --btn-bg: var(--amber-500); --btn-fg: var(--ink-900); --btn-bd: var(--amber-500); }
.btn-amber:hover { --btn-bg: #E08E06; color: var(--ink-900); }

/* Beyaz metin --green-600 üzerinde 3.77:1 kalıyordu; koyu ton 6.4:1 verir. */
.btn-success { --btn-bg: var(--green-700); --btn-fg: var(--white); --btn-bd: var(--green-700); }
.btn-success:hover { --btn-bg: #03533C; --btn-bd: #03533C; color: var(--white); }

.btn-danger { --btn-bg: var(--red-600); --btn-fg: var(--white); --btn-bd: var(--red-600); }
.btn-danger:hover { --btn-bg: var(--red-700); color: var(--white); }

.btn-ghost { --btn-bd: transparent; box-shadow: none; --btn-bg: transparent; }
.btn-ghost:hover { --btn-bg: var(--ink-50); }

/* Koyu üst menüde hayalet buton koyu metni miras alıp okunmaz oluyordu. */
.on-dark .btn-ghost { --btn-fg: rgba(255, 255, 255, .82); }
.on-dark .btn-ghost:hover { --btn-bg: rgba(255, 255, 255, .1); color: var(--white); }

.btn-sm { padding: 6px 12px; font-size: .8125rem; border-radius: var(--r-xs); }
.btn-lg { padding: 13px 24px; font-size: 1rem; border-radius: var(--r-md); }
.btn-block { display: flex; width: 100%; }
.btn-icon { padding: 8px; }

/* ==========================================================================
   Kart
   ========================================================================== */
.card {
  background: var(--white);
  /* Rengi açıkça sabitle: koyu bölümlerin içinde kullanılan kartlar aksi
     halde beyaz metni miras alıp okunmaz hale geliyor. */
  color: var(--ink-800);
  border: var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: var(--sp-6); }
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  border-bottom: var(--border);
}
.card-head h3, .card-head h4 { font-size: 1rem; font-weight: 620; }
.card-body { padding: var(--sp-6); }
.card-foot {
  padding: var(--sp-4) var(--sp-6);
  border-top: var(--border);
  background: var(--ink-50);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}
.card-hover { transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease; }
.card-hover:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--ink-200); }

/* --- istatistik kartı --- */
.stat { padding: var(--sp-5); }
.stat-label {
  font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-400); margin-bottom: var(--sp-2);
  display: flex; align-items: center; gap: 6px;
}
.stat-value {
  font-size: 1.875rem; font-weight: 700; letter-spacing: -.03em;
  color: var(--ink-900); line-height: 1.1; font-variant-numeric: tabular-nums;
}
.stat-value .unit { font-size: 1rem; font-weight: 600; color: var(--ink-500); margin-left: 3px; }
.stat-sub { margin-top: var(--sp-2); font-size: .8125rem; color: var(--ink-500); }
.stat-accent { border-left: 3px solid var(--brand-500); }

/* ==========================================================================
   Rozet / etiket
   ========================================================================== */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: var(--r-full);
  font-size: .75rem; font-weight: 600; line-height: 1.5;
  background: var(--ink-100); color: var(--ink-600);
  white-space: nowrap;
}
.badge::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; opacity: .75; flex: none;
}
.badge-plain::before { display: none; }
.badge-green  { background: var(--green-100); color: var(--green-700); }
.badge-red    { background: var(--red-100);   color: var(--red-700); }
.badge-amber  { background: var(--amber-100); color: var(--amber-600); }
.badge-blue   { background: var(--blue-100);  color: var(--blue-700); }
.badge-brand  { background: var(--brand-100); color: var(--brand-700); }
.badge-dark   { background: var(--ink-800);   color: var(--white); }

/* fraud bandı */
.band-temiz  { background: var(--green-100); color: var(--green-700); }
.band-orta   { background: var(--amber-100); color: var(--amber-600); }
.band-riskli { background: var(--red-100);   color: var(--red-700); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: var(--r-full);
  border: 1px solid var(--ink-200); background: var(--white);
  font-size: .8125rem; font-weight: 550; color: var(--ink-600);
  transition: all .15s ease;
}
a.chip:hover { border-color: var(--ink-300); background: var(--ink-50); color: var(--ink-800); }
.chip.is-active { background: var(--ink-900); border-color: var(--ink-900); color: var(--white); }

/* ==========================================================================
   Tablo
   ========================================================================== */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.table thead th {
  padding: var(--sp-3) var(--sp-5);
  text-align: left; white-space: nowrap;
  font-size: .6875rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-500); background: var(--ink-50);
  border-bottom: var(--border);
}
.table tbody td {
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--ink-50);
  vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s ease; }
.table tbody tr:hover { background: var(--ink-50); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .strong { font-weight: 600; color: var(--ink-900); }
.table .muted { color: var(--ink-400); }
.table-fixed { table-layout: fixed; }

/* ==========================================================================
   Form
   ========================================================================== */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--sp-5); }
.field:last-child { margin-bottom: 0; }
.label { font-size: .875rem; font-weight: 570; color: var(--ink-700); }
.label .req { color: var(--red-600); }
.hint { font-size: .8125rem; color: var(--ink-400); }
.error-text { font-size: .8125rem; color: var(--red-600); font-weight: 500; }

.input, .select, .textarea {
  width: 100%;
  padding: 10px 13px;
  font-size: .9375rem;
  color: var(--ink-900);
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-xs);
  transition: border-color .15s ease, box-shadow .15s ease;
  appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-300); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand-500); box-shadow: var(--ring);
}
.input[aria-invalid="true"], .select[aria-invalid="true"] {
  border-color: var(--red-600); box-shadow: 0 0 0 3px rgba(220,38,38,.15);
}
.input:disabled, .select:disabled, .textarea:disabled {
  background: var(--ink-50); color: var(--ink-400); cursor: not-allowed;
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.55; }

.select {
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%238391A8' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}

.input-group { display: flex; align-items: stretch; }
.input-group .input { border-radius: var(--r-sm) 0 0 var(--r-sm); position: relative; z-index: 1; }
.input-group .btn { border-radius: 0 var(--r-sm) var(--r-sm) 0; margin-left: -1px; }
.input-prefix {
  display: inline-flex; align-items: center; padding: 0 13px;
  background: var(--ink-50); border: 1px solid var(--ink-200); border-right: 0;
  border-radius: var(--r-sm) 0 0 var(--r-sm);
  color: var(--ink-500); font-weight: 560; font-size: .9375rem;
}
.input-prefix + .input { border-radius: 0 var(--r-sm) var(--r-sm) 0; }

/* onay kutusu */
.check { display: flex; align-items: flex-start; gap: var(--sp-3); cursor: pointer; }
.check input[type="checkbox"], .check input[type="radio"] {
  flex: none; width: 18px; height: 18px; margin-top: 2px;
  accent-color: var(--brand-500); cursor: pointer;
}
.check-text { font-size: .875rem; color: var(--ink-600); line-height: 1.5; }
.check-box {
  padding: var(--sp-4); border: 1px solid var(--ink-200); border-radius: var(--r-md);
  transition: all .15s ease;
}
.check-box:hover { border-color: var(--ink-300); background: var(--ink-50); }
.check-box:has(input:checked) { border-color: var(--brand-500); background: var(--brand-50); }

/* çoklu şehir seçimi */
.city-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--sp-2);
  max-height: 220px; overflow-y: auto;
  padding: var(--sp-3);
  border: 1px solid var(--ink-200); border-radius: var(--r-sm);
  background: var(--ink-50);
}
.city-grid label {
  display: flex; align-items: center; gap: 7px;
  font-size: .8125rem; padding: 4px 6px; border-radius: var(--r-xs); cursor: pointer;
}
.city-grid label:hover { background: var(--white); }

/* segment seçici */
.segments {
  display: inline-flex; padding: 3px; gap: 2px;
  background: var(--ink-100); border-radius: var(--r-sm);
}
.segments a, .segments button {
  padding: 6px 14px; border-radius: 6px;
  font-size: .8125rem; font-weight: 570; color: var(--ink-500);
  transition: all .15s ease;
}
.segments a:hover, .segments button:hover { color: var(--ink-900); }
.segments .is-active {
  background: var(--white); color: var(--ink-900); box-shadow: var(--shadow-xs);
}

/* ==========================================================================
   Uyarı / bildirim
   ========================================================================== */
.alert {
  display: flex; gap: var(--sp-3); align-items: flex-start;
  padding: var(--sp-4);
  border-radius: var(--r-md);
  border: 1px solid transparent;
  font-size: .875rem; line-height: 1.55;
}
.alert-title { font-weight: 620; display: block; margin-bottom: 2px; }
.alert-icon { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.alert-info    { background: var(--blue-50);  border-color: #BFDBFE; color: #1E40AF; }
.alert-success { background: var(--green-50); border-color: #A7F3D0; color: var(--green-700); }
.alert-warning { background: var(--amber-50); border-color: #FDE68A; color: var(--amber-600); }
.alert-error   { background: var(--red-50);   border-color: #FECACA; color: var(--red-700); }

/* uçan bildirimler */
.toasts {
  position: fixed; top: var(--sp-5); right: var(--sp-5); z-index: 200;
  display: flex; flex-direction: column; gap: var(--sp-2);
  width: min(380px, calc(100vw - 32px));
}
.toast {
  display: flex; align-items: flex-start; gap: var(--sp-3);
  padding: var(--sp-4);
  background: var(--white);
  border: var(--border); border-left: 3px solid var(--ink-400);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  font-size: .875rem;
  animation: toast-in .28s cubic-bezier(.2, .9, .3, 1.1);
}
.toast.is-out { animation: toast-out .2s ease forwards; }
.toast-success { border-left-color: var(--green-600); }
.toast-error   { border-left-color: var(--red-600); }
.toast-warning { border-left-color: var(--amber-500); }
.toast-info    { border-left-color: var(--blue-600); }
.toast-close { color: var(--ink-300); padding: 0 2px; line-height: 1; font-size: 1.1rem; }
.toast-close:hover { color: var(--ink-600); }

@keyframes toast-in  { from { opacity: 0; transform: translateX(24px) scale(.97); } }
@keyframes toast-out { to   { opacity: 0; transform: translateX(24px); } }

/* ==========================================================================
   Boş durum, ilerleme, çeşitli
   ========================================================================== */
.empty { text-align: center; padding: var(--sp-16) var(--sp-6); }
.empty-icon {
  width: 52px; height: 52px; margin: 0 auto var(--sp-4);
  display: grid; place-items: center;
  background: var(--ink-50); border-radius: var(--r-md); color: var(--ink-300);
}
.empty h4 { margin-bottom: var(--sp-2); }
.empty p { color: var(--ink-500); font-size: .9375rem; max-width: 420px; margin: 0 auto var(--sp-5); }

.progress { height: 6px; background: var(--ink-100); border-radius: var(--r-full); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--brand-500); border-radius: inherit;
                   transition: width .4s cubic-bezier(.2,.9,.3,1); }
.progress-green > span { background: var(--green-600); }
.progress-amber > span { background: var(--amber-500); }
.progress-red   > span { background: var(--red-600); }

.avatar {
  flex: none; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: var(--r-full);
  background: var(--brand-100); color: var(--brand-700);
  font-size: .8125rem; font-weight: 650; letter-spacing: -.01em;
}
.avatar-lg { width: 48px; height: 48px; font-size: 1rem; }
.avatar-amber { background: var(--amber-100); color: var(--amber-600); }

.code {
  font-family: var(--mono); font-size: .8125rem;
  padding: 2px 7px; border-radius: var(--r-xs);
  background: var(--ink-50); border: 1px solid var(--ink-100); color: var(--ink-700);
}
.code-block {
  font-family: var(--mono); font-size: .8125rem; line-height: 1.7;
  padding: var(--sp-4); border-radius: var(--r-md);
  background: var(--ink-900); color: #C9D4E8;
  overflow-x: auto; white-space: pre;
}

.divider { height: 1px; background: var(--ink-100); border: 0; margin: var(--sp-6) 0; }
.divider-text {
  display: flex; align-items: center; gap: var(--sp-4);
  color: var(--ink-400); font-size: .8125rem; margin: var(--sp-5) 0;
}
.divider-text::before, .divider-text::after {
  content: ""; flex: 1; height: 1px; background: var(--ink-100);
}

.pagination { display: flex; align-items: center; justify-content: center; gap: var(--sp-2); padding: var(--sp-5); }
.pagination .btn.is-current { background: var(--ink-900); color: var(--white); border-color: var(--ink-900); }

.kbd {
  font-family: var(--mono); font-size: .75rem;
  padding: 2px 6px; border-radius: var(--r-xs);
  background: var(--white); border: 1px solid var(--ink-200);
  box-shadow: 0 1px 0 var(--ink-200);
}

/* kopyalanabilir link kutusu */
.copy-box {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: 10px 12px;
  background: var(--ink-50); border: 1px dashed var(--ink-200); border-radius: var(--r-sm);
  font-family: var(--mono); font-size: .8125rem; color: var(--ink-700);
}
.copy-box span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }

/* ==========================================================================
   Pazarlama — üst menü
   ========================================================================== */
.site-nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: var(--border);
}
.site-nav.on-dark {
  background: rgba(11, 18, 32, .72);
  border-bottom-color: rgba(255, 255, 255, .1);
}
.site-nav .container { display: flex; align-items: center; gap: var(--sp-6); height: 68px; }
.nav-links { display: flex; align-items: center; gap: var(--sp-6); }
.nav-links a {
  font-size: .9375rem; font-weight: 540; color: var(--ink-600);
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--ink-900); }
.on-dark .nav-links a { color: rgba(255,255,255,.72); }
.on-dark .nav-links a:hover { color: var(--white); }
.nav-actions { display: flex; align-items: center; gap: var(--sp-3); margin-left: auto; }

.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 700;
        font-size: 1.0625rem; letter-spacing: -.025em; color: var(--ink-900); }
.logo:hover { color: var(--ink-900); }
.logo-mark {
  width: 30px; height: 30px; flex: none;
  display: grid; place-items: center;
}
.logo-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* `.amber` eskiden logo karesini sarıya boyuyordu. Marka işareti artık kendi
   rengini taşıyan bir görsel olduğu için tonlanmıyor; saha tarafının sarı
   kimliği butonlarda ve başlık gradyanlarında sürüyor. */
.on-dark .logo { color: var(--white); }

.nav-toggle {
  display: none; padding: 8px; color: var(--ink-600);
  background: none; border: 0; border-radius: var(--r-sm); cursor: pointer;
}
.on-dark .nav-toggle { color: rgba(255, 255, 255, .82); }

/* Mobil menü paneli — yalnızca dar ekranda ve yalnızca açıkken görünür. */
.nav-panel { display: none; }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; place-items: center; margin-left: auto; }
  .nav-actions { margin-left: 0; }
  /* Barda yalnızca birincil aksiyon kalır; giriş ve bağlantılar panelde. */
  .nav-actions .btn:not(.btn-primary):not(.btn-dark):not(.btn-amber) { display: none; }

  .nav-panel { display: block; border-top: var(--border); }
  .on-dark .nav-panel { border-top-color: rgba(255, 255, 255, .1); }
  /* `.site-nav .container` yatay flex ve 68px sabit yükseklik veriyor;
     panelin içindeki sarmalayıcı bunu devralmamalı. */
  .nav-panel .container {
    display: block; height: auto; padding-block: var(--sp-4);
  }
  .nav-panel a {
    display: block; padding: 10px 0;
    font-size: 1rem; font-weight: 540; color: var(--ink-700);
  }
  .on-dark .nav-panel a { color: rgba(255, 255, 255, .82); }
  .nav-panel-actions {
    display: grid; gap: var(--sp-3);
    margin-top: var(--sp-3); padding-top: var(--sp-4); border-top: var(--border);
  }
  .on-dark .nav-panel-actions { border-top-color: rgba(255, 255, 255, .1); }
  /* Panelde butonlar tam genişlik — barda gizlenen giriş butonu dahil. */
  .nav-panel-actions .btn { display: flex; width: 100%; }
  /* Hayalet buton panelde çerçevesiz kalınca düz metin gibi görünüyordu;
     giriş burada birincil gezinme eylemi, buton gibi durmalı. */
  .nav-panel-actions .btn-ghost {
    background: var(--white); border-color: var(--ink-200);
    box-shadow: var(--shadow-xs);
  }
  .on-dark .nav-panel-actions .btn-ghost {
    background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22);
  }
}

/* ==========================================================================
   Pazarlama — hero ve bölümler
   ========================================================================== */
.hero { position: relative; overflow: hidden; padding: var(--sp-20) 0 var(--sp-16); }
.hero-dark {
  background: var(--ink-900);
  color: rgba(255, 255, 255, .78);
  /* Eğik alt kenar: koyu alan solda daha aşağı iner. Kesim içeriği yemesin
     diye alt boşluk eğim yüksekliği kadar büyütülür. */
  --cut: 5.5vw;
  padding-bottom: calc(var(--sp-8) + var(--cut));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), 0 100%);
}
@media (max-width: 700px) { .hero-dark { --cut: 28px; } }
.hero-dark h1, .hero-dark h2, .hero-dark h3 { color: var(--white); }
.hero-mesh::before {
  content: ""; position: absolute; inset: -14% -12% auto -12%; height: 880px;
  background:
    radial-gradient(36% 50% at 10% 16%, rgba(56, 189, 248, .50), transparent 64%),
    radial-gradient(40% 48% at 34% 4%,  rgba(99, 91, 255, .62), transparent 66%),
    radial-gradient(38% 50% at 62% 24%, rgba(168, 85, 247, .50), transparent 64%),
    radial-gradient(32% 44% at 90% 2%,  rgba(244, 114, 182, .34), transparent 62%);
  filter: blur(26px); pointer-events: none;
}
.hero-mesh.amber::before {
  background:
    radial-gradient(36% 50% at 10% 16%, rgba(251, 191, 36, .52), transparent 64%),
    radial-gradient(40% 48% at 34% 4%,  rgba(245, 158, 11, .58), transparent 66%),
    radial-gradient(38% 50% at 62% 24%, rgba(249, 115, 22, .46), transparent 64%),
    radial-gradient(32% 44% at 90% 2%,  rgba(239, 68, 68, .30), transparent 62%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
             gap: var(--sp-12); align-items: center; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: var(--sp-10); } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 13px 5px 6px; margin-bottom: var(--sp-5);
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  font-size: .8125rem; font-weight: 540; color: rgba(255,255,255,.85);
}
.eyebrow-light { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-700); }
.eyebrow .tag {
  padding: 2px 8px; border-radius: var(--r-full);
  background: var(--brand-500); color: var(--white);
  font-size: .6875rem; font-weight: 650; letter-spacing: .02em;
}
.eyebrow-light .tag { background: var(--brand-500); }
.eyebrow .tag.amber { background: var(--amber-500); color: var(--ink-900); }

.display {
  font-size: clamp(2.25rem, 5.2vw, 3.75rem);
  line-height: 1.04; letter-spacing: -.042em; font-weight: 720;
}
.lede {
  font-size: clamp(1.0625rem, 1.7vw, 1.25rem);
  line-height: 1.6; margin-top: var(--sp-5); max-width: 46ch;
}
.gradient-text {
  background: linear-gradient(96deg, #8A84FF 8%, #38BDF8 52%, #C084FC 96%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gradient-text.amber {
  background: linear-gradient(96deg, #FBBF24 6%, #F59E0B 48%, #FB923C 96%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-8); }
.hero-note { margin-top: var(--sp-4); font-size: .8125rem; color: rgba(255,255,255,.5); }

/* Pazarlama yüzeylerinde CTA'lar hap biçiminde; panelde köşeli kalır. */
.hero .btn, .cta-band .btn { border-radius: var(--r-full); }

/* Aksiyona götüren metin bağlantısı — okla. */
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 560; color: var(--brand-600); text-decoration: none;
}
.link-arrow svg { transition: transform .18s ease; }
.link-arrow:hover { color: var(--brand-700); }
.link-arrow:hover svg { transform: translateX(3px); }
.link-arrow.amber { color: var(--amber-600); }
.section-dark .link-arrow, .hero-dark .link-arrow { color: var(--brand-400); }
.section-dark .link-arrow.amber, .hero-dark .link-arrow.amber { color: var(--amber-500); }
.hero-cta .link-arrow { padding: 13px 4px; }

.section { padding: var(--sp-20) 0; }
.section-tight { padding: var(--sp-16) 0; }
.section-alt { background: #F6F9FC; }
.section-dark { background: var(--ink-900); color: rgba(255,255,255,.75); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }

.section-head { max-width: 680px; margin-bottom: var(--sp-12); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .kicker {
  font-size: .8125rem; font-weight: 650; letter-spacing: .09em; text-transform: uppercase;
  color: var(--brand-600); margin-bottom: var(--sp-3);
}
.section-head .kicker.amber { color: var(--amber-600); }
.section-head p { margin-top: var(--sp-4); font-size: 1.0625rem; color: var(--ink-500); }
.section-dark .section-head p { color: rgba(255,255,255,.6); }

/* özellik kartları */
/* Stripe düzeni: özellikler kutulanmaz — ikon, başlık, metin. Ritmi
   çerçeve değil, ızgara boşluğu ve ikon hizası taşır. */
.feature { padding: 0; background: none; border: 0; box-shadow: none; height: 100%; }
.feature-icon {
  width: 40px; height: 40px; border-radius: var(--r-sm); margin-bottom: var(--sp-4);
  display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand-600);
}
.feature-icon.amber { background: var(--amber-50); color: var(--amber-600); }
.feature-icon.green { background: var(--green-50); color: var(--green-600); }
.feature h4 { margin-bottom: var(--sp-2); }
.feature p { font-size: .9375rem; color: var(--ink-500); }
.section-dark .feature { background: none; border: 0; box-shadow: none; }
.section-dark .feature p { color: rgba(255,255,255,.62); }
.section-dark .feature-icon { background: rgba(99,91,255,.18); color: var(--brand-400); }

/* Beyaz kart koyu bir bölümün içindeyken başlıklar `.section-dark h3` /
   `.hero-dark h3` kuralından beyaz rengi miras alıp kayboluyordu. Kart içi
   her zaman açık zemin kabul edilir. */
.section-dark .card, .hero-dark .card,
.section-dark .calc, .hero-dark .calc { color: var(--ink-800); }
.section-dark .card h1, .section-dark .card h2, .section-dark .card h3,
.section-dark .card h4, .section-dark .card h5,
.hero-dark .card h1, .hero-dark .card h2, .hero-dark .card h3,
.hero-dark .card h4, .hero-dark .card h5,
.section-dark .calc h3, .section-dark .calc h4,
.hero-dark .calc h3, .hero-dark .calc h4 { color: var(--ink-900); }

/* sosyal kanıt bandı */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); }
.stat-band > div { text-align: center; }
.stat-band .n {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 720; letter-spacing: -.035em;
  color: var(--ink-900); font-variant-numeric: tabular-nums;
}
.section-dark .stat-band .n { color: var(--white); }
.stat-band .l { font-size: .875rem; color: var(--ink-500); margin-top: 4px; }
.section-dark .stat-band .l { color: rgba(255,255,255,.55); }
@media (max-width: 700px) { .stat-band { grid-template-columns: repeat(2, 1fr); gap: var(--sp-8) var(--sp-4); } }

/* adım adım */
.steps { counter-reset: step; display: grid; gap: var(--sp-6); }
.step { display: flex; gap: var(--sp-5); align-items: flex-start; }
.step-num {
  counter-increment: step; flex: none;
  width: 34px; height: 34px; border-radius: var(--r-full);
  display: grid; place-items: center;
  background: var(--ink-900); color: var(--white);
  font-size: .875rem; font-weight: 680;
}
.step-num::before { content: counter(step); }
.step-num.amber { background: var(--amber-500); color: var(--ink-900); }
.step h4 { margin-bottom: 4px; }
.step p { color: var(--ink-500); font-size: .9375rem; }
.section-dark .step p { color: rgba(255,255,255,.62); }

/* kazanç hesaplayıcı */
.calc {
  background: var(--white); color: var(--ink-800); border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl); border: var(--border);
  overflow: hidden;
}
.calc-head { padding: var(--sp-6); border-bottom: var(--border); }
.calc-body { padding: var(--sp-6); }
.calc-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-3) 0; font-size: .9375rem;
}
.calc-row + .calc-row { border-top: 1px solid var(--ink-50); }
.calc-row .k { color: var(--ink-500); display: flex; align-items: center; gap: 8px; }
.calc-row .v { font-weight: 640; font-variant-numeric: tabular-nums; color: var(--ink-900); }
.calc-row.total { border-top: 2px solid var(--ink-100); margin-top: var(--sp-2); padding-top: var(--sp-4); }
.calc-row.total .v { font-size: 1.375rem; color: var(--green-600); }
.calc-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }

/* SSS */
.faq-item { border-bottom: var(--border); }
.faq-item summary {
  padding: var(--sp-5) 0; cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  font-weight: 600; color: var(--ink-900); font-size: 1.0625rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--ink-400);
  transition: transform .2s ease; line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-bottom: var(--sp-5); color: var(--ink-500); max-width: 68ch; }

/* alt CTA + footer */
.cta-band {
  background: linear-gradient(135deg, var(--brand-600), #7C3AED 60%, var(--brand-700));
  border-radius: var(--r-xl); padding: var(--sp-12);
  text-align: center; color: rgba(255,255,255,.85);
}
.cta-band.amber { background: linear-gradient(135deg, var(--amber-500), #EA580C 70%); color: rgba(0,0,0,.7); }
.cta-band h2 { color: var(--white); margin-bottom: var(--sp-3); }
.cta-band.amber h2 { color: var(--ink-900); }

.site-footer { background: var(--ink-950); color: rgba(255,255,255,.55); padding: var(--sp-16) 0 var(--sp-8); }
.site-footer h5 {
  color: var(--white); font-size: .8125rem; font-weight: 650;
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: var(--sp-4);
}
.site-footer a { color: rgba(255,255,255,.55); font-size: .9375rem; display: block; padding: 5px 0; }
.site-footer a:hover { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: var(--sp-8); }
.footer-bottom {
  margin-top: var(--sp-12); padding-top: var(--sp-6);
  border-top: 1px solid rgba(255,255,255,.09);
  display: flex; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap;
  font-size: .8125rem;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   Panel kabuğu
   ========================================================================== */
.app { display: flex; min-height: 100vh; background: var(--ink-50); }

.sidebar {
  position: fixed; inset-block: 0; left: 0; width: var(--sidebar-w); z-index: 70;
  display: flex; flex-direction: column;
  background: var(--ink-900); color: rgba(255,255,255,.7);
  border-right: 1px solid rgba(255,255,255,.07);
}
.sidebar-head { padding: var(--sp-5) var(--sp-5) var(--sp-4); }
.sidebar-nav { flex: 1; overflow-y: auto; padding: var(--sp-2) var(--sp-3) var(--sp-5); }
.sidebar-group {
  padding: var(--sp-5) var(--sp-3) var(--sp-2);
  font-size: .6875rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.52);
}
.sidebar-link {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 9px var(--sp-3); margin-bottom: 2px;
  border-radius: var(--r-sm);
  font-size: .9062rem; font-weight: 520; color: rgba(255,255,255,.68);
  transition: background .14s ease, color .14s ease;
}
.sidebar-link:hover { background: rgba(255,255,255,.07); color: var(--white); }
.sidebar-link.is-active { background: var(--brand-500); color: var(--white); font-weight: 570;
                          box-shadow: 0 2px 10px rgba(99,91,255,.35); }
.sidebar-link svg { flex: none; opacity: .85; }
.sidebar-link .count {
  margin-left: auto; padding: 1px 7px; border-radius: var(--r-full);
  background: var(--red-700); color: var(--white); font-size: .6875rem; font-weight: 680;
}
/* Aktif bağlantıda yarı saydam beyaz zemin + beyaz metin okunmuyordu;
   opak zemine geçip metni koyulaştırıyoruz. */
.sidebar-link.is-active .count { background: rgba(255,255,255,.95); color: var(--ink-900); }
.sidebar-foot { padding: var(--sp-4); border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-user { display: flex; align-items: center; gap: var(--sp-3); }
.sidebar-user .meta { min-width: 0; flex: 1; }
.sidebar-user .n { font-size: .875rem; font-weight: 570; color: var(--white);
                   overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user .r { font-size: .75rem; color: rgba(255,255,255,.6); }

/* saha paneli sıcak tema */
.sidebar.amber .sidebar-link.is-active {
  background: var(--amber-500); color: var(--ink-900); box-shadow: 0 2px 10px rgba(245,158,11,.32);
}

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

.topbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--topbar-h);
  display: flex; align-items: center; gap: var(--sp-4);
  padding: 0 var(--sp-8);
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: var(--border);
}
.topbar h1 { font-size: 1.125rem; font-weight: 640; letter-spacing: -.02em; }
.topbar .crumb { font-size: .8125rem; color: var(--ink-400); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: var(--sp-3); }

.content { padding: var(--sp-8); flex: 1; }
.content-narrow { max-width: 860px; }

.sidebar-toggle { display: none; }
.scrim {
  position: fixed; inset: 0; z-index: 65;
  background: rgba(11,18,32,.5); backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
body.nav-open .scrim { opacity: 1; pointer-events: auto; }

@media (max-width: 1000px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s cubic-bezier(.2,.9,.3,1); }
  body.nav-open .sidebar { transform: none; box-shadow: var(--shadow-xl); }
  .main { margin-left: 0; }
  .sidebar-toggle { display: inline-flex; }
  .topbar { padding-inline: var(--sp-4); }
  .content { padding: var(--sp-5) var(--sp-4); }
}

/* sayfa başlığı bloğu */
.page-head { margin-bottom: var(--sp-6); display: flex; align-items: flex-start;
             justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; }
.page-head h2 { font-size: 1.5rem; }
.page-head p { color: var(--ink-500); font-size: .9375rem; margin-top: 4px; }

/* ==========================================================================
   Grafik (JS ile çizilir)
   ========================================================================== */
.chart { width: 100%; height: 200px; display: block; }
.chart-bar { fill: var(--brand-500); transition: fill .15s ease; }
.chart-bar:hover { fill: var(--brand-600); }
.chart-bar.amber { fill: var(--amber-500); }
.chart-grid { stroke: var(--ink-100); stroke-width: 1; }
.chart-label { font-size: 10px; fill: var(--ink-400); font-family: var(--font); }

/* ==========================================================================
   Ürün detay sayfası (PDP)
   ========================================================================== */
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--sp-8); align-items: start; }
@media (max-width: 940px) { .pdp { grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); } }

.pdp-gallery { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: var(--sp-4); }
@media (max-width: 560px) {
  .pdp-gallery { grid-template-columns: minmax(0, 1fr); }
  .pdp-thumbs { flex-direction: row !important; overflow-x: auto; order: 2; }
}

.pdp-thumbs { display: flex; flex-direction: column; gap: var(--sp-2); }
.pdp-thumb {
  width: 76px; height: 76px; flex: none;
  border: 2px solid var(--ink-100); border-radius: var(--r-sm);
  background: var(--white); overflow: hidden; cursor: pointer; padding: 0;
  transition: border-color .15s ease;
}
.pdp-thumb img, .pdp-thumb video {
  width: 100%; height: 100%; object-fit: contain; display: block;
}
.pdp-thumb:hover { border-color: var(--ink-300); }
.pdp-thumb.is-active { border-color: var(--brand-500); }

.pdp-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--white);
  border: var(--border); border-radius: var(--r-lg);
  display: grid; place-items: center; overflow: hidden;
}
.pdp-stage img, .pdp-stage video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: contain;
}
.pdp-badge {
  position: absolute; top: var(--sp-4); left: var(--sp-4); z-index: 1;
  padding: 5px 11px; border-radius: var(--r-full);
  background: var(--red-600); color: var(--white);
  font-size: .8125rem; font-weight: 680;
}

.pdp-title { font-size: 1.5rem; line-height: 1.3; letter-spacing: -.02em; }
.pdp-brand {
  font-size: .875rem; font-weight: 620; color: var(--brand-600);
  text-transform: uppercase; letter-spacing: .05em;
}

.pdp-price { display: flex; align-items: baseline; gap: var(--sp-3); flex-wrap: wrap; }
.pdp-price .now {
  font-size: 2rem; font-weight: 720; letter-spacing: -.03em; color: var(--ink-900);
}
.pdp-price .was {
  font-size: 1.0625rem; color: var(--ink-400); text-decoration: line-through;
}
.pdp-price .off {
  font-size: .8125rem; font-weight: 680; color: var(--green-700);
  background: var(--green-100); padding: 2px 8px; border-radius: var(--r-full);
}

.pdp-buybox { position: sticky; top: calc(var(--sp-6)); }

.pdp-section + .pdp-section { margin-top: var(--sp-6); }
.pdp-section h3 { font-size: 1.125rem; margin-bottom: var(--sp-4); }

.spec-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.spec-table tr { border-bottom: 1px solid var(--ink-50); }
.spec-table tr:last-child { border-bottom: 0; }
.spec-table th {
  text-align: left; font-weight: 550; color: var(--ink-500);
  padding: 11px var(--sp-4) 11px 0; width: 42%; vertical-align: top;
}
.spec-table td { padding: 11px 0; color: var(--ink-900); font-weight: 550; }

.trust-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--sp-3);
}
.trust-item {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: .8125rem; color: var(--ink-600);
}
.trust-item svg { flex: none; color: var(--green-700); margin-top: 1px; }

/* ==========================================================================
   Sipariş takip göstergesi
   ========================================================================== */
.tracker { display: flex; gap: 0; }
.tracker-step { flex: 1; min-width: 0; position: relative; text-align: center; }

/* adımlar arası çizgi */
.tracker-step::before {
  content: ""; position: absolute; top: 13px; left: -50%; width: 100%;
  height: 2px; background: var(--ink-100);
}
.tracker-step:first-child::before { display: none; }
.tracker-step.is-done::before,
.tracker-step.is-current::before { background: var(--green-600); }
.tracker-step.is-cancelled::before { background: var(--red-600); }

.tracker-dot {
  position: relative; z-index: 1;
  width: 28px; height: 28px; margin: 0 auto var(--sp-2);
  border-radius: 50%; display: grid; place-items: center;
  background: var(--white); border: 2px solid var(--ink-200);
  color: var(--ink-300);
}
.tracker-step.is-done .tracker-dot {
  background: var(--green-600); border-color: var(--green-600); color: var(--white);
}
.tracker-step.is-current .tracker-dot {
  background: var(--white); border-color: var(--green-600); color: var(--green-700);
  box-shadow: 0 0 0 4px var(--green-100);
}
.tracker-step.is-cancelled .tracker-dot {
  background: var(--red-600); border-color: var(--red-600); color: var(--white);
}
.tracker-label {
  font-size: .8125rem; font-weight: 570; color: var(--ink-500);
  padding-inline: 4px; line-height: 1.35;
}
.tracker-step.is-done .tracker-label,
.tracker-step.is-current .tracker-label { color: var(--ink-900); }
.tracker-step.is-current .tracker-label { font-weight: 650; }
.tracker-at { font-size: .6875rem; color: var(--ink-400); margin-top: 3px; }

@media (max-width: 640px) {
  /* Dar ekranda dikey listeye dön */
  .tracker { flex-direction: column; gap: var(--sp-3); }
  .tracker-step { display: flex; align-items: flex-start; gap: var(--sp-3);
                  text-align: left; }
  .tracker-step::before {
    top: 28px; left: 13px; width: 2px; height: calc(100% + var(--sp-3) - 28px);
  }
  .tracker-dot { margin: 0; }
}

/* olay zaman çizelgesi */
.timeline { position: relative; padding-left: var(--sp-6); }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px;
  width: 2px; background: var(--ink-100);
}
.timeline-item { position: relative; padding-bottom: var(--sp-5); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: calc(-1 * var(--sp-6) + 1px); top: 5px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--ink-300); box-shadow: 0 0 0 3px var(--white);
}
.timeline-item.is-latest::before { background: var(--green-600); }
.timeline-item .t-label { font-weight: 600; font-size: .9375rem; }
.timeline-item .t-at { font-size: .75rem; color: var(--ink-400); }
.timeline-item .t-note { font-size: .875rem; color: var(--ink-500); margin-top: 3px; }

/* tekrarlayan form satırı (görsel / özellik ekleme) */
.repeat-row {
  display: flex; align-items: flex-start; gap: var(--sp-3);
  padding: var(--sp-3);
  border: 1px solid var(--ink-100); border-radius: var(--r-md);
  background: var(--white);
}
.repeat-row + .repeat-row { margin-top: var(--sp-2); }
.repeat-row .grow { flex: 1; min-width: 0; }
.repeat-thumb {
  width: 52px; height: 52px; flex: none;
  border-radius: var(--r-sm); border: 1px solid var(--ink-100);
  background: var(--ink-50); object-fit: contain;
}
.repeat-remove { color: var(--ink-400); padding: 6px; }
.repeat-remove:hover { color: var(--red-600); }

/* QR kutusu */
.qr-box {
  display: grid; place-items: center; padding: var(--sp-4);
  background: var(--white); border: var(--border); border-radius: var(--r-md);
}
/* Kutu esnemez ve görsel oranını korur: sabit yükseklikle esneyen genişlik
   birleşince kod yatayda eziliyor ve okunamaz hale geliyordu. */
.qr-box { flex: none; }
.qr-box svg, .qr-box img {
  width: 168px; max-width: 100%; height: auto; aspect-ratio: 1 / 1;
}

/* OTP girişi */
.otp-input {
  width: 100%; max-width: 280px; margin-inline: auto;
  text-align: center; font-family: var(--mono);
  font-size: 1.75rem; font-weight: 600; letter-spacing: .38em;
  padding: 14px 10px 14px 20px;
}

/* ==========================================================================
   Modal — window.confirm/alert yerine
   ========================================================================== */
body.is-locked { overflow: hidden; }

.modal-scrim {
  position: fixed; inset: 0; z-index: 120;
  display: grid; place-items: center;
  padding: var(--sp-4);
  background: rgba(11, 18, 32, .48);
  backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .18s ease;
}
.modal-scrim.is-open { opacity: 1; }

.modal {
  width: 100%; max-width: 460px;
  max-height: calc(100vh - var(--sp-8));
  display: flex; flex-direction: column;
  background: var(--white); color: var(--ink-800);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
  transform: translateY(8px) scale(.98);
  transition: transform .18s ease;
}
.modal-wide { max-width: 680px; }
.is-open .modal { transform: none; }

.modal-head {
  display: flex; align-items: flex-start; gap: var(--sp-3);
  padding: var(--sp-5) var(--sp-5) var(--sp-3);
}
.modal-head h3 { flex: 1; font-size: 1.0625rem; font-weight: 640; color: var(--ink-900); }
.modal-x {
  border: 0; background: transparent; cursor: pointer;
  font-size: 1.5rem; line-height: 1; color: var(--ink-400);
  width: 30px; height: 30px; border-radius: var(--r-sm);
}
.modal-x:hover { background: var(--ink-50); color: var(--ink-700); }

.modal-body { padding: 0 var(--sp-5) var(--sp-2); overflow-y: auto; }
.modal-body p { line-height: 1.6; }

.modal-foot {
  display: flex; justify-content: flex-end; gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-5) var(--sp-5);
}
@media (max-width: 520px) {
  .modal-scrim { align-items: flex-end; padding: 0; }
  .modal { max-width: none; border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .modal-foot { flex-direction: column-reverse; }
  .modal-foot .btn { width: 100%; justify-content: center; }
}

/* ==========================================================================
   Dosya yükleyici
   ========================================================================== */
.upload-drop {
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-2);
  padding: var(--sp-8) var(--sp-4);
  border: 1.5px dashed var(--ink-200);
  border-radius: var(--r-md);
  background: var(--ink-50);
  text-align: center; cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.upload-drop:hover, .upload-drop.is-over {
  border-color: var(--brand-500); background: var(--brand-50);
}
.upload-drop:focus-visible { outline: none; box-shadow: var(--ring); }
.upload-drop strong { font-weight: 600; color: var(--ink-800); }
.upload-drop span { font-size: .8125rem; color: var(--ink-500); }
.is-full .upload-drop {
  opacity: .55; cursor: not-allowed; border-style: solid;
}
.is-full .upload-drop:hover { border-color: var(--ink-200); background: var(--ink-50); }

.upload-list { display: grid; gap: var(--sp-2); margin-top: var(--sp-3); }
.upload-list:empty { margin-top: 0; }

.upload-item {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-2);
  border: var(--border); border-radius: var(--r-md);
  background: var(--white);
}
.upload-item.is-error { border-color: var(--red-100); background: var(--red-50); }
.upload-item.is-done .upload-bar { display: none; }

.upload-thumb {
  flex: none; width: 48px; height: 48px;
  border-radius: var(--r-sm); overflow: hidden;
  background: var(--ink-50);
  display: grid; place-items: center;
  font-size: .6875rem; font-weight: 700; color: var(--ink-500);
}
.upload-thumb img, .upload-thumb video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.upload-thumb.is-doc { background: var(--red-50); color: var(--red-700); }

.upload-meta { flex: 1; min-width: 0; }
.upload-name {
  font-size: .8125rem; font-weight: 550; color: var(--ink-800);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.upload-state { font-size: .75rem; color: var(--ink-500); margin-top: 2px; }
.is-error .upload-state { color: var(--red-700); }
.is-done .upload-state { color: var(--green-700); }

.upload-bar {
  height: 3px; margin-top: 6px; border-radius: var(--r-full);
  background: var(--ink-100); overflow: hidden;
}
.upload-bar span {
  display: block; height: 100%; width: 0;
  background: var(--brand-500); transition: width .25s ease;
}
.is-error .upload-bar span { background: var(--red-600); }

.upload-check {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: var(--sp-2);
  font-size: .75rem; color: var(--ink-600); cursor: pointer;
}
.upload-x {
  flex: none; border: 0; background: transparent; cursor: pointer;
  font-size: 1.25rem; line-height: 1; color: var(--ink-400);
  width: 28px; height: 28px; border-radius: var(--r-sm);
}
.upload-x:hover { background: var(--ink-50); color: var(--red-600); }

/* Yüklenmiş dosya kartları (kampanya medya yönetimi) */
.media-grid {
  display: grid; gap: var(--sp-3);
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.media-card {
  border: var(--border); border-radius: var(--r-md);
  background: var(--white); overflow: hidden;
  display: flex; flex-direction: column;
}
.media-card figure {
  aspect-ratio: 4 / 3; background: var(--ink-50);
  display: grid; place-items: center; overflow: hidden;
}
.media-card figure img, .media-card figure video {
  width: 100%; height: 100%; object-fit: contain;
}
.media-card .media-body { padding: var(--sp-2) var(--sp-3); flex: 1; }
.media-card .media-foot {
  display: flex; align-items: center; gap: var(--sp-1);
  padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-3);
  border-top: var(--border);
}
.media-doc {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3);
  border: var(--border); border-radius: var(--r-md); background: var(--white);
}
.media-doc-icon {
  flex: none; width: 40px; height: 40px; border-radius: var(--r-sm);
  background: var(--red-50); color: var(--red-700);
  display: grid; place-items: center; font-size: .6875rem; font-weight: 700;
}

/* ==========================================================================
   Lead formu — ilan sayfasına yakın düzen
   Ana kolon: büyük görsel → açıklama → SSS.  Yan kolon: yapışkan form.
   ========================================================================== */
.leadform {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: var(--sp-6);
  align-items: start;
}
.leadform-aside { position: sticky; top: var(--sp-6); }

/* Görsel kırpılmaz: kampanyanın yüklediği kare ne ise tamamı görünür.
   Oran tutmadığında boşluğu koyu zemin doldurur — kırpmak, ilanın önemli
   kısmını (ürün, plaka, oda) kadraj dışında bırakabiliyordu. */
.leadform-stage {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  background: white;
  overflow: hidden;
  display: grid; place-items: center;
}
  /* Izgara `place-items: center` uyguluyor; görsel yine de alanı
     doldurmalı ki `object-fit` kırpma yerine sığdırma yapabilsin. */
/* Görsel ızgara akışından çıkarılır. Sebep: satır yüksekliği `auto` olduğu
   için görselin kendi yüksekliğine göre büyüyor, `aspect-ratio` ile verilen
   sahne yüksekliğini aşıyor ve `height: 100%` bu taşan satıra çözülüyordu —
   sonuçta görsel kırpılıyordu. Mutlak konumda `inset: 0`, sahnenin kesin
   kutusuna oturur; sığdırmayı `object-fit: contain` yapar. Yer tutucu ikon
   ızgarada kaldığı için ortalanmaya devam eder. */
.leadform-stage img, .leadform-stage video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: contain;
}

.leadform-thumbs {
  display: grid; gap: var(--sp-2); margin-top: var(--sp-2);
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
}
.leadform-thumb {
  aspect-ratio: 4 / 3; padding: 0; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; border-radius: var(--r-sm);
  background: var(--ink-50);
}
.leadform-thumb img, .leadform-thumb video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.leadform-thumb.is-active { border-color: var(--brand-500); }
.leadform-thumb:focus-visible { outline: none; box-shadow: var(--ring); }

/* Metin öncelikli şablonlarda başlık bloğu galerinin üstündedir. */
.leadform-lede { margin-bottom: var(--sp-4); }

/* Görselsiz kampanyada tek kolona düşer — form ortalanır. */
.leadform-solo { max-width: 480px; margin: 0 auto; }

@media (max-width: 940px) {
  .leadform { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
  /* Mobilde önce görsel, sonra form, sonra açıklama ve SSS. */
  .leadform-aside { position: static; order: 3; }
  .leadform-main { display: contents; }
  .leadform-lede { order: 1; margin-bottom: 0; }
  .leadform-gallery { order: 2; }
  .leadform-copy { order: 4; }
  .leadform-stage { aspect-ratio: 4 / 3; max-height: 46vh; }
  .leadform-thumbs { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
}

/* Oynat rozeti: küçük seçicide videoyu görselden ayırır. */
.leadform-thumb, .listing-thumb, .pdp-thumb { position: relative; }
.thumb-play {
  position: absolute; inset: 0; margin: auto;
  width: 24px; height: 24px; border-radius: var(--r-full);
  display: grid; place-items: center;
  background: rgba(7, 11, 20, .62); color: var(--white);
  pointer-events: none;
}

/* ---------------------------------------------------------------- SSS */
.faq { display: grid; gap: var(--sp-2); }
.faq-item {
  border: var(--border); border-radius: var(--r-md);
  background: var(--white); overflow: hidden;
}
.faq-item[open] { border-color: var(--ink-200); }
.faq-item summary {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-4);
  font-weight: 600; font-size: .9375rem; color: var(--ink-800);
  cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; margin-left: auto;
  width: 9px; height: 9px;
  border-right: 2px solid var(--ink-400);
  border-bottom: 2px solid var(--ink-400);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .18s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq-item summary:hover { background: var(--ink-50); }
.faq-item summary:focus-visible { outline: none; box-shadow: inset var(--ring); }
.faq-answer {
  padding: 0 var(--sp-4) var(--sp-4);
  font-size: .875rem; line-height: 1.75; color: var(--ink-500);
  white-space: pre-line;
}

/* ==========================================================================
   Durum seçici (CRM tarzı)
   ========================================================================== */
.status-control {
  display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap;
}
.status-picker {
  display: flex; align-items: center; gap: var(--sp-2);
  flex: 1 1 260px; min-width: 0;
  padding-left: var(--sp-3);
  border: var(--border); border-radius: var(--r-md);
  background: var(--white);
}
.status-picker:focus-within { box-shadow: var(--ring); border-color: var(--brand-400); }
.status-picker .select {
  flex: 1; min-width: 0;
  border: 0; background: transparent; box-shadow: none;
  padding-left: 0; font-weight: 550;
}
.status-picker .select:focus { box-shadow: none; }

.status-dot {
  flex: none; width: 9px; height: 9px; border-radius: var(--r-full);
  background: var(--ink-300);
}
.status-dot.is-progress { background: var(--blue-600); }
.status-dot.is-won      { background: var(--green-600); }
.status-dot.is-lost     { background: var(--red-600); }

.status-control .btn { flex: none; }
@media (max-width: 560px) {
  .status-control { flex-direction: column; align-items: stretch; }
  .status-control .btn { width: 100%; justify-content: center; }
}

/* ==========================================================================
   İlan sayfası (vasıta / emlak) — fotoğraf merkezde, form sağda
   ========================================================================== */
.listing { display: grid; gap: var(--sp-6); }

.listing-head { display: flex; align-items: flex-start; gap: var(--sp-4); flex-wrap: wrap; }
.listing-title { font-size: 1.5rem; line-height: 1.25; letter-spacing: -.02em; }
.listing-meta {
  display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap;
  margin-top: var(--sp-2); font-size: .875rem; color: var(--ink-500);
}
.listing-price {
  margin-left: auto; text-align: right;
  font-size: 1.75rem; font-weight: 700; letter-spacing: -.02em;
  color: var(--ink-900); white-space: nowrap;
}
.listing-price small {
  display: block; font-size: .8125rem; font-weight: 500; color: var(--ink-500);
}

/* Fotoğraflar büyük ve merkezde; form sağ kolonda sabit durur. */
.listing-body {
  display: grid; grid-template-columns: minmax(0, 1fr) 360px;
  gap: var(--sp-6); align-items: start;
}
.listing-aside { position: sticky; top: var(--sp-6); }

.listing-stage {
  position: relative;
  aspect-ratio: 3 / 2; border-radius: var(--r-lg); overflow: hidden;
  background: white; display: grid; place-items: center;
}
.listing-stage img, .listing-stage video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: contain;
}

.listing-thumbs {
  display: grid; gap: var(--sp-2); margin-top: var(--sp-2);
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
}
.listing-thumb {
  aspect-ratio: 4 / 3; padding: 0; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; border-radius: var(--r-sm);
  background: var(--ink-50);
}
.listing-thumb img, .listing-thumb video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.listing-thumb.is-active { border-color: var(--brand-500); }
.listing-thumb:focus-visible { outline: none; box-shadow: var(--ring); }

/* Öne çıkan özellikler — galerinin hemen altında şerit */
.listing-highlights {
  display: grid; gap: 1px; margin-top: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  background: var(--ink-100);
  border: var(--border); border-radius: var(--r-md); overflow: hidden;
}
.listing-highlight { background: var(--white); padding: var(--sp-3) var(--sp-4); }
.listing-highlight dt {
  font-size: .6875rem; font-weight: 600; color: var(--ink-500);
  text-transform: uppercase; letter-spacing: .05em;
}
.listing-highlight dd { font-size: 1rem; font-weight: 640; color: var(--ink-900); margin-top: 3px; }

/* Tam özellik tablosu — iki kolon, ilan sitelerindeki gibi */
.spec-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--sp-8);
}
.spec-list > div {
  display: flex; justify-content: space-between; gap: var(--sp-4);
  padding: 10px 0; border-bottom: 1px dashed var(--ink-100);
}
.spec-list dt { color: var(--ink-500); font-size: .875rem; }
.spec-list dd { font-weight: 600; font-size: .875rem; text-align: right; }

.listing-eids {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--r-full);
  background: var(--green-50); color: var(--green-700);
  font-size: .75rem; font-weight: 600;
}

@media (max-width: 940px) {
  .listing-body { grid-template-columns: minmax(0, 1fr); }
  .listing-aside { position: static; }
  .listing-price { margin-left: 0; text-align: left; width: 100%; }
  .spec-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .listing-stage { aspect-ratio: 4 / 3; border-radius: var(--r-md); }
  .listing-thumbs { grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); }
  .listing-title { font-size: 1.25rem; }
  .listing-price { font-size: 1.5rem; }
}

/* ==========================================================================
   Yardımcı sınıflar
   ========================================================================== */
.mt-0{margin-top:0} .mt-1{margin-top:var(--sp-1)} .mt-2{margin-top:var(--sp-2)}
.mt-3{margin-top:var(--sp-3)} .mt-4{margin-top:var(--sp-4)} .mt-5{margin-top:var(--sp-5)}
.mt-6{margin-top:var(--sp-6)} .mt-8{margin-top:var(--sp-8)} .mt-12{margin-top:var(--sp-12)}
.mb-0{margin-bottom:0} .mb-2{margin-bottom:var(--sp-2)} .mb-3{margin-bottom:var(--sp-3)}
.mb-4{margin-bottom:var(--sp-4)} .mb-5{margin-bottom:var(--sp-5)} .mb-6{margin-bottom:var(--sp-6)}
.mb-8{margin-bottom:var(--sp-8)}

.text-xs{font-size:.75rem} .text-sm{font-size:.8125rem} .text-md{font-size:.875rem}
.text-lg{font-size:1.0625rem} .text-xl{font-size:1.25rem}
.fw-500{font-weight:520} .fw-600{font-weight:600} .fw-700{font-weight:680}
.muted{color:var(--ink-400)} .dim{color:var(--ink-500)}
/* Küçük metinde --green-600 beyaz üzerinde 3.77:1 kalıyordu; koyu ton 6.4:1. */
.text-brand{color:var(--brand-600)} .text-green{color:var(--green-700)}
.text-red{color:var(--red-700)} .text-amber{color:var(--amber-600)}
.text-ink{color:var(--ink-900)}
.center{text-align:center} .right{text-align:right}
.nums{font-variant-numeric:tabular-nums}
.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mono{font-family:var(--mono)}
.hide{display:none}
.full{width:100%}
@media (max-width:700px){ .hide-sm{display:none} }
