/* Giriş, kayıt, şifre yenileme ve iki adımlı doğrulama ekranları (yalnız auth_base.html yükler).
   Ana sayfayla aynı marka dili: Schibsted Grotesk başlıklar, Onest metin, lacivert zemin, tek mavi vurgu.
   Arkada gerçek panelin bulanık görüntüsü (bulanıklık görüntünün kendisinde; telefonda canlı filtre yok), üstünde koyu örtü;
   önde net, opak bir form yüzeyi. Her şey .kx altında: panelin geri kalanını etkilemez. */
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-display: swap; font-weight: 400 900;
  src: url(/static/fonts/schibsted-grotesk-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-display: swap; font-weight: 400 900;
  src: url(/static/fonts/schibsted-grotesk-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/static/fonts/onest-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/static/fonts/onest-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

.kx {
  --kx-ink: #0E1330; --kx-muted: #535B70; --kx-line: #D5DAE5; --kx-field: #FFFFFF; --kx-field-2: #F5F6F8;
  --kx-sheet: #FFFFFF; --kx-accent: #3456E0; --kx-accent-hover: #2541B5; --kx-tint: #E7ECFD; --kx-signal: #F2AE3D;
  --kx-ok: #1E9E62; --kx-ok-bg: #E3F5EC; --kx-err: #C2362F; --kx-err-bg: #FCECEA; --kx-deep: #111A40;
  --kx-display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif; --kx-text: "Onest", "Helvetica Neue", Arial, sans-serif;
  position: relative; min-height: 100vh; min-height: 100dvh; overflow: hidden; background: var(--kx-deep); color: var(--kx-ink);
  font: 400 16px/1.5 var(--kx-text); -webkit-font-smoothing: antialiased; }
[data-theme=dark] .kx {
  --kx-ink: #EEF1FA; --kx-muted: #A3ABC2; --kx-line: #2E3550; --kx-field: #12172A; --kx-field-2: #12172A;
  --kx-sheet: #181E34; --kx-accent: #6F8BFF; --kx-accent-hover: #93A8FF; --kx-tint: #243064; --kx-ok: #4CC98A; --kx-ok-bg: #173A2B;
  --kx-err: #FF8A80; --kx-err-bg: #3A1D20; --kx-deep: #0A0E1F; }
.kx *, .kx *::before, .kx *::after { box-sizing: border-box; }

/* arka plan: panelin bulanık görüntüsü + koyu örtü (form yüzeyiyle arasında net ayrışma) */
.kx-bg { position: absolute; inset: 0; background: url(/static/img/auth-bg.webp) center top / cover no-repeat; transform: scale(1.08); }
@media (min-width: 961px) and (prefers-reduced-motion: no-preference) {
  .kx-bg { animation: kxDrift 48s ease-in-out infinite alternate; }   /* ölçek %8, kayma en çok %2: kenar açılmaz */
  @keyframes kxDrift { from { transform: scale(1.08) translate(-1.2%, -.8%); } to { transform: scale(1.08) translate(1.2%, .8%); } }
}
[data-theme=dark] .kx-bg { background-image: url(/static/img/auth-bg-koyu.webp); }
.kx::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(120deg, rgb(17 26 64 / .93) 0%, rgb(22 32 78 / .86) 46%, rgb(40 64 170 / .72) 100%); }
[data-theme=dark] .kx::before { background: linear-gradient(120deg, rgb(8 11 26 / .95), rgb(14 20 46 / .9) 50%, rgb(28 42 110 / .8)); }

.kx-wrap { position: relative; z-index: 2; min-height: 100vh; min-height: 100dvh; width: 100%; max-width: 1160px; margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); grid-template-rows: auto 1fr auto; column-gap: clamp(40px, 5vw, 64px);
  padding: 28px max(24px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) max(24px, env(safe-area-inset-left, 0px)); }
.kx:has(.kx-row) .kx-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); }
.kx-logo { grid-column: 1; grid-row: 1; justify-self: start; display: inline-flex; align-items: baseline; gap: 2px; color: #fff; text-decoration: none;
  font: 700 28px/1 var(--kx-display); letter-spacing: -.04em; }
.kx-logo i { width: 8px; height: 8px; border-radius: 50%; background: var(--kx-signal); }
.kx-logo:focus-visible { outline: 3px solid #fff; outline-offset: 6px; border-radius: 6px; }
/* sol karşılama: logo, küçük selam satırı ve ana mesaj aynı sol kenarda; blok formla aynı eksende ortalanır.
   Logodaki sarı nokta selam satırının başında tekrar eder (tek marka detayı). Kısa işlemlerde (.sm) mesaj küçülür. */
.kx-side { grid-column: 1; grid-row: 1 / span 3; align-self: center; color: #fff; max-width: 600px; padding-block: 72px; }
.kx .kx-hi { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; color: #D5DBF0; font: 600 15px/1.3 var(--kx-text); letter-spacing: .01em; }
.kx .kx-hi::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--kx-signal); flex: none; }
.kx .kx-side h2 { color: #fff; margin: 0; max-width: 12em; font: 700 clamp(2.5rem, 1.5rem + 2.2vw, 3.375rem)/1.06 var(--kx-display); letter-spacing: -.03em; text-wrap: balance; }
.kx .kx-side h2.kx-two { max-width: none; font-size: clamp(2.5rem, 1.4rem + 2vw, 3.125rem); }
.kx .kx-side h2.kx-two span { display: block; white-space: nowrap; }   /* "Tekliften tahsilata, / tek yerde." */
.kx .kx-side h2.sm { max-width: 13em; font-size: clamp(2rem, 1.4rem + 1.3vw, 2.5rem); }
.kx .kx-lede { margin: 20px 0 0; max-width: 34ch; text-wrap: balance; color: #B9C2E2; font-size: 1.0625rem; line-height: 1.55; }
@media (prefers-reduced-motion: no-preference) {
  .kx-side > * { animation: kxIn .6s cubic-bezier(.16, 1, .3, 1) both; }
  .kx-side > :nth-child(2) { animation-delay: .07s; } .kx-side > :nth-child(3) { animation-delay: .14s; }
  @keyframes kxIn { from { opacity: 0; transform: translateY(10px); } }
}
.kx-main { grid-column: 2; grid-row: 1 / span 3; align-self: center; display: grid; gap: 14px; padding-block: 24px; }
.kx-legal { grid-column: 1; grid-row: 3; align-self: end; margin: 0; color: #9EA8CC; font-size: 13.5px; }
.kx-legal a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgb(255 255 255 / .35); }
.kx-legal a:hover { color: #fff; }

/* ön yüz: opak, net; gölge yalnız zeminden ayırmaya yetecek kadar */
.kx-card { background: var(--kx-sheet); border-radius: 24px; padding: 28px 34px 20px; box-shadow: 0 24px 60px -28px rgb(0 0 0 / .55); }
.kx-card h1 { margin: 0; font: 700 28px/1.15 var(--kx-display); letter-spacing: -.025em; color: var(--kx-ink); text-wrap: balance; }
.kx-sub { margin: 6px 0 0; color: var(--kx-muted); font-size: 15px; }
.kx-sub b { color: var(--kx-ink); font-weight: 600; }
.kx-badge { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; background: var(--kx-tint); color: var(--kx-accent); }
.kx-badge svg { width: 24px; height: 24px; }
.kx-badge.ok { background: var(--kx-ok-bg); color: var(--kx-ok); }
.kx-badge.err { background: var(--kx-err-bg); color: var(--kx-err); }

.kx-form { margin-top: 18px; display: grid; gap: 12px; }
.kx-field { display: grid; gap: 6px; }
.kx .kx-field > label:not(.kx-check), .kx .kx-labelrow label { display: block; margin: 0; color: var(--kx-ink); font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.kx-labelrow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.kx-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.kx input:not([type=checkbox]):not([type=radio]):not([type=hidden]) {
  width: 100%; height: 50px; margin: 0; padding: 0 15px; border: 1px solid var(--kx-line); border-radius: 12px; background: var(--kx-field); color: var(--kx-ink);
  font: 500 16px var(--kx-text); box-shadow: none; transition: border-color .15s ease, box-shadow .15s ease; }
.kx input::placeholder { color: #8A93AB; opacity: 1; font-weight: 400; }
.kx input:hover:not(:focus) { border-color: #B9C0D2; }
[data-theme=dark] .kx input:hover:not(:focus) { border-color: #3E4768; }
.kx input:focus { outline: none; border-color: var(--kx-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--kx-accent) 20%, transparent); }
.kx input[aria-invalid=true] { border-color: var(--kx-err); }
.kx input[aria-invalid=true]:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--kx-err) 18%, transparent); }
.kx input:-webkit-autofill { -webkit-text-fill-color: var(--kx-ink); box-shadow: 0 0 0 40px var(--kx-field) inset; }
.kx .pw-wrap { position: relative; }
.kx .pw-wrap input { padding-right: 52px; }
.kx .pw-toggle { position: absolute; right: 5px; top: 5px; transform: none; width: 40px; height: 40px; min-height: 0; padding: 0; display: grid; place-items: center;
  border: 0; border-radius: 9px; background: none; color: var(--kx-muted); cursor: pointer; }
.kx .pw-toggle:hover { color: var(--kx-ink); background: var(--kx-field-2); }
.kx .pw-toggle:focus-visible { outline: 2px solid var(--kx-accent); outline-offset: 0; }
.kx .pw-toggle svg { width: 20px; height: 20px; }

/* alanın yanındaki hata ve ipucu */
.kx-err { display: flex; align-items: flex-start; gap: 7px; margin: 0; color: var(--kx-err); font-size: 14px; font-weight: 500; line-height: 1.4; }
.kx-err::before { content: "!"; flex: none; width: 17px; height: 17px; margin-top: 1px; border-radius: 50%; background: var(--kx-err); color: var(--kx-sheet);
  display: grid; place-items: center; font: 800 11.5px/1 var(--kx-text); }
.kx-err[hidden] { display: none; }
.kx-alert { margin: 20px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--kx-err-bg); color: var(--kx-err); font-size: 14.5px; font-weight: 500; line-height: 1.45; }
.kx-note { margin: 0; color: var(--kx-muted); font-size: 13.5px; line-height: 1.5; }
.kx .caps-warn { margin: 0; color: var(--kx-err); font-size: 13.5px; }

/* şifre kuralları: yazdıkça işaretlenir (sunucudaki kuralın aynısı) */
/* şifre kuralları: iki sütunlu sabit kontrol listesi; sağlanan madde dolu yeşil daire ve tikle (yalnız renk değil) */
.kx .pw-rules { display: block; margin: 0; }
.kx .pw-rules ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 14px; }
.kx .pw-rules li { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--kx-muted); font-size: 13.5px; line-height: 1.3; white-space: nowrap; }
.kx .pw-rules li i { position: relative; flex: none; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #A3ABC2; transition: background-color .2s ease, box-shadow .2s ease; }
.kx .pw-rules li.is-met { color: var(--kx-ink); }
.kx .pw-rules li.is-met i { background: var(--kx-ok); box-shadow: none; }
.kx .pw-rules li.is-met i::after { content: ""; position: absolute; left: 5px; top: 3px; width: 4px; height: 7px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
[data-theme=dark] .kx .pw-rules li.is-met i::after { border-color: #0A0E1F; }
@media (max-width: 340px) { .kx .pw-rules ul { grid-template-columns: minmax(0, 1fr); } }
.kx .pw-meter { display: none; }

.kx .kx-check { margin: 0; font-weight: 400; display: flex; align-items: flex-start; gap: 11px; padding: 0; background: none; color: var(--kx-muted); font-size: 14px; line-height: 1.45; cursor: pointer; }
.kx .kx-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--kx-accent); cursor: pointer; }
.kx .kx-check a { color: var(--kx-accent); font-weight: 600; }

/* düğmeler: mavi birincil; gönderirken yükleniyor hâli */
.kx .kx-submit { position: relative; width: 100%; min-height: 52px; margin: 4px 0 0; padding: 0 20px; border: 0; border-radius: 12px; background: var(--kx-accent); color: #fff;
  font: 600 16px/1 var(--kx-text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; box-shadow: none;
  transition: background-color .2s ease, transform .15s ease; }
.kx .kx-submit:hover { background: var(--kx-accent-hover); }
.kx .kx-submit:active { transform: scale(.99); }
.kx .kx-submit:focus-visible { outline: 3px solid color-mix(in srgb, var(--kx-accent) 45%, transparent); outline-offset: 3px; }
[data-theme=dark] .kx .kx-submit { color: #0A0E1F; }
.kx .kx-submit[aria-busy=true] { cursor: progress; background: var(--kx-accent-hover); }
.kx .kx-submit[aria-busy=true]::before { content: ""; width: 17px; height: 17px; border-radius: 50%; border: 2px solid rgb(255 255 255 / .4); border-top-color: #fff; animation: kxSpin .7s linear infinite; }
[data-theme=dark] .kx .kx-submit[aria-busy=true]::before { border-color: rgb(10 14 31 / .3); border-top-color: #0A0E1F; }
@keyframes kxSpin { to { transform: rotate(360deg); } }
.kx-btn2 { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; border-radius: 12px; border: 1px solid var(--kx-line);
  background: var(--kx-sheet); color: var(--kx-ink); font-weight: 600; text-decoration: none; }
.kx-btn2:hover { border-color: var(--kx-accent); color: var(--kx-accent); }
.kx a.kx-link, .kx-labelrow a { color: var(--kx-accent); font-weight: 600; font-size: 14px; text-decoration: none; }
.kx a.kx-link:hover, .kx-labelrow a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* dış sağlayıcılar (yalnız anahtarı tanımlı olanlar görünür) */
.kx .auth-social { display: grid; gap: 8px; margin-top: 16px; }
.kx .auth-provider { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; border-radius: 12px; border: 1px solid var(--kx-line);
  background: var(--kx-sheet); color: var(--kx-ink); font-weight: 600; text-decoration: none; box-shadow: none; }
.kx .auth-provider:hover { border-color: var(--kx-accent); background: var(--kx-sheet); }
.kx .auth-provider svg { width: 20px; height: 20px; flex: none; } .kx .auth-provider svg.apple { color: var(--kx-ink); }
.kx .auth-or { display: flex; align-items: center; gap: 12px; margin: 14px 0 -4px; color: var(--kx-muted); font-size: 13px; }
.kx .auth-or::before, .kx .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--kx-line); }

.kx-switch { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--kx-line); text-align: center; color: var(--kx-muted); font-size: 15px; }
.kx-switch a { color: var(--kx-accent); font-weight: 600; text-decoration: none; }
.kx-switch a:hover { text-decoration: underline; text-underline-offset: 3px; }
.kx-steps { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.kx-steps li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; color: var(--kx-ink); font-size: 15px; line-height: 1.45; }
.kx-steps b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--kx-tint); color: var(--kx-accent); font-size: 13px; }
.kx-actions { display: grid; gap: 10px; margin-top: 24px; }

/* geniş tablet ve altı: form önde; yan metin kısalır */
@media (max-width: 960px) {
  .kx-wrap, .kx:has(.kx-row) .kx-wrap { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; row-gap: 18px; max-width: 560px; padding-top: 22px; }
  .kx-logo { grid-column: 1; grid-row: 1; }
  .kx-side { display: none; }   /* dar ekranda form önde; karşılama sığdırılmaya çalışılmaz */
  .kx-main { grid-column: 1; grid-row: 2; align-self: start; padding-block: 0; }
  .kx-legal { grid-row: 3; padding-top: 6px; text-align: center; justify-self: center; }
}
/* telefon: önce form; arka plan sakin, yalnız üst kısımda */
@media (max-width: 560px) {
  .kx-wrap, .kx:has(.kx-row) .kx-wrap { padding: 18px 14px max(18px, env(safe-area-inset-bottom, 0px)); row-gap: 14px; }
  .kx-side { display: none; }
  .kx-logo { font-size: 26px; padding: 2px 4px; }
  .kx-card { padding: 26px 20px 22px; border-radius: 20px; }
  .kx-card h1 { font-size: 24px; }
  .kx-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .kx-submit[aria-busy=true]::before { animation: none; } .kx * { transition-duration: .01ms !important; } }

/* ── sol sahne: üç ince kart, altında dolan bağlantı çizgisi. Varsayılan hâl bitmiş sahnedir (betik yok / hareket azaltılmış);
   .kx-anim ile kartlar sırayla yerleşir, .s1–.s3 adımları ilerletir, .kx-live sonra çok hafif süzülmeyi açar. ── */
.kx-scene { --mx: 0; --my: 0; position: relative; margin-top: 36px; max-width: 560px; transform: translate(calc(var(--mx) * 6px), calc(var(--my) * 4px)); transition: transform .8s cubic-bezier(.16, 1, .3, 1); }
.kx-scene { --g: 14px; }
.kx-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--g); align-items: end; }
/* kartın altından hattaki noktasına inen kısa bağlantı; öne gelen kartta boy, kalkma kadar uzar */
.kx-cards .kx-c { --stem: 21px; }   /* düğümün ortasına kadar: süzülürken de kopmaz */
.kx-cards .kx-c::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: var(--stem); margin-left: -1px; background: #8FA8FF; transition: height .7s cubic-bezier(.16, 1, .3, 1), background-color .4s ease; }
.kx-cards .kx-last { --stem: 29px; }
.kx-c { position: relative; display: grid; gap: 6px; align-content: start; min-height: 128px; padding: 14px 14px 12px; border-radius: 16px; background: rgb(255 255 255 / .11);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .18); color: #fff; transition: transform .7s cubic-bezier(.16, 1, .3, 1), background-color .5s ease, box-shadow .5s ease, opacity .5s ease; }   /* ince çerçeve: zeminde kart sınırı. taste-skill-ignore */
.kx-c b { font: 600 14.5px/1.25 var(--kx-text); }
.kx-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: rgb(143 168 255 / .26); color: #E3E9FF; margin-bottom: 4px; }
.kx-ic svg { width: 18px; height: 18px; stroke-width: 1.9; }
.kx-st { color: #D6DCF2; font-size: 13px; line-height: 1.35; }
.kx-bar { display: block; height: 4px; margin-top: 4px; border-radius: 4px; background: rgb(255 255 255 / .12); overflow: hidden; }
.kx-bar i { display: block; height: 100%; background: #8FA8FF; transform-origin: left; transition: transform 1s cubic-bezier(.16, 1, .3, 1); }
.kx-lines { display: grid; gap: 4px; margin-top: 4px; } .kx-lines i { height: 4px; border-radius: 4px; background: rgb(255 255 255 / .16); } .kx-lines i + i { width: 62%; }
.kx-pill { justify-self: start; display: grid; margin-top: 2px; }
.kx-pill > span, .kx-st > span { grid-area: 1 / 1; transition: opacity .35s ease, transform .35s ease; }
.kx-st:has(> span) { display: grid; }
.kx-pill > span { display: inline-flex; align-items: center; gap: 5px; min-height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.kx-pill .kx-wait { background: rgb(242 174 61 / .18); color: #F7CF85; }
.kx-pill .kx-ok { background: rgb(76 201 138 / .2); color: #A4EBC4; }
.kx-pill .kx-ok svg { width: 12px; height: 12px; }
.kx-wait { opacity: 0; } .kx-ok { opacity: 1; }   /* bitmiş hâl */
.kx-last { transform: translateY(-8px); background: rgb(255 255 255 / .13); box-shadow: inset 0 0 0 1px rgb(143 168 255 / .5), 0 18px 32px -20px rgb(0 0 0 / .6); }   /* son kart öne gelir. taste-skill-ignore */
.kx-track { position: relative; height: 10px; margin: 16px calc((100% - 2 * var(--g)) / 6) 0; }   /* uçlar ilk ve son kartın ortasında */
.kx-track::before, .kx-fill { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 2px; border-radius: 2px; background: rgb(255 255 255 / .16); }
.kx-fill { background: #8FA8FF; transform-origin: left; transform: scaleX(1); transition: transform .9s cubic-bezier(.65, 0, .35, 1); }
.kx-glint { position: absolute; inset: 3px 0 auto; height: 4px; overflow: hidden; opacity: 0; }
.kx-glint::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, transparent 70%, #fff 96%, transparent); transform: translateX(-100%); }
.kx-track span { position: absolute; top: 0; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #8FA8FF; box-shadow: 0 0 0 3px rgb(17 26 64 / .9); transition: background-color .4s ease; }
.kx-track span:nth-of-type(1) { left: 0; } .kx-track span:nth-of-type(2) { left: 50%; } .kx-track span:nth-of-type(3) { left: 100%; }
/* kilit: tek kart, kilidin halkası bir kez açılır */
.kx-lock { max-width: 260px; } .kx-lock .kx-c { min-height: 0; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.kx-lock .kx-ic { grid-row: span 2; margin: 0; width: 40px; height: 40px; } .kx-lock .kx-ic svg { width: 22px; height: 22px; }
.kx-shackle { transform-origin: 16px 10.5px; transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.kx-lock.is-open .kx-shackle { transform: translateY(-2px) rotate(28deg); }
.kx-lock.is-open .kx-ic { background: rgb(76 201 138 / .2); color: #A4EBC4; }

/* açılış kurgusu (yalnız betik varken ve hareket azaltılmamışken) */
.kx-anim .kx-c { opacity: 0; transform: translateY(12px); }
.kx-anim .kx-c.in { opacity: 1; transform: none; }
.kx-anim .kx-last.in { transform: none; background: rgb(255 255 255 / .11); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .18); --stem: 16px; }
.kx-anim .kx-fill { transform: scaleX(0); } .kx-anim .kx-bar i { transform: scaleX(.15); }
.kx-anim .kx-track span { background: rgb(255 255 255 / .3); }
.kx-anim .kx-cards .kx-c::after { background: rgb(255 255 255 / .24); }
.kx-anim.s1 .kx-cards .kx-c:nth-child(-n+2)::after, .kx-anim.s3 .kx-cards .kx-c::after { background: #8FA8FF; }
.kx-anim .kx-wait { opacity: 1; } .kx-anim .kx-ok { opacity: 0; transform: translateY(4px); }
.kx-anim.s1 .kx-bar i { transform: none; } .kx-anim.s1 .kx-fill { transform: scaleX(.5); } .kx-anim.s1 .kx-track span:nth-of-type(-n+2) { background: #8FA8FF; }
.kx-anim.s2 .kx-c:nth-child(2) .kx-wait { opacity: 0; transform: translateY(-4px); } .kx-anim.s2 .kx-c:nth-child(2) .kx-ok { opacity: 1; transform: none; }
.kx-anim.s3 .kx-fill { transform: scaleX(1); } .kx-anim.s3 .kx-track span { background: #8FA8FF; }
.kx-anim.s3 .kx-last.in { --stem: 29px; transform: translateY(-8px); background: rgb(255 255 255 / .13); box-shadow: inset 0 0 0 1px rgb(143 168 255 / .5), 0 18px 32px -20px rgb(0 0 0 / .6); }
.kx-anim.s3 .kx-last .kx-wait { opacity: 0; transform: translateY(-4px); } .kx-anim.s3 .kx-last .kx-ok { opacity: 1; transform: none; }
.kx-lock.kx-anim .kx-c { transition-duration: .6s; }
/* sonrası: kartlarda çok hafif süzülme ve arada bir çizgide parıltı; form alanına odaklanınca durur, kaldığı yerden sürer */
.kx-live .kx-cards .kx-c.in { animation: kxFloat 7s ease-in-out infinite; }
.kx-live .kx-cards .kx-c:nth-child(2) { animation-delay: -2.3s; } .kx-live .kx-cards .kx-c:nth-child(3) { animation-delay: -4.6s; }
@keyframes kxFloat { 50% { translate: 0 -3px; } }
.kx-glint.run { opacity: 1; } .kx-glint.run::before { animation: kxGlint 1.6s cubic-bezier(.65, 0, .35, 1) both; }
@keyframes kxGlint { to { transform: translateX(100%); } }
.kx-c.pulse { box-shadow: inset 0 0 0 1px rgb(143 168 255 / .8), 0 18px 32px -20px rgb(0 0 0 / .6); }
.kx.is-calm .kx-bg, .kx.is-calm .kx-live .kx-cards .kx-c.in, .kx.is-calm .kx-glint::before { animation-play-state: paused; }   /* durur, kaldığı yerden sürer */
.kx.is-calm .kx-scene { --mx: 0 !important; --my: 0 !important; }
@media (max-width: 1100px) { .kx-c { min-height: 118px; padding: 12px; } .kx-scene { --g: 10px; } .kx-scene { margin-top: 30px; } }
@media (max-height: 760px) and (min-width: 961px) { .kx-side { padding-block: 40px; } .kx-scene { margin-top: 26px; } .kx-c { min-height: 108px; } }
@media (prefers-reduced-motion: reduce) { .kx-scene, .kx-c, .kx-fill, .kx-bar i { transition: none !important; } .kx-scene { transform: none; } }
