:root {
  --profile-surface: rgba(255, 255, 255, 0.92);
  --profile-surface-soft: rgba(246, 248, 252, 0.96);
  --profile-border: rgba(148, 163, 184, 0.22);
  --profile-border-strong: rgba(148, 163, 184, 0.38);
  --profile-muted: #607086;
  --profile-text: #142033;
  --profile-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  --profile-accent: var(--accent, #8a6f1f);
  --profile-accent-strong: var(--accent-strong, #6f5610);
  --profile-accent-soft: var(--accent-soft, rgba(138, 111, 31, 0.12));
  --profile-accent-glow: var(--accent-glow, rgba(138, 111, 31, 0.18));
  --profile-accent-readable: var(--accent-strong, #6f5610);
  --profile-accent-on-solid: #ffffff;
}

body[data-current-role="professional"] {
  --profile-accent: #8a6f1f;
  --profile-accent-strong: #6f5610;
  --profile-accent-soft: rgba(138, 111, 31, 0.12);
  --profile-accent-glow: rgba(138, 111, 31, 0.18);
  --profile-accent-readable: #6f5610;
}

body[data-current-role="recruiter"] {
  --profile-accent: #0f766e;
  --profile-accent-strong: #115e59;
  --profile-accent-soft: rgba(15, 118, 110, 0.12);
  --profile-accent-glow: rgba(15, 118, 110, 0.18);
  --profile-accent-readable: #115e59;
}

body[data-current-role="admin"] {
  --profile-accent: #7c3aed;
  --profile-accent-strong: #6d28d9;
  --profile-accent-soft: rgba(124, 58, 237, 0.12);
  --profile-accent-glow: rgba(124, 58, 237, 0.16);
  --profile-accent-readable: #6d28d9;
}

body[data-current-role="moderator"] {
  --profile-accent: #c2410c;
  --profile-accent-strong: #9a3412;
  --profile-accent-soft: rgba(194, 65, 12, 0.12);
  --profile-accent-glow: rgba(194, 65, 12, 0.16);
  --profile-accent-readable: #9a3412;
}

body[data-ui-theme="dark"] {
  --profile-surface: rgba(18, 26, 39, 0.96);
  --profile-surface-soft: rgba(30, 41, 59, 0.96);
  --profile-border: rgba(203, 213, 225, 0.22);
  --profile-border-strong: rgba(226, 232, 240, 0.36);
  --profile-muted: #c4cfdd;
  --profile-text: #f8fafc;
  --profile-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
}

body[data-ui-theme="dark"][data-current-role="professional"] {
  --profile-accent-readable: #fde68a;
}

body[data-ui-theme="dark"][data-current-role="recruiter"] {
  --profile-accent-readable: #99f6e4;
}

body[data-ui-theme="dark"][data-current-role="admin"] {
  --profile-accent-readable: #ddd6fe;
}

body[data-ui-theme="dark"][data-current-role="moderator"] {
  --profile-accent-readable: #fed7aa;
}

body[data-ui-theme="dark"] {
  color: var(--profile-text);
}

body[data-nav-section="profile"] .settings-parent-region.profile-parent-region {
  background:
    radial-gradient(circle at top right, var(--profile-accent-glow), transparent 42%),
    linear-gradient(180deg, rgba(249, 246, 241, 0.2) 0%, rgba(255, 255, 255, 0.16) 100%);
}

body[data-nav-section="billing"] .settings-parent-region.billing-parent-region {
  background:
    radial-gradient(circle at top right, var(--profile-accent-glow), transparent 42%),
    linear-gradient(180deg, rgba(249, 246, 241, 0.2) 0%, rgba(255, 255, 255, 0.16) 100%);
}

body[data-ui-theme="dark"] .settings-parent-region.profile-parent-region {
  background:
    radial-gradient(circle at top right, var(--profile-accent-glow), transparent 42%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.38) 0%, rgba(15, 23, 42, 0.28) 100%);
  border-color: rgba(226, 232, 240, 0.2);
}

body[data-ui-theme="dark"] .settings-parent-region.billing-parent-region {
  background:
    radial-gradient(circle at top right, var(--profile-accent-glow), transparent 42%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.38) 0%, rgba(15, 23, 42, 0.28) 100%);
  border-color: rgba(226, 232, 240, 0.2);
}

body[data-nav-section="profile"] .page-container {
  max-width: 1060px;
}

body[data-nav-section="profile"] .settings-parent-region.profile-parent-region {
  max-width: 920px;
  margin: 0 auto;
}

body[data-nav-section="billing"] .page-container {
  max-width: 1420px;
}

body[data-nav-section="billing"] .settings-parent-region.billing-parent-region {
  max-width: 1280px;
  margin: 0 auto;
}

.profile-parent-region__identity {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.profile-parent-region__grid {
  display: grid;
  gap: 18px;
  max-width: 760px;
  margin: 0 auto;
}

.profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.75fr);
  gap: 24px;
  margin-bottom: 24px;
}

.profile-hero > .hero-card {
  grid-column: 1 / -1;
}

.profile-hero--compact {
  grid-template-columns: 1fr;
  max-width: 860px;
  margin: 0 auto 18px;
}

.profile-layout,
.profile-grid {
  display: grid;
  gap: 20px;
}

.profile-layout--compact {
  max-width: 860px;
  margin: 0 auto;
  gap: 16px;
}

.profile-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-card {
  position: relative;
  border: 1px solid var(--profile-border);
  border-radius: 24px;
  background: var(--profile-surface);
  box-shadow: var(--profile-shadow);
  backdrop-filter: blur(14px);
  overflow: visible;
}

.profile-card:has(.section-help[open]) {
  z-index: 120;
}

.profile-card--identity .profile-card__body {
  padding: 18px 24px;
}

.profile-card--stacked .profile-card__header {
  padding-bottom: 0;
}

.profile-card--stacked .profile-card__body {
  padding-top: 16px;
}

.profile-stack-section + .profile-stack-section .profile-card__header {
  padding-top: 0;
}

.profile-stack-divider,
.profile-inline-divider {
  height: 1px;
  background: rgba(148, 163, 184, 0.18);
}

.profile-stack-divider {
  margin: 0 24px;
}

.profile-card__header {
  padding: 22px 24px 10px;
}

.profile-card__body {
  padding: 20px 24px 24px;
}

.profile-section-headline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 0;
  color: var(--profile-text);
}

body[data-nav-section="profile"] .panel__title-row,
body[data-nav-section="profile"] .settings-parent-region__header {
  justify-content: flex-start;
}

body[data-nav-section="billing"] .panel__title-row,
body[data-nav-section="billing"] .settings-parent-region__header {
  justify-content: flex-start;
}

body[data-nav-section="profile"] .profile-section-headline .section-help,
body[data-nav-section="profile"] .panel__title-row .section-help {
  margin-left: 2px;
}

body[data-nav-section="billing"] .profile-section-headline .section-help,
body[data-nav-section="billing"] .panel__title-row .section-help {
  margin-left: 2px;
}

.profile-section-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-section-title-row--compact {
  margin-bottom: 0;
}

.profile-section-headline__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, var(--profile-accent-soft) 0%, rgba(255, 255, 255, 0.72) 100%);
  border: 1px solid var(--profile-border);
  box-shadow: 0 10px 24px var(--profile-accent-glow);
}

.profile-section-headline__icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--profile-accent-readable);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-ui-theme="dark"] .profile-section-headline__icon {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--profile-accent) 20%, rgba(15, 23, 42, 0.94)) 0%, rgba(15, 23, 42, 0.72) 100%);
  border-color: color-mix(in srgb, var(--profile-accent) 30%, rgba(203, 213, 225, 0.22));
}

.profile-section-headline__text {
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.profile-section-headline__help {
  margin-left: auto;
}

.profile-structure-popup {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.profile-structure-popup__item {
  display: grid;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.profile-structure-popup__item:first-child {
  padding-top: 0;
  border-top: 0;
}

.profile-structure-popup__label {
  color: var(--profile-text);
  font-size: 13px;
  font-weight: 800;
}

.profile-structure-popup__value {
  color: var(--profile-muted);
  font-size: 13px;
  line-height: 1.55;
}

.profile-layout--compact .profile-card__header {
  padding: 18px 20px 8px;
}

.profile-layout--compact .profile-card__body {
  padding: 16px 20px 20px;
}

.profile-layout--compact .profile-section-headline {
  gap: 12px;
  margin-bottom: 16px;
}

.profile-layout--compact .profile-section-headline__icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
}

.profile-layout--compact .profile-section-headline__icon svg {
  width: 23px;
  height: 23px;
}

.profile-layout--compact .profile-section-headline__text {
  font-size: clamp(22px, 2.3vw, 30px);
}

.profile-card__title {
  margin: 8px 0 0;
  color: var(--profile-text);
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.profile-card__subtitle {
  margin: 10px 0 0;
  color: var(--profile-muted);
  font-size: 14px;
  line-height: 1.6;
}

.identity-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.identity-banner__avatar-frame {
  position: relative;
  flex: 0 0 auto;
  width: 88px;
  height: 88px;
  padding: 6px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--profile-accent) 28%, rgba(148, 163, 184, 0.24));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, color-mix(in srgb, var(--profile-accent-soft) 36%, rgba(238, 243, 249, 0.98)) 100%);
  box-shadow:
    0 14px 28px var(--profile-accent-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

body[data-ui-theme="dark"] .identity-banner__avatar-frame {
  border-color: color-mix(in srgb, var(--profile-accent) 34%, rgba(203, 213, 225, 0.2));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--profile-accent) 18%, rgba(30, 41, 59, 0.98)) 0%, rgba(15, 23, 42, 0.96) 100%);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.3),
    0 0 0 4px color-mix(in srgb, var(--profile-accent) 10%, transparent);
}

.profile-layout--compact .identity-banner {
  gap: 14px;
  margin-bottom: 4px;
}

.identity-banner__avatar {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: contain;
  object-position: center center;
  background: rgba(226, 232, 240, 0.9);
}

.profile-layout--compact .identity-banner__avatar-frame {
  width: 76px;
  height: 76px;
  padding: 5px;
  border-radius: 22px;
}

.profile-layout--compact .identity-banner__avatar {
  border-radius: inherit;
}

.identity-banner__meta {
  display: grid;
  gap: 6px;
}

.identity-banner__name {
  color: var(--profile-text);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.profile-layout--compact .identity-banner__name {
  font-size: 22px;
}

.identity-banner__email {
  color: var(--profile-muted);
  font-size: 14px;
}

.identity-banner__default-role {
  color: var(--profile-muted);
  font-size: 13px;
  line-height: 1.5;
}

.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--profile-accent-soft);
  color: var(--profile-accent-readable);
  font-size: 12px;
  font-weight: 800;
}

body[data-ui-theme="dark"] .tag {
  background: color-mix(in srgb, var(--profile-accent) 22%, transparent);
  color: var(--profile-accent-readable);
  border: 1px solid color-mix(in srgb, var(--profile-accent) 28%, transparent);
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-grid--compact {
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
}

.field--control-group {
  gap: 12px;
}

.field--info {
  align-content: start;
}

.field-label {
  color: var(--profile-text);
  font-size: 13px;
  font-weight: 700;
}

.field-hint,
.field-note,
.status-text {
  color: var(--profile-muted);
  font-size: 13px;
  line-height: 1.6;
}

.field-note {
  min-height: 44px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--profile-surface-soft);
  border: 1px solid var(--profile-border);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--profile-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--profile-text);
  font: inherit;
}

.field textarea {
  min-height: 90px;
  padding: 12px 14px;
  resize: vertical;
}

body[data-ui-theme="dark"] .field input,
body[data-ui-theme="dark"] .field select,
body[data-ui-theme="dark"] .field textarea {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(203, 213, 225, 0.24);
  color: #f8fafc;
}

body[data-ui-theme="dark"] .field input::placeholder,
body[data-ui-theme="dark"] .field textarea::placeholder {
  color: #93a4b8;
}

body[data-ui-theme="dark"] .field input[readonly] {
  background: rgba(30, 41, 59, 0.92);
  color: #dbe7f4;
  border-color: rgba(203, 213, 225, 0.22);
}

.field input[readonly] {
  background: var(--profile-surface-soft);
  color: var(--profile-muted);
}

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

.choice-card {
  position: relative;
  display: block;
  min-height: 100%;
}

.choice-card__input {
  position: absolute;
  opacity: 0;
  inset: 0;
}

.choice-card__content {
  display: grid;
  gap: 10px;
  min-height: 100%;
  padding: 20px;
  border: 1px solid var(--profile-border);
  border-radius: 18px;
  background: rgba(255, 251, 240, 0.94);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.choice-card--recruiter .choice-card__content {
  background: rgba(240, 251, 248, 0.94);
}

.choice-card:hover .choice-card__content {
  transform: translateY(-1px);
  border-color: var(--profile-border-strong);
}

.choice-card__input:checked + .choice-card__content {
  border-color: rgba(138, 111, 31, 0.4);
  background: linear-gradient(180deg, rgba(255, 249, 235, 0.98) 0%, rgba(255, 255, 255, 0.96) 100%);
  box-shadow:
    0 12px 28px rgba(15, 23, 42, 0.08),
    inset 0 0 0 1px rgba(138, 111, 31, 0.22);
}

.choice-card--recruiter .choice-card__input:checked + .choice-card__content {
  border-color: rgba(15, 118, 110, 0.42);
  background: linear-gradient(180deg, rgba(237, 252, 248, 0.98) 0%, rgba(255, 255, 255, 0.96) 100%);
  box-shadow:
    0 12px 28px rgba(15, 23, 42, 0.08),
    inset 0 0 0 1px rgba(15, 118, 110, 0.18);
}

.choice-card__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--profile-border-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
}

.choice-card__check-dot {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: transparent;
  transition: background-color 160ms ease, transform 160ms ease;
}

.choice-card__input:checked + .choice-card__content .choice-card__check {
  border-color: rgba(138, 111, 31, 0.42);
  background: rgba(138, 111, 31, 0.12);
}

.choice-card__input:checked + .choice-card__content .choice-card__check-dot {
  background: #6f5610;
  transform: scale(1);
}

.choice-card--recruiter .choice-card__input:checked + .choice-card__content .choice-card__check {
  border-color: rgba(15, 118, 110, 0.42);
  background: rgba(15, 118, 110, 0.12);
}

.choice-card--recruiter .choice-card__input:checked + .choice-card__content .choice-card__check-dot {
  background: #115e59;
}

.choice-card__title {
  color: var(--profile-text);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.choice-card__body {
  color: var(--profile-muted);
  font-size: 14px;
  line-height: 1.65;
}

.primary-role-card,
.reveal-card {
  padding: 18px;
  border-radius: 18px;
  background: var(--profile-surface-soft);
  border: 1px solid var(--profile-border);
}

.profile-layout--compact .primary-role-card {
  padding: 16px;
}

.primary-role-card__title,
.reveal-card__title {
  margin: 8px 0 0;
  color: var(--profile-text);
  font-size: 18px;
  font-weight: 800;
}

.radio-stack {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--profile-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
}

.card-actions,
.segmented-row,
.form-section-heading,
.link-box {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.card-actions {
  margin-top: 4px;
}

.card-actions--end {
  justify-content: flex-end;
}

.token-mint-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.token-mint-actions .status-text {
  text-align: right;
}

.profile-layout--compact .card-actions {
  margin-top: 0;
}

.form-section-heading {
  justify-content: space-between;
  margin-top: 4px;
}

.button,
.button-secondary,
.segmented-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
}

.button {
  border: 0;
  background: linear-gradient(180deg, var(--profile-accent) 0%, var(--profile-accent-strong) 100%);
  color: var(--profile-accent-on-solid);
  box-shadow: 0 12px 24px var(--profile-accent-glow);
}

.button-secondary,
.segmented-pill {
  border: 1px solid var(--profile-border);
  background: rgba(255, 255, 255, 0.84);
  color: var(--profile-text);
}

body[data-ui-theme="dark"] .button-secondary,
body[data-ui-theme="dark"] .segmented-pill {
  background: rgba(15, 23, 42, 0.82);
  border-color: rgba(203, 213, 225, 0.26);
  color: #f8fafc;
}

body[data-ui-theme="dark"] .button-secondary:hover,
body[data-ui-theme="dark"] .segmented-pill:hover {
  background: rgba(30, 41, 59, 0.96);
  border-color: rgba(226, 232, 240, 0.36);
}

.button-secondary.is-copied {
  border-color: color-mix(in srgb, var(--profile-accent) 32%, transparent);
  background: var(--profile-accent-soft);
  color: var(--profile-accent-readable);
}

body[data-ui-theme="dark"] .button-secondary.is-copied {
  border-color: color-mix(in srgb, var(--profile-accent) 38%, transparent);
  background: color-mix(in srgb, var(--profile-accent) 18%, transparent);
  color: var(--profile-accent-readable);
}

.segmented-pill.is-active {
  border-color: color-mix(in srgb, var(--profile-accent) 34%, transparent);
  background: var(--profile-accent-soft);
  color: var(--profile-accent-readable);
}

body[data-ui-theme="dark"] .segmented-pill.is-active {
  border-color: color-mix(in srgb, var(--profile-accent) 38%, transparent);
  background: color-mix(in srgb, var(--profile-accent) 18%, transparent);
  color: var(--profile-accent-readable);
}

.segmented-row--wrap {
  flex-wrap: wrap;
}

.link-box__value {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--profile-surface-soft);
  border: 1px solid var(--profile-border);
  color: var(--profile-text);
  font-family: "SFMono-Regular", ui-monospace, Consolas, monospace;
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  overflow-y: hidden;
  text-overflow: ellipsis;
  cursor: text;
}

body[data-ui-theme="dark"] .link-box__value,
body[data-ui-theme="dark"] .reveal-card__value {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(203, 213, 225, 0.26);
  color: #f8fafc;
}

.link-box__value:focus {
  border-color: color-mix(in srgb, var(--profile-accent) 44%, transparent);
  box-shadow: 0 0 0 3px var(--profile-accent-soft);
  outline: none;
}

.reveal-card__value {
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--profile-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--profile-text);
  font-family: "SFMono-Regular", ui-monospace, Consolas, monospace;
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

body[data-ui-theme="dark"] .field-note,
body[data-ui-theme="dark"] .primary-role-card,
body[data-ui-theme="dark"] .reveal-card,
body[data-ui-theme="dark"] .token-row {
  background: rgba(30, 41, 59, 0.88);
  border-color: rgba(203, 213, 225, 0.22);
}

body[data-ui-theme="dark"] .token-pill {
  background: rgba(129, 140, 248, 0.2);
  color: #c7d2fe;
}

body[data-ui-theme="dark"] .token-pill--warn {
  background: rgba(251, 191, 36, 0.18);
  color: #fde68a;
}

body[data-ui-theme="dark"] .icon-button {
  background: rgba(127, 29, 29, 0.18);
  border-color: rgba(248, 113, 113, 0.28);
  color: #fecaca;
}

body[data-ui-theme="dark"] .icon-button:hover {
  background: rgba(127, 29, 29, 0.32);
  border-color: rgba(252, 165, 165, 0.44);
}

.extra-field-stack {
  display: grid;
  gap: 14px;
}

.token-list {
  display: grid;
  gap: 12px;
}

.extra-field-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(220px, 1.4fr) 44px;
  align-items: end;
  gap: 14px;
}

.token-row {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: var(--profile-surface-soft);
  border: 1px solid var(--profile-border);
}

.extra-field-row .field {
  min-width: 0;
}

.extra-field-row .field input,
.extra-field-row .field textarea {
  min-height: 46px;
}

.extra-field-row .field textarea {
  height: 46px;
  padding-top: 12px;
  padding-bottom: 12px;
  resize: none;
}

.token-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.token-row__title {
  color: var(--profile-text);
  font-size: 14px;
  font-weight: 800;
}

.token-row__meta {
  color: var(--profile-muted);
  font-size: 13px;
  line-height: 1.55;
}

.token-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(224, 231, 255, 0.8);
  color: #3730a3;
  font-size: 11px;
  font-weight: 800;
}

.token-pill--warn {
  background: rgba(254, 243, 199, 0.88);
  color: #92400e;
}

.icon-button {
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid rgba(239, 68, 68, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  color: #dc2626;
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
}

.icon-button:hover {
  border-color: rgba(239, 68, 68, 0.38);
  background: rgba(254, 242, 242, 0.92);
}

.is-hidden {
  display: none !important;
}

.billing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 20px;
}

.billing-grid--professional {
  grid-template-columns: minmax(0, 1fr) 310px;
}

.billing-stack {
  display: grid;
  gap: 18px;
  align-content: start;
}

.billing-summary-card .profile-card__body {
  padding: 20px 24px;
}

.billing-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.billing-kicker {
  color: var(--profile-accent-readable);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-current-role="recruiter"] .billing-summary-card .billing-kicker {
  font-size: 14px;
}

.billing-summary__title {
  margin-top: 8px;
  color: var(--profile-text);
  font-size: 28px;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.billing-summary__meta {
  margin-top: 8px;
  color: var(--profile-muted);
  font-size: 14px;
  line-height: 1.55;
}

.billing-hero-card {
  overflow: visible;
}

.billing-hero-copy {
  font-size: 16px;
}

.billing-cycle-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  padding: 6px;
  border: 1px solid var(--profile-border);
  border-radius: 999px;
  background: var(--profile-surface-soft);
}

.billing-cycle-option {
  min-height: 36px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--profile-muted);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.billing-cycle-option.is-active {
  background: linear-gradient(180deg, var(--profile-accent) 0%, var(--profile-accent-strong) 100%);
  color: var(--profile-accent-on-solid);
  box-shadow: 0 10px 22px var(--profile-accent-glow);
}

body[data-ui-theme="dark"] .billing-cycle-control {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(203, 213, 225, 0.24);
}

.billing-plan-table {
  display: grid;
  grid-template-columns: 0.52fr repeat(3, minmax(0, 1fr));
  border: 1px solid var(--profile-border);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.5);
}

body[data-ui-theme="dark"] .billing-plan-table {
  background: rgba(15, 23, 42, 0.48);
}

.billing-plan-table__cell {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border-left: 1px solid rgba(148, 163, 184, 0.18);
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--profile-text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.billing-plan-table__cell:nth-child(-n + 4) {
  border-top: 0;
}

.billing-plan-table__cell:nth-child(4n + 1) {
  border-left: 0;
}

.billing-plan-table__cell--label {
  justify-content: flex-start;
  color: var(--profile-muted);
  font-size: 13px;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.billing-plan-table__cell--heading {
  justify-content: center;
  color: var(--profile-text);
  font-size: 15px;
  font-weight: 900;
}

.billing-plan-table__cell.is-current {
  background: var(--profile-accent-soft);
  color: var(--profile-accent-readable);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--profile-accent) 20%, transparent);
}

body[data-ui-theme="dark"] .billing-plan-table__cell.is-current {
  background: color-mix(in srgb, var(--profile-accent) 18%, transparent);
  color: var(--profile-accent-readable);
}

.billing-recruiter-comparison-card .profile-card__body {
  padding-top: 12px;
}

.billing-recruiter-plan-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.36fr);
  gap: 16px;
  align-items: start;
}

.billing-recruiter-table {
  overflow: hidden;
  border: 1px solid var(--profile-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
}

body[data-ui-theme="dark"] .billing-recruiter-table {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(203, 213, 225, 0.24);
}

.billing-recruiter-table__row {
  display: grid;
  grid-template-columns: minmax(280px, 1.35fr) repeat(2, minmax(150px, 0.72fr));
  border-top: 1px solid var(--profile-border);
}

.billing-recruiter-table__row:first-child {
  border-top: 0;
}

.billing-recruiter-table__row--head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(248, 250, 252, 0.98);
  border-top: 0;
}

body[data-ui-theme="dark"] .billing-recruiter-table__row--head {
  background: rgba(30, 41, 59, 0.98);
}

.billing-recruiter-table__feature,
.billing-recruiter-table__plan,
.billing-recruiter-table__value {
  min-width: 0;
  padding: 12px 14px;
  border-left: 1px solid var(--profile-border);
  color: var(--profile-text);
  font-size: 13px;
  line-height: 1.35;
}

.billing-recruiter-table__feature {
  border-left: 0;
  color: #223047;
  font-weight: 800;
}

body[data-ui-theme="dark"] .billing-recruiter-table__feature {
  color: #f8fafc;
}

.billing-recruiter-table__plan {
  display: grid;
  gap: 6px;
  align-content: start;
  text-align: center;
  background: rgba(255, 255, 255, 0.86);
}

.billing-recruiter-table__plan.is-current {
  background: color-mix(in srgb, var(--profile-accent) 10%, rgba(255, 255, 255, 0.96));
}

body[data-ui-theme="dark"] .billing-recruiter-table__plan {
  background: rgba(15, 23, 42, 0.64);
}

body[data-ui-theme="dark"] .billing-recruiter-table__plan.is-current {
  background: color-mix(in srgb, var(--profile-accent) 18%, rgba(15, 23, 42, 0.92));
}

.billing-recruiter-table__plan-name,
.billing-addon-panel__title {
  color: var(--profile-text);
  font-size: 18px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: 0;
}

.billing-recruiter-table__plan-name span {
  display: block;
}

.billing-addon-panel__title {
  margin: 0;
}

.billing-recruiter-table__price {
  display: grid;
  justify-items: center;
  gap: 10px;
  color: var(--profile-accent-readable);
  line-height: 1.35;
  text-align: center;
}

.billing-price-main {
  color: var(--profile-accent-readable);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 900;
}

.billing-price-note {
  color: var(--profile-accent-readable);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 800;
}

.billing-recruiter-table__value {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--profile-muted);
  font-weight: 700;
}

.billing-recruiter-table__stack {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.billing-recruiter-table__section {
  padding: 10px 14px;
  border-top: 1px solid var(--profile-border);
  background: var(--profile-surface-soft);
  color: var(--profile-accent-readable);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.billing-recruiter-table__row--actions {
  background: rgba(248, 250, 252, 0.82);
}

body[data-ui-theme="dark"] .billing-recruiter-table__row--actions {
  background: rgba(30, 41, 59, 0.6);
}

.billing-check,
.billing-dash {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
}

.billing-check {
  background: var(--profile-accent-soft);
  color: var(--profile-accent-readable);
}

.billing-dash {
  background: rgba(148, 163, 184, 0.14);
  color: var(--profile-muted);
}

.billing-addon-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--profile-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

body[data-ui-theme="dark"] .billing-addon-panel {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(203, 213, 225, 0.24);
}

.billing-addon-panel.is-current {
  border-color: color-mix(in srgb, var(--profile-accent) 24%, var(--profile-border));
  background: color-mix(in srgb, var(--profile-accent) 8%, rgba(255, 255, 255, 0.88));
}

body[data-ui-theme="dark"] .billing-addon-panel.is-current {
  background: color-mix(in srgb, var(--profile-accent) 16%, rgba(15, 23, 42, 0.88));
  border-color: color-mix(in srgb, var(--profile-accent) 34%, rgba(203, 213, 225, 0.24));
}

.billing-addon-panel__badge {
  width: max-content;
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--profile-accent-soft);
  color: var(--profile-accent-readable);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.billing-addon-panel__price {
  display: grid;
  justify-items: start;
  gap: 10px;
  margin: 0;
  color: var(--profile-accent-readable);
  line-height: 1.35;
  text-align: left;
}

.billing-addon-panel__copy,
.billing-addon-panel__note {
  margin: 0;
  color: var(--profile-muted);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 700;
}

.billing-addon-panel__action {
  width: 100%;
  justify-content: center;
}

.billing-plan-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.billing-plan-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.billing-plan-card .profile-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 18px;
  padding: 20px 24px 24px;
}

.billing-plan-card .profile-card__header {
  padding: 24px 24px 12px;
}

.billing-plan-card--popular {
  border-color: color-mix(in srgb, var(--profile-accent) 18%, var(--profile-border));
}

.billing-plan-card.is-current {
  border-color: color-mix(in srgb, var(--profile-accent) 48%, var(--profile-border));
  box-shadow:
    var(--profile-shadow),
    0 0 0 1px color-mix(in srgb, var(--profile-accent) 16%, transparent),
    0 18px 38px var(--profile-accent-glow);
}

.billing-plan-card__topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.billing-plan-card__title {
  margin: 0;
  color: var(--profile-text);
  font-size: 24px;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.billing-plan-card.is-current .billing-plan-card__title {
  color: var(--profile-accent-readable);
}

.billing-plan-card__price {
  flex: none;
  color: var(--profile-text);
  font-size: 24px;
  line-height: 1.1;
  font-weight: 900;
  text-align: right;
  letter-spacing: -0.03em;
}

.billing-plan-card__price span {
  display: block;
  color: var(--profile-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.billing-plan-card__cycle-note {
  margin-top: 8px;
  color: var(--profile-accent-readable);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.billing-plan-card__badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-top: 8px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--profile-accent-soft);
  color: var(--profile-accent-readable);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.billing-plan-card__actions,
.billing-start-actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.billing-plan-card__action {
  width: 100%;
}

.billing-feature-group {
  display: grid;
  gap: 8px;
}

.billing-feature-group__title,
.billing-value-item h3,
.billing-faq-item h3 {
  margin: 0;
  color: var(--profile-text);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
}

.billing-feature-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.billing-feature-list li {
  position: relative;
  padding-left: 18px;
  color: var(--profile-muted);
  font-size: 13.5px;
  line-height: 1.56;
}

.billing-feature-list li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--profile-accent);
}

.billing-value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.billing-highlight-card {
  background:
    radial-gradient(circle at top right, var(--profile-accent-glow), transparent 40%),
    var(--profile-surface);
}

.billing-highlight-card .profile-card__body {
  display: grid;
  gap: 14px;
  padding: 10px 24px 24px;
}

.billing-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.billing-highlight-item {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 128px;
  padding: 16px;
  border: 1px solid var(--profile-border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--profile-surface-soft) 82%, transparent);
}

.billing-highlight-item h2,
.billing-highlight-item h3 {
  margin: 0;
  color: var(--profile-text);
  font-weight: 900;
  line-height: 1.16;
}

.billing-highlight-item h2 {
  font-size: 22px;
  letter-spacing: -0.03em;
}

.billing-highlight-item h3 {
  font-size: 15px;
}

.billing-highlight-item p {
  margin: 0;
  color: var(--profile-muted);
  font-size: 13.5px;
  line-height: 1.58;
}

.billing-early-note {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--profile-accent) 18%, var(--profile-border));
  border-radius: 16px;
  background: color-mix(in srgb, var(--profile-accent-soft) 34%, var(--profile-surface-soft));
}

.billing-early-note p {
  margin: 0;
  color: var(--profile-muted);
  font-size: 13px;
  line-height: 1.55;
}

.billing-value-item {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--profile-border);
  border-radius: 16px;
  background: var(--profile-surface-soft);
}

.billing-early-card {
  background:
    radial-gradient(circle at top right, var(--profile-accent-glow), transparent 42%),
    var(--profile-surface);
}

.billing-value-item p,
.billing-faq-item p {
  margin: 0;
  color: var(--profile-muted);
  font-size: 13px;
  line-height: 1.58;
}

.billing-faq-list {
  display: grid;
  gap: 12px;
}

.billing-faq-item {
  display: grid;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.billing-faq-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.billing-start-actions {
  margin-top: 0;
}

#billingSubscriptionStatus {
  display: block;
  margin-top: 12px;
  text-align: center;
  font-weight: 700;
}

.billing-status-badge {
  flex: none;
}

.billing-status-badge--warn {
  background: rgba(254, 243, 199, 0.88);
  color: #92400e;
}

.billing-status-badge--empty {
  background: rgba(226, 232, 240, 0.9);
  color: #475569;
}

body[data-ui-theme="dark"] .billing-status-badge--warn {
  background: rgba(251, 191, 36, 0.18);
  color: #fde68a;
  border-color: rgba(251, 191, 36, 0.24);
}

body[data-ui-theme="dark"] .billing-status-badge--empty {
  background: rgba(226, 232, 240, 0.14);
  color: #dbe7f4;
  border-color: rgba(226, 232, 240, 0.18);
}

.billing-plan-list,
.billing-invoice-list,
.billing-policy-list {
  display: grid;
  gap: 12px;
}

.billing-plan-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.billing-plan-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.billing-plan-row:last-child {
  padding-bottom: 0;
}

.billing-plan-row.is-current {
  color: var(--profile-accent-readable);
}

.billing-plan-row__main {
  min-width: 0;
}

.billing-plan-row__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.billing-plan-row__name {
  margin: 0;
  color: var(--profile-text);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.billing-plan-row.is-current .billing-plan-row__name {
  color: var(--profile-accent-readable);
}

.billing-plan-row__price {
  color: var(--profile-text);
  font-size: 20px;
  font-weight: 900;
}

.billing-plan-row__price span {
  color: var(--profile-muted);
  font-size: 13px;
  font-weight: 700;
}

.billing-plan-row__body {
  margin: 8px 0 0;
  color: var(--profile-muted);
  font-size: 14px;
  line-height: 1.55;
}

.billing-plan-row__action {
  white-space: nowrap;
}

.billing-plan-row__action:disabled,
.billing-plan-card__action:disabled,
.billing-start-actions button:disabled,
.billing-danger-action:disabled,
.billing-pack:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.billing-danger-action {
  color: #b91c1c;
}

body[data-ui-theme="dark"] .billing-danger-action {
  color: #fecaca !important;
}

.billing-credit-balance {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.billing-credit-balance__num {
  color: var(--profile-accent-readable);
  font-size: 38px;
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.billing-credit-balance__label,
.billing-credit-balance__value {
  color: var(--profile-muted);
  font-size: 13px;
  line-height: 1.55;
}

.billing-credit-balance__value {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--profile-surface-soft);
  border: 1px solid var(--profile-border);
  color: var(--profile-text);
  font-weight: 800;
}

.billing-ai-credits-card.is-disabled .panel__title-row,
.billing-ai-credits-card.is-disabled .billing-credit-balance,
.billing-ai-credits-card.is-disabled .billing-credit-topup,
.billing-ai-credits-card.is-disabled .card-actions {
  opacity: 0.42;
}

.billing-credit-availability {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--profile-border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--profile-surface-soft) 88%, transparent);
}

.billing-credit-availability.is-available {
  border-color: color-mix(in srgb, var(--profile-accent) 28%, var(--profile-border));
  background: color-mix(in srgb, var(--profile-accent-soft) 44%, var(--profile-surface-soft));
}

.billing-credit-availability__label {
  color: var(--profile-text);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.billing-credit-availability.is-available .billing-credit-availability__label {
  color: var(--profile-accent-readable);
}

.billing-credit-availability__body {
  color: var(--profile-muted);
  font-size: 13px;
  line-height: 1.5;
}

.billing-credit-topup {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.billing-credit-topup__label {
  color: var(--profile-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.billing-pack-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.billing-pack {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 12px;
  border: 1px solid var(--profile-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--profile-text);
  cursor: pointer;
  text-align: left;
}

.billing-pack:hover {
  border-color: color-mix(in srgb, var(--profile-accent) 34%, var(--profile-border));
  box-shadow: 0 10px 22px var(--profile-accent-glow);
}

body[data-ui-theme="dark"] .billing-pack {
  background: rgba(15, 23, 42, 0.82);
  border-color: rgba(203, 213, 225, 0.26);
  color: #f8fafc;
}

.billing-pack:disabled {
  background: var(--profile-surface-soft);
  box-shadow: none;
}

.billing-pack:disabled:hover {
  border-color: var(--profile-border);
  box-shadow: none;
}

.billing-pack__credits {
  font-size: 14px;
  font-weight: 900;
}

.billing-pack__price {
  color: var(--profile-muted);
  font-size: 13px;
  font-weight: 800;
}

.billing-detail-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.billing-detail-row {
  display: grid;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.billing-detail-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.billing-detail-row dt {
  color: var(--profile-text);
  font-size: 13px;
  font-weight: 900;
}

.billing-detail-row dd {
  margin: 0;
  color: var(--profile-muted);
  font-size: 14px;
  line-height: 1.55;
}

.has-stripe-modal {
  overflow: hidden;
}

.stripe-handoff-modal[hidden] {
  display: none;
}

.stripe-handoff-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.stripe-handoff-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.48);
  cursor: pointer;
}

.stripe-handoff-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 540px);
  overflow: hidden;
  border: 1px solid var(--profile-border);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, #635bff 24%, transparent), transparent 34%),
    var(--profile-surface);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
}

.stripe-handoff-modal__header,
.stripe-handoff-modal__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
}

.stripe-handoff-modal__header {
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.stripe-handoff-modal__actions {
  justify-content: flex-end;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  background: color-mix(in srgb, var(--profile-surface-soft) 74%, transparent);
}

.stripe-handoff-modal__brand {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #635bff;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.stripe-handoff-modal__close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--profile-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--profile-text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.stripe-handoff-modal__body {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.stripe-handoff-modal__title {
  margin: 6px 0 0;
  color: var(--profile-text);
  font-size: 26px;
  line-height: 1.12;
  font-weight: 900;
}

.stripe-handoff-modal__copy,
.stripe-handoff-modal__note {
  margin: 8px 0 0;
  color: var(--profile-muted);
  font-size: 14px;
  line-height: 1.58;
}

.stripe-handoff-modal__details {
  display: grid;
  gap: 10px;
  margin: 0;
}

.stripe-handoff-modal__details div {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--profile-border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--profile-surface-soft) 78%, transparent);
}

.stripe-handoff-modal__details dt {
  color: var(--profile-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stripe-handoff-modal__details dd {
  margin: 0;
  color: var(--profile-text);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.38;
}

.stripe-handoff-modal__note {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, #635bff 22%, var(--profile-border));
  border-radius: 14px;
  background: color-mix(in srgb, #635bff 8%, var(--profile-surface-soft));
}

body[data-ui-theme="dark"] .stripe-handoff-modal__panel {
  background:
    radial-gradient(circle at top right, color-mix(in srgb, #8f88ff 22%, transparent), transparent 36%),
    rgba(15, 23, 42, 0.96);
  border-color: rgba(203, 213, 225, 0.24);
}

body[data-ui-theme="dark"] .stripe-handoff-modal__close {
  background: rgba(15, 23, 42, 0.84);
  border-color: rgba(203, 213, 225, 0.26);
  color: #f8fafc;
}

body[data-ui-theme="dark"] .stripe-handoff-modal__actions {
  background: rgba(15, 23, 42, 0.72);
}

body[data-ui-theme="dark"] .stripe-handoff-modal__note {
  background: color-mix(in srgb, #8f88ff 12%, rgba(15, 23, 42, 0.9));
  border-color: color-mix(in srgb, #8f88ff 24%, rgba(203, 213, 225, 0.24));
}

.billing-invoice-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.billing-invoice-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.billing-invoice-row__title,
.billing-invoice-row__amount {
  color: var(--profile-text);
  font-size: 14px;
  font-weight: 900;
}

.billing-invoice-row__date,
.billing-empty-state,
.billing-policy-item {
  color: var(--profile-muted);
  font-size: 13px;
  line-height: 1.55;
}

.billing-invoice-row__amount {
  white-space: nowrap;
}

.billing-policy-item {
  position: relative;
  padding-left: 18px;
}

.billing-policy-item::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--profile-accent);
}

@media (max-width: 1024px) {
  .profile-hero,
  .profile-grid--two,
  .settings-grid,
  .option-grid,
  .form-row,
  .token-row,
  .billing-grid,
  .billing-plan-cards,
  .billing-value-grid,
  .billing-highlight-grid {
    grid-template-columns: 1fr;
  }

  .billing-recruiter-plan-layout {
    grid-template-columns: 1fr;
  }

  .billing-recruiter-table {
    overflow-x: auto;
  }

  .billing-recruiter-table__row {
    min-width: 700px;
  }

  .extra-field-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) 44px;
  }
}

@media (max-width: 720px) {
  body[data-nav-section="profile"] .page-container,
  body[data-nav-section="profile"] .settings-parent-region.profile-parent-region,
  body[data-nav-section="billing"] .page-container,
  body[data-nav-section="billing"] .settings-parent-region.billing-parent-region,
  .profile-parent-region__grid {
    max-width: none;
  }

  .profile-card__header,
  .profile-card__body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .profile-hero--compact,
  .profile-layout--compact {
    max-width: none;
  }

  .identity-banner {
    align-items: flex-start;
  }

  .extra-field-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .extra-field-row__remove {
    justify-self: end;
  }

  .profile-stack-divider {
    margin-left: 18px;
    margin-right: 18px;
  }

  .billing-summary,
  .billing-plan-row {
    grid-template-columns: 1fr;
  }

  .billing-summary {
    flex-direction: column;
  }

  .billing-pack-list {
    grid-template-columns: 1fr;
  }

  .billing-plan-row__action {
    width: 100%;
  }

  .billing-plan-table {
    display: none;
  }

  .billing-recruiter-table {
    border-radius: 16px;
  }
}
