/* NdA — Conta (account) · Design System v2
   -------------------------------------------------------------------------
   Re-skin of the mock "conta" screen: avatar header + segmented tabs
   (Perfil / Planos / Pagamento / Segurança). Use ONLY the --v2-* tokens from
   theme-v2.css; never hardcode hex.
   ------------------------------------------------------------------------- */

/* Tighten the top padding a touch — the header card already breathes. */
.nda-account {
  padding-top: 18px;
}

/* ── Identity header card ───────────────────────────────────────────────────
   Avatar monogram + name + email + user-type pill on a soft surface card. */
.nda-account__header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  background: var(--v2-surface);
  border: 1px solid var(--v2-border);
  border-radius: 22px;
  box-shadow: 0 14px 36px -28px var(--v2-shadow);
}

.nda-account__avatar {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--v2-accent-soft);
  color: var(--v2-accent);
  border: 1px solid var(--v2-border);
  font-family: var(--v2-font-title);
  font-size: 27px;
  line-height: 1;
  letter-spacing: 0.5px;
  user-select: none;
}

.nda-account__id {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nda-account__name {
  margin: 0;
  font-family: var(--v2-font-title);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.1;
  color: var(--v2-text);
  overflow-wrap: anywhere;
}

.nda-account__email {
  margin: 0;
  font-size: 14px;
  color: var(--v2-soft);
  overflow-wrap: anywhere;
}

.nda-account__badge {
  align-self: flex-start;
  margin-top: 5px;
  padding: 3px 11px;
  border-radius: var(--v2-radius-pill);
  background: var(--v2-surface2);
  border: 1px solid var(--v2-border);
  color: var(--v2-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

/* ── Segmented / pill tab bar ───────────────────────────────────────────────
   Inset track on surface2; active tab = raised accent pill, inactive = soft
   text. Horizontally scrollable on narrow screens so it never wraps. */
.nda-account__tabs {
  display: flex;
  gap: 4px;
  margin: 18px 0 16px;
  padding: 5px;
  background: var(--v2-surface2);
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius-pill);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.nda-account__tabs::-webkit-scrollbar {
  display: none;
}

.nda-account__tab {
  flex: 1 0 auto;
  white-space: nowrap;
  padding: 9px 16px;
  border: none;
  border-radius: var(--v2-radius-pill);
  background: transparent;
  color: var(--v2-soft);
  font-family: var(--v2-font-body);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.nda-account__tab:hover {
  color: var(--v2-text);
}

.nda-account__tab--active,
.nda-account__tab--active:hover {
  background: var(--v2-accent);
  color: #fff;
  box-shadow: 0 8px 18px -10px var(--v2-shadow);
}

.nda-account__tab:focus-visible {
  outline: 2px solid var(--v2-accent);
  outline-offset: 2px;
}

/* ── Panel + shared card ────────────────────────────────────────────────────*/
.nda-account__panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nda-card {
  background: var(--v2-surface);
  border: 1px solid var(--v2-border);
  border-radius: 20px;
  box-shadow: 0 14px 36px -28px var(--v2-shadow);
}

.nda-account__section {
  padding: 20px 18px;
}

/* Settings stacks several cards — keep them evenly spaced inside the panel. */
.nda-settings {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nda-account__section-title {
  margin: 0 0 4px;
  font-family: var(--v2-font-title);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.15;
  color: var(--v2-text);
}

.nda-account__section-title--danger {
  color: var(--v2-accent);
}

.nda-account__section-hint {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--v2-soft);
}

/* Danger card — a subtle accent-tinted edge, not a loud red block. */
.nda-account__section--danger {
  border-color: var(--v2-accent-soft);
  background: var(--v2-bg2);
}

/* ── Perfil facts (definition list) ─────────────────────────────────────────*/
.nda-account__facts {
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
}

.nda-account__fact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--v2-border);
}

.nda-account__fact:first-child {
  border-top: none;
}

.nda-account__fact-label {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--v2-soft);
}

.nda-account__fact-value {
  margin: 0;
  text-align: right;
  font-size: 15px;
  font-weight: 600;
  color: var(--v2-text);
  overflow-wrap: anywhere;
}

/* ── Planos list ────────────────────────────────────────────────────────────*/
.nda-account__plans {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nda-account__plan {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  background: var(--v2-surface2);
  border: 1px solid var(--v2-border);
  border-radius: 14px;
}

.nda-account__plan-name {
  font-family: var(--v2-font-title);
  font-size: 19px;
  color: var(--v2-text);
}

.nda-account__plan-desc {
  font-size: 14px;
  color: var(--v2-soft);
}

/* ── Empty state (Pagamento) ────────────────────────────────────────────────*/
.nda-account__empty {
  margin-top: 4px;
  padding: 30px 18px;
  text-align: center;
  background: var(--v2-surface2);
  border: 1px dashed var(--v2-border);
  border-radius: 16px;
}

.nda-account__empty-glyph {
  font-size: 38px;
  line-height: 1;
}

.nda-account__empty-title {
  margin: 12px 0 6px;
  font-family: var(--v2-font-title);
  font-size: 19px;
  color: var(--v2-text);
}

.nda-account__empty-text {
  margin: 0 auto;
  max-width: 340px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--v2-soft);
}

/* ── Buttons ────────────────────────────────────────────────────────────────
   The base .nda-btn / --primary / --secondary primitive is defined once in
   profile.css (loaded before this file). Here we only add the variants and
   states the account screen needs on top of it. */
.nda-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* Destructive action (delete account) — same accent fill as primary; the
   surrounding danger card + the EXCLUIR confirmation carry the warning weight,
   so the button stays on-palette rather than introducing an off-token red. */
.nda-btn--danger {
  background: var(--v2-accent);
  color: #fff;
  box-shadow: 0 12px 26px -16px var(--v2-shadow);
}

.nda-btn--danger:hover:not(:disabled) {
  background: var(--v2-accent-strong);
}

/* CTA buttons in panels stretch to the card edges on mobile. */
.nda-account__cta {
  display: flex;
  width: 100%;
}

/* ── Forms (password / delete) ──────────────────────────────────────────────*/
.nda-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nda-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nda-field__label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--v2-text);
}

.nda-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--v2-surface2);
  border: 1px solid var(--v2-border);
  color: var(--v2-text);
  font-family: var(--v2-font-body);
  font-size: 15px;
  line-height: 1.3;
  transition: border-color 150ms ease, box-shadow 150ms ease;
  -webkit-appearance: none;
  appearance: none;
}

.nda-input::placeholder {
  color: var(--v2-soft);
}

.nda-input:focus {
  outline: none;
  border-color: var(--v2-accent);
  box-shadow: 0 0 0 3px var(--v2-accent-soft);
}

.nda-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.nda-form__error {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--v2-accent);
}

.nda-form__success {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--v2-gold);
}

.nda-settings__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ── Slightly roomier from tablet up ────────────────────────────────────────*/
@media (min-width: 560px) {
  .nda-account__section {
    padding: 24px 22px;
  }

  .nda-account__cta {
    display: inline-flex;
    width: auto;
  }
}
