:root{
    --pw:360px;               /* popup içerik genişliği */
  }
  *{box-sizing:border-box}

  .progress, .progress-stacked {
    --bs-progress-bg: transparent ;
    --bs-progress-border-radius: 0px;
  }
  /* ---------- Leaflet haritası: bulanık zemin ---------- */
  #map{position:fixed;inset:0;z-index:0;font-family:var(--font);
    background:radial-gradient(ellipse at 18% 0%,#ffffff 0,#f1f5f6 45%,#e6edef 100%)}
  .leaflet-tile-pane{filter:blur(3.5px) saturate(.7);opacity:.6}
  .leaflet-container{font-family:var(--font)}

  /* ---------- Üst bar ---------- */
  header{position:fixed;top:0;left:0;right:0;z-index:5;display:flex;justify-content:space-between;align-items:center;padding:26px 36px;pointer-events:none}
  header>*{pointer-events:auto}
  .logo{font-size:24px;line-height:28px;font-weight:700;letter-spacing:-.5px;color:var(--ink);text-decoration:none}
  .top-link{font-size:15px;color:var(--muted)}
  .top-link a{color:var(--ink);font-weight:700;text-decoration:none}
  .top-link a:hover{text-decoration:underline}

  /* ---------- Leaflet popup'ı marka görünümüne çek ---------- */
  /* İç boşluk wrapper'dan verilir (üst boşluk geniş); Leaflet'in kendi ok (tip) yapısı olduğu gibi kalır */
  .leaflet-popup.vl-popup .leaflet-popup-content-wrapper{
    border-radius:24px;padding:48px 34px 34px;color:var(--ink)}
  .leaflet-popup.vl-popup .leaflet-popup-content{
    width:var(--pw) !important;margin:0;font-size:15px;line-height:1.4;text-align:left}
  .leaflet-container a.btn{color:#fff}

  #popupBody .step{display:none}
  #popupBody .step.active{display:block;animation:in .28s ease both}
  @keyframes in{from{opacity:0;transform:translateX(14px)}to{opacity:1;transform:none}}

  .progress{display:flex;gap:6px;margin:0 0 20px}
  .progress i{height:4px;width:22px;border-radius:2px;background:#e3eaee;transition:background .25s,width .25s}
  .progress i.on{background:var(--aquamarine);width:34px}

  #popupBody h1{margin:0 0 10px;font-size:26px;line-height:32px;font-weight:700;letter-spacing:-.6px;color:var(--ink)}
  #popupBody .lead{margin:0 0 22px;font-size:15px;line-height:23px;color:var(--muted)}

  #popupBody label,#popupBody .lbl{display:block;margin:0 0 7px;font-size:14px;font-weight:700;color:#2a3142}
  .field{margin-bottom:16px}
  .input-wrap{position:relative}

  #popupBody .form-control {
    background: rgba(255,255,255,.08);
    border: 1px solid var(--sign-blue);
    color:var(--muted);
    border-radius: 14px;
    padding: 11px 14px; font-size: .95rem;
  }
  #popupBody .form-control::placeholder { 
      color: var(--muted);
   }

  #popupBody input[name="password"].form-control::placeholder { 
      position: absolute; top:18px;
  }
  #popupBody .form-control:focus {
    background: rgba(255,255,255,.12);
    border-color: var(--aquamarine);
    color: var(--ink);
  }
  #popupBody .form-control:-webkit-autofill {
    -webkit-text-fill-color: var(--ink);
  }

  #popupBody input::placeholder{color:#9aa3b2}
  #popupBody input:focus{border-color:var(--navy);box-shadow:0 0 0 3px rgba(28,39,96,.12)}
  #popupBody input.bad{border-color:var(--danger)}
  .input-wrap input{padding-right:78px !important}
  .toggle{position:absolute;right:6px;top:6px;height:40px;padding:0 12px;border:0;background:none;
    font:inherit;font-size:14px;font-weight:700;color:var(--muted);cursor:pointer;border-radius:10px}
  .toggle:hover{color:var(--ink)}

  .btn{
    display:block;
    width:100%;
    height:50px;
    border:0;
    border-radius:10px;
    font:inherit;
    font-size:17px;
    font-weight:700;
    cursor:pointer; 
}

  .link{background:none;border:0;padding:0;font:inherit;font-size:14px;font-weight:700;color:var(--ink);cursor:pointer;text-decoration:none}
  .link:hover{text-decoration:underline}
  .link[disabled]{color:var(--soft);cursor:default;text-decoration:none;font-weight:400}
  #popupBody .foot{margin:20px 0 0;text-align:center;font-size:14px;color:var(--muted)}
  .leaflet-container .foot a{color:var(--ink);font-weight:700;text-decoration:none}
  .leaflet-container .foot a:hover{text-decoration:underline}
  .row{display:flex;justify-content:space-between;align-items:center;margin-top:18px;gap:12px}

  .msg{min-height:20px;margin:-4px 0 12px;font-size:13px;line-height:19px;color:var(--danger)}

  .code{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;margin-bottom:12px}
  #popupBody .code input{height:58px;padding:0;text-align:center;font-size:24px;font-weight:700;border-radius:12px}

  .meter{display:flex;gap:4px;margin:8px 0 0}
  .meter i{flex:1;height:3px;border-radius:2px;background:#e3eaee;transition:background .2s}

  .done .dot{width:14px;height:14px;border-radius:50%;background:var(--teal);margin-bottom:18px;box-shadow:0 0 0 6px rgba(31,157,139,.15)}

  @media (max-width:540px){
    :root{--pw:calc(100vw - 32px - 52px)}
    header{padding:20px}
    .top-link{font-size:14px}
    .leaflet-popup.vl-popup .leaflet-popup-content-wrapper{padding:40px 26px 28px;border-radius:22px}
    .code{gap:6px}
    #popupBody .code input{height:52px;font-size:21px}
  }
  @media (prefers-reduced-motion:reduce){#popupBody .step.active{animation:none}}
