/* =====================================================================
   v2 tasarim dili ("arasi", Canli seviye): degiskenler + ortak bilesenler.
   Referans: docs/design/login-v2/prototip.html
   Tarayici hedefi Chrome/WebView 66+, iOS Safari 12.1+ (belge 5.3):
   color-mix, container query, inset, flex gap, :is/:where, mantiksal
   ozellikler ve ayri translate/scale/rotate ozellikleri KULLANILMAZ.
   Marka tonlari (--brand, --brand-2 ...) sunucuda hesaplanip :root'a basilir.
   ===================================================================== */

:root {
  --brand: #0095f6;
  --brand-2: #946bb9;
  --brand-3: #ff8a5b;
  --brand-soft: #dbf0fe;
  --brand-softer: #ebf7fe;
  --brand-ink: #0675c3;
  --brand-ring: rgba(0, 149, 246, .16);
  --brand-glow: rgba(0, 149, 246, .55);
  --grad: linear-gradient(130deg, var(--brand) 0%, var(--brand-2) 62%, var(--brand-3) 125%);
  --bg: #f5f4fa;
  --ink: #17132b;
  --mute: #6b6880;
  --soft: #a3a0b5;
  --line: #ecebf3;
  --field: #f3f2f8;
  --ok: #22c55e;
  --ok-dark: #16a34a;
  --info: #2563eb;
  --danger: #be123c;
  --danger-bg: #fff1f3;
  --warn: #f59e0b;
  --warn-ink: #7a4a00;
  --warn-bg: #fff7e6;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --font: "Poppins", "Readex Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-hd: "Anek Devanagari", "Readex Pro", "Poppins", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font: 400 15px/1.5 var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; margin: 0; }
input { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
.lv-ic { width: 20px; height: 20px; flex: none; display: block; }
.lv-hd { font-family: var(--font-hd); font-stretch: 115%; letter-spacing: -.01em; }

/* ---------- Uygulama ikonu karesi ---------- */
.lv-sq {
  position: relative; width: 46px; height: 46px; border-radius: 15px; flex: none;
  display: flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(150deg, var(--c2, #8fd3ff) 0%, var(--c, #0095f6) 70%);
  box-shadow: 0 10px 18px -10px var(--c, #0095f6), inset 0 1.5px 0 rgba(255, 255, 255, .5);
}
.lv-sq .lv-ic { width: 22px; height: 22px; }
.lv-sq-ig {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  box-shadow: 0 10px 18px -10px #d6249f, inset 0 1.5px 0 rgba(255, 255, 255, .4);
}

/* ---------- Basliklar ---------- */
.lv-h1 { margin: 0; font: 700 26px/1.1 var(--font-hd); font-stretch: 115%; }
.lv-sub { margin: 4px 0 16px; color: var(--mute); font-size: 14px; }

/* ---------- Uyari kutulari ---------- */
.lv-alert, .lv-warn {
  display: flex; align-items: flex-start; padding: 12px 13px; border-radius: 16px;
  font-size: 13.5px; line-height: 1.45; margin: 0 0 14px;
}
.lv-alert { background: var(--danger-bg); color: var(--danger); font-weight: 500; }
.lv-alert.is-shake { animation: lv-shake .5s ease both; }
.lv-warn { background: var(--warn-bg); color: var(--warn-ink); font-size: 12.5px; border-radius: 18px; }
.lv-alert > .lv-ic, .lv-warn > .lv-ic { width: 19px; height: 19px; margin: 1px 10px 0 0; flex: none; }
.lv-warn > .lv-ic { color: var(--warn); }
[dir=rtl] .lv-alert > .lv-ic, [dir=rtl] .lv-warn > .lv-ic { margin: 1px 0 0 10px; }
.lv-warn b { display: block; font-size: 12px; letter-spacing: .04em; }
.lv-warn p { margin: 0; }

/* ---------- Form alanlari ---------- */
.lv-field {
  position: relative; display: flex; align-items: center; height: 56px; padding: 0 8px 0 14px;
  border-radius: 18px; background: var(--field); margin-bottom: 12px;
  transition: background .2s, box-shadow .2s;
}
[dir=rtl] .lv-field { padding: 0 14px 0 8px; }
.lv-field:focus-within { background: #fff; box-shadow: 0 0 0 2px var(--brand), 0 0 0 6px var(--brand-ring); }
.lv-fi {
  width: 22px; flex: none; display: flex; align-items: center; justify-content: center;
  color: var(--soft); font-weight: 700; font-size: 17px; margin-right: 10px;
  transition: color .2s, transform .3s var(--spring);
}
[dir=rtl] .lv-fi { margin: 0 0 0 10px; }
.lv-field:focus-within .lv-fi { color: var(--brand); transform: scale(1.15); }
.lv-field input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
  font-size: 16px; color: var(--ink); padding: 0;
}
.lv-field input::placeholder { color: var(--soft); }
.lv-eye {
  width: 40px; height: 40px; border-radius: 12px; flex: none; display: flex; align-items: center;
  justify-content: center; color: var(--soft); transition: background .2s, color .2s;
}
.lv-eye:hover, .lv-eye:focus { background: #ebe9f3; color: var(--ink); outline: 0; }

/* ---------- Ana buton ---------- */
.lv-btn {
  position: relative; overflow: hidden; width: 100%; height: 56px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 600;
  font-size: 16px; background: var(--grad); box-shadow: 0 14px 26px -12px var(--brand-glow);
  transition: transform .3s var(--spring), box-shadow .3s, opacity .2s;
}
.lv-btn:hover { transform: translateY(-2px); }
.lv-btn:active { transform: scale(.97); }
.lv-btn:focus-visible { outline: 3px solid var(--brand-ring); outline-offset: 2px; }
.lv-btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 35%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .4), transparent);
  transform: translateX(-180%) skewX(-18deg); animation: lv-shine 3.6s ease-in-out infinite;
}
.lv-btn .lv-ic { width: 18px; height: 18px; margin-left: 8px; transition: transform .3s var(--spring); }
[dir=rtl] .lv-btn .lv-ic { margin: 0 8px 0 0; }
/* Sagdan solda yalniz yon bildiren ikonlar (ok) aynalanir; tik ters donmesin */
[dir=rtl] .lv-btn .lv-flip { transform: scaleX(-1); }
.lv-btn:hover .lv-ic { transform: translateX(4px); }
[dir=rtl] .lv-btn:hover .lv-flip { transform: scaleX(-1) translateX(4px); }
.lv-btn .lv-sp {
  position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px;
  border-radius: 50%; border: 3px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  opacity: 0; animation: lv-spin .8s linear infinite;
}
.lv-btn.is-busy { pointer-events: none; }
.lv-btn.is-busy > span, .lv-btn.is-busy > .lv-ic { opacity: 0; }
.lv-btn.is-busy .lv-sp { opacity: 1; }
.lv-btn[disabled] { cursor: default; }

/* ---------- Kucuk notlar ---------- */
.lv-hint { display: flex; align-items: flex-start; margin: 12px 2px 0; font-size: 12.5px; color: var(--mute); }
.lv-hint .lv-ic { width: 15px; height: 15px; color: var(--brand); flex: none; margin: 2px 8px 0 0; }
[dir=rtl] .lv-hint .lv-ic { margin: 2px 0 0 8px; }
.lv-notes { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.lv-notes p { display: flex; margin: 0 0 8px; font-size: 12px; color: var(--mute); line-height: 1.45; }
.lv-notes p:last-child { margin-bottom: 0; }
.lv-notes .lv-ic { width: 15px; height: 15px; flex: none; margin: 2px 9px 0 0; color: var(--soft); }
[dir=rtl] .lv-notes .lv-ic { margin: 2px 0 0 9px; }
.lv-fb {
  display: flex; align-items: center; justify-content: center; width: 100%; margin-top: 14px; height: 44px;
  border-radius: 999px; background: var(--bg); font-size: 13px; font-weight: 600; color: var(--ink);
  transition: background .2s, transform .3s var(--spring);
}
.lv-fb:hover { background: #ecebf5; }
.lv-fb:active { transform: scale(.97); }
.lv-fb i {
  width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-style: normal; font-weight: 800; font-size: 12px; color: #fff; background: var(--warn); margin-right: 8px;
}
[dir=rtl] .lv-fb i { margin: 0 0 0 8px; }

/* ---------- Bekleme karti (IW.Wait) ---------- */
.lv-wait { text-align: center; }
.lv-ring { position: relative; width: 150px; height: 150px; margin: 0 auto 14px; }
/* Yalniz halka doner (saat 12'den baslasin); ortadaki tik/kilit ikonlari donmez */
.lv-ring > svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.lv-track { stroke: #efeef5; }
.lv-prog { transition: stroke-dashoffset .9s ease-out; }
.lv-orb { position: absolute; top: -8px; left: -8px; right: -8px; bottom: -8px; animation: lv-spin 3.2s linear infinite; }
.lv-orb::after {
  content: ""; position: absolute; top: 0; left: 50%; width: 12px; height: 12px; margin-left: -6px;
  border-radius: 50%; background: var(--brand); box-shadow: 0 0 12px 3px var(--brand-glow);
}
.lv-center {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.lv-pctw { font: 700 38px/1 var(--font-hd); font-stretch: 115%; letter-spacing: -.02em; color: var(--ink); }
.lv-pctw small { font-size: 17px; color: var(--mute); margin-left: 1px; }
.lv-time { margin-top: 4px; font: 600 13px/1 var(--font); color: var(--soft); }
.lv-cico { display: none; width: 64px; height: 64px; border-radius: 21px; }
.lv-cico .lv-ic { width: 30px; height: 30px; }
.lv-wait.is-done .lv-pctw, .lv-wait.is-done .lv-time { display: none; }
.lv-wait.is-done:not(.is-verify) .lv-cico-done { display: flex; animation: lv-pop .6s var(--spring); --c: var(--ok-dark); --c2: #86efac; }
.lv-wait.is-verify .lv-cico-verify { display: flex; animation: lv-pop .6s var(--spring); --c: var(--info); --c2: #93c5fd; }
.lv-wait.is-done .lv-orb, .lv-wait.is-done .lv-slow, .lv-wait.is-done .lv-dont,
.lv-wait.is-done .lv-approve, .lv-wait.is-done .lv-expect { display: none !important; }
.lv-wait-title { margin: 0; font: 700 23px/1.15 var(--font-hd); font-stretch: 115%; }
.lv-wait-sub { margin: 4px 0 14px; color: var(--mute); font-size: 13.5px; }
.lv-verify-text { display: none; }
.lv-wait.is-verify .lv-verify-text { display: block; }
.lv-steps { list-style: none; margin: 0; padding: 0; text-align: left; }
[dir=rtl] .lv-steps { text-align: right; }
.lv-steps li {
  display: flex; align-items: center; padding: 8px 12px; margin-bottom: 4px; border-radius: 14px;
  font-size: 13.5px; color: var(--soft); transition: background .3s, color .3s;
}
.lv-steps li.is-active { background: var(--brand-softer); color: var(--ink); font-weight: 500; }
.lv-steps li.is-done { color: var(--mute); }
.lv-steps li.is-verify { background: #eff6ff; color: #1d4ed8; font-weight: 600; }
.lv-sd {
  position: relative; width: 22px; height: 22px; flex: none; border-radius: 50%; margin-right: 11px;
  display: flex; align-items: center; justify-content: center; background: #efeef5; transition: background .3s;
}
[dir=rtl] .lv-sd { margin: 0 0 0 11px; }
.lv-sd::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #d4d2e0; }
.lv-steps li.is-active .lv-sd {
  background: none; border: 2.5px solid var(--brand-soft); border-top-color: var(--brand); animation: lv-spin .9s linear infinite;
}
.lv-steps li.is-active .lv-sd::before { display: none; }
.lv-steps li.is-done .lv-sd { background: var(--ok); animation: lv-pop .45s var(--spring); }
.lv-steps li.is-done .lv-sd::before {
  width: 10px; height: 6px; border-radius: 0; background: none; border: 2.5px solid #fff;
  border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg);
}
.lv-steps li.is-verify .lv-sd { background: var(--info); animation: lv-pop .45s var(--spring); }
.lv-steps li.is-verify .lv-sd::before { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.lv-approve {
  display: flex; align-items: flex-start; margin-top: 12px; padding: 12px 13px; border-radius: 18px;
  background: #eff6ff; color: #1e3a8a; font-size: 12.5px; line-height: 1.45; text-align: left;
}
[dir=rtl] .lv-approve { text-align: right; }
.lv-approve .lv-ic {
  width: 20px; height: 20px; flex: none; color: var(--info); margin: 1px 10px 0 0;
  transform-origin: 50% 10%; animation: lv-bell 2.6s ease-in-out infinite;
}
[dir=rtl] .lv-approve .lv-ic { margin: 1px 0 0 10px; }
.lv-slow {
  display: none; align-items: center; margin: 12px 0 0; padding: 10px 12px; border-radius: 14px;
  background: var(--warn-bg); color: var(--warn-ink); font-size: 12.5px; text-align: left;
}
[dir=rtl] .lv-slow { text-align: right; }
.lv-slow.is-on { display: flex; animation: lv-drop .5s var(--spring) both; }
.lv-slow .lv-ic { width: 17px; height: 17px; flex: none; color: var(--warn); margin-right: 8px; animation: lv-hg 2s ease-in-out infinite; }
[dir=rtl] .lv-slow .lv-ic { margin: 0 0 0 8px; }
.lv-dont { margin: 14px 0 0; font-size: 12px; color: var(--mute); }
.lv-dont .lv-ic { display: inline-block; vertical-align: -3px; width: 15px; height: 15px; color: var(--warn); margin-right: 6px; }
[dir=rtl] .lv-dont .lv-ic { margin: 0 0 0 6px; }

/* ---------- Konfeti ---------- */
.lv-cf { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; }

/* ---------- Animasyonlar (yalniz transform/opacity) ---------- */
.lv-swap { animation: lv-swap .55s var(--spring) both; }
@keyframes lv-swap { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes lv-spin { to { transform: rotate(360deg); } }
@keyframes lv-pop { from { transform: scale(.4); } to { transform: scale(1); } }
@keyframes lv-drop { from { opacity: 0; transform: translateY(-14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes lv-shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-8px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(4px); } }
@keyframes lv-shine { 0%, 62% { transform: translateX(-180%) skewX(-18deg); } 100% { transform: translateX(420%) skewX(-18deg); } }
@keyframes lv-bell { 0%, 70%, 100% { transform: rotate(0); } 74% { transform: rotate(-16deg); } 78% { transform: rotate(14deg); } 82% { transform: rotate(-9deg); } 86% { transform: rotate(5deg); } }
@keyframes lv-hg { 0%, 40% { transform: rotate(0); } 50%, 90% { transform: rotate(180deg); } 100% { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}

/* ---------- Dile gore yazi tipi (view yalniz gerekeni yukler) ---------- */
html[lang=hi] { --font: "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --font-hd: "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
html[lang=ar] { --font: "Readex Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --font-hd: "Readex Pro", system-ui, sans-serif; }

/* ---------- Hafif mod: zayif cihaz (RAM <= 2 GB), veri tasarrufu ya da 2G ----------
   Yalniz sus durur; bekleme halkasi, adimlar ve buton tepkisi calismaya devam eder. */
.lv-lite .lv-btn::after { animation: none !important; display: none; }
