/* ===== SETTINGS MODAL ===== */

.settings-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: .25s;
  z-index: 9999;
}

.settings-overlay.show{
  opacity:1;
  visibility:visible;
}

.settings-window{
  width:min(900px,95%);
  height:min(700px,90%);
  background:#0f172a;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.08);
  overflow:hidden;
  display:flex;
  box-shadow:0 20px 60px rgba(0,0,0,.5);
}

.settings-sidebar{
  width:240px;
  background:#020617;
  border-right:1px solid rgba(255,255,255,.06);
  padding:24px;
}

.settings-sidebar h2{
  margin:0 0 25px;
  font-size:24px;
}

.settings-menu{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.settings-tab{
  border:none;
  background:none;
  color:#bcc6c2;
  text-align:left;
  padding:12px 14px;
  border-radius:10px;
  cursor:pointer;
  font-size:15px;
  transition:.2s;
}

.settings-tab:hover{
  background:#1e293b;
}

.settings-tab.active{
  background:#6e9fc2;
  color:white;
}

.settings-content{
  flex:1;
  padding:30px;
  overflow-y:auto;
}

.settings-page{
  display:none;
}

.settings-page.active{
  display:block;
}

.settings-footer{
  margin-top:40px;
  display:flex;
  justify-content:flex-end;
  gap:12px;
}

.settings-footer button{
  padding:12px 18px;
  border:none;
  border-radius:12px;
  cursor:pointer;
  font-weight:bold;
}

.cancel-settings{
  background:#374151;
  color:white;
}

.save-settings{
  background:#59ad78;
  color:var(--fp-text-inverse);
}

.settings-field-error {
  margin: -2px 0 0;
  color: var(--fp-danger);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.45;
  white-space: pre-line;
}

.settings-field input[aria-invalid="true"] {
  border-color: var(--fp-danger);
  box-shadow: 0 0 0 3px var(--fp-danger-soft);
}

.account-delete-dialog { width:min(520px,calc(100% - 28px)); border:1px solid var(--fp-danger); border-radius:18px; color:var(--fp-text-primary); background:var(--fp-surface-raised); box-shadow:0 28px 80px rgba(0,0,0,.45); }
.account-delete-dialog::backdrop { background:rgba(0,0,0,.7); backdrop-filter:blur(4px); }
.account-delete-dialog form { display:grid; gap:16px; padding:22px; }
.account-delete-dialog h2,.account-delete-dialog p { margin:0; }
.account-delete-dialog p { line-height:1.5; color:var(--fp-text-muted); }
.account-delete-dialog input { width:100%; padding:11px; border:1px solid var(--fp-border); border-radius:9px; color:var(--fp-text-primary); background:var(--fp-surface); }
.account-delete-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:10px; }
.account-delete-confirm { padding:12px 16px; border:0; border-radius:10px; color:#fff; background:var(--fp-danger); font-weight:800; cursor:pointer; }
.account-delete-confirm:disabled { cursor:not-allowed; opacity:.6; }
html[dir="rtl"] .account-delete-dialog { text-align:right; }
@media (max-width:520px) { .account-delete-dialog { margin:auto; } .account-delete-actions > * { flex:1; } }
