/* ==========================================================================
   Yaklastir - Tasarim sistemi
   Siyah / beyaz / acik gri. Golge ve gradient minimumda.
   ========================================================================== */

:root {
  /* Yuzeyler */
  --bg:            #ffffff;
  --surface:       #ffffff;
  --surface-2:     #fafafa;
  --surface-3:     #f4f4f5;
  --surface-inset: #f7f7f8;

  /* Metin */
  --text:      #0a0a0a;
  --text-2:    #52525b;
  --text-3:    #8b8b94;
  --text-inv:  #ffffff;

  /* Cizgiler */
  --border:        #e7e7ea;
  --border-strong: #d3d3d8;
  --border-dark:   #0a0a0a;

  /* Vurgu */
  --accent:       #0a0a0a;
  --accent-hover: #262629;

  /* Durum tonlari */
  --green:   #0f8a45;  --green-bg:  #eaf6ee;
  --amber:   #a86a00;  --amber-bg:  #fdf3e3;
  --red:     #c22c2c;  --red-bg:    #fdeceb;
  --blue:    #1b62d4;  --blue-bg:   #eaf1fd;
  --violet:  #6d3ecf;  --violet-bg: #f1ecfd;
  --gray:    #61616b;  --gray-bg:   #f2f2f4;

  /* Marka renkleri (yalnizca ilgili urunlerde) */
  --google:    #34A853;
  --instagram: #E1306C;
  --whatsapp:  #25D366;

  /* Yaricap */
  --r-xs:   6px;
  --r-sm:   10px;
  --r:      12px;
  --r-lg:   16px;
  --r-xl:   20px;
  --r-full: 999px;

  /* Golge (cok az) */
  --shadow-sm: 0 1px 2px rgba(10,10,10,.04);
  --shadow:    0 4px 16px rgba(10,10,10,.06);
  --shadow-lg: 0 12px 40px rgba(10,10,10,.10);

  /* Olcu */
  --nav-h:     68px;
  --container: 1200px;

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

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01';
}

h1, h2, h3, h4, h5 { margin: 0; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
p  { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, video { display: block; max-width: 100%; }
svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }

::selection { background: var(--text); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* İkonlar metin akışında satır içi durur; flex/grid kapsayıcıda blok gibi
   davranırlar (blokifikasyon), böylece her iki bağlamda da doğru hizalanır. */
.icon {
  display: inline-block;
  vertical-align: -0.15em;
  flex: none;
}

/* --------------------------------------------------------------------------
   Yerlesim
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.container--narrow { max-width: 800px; }
.container--wide   { max-width: 1400px; }

.section    { padding-block: 96px; }
.section--sm{ padding-block: 64px; }
.section--tight { padding-block: 48px; }
.section--alt { background: var(--surface-2); }
.section--line { border-top: 1px solid var(--border); }

.stack   { display: flex; flex-direction: column; }
.row     { display: flex; align-items: center; }
.row--between { justify-content: space-between; }
.row--wrap    { flex-wrap: wrap; }
.gap-4 { gap: 4px; }   .gap-6 { gap: 6px; }   .gap-8  { gap: 8px; }
.gap-10{ gap: 10px; }  .gap-12{ gap: 12px; }  .gap-14 { gap: 14px; }
.gap-16{ gap: 16px; }  .gap-20{ gap: 20px; }  .gap-24 { gap: 24px; }
.gap-32{ gap: 32px; }

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.mt-4{margin-top:4px}   .mt-8{margin-top:8px}   .mt-12{margin-top:12px}
.mt-16{margin-top:16px} .mt-20{margin-top:20px} .mt-24{margin-top:24px}
.mt-32{margin-top:32px} .mt-40{margin-top:40px} .mt-48{margin-top:48px}
.mb-4{margin-bottom:4px}   .mb-6{margin-bottom:6px}   .mb-8{margin-bottom:8px}
.mb-12{margin-bottom:12px} .mb-16{margin-bottom:16px} .mb-20{margin-bottom:20px}
.mb-24{margin-bottom:24px} .mb-32{margin-bottom:32px}
.ml-auto { margin-left: auto; }
.w-full  { width: 100%; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }

/* --------------------------------------------------------------------------
   Tipografi
   -------------------------------------------------------------------------- */
.display {
  font-size: clamp(38px, 5.6vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.048em;
  font-weight: 620;
  text-wrap: balance;
}
.h1 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.035em; line-height: 1.1; }
.h2 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.03em;  line-height: 1.15; }
.h3 { font-size: 20px; letter-spacing: -0.02em; }
.h4 { font-size: 16px; letter-spacing: -0.01em; }

.lead      { font-size: 18.5px; line-height: 1.62; color: var(--text-2); max-width: 56ch; }
.body      { font-size: 15px; color: var(--text-2); }
.small     { font-size: 13px; }
.tiny      { font-size: 12px; }
.muted     { color: var(--text-2); }
.muted-2   { color: var(--text-3); }
.strong    { font-weight: 600; }
.mono      { font-family: var(--mono); font-size: .92em; letter-spacing: -0.01em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11.5px; font-weight: 550; letter-spacing: .11em;
  text-transform: uppercase; color: var(--text-3);
}
/* Başlığı taşıyan ince kural — rozet yerine editoryal işaret */
.eyebrow--rule::after {
  content: ''; display: block; width: 40px; height: 1px;
  background: var(--border-strong);
}

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 14px; }

/* --------------------------------------------------------------------------
   Butonlar
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font-size: 14.5px; font-weight: 550; letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background .16s ease, border-color .16s ease, color .16s ease, opacity .16s ease;
}
.btn--primary { background: var(--accent); color: var(--text-inv); }
.btn--primary:hover { background: var(--accent-hover); }

.btn--secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn--secondary:hover { border-color: var(--text); background: var(--surface-2); }

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

.btn--danger { background: var(--red); color: #fff; }
.btn--danger:hover { opacity: .88; }

.btn--danger-soft { background: var(--red-bg); color: var(--red); }
.btn--danger-soft:hover { background: #fbdedc; }

.btn--sm  { height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: var(--r-xs); }
.btn--xs  { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: var(--r-xs); gap: 5px; }
.btn--lg  { height: 52px; padding: 0 28px; font-size: 16px; border-radius: var(--r); }
.btn--block { width: 100%; }
.btn--icon { width: 36px; padding: 0; }
.btn:disabled, .btn.is-disabled { opacity: .45; pointer-events: none; }
.btn.is-loading { opacity: .6; pointer-events: none; }

/* --------------------------------------------------------------------------
   Rozetler
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px;
  border-radius: var(--r-full);
  font-size: 12px; font-weight: 550; line-height: 1.5;
  white-space: nowrap;
}
.badge--green  { background: var(--green-bg);  color: var(--green); }
.badge--amber  { background: var(--amber-bg);  color: var(--amber); }
.badge--red    { background: var(--red-bg);    color: var(--red); }
.badge--blue   { background: var(--blue-bg);   color: var(--blue); }
.badge--violet { background: var(--violet-bg); color: var(--violet); }
.badge--gray   { background: var(--gray-bg);   color: var(--gray); }
.badge--dark   { background: var(--text); color: #fff; }
.badge--outline{ background: transparent; border: 1px solid var(--border-strong); color: var(--text-2); }

.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.dot--green { background: var(--green); }
.dot--amber { background: var(--amber); }
.dot--red   { background: var(--red); }
.dot--gray  { background: var(--text-3); }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: var(--r-full);
  background: var(--surface); font-size: 13px; color: var(--text-2);
  transition: border-color .15s, color .15s, background .15s;
}
.pill:hover { border-color: var(--border-strong); color: var(--text); }
.pill.is-active { background: var(--text); border-color: var(--text); color: #fff; }

/* --------------------------------------------------------------------------
   Kartlar
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.card--pad   { padding: 24px; }
.card--pad-sm{ padding: 18px; }
.card--flat  { border-radius: var(--r); }
.card--hover { transition: border-color .18s ease, transform .18s ease; }
.card--hover:hover { border-color: var(--border-strong); }

.card__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}
.card__head h3 { font-size: 15.5px; font-weight: 600; }
.card__body { padding: 24px; }
.card__body--flush { padding: 0; }
.card__foot {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}

/* --------------------------------------------------------------------------
   Formlar
   -------------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 7px; }

/* Ardışık form bloklarında tek tip dikey boşluk.
   Yalnızca .field + .field yazmak, araya .form-grid girdiğinde boşluğu
   düşürüyordu; aşağıdaki liste tüm kombinasyonları kapsar. */
.field + .field,
.field + .form-grid,
.field + .notice,
.field + .check,
.form-grid + .field,
.form-grid + .form-grid,
.form-grid + .notice,
.check + .field,
.notice + .field,
.notice + .form-grid { margin-top: 18px; }

/* <label> varsayılan olarak inline'dır; blok yapılmazsa üzerindeki
   mb-*/mt-* boşlukları hiç uygulanmaz. */
.label { display: block; font-size: 13.5px; font-weight: 550; color: var(--text); }
.label .req { color: var(--red); }
.hint  { font-size: 12.5px; color: var(--text-3); line-height: 1.5; }
.error-text { font-size: 12.5px; color: var(--red); display: flex; align-items: center; gap: 5px; }

.input, .select, .textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  font-size: 14.5px;
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
  appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:hover, .select:hover, .textarea:hover { border-color: #b9b9c0; }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(10,10,10,.07);
}
.input:disabled, .textarea:disabled, .select:disabled {
  background: var(--surface-3); color: var(--text-3); cursor: not-allowed;
}
.input.is-invalid, .textarea.is-invalid { border-color: var(--red); }
.textarea { min-height: 110px; resize: vertical; line-height: 1.55; }

.select {
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2352525b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 9 7 7 7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.input-group { display: flex; align-items: stretch; }
.input-group .input { border-radius: var(--r-sm) 0 0 var(--r-sm); border-right: 0; }
.input-group .btn   { border-radius: 0 var(--r-sm) var(--r-sm) 0; }

.input-prefix {
  display: flex; align-items: center;
  padding: 0 12px;
  background: var(--surface-3);
  border: 1px solid var(--border-strong); border-right: 0;
  border-radius: var(--r-sm) 0 0 var(--r-sm);
  font-size: 13.5px; color: var(--text-3);
}
/* .input-group .input uzerindeki "border-right: 0" yalnizca sagda dugme
   oldugunda dogrudur; onekli alanda sag kenarlik geri verilir. */
.input-prefix + .input {
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  border-right: 1px solid var(--border-strong);
}
.input-group:focus-within .input-prefix { border-color: var(--text); }
.input-group.is-invalid .input-prefix,
.input-group.is-invalid .input { border-color: var(--red); }
.input-prefix--tel { font-variant-numeric: tabular-nums; color: var(--text-2); font-weight: 500; }

.check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; cursor: pointer; user-select: none;
}
.check input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--text); cursor: pointer; flex: none; }

/* Secilebilir kart (odeme yontemi, baglanti turu) */
.choice {
  position: relative;
  display: flex; align-items: flex-start; gap: 12px;
  padding: 15px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r);
  background: var(--surface);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.choice:hover { border-color: #b9b9c0; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice__mark {
  width: 18px; height: 18px; margin-top: 2px; flex: none;
  border: 1.5px solid var(--border-strong); border-radius: 50%;
  transition: border-color .15s, box-shadow .15s;
}
.choice input:checked ~ .choice__mark {
  border-color: var(--text);
  box-shadow: inset 0 0 0 4px var(--text);
}
.choice:has(input:checked) { border-color: var(--text); background: var(--surface-2); }
.choice__title { display: block; font-size: 14.5px; font-weight: 550; }
.choice__desc  { display: block; font-size: 13px; color: var(--text-2); margin-top: 3px; line-height: 1.5; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .field + .field { margin-top: 0; }
.form-grid--full { grid-column: 1 / -1; }

/* --------------------------------------------------------------------------
   Tablolar
   -------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.table { font-size: 14px; }
.table th {
  padding: 11px 16px;
  text-align: left;
  font-size: 12px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase;
  color: var(--text-3);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table th:first-child, .table td:first-child { padding-left: 24px; }
.table th:last-child,  .table td:last-child  { padding-right: 24px; }
.table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  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(--surface-2); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table__actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }

/* Hücre metni tek satırda kalır; sığmazsa kısalır. Sarmalama satır
   yüksekliklerini eşitsizleştiriyordu. */
.cell-primary,
.cell-sub {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.cell-primary { font-weight: 550; color: var(--text); }
.cell-sub { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }

/* --------------------------------------------------------------------------
   Bos durum
   -------------------------------------------------------------------------- */
.empty {
  padding: 64px 24px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.empty__icon {
  width: 52px; height: 52px; margin-bottom: 14px;
  display: grid; place-items: center;
  border-radius: var(--r);
  background: var(--surface-3);
  color: var(--text-3);
}
.empty h3 { font-size: 16px; }
.empty p  { font-size: 14px; color: var(--text-2); max-width: 380px; }
.empty .btn { margin-top: 16px; }

/* --------------------------------------------------------------------------
   Uyari kutulari
   -------------------------------------------------------------------------- */
.notice {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 14px 16px;
  border-radius: var(--r);
  font-size: 13.5px; line-height: 1.55;
  border: 1px solid transparent;
}
.notice__title { font-weight: 600; display: block; margin-bottom: 2px; }
.notice--info   { background: var(--blue-bg);  color: #17408c; border-color: #d6e4fb; }
.notice--success{ background: var(--green-bg); color: #0b6634; border-color: #cfe9d9; }
.notice--warn   { background: var(--amber-bg); color: #7d4e00; border-color: #f5e2c2; }
.notice--danger { background: var(--red-bg);   color: #941f1f; border-color: #f7d4d1; }
.notice--neutral{ background: var(--surface-2);color: var(--text-2); border-color: var(--border); }
.notice .icon { margin-top: 1px; }

/* Hizalama:
   - Başlıklı (çok satırlı) uyarıda ikon İLK SATIRA hizalanır  -> flex-start
   - Tek satırlık uyarıda ikon, metin ve düğme birlikte ortalanır -> center
   Düğme her iki durumda da dikeyde ortalanır; aksi halde 30px'lik
   düğme 21px'lik metne göre kayık duruyordu. */
.notice:not(:has(.notice__title)) { align-items: center; }
.notice:not(:has(.notice__title)) .icon { margin-top: 0; }

.notice > .btn,
.notice > form,
.notice > form > .btn { align-self: center; }

/* --------------------------------------------------------------------------
   Toast
   -------------------------------------------------------------------------- */
.toast-stack {
  position: fixed; z-index: 200;
  right: 20px; bottom: 20px;
  display: flex; flex-direction: column; gap: 10px;
  max-width: min(400px, calc(100vw - 40px));
}
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 15px;
  background: var(--text); color: #fff;
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  font-size: 14px; line-height: 1.45;
  animation: toast-in .28s cubic-bezier(.2,.9,.3,1);
}
.toast--success .icon { color: #6ee7a3; }
.toast--error   .icon { color: #ff9d95; }
.toast--info    .icon { color: #a9c6ff; }
.toast__close { margin-left: auto; color: rgba(255,255,255,.5); display: flex; }
.toast__close:hover { color: #fff; }
.toast.is-leaving { animation: toast-out .2s ease forwards; }

@keyframes toast-in  { from { opacity: 0; transform: translateY(12px) scale(.97); } }
@keyframes toast-out { to   { opacity: 0; transform: translateY(6px) scale(.98); } }

/* --------------------------------------------------------------------------
   Modal
   -------------------------------------------------------------------------- */
.modal {
  position: fixed; inset: 0; z-index: 300;
  display: none; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(10,10,10,.45);
  backdrop-filter: blur(3px);
}
.modal.is-open { display: flex; animation: fade-in .18s ease; }
.modal__panel {
  width: 100%; max-width: 460px;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  animation: modal-in .22s cubic-bezier(.2,.9,.3,1);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
.modal__panel--wide { max-width: 640px; }
.modal__head { padding: 22px 24px 0; }
.modal__head h3 { font-size: 17px; }
.modal__head p  { margin-top: 7px; font-size: 14px; color: var(--text-2); line-height: 1.55; }
.modal__body { padding: 20px 24px; }
.modal__foot {
  display: flex; gap: 10px; justify-content: flex-end;
  padding: 16px 24px 22px;
}
@keyframes fade-in  { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }

/* --------------------------------------------------------------------------
   Sayfalama
   -------------------------------------------------------------------------- */
.pagination {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.pagination__info { font-size: 13px; color: var(--text-3); }
.pagination__pages { display: flex; align-items: center; gap: 4px; }
.pagination__btn {
  min-width: 32px; height: 32px; padding: 0 8px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-xs);
  font-size: 13.5px; color: var(--text-2);
  transition: background .13s, color .13s;
}
.pagination__btn:hover { background: var(--surface-3); color: var(--text); }
.pagination__btn.is-current { background: var(--text); color: #fff; }
.pagination__btn.is-disabled { opacity: .32; pointer-events: none; }
.pagination__gap { color: var(--text-3); padding: 0 2px; }

/* --------------------------------------------------------------------------
   NFC gorseli / marka noktalari
   -------------------------------------------------------------------------- */
.brand-dot {
  width: 32px; height: 32px; flex: none;
  display: grid; place-items: center;
  border-radius: var(--r-xs);
  background: var(--surface-3);
  color: var(--text-2);
}
.brand-dot--google    { background: rgba(52,168,83,.10);  color: var(--google); }
.brand-dot--instagram { background: rgba(225,48,108,.10); color: var(--instagram); }
.brand-dot--whatsapp  { background: rgba(37,211,102,.12); color: #128C40; }
.brand-dot--website,
.brand-dot--custom    { background: var(--surface-3); color: var(--text-2); }
.brand-dot--lg { width: 40px; height: 40px; border-radius: var(--r-sm); }

.uid {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: -0.02em;
  padding: 3px 8px;
  background: var(--surface-3);
  border-radius: var(--r-xs);
  color: var(--text-2);
}
.copy-btn { display: inline-flex; color: var(--text-3); transition: color .13s; }
.copy-btn:hover { color: var(--text); }

.avatar {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--text); color: #fff;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0;
}
.avatar--lg { width: 48px; height: 48px; font-size: 16px; }
.avatar--soft { background: var(--surface-3); color: var(--text-2); }

/* --------------------------------------------------------------------------
   Grafik (kendi yazdigimiz SVG cizer)
   -------------------------------------------------------------------------- */
.chart { width: 100%; display: block; overflow: visible; }
.chart-wrap { position: relative; }
.chart__tip {
  position: absolute; z-index: 5;
  padding: 6px 10px;
  background: var(--text); color: #fff;
  border-radius: var(--r-xs);
  font-size: 12px; white-space: nowrap;
  pointer-events: none; opacity: 0;
  transform: translate(-50%, -130%);
  transition: opacity .12s;
}
.chart__tip.is-visible { opacity: 1; }
.chart__empty {
  height: 180px; display: grid; place-items: center;
  color: var(--text-3); font-size: 13.5px;
}

/* --------------------------------------------------------------------------
   Özellik listesi  (etiket solda, değer sağda)
   Hem ürün sayfası hem panel kartları kullanır — bu yüzden base.css'te.
   -------------------------------------------------------------------------- */
.spec-list { border-top: 1px solid var(--border); margin-top: 28px; }
.spec-list div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.spec-list div:last-child { border-bottom: 0; }
.spec-list dt { color: var(--text-3); flex: none; }
.spec-list dd {
  margin: 0; font-weight: 500; text-align: right;
  min-width: 0; overflow-wrap: anywhere;
}
/* Kart içinde üstteki çizgi ve boşluk istenmez */
.spec-list--flush { margin-top: 0; border-top: 0; }

/* --------------------------------------------------------------------------
   Onay listesi  (paket içeriği, kutu içeriği)
   -------------------------------------------------------------------------- */
.pkg__items { margin: 22px 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pkg__items li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.pkg__items .icon { color: var(--green); }
.pkg__items em { font-style: normal; color: var(--text-3); font-size: 13px; }

/* --------------------------------------------------------------------------
   Görsel küçük resmi  (ürün galerisi, admin ürün düzenleme)
   -------------------------------------------------------------------------- */
.pdp__thumb {
  width: 72px; height: 72px;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--surface-2); overflow: hidden; padding: 0;
  transition: border-color .15s;
}
.pdp__thumb.is-active, .pdp__thumb:hover { border-color: var(--text); }
.pdp__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------------------------------
   Tutar özeti  (sepet, ödeme, sipariş detayı)
   -------------------------------------------------------------------------- */
.summary__row { display: flex; justify-content: space-between; gap: 16px; font-size: 14.5px; padding: 7px 0; }
.summary__row span:last-child { font-variant-numeric: tabular-nums; }
.summary__row--total {
  border-top: 1px solid var(--border); margin-top: 10px; padding-top: 16px;
  font-size: 17px; font-weight: 620; letter-spacing: -0.02em;
}
.summary__row--discount { color: var(--green); }

.ship-bar { height: 5px; border-radius: 3px; background: var(--surface-3); overflow: hidden; margin-top: 8px; }
.ship-bar i { display: block; height: 100%; background: var(--text); border-radius: 3px; transition: width .3s; }

/* ==========================================================================
   PAYLASILAN BILESENLER  /  Paylaşılan bileşenler
   Hem public site hem paneller kullanır. Bunlar yalnızca panel.css'te
   tanımlıyken public sayfalarda .split grid oluşmuyor ve kartlar üst üste
   biniyordu; .mini-list__* satırları da bozuk görünüyordu.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Panel yerlesimleri
   -------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.split--wide { grid-template-columns: 1fr 400px; }
.split--even { grid-template-columns: 1fr 1fr; }
.split--rev  { grid-template-columns: 340px 1fr; }

/* Kompakt metrik satiri (NFC detay: bugun / 7 / 30 / toplam) */
.metrics {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border); border-radius: var(--r);
  background: var(--surface); overflow: hidden;
}
.metrics > div { padding: 16px 18px; border-right: 1px solid var(--border); }
.metrics > div:last-child { border-right: 0; }
.metrics span { display: block; font-size: 12.5px; color: var(--text-3); }
.metrics strong {
  display: block; margin-top: 5px;
  font-size: 23px; font-weight: 620; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

/* Zincir gosterimi: fiziksel NFC -> UID -> hedef */
.chain {
  display: flex; align-items: stretch; gap: 0;
  border: 1px solid var(--border); border-radius: var(--r);
  overflow: hidden; background: var(--surface);
}
.chain__step {
  flex: 1; min-width: 0;
  padding: 16px 18px;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 6px;
}
.chain__step:last-child { border-right: 0; }
.chain__label { display: block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.chain__value { display: block; font-size: 13.5px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chain__value--mono { font-family: var(--mono); font-size: 12.5px; font-weight: 500; }
.chain__meta { display: block; font-size: 12px; color: var(--text-3); }
.chain__step--accent { background: var(--surface-2); }

/* --------------------------------------------------------------------------
   Zaman cizgisi (baglanti gecmisi, siparis hareketleri)
   -------------------------------------------------------------------------- */
.timeline { position: relative; padding-left: 26px; }
.timeline::before {
  content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px;
  width: 1px; background: var(--border);
}
.timeline__item { position: relative; padding-bottom: 22px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: ''; position: absolute; left: -23px; top: 5px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--border-strong);
}
.timeline__item--now::before { background: var(--text); border-color: var(--text); }
.timeline__time { font-size: 12px; color: var(--text-3); }
.timeline__title { font-size: 14px; font-weight: 550; margin-top: 2px; }
.timeline__body { font-size: 13.5px; color: var(--text-2); margin-top: 4px; line-height: 1.55; }
.timeline__change {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 8px; font-size: 12.5px;
}
.timeline__change .from { color: var(--text-3); text-decoration: line-through; }
.timeline__change .to   { color: var(--text); font-weight: 550; }

/* --------------------------------------------------------------------------
   Liste satirlari (dashboard "son ..." bloklari)
   -------------------------------------------------------------------------- */
.mini-list__row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  transition: background .12s;
}
.mini-list__row:last-child { border-bottom: 0; }
a.mini-list__row:hover { background: var(--surface-2); }
.mini-list__main { flex: 1; min-width: 0; }
.mini-list__title { display: block; font-size: 13.5px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-list__sub { display: block; font-size: 12px; color: var(--text-3); margin-top: 2px; }
.mini-list__right { text-align: right; flex: none; }
.mini-list__value { display: block; font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   Fotoğraf slotu
   site_image() bu yapıyı basar. Görsel yoksa yerini korur, sayfa zıplamaz.
   -------------------------------------------------------------------------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--surface-2);
}
.media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* Görsel henüz konmadıysa: nötr, dokulu bir alan */
.media--empty {
  display: grid; place-items: center;
  background-color: var(--surface-2);
  background-image:
    linear-gradient(135deg, rgba(10,10,10,.025) 25%, transparent 25%,
                    transparent 50%, rgba(10,10,10,.025) 50%, rgba(10,10,10,.025) 75%,
                    transparent 75%, transparent);
  background-size: 14px 14px;
  border: 1px solid var(--border);
}
.media__hint {
  font-family: var(--mono); font-size: 11.5px; color: var(--text-3);
  background: rgba(255,255,255,.9);
  padding: 6px 10px; border-radius: var(--r-xs);
  border: 1px solid var(--border);
}

.media--framed { border: 1px solid var(--border); }
.media--flat   { border-radius: 0; }

/* Fotoğrafın altındaki künye satırı */
.media-caption {
  display: flex; align-items: center; gap: 8px;
  margin-top: 12px;
  font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-3);
}
.media-caption::before {
  content: ''; width: 18px; height: 1px; background: var(--border-strong); flex: none;
}

/* --------------------------------------------------------------------------
   Hairline ızgara (bento)
   Kartların hepsini ayrı ayrı çerçevelemek yerine tek bir ızgara çizgisi.
   -------------------------------------------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.bento > * { background: var(--surface); padding: 30px 28px; min-width: 0; }
/* 6 sütun:  satır1 = medya(2) + öne çıkan(4)
              satır2 = medya(devam) + 2×(2)
              satır3 = 3×(2)                     → ızgara tam dolar */
.bento__cell       { grid-column: span 2; }
.bento__cell--lead { grid-column: span 4; }
.bento__media      { grid-column: span 2; grid-row: span 2; padding: 0; }
.bento__media .media { border-radius: 0; height: 100%; }

.bento__k {
  font-size: 11px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-3);
}
.bento h3 { font-size: 17px; letter-spacing: -0.02em; margin-top: 14px; }
.bento__cell--lead h3 { font-size: 22px; letter-spacing: -0.03em; }
.bento__cell--lead p  { font-size: 15.5px; max-width: 46ch; }
.bento p  { font-size: 14.5px; line-height: 1.6; color: var(--text-2); margin-top: 8px; }

/* --------------------------------------------------------------------------
   Numaralı adımlar (editoryal)
   -------------------------------------------------------------------------- */
.steps-ed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.steps-ed__item { border-top: 1px solid var(--text); padding-top: 20px; }
.steps-ed__n {
  font-size: 13px; font-weight: 600; letter-spacing: .1em;
  color: var(--text-3); font-variant-numeric: tabular-nums;
}
.steps-ed h3 { font-size: 20px; letter-spacing: -0.025em; margin-top: 16px; }
.steps-ed p  { font-size: 15px; line-height: 1.65; color: var(--text-2); margin-top: 10px; }

/* --------------------------------------------------------------------------
   Künye satırı (garanti / iade / kargo gibi kısa gerçekler)
   -------------------------------------------------------------------------- */
.factline {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0 22px;
  font-size: 12.5px; color: var(--text-3);
}
.factline > * { display: flex; align-items: center; gap: 22px; }
.factline > * + *::before {
  content: ''; width: 1px; height: 11px; background: var(--border-strong);
}

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__media { grid-column: span 2; grid-row: auto; }
  .bento__media .media { aspect-ratio: 16/9 !important; }
  .bento__cell, .bento__cell--lead { grid-column: span 1; }
  .steps-ed { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .bento__cell, .bento__cell--lead, .bento__media { grid-column: span 1; }
}

/* --------------------------------------------------------------------------
   Filtre çubuğu ve arama kutusu
   Hem public site hem paneller kullanır — bu yüzden base.css'te durur.
   -------------------------------------------------------------------------- */
.filters {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 16px 0 24px;
}
.filters__group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.search-box {
  position: relative;
  display: flex; align-items: center;
  flex: 0 1 280px;
  min-width: 180px;
}
.search-box > .icon {
  position: absolute;
  left: 12px;
  color: var(--text-3);
  pointer-events: none;
}
.search-box .input {
  width: 100%;
  height: 40px;
  padding-left: 38px;
}

/* Satır içi form çubuklarında kontroller içeriği kadar yer kaplar;
   .input/.select'in width:100% değeri satırı kırıyordu. */
.filters > .input,
.filters > .select,
.filters > form > .input,
.filters > form > .select { width: auto; flex: 0 0 auto; }


/* Paylaşılan bileşenlerin responsive kırılımları */
@media (max-width: 1200px) {
  .split, .split--wide, .split--rev, .split--even { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .chain { flex-direction: column; }
  .chain__step { border-right: 0; border-bottom: 1px solid var(--border); }
  .chain__step:last-child { border-bottom: 0; }
}
@media (max-width: 640px) {
  .metrics { grid-template-columns: 1fr 1fr; }
  .metrics > div:nth-child(2) { border-right: 0; }
  .metrics > div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}

/* --------------------------------------------------------------------------
   Erisilebilirlik
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -60px; left: 16px; z-index: 500;
  padding: 10px 16px; background: var(--text); color: #fff;
  border-radius: var(--r-xs); font-size: 14px;
  transition: top .15s;
}
.skip-link:focus { top: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .section { padding-block: 72px; }
}
@media (max-width: 768px) {
  .container { padding-inline: 18px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .section { padding-block: 56px; }
  .section--sm { padding-block: 44px; }
  .card__head, .card__body, .card__foot { padding-inline: 18px; }
  .table th:first-child, .table td:first-child { padding-left: 18px; }
  .table th:last-child,  .table td:last-child  { padding-right: 18px; }
  .toast-stack { right: 12px; left: 12px; bottom: 12px; max-width: none; }
  .pagination { padding-inline: 18px; }
}
