:root {
  --brand-50: #e8f7fb;
  --brand-100: #d4eef5;
  --brand-400: #2a9fc0;
  --brand-500: #1f7f9b;
  --brand-600: #15677e;
  --bg-app: #f8fbfd;
  --text-main: #111827;
  --text-heading: #14213d;
  --text-muted: #6b7280;
  --border-soft: #e5e7eb;
  --border-brand: rgba(42, 159, 192, 0.28);
  --shadow-card: 0 18px 50px rgba(17, 24, 39, 0.07);
  --shadow-button: 0 12px 28px rgba(42, 159, 192, 0.24);
  --left-safe-area: 160px;
}

body {
  background: var(--bg-app, #f8fbfd);
}

.sb-main {
  position: relative;
  min-height: 100vh;
  padding: 56px 56px 72px 180px;
  color: var(--text-main, #111827);
  background: linear-gradient(180deg, #fbfdff 0%, #f8fbfd 56%, #f3f8fb 100%);
}

.account-page {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
  max-width: none;
  margin: 0 auto;
  padding-top: 0;
}

.account-page * {
  box-sizing: border-box;
}

.account-page::before {
  content: "";
  position: fixed;
  left: 16px;
  bottom: 0;
  width: 210px;
  height: 280px;
  pointer-events: none;
  opacity: 0.24;
  background:
    radial-gradient(ellipse at 54% 84%, rgba(42, 159, 192, 0.12) 0 46px, transparent 47px),
    radial-gradient(ellipse at 34% 62%, rgba(42, 159, 192, 0.09) 0 64px, transparent 65px),
    radial-gradient(ellipse at 78% 74%, rgba(42, 159, 192, 0.08) 0 42px, transparent 43px);
  border-radius: 999px 999px 0 0;
}

.account-page-header {
  max-width: 820px;
  margin: 0 0 24px;
  text-align: left;
}

.account-eyebrow {
  margin: 0 0 10px;
  color: var(--text-muted, #6b7280);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.account-page-header h1 {
  margin: 0;
  color: var(--text-heading, #14213d);
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(36px, 3vw, 40px);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 0.98;
}

.account-page-header p {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--text-muted, #6b7280);
  font-size: 15px;
  line-height: 1.45;
}

.account-layout {
  display: block;
}

.account-settings-card {
  display: block;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(17, 24, 39, 0.06);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-card, 0 18px 50px rgba(17, 24, 39, 0.07));
  backdrop-filter: blur(16px);
}

.account-tabs {
  display: flex;
  gap: 6px;
  padding: 14px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.06);
}

.account-tab {
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  color: var(--text-muted, #6b7280);
  background: transparent;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.account-tab:hover,
.account-tab.is-active {
  color: var(--brand-600, #15677e);
  background: var(--brand-50, #e8f7fb);
}

.account-section-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  overflow-y: auto;
  padding: 18px;
  border: 0;
  border-right: 1px solid rgba(17, 24, 39, 0.07);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(248, 250, 252, 0.42));
  box-shadow: none;
  backdrop-filter: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(42, 159, 192, 0.28) transparent;
}

.account-section-link {
  min-height: 44px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #536176;
  background: transparent;
  font-size: 14px;
  font-weight: 650;
  font-family: inherit;
  text-align: left;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  cursor: pointer;
}

.account-section-link:hover,
.account-section-link.is-active {
  color: var(--brand-600, #15677e);
  background: rgba(232, 247, 251, 0.62);
  border-color: rgba(42, 159, 192, 0.08);
}

.account-section-link.is-active {
  box-shadow: none;
}

.account-support-link {
  margin-top: auto;
  padding: 14px 12px 10px;
  color: var(--text-muted, #6b7280);
  font-size: 12px;
  line-height: 1.35;
}

.account-support-link span,
.account-support-link a {
  display: block;
}

.account-support-link a {
  width: fit-content;
  margin-top: 4px;
  color: var(--brand-600, #15677e);
  font-weight: 700;
  text-decoration: none;
}

.account-support-link a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.account-section-separator {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(17, 24, 39, 0.06);
}

.account-logout {
  color: var(--text-muted, #6b7280);
  min-height: 38px;
  font-size: 13px;
  font-weight: 600;
}

.account-logout:hover {
  color: #b91c1c;
  background: rgba(254, 226, 226, 0.58);
  border-color: transparent;
  box-shadow: none;
}

.account-section-icon {
  width: 19px;
  height: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: currentColor;
}

.account-section-icon svg,
.account-help-icon svg,
.account-soft-icon svg,
.account-tip svg,
.account-safe-note svg,
.account-link-button svg,
.account-locked-input svg,
.account-note svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-content {
  min-width: 0;
  min-height: 0;
  overflow: visible;
  overscroll-behavior: contain;
  padding: 28px 32px 32px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(42, 159, 192, 0.28) transparent;
}

.account-card-support {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(17, 24, 39, 0.06);
  color: var(--text-muted, #6b7280);
  font-size: 13px;
  line-height: 1.4;
}

.account-card-support span {
  margin-right: 6px;
}

.account-card-support a {
  color: var(--brand-600, #15677e);
  font-weight: 700;
  text-decoration: none;
}

.account-card-support a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.account-section-nav::-webkit-scrollbar,
.account-content::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.account-section-nav::-webkit-scrollbar-track,
.account-content::-webkit-scrollbar-track {
  background: transparent;
}

.account-section-nav::-webkit-scrollbar-thumb,
.account-content::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(42, 159, 192, 0.24);
}

.account-section-nav::-webkit-scrollbar-thumb:hover,
.account-content::-webkit-scrollbar-thumb:hover {
  background: rgba(42, 159, 192, 0.38);
}

.account-section[hidden] {
  display: none;
}

.account-section-header {
  margin-bottom: 24px;
}

.account-section-header--split {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.account-section-header h2 {
  margin: 0;
  color: var(--text-heading, #14213d);
  font-size: 26px;
  font-weight: 850;
  line-height: 1.2;
}

.account-section-header p {
  max-width: 620px;
  margin: 10px 0 0;
  color: var(--text-muted, #6b7280);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.account-section--profile .account-section-header {
  margin-bottom: 16px;
}

.account-section--profile .account-section-header h2 {
  font-size: 24px;
}

.account-section--profile .account-section-header p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.4;
}

.account-profile-summary {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 108px;
  margin-bottom: 24px;
  padding: 16px 20px;
  border: 1px solid rgba(42, 159, 192, 0.18);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(232, 247, 251, 0.66), rgba(255, 255, 255, 0.84));
}

.account-section--profile .account-profile-summary {
  min-height: 86px;
  gap: 18px;
  margin-bottom: 16px;
  padding: 12px 16px;
}

.account-profile-summary--compact {
  margin-bottom: 18px;
}

.account-avatar-large {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(180deg, var(--brand-400, #2a9fc0), var(--brand-500, #1f7f9b));
  box-shadow: 0 14px 30px rgba(42, 159, 192, 0.2);
  font-size: 24px;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.account-section--profile .account-avatar-large {
  width: 60px;
  height: 60px;
  font-size: 21px;
}

.account-profile-summary h3 {
  margin: 0;
  color: var(--text-heading, #14213d);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.25;
}

.account-profile-summary p {
  margin: 6px 0 0;
  color: var(--text-muted, #6b7280);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.account-form {
  display: grid;
  gap: 18px;
}

.account-section--profile .account-form {
  gap: 16px;
  max-width: 100%;
}

.account-form--security {
  margin-top: 22px;
}

.account-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.account-section--profile .account-field-grid {
  gap: 16px;
}

.account-field label,
.account-field-topline label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #536176;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.25;
}

.account-section--profile .account-field label {
  margin-bottom: 6px;
  font-size: 13px;
}

.account-field input {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border: 1px solid var(--border-soft, #e5e7eb);
  border-radius: 12px;
  outline: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-main, #111827);
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.account-section--profile .account-field input {
  height: 46px;
  padding: 0 16px;
  border-radius: 11px;
  font-size: 14px;
}

.account-form--security .account-field input {
  letter-spacing: 0.12em;
}

.account-field input::placeholder {
  color: #a0a9b8;
}

.account-field input:focus {
  border-color: var(--brand-400, #2a9fc0);
  box-shadow: 0 0 0 4px rgba(42, 159, 192, 0.12);
}

.account-field input[readonly] {
  padding-right: 48px;
  color: #6b7280;
  background: #f3f6f8;
  cursor: not-allowed;
}

.account-locked-input {
  position: relative;
}

.account-locked-input span {
  position: absolute;
  right: 16px;
  top: 50%;
  width: 22px;
  height: 22px;
  color: #a4adba;
  transform: translateY(-50%);
}

.account-label-hint {
  width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(83, 97, 118, 0.3);
  border-radius: 999px;
  color: #6b7280;
  font-size: 11px;
  font-weight: 850;
}

.account-field-note {
  margin: 8px 0 0;
  color: var(--text-muted, #6b7280);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.account-section--profile .account-field-note {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.35;
}

.account-field-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}

.account-field-topline label {
  margin: 0;
}

.account-link-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand-500, #1f7f9b);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}

.account-link-button svg {
  width: 18px;
  height: 18px;
}

.account-link-button:hover {
  color: var(--brand-600, #15677e);
}

.account-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.account-section--profile .account-actions {
  margin-top: 4px;
}

.account-section--profile .account-button {
  min-height: 44px;
  padding: 0 24px;
}

.account-section--access .account-section-header {
  margin-bottom: 16px;
}

.account-section--access .account-section-header h2 {
  font-size: 24px;
  font-weight: 750;
}

.account-section--access .account-section-header p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.4;
}

.account-section--access .account-profile-summary--compact {
  min-height: 86px;
  gap: 18px;
  margin-bottom: 16px;
  padding: 12px 16px;
}

.account-section--access .account-avatar-large {
  width: 60px;
  height: 60px;
  font-size: 21px;
}

.account-section--security .account-section-header,
.account-section--help .account-section-header {
  margin-bottom: 16px;
}

.account-section--security .account-section-header h2,
.account-section--help .account-section-header h2 {
  font-size: 24px;
  font-weight: 750;
}

.account-section--security .account-section-header p,
.account-section--help .account-section-header p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.4;
}

.account-actions--split {
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
}

.account-actions--split > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.account-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.account-button[hidden] {
  display: none;
}

.account-button:hover {
  transform: translateY(-1px);
}

.account-button--primary {
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  background: linear-gradient(180deg, var(--brand-400, #2a9fc0), var(--brand-500, #1f7f9b));
  box-shadow: var(--shadow-button, 0 12px 28px rgba(42, 159, 192, 0.24));
}

.account-button--primary:hover {
  background: linear-gradient(180deg, var(--brand-500, #1f7f9b), var(--brand-600, #15677e));
}

.account-button--primary:disabled {
  border-color: #e5e7eb;
  color: #9ca3af;
  background: #e5e7eb;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.account-button--primary:disabled:hover {
  background: #e5e7eb;
}

.account-button--secondary {
  border: 1px solid var(--border-brand, rgba(42, 159, 192, 0.28));
  color: var(--brand-600, #15677e);
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.04);
}

.account-button--secondary:hover {
  background: var(--brand-50, #e8f7fb);
}

.account-message {
  display: none;
  margin: 0 0 18px;
  padding: 13px 16px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
}

.account-message.error {
  display: block;
  border: 1px solid #fecaca;
  color: #b91c1c;
  background: #fee2e2;
}

.account-message.success {
  display: block;
  border: 1px solid rgba(42, 159, 192, 0.26);
  color: var(--brand-600, #15677e);
  background: var(--brand-50, #e8f7fb);
}

.account-soft-panel {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 82px;
  padding: 14px 16px;
  border: 1px solid rgba(42, 159, 192, 0.18);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(232, 247, 251, 0.66), rgba(255, 255, 255, 0.84));
}

.account-soft-panel--help {
  align-items: flex-start;
}

.account-soft-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  color: var(--brand-500, #1f7f9b);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(42, 159, 192, 0.1);
}

.account-soft-icon svg {
  width: 25px;
  height: 25px;
}

.account-soft-panel h3 {
  margin: 0;
  color: var(--text-heading, #14213d);
  font-size: 15px;
  font-weight: 700;
}

.account-soft-panel p {
  margin: 6px 0 0;
  color: #536176;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.account-tip,
.account-safe-note,
.account-note {
  color: #6c7890;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.account-tip {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 11px;
  align-items: start;
  margin: 0;
}

.account-tip svg,
.account-safe-note svg {
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.account-safe-note {
  max-width: 240px;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 9px;
  margin: 0;
}

.account-status-badge,
.account-muted-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  white-space: nowrap;
}

.account-status-badge {
  min-height: 30px;
  padding: 0 13px;
  border: 1px solid rgba(42, 159, 192, 0.2);
  color: var(--brand-600, #15677e);
  background: var(--brand-50, #e8f7fb);
  font-size: 12px;
  font-weight: 650;
}

.account-muted-badge {
  margin-top: 8px;
  color: var(--brand-600, #15677e);
  font-size: 12px;
  font-weight: 650;
}

.account-access-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 20px;
}

.account-access-grid div {
  min-height: 70px;
  padding: 13px 16px;
  border: 1px solid rgba(17, 24, 39, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.account-access-grid span {
  display: block;
  margin-bottom: 7px;
  color: var(--text-muted, #6b7280);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.account-access-grid strong {
  display: block;
  color: var(--text-heading, #14213d);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.25;
}

.account-included h3 {
  margin: 0 0 10px;
  color: var(--text-heading, #14213d);
  font-size: 15px;
  font-weight: 700;
}

.account-included ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.account-included li {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(42, 159, 192, 0.14);
  border-radius: 13px;
  background: rgba(232, 247, 251, 0.44);
  color: var(--text-main, #111827);
  font-size: 13px;
  font-weight: 600;
}

/* Only the marker span (the one with aria-hidden) is the circular badge.
   The label span (added for data-i18n binding) keeps the normal li text
   style, otherwise the label text would also render as a tiny gradient
   circle. */
.account-included li span[aria-hidden] {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(180deg, var(--brand-400, #2a9fc0), var(--brand-500, #1f7f9b));
  font-weight: 800;
}

.account-note {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 13px;
  margin-top: 18px;
  padding: 14px 18px;
  border: 1px solid rgba(42, 159, 192, 0.18);
  border-radius: 18px;
  background: rgba(232, 247, 251, 0.5);
}

.account-note > span {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-500, #1f7f9b);
}

.account-note svg {
  width: 21px;
  height: 21px;
}

.account-note p {
  margin: 0;
}

.account-note strong {
  color: var(--text-heading, #14213d);
  font-weight: 650;
}

.account-help-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.account-help-card {
  display: none;
}

.account-help-icon {
  width: 70px;
  height: 70px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  border-radius: 999px;
  color: var(--brand-500, #1f7f9b);
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.12);
}

.account-help-icon svg {
  width: 34px;
  height: 34px;
}

.account-help-card h2 {
  margin: 0;
  color: var(--text-heading, #14213d);
  font-size: 20px;
  font-weight: 750;
  line-height: 1.2;
}

.account-help-card p {
  max-width: 240px;
  margin: 12px auto 20px;
  color: #40516a;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
}

.account-help-button {
  min-width: 148px;
}

.account-spinner {
  width: 18px;
  height: 18px;
  display: inline-block;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-top-color: #ffffff;
  border-radius: 999px;
  animation: account-spin 700ms linear infinite;
}

@keyframes account-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1240px) {
  .account-layout {
    grid-template-columns: 1fr;
  }

  .account-help-card {
    min-height: auto;
    text-align: left;
  }

  .account-help-icon,
  .account-help-card p {
    margin-left: 0;
  }
}

@media (max-width: 1024px) {
  .sb-main {
    padding: 76px 20px 36px;
  }

  .account-page {
    padding-top: 24px;
  }

  .account-page-header {
    margin-left: 0;
  }

  .account-settings-card {
    height: auto;
  }

  .account-tabs {
    overflow-x: auto;
  }

  .account-tab {
    flex: 0 0 auto;
  }
}

@media (max-width: 760px) {
  .account-page-header h1 {
    font-size: 34px;
  }

  .account-content {
    padding: 28px 22px;
  }

  .account-tabs {
    padding: 12px;
    gap: 8px;
  }

  .account-tab {
    min-height: 42px;
    padding: 0 12px;
  }

  .account-profile-summary,
  .account-soft-panel,
  .account-section-header--split {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-field-grid,
  .account-access-grid,
  .account-included ul {
    grid-template-columns: 1fr;
  }

  .account-field-topline,
  .account-actions--split,
  .account-actions--split > div,
  .account-help-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .account-button {
    width: 100% !important;
    white-space: normal !important;
    font-size: 12px !important;
    gap: 4px !important;
  }

  .account-safe-note {
    max-width: none;
  }
}


/* === Billing pricing card (Adgang tab) ============================== */

#billing-pricing-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* --- Premium intro banner ------------------------------------------- */
#billing-pricing-card > .account-note {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border: 1px solid var(--border-brand, rgba(42, 159, 192, 0.28));
  border-radius: 18px;
  background: linear-gradient(135deg, #e8f7fb 0%, #ffffff 100%);
  box-shadow: 0 6px 20px rgba(42, 159, 192, 0.08);
}

#billing-pricing-card > .account-note > span[aria-hidden] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  font-size: 20px;
  color: #fff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-400, #2a9fc0), var(--brand-600, #15677e));
  box-shadow: 0 6px 16px rgba(42, 159, 192, 0.35);
}

#billing-pricing-card > .account-note strong {
  font-size: 17px;
  color: var(--text-heading, #14213d);
  letter-spacing: -0.01em;
}

#billing-pricing-card > .account-note p:last-child {
  font-size: 14px;
  color: var(--text-muted, #6b7280);
  line-height: 1.5;
}

/* --- Pricing block --------------------------------------------------- */
#billing-pricing-card > div:nth-of-type(2) {
  margin-top: 0;
  padding: 36px 32px;
  border: 1px solid var(--border-soft, #e5e7eb);
  border-radius: 22px;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(42, 159, 192, 0.10) 0%, rgba(255, 255, 255, 0) 60%),
    #ffffff;
  box-shadow: var(--shadow-card, 0 18px 50px rgba(17, 24, 39, 0.07));
  text-align: center;
}

/* Price line */
#billing-pricing-card > div:nth-of-type(2) > div:first-child {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text-heading, #14213d);
}

#billing-pricing-card > div:nth-of-type(2) > div:first-child span {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted, #6b7280);
  letter-spacing: 0;
}

/* "Opsig når som helst" subtitle */
#billing-pricing-card > div:nth-of-type(2) > p {
  margin: 10px 0 28px;
  font-size: 14px;
  color: var(--text-muted, #6b7280);
}

/* Feature list */
#billing-pricing-card > div:nth-of-type(2) ul {
  display: grid;
  gap: 4px;
  max-width: 360px;
  margin: 0 auto 28px;
  padding: 0;
  list-style: none;
  text-align: left;
}

#billing-pricing-card > div:nth-of-type(2) ul li {
  padding: 8px 0 8px 30px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main, #111827);
  text-indent: -16px;
}

#billing-pricing-card > div:nth-of-type(2) ul li::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 12px;
  vertical-align: -4px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'><path d='M3.5 8.5l3 3 6-6' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 12px no-repeat,
    linear-gradient(135deg, var(--brand-400, #2a9fc0), var(--brand-600, #15677e));
  box-shadow: 0 4px 10px rgba(42, 159, 192, 0.28);
  text-indent: 0;
}

/* --- CTA ------------------------------------------------------------- */
#billing-subscribe-btn.account-button.account-button--primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: auto;
  height: 52px;
  padding: 0 28px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-400, #2a9fc0) 0%, var(--brand-600, #15677e) 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: var(--shadow-button, 0 12px 28px rgba(42, 159, 192, 0.24));
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

#billing-subscribe-btn.account-button.account-button--primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 16px 32px rgba(42, 159, 192, 0.32);
}

#billing-subscribe-btn.account-button.account-button--primary:active {
  transform: translateY(0);
}

#billing-subscribe-btn.account-button.account-button--primary:focus-visible {
  outline: 2px solid var(--brand-600, #15677e);
  outline-offset: 2px;
}

#billing-subscribe-btn.account-button.account-button--primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

#billing-subscribe-btn.account-button.account-button--primary svg {
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px;
  fill: currentColor;
}

/* --- Checkout: widen card when active -------------------------------- */
.account-settings-card.checkout-active {
  max-width: 1100px;
  transition: max-width 0.3s ease;
}

/* --- Checkout overlay ------------------------------------------------ */
#billing-checkout-overlay {
  margin: 0 -32px -32px;
  padding: 0;
}

#billing-checkout-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--brand-500, #1f7f9b);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 10px 14px 10px 8px;
  margin: 0 0 12px 24px;
  border-radius: 10px;
  transition: background 0.15s ease, color 0.15s ease;
}

#billing-checkout-back:hover {
  background: var(--brand-50, #e8f7fb);
  color: var(--brand-600, #15677e);
}

#billing-checkout-back svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
}

#billing-checkout-container {
  min-height: 700px;
  border-radius: 0 0 22px 22px;
  overflow: hidden;
}

/* --- Hidden free-info block ----------------------------------------- */
#billing-free-info {
  display: none !important;
}

/* --- Reduced motion -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  #billing-subscribe-btn.account-button.account-button--primary {
    transition: none !important;
  }
  #billing-subscribe-btn.account-button.account-button--primary:hover {
    transform: none !important;
  }
}
