/* ═══════════════════════════════════════════════════════════════════════
   Giriş, bayilik başvurusu, başvuru durumu ve eklentilerin herkese açık
   form sayfaları (KVKK, e-posta tercihleri). Tanıtım sitesiyle aynı dil:
   mürekkep laciverti marka paneli, kobalt odak, koli bandı sarısı vurgu.
   Sınıf adları eklentiler ve apply.js tarafından kullanılır; değiştirmeyin.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --ink: #111827;
  --ink-2: #1f2937;
  --ink-3: #374151;
  --slate: #4b5563;
  --muted: #6b7280;
  --line: #e4e4e7;
  --line-2: #efeff1;
  --fog: #f4f4f5;
  --cobalt: #111827;     /* vurgu: koyu siyah (tanıtım sitesiyle aynı palet) */
  --cobalt-d: #374151;
  --tape: #ffc53d;
  --go: #0e9f6e;

  /* eklenti stil dosyalarının (googleauth, kvkk, …) beklediği adlar */
  --c-bg: var(--fog);
  --c-surface: #ffffff;
  --c-border: var(--line);
  --c-border-light: var(--line-2);
  --c-text: var(--ink);
  --c-text-secondary: var(--slate);
  --c-text-muted: var(--muted);
  --c-accent: var(--ink);
  --c-accent-soft: #f7f9fc;
  --c-red: #c4320a;
  --radius: 12px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font);
  background: #fff;
  min-height: 100vh;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.5;
  overflow-x: clip;
}
a { color: var(--cobalt-d); }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; border-radius: 6px; }

/* ── İskelet: form tarafı + marka paneli ──────────────────────────────── */
.login-wrapper { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100vh; width: 100%; }
@media (min-width: 992px) {
  .login-wrapper:has(> .login-right) { grid-template-columns: minmax(0, 1fr) minmax(400px, .82fr); }
}

.login-left {
  background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px 16px 24px;
  position: relative; min-width: 0;
}
@media (min-width: 768px) { .login-left { padding: 48px 40px 28px; } }

.form-container { width: 100%; max-width: 410px; margin: auto 0; }
.form-container.wide { max-width: 600px; }

/* Marka satırı */
.brand-mark { display: flex; align-items: center; gap: 12px; margin-bottom: 40px; }
.brand-mark a { display: inline-flex; border-radius: 6px; }
.brand-mark img { height: var(--lh, 20px); width: auto; max-width: min(260px, 60vw); object-fit: contain; display: block; } /* tema logo yüksekliği */
@media (max-width: 991.98px) { .brand-mark img { height: var(--lh-m, 20px); } }
.brand-mark span { font-size: 13.5px; font-weight: 650; color: var(--muted); border-left: 1px solid var(--line); padding-left: 12px; }

/* Başlık */
.form-header { margin-bottom: 28px; }
.form-header h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.2vw, 38px); line-height: 1.08; font-weight: 800; letter-spacing: -.03em;
  color: var(--ink); margin-bottom: 10px; text-wrap: balance;
}
.form-header p { color: var(--slate); font-size: 16px; line-height: 1.55; }

/* Alanlar */
.field-group { margin-bottom: 18px; min-width: 0; }
.field-label { font-weight: 650; color: var(--ink); font-size: 14px; margin-bottom: 7px; display: block; }
.field-input {
  width: 100%; min-height: 50px;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 12px 15px; font-size: 16px; font-family: inherit; line-height: 1.4;
  background: #fff; color: var(--ink); outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field-input::placeholder { color: #98a1b5; }
.field-input:hover { border-color: #b9c3d3; }
.field-input:focus { border-color: var(--cobalt); box-shadow: 0 0 0 4px rgba(17, 24, 39, .14); }
select.field-input { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%230b1736' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='m3 6 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 15px center; }
textarea.field-input { resize: vertical; min-height: 84px; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: minmax(0, 1fr); } }
.field-hint { margin-top: 6px; font-size: 13px; color: var(--muted); }
.field-sec { font-family: var(--font-display); font-size: 17px; font-weight: 750; letter-spacing: -.01em; color: var(--ink); margin: 8px 0 12px; }
.opt { font-weight: 500; color: var(--muted); font-size: 13px; }

.password-wrap { position: relative; }
.password-wrap .field-input { padding-right: 52px; }
.pwd-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: none; border: none; color: var(--muted); cursor: pointer; font-size: 18px;
  transition: color .15s, background .15s;
}
.pwd-toggle:hover { color: var(--ink); background: var(--fog); }

/* Ana düğme */
.btn-submit {
  background: var(--cobalt); border: none; border-radius: var(--radius);
  min-height: 52px; padding: 0 22px; margin-top: 8px; width: 100%;
  font-family: inherit; font-size: 16px; font-weight: 700; letter-spacing: -.005em; color: #fff; text-decoration: none;
  display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer;
  transition: background .15s, box-shadow .2s, transform .15s;
}
.btn-submit:hover { background: var(--cobalt-d); color: #fff; box-shadow: 0 12px 24px -12px rgba(17, 24, 39, .7); }
.btn-submit:active { transform: translateY(1px); }
.btn-submit:disabled { opacity: .7; cursor: progress; transform: none; box-shadow: none; }
.btn-submit:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.btn-submit.loading i { animation: authSpin 1s linear infinite; }
@keyframes authSpin { to { transform: rotate(360deg); } }

/* Uyarılar */
.alert-box {
  border-radius: var(--radius); border: 1px solid #fecdca; background: #fef3f2; color: #b42318;
  padding: 13px 15px; font-size: 14.5px; line-height: 1.45; margin-bottom: 22px;
  display: flex; align-items: flex-start; gap: 10px;
}
.alert-box i { font-size: 17px; flex-shrink: 0; line-height: 1.2; }
.alert-box.ok { border-color: #a6ead0; background: #ecfbf4; color: #05603a; }
.alert-box.warn { border-color: #fedf89; background: #fffaeb; color: #93370d; }

.alt-link { margin-top: 24px; font-size: 15px; color: var(--slate); text-align: center; }
.alt-link a { color: var(--cobalt-d); font-weight: 700; text-decoration: none; }
.alt-link a:hover { text-decoration: underline; text-underline-offset: 3px; }

.check-line { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; color: var(--slate); margin: 6px 0 10px; cursor: pointer; }
.check-line input { margin-top: 2px; width: 18px; height: 18px; flex: none; accent-color: var(--cobalt); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Güven satırı (form altı) */
.auth-trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.auth-trust li { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--slate); }
.auth-trust i { color: var(--go); font-size: 15px; }

.footer-credit { margin-top: 32px; text-align: center; color: var(--muted); font-size: 13px; }
.footer-credit a { color: var(--slate); text-decoration: none; font-weight: 600; }
.footer-credit a:hover { color: var(--ink); }

/* ── Marka paneli (açık tasarım: açık kobalt zemin, noktalı ızgara, koyu yazı) ── */
.login-right { display: none; }
@media (min-width: 992px) {
  .login-right {
    display: flex; flex-direction: column; justify-content: center;
    position: sticky; top: 0; height: 100vh; min-height: 560px; overflow: hidden; isolation: isolate;
    background: #f7f6f2; color: var(--ink); padding: 48px clamp(32px, 4vw, 64px); border-left: 1px solid #e7e5e0;
  }
}
.login-right::before {   /* noktalı ızgara, kenarlara doğru söner */
  content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: radial-gradient(circle, rgba(15, 23, 42, .13) 1px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 90% 75% at 60% 40%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 90% 75% at 60% 40%, #000 30%, transparent 85%);
}
.login-right::after {
  content: ''; position: absolute; z-index: -1; pointer-events: none; width: 620px; height: 620px; right: -240px; top: -220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 197, 61, .26), rgba(255, 197, 61, 0) 65%);
}
.sc-in { width: 100%; max-width: 460px; margin: 0 auto; display: flex; flex-direction: column; gap: 36px; }

/* Küçük kart (örnek bayi fiyatı / kargo etiketi) */
.sc-label {
  position: relative; align-self: flex-start; width: 300px; max-width: 100%; background: #fff; color: var(--ink);
  border-radius: 6px; padding: 16px 18px 14px; transform: rotate(-3deg);
  box-shadow: 0 30px 50px -28px rgba(15, 27, 61, .45), 0 0 0 1px rgba(15, 27, 61, .06);
  -webkit-mask: radial-gradient(circle 5px at 50% 0, transparent 97%, #000) 50% -1px / 18px 100% repeat-x;
  mask: radial-gradient(circle 5px at 50% 0, transparent 97%, #000) 50% -1px / 18px 100% repeat-x;
}
.sc-tape { position: absolute; top: -2px; left: 58%; width: 96px; height: 26px; transform: translateX(-50%) rotate(4deg); background: rgba(255, 197, 61, .93); }
.sc-label-top { display: flex; align-items: center; gap: 11px; padding: 12px 0; border-bottom: 2px solid var(--ink); }
.sc-logo { width: 38px; height: 38px; border-radius: 9px; background: var(--tape); color: var(--ink); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 20px; flex: none; }
.sc-label small { display: block; font-size: 11px; font-weight: 700; color: var(--muted); }
.sc-label b { display: block; font-size: 15.5px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.sc-rows { margin: 4px 0 0; }
.sc-rows div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed #dbe1eb; font-size: 13.5px; color: var(--slate); }
.sc-rows div b { font-size: 13.5px; color: var(--ink); font-variant-numeric: tabular-nums; }
.sc-rows div b.neg { color: #0b7a55; }
.sc-rows .sum { border-top: 2px solid var(--ink); border-bottom: 0; color: var(--ink); font-weight: 700; }
.sc-rows .sum b { font-size: 18px; }
.sc-label-foot { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 650; color: var(--muted); }

/* Dönen metinler (app.js: .slide / .dots .dot) */
.slide-wrap { position: relative; min-height: 150px; }
.slide { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease); pointer-events: none; }
.slide.active { opacity: 1; transform: none; pointer-events: auto; position: relative; }
.slide-badge { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fff; border: 1px solid #e3e7ef; margin-bottom: 16px; font-size: 18px; color: var(--cobalt); }
.slide h3, .sc-h { font-family: var(--font-display); font-size: clamp(26px, 2.4vw, 32px); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; color: var(--ink); margin-bottom: 12px; text-wrap: balance; }
.slide p, .sc-p { font-size: 16px; line-height: 1.6; color: var(--slate); max-width: 34em; }
.dots { display: flex; gap: 6px; margin-top: 4px; }
.dot { width: 8px; height: 8px; border-radius: 4px; background: rgba(15, 27, 61, .2); cursor: pointer; transition: width .3s var(--ease), background .3s; }
.dot.active { width: 26px; background: var(--ink); }

/* Logolar */
.sc-logos { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.sc-logos li { height: 44px; padding: 0 16px; border-radius: 12px; background: #fff; border: 1px solid #e3e7ef; display: flex; align-items: center; }
.sc-logos img { max-height: 17px; max-width: 108px; width: auto; display: block; }
.sc-cap { font-size: 13.5px; font-weight: 650; color: var(--muted); margin-bottom: 10px; }

/* Başvuru paneli: başvurudan sonraki rota */
.sc-route { list-style: none; position: relative; display: grid; gap: 0; }
.sc-route li { position: relative; padding: 0 0 26px 52px; }
.sc-route li:last-child { padding-bottom: 0; }
.sc-route li::before { content: ''; position: absolute; left: 17px; top: 36px; bottom: 0; width: 2px; background: repeating-linear-gradient(180deg, rgba(17, 24, 39, .4) 0 4px, transparent 4px 10px); }
.sc-route li:last-child::before { display: none; }
.sc-route .n { position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 2px solid rgba(17, 24, 39, .45); background: #fff; color: var(--cobalt-d); font-weight: 800; font-size: 15px; }
.sc-route li:first-child .n { background: var(--tape); border-color: var(--tape); color: var(--ink); }
.sc-route b { display: block; font-size: 17px; font-weight: 750; letter-spacing: -.01em; margin-bottom: 3px; padding-top: 6px; color: var(--ink); }
.sc-route span { display: block; font-size: 14.5px; line-height: 1.5; color: var(--slate); }

.sc-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.sc-badges li { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; background: #fff; border: 1px solid #e3e7ef; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.sc-badges i { color: var(--cobalt); }

/* Yönetim girişi: sakin panel */
.sc-admin .sc-mark { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: #fff; border: 1px solid #e3e7ef; font-size: 24px; color: var(--cobalt); margin-bottom: 22px; }
.is-admin .login-right::after { opacity: .55; }

/* ── Bayilik başvurusu sihirbazı ──────────────────────────────────────── */
.ap-mode { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px !important; padding: 7px 13px; border-radius: 999px; background: #ecfbf4; font-size: 14px !important; font-weight: 650; color: #05603a !important; }
.ap-mode i { font-size: 15px; }

/* İlerleme: bölümlü çubuk */
.ap-steps { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; margin: 4px 0 30px; padding: 0; }
.ap-steps li { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; font-weight: 650; color: var(--muted); min-width: 0; }
.ap-steps li::before { content: ''; display: block; height: 5px; border-radius: 3px; background: var(--line-2); transition: background .3s var(--ease); }
.ap-steps li b { display: none; }
.ap-steps li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-steps li.on { color: var(--ink); }
.ap-steps li.on::before { background: var(--cobalt); }
.ap-steps li.done { color: var(--slate); }
.ap-steps li.done::before { background: var(--ink); }

.ap-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.ap-nav .btn-submit { width: auto; min-width: 170px; margin: 0; margin-left: auto; }
.ap-nav .btn-submit i { font-size: 17px; transition: transform .15s ease; }
.ap-nav .ap-next:hover i { transform: translateX(3px); }
@media (max-width: 480px) { .ap-nav .btn-submit { flex: 1; } }
.ap-back { min-height: 52px; padding: 0 18px; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; font: inherit; font-size: 15px; font-weight: 650; color: var(--slate); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.ap-back:hover { color: var(--ink); border-color: #b9c3d3; }
.ap-note { font-size: 14px; color: var(--slate); margin: -4px 0 14px; line-height: 1.55; }
.ap .is-invalid, .field-input.is-invalid { border-color: #d92d20 !important; box-shadow: 0 0 0 4px rgba(217, 45, 32, .12); }
.ap-err { margin-top: 6px; font-size: 13.5px; font-weight: 650; color: #b42318; display: flex; align-items: center; gap: 6px; }
.ap-err::before { content: '\F332'; font-family: "bootstrap-icons"; font-weight: normal; }
[data-ap-pane] { animation: apIn .35s var(--ease); }
@keyframes apIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }

/* Sürükle-bırak evrak alanı */
.ap-docs { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.ap-drop { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1.5px dashed #b9c3d3; border-radius: 14px; background: #f7f9fc; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.ap-drop:hover, .ap-drop.is-over { border-color: var(--cobalt); background: #fff; }
.ap-drop.is-over { box-shadow: 0 0 0 4px rgba(17, 24, 39, .12); }
.ap-drop:focus-within { border-color: var(--cobalt); box-shadow: 0 0 0 4px rgba(17, 24, 39, .14); }
.ap-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.ap-drop-ic { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); font-size: 20px; color: var(--cobalt); }
.ap-drop-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ap-drop-t b { font-size: 15px; }
.ap-drop-t small { font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-drop.has-file { border-style: solid; border-color: var(--go); background: #ecfbf4; }
.ap-drop.has-file .ap-drop-ic { background: var(--go); border-color: var(--go); color: #fff; }
.ap-drop.has-file .ap-drop-t small { color: #05603a; font-weight: 650; }
.ap-drop-x { position: relative; z-index: 2; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); }
.ap-drop-x:hover { background: #fee4e2; color: #b42318; }
.ap-drop.sm { padding: 11px 14px; }
.ap-drop.sm .ap-drop-ic { width: 36px; height: 36px; font-size: 16px; }
.ap-drop.is-busy { opacity: .6; pointer-events: none; }

/* Seçim çipleri */
.ap-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ap-chips label { position: relative; cursor: pointer; }
.ap-chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ap-chips span { display: inline-flex; min-height: 42px; padding: 0 16px; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; font-size: 14.5px; font-weight: 650; color: var(--slate); background: #fff; transition: border-color .15s, background .15s, color .15s; }
.ap-chips label:hover span { border-color: #b9c3d3; color: var(--ink); }
.ap-chips input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.ap-chips input:focus-visible + span { box-shadow: 0 0 0 4px rgba(17, 24, 39, .2); border-color: var(--cobalt); }

/* Özet ve sözleşme */
.ap-recap { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 22px; overflow: hidden; background: #f7f9fc; }
.ap-recap div { display: flex; gap: 14px; padding: 12px 16px; font-size: 15px; }
.ap-recap div + div { border-top: 1px dashed var(--line); }
.ap-recap span { width: 84px; flex: none; color: var(--muted); font-weight: 650; font-size: 14px; }
.ap-recap b { font-weight: 650; min-width: 0; overflow-wrap: anywhere; }
.ap-agreement { max-height: 220px; overflow: auto; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #f7f9fc; font-size: 14px; line-height: 1.65; color: var(--slate); margin-bottom: 12px; }

/* ── Başvuru durumu ───────────────────────────────────────────────────── */
.ap-status { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: 18px; margin-bottom: 18px; }
.ap-status > i { font-size: 30px; line-height: 1; }
.ap-status h1 { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 30px); font-weight: 800; letter-spacing: -.025em; line-height: 1.15; margin: 0 0 6px; }
.ap-status p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--slate); }
.ap-status.ok { background: #ecfbf4; } .ap-status.ok > i { color: var(--go); }
.ap-status.wait { background: #fffaeb; } .ap-status.wait > i { color: #b54708; }
.ap-status.err { background: #fef3f2; } .ap-status.err > i { color: #d92d20; }
.ap-co { display: flex; flex-direction: column; gap: 3px; margin-bottom: 24px; font-size: 14.5px; }
.ap-co b { font-size: 18px; letter-spacing: -.01em; } .ap-co span { color: var(--muted); }
.ap-co .mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink); font-weight: 600; }
.ap-flow { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 0; margin: 0 0 30px; }
.ap-flow li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 650; color: var(--muted); text-align: center; }
.ap-flow li + li::before { content: ''; position: absolute; top: 19px; right: 50%; width: 100%; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 4px, transparent 4px 9px); z-index: 0; }
.ap-flow li.done + li.done::before { background: var(--ink); }
.ap-flow i { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); font-size: 17px; }
.ap-flow li.done { color: var(--ink); } .ap-flow li.done i { background: var(--ink); border-color: var(--ink); color: var(--tape); }
.ap-doclist { display: flex; flex-direction: column; gap: 10px; }
.ap-docrow { border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.ap-docrow-h { display: flex; gap: 12px; align-items: flex-start; }
.ap-doc-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 18px; background: var(--fog); color: var(--muted); }
.ap-doc-ic.green { background: #ecfbf4; color: var(--go); } .ap-doc-ic.amber { background: #fffaeb; color: #b54708; } .ap-doc-ic.red { background: #fef3f2; color: #d92d20; }
.ap-doc-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ap-doc-t b { font-size: 15px; } .ap-doc-t small { font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; }
.ap-doc-t a { color: var(--cobalt-d); font-weight: 650; }
.ap-doc-note { color: #b42318 !important; font-weight: 650; }
.ap-save { display: inline-flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--slate); padding: 12px 14px; border-radius: 12px; background: var(--fog); }
.ap-save i { color: var(--cobalt); }

@media (max-width: 560px) {
  .ap-steps { gap: 6px; }
  .ap-steps li { font-size: 12.5px; }
  .ap-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .ap-flow li:nth-child(3)::before { display: none; }
}

/* Bayilik sözleşmesi: yönetimdeki zengin metin editörüyle yazılmış içerik (App\Core\Html::render) */
.ap-agreement p { margin: 0 0 .6em; }
.ap-agreement h2, .ap-agreement h3, .ap-agreement h4 { font-size: 14.5px; font-weight: 700; color: var(--ink); margin: .9em 0 .4em; }
.ap-agreement ul, .ap-agreement ol { margin: 0 0 .7em; padding-left: 1.3em; }
.ap-agreement table { border-collapse: collapse; width: 100%; margin: 0 0 .8em; }
.ap-agreement td, .ap-agreement th { border: 1px solid var(--line); padding: 4px 6px; }
.ap-agreement a { text-decoration: underline; }
.ap-agreement > :last-child { margin-bottom: 0; }

/* ── Tek açılış hareketi ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .form-container { animation: authIn .55s var(--ease) both; }
  .sc-label { animation: authLabel .8s .2s var(--ease) both; }
}
@keyframes authIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes authLabel { from { opacity: 0; translate: 0 -18px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Bootstrap liste girintisini sıfırla (sözleşme metni kendi girintisini yukarıda tanımlar) */
.sc-in ul, .sc-in ol, .auth-trust { padding-left: 0; margin-bottom: 0; }
.ap-steps, .ap-flow { padding-left: 0; }
.ap-agreement ul, .ap-agreement ol { padding-left: 1.3em; }
.ap-nav > span:empty { display: none; }

/* Bildirimler (app.js toast): herkese açık sayfalarda da biçimli görünsün */
#toast-container { position: fixed; top: 16px; right: 16px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; width: 360px; max-width: calc(100vw - 32px); }
#toast-container .toast-msg { position: relative; overflow: hidden; padding: 14px 40px 16px 48px; border-radius: 14px; background: #0b1736; color: #fff; font-size: 14.5px; font-weight: 550; line-height: 1.45; box-shadow: 0 20px 40px -18px rgba(11, 23, 54, .6); animation: toastIn .25s ease-out; }
#toast-container .toast-msg > i { position: absolute; left: 16px; top: 14px; font-size: 18px; }
#toast-container .toast-msg .tx { position: absolute; right: 10px; top: 8px; width: 28px; height: 28px; border-radius: 8px; background: none; border: 0; color: #fff; opacity: .7; font-size: 18px; cursor: pointer; }
#toast-container .toast-msg .tx:hover { opacity: 1; background: rgba(255, 255, 255, .1); }
#toast-container .toast-msg .bar { position: absolute; left: 0; bottom: 0; height: 3px; background: currentColor; opacity: .35; }
#toast-container .toast-success > i { color: #3ddc97; } #toast-container .toast-error { background: #b42318; } #toast-container .toast-error > i { color: #fff; }
#toast-container .toast-warning > i { color: #ffc53d; } #toast-container .toast-info > i { color: #8ea2ff; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Onay kutusu altında alan hatası */
.check-line { display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 11px; }
.check-line > .ap-err { grid-column: 2; margin-top: 4px; }
