/* Auth/onboarding ekranlari (Madde 13): tek kabuk icinde ROTA olarak
   #view-root'a cizilir; `body.auth-mode` kabuk kromunu gizler. Ekran stili
   ARTIK burada (@layer views) — JS'te ayri `<style>` dunyasi YOK (B dilimi).
   Paylasilan palet token'dan tuketilir; token karsiligi OLMAYAN bespoke
   dekoratif degerler (marka paneli gradyanlari/orb'lari, AI-kart beyazlari,
   hero gradyani, OTP gri alanlari) BILINCLI yerel istisnadir. */
@layer views {
  /* ---- auth-mode: tek kabuk full-ekran ---- */
  body.auth-mode .shell { display: block; }
  body.auth-mode .sidebar,
  body.auth-mode .mobile-topbar,
  body.auth-mode .company-menu-wrap,
  body.auth-mode .nav-overlay,
  body.auth-mode .ai-fab,
  body.auth-mode .ai-dock { display: none; }
  /* full ekran: --content-max sınırı kalkar; yükseklik zoom'a göre (Madde 14) */
  body.auth-mode .shell-main { padding: 0; max-width: none; min-height: calc(100vh / var(--wide-zoom)); }

  /* ======================= GIRIS (fx-) ======================= */
  /* Fixed DEGIL: kabuk akisinda kalir ki html{zoom} birlesik olcegine katilir
     (Madde 14). Fixed olsa geniS ekranda zoom'dan kacip 1x kucuk kalirdi. */
  .fx-login { display: flex; flex-direction: row; width: 100%; min-height: calc(100vh / var(--wide-zoom)); background: var(--surface); color: var(--ink); overflow: auto; }
  .fx-login * { box-sizing: border-box; }
  @keyframes fx-pulseDot { 0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(52,211,153,.55); } 50% { opacity: .65; box-shadow: 0 0 0 6px rgba(52,211,153,0); } }
  @keyframes fx-floatCard { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-13px); } }
  @keyframes fx-chipA { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
  @keyframes fx-chipB { 0%,100% { transform: translateY(0); } 50% { transform: translateY(14px); } }
  @keyframes fx-orb { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(34px,-26px) scale(1.1); } }
  @keyframes fx-orb2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-30px,24px) scale(1.12); } }
  @keyframes fx-rise { 0% { opacity: 0; transform: translateY(7px); } 100% { opacity: 1; transform: translateY(0); } }
  @keyframes fx-sheen { 0% { transform: translateX(-120%); } 60%,100% { transform: translateX(320%); } }
  /* marka paneli gradyani: bespoke ART (token disi) */
  .fx-brand { display: flex; flex: 1.05; position: relative; overflow: hidden; flex-direction: column; justify-content: space-between; padding: 46px 52px; background: linear-gradient(152deg, #2E2A78 0%, #4338CA 44%, var(--primary-2) 100%); }
  .fx-form-panel { flex: none; width: 520px; background: var(--surface); display: flex; align-items: center; justify-content: center; padding: 44px; }
  .fx-card { width: 100%; max-width: 384px; }
  .fx-compact-logo { display: none; }
  .fx-in { width: 100%; background: #F7F8FB; border: 1.5px solid rgba(22,24,43,.1); border-radius: var(--r-md); padding: 13px 14px 13px 42px; font: inherit; font-size: 14.5px; color: var(--ink); outline: none; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
  .fx-in:focus { border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 3px rgba(79,70,229,.13); }
  .fx-in::placeholder { color: var(--label); }
  .fx-submit { position: relative; overflow: hidden; margin-top: 6px; width: 100%; border: none; cursor: pointer; background: var(--grad-primary); color: #fff; font: inherit; font-size: 15px; font-weight: 700; border-radius: var(--r-md); padding: 14px; display: flex; align-items: center; justify-content: center; gap: 9px; box-shadow: 0 14px 28px -12px rgba(79,70,229,.7); transition: transform .16s ease, box-shadow .16s ease; }
  .fx-submit:hover { transform: translateY(-1px); box-shadow: 0 18px 34px -12px rgba(79,70,229,.8); }
  .fx-submit:active { transform: translateY(0); }
  .fx-submit[disabled] { opacity: .75; cursor: default; transform: none; }
  .fx-eye { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); cursor: pointer; display: flex; padding: 4px; border-radius: 7px; background: none; border: 0; }
  .fx-eye:hover { background: rgba(22,24,43,.05); }
  .fx-secondary { margin-top: 11px; width: 100%; cursor: pointer; background: var(--surface); color: var(--primary); font: inherit; font-size: 14.5px; font-weight: 700; border: 1.5px solid rgba(79,70,229,.35); border-radius: var(--r-md); padding: 13px; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background .16s ease, border-color .16s ease; }
  .fx-secondary:hover { background: #F5F5FF; border-color: var(--primary); }
  .fx-switch { margin-top: 18px; text-align: center; font-size: 13.5px; color: var(--muted); }
  .fx-switch button { background: none; border: 0; color: var(--primary); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; padding: 0; }
  .fx-switch button:hover { text-decoration: underline; }
  @media (max-width: 1024px) {
    .fx-brand { display: none; }
    .fx-login { background: radial-gradient(125% 80% at 50% -12%, var(--primary-soft) 0%, var(--bg) 56%); }
    .fx-form-panel { width: 100%; background: transparent; padding: 48px 28px; }
    .fx-card { max-width: 408px; background: var(--surface); border: 1px solid rgba(22,24,43,.08); border-radius: 24px; box-shadow: 0 34px 74px -34px rgba(49,46,129,.4); padding: 40px 36px; }
    .fx-compact-logo { display: flex; }
  }
  @media (max-width: 640px) {
    .fx-form-panel { padding: 30px 18px; }
    .fx-card { padding: 30px 22px 28px; }
  }

  /* ==================== ONBOARDING (ob-) ==================== */
  /* Fixed DEGIL (Madde 14): kabuk akisinda, yukseklik zoom'a gore. */
  .ob-root { display: flex; width: 100%; height: calc(100vh / var(--wide-zoom)); overflow: hidden; background: var(--bg); color: var(--ink); font-family: var(--font-sans); }
  .ob-root * { box-sizing: border-box; }
  @keyframes ob-stepIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
  @keyframes ob-floatOrb { 0%,100% { transform: translate(0,0); } 50% { transform: translate(22px,-26px); } }
  @keyframes ob-popIn { 0% { opacity: 0; transform: scale(.6); } 60% { transform: scale(1.08); } 100% { opacity: 1; transform: scale(1); } }
  /* hero gradyani: bespoke ART (token disi) */
  .ob-brand { position: relative; overflow: hidden; width: 44%; max-width: 540px; flex: none; background: linear-gradient(160deg, var(--primary) 0%, #3730A3 58%, var(--primary-2) 100%); color: #fff; padding: 46px 44px; display: flex; flex-direction: column; }
  .ob-right { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--surface); }
  .ob-mobiletop { display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 5; }
  .ob-scroll { flex: 1; overflow-y: auto; display: flex; padding: 48px; }
  .ob-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--primary); text-transform: uppercase; }
  .ob-h { font-family: var(--font-display); font-weight: 700; font-size: 30px; letter-spacing: -.02em; color: #191627; line-height: 1.12; }
  .ob-sub { font-size: 15px; color: var(--muted); line-height: 1.55; margin-top: 10px; }
  .ob-label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: var(--muted); margin-bottom: 7px; }
  .ob-in { width: 100%; font-size: 14.5px; font-weight: 500; color: var(--ink); background: #EDEFF5; border: 1px solid rgba(22,24,43,.09); border-radius: 11px; padding: 12px 14px; outline: none; transition: border-color .15s, box-shadow .15s, background .15s; }
  .ob-in:focus { background: var(--surface); border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,.12); }
  textarea.ob-in { resize: vertical; }
  .ob-primary { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: 600; color: #fff; background: var(--grad-primary); border: none; border-radius: var(--r-md); padding: 14px; cursor: pointer; box-shadow: 0 14px 30px -12px rgba(79,70,229,.6); transition: transform .2s, box-shadow .2s; }
  .ob-primary:hover { transform: translateY(-1px); box-shadow: 0 18px 36px -12px rgba(79,70,229,.7); }
  .ob-primary[disabled] { opacity: .7; cursor: default; transform: none; }
  .ob-ghost { font-size: 15px; font-weight: 600; color: var(--ink); background: var(--surface); border: 1px solid rgba(22,24,43,.14); border-radius: var(--r-md); padding: 14px 22px; cursor: pointer; transition: background .15s; }
  .ob-ghost:hover { background: #F7F7FB; }
  .ob-link { background: none; border: 0; color: var(--primary); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }
  .ob-link:hover { text-decoration: underline; }
  .ob-otp { width: 100%; height: 60px; text-align: center; font-family: var(--font-display); font-size: 24px; font-weight: 700; color: #191627; background: #EDEFF5; border: 1.5px solid rgba(22,24,43,.09); border-radius: var(--r-md); outline: none; transition: border-color .15s, box-shadow .15s, background .15s; }
  .ob-otp:focus { background: var(--surface); border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,.12); }
  .ob-typecard { flex: 1; position: relative; border: 1.5px solid rgba(22,24,43,.12); border-radius: 13px; padding: 10px 11px; cursor: pointer; background: var(--surface); transition: border-color .15s, background .15s; display: flex; align-items: center; gap: 10px; }
  .ob-typecard:hover { border-color: rgba(79,70,229,.45); }
  .ob-typecard.on { border-color: var(--primary); background: #F5F4FB; }
  .ob-typecard .ob-check { display: none; position: absolute; top: 7px; right: 7px; width: 16px; height: 16px; border-radius: 50%; background: var(--primary); color: #fff; align-items: center; justify-content: center; font-size: 9px; }
  .ob-typecard.on .ob-check { display: flex; }
  .ob-vrow { display: flex; align-items: flex-start; gap: 14px; cursor: pointer; margin: -7px -10px; padding: 7px 10px; border-radius: var(--r-md); transition: background .15s; }
  .ob-vrow:hover { background: rgba(255,255,255,.09); }
  .ob-vdot { flex: none; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; font-family: var(--font-display); background: rgba(255,255,255,.12); color: rgba(255,255,255,.7); border: 2px solid rgba(255,255,255,.25); }
  .ob-vrow.active .ob-vdot { background: #fff; color: var(--primary); border-color: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.18); }
  .ob-vrow.done .ob-vdot { background: var(--success-dot); color: #fff; border-color: var(--success-dot); }
  .ob-vlabel { font-size: 15px; font-weight: 600; color: rgba(255,255,255,.6); }
  .ob-vrow.active .ob-vlabel, .ob-vrow.done .ob-vlabel { color: #fff; }
  .ob-vsub { font-size: 13px; margin-top: 1px; color: rgba(255,255,255,.45); }
  .ob-vrow.active .ob-vsub, .ob-vrow.done .ob-vsub { color: rgba(255,255,255,.75); }
  .ob-vline { width: 2px; height: 18px; background: rgba(255,255,255,.22); margin: 4px 0 4px 16px; }
  .ob-mdot { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: #E7E8F0; color: #9A9DB0; cursor: pointer; }
  .ob-mdot.on { background: var(--primary); color: #fff; }
  .ob-err { background: var(--danger-soft); border: 1px solid rgba(220,38,38,.25); border-radius: 11px; padding: 10px 13px; font-size: 12.5px; color: #B42318; margin-top: 16px; }
  .ob-panel { animation: ob-stepIn .45s cubic-bezier(.16,.84,.44,1); }
  .ob-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
  .ob-trust { flex: none; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 0 24px 24px; color: #A0A3B4; font-size: 12.5px; line-height: 1.4; }
  @media (max-width: 920px) {
    .ob-brand { display: none; }
    .ob-mobiletop { display: flex; }
    .ob-scroll { padding: 34px 30px; }
  }
  @media (max-width: 560px) {
    .ob-scroll { padding: 28px 20px; }
    .ob-grid2 { grid-template-columns: 1fr; }
  }
}
