/* ═══════════════════════════════════════════════════════════════════
   ink-ls · Settings
   Account / Security / Linked accounts / Payouts / Plan & Limits.
   Tab strip at the top swaps the visible `.sec` block.
   ═══════════════════════════════════════════════════════════════════ */

/* Centered content area inside Sidebar's row container. */
.settings-content {
  flex: 1;
  min-width: 0;
  overflow: auto;
  padding: 28px 36px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

/* ── Section nav (horizontal tab strip) ──────────────────────────── */
.settings-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.nav-item {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-item:hover { color: var(--fg); }
.nav-item.active { color: var(--fg); border-bottom-color: var(--accent); }

/* ── Section content ─────────────────────────────────────────────── */
.sec { display: none; animation: fadeUp 0.2s ease-out; }
.sec.active { display: block; }

.sec-title { font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.sec-desc  { font-size: 13px; color: var(--fg-muted); margin-bottom: 20px; }
.sec-divider { height: 1px; background: var(--border-muted); margin: 24px 0; }

/* ── Setting rows ────────────────────────────────────────────────── */
.s-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-muted);
}
.s-row:last-child { border-bottom: none; }
.s-label { font-size: 14px; font-weight: 500; color: #fff; }
.s-hint  { font-size: 12px; color: var(--fg-muted); margin-top: 2px; }
.s-val   { font-size: 14px; color: var(--fg-muted); }

/* Expandable subsections (email change, password change, …). */
.s-expand { display: none; padding: 12px 0; }
.s-expand.open { display: block; animation: fadeUp 0.2s ease-out; }

.s-pair {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 10px;
}
.s-pair .flex-1 .field { width: 100%; }

@media (max-width: 900px) {
  .settings-content { padding: 20px; max-width: 100%; }
  .s-pair { flex-direction: column; }
}

/* ── Stripe checkout modal ───────────────────────────────────────── */
.stripe-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  backdrop-filter: blur(10px);
}
.stripe-modal {
  background: #fff;
  width: 100%;
  max-width: 600px;
  height: 90%;
  max-height: 800px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
#checkout {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  background: #fff;
}
.stripe-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  border-radius: 100px;
  width: 28px;
  height: 28px;
  font-size: 16px;
  cursor: pointer;
  color: #333;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stripe-close:hover { background: rgba(0, 0, 0, 0.15); }
.stripe-status {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  font-size: 12px;
  color: #999;
  font-weight: 600;
  border-bottom: 1px solid #f0f0f0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* ── Security mode toggle (2FA vs PASSWORD) ──────────────────────── */
.security-toggle {
  display: flex;
  background: var(--bg-surface);
  border-radius: 100px;
  padding: 4px;
  gap: 4px;
  border: 1px solid var(--border);
  width: fit-content;
}
.security-option {
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  color: var(--fg-muted);
  transition: 0.2s;
  text-transform: uppercase;
}
.security-option.active.safe { background: rgba(255, 50, 50, 0.2); color: #ff5555; }
.security-option.active.fast { background: rgba(50, 255, 50, 0.2); color: #55ff55; }
