/* ════════════════════════════════════════════════════════════════════
   TAM RANDEVU — MÜŞTERİ PORTALI · TASARIM SİSTEMİ
   Versiyon 2026.1  ·  Sıfırdan yeniden inşa

   Referans: apple.com/iphone-air — aydınlık, ferah, sakin, premium.
   Tek sabit tema. Mobil öncelikli. Geist tipografi.
   Bu dosya portalın TEK stylesheet'idir (tokens.css / app.css kullanılmaz).
   ════════════════════════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════════════════════════
   1 · TASARIM TOKEN'LARI
   ════════════════════════════════════════════════════════════════════ */
:root {
  /* ── Yüzeyler — Apple beyaz + nötr gri katmanlar ── */
  --bg:            #ffffff;   /* uygulama zemini */
  --bg-tint:       #f5f5f7;   /* Apple bölüm grisi */
  --bg-sunken:     #ececef;   /* daha derin nötr */
  --surface:       #ffffff;   /* kart yüzeyi */
  --surface2:      #f5f5f7;   /* gömülü/gruplu yüzey */
  --surface3:      #ebebf0;   /* hover/aktif yüzey */

  /* ── Hairline çizgiler ── */
  --line:          #d2d2d7;   /* standart ayraç */
  --line-soft:     #e8e8ed;   /* yumuşak ayraç */
  --border:        #d2d2d7;   /* JS uyumluluk adı */

  /* ── Metin — Apple yakın-siyah hiyerarşisi ── */
  --text:          #1d1d1f;   /* birincil */
  --text2:         #6e6e73;   /* ikincil */
  --text3:         #86868b;   /* üçüncül / meta */
  --text4:         #aeaeb2;   /* placeholder / pasif */
  --text-inverse:  #ffffff;

  /* ── Vurgu — Apple mavisi, yalnızca aksiyon ── */
  --accent:        #0071e3;
  --accent-press:  #0077ed;
  --accent-dim:    #e8f1fd;   /* mavi %8 zemin tonu */
  --accent-rgb:    0, 113, 227;
  --link:          #0066cc;

  /* ── iPhone Air bitiş tonları — yumuşak vurgu zeminleri ── */
  --sky:           #f0f9ff;   /* Sky Blue */
  --gold:          #fffcf5;   /* Light Gold */
  --cloud:         #fcfcfc;   /* Cloud White */

  /* ── Durum renkleri (Apple sistemi) ── */
  --success:       #34c759;
  --success-rgb:   52, 199, 89;
  --success-dim:   #e8f8ed;
  --danger:        #ff3b30;
  --danger-rgb:    255, 59, 48;
  --danger-dim:    #ffeceb;
  --warn:          #ff9f0a;
  --warn-dim:      #fff4e1;

  /* ── Tipografi ── */
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'SF Pro Text',
               'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* ── Köşe yarıçapları ── */
  --r-xs:    8px;
  --r-sm:   12px;
  --r-md:   16px;
  --r-lg:   20px;
  --r-xl:   26px;
  --r-2xl:  34px;
  --r-pill: 999px;

  /* ── Gölgeler — Apple yumuşak difüzyon ── */
  --sh-1:     0 1px 2px rgba(0,0,0,.05);
  --sh-2:     0 2px 8px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --sh-3:     0 8px 28px rgba(0,0,0,.10), 0 2px 8px rgba(0,0,0,.05);
  --sh-float: 0 14px 44px rgba(0,0,0,.16), 0 4px 12px rgba(0,0,0,.07);
  --sh-accent:0 8px 24px rgba(var(--accent-rgb), .30);

  /* ── Hareket ── */
  --dur-fast:  140ms;
  --dur:       240ms;
  --dur-slow:  420ms;
  --ease:      cubic-bezier(.4, 0, .2, 1);
  --ease-out:  cubic-bezier(.22, .61, .36, 1);
  --spring:    cubic-bezier(.34, 1.36, .5, 1);

  /* ── Düzen ── */
  --content-w:  540px;   /* portal içerik maks. genişlik */
  --gutter:     20px;    /* mobil yan boşluk */
  --tabbar-h:   78px;    /* alt tab bar yüksekliği + boşluk */
  --kb-gap:     0px;     /* JS klavye telafisi */

  color-scheme: light;
}

/* ════════════════════════════════════════════════════════════════════
   2 · RESET & TEMEL
   ════════════════════════════════════════════════════════════════════ */
* { margin: 0; padding: 0; }
*, *::before, *::after { box-sizing: border-box; }

html { background: #ffffff; }
html, body {
  height: 100%;
  height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}

body { font-weight: 400; }

a { color: var(--link); text-decoration: none; }

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

img { display: block; max-width: 100%; }
svg { display: block; }
ul, ol { list-style: none; }

::selection { background: rgba(var(--accent-rgb), .18); }

/* İnce, modern scrollbar */
*::-webkit-scrollbar { width: 7px; height: 7px; }
*::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,.16);
  border-radius: var(--r-pill);
}
*::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,.26); }
*::-webkit-scrollbar-track { background: transparent; }

/* ── Erişilebilir odak halkası ── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}
:focus:not(:focus-visible) { outline: none; }

/* ════════════════════════════════════════════════════════════════════
   3 · TİPOGRAFİ YARDIMCILARI
   ════════════════════════════════════════════════════════════════════ */
.t-display {
  font-size: clamp(27px, 7.2vw, 34px);
  font-weight: 600;
  letter-spacing: -.022em;
  line-height: 1.1;
}
.t-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.18;
}
.t-mono {
  font-family: var(--font-mono);
  font-feature-settings: 'tnum' 1;
  letter-spacing: -.01em;
}

/* ════════════════════════════════════════════════════════════════════
   4 · KEYFRAME'LER
   ════════════════════════════════════════════════════════════════════ */
@keyframes spin       { to { transform: rotate(360deg); } }
@keyframes fadeIn     { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp     { from { opacity: 0; transform: translateY(14px); }
                        to   { opacity: 1; transform: translateY(0); } }
@keyframes fadeDown   { from { opacity: 0; transform: translateY(-12px); }
                        to   { opacity: 1; transform: translateY(0); } }
@keyframes popIn      { 0%   { opacity: 0; transform: scale(.92); }
                        60%  { opacity: 1; transform: scale(1.015); }
                        100% { opacity: 1; transform: scale(1); } }
@keyframes shimmer    { from { background-position: 200% 0; }
                        to   { background-position: -200% 0; } }
@keyframes loaderDot  { 0%, 80%, 100% { opacity: .25; transform: translateY(0); }
                        40%           { opacity: 1;   transform: translateY(-7px); } }
@keyframes pulse-dot  { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(var(--success-rgb), .4); }
                        50%      { opacity: .85; box-shadow: 0 0 0 6px rgba(var(--success-rgb), 0); } }
@keyframes toast-in   { from { opacity: 0; transform: translateY(-14px) scale(.96); }
                        to   { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toast-out  { to   { opacity: 0; transform: translateY(-10px) scale(.95); } }
@keyframes successPop { 0%   { transform: scale(.5);  opacity: 0; }
                        62%  { transform: scale(1.08); opacity: 1; }
                        100% { transform: scale(1);   opacity: 1; } }
@keyframes checkdraw  { to { stroke-dashoffset: 0; } }
@keyframes confettiFall {
  0%   { transform: translateY(-10px) rotate(0deg);   opacity: 1; }
  100% { transform: translateY(102vh)  rotate(680deg); opacity: 0; }
}

/* Erişilebilirlik — hareket azalt */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ════════════════════════════════════════════════════════════════════
   5 · EKRAN SİSTEMİ
   ════════════════════════════════════════════════════════════════════ */
.screen {
  position: fixed;
  inset: 0;
  flex-direction: column;
  background: var(--bg);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.screen.active { opacity: 1; }

#screen-loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  z-index: 9999;
  transition: opacity 380ms cubic-bezier(0.4, 0, 0.2, 1);
}
#screen-loader.is-leaving,
#screen-loader.is-hidden { opacity: 0; pointer-events: none; }

/* View Transitions — yumuşak ekran geçişleri
   Wizard ↔ Salon arasında sadece fade (slide siyah backdrop yaratıyordu) */
::view-transition-group(root) { background: var(--bg); }
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: var(--dur);
  mix-blend-mode: normal;
}
::view-transition-old(root) { animation: fadeIn var(--dur) reverse var(--ease); }
::view-transition-new(root) { animation: fadeIn var(--dur) var(--ease); }
html.vt-fade::view-transition-old(root) { animation: fadeIn var(--dur) reverse; }
html.vt-fade::view-transition-new(root) { animation: fadeIn var(--dur); }

/* ════════════════════════════════════════════════════════════════════
   6 · YÜKLEME EKRANI — sade, yumuşak, akışkan

   Felsefe: gösterişli değil sakin. Tüm kilit (TAM + Randevu + üç nokta)
   bir bütün olarak yumuşakça belirir, hafifçe nefes alır, hazır olunca
   nazikçe söner. Per-letter/aurora/glint yok — minimal Apple-vari giriş.
   ──────────────────────────────────────────────────────────────────── */

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 0 var(--gutter);
  /* Bütün kilit birlikte yumuşakça yukarı süzülür, sonra ince nefes.
     Giriş ≈460ms'de tamamlanır; index.html MIN_DISPLAY (480ms) bununla
     uyumlu — kilit tam belirip kısa tutulduktan sonra exit başlar. */
  animation:
    lLoaderIn 460ms cubic-bezier(0.22, 0.61, 0.36, 1) both,
    lLoaderBreath 4.6s ease-in-out 620ms infinite;
  will-change: transform, opacity;
}

.loader-wordmark {
  font-size: 40px;            /* makul, zarif boyut */
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--text);
}

.loader-sub {
  margin-top: 1px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--text3);
}

.loader-dot-row {
  display: flex;
  gap: 7px;
  margin-top: 15px;
}
.loader-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  /* Yumuşak nefes dalgası — sıçrama yok, sadece opacity + hafif scale */
  animation: lDotSoft 1.5s ease-in-out infinite;
  will-change: transform, opacity;
}
.loader-dot:nth-child(2) { animation-delay: .18s; }
.loader-dot:nth-child(3) { animation-delay: .36s; }

/* Çıkış — tüm kilit birlikte nazikçe söner ve minik yukarı süzülür */
#screen-loader.is-leaving .loader-inner {
  animation: none;
  transition:
    opacity   320ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 320ms cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(-5px) scale(.985);
}

@keyframes lLoaderIn {
  from { opacity: 0; transform: translateY(7px); }
}
@keyframes lLoaderBreath {
  0%, 100% { transform: translateY(0)    scale(1); }
  50%      { transform: translateY(-1px) scale(1.006); }
}
@keyframes lDotSoft {
  0%, 100% { opacity: .28; transform: scale(.82); }
  45%      { opacity: 1;   transform: scale(1); }
}

/* Hareket azaltma — animasyon yok, kilit anında ve sabit görünür */
@media (prefers-reduced-motion: reduce) {
  .loader-inner { animation: none; }
  .loader-dot   { animation: none; opacity: .8; }
  #screen-loader.is-leaving .loader-inner {
    transition: opacity 240ms ease;
    transform: none;
    opacity: 0;
  }
}

/* ════════════════════════════════════════════════════════════════════
   7 · 404 EKRANI
   ════════════════════════════════════════════════════════════════════ */
#screen-404 {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--gutter);
}
.nf-glyph {
  font-size: clamp(96px, 34vw, 168px);
  font-weight: 600;
  letter-spacing: -.05em;
  line-height: 1;
  color: var(--bg-tint);
  user-select: none;
}
.nf-title {
  margin-top: 8px;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.nf-desc {
  margin-top: 10px;
  max-width: 340px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text2);
}
.nf-link {
  display: inline-flex;
  align-items: center;
  height: 46px;
  margin-top: 24px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 550;
  transition: transform var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease);
}
.nf-link:active { transform: scale(.97); background: var(--accent-press); }

/* ════════════════════════════════════════════════════════════════════
   8 · ORTAK BİLEŞENLER (PRIMITIVES)
   ════════════════════════════════════════════════════════════════════ */

/* Paylaşımlı toast util'i (js/utils.js) için uyumluluk takma adları */
:root {
  --radius-lg:   16px;
  --shadow-lg:   var(--sh-float);
  --ease-spring: var(--spring);
  --ease-accel:  var(--ease);
}
@keyframes toast-progress { from { width: 100%; } to { width: 0%; } }

/* ── Butonlar ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 550;
  letter-spacing: -.01em;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(.97); background: var(--accent-press); }
.btn:disabled { opacity: .4; pointer-events: none; }

.btn-secondary {
  background: var(--surface2);
  color: var(--text);
}
.btn-secondary:active { background: var(--surface3); }

.btn-danger { background: var(--danger); }
.btn-danger:active { background: #e0352b; }

.btn-lg   { height: 54px; padding: 0 26px; font-size: 16px; font-weight: 600; }
.btn-full { width: 100%; }

/* ── Form alanları ────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 7px; }

.form-label {
  font-size: 13px;
  font-weight: 550;
  letter-spacing: -.005em;
  color: var(--text2);
  padding-left: 2px;
}
.required { color: var(--danger); font-weight: 600; }
.wiz-form-optional { color: var(--text4); font-weight: 400; }

.input,
.textarea-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface2);
  border: 1.5px solid transparent;
  border-radius: var(--r-sm);
  font-size: 16px;            /* iOS zoom engelleme */
  font-weight: 450;
  color: var(--text);
  transition: border-color var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}
.input { height: 52px; }
.textarea-input { resize: none; line-height: 1.5; min-height: 76px; }
.input::placeholder,
.textarea-input::placeholder { color: var(--text4); }
.input:focus,
.textarea-input:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .12);
}
.input.has-error,
.textarea-input.has-error,
.input[aria-invalid="true"] {
  border-color: var(--danger);
  background: var(--danger-dim);
}

.form-error {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--danger);
  padding-left: 2px;
  min-height: 0;
}
.form-error:empty { display: none; }

/* ── Onay kutusu ──────────────────────────────────────────────────── */
.checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
  padding: 4px 0;
}
.checkbox { position: relative; flex-shrink: 0; }
.checkbox input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.checkbox-box {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--spring);
}
.checkbox-box svg { width: 13px; height: 11px; }
.check-path {
  stroke: #fff;
  stroke-width: 2.4;
  stroke-dasharray: 16;
  stroke-dashoffset: 16;
  transition: stroke-dashoffset var(--dur) var(--ease-out);
}
.checkbox input:checked + .checkbox-box {
  background: var(--accent);
  border-color: var(--accent);
}
.checkbox input:checked + .checkbox-box .check-path { stroke-dashoffset: 0; }
.checkbox input:active + .checkbox-box { transform: scale(.9); }
.checkbox-label {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text2);
}
.checkbox-label a { color: var(--link); font-weight: 500; }

/* ── İskelet (skeleton) yükleme ───────────────────────────────────── */
.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--surface2);
  border-radius: var(--r-sm);
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    transparent 0%, rgba(255,255,255,.7) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s var(--ease) infinite;
}

/* ── Boş durum ────────────────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 24px;
  gap: 6px;
}
.empty-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text3);
}
.empty-icon svg { width: 26px; height: 26px; }
.empty-title { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.empty-text  { font-size: 14px; color: var(--text2); line-height: 1.5; max-width: 280px; }

/* ── Uyarı (alert) ────────────────────────────────────────────────── */
.alert {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--surface2);
}
.alert-icon { flex-shrink: 0; width: 22px; height: 22px; color: var(--text2); }
.alert-icon svg { width: 100%; height: 100%; }
.alert-title { font-size: 14.5px; font-weight: 600; margin-bottom: 2px; }
.alert-body  { font-size: 13.5px; color: var(--text2); line-height: 1.5; }
.alert-danger { background: var(--danger-dim); }
.alert-danger .alert-icon, .alert-danger .alert-title { color: var(--danger); }
.alert-warn { background: var(--warn-dim); }
.alert-warn .alert-icon, .alert-warn .alert-title { color: #b96a00; }

/* ── Kart ─────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
}
.card-header {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-soft);
}
.card-title { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.card-body { padding: 18px; }

/* ── Rozet ────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  background: var(--surface2);
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
}
.badge-confirmed { background: var(--success-dim); color: #1e7a35; }

/* ── Avatar ───────────────────────────────────────────────────────── */
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  overflow: hidden;
  flex-shrink: 0;
}
.avatar-lg { width: 60px; height: 60px; font-size: 20px; }
.avatar-img > img { width: 100%; height: 100%; object-fit: cover; display: block; }

   18 · RANDEVU SİHİRBAZI — ÜST ÇUBUK & ADIM YAPISI
   ════════════════════════════════════════════════════════════════════ */
#screen-wizard { flex-direction: column; background: var(--bg); }

.wizard-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 var(--gutter);
  padding-top: env(safe-area-inset-top);
  flex-shrink: 0;
}
.wizard-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  margin-left: -7px;
  border-radius: 50%;
  background: var(--surface2);
  color: var(--text);
  flex-shrink: 0;
  transition: transform var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease);
}
.wizard-back-btn svg { width: 19px; height: 19px; stroke: currentColor; }
.wizard-back-btn:active { transform: scale(.92); background: var(--surface3); }

.wizard-topbar-info { flex: 1; min-width: 0; }
.wizard-topbar-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.018em;
  line-height: 1.2;
}
.wizard-topbar-step {
  font-size: 12px;
  font-weight: 500;
  color: var(--text3);
}
.wizard-salon-mini {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}
.wizard-ctx-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 11px;
  border-radius: var(--r-pill);
  background: var(--accent-dim);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  max-width: 150px;
}
.wizard-ctx-chip-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.wizard-ctx-chip span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── İlerleme çizgisi ── */
.wizard-progress {
  height: 3px;
  background: var(--line-soft);
  flex-shrink: 0;
}
.wizard-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: var(--r-pill);
  transition: width var(--dur-slow) var(--ease-out);
}

/* ── Adım nokta göstergeleri ── */
.wizard-steps-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 14px 0 4px;
  flex-shrink: 0;
}
.wizard-step-dot {
  width: 6px; height: 6px;
  border-radius: var(--r-pill);
  background: var(--line);
  transition: width var(--dur) var(--spring),
              background var(--dur) var(--ease);
}
.wizard-step-dot.active { width: 22px; background: var(--accent); }
.wizard-step-dot.done { background: var(--accent); }

/* ── Adım track & slide geçişi ── */
.wizard-steps-track {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.wizard-step {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateX(28px);
  pointer-events: none;
  transition: opacity var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out);
}
.wizard-step.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.wizard-step.exit-left  { opacity: 0; transform: translateX(-28px); }
.wizard-step.exit-right { opacity: 0; transform: translateX(28px); }

.wizard-step-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px var(--gutter) 32px;
}

.wizard-step-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 6px 0 20px;
}
.wizard-step-num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--accent);
  padding: 5px 9px;
  border-radius: var(--r-xs);
  background: var(--accent-dim);
  flex-shrink: 0;
}
.wizard-step-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.022em;
  line-height: 1.18;
}
.wizard-step-subtitle {
  margin-top: 3px;
  font-size: 13.5px;
  color: var(--text2);
  line-height: 1.45;
}

/* ════════════════════════════════════════════════════════════════════
   19 · SİHİRBAZ ADIM 1 — HİZMET KARTLARI
   ════════════════════════════════════════════════════════════════════ */
.service-cards { display: flex; flex-direction: column; gap: 10px; }

.service-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--surface);
  border: 1.5px solid var(--line-soft);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.service-card:active { transform: scale(.985); }
.service-card.selected {
  border-color: var(--accent);
  background: var(--accent-dim);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .1);
}
.service-card-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--svc-c-rgb, var(--accent-rgb)), .12);
}
.service-card-icon svg { width: 25px; height: 25px; }
.service-card-body { flex: 1; min-width: 0; }
.service-card-name {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -.012em;
  line-height: 1.3;
}
.service-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
  transition: opacity var(--dur-fast) var(--ease);
}
.service-card-dur { font-size: 12px; font-weight: 500; color: var(--text3); }
.service-card-price {
  font-family: var(--font-mono);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.service-card-check {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%) scale(.5);
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease),
              transform var(--dur) var(--spring);
}
.service-card-check svg { width: 13px; height: 10px; }
.service-card-check polyline { stroke: #fff; }
.service-card.selected .service-card-check {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}
.service-card.selected .service-card-right { opacity: 0; }

/* ════════════════════════════════════════════════════════════════════
   20 · SİHİRBAZ ADIM 2 — PERSONEL KARTLARI
   ════════════════════════════════════════════════════════════════════ */
.staff-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.staff-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 20px 14px 16px;
  background: var(--surface);
  border: 1.5px solid var(--line-soft);
  border-radius: var(--r-md);
  cursor: pointer;
  text-align: center;
  transition: transform var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease);
}
.staff-card:active { transform: scale(.97); }
.staff-card.selected {
  border-color: var(--accent);
  background: var(--accent-dim);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .1);
}
.staff-card .avatar-lg { margin-bottom: 6px; }
.staff-card-name {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -.012em;
}
.staff-card-title {
  font-size: 12px;
  color: var(--text3);
}
.staff-card-check {
  position: absolute;
  top: 10px; right: 10px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(.5);
  transition: opacity var(--dur-fast) var(--ease),
              transform var(--dur) var(--spring);
}
.staff-card-check svg { width: 12px; height: 9px; }
.staff-card-check polyline { stroke: #fff; }
.staff-card.selected .staff-card-check { opacity: 1; transform: scale(1); }
.staff-card.any-staff .avatar { background: var(--surface3); color: var(--text2); }

/* ════════════════════════════════════════════════════════════════════
   21 · SİHİRBAZ ADIM 3 — TAKVİM & SAATLER
   ════════════════════════════════════════════════════════════════════ */
.mini-calendar {
  padding: 14px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line-soft);
}
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cal-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--surface2);
  color: var(--text);
  transition: transform var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease);
}
.cal-nav-btn svg { width: 16px; height: 16px; stroke: currentColor; }
.cal-nav-btn:active:not(:disabled) { transform: scale(.9); background: var(--surface3); }
.cal-nav-btn:disabled { opacity: .3; pointer-events: none; }
.cal-nav-title {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -.016em;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.cal-dow {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text3);
  padding-bottom: 6px;
}
.cal-day {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 550;
  color: var(--text);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}
.cal-day:active:not(.disabled):not(.other-month) { transform: scale(.88); }
.cal-day.other-month { color: var(--text4); opacity: .45; pointer-events: none; }
.cal-day.disabled { color: var(--text4); opacity: .35; pointer-events: none; }
.cal-day.today { color: var(--accent); font-weight: 700; }
.cal-day.has-slots::after {
  content: "";
  position: absolute;
  bottom: 5px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--success);
}
.cal-day.selected {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}
.cal-day.selected.today { color: #fff; }
.cal-day.selected.has-slots::after { background: #fff; }

/* ── Saat slotları ── */
#time-slots-section { margin-top: 20px; }
.time-slots-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--text2);
  margin-bottom: 10px;
}
.time-slots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.time-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: var(--r-sm);
  background: var(--surface2);
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--text);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}
.time-slot:active { transform: scale(.93); }
.time-slot.selected {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(var(--accent-rgb), .3);
}

.slots-loading,
.slots-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 12px;
  text-align: center;
  font-size: 13.5px;
  color: var(--text3);
}
.slots-loading { color: var(--text3); }

/* ════════════════════════════════════════════════════════════════════
   22 · SİHİRBAZ ADIM 4 — ÖZET & FORM
   ════════════════════════════════════════════════════════════════════ */
.booking-summary {
  padding: 6px 16px;
  border-radius: var(--r-lg);
  background: var(--surface2);
  margin-bottom: 22px;
}
.booking-summary-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 0 11px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.005em;
  color: var(--text2);
  border-bottom: 1px solid var(--line-soft);
}
.booking-summary-header svg { width: 16px; height: 16px; stroke: var(--accent); }
.booking-summary-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 0;
}
.booking-summary-row + .booking-summary-row { border-top: 1px solid var(--line-soft); }
.booking-summary-row svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  stroke: var(--text3);
}
.booking-summary-label {
  font-size: 13.5px;
  color: var(--text2);
}
.booking-summary-value {
  flex: 1;
  text-align: right;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.012em;
}
.booking-summary-row--total {
  border-top: 1.5px solid var(--line) !important;
  margin-top: 2px;
}
.booking-summary-row--total .booking-summary-value {
  font-family: var(--font-mono);
  font-size: 17px;
  letter-spacing: -.02em;
  color: var(--accent);
}

.booking-form { display: flex; flex-direction: column; gap: 16px; }

/* Telefon ön-ek alanı */
.tel-prefix-wrap { position: relative; display: flex; align-items: center; }
.tel-prefix-badge {
  position: absolute;
  left: 4px;
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 12px;
  border-radius: 9px;
  background: var(--surface3);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text2);
  pointer-events: none;
}
.tel-prefix-wrap .input { padding-left: 66px; }

/* Sabit CTA — scroll dışında */
.wizard-cta-outer {
  flex-shrink: 0;
  padding: 12px var(--gutter) calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 72%, transparent);
}
.wizard-confirm-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 54px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.01em;
  box-shadow: var(--sh-accent);
  transition: transform var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease);
}
.wizard-confirm-btn:active { transform: scale(.98); background: var(--accent-press); }
.wizard-confirm-btn:disabled { opacity: .5; pointer-events: none; box-shadow: none; }
.wizard-confirm-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.wizard-confirm-btn-icon svg { width: 18px; height: 18px; stroke: #fff; }

/* Hızlı slot çipleri (ana sayfa) */
.quick-slot-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 9px 14px;
  border-radius: var(--r-sm);
  background: var(--surface2);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease);
}
.quick-slot-chip:active { transform: scale(.95); }
.quick-slot-time {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.quick-slot-day { font-size: 11px; color: var(--text3); }

/* ════════════════════════════════════════════════════════════════════
   23 · BAŞARI EKRANI
   ════════════════════════════════════════════════════════════════════ */
#screen-success { background: var(--bg-tint); }
.suc-scroll {
  flex: 1;
  width: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}
.success-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 48px var(--gutter) 24px;
}
.success-checkmark {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px rgba(var(--success-rgb), .34);
  animation: successPop var(--dur-slow) var(--spring);
}
.success-checkmark svg { width: 42px; height: 42px; }
.success-checkmark .check-path {
  stroke: #fff;
  stroke-width: 4;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: checkdraw var(--dur-slow) var(--ease-out) .22s forwards;
}
.suc-title-group { text-align: center; margin-top: 22px; }
.success-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.022em;
}
.success-subtitle {
  margin-top: 7px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text2);
}

.s-detail-card {
  width: 100%;
  margin-top: 26px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  overflow: hidden;
}
.s-detail-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  border-bottom: 1px solid var(--line-soft);
}
.s-detail-card-header svg { width: 16px; height: 16px; stroke: var(--accent); }

.s-success-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}
.suc-btn-calendar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  transition: transform var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease);
}
.suc-btn-calendar svg { stroke: #fff; }
.suc-btn-calendar:active { transform: scale(.98); background: var(--accent-press); }
.s-success-row { display: flex; gap: 10px; }
.suc-btn-ghost {
  flex: 1;
  height: 48px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 550;
  color: var(--text);
  transition: transform var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease);
}
.suc-btn-ghost:active { transform: scale(.97); background: var(--surface2); }

.s-footer {
  text-align: center;
  padding: 20px;
  font-size: 12px;
  color: var(--text4);
}
.s-footer a { color: var(--text3); font-weight: 500; }

/* ════════════════════════════════════════════════════════════════════
   24 · İPTAL EKRANI
   ════════════════════════════════════════════════════════════════════ */
#screen-cancel { background: var(--bg-tint); }
.cancel-scroll {
  flex: 1;
  width: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.s-cancel-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding-top: env(safe-area-inset-top);
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-soft);
  position: sticky;
  top: 0;
  z-index: 10;
}
.s-cancel-bar-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.018em;
}
.cancel-content-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 22px var(--gutter);
}

/* ════════════════════════════════════════════════════════════════════
   25 · MODAL (KVKK BOTTOM SHEET)
   ════════════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0,0,0,.4);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  animation: fadeIn var(--dur) var(--ease);
}
.modal {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 560px;
  max-height: 88dvh;
  background: var(--surface);
  border-radius: var(--r-2xl) var(--r-2xl) 0 0;
  box-shadow: var(--sh-float);
  animation: sheetUp var(--dur-slow) var(--ease-out);
}
@keyframes sheetUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.modal-handle {
  width: 40px; height: 5px;
  border-radius: var(--r-pill);
  background: var(--line);
  margin: 9px auto 2px;
  flex-shrink: 0;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px 12px 20px;
  border-bottom: 1px solid var(--line-soft);
  flex-shrink: 0;
}
.modal-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.018em;
}
.modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--surface2);
  color: var(--text2);
  flex-shrink: 0;
}
.modal-close svg { width: 17px; height: 17px; stroke: currentColor; }
.modal-close:active { background: var(--surface3); }
.modal-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 18px 20px;
}
.modal-footer {
  display: flex;
  gap: 10px;
  padding: 14px 20px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-soft);
  flex-shrink: 0;
}

/* ── KVKK metni ── */
.kvkk-heading {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.014em;
  margin-bottom: 10px;
}
.kvkk-section {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
  margin: 16px 0 5px;
}
.kvkk-p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text2);
}
.kvkk-list {
  margin: 4px 0;
  padding-left: 4px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.kvkk-list li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text2);
}
.kvkk-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 8px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.kvkk-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--sky);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text2);
}
.kvkk-accept-btn {
  width: 100%;
  height: 50px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  transition: transform var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease);
}
.kvkk-accept-btn:active { transform: scale(.98); background: var(--accent-press); }

/* ════════════════════════════════════════════════════════════════════
   26 · DOKUNMA EFEKTLERİ — RIPPLE & KONFETİ
   ════════════════════════════════════════════════════════════════════ */
.mob-ripple-host { position: relative; overflow: hidden; }
.mob-ripple-wave {
  position: absolute;
  border-radius: 50%;
  background: currentColor;
  opacity: .14;
  pointer-events: none;
  transform: scale(0);
  animation: rippleWave 560ms var(--ease-out) forwards;
}
@keyframes rippleWave {
  to { transform: scale(1); opacity: 0; }
}

.confetti-piece {
  position: fixed;
  top: -14px;
  z-index: 9998;
  pointer-events: none;
  animation-name: confettiFall;
  animation-timing-function: var(--ease);
  animation-fill-mode: forwards;
}

/* ════════════════════════════════════════════════════════════════════
   27 · GENİŞ EKRAN — geçici hizalama (tam masaüstü tasarımı sonraki faz)
   Odak mobil; burada yalnızca geniş ekranda dağılmayı önleriz.
   ════════════════════════════════════════════════════════════════════ */
@media (min-width: 640px) {
  .ios-tab-bar {
    max-width: 588px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
  .portal-hero-strip { aspect-ratio: 16 / 8; }
}
