/* ==========================================================================
   CLIENT DASHBOARD > ACCOUNT (#account)
   Path: assets/public/css/client/account.css
   Markup built by assets/public/js/ui/Client/account-ui.js, scoped under .nsrl-acct.
   Inputs follow the site-wide form standard (common/css/validation.css); this file only lays them out.
   ========================================================================== */

.nsrl-acct {
  --acct-surface: #ffffff;
  --acct-head-bg: #f8fafc;
  --acct-ink: #1e293b;
  --acct-text: #334155;
  --acct-muted: #64748b;
  --acct-line: #e2e8f0;
  --acct-cyan: #64dde3;
  --acct-cyan-hover: #4ecfd5;
  --acct-cyan-deep: #087f87;
  --acct-cyan-text: #053b3e;
  --acct-cyan-tint: #eefbfb;
  --acct-cyan-border: #8de9ee;
  --acct-danger: #be123c;
  --acct-danger-bg: #fff1f2;
  --acct-danger-line: #fecdd3;
  width: 100%;
  max-width: 1080px;
  color: var(--acct-ink);
  font-family: var(--nsrl-font, "DM Sans", sans-serif);
}
.nsrl-acct *,
.nsrl-acct *::before,
.nsrl-acct *::after { box-sizing: border-box; }
.nsrl-acct [hidden] { display: none !important; }

.nsrl-acct .nsrl-acct__heading {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--acct-ink);
}
.nsrl-acct__loading { margin: 0; font-size: 14px; color: var(--acct-muted); }
.nsrl-acct__loading.is-error { color: var(--acct-danger); }

/* ---- Cards ------------------------------------------------------------- */
.nsrl-acct__card {
  margin-bottom: 18px;
  background: var(--acct-surface);
  border: 1px solid var(--acct-line);
  border-radius: 10px;
  overflow: hidden;
}
.nsrl-acct__card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 14px 18px;
  background: var(--acct-head-bg);
  border-bottom: 1px solid var(--acct-line);
}
.nsrl-acct__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--acct-cyan);
  color: var(--acct-cyan-text);
  font-size: 11px;
  font-weight: 700;
}
.nsrl-acct .nsrl-acct__card-title {
  margin: 0 4px 0 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--acct-text);
}
.nsrl-acct__card-body { padding: 18px; }

.nsrl-acct__pill {
  padding: 2px 8px;
  border: 1px solid var(--acct-line);
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--acct-muted);
  background: #ffffff;
}
.nsrl-acct__pill.is-approved { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.nsrl-acct__pill.is-pending { background: #fffbeb; border-color: #fde68a; color: #b45309; }
.nsrl-acct__pill.is-type { background: var(--acct-cyan-tint); border-color: var(--acct-cyan-border); color: var(--acct-cyan-deep); }

/* ---- Form -------------------------------------------------------------- */
.nsrl-acct__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}
.nsrl-acct__field { min-width: 0; }
.nsrl-acct__field.is-full { grid-column: 1 / -1; }
.nsrl-acct__field > label {
  display: block;
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--acct-text);
}

/* Email: shown, not editable */
.nsrl-acct__field.is-locked .nsrl-input,
.nsrl-acct__field.is-locked .nsrl-input:hover,
.nsrl-acct__field.is-locked .nsrl-input:focus {
  background-color: #f8fafc !important;
  border: 2px dashed #e2e8f0 !important;
  color: var(--acct-muted) !important;
  cursor: default;
}
.nsrl-acct__field.is-locked .nsrl-float__label { color: #94a3b8 !important; }
.nsrl-acct__note {
  margin: 6px 2px 0;
  font-size: 12px;
  color: var(--acct-muted);
}

.nsrl-acct__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

/* ---- Buttons ----------------------------------------------------------- */
.nsrl-acct .nsrl-acct__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin: 0;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.nsrl-acct .nsrl-acct__btn:focus-visible { outline: 2px solid var(--acct-cyan-deep); outline-offset: 2px; }
.nsrl-acct .nsrl-acct__btn--white { background: #ffffff; border-color: #cbd5e1; color: var(--acct-ink); }
.nsrl-acct .nsrl-acct__btn--white:hover { background: var(--acct-cyan-tint); border-color: var(--acct-cyan-border); color: var(--acct-cyan-text); }
.nsrl-acct .nsrl-acct__btn--accent { background: var(--acct-cyan); border-color: rgba(8, 127, 135, 0.28); color: var(--acct-cyan-text); }
.nsrl-acct .nsrl-acct__btn--accent:hover:not(:disabled) { background: var(--acct-cyan-hover); box-shadow: 0 1px 4px rgba(8, 127, 135, 0.22); }
.nsrl-acct .nsrl-acct__btn--danger { background: var(--acct-danger-bg); border-color: var(--acct-danger-line); color: var(--acct-danger); font-weight: 600; }
.nsrl-acct .nsrl-acct__btn--danger:hover:not(:disabled) { background: #ffe4e6; border-color: #fda4af; }
.nsrl-acct .nsrl-acct__btn--danger:disabled {
  background: #f8fafc;
  border-color: var(--acct-line);
  color: #94a3b8;
  cursor: not-allowed;
}

/* ---- Delete card ------------------------------------------------------- */
.nsrl-acct__delete-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nsrl-acct__delete-info { min-width: 0; }
.nsrl-acct__lead { margin: 0 0 4px; font-size: 14px; color: var(--acct-text); }
.nsrl-acct__sub { margin: 0; font-size: 13px; line-height: 1.5; color: var(--acct-muted); }

/* ---- Delete confirmation (lives on <body>) ----------------------------- */
.nsrl-acct__backdrop {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.5);
  opacity: 0;
  transition: opacity 0.15s ease;
  font-family: var(--nsrl-font, "DM Sans", sans-serif);
}
.nsrl-acct__backdrop.is-open { opacity: 1; }
.nsrl-acct__backdrop *,
.nsrl-acct__backdrop *::before,
.nsrl-acct__backdrop *::after { box-sizing: border-box; }
.nsrl-acct__backdrop [hidden] { display: none !important; }
.nsrl-acct__modal {
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 20px 22px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.35);
  color: #1e293b;
}
.nsrl-acct__modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.nsrl-acct__modal-head h3 { margin: 0; font-size: 17px; font-weight: 700; color: #be123c; }
.nsrl-acct__backdrop .nsrl-acct__modal-close {
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.nsrl-acct__backdrop .nsrl-acct__modal-close:hover { background: #f1f5f9; color: #1e293b; }
.nsrl-acct__modal-msg { margin: 0 0 14px; font-size: 13.5px; line-height: 1.5; color: #475569; }
.nsrl-acct__confirm-label { display: block; margin: 0 0 6px; font-size: 12.5px; color: #64748b; }
.nsrl-acct__backdrop .nsrl-acct__confirm-input {
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 10px 12px;
  border: 2px solid transparent;
  border-radius: 6px;
  background: #f1f3f4;
  color: #1e293b;
  font: inherit;
  font-size: 15px;
  letter-spacing: 1px;
  -webkit-appearance: none;
  appearance: none;
}
.nsrl-acct__backdrop .nsrl-acct__confirm-input:focus { outline: none; background: #ffffff; border-color: #be123c; }
.nsrl-acct__modal-error {
  margin: 10px 0 0;
  padding: 8px 12px;
  border-radius: 6px;
  background: #fff1f2;
  font-size: 13px;
  color: #be123c;
}
.nsrl-acct__modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}
.nsrl-acct__backdrop .nsrl-acct__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin: 0;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.nsrl-acct__backdrop .nsrl-acct__btn--white { background: #ffffff; border-color: #cbd5e1; color: #1e293b; }
.nsrl-acct__backdrop .nsrl-acct__btn--white:hover:not(:disabled) { background: #f8fafc; }
.nsrl-acct__backdrop .nsrl-acct__btn--danger-solid { background: #be123c; border-color: #be123c; color: #ffffff; }
.nsrl-acct__backdrop .nsrl-acct__btn--danger-solid:hover:not(:disabled) { background: #9f1239; }
.nsrl-acct__backdrop .nsrl-acct__btn:disabled { opacity: 0.5; cursor: not-allowed; }
.nsrl-acct__backdrop .nsrl-acct__btn:focus-visible,
.nsrl-acct__backdrop .nsrl-acct__modal-close:focus-visible { outline: 2px solid #be123c; outline-offset: 2px; }

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 640px) {
  .nsrl-acct__grid { grid-template-columns: minmax(0, 1fr); }
  .nsrl-acct__card-body { padding: 16px; }
  .nsrl-acct__delete-row { flex-direction: column; align-items: stretch; }
  .nsrl-acct .nsrl-acct__btn--danger { width: 100%; }
  .nsrl-acct__actions .nsrl-acct__btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .nsrl-acct__backdrop { transition: none; }
}
