/* ============================================================
   MechMimmic Account Pages
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, system-ui, Arial, sans-serif;
  font-size: 14px;
  background: #f6f7fb;
  color: #172033;
  min-height: 100vh;
}

/* ---- Inline code ---- */
code {
  font-family: ui-monospace, 'Cascadia Code', Consolas, 'Liberation Mono', monospace;
  font-size: 85%;
  background: #eff0f1;
  color: #2d2d2d;
  border-radius: 3px;
  padding: 2px 5px;
  white-space: nowrap;
}
pre code {
  background: none;
  color: inherit;
  font-size: inherit;
  padding: 0;
  border-radius: 0;
  white-space: pre;
}

/* ---- App header ---- */
.appHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: #111827;
  color: white;
  gap: 16px;
}
.appHeaderBrand { display: flex; align-items: center; gap: 8px; }
.appHeaderLogo {
  display: inline-flex;
  align-items: center;
  height: 26px;
  color: white;
  text-decoration: none;
}
.appHeaderLogo svg { display: block; height: 100%; width: auto; }
.appHeaderSep { color: #4b5563; font-size: 18px; }
.appHeaderSection { font-size: 14px; color: #9ca3af; }
.appHeaderActions { display: flex; align-items: center; gap: 8px; }
.appHeaderBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,.1);
  color: white;
  border: 1px solid rgba(255,255,255,.18);
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.appHeaderBtn:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.35); }
.appHeaderLogoutBtn:hover { background: rgba(239,68,68,.35) !important; border-color: rgba(239,68,68,.5) !important; }

/* ---- Layout ---- */
.accountLayout {
  display: flex;
  min-height: calc(100vh - 48px);
}

/* ---- Sidebar ---- */
.accountSidebar {
  width: 240px;
  flex-shrink: 0;
  background: white;
  border-right: 1px solid #e5e7eb;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.accountSidebarUser {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px 18px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 8px;
}
.accountSidebarAvatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #111827;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}
.accountSidebarName { font-size: 13px; font-weight: 600; color: #111827; }
.accountSidebarEmail { font-size: 11px; color: #64748b; margin-top: 1px; word-break: break-all; }
.accountSidebarNav { display: flex; flex-direction: column; padding: 0 8px; }
.sidebarNavSection { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.sidebarNavSection + .sidebarNavSection { margin-top: 16px; padding-top: 16px; border-top: 1px solid #e5e7eb; }
.sidebarNavLabel {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #9ca3af;
  padding: 0 12px 4px;
}
.accountSidebarLink {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  transition: background .12s, color .12s;
}
.accountSidebarLink:hover { background: #f1f5f9; color: #111827; }
.accountSidebarLink.active { background: #eff6ff; color: #2563eb; font-weight: 600; }

/* ---- Content ---- */
.accountContent {
  flex: 1;
  min-width: 0;
  padding: 32px 40px;
  max-width: 860px;
}
.accountPageHeader { margin-bottom: 24px; }
.accountPageTitle { font-size: 22px; font-weight: 700; margin: 0 0 4px; color: #111827; }
.accountPageSubtitle { font-size: 13px; color: #64748b; margin: 0; }

/* ---- Alerts ---- */
.accountAlert {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 18px;
  border: 1px solid transparent;
}
.accountAlert--success { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.accountAlert--warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.accountAlert--error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

/* ---- Sections ---- */
.accountSection {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 20px;
}
.accountSectionTitle { font-size: 14px; font-weight: 700; color: #111827; margin: 0 0 16px; }

/* ---- Forms ---- */
.accountForm { }
.formRow { margin-bottom: 16px; }
.formLabel { display: block; font-size: 13px; font-weight: 500; color: #374151; margin-bottom: 5px; }
.formRequired { color: #ef4444; }
.formInput {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 13px;
  color: #111827;
  background: white;
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}
.formInput:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px #eff6ff; }
.formInput:disabled { background: #f9fafb; color: #6b7280; cursor: not-allowed; }
.formInput.is-error { border-color: #ef4444; }
.formTextarea { min-height: 80px; resize: vertical; }
.totpQrCode { display: block; width: 180px; height: 180px; margin: 0 0 20px; border: 1px solid #e5e7eb; border-radius: 10px; padding: 8px; background: white; }
.formCheckboxLabel { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: #374151; cursor: pointer; }
.formCheckboxLabel input[type=checkbox] { margin: 0; }
.formError { font-size: 12px; color: #dc2626; margin: 4px 0 0; }
.formHint { font-size: 12px; color: #6b7280; margin: 4px 0 0; }
.formHint a { color: #2563eb; }
.formActions { display: flex; align-items: center; gap: 12px; padding-top: 8px; }
.formActions--inline { margin-top: 12px; }
.formRowGrid { display: grid; gap: 16px; }
.formRowGrid--2 { grid-template-columns: 1fr 1fr; }
.formRowGrid--3 { grid-template-columns: 1fr 1fr 1fr; }

/* ---- Radio group ---- */
.radioGroup { display: flex; flex-direction: column; gap: 8px; }
.radioLabel {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .12s, background .12s;
}
.radioLabel:hover { background: #f8fafc; }
.radioLabel input[type=radio] { margin-top: 3px; flex-shrink: 0; accent-color: #2563eb; }
.radioLabel input[type=radio]:checked ~ .radioText strong { color: #2563eb; }
.radioLabel:has(input:checked) { border-color: #2563eb; background: #eff6ff; }
.radioText { display: flex; flex-direction: column; gap: 2px; }
.radioText strong { font-size: 13px; color: #111827; }
.radioText span { font-size: 12px; color: #6b7280; }

/* ---- Toggle switch ---- */
.toggleLabel { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; font-weight: 500; color: #374151; }
.toggleLabel input[type=checkbox] { display: none; }
.toggleSwitch {
  width: 38px; height: 22px;
  background: #d1d5db;
  border-radius: 999px;
  position: relative;
  flex-shrink: 0;
  transition: background .15s;
}
.toggleSwitch::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: white;
  transition: transform .15s;
  box-shadow: 0 1px 3px #0003;
}
.toggleLabel input:checked ~ .toggleSwitch { background: #2563eb; }
.toggleLabel input:checked ~ .toggleSwitch::after { transform: translateX(16px); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background .12s, border-color .12s, opacity .12s;
  white-space: nowrap;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn--primary { background: #111827; color: white; border-color: #111827; }
.btn--primary:hover:not(:disabled) { background: #1e293b; }
.btn--ghost { background: white; color: #374151; border-color: #d1d5db; }
.btn--ghost:hover:not(:disabled) { background: #f1f5f9; }
.btn--danger { background: #fff1f2; color: #be123c; border-color: #fecdd3; }
.btn--danger:hover:not(:disabled) { background: #ffe4e6; }
.btn--sm { padding: 5px 10px; font-size: 12px; border-radius: 6px; }

/* ---- Billing tabs ---- */
.billingTabs {
  display: flex;
  gap: 2px;
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 24px;
  overflow-x: auto;
}
.billingTab {
  padding: 8px 16px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: color .12s, border-color .12s;
}
.billingTab:hover { color: #111827; }
.billingTab.active { color: #2563eb; border-bottom-color: #2563eb; font-weight: 600; }
.billingPanel { display: none; }
.billingPanel.active { display: block; }

/* ---- Overview cards ---- */
.overviewGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.overviewCard {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px 20px;
}
.overviewCardLabel { font-size: 12px; color: #6b7280; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.overviewCardValue { font-size: 24px; font-weight: 700; color: #111827; margin-bottom: 4px; }
.overviewCardMeta { font-size: 12px; color: #94a3b8; }

/* ---- Billing panel header ---- */
.billingPanelHeader { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.billingPanelTitle { font-size: 16px; font-weight: 700; color: #111827; margin: 0; }
.billingPanelSubtitle { font-size: 13px; color: #6b7280; margin: 4px 0 0; flex-basis: 100%; }

/* ---- Payment method cards ---- */
.pmCard {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 10px;
}
.pmCard--default { border-color: #2563eb; background: #eff6ff; }
.pmCardBrand { width: 44px; flex-shrink: 0; }
.pmBrandLabel { display: inline-flex; align-items: center; justify-content: center; padding: 4px 8px; background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 6px; font-size: 12px; font-weight: 700; color: #374151; }
.pmCardDetails { flex: 1; min-width: 0; }
.pmCardNumber { display: block; font-size: 14px; font-weight: 600; color: #111827; font-family: ui-monospace, monospace; }
.pmCardExpiry { display: block; font-size: 12px; color: #6b7280; margin-top: 2px; }
.pmDefault { display: inline-block; font-size: 11px; font-weight: 600; color: #2563eb; background: #dbeafe; border-radius: 999px; padding: 1px 7px; margin-top: 3px; }
.pmCardActions { display: flex; gap: 6px; flex-shrink: 0; }

/* ---- Add card form ---- */
.addCardForm {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 20px 24px;
  margin-top: 16px;
}
.addCardFormTitle { font-size: 14px; font-weight: 700; margin: 0 0 16px; color: #111827; }
#payment-element { margin-bottom: 8px; }

/* ---- Billing table ---- */
.billingTable { width: 100%; border-collapse: collapse; font-size: 13px; }
.billingTable th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; padding: 8px 12px; border-bottom: 2px solid #e5e7eb; }
.billingTable td { padding: 12px; border-bottom: 1px solid #f1f5f9; color: #374151; }
.billingTable tr:last-child td { border-bottom: none; }
.billingTable a { color: #2563eb; text-decoration: none; }
.billingTable a:hover { text-decoration: underline; }
.billingTable tbody tr:hover { background: #f8fafc; }

/* ---- Status badges ---- */
.statusBadge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.statusBadge--active { background: #dcfce7; color: #15803d; }
.statusBadge--inactive { background: #f1f5f9; color: #64748b; }
.statusBadge--pending { background: #fef9c3; color: #854d0e; }

/* ---- Promo ---- */
.promoApplyRow { display: flex; gap: 8px; align-items: center; max-width: 420px; }
.promoInput { flex: 1; font-family: ui-monospace, monospace; font-size: 14px; letter-spacing: .05em; }
.promoMessage { margin-top: 10px; font-size: 13px; padding: 8px 12px; border-radius: 8px; }
.promoMessage--ok { background: #f0fdf4; color: #15803d; }
.promoMessage--err { background: #fef2f2; color: #dc2626; }

/* ---- Empty state ---- */
.emptyState { text-align: center; padding: 40px 20px; color: #6b7280; }
.emptyStateIcon { font-size: 36px; margin-bottom: 12px; }
.emptyState p { margin: 0 0 6px; font-size: 14px; }
.emptyStateHint { font-size: 12px; color: #94a3b8; }

/* ---- Loading / error ---- */
.loadingMsg { color: #64748b; font-size: 13px; padding: 20px 0; }
.errorMsg { color: #dc2626; font-size: 13px; padding: 10px 0; }

/* ---- Save status ---- */
.saveStatus { font-size: 13px; }
.saveStatus--ok { color: #15803d; }
.saveStatus--err { color: #dc2626; }

/* ---- Projects page ---- */
.projectsSection { margin-bottom: 8px; }
.projectsSectionHeader {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.projectsSectionTitle {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}
.projectsCount {
  font-size: 11px;
  font-weight: 700;
  background: #f3f4f6;
  color: #6b7280;
  padding: 1px 8px;
  border-radius: 10px;
}
.projectTable {
  width: 100%;
  border-collapse: collapse;
}
.projectTable thead th {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #6b7280;
  padding: 10px 16px;
  background: #f9fafb;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}
.projectRow td {
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
  font-size: 13px;
  color: #374151;
}
.projectRow:last-child td { border-bottom: none; }
.projectRow:hover td { background: #fafafa; }
.projectNameCell { display: flex; align-items: center; gap: 10px; }
.projectIcon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.projectIcon--shared { background: #fdf4ff; color: #9333ea; }
.projectName { font-weight: 600; color: #111827; }
.projectMeta { font-size: 11px; color: #9ca3af; margin-top: 1px; }
.projectWorkspace { font-size: 13px; color: #374151; font-weight: 500; }
.projectOwner {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #9ca3af;
  margin-top: 2px;
}
.projectDate { font-size: 13px; color: #374151; white-space: nowrap; }
.projectDateBy { font-size: 11px; color: #9ca3af; margin-top: 2px; }
.sharedAvatars { display: flex; align-items: center; gap: -4px; }
.sharedAvatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #374151;
  color: white;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  margin-right: -6px;
  cursor: default;
  flex-shrink: 0;
}
.sharedAvatar:first-child { margin-left: 0; }
.sharedAvatarMore {
  font-size: 10px;
  font-weight: 700;
  color: #6b7280;
  background: #f3f4f6;
  border: 2px solid white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: -6px;
}
.projectOnlyYou { font-size: 12px; color: #9ca3af; font-style: italic; }
.projectActions { text-align: right; white-space: nowrap; }
.projectOpenBtn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: #eff6ff;
  color: #2563eb;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background .12s;
}
.projectOpenBtn:hover { background: #dbeafe; }
.projectOpenBtn--view { background: #f5f3ff; color: #7c3aed; }
.projectOpenBtn--view:hover { background: #ede9fe; }
.projectsEmpty {
  text-align: center;
  padding: 48px 20px;
  color: #9ca3af;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.projectsEmpty p { margin: 0; font-size: 14px; color: #6b7280; }

/* ---- Org sidebar badge ---- */
.accountSidebarOrgBadge {
  font-size: 11px;
  color: #6b7280;
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.orgRoleBadge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
}
.orgRoleBadge--admin { background: #eff6ff; color: #2563eb; }

/* ---- Page header row ---- */
.accountPageHeaderRow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

/* ---- Buttons ---- */
.btnPrimary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
}
.btnPrimary:hover { background: #1d4ed8; }
.btnSecondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: white;
  color: #374151;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
}
.btnSecondary:hover { background: #f9fafb; }

/* ---- Form enhancements ---- */
.formGroup { margin-bottom: 16px; }
.formRequired { color: #ef4444; }
.formInput--error { border-color: #ef4444 !important; }
.formGrid { display: grid; gap: 16px; }
.formGrid--2col { grid-template-columns: 1fr 1fr; }
.formSelect {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 13px;
  color: #111827;
  background: white;
  font-family: inherit;
  cursor: pointer;
}
.formSelect:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px #eff6ff; }

/* ---- User management table ---- */
.userTable {
  width: 100%;
  border-collapse: collapse;
}
.userTable thead th {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #6b7280;
  padding: 10px 16px;
  background: #f9fafb;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}
.userTable thead th:first-child { border-radius: 14px 0 0 0; }
.userTable thead th:last-child { border-radius: 0 14px 0 0; }
.userRow td {
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
  font-size: 13px;
  color: #374151;
}
.userRow:last-child td { border-bottom: none; }
.userRow--inactive { opacity: .55; }
.userCell { display: flex; align-items: center; gap: 10px; }
.userAvatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #111827;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.userName { font-weight: 600; color: #111827; }
.userEmail { font-size: 12px; color: #6b7280; margin-top: 1px; }
.userJoined { font-size: 12px; color: #9ca3af; white-space: nowrap; }
.userActions { display: flex; align-items: center; gap: 4px; justify-content: flex-end; }
.userYouBadge {
  font-size: 10px;
  font-weight: 700;
  color: #6b7280;
  background: #f3f4f6;
  padding: 2px 8px;
  border-radius: 10px;
}
.userActionBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 1px solid #e5e7eb;
  background: white;
  color: #374151;
  cursor: pointer;
  transition: background .12s, border-color .12s;
  padding: 0;
}
.userActionBtn:hover { background: #f1f5f9; border-color: #cbd5e1; }
.userActionBtn--danger:hover { background: #fef2f2; border-color: #fca5a5; color: #dc2626; }
.removeForm { display: inline-flex; }
.userTableEmpty { text-align: center; color: #6b7280; padding: 40px 16px !important; font-size: 13px; }
.roleSelect {
  padding: 4px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
  color: #374151;
  background: white;
  font-family: inherit;
  cursor: pointer;
}
.roleSelect:focus { outline: none; border-color: #2563eb; }
.roleBadge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
}
.roleBadge--admin { background: #eff6ff; color: #2563eb; }
.roleBadge--member { background: #f3f4f6; color: #374151; }
.statusBadge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}
.statusBadge--active { background: #f0fdf4; color: #15803d; }
.statusBadge--inactive { background: #fef2f2; color: #991b1b; }

/* ---- Email address badges ---- */
.emailBadge { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 11px; font-weight: 600; margin-left: 6px; }
.emailBadge--verified { background: #f0fdf4; color: #15803d; }
.emailBadge--unverified { background: #fffbeb; color: #92400e; }
.emailBadge--primary { background: #eff6ff; color: #2563eb; }

/* ---- Add user success ---- */
.addUserSuccess {
  display: flex;
  gap: 14px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 20px;
}
.addUserSuccessTitle { font-size: 15px; font-weight: 700; color: #111827; margin-bottom: 6px; }
.addUserSuccessMsg { font-size: 13px; color: #374151; margin: 0 0 12px; }
.tempPasswordBox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
}
.tempPasswordBox code { font-family: ui-monospace, monospace; letter-spacing: .05em; color: #111827; }
.copyBtn {
  font-size: 12px;
  font-weight: 600;
  color: #2563eb;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
}
.addUserSuccessActions { display: flex; gap: 10px; margin-bottom: 24px; }

/* ============================================================
   Allauth account-management pages (email / password / MFA /
   recovery codes) -- these render through django-allauth's own
   "elements" templates and crispy-forms, which ship no CSS of
   their own. Re-skin their output classes to match the rest of
   the account area instead of touching the shared element/form
   templates (those also drive login & password-reset and have
   JS wired to specific ids/names, e.g. account.js's
   manageEmailForm and mfa's recovery_codes.js).
   ============================================================ */
.accountContent h1 { font-size: 22px; font-weight: 700; margin: 0 0 4px; color: #111827; }
.accountContent h2 { font-size: 14px; font-weight: 700; color: #111827; margin: 24px 0 12px; }
.accountContent > p { font-size: 13px; color: #64748b; margin: 0 0 16px; max-width: 60ch; }

.accountContent .row.mb-3,
.accountContent [id^="div_id_"] { margin-bottom: 16px; }
.accountContent .col-sm-10 { width: 100%; }

.accountContent label,
.accountContent .form-label { display: block; font-size: 13px; font-weight: 500; color: #374151; margin-bottom: 5px; }

.accountContent .form-control {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 13px;
  color: #111827;
  background: white;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.accountContent .form-control:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px #eff6ff; }
.accountContent .form-control:read-only { background: #f9fafb; }
.accountContent .form-text { font-size: 12px; color: #6b7280; margin: 4px 0 0; }
.accountContent .form-text ul { margin: 4px 0 0; padding-left: 18px; }

.accountContent .form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}
.accountContent .form-check-input { margin: 0; }
.accountContent .form-check-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #111827; margin: 0; }

.accountContent .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background .12s, border-color .12s, opacity .12s;
  white-space: nowrap;
}
.accountContent .btn-primary { background: #111827; color: white; border-color: #111827; }
.accountContent .btn-primary:hover { background: #1e293b; }
.accountContent .btn-secondary { background: white; color: #374151; border-color: #d1d5db; }
.accountContent .btn-secondary:hover { background: #f1f5f9; }
.accountContent .btn-danger { background: #fff1f2; color: #be123c; border-color: #fecdd3; }
.accountContent .btn-danger:hover { background: #ffe4e6; }
.accountContent .btn-success { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.accountContent .btn-warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }

.accountContent .badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  vertical-align: middle;
  margin-left: 6px;
}
.accountContent .badge.bg-success { background: #dcfce7; color: #15803d; }
.accountContent .badge.bg-warning { background: #fef9c3; color: #854d0e; }
.accountContent .badge.bg-danger { background: #fef2f2; color: #991b1b; }
.accountContent .badge.bg-secondary { background: #f1f5f9; color: #64748b; }
.accountContent .badge.bg-primary { background: #eff6ff; color: #2563eb; }

.accountContent .alert {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  border: 1px solid transparent;
  margin-bottom: 16px;
}
.accountContent .alert-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
