/* ═══════════════════════════════════════════════
   DAARA — Settings Page Styles
   ═══════════════════════════════════════════════ */

.settings-section { background: var(--cream); padding: 3rem 2rem 5rem; }

.settings-layout {
  max-width: 680px;
}

/* ─── Settings cards ─── */
.settings-card {
  background: white;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  margin-bottom: 1.4rem;
  box-shadow: var(--shadow-soft);
  position: relative;
}
.settings-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--thread), var(--terracotta));
  border-radius: var(--radius) var(--radius) 0 0;
  opacity: 0.5;
}

.settings-card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--deep-slate);
  margin-bottom: 0.3rem;
}
.settings-card-desc {
  font-size: 0.85rem;
  color: var(--slate);
  margin-bottom: 1.5rem;
  line-height: 1.55;
}

/* ─── Security status ─── */
.security-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--sand);
  flex-wrap: wrap;
  gap: 0.75rem;
}
.security-row:last-child { border-bottom: none; }
.security-label { font-size: 0.9rem; color: var(--deep-slate); font-weight: 500; }
.security-value { font-size: 0.85rem; color: var(--slate); font-style: italic; }
.security-status-enabled { color: var(--deep-sage); font-weight: 600; }
.security-status-disabled { color: var(--slate); }

/* ─── Email display (read-only) ─── */
.email-display {
  font-size: 0.93rem;
  color: var(--slate);
  padding: 0.7rem 1rem;
  background: var(--warm-white);
  border: 1px solid var(--sand);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

/* ─── Danger zone ─── */
.settings-card.danger { border-color: rgba(168,84,50,0.3); }
.settings-card.danger::before { background: var(--rust); opacity: 0.4; }
.settings-card.danger .settings-card-title { color: var(--rust); }
.btn-danger {
  background: transparent;
  color: var(--rust);
  border: 1.5px solid var(--rust);
  padding: 0.6rem 1.4rem;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: var(--transition);
}
.btn-danger:hover { background: var(--rust); color: white; }

/* ─── 2FA modal ─── */
.twofa-qr {
  display: block;
  width: 160px;
  height: 160px;
  margin: 1rem auto;
  border: 1px solid var(--sand);
  border-radius: var(--radius-sm);
}
.twofa-secret {
  font-family: monospace;
  font-size: 0.85rem;
  background: var(--warm-white);
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  text-align: center;
  color: var(--deep-slate);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  border: 1px solid var(--sand);
  word-break: break-all;
}
.twofa-instructions {
  font-size: 0.85rem;
  color: var(--slate);
  margin-bottom: 1rem;
  line-height: 1.6;
}

@media (max-width: 680px) {
  .settings-section { padding: 2.5rem 1.25rem 4rem; }
  .settings-card { padding: 1.5rem 1.2rem; }
  .security-row { flex-direction: column; align-items: flex-start; }
}
