/* ════════════════════════════════════════════════════════════
   ANI — Profile Edit / Settings sheet
   File: wwwroot/css/ani-profile-edit.css
   ════════════════════════════════════════════════════════════ */
.apf-ov{position:fixed;inset:0;background:rgba(6,14,12,.6);backdrop-filter:blur(4px);z-index:99990;display:none}
.apf-ov.on{display:block}
.apf-sheet{position:fixed;left:50%;bottom:0;transform:translate(-50%,110%);z-index:99999;
  width:min(520px,100%);max-height:92dvh;overflow-y:auto;direction:rtl;
  background:#fff;border-radius:22px 22px 0 0;box-shadow:0 -14px 44px rgba(0,0,0,.32);
  transition:transform .28s cubic-bezier(.2,.9,.3,1.15);padding-bottom:calc(14px + env(safe-area-inset-bottom,0px))}
.apf-sheet.on{transform:translate(-50%,0)}
@media(min-width:640px){.apf-sheet{bottom:auto;top:50%;transform:translate(-50%,-46%) scale(.96);opacity:0;border-radius:22px;transition:.25s}
  .apf-sheet.on{transform:translate(-50%,-50%) scale(1);opacity:1}}
.apf-head{display:flex;align-items:center;gap:10px;padding:16px 18px 10px;border-bottom:1px solid #eef2f0;position:sticky;top:0;background:#fff;z-index:2;border-radius:22px 22px 0 0}
.apf-head b{font-size:1rem;color:#0f3d2e}
.apf-x{margin-right:auto;width:34px;height:34px;border-radius:11px;border:0;background:#eef4f1;color:#0f3d2e;font-size:1rem;cursor:pointer}
.apf-body{padding:14px 18px 18px}
.apf-row{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.apf-av{width:64px;height:64px;border-radius:18px;display:grid;place-items:center;font-size:2rem;
  background:linear-gradient(135deg,#e8f5f0,#d7ece1);border:1px solid #d5e8df}
.apf-tag{font-size:.7rem;color:#6b7f76;line-height:1.9}
.apf-fld{margin-bottom:11px}
.apf-fld label{display:block;font-size:.68rem;font-weight:800;color:#5a6f66;margin-bottom:5px}
.apf-fld input{width:100%;padding:11px 13px;border-radius:12px;border:1px solid #dbe7e1;background:#f7fbf9;
  color:#12261f;font-family:inherit;font-size:.85rem;outline:none}
.apf-fld input:focus{border-color:#2d7a5f;background:#fff}
.apf-save{width:100%;padding:13px 0;border-radius:14px;border:0;cursor:pointer;font-weight:900;font-size:.9rem;
  color:#fff;background:linear-gradient(135deg,#2d7a5f,#4a9d7f);box-shadow:0 10px 24px rgba(45,122,95,.32);margin-top:6px}
.apf-links{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
.apf-links button{width:100%;padding:11px 0;border-radius:12px;border:1px solid #dbe7e1;background:#f7fbf9;
  color:#12261f;font-family:inherit;font-weight:800;font-size:.78rem;cursor:pointer}
.apf-links button.danger{color:#b42318;border-color:#f3c6c2;background:#fff6f5}
.apf-sec{font-size:.74rem;font-weight:900;color:#0f3d2e;margin:16px 0 8px;display:flex;align-items:center;gap:6px}
.apf-langs{display:flex;flex-wrap:wrap;gap:6px}
.apf-langs button{padding:8px 13px;border-radius:11px;border:1px solid #dbe7e1;background:#f7fbf9;cursor:pointer;font-weight:800;font-size:.74rem;color:#12261f}
.apf-langs button.on{background:linear-gradient(135deg,#2d7a5f,#4a9d7f);color:#fff;border-color:transparent}
.apf-toggle{display:flex;align-items:center;justify-content:space-between;padding:11px 13px;border-radius:12px;border:1px solid #dbe7e1;background:#f7fbf9;margin-bottom:8px}
.apf-toggle b{font-size:.8rem;color:#12261f}
.apf-sw{width:46px;height:26px;border-radius:99px;background:#cfdcd6;position:relative;transition:.2s;flex:0 0 auto}
.apf-sw::after{content:'';position:absolute;top:3px;right:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:.2s;box-shadow:0 2px 6px rgba(0,0,0,.2)}
.apf-sw.on{background:#2d7a5f}
.apf-sw.on::after{right:calc(100% - 23px)}
.apf-editbtn{display:inline-flex;align-items:center;gap:5px;margin-top:6px;padding:6px 12px;border-radius:999px;
  border:1px solid rgba(255,255,255,.45);background:rgba(255,255,255,.18);color:#fff;font-size:.68rem;font-weight:800;cursor:pointer;backdrop-filter:blur(8px)}
.apf-editbtn:active{transform:scale(.96)}
.apf-ok{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);z-index:100001;
  background:#0f3d2e;color:#eafff5;padding:11px 20px;border-radius:14px;font-size:.78rem;font-weight:800;
  box-shadow:0 14px 36px rgba(0,0,0,.4)}
