/* Semerşah tasarım sistemi (tokens.css) üstünde müşteri yüzeyi: açık şema, tek yeşil eylem, gölge yok. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font-family: var(--ff-sans); font-size: var(--fs-body); line-height: var(--lh-body);
}
.sayfa { max-width: var(--col-customer); margin: 0 auto; padding: var(--space-4) var(--space-4) var(--space-12); }
.ekran { display: grid; gap: var(--space-4); }
.ekran > * { margin: 0; min-width: 0; }

h1 { font-size: var(--fs-headline); line-height: var(--lh-headline); font-weight: 700; margin: 0; }
h2 { font-size: var(--fs-title); line-height: var(--lh-title); font-weight: 700; margin: 0; }
p { margin: 0; }
.giris { color: var(--ink); }
.kucuk { font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--ink-2); }
.gizlilik { text-align: center; }
[hidden] { display: none !important; }

.gizli {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* Üst çubuk */
.ust { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-6); }
.logo { height: 35px; width: auto; display: block; }
.diller { display: flex; gap: var(--space-1); }
.dil {
  min-height: 36px; padding: 0 var(--space-3); border-radius: var(--rounded-control);
  border: 1.5px solid transparent; background: transparent; color: var(--ink-2);
  font: inherit; font-size: var(--fs-body-dense); font-weight: 500; cursor: pointer;
}
.dil[aria-pressed="true"] { border-color: var(--line-strong); color: var(--ink); background: var(--card); }

/* Kart */
.kart {
  display: grid; gap: var(--space-2); padding: var(--space-4);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--rounded-card-touch);
}
.kart .dugmeler { margin-top: var(--space-2); }

/* Düğmeler */
.dugmeler { display: grid; gap: var(--space-3); }
.btn {
  position: relative; display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 52px; padding: var(--space-2) var(--space-5); border-radius: var(--rounded-control-touch);
  border: 1.5px solid transparent; font: inherit; font-size: var(--fs-input); font-weight: 700; line-height: 1.2;
  cursor: pointer; text-decoration: none; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--duration-base) var(--easing-standard), color var(--duration-base) var(--easing-standard), transform var(--duration-fast) var(--easing-standard);
}
.btn-primary { background: var(--green); color: var(--on-green); }
.btn-primary:hover { background: var(--green-hover); }
.btn-primary:active { transform: translateY(1px) scale(0.99); }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--line-strong); }
.btn-ghost:hover { color: var(--ink); background: var(--slate-soft); }
.btn.pasif { opacity: 0.4; pointer-events: none; }
.btn:focus-visible, .btn:focus-within, .dil:focus-visible, .geri:focus-visible, .sahne:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.geri {
  justify-self: start; min-height: 36px; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-weight: 500; color: var(--cyan-ink);
}

/* Bildirimler */
.not { padding: var(--space-3) var(--space-4); border-radius: var(--rounded-control); font-size: var(--fs-body); }
.not-hata { background: var(--danger-soft); color: var(--danger); }
.not-uyari { background: var(--warn-soft); color: var(--warn); }
.not-tamam { background: var(--green-soft); color: var(--green-text); }
.not-bilgi { background: var(--slate-soft); color: var(--ink); }
.not + .not { margin-top: var(--space-2); }

/* Kırpıcı: 3:4 sahne, görüntü transform ile kayar */
.sahne {
  position: relative; width: 100%; max-width: 330px; aspect-ratio: 3 / 4; justify-self: center;
  overflow: hidden; border-radius: var(--rounded-card); border: 1px solid var(--line-strong);
  background: var(--slate-soft); touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none;
}
.sahne:active { cursor: grabbing; }
.sahne-gorsel { position: absolute; left: 0; top: 0; transform-origin: 0 0; max-width: none; }
.oval { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.oval-perde { fill: rgba(31, 43, 48, 0.45); }
.oval-cizgi { fill: none; stroke: #fff; stroke-width: 2; stroke-dasharray: 6 5; vector-effect: non-scaling-stroke; }
.surgu-satiri { display: grid; gap: var(--space-1); max-width: 330px; width: 100%; justify-self: center; }
.surgu { width: 100%; accent-color: var(--cyan-ink); min-height: 32px; }

/* Sonuç */
.ikili { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
figure { margin: 0; display: grid; gap: var(--space-1); justify-items: center; }
.onizleme { display: block; width: 100%; height: auto; border: 1px solid var(--line-strong); border-radius: var(--rounded-control); background: #fff; }
.tekli .onizleme { max-width: 240px; }
.tekli.genis .onizleme { max-width: 100%; }
.olcu { text-align: center; color: var(--ink); }

/* Ana ekrandaki temsilî örnek */
.ornek { display: grid; gap: var(--space-2); margin-top: var(--space-2); }
.ornek .ikili { max-width: 300px; }
.ornek > .onizleme { max-width: 300px; }

/* İlerleme: camgöbeği çizgi */
.cubuk { height: 4px; background: var(--line); border-radius: var(--rounded-pill); overflow: hidden; }
.cubuk-dolu { height: 100%; width: 0; background: var(--cyan); transition: width var(--duration-slow) var(--easing-standard); }

/* Yol gösterici (driver.js) — tasarım sistemine uyarlama. İleri düğmesi koyu: ekranda tek yeşil dolgu kalır. */
.driver-popover {
  font-family: var(--ff-sans); color: var(--ink); background: var(--elevated);
  border-radius: var(--rounded-card); box-shadow: var(--elev-overlay); padding: var(--space-4); max-width: 300px;
}
.driver-popover-title { font: 700 var(--fs-title)/var(--lh-title) var(--ff-sans); color: var(--ink); }
.driver-popover-description { font: 400 var(--fs-body)/var(--lh-body) var(--ff-sans); color: var(--ink); }
.driver-popover-progress-text { font-size: var(--fs-caption); color: var(--ink-2); }
.driver-popover-footer button {
  font: 700 var(--fs-body-dense)/1 var(--ff-sans); min-height: 40px; padding: 0 var(--space-4);
  border-radius: var(--rounded-control); text-shadow: none; border: 1.5px solid var(--line-strong);
  background: transparent; color: var(--ink-2);
}
.driver-popover-footer button:hover, .driver-popover-footer button:focus { background: var(--slate-soft); color: var(--ink); }
.driver-popover-footer button.driver-popover-next-btn { background: var(--ink); color: var(--card); border-color: var(--ink); }
.driver-popover-footer button.driver-popover-next-btn:hover, .driver-popover-footer button.driver-popover-next-btn:focus { background: var(--on-green); color: var(--card); }
.driver-popover-footer button:focus-visible, .driver-popover-close-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.driver-popover-close-btn { color: var(--ink-2); }
