.ambassador-boot-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 160px;
  padding: 48px 24px;
}

.boot-logo {
  width: 56px;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(124, 77, 255, 0.5));
}

.ambassador-boot-panel .boot-text {
  margin: 0;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 4, 12, 0.55);
  padding: 44px 0 24px;
  margin-top: 48px;
  text-align: left;
}

.site-footer .nav-container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.site-footer .footer-wordmark {
  width: 132px;
}

.site-footer .footer-columns {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1.05fr auto;
  gap: 34px;
  align-items: start;
}

.site-footer .footer-brand p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.site-footer .footer-col h4 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.site-footer .footer-col a {
  display: block;
  margin: 9px 0;
  color: var(--muted);
  font-weight: 650;
  text-decoration: none;
}

.site-footer .footer-col a:hover {
  color: #fff;
}

.site-footer .copyright {
  text-align: center;
  color: #778099;
  margin-top: 36px;
  font-size: 14px;
}

.ambassador-is-public .site-footer {
  margin-top: 0;
}

.partner-is-public .site-footer {
  margin-top: 0;
}

.ambassador-is-public .container {
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
}

.ambassador-is-public .nav-container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

@media (max-width: 760px) {
  .ambassador-is-public .nav-container,
  .site-footer .nav-container,
  .site-footer .footer-columns {
    width: min(100% - 28px, 1180px);
  }

  .site-footer .footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 34px;
  }

  .site-footer .footer-brand {
    grid-column: 1 / -1;
  }
}

:root {
  --text: #f7f3ff;
  --muted: #a9b0c8;
  --purple: #7c4dff;
  --purple2: #a56bff;
  --blue: #4b7cff;
  --line: rgba(255, 255, 255, 0.1);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --danger: #ff6b8a;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 8%, rgba(104, 75, 255, 0.24), transparent 34%),
    radial-gradient(circle at 12% 25%, rgba(36, 107, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #040711 0%, #071020 48%, #050814 100%);
  min-height: 100vh;
}
a { color: #c7aaff; font-weight: 700; text-decoration: none; }
a:hover { color: #fff; }
.container { width: min(920px, calc(100% - 40px)); margin: 0 auto; padding: 18px 0 48px; }
.login-panel {
  width: min(440px, 100%);
  margin-left: auto;
  margin-right: auto;
  padding: 22px 22px 24px;
}
.login-panel .btn { width: 100%; }
body > nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(5, 8, 20, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-inner {
  width: min(920px, calc(100% - 40px)); margin: 0 auto; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
}
.wordmark-img { width: 120px; height: auto; filter: drop-shadow(0 0 18px rgba(124, 77, 255, 0.22)); }
.nav-link { color: #dfe4fb; font-weight: 650; font-size: 14px; }
.panel, .hero-block {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(19, 25, 48, 0.92), rgba(10, 15, 31, 0.92));
  box-shadow: var(--shadow);
  padding: 28px 24px;
  margin-bottom: 14px;
}
.boot-panel {
  display: grid;
  place-items: center;
  min-height: 120px;
  padding: 40px 24px;
}
.boot-text {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.hero-block {
  text-align: center;
  padding: 28px 22px 26px;
}
.hero-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(124, 77, 255, 0.32));
  animation: hero-k-float 5s ease-in-out infinite;
}
@keyframes hero-k-float {
  0%, 100% {
    transform: translateY(0);
    filter: drop-shadow(0 0 18px rgba(124, 77, 255, 0.32));
  }
  50% {
    transform: translateY(-4px);
    filter: drop-shadow(0 0 26px rgba(124, 77, 255, 0.46));
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-logo { animation: none; }
}
.eyebrow {
  display: inline-flex; padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(188, 158, 255, 0.36);
  background: rgba(124, 77, 255, 0.16);
  color: #d8baff; text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 11px; font-weight: 900; margin-bottom: 10px;
}
.hero-block .eyebrow { margin-bottom: 16px; }
h1, h2, h3 { margin: 0 0 12px; letter-spacing: -0.03em; }
h1 { font-size: clamp(28px, 4.5vw, 40px); line-height: 1.08; }
.hero-block h1 {
  background: linear-gradient(135deg, var(--purple2), #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
}
h2 { font-size: 24px; }
.panel h2 {
  color: var(--purple2);
}
.login-panel h2 {
  color: var(--purple2);
  font-size: 21px;
  line-height: 1.25;
  margin-bottom: 16px;
}
h3 { font-size: 18px; color: #e4d7ff; }
.hero-copy, .muted, .helper-row, p { color: var(--muted); line-height: 1.6; }
.hero-copy {
  max-width: 560px;
  margin: 0 auto 4px;
  font-size: 15px;
  line-height: 1.55;
}
.hero-benefits {
  list-style: none;
  margin: 28px auto 6px;
  padding: 12px 0 6px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 28px;
  max-width: 760px;
}
.hero-benefits li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #d8d0ea;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.01em;
}
.hero-benefit-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #c7aaff;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(165, 107, 255, 0.28));
}
.stack-form { display: grid; gap: 10px; margin-top: 0; }
label { font-size: 13px; font-weight: 700; color: #dce3fb; }
input[type="email"], input[type="password"], input[type="text"] {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(5, 8, 20, 0.55); color: var(--text); font-size: 16px;
}
input:focus { outline: none; border-color: rgba(124, 77, 255, 0.55); box-shadow: 0 0 0 3px rgba(124, 77, 255, 0.18); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 12px;
  padding: 14px 22px; background: linear-gradient(135deg, var(--purple), #315eff);
  font-weight: 850; font-size: 15px; color: #fff; cursor: pointer;
  box-shadow: 0 12px 32px rgba(87, 73, 255, 0.28);
}
.btn.secondary { background: transparent; box-shadow: none; }
.btn-sm { padding: 10px 14px; font-size: 13px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.text-link {
  background: none; border: none; padding: 0; color: #b9a4ff;
  font-weight: 700; text-decoration: underline; cursor: pointer;
}
.msg { margin-top: 12px; padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.msg.err { color: #ffd6df; background: rgba(255, 80, 120, 0.12); border: 1px solid rgba(255, 107, 140, 0.35); }
.msg.ok { color: #c8f5d4; background: rgba(80, 200, 120, 0.1); border: 1px solid rgba(100, 220, 140, 0.28); }
.centered-panel { text-align: center; }
.dashboard-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.dashboard-header-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.dashboard-eyebrow { margin-bottom: 0; }
.header-main { display: flex; align-items: center; gap: 16px; }
.header-copy h1 {
  margin-bottom: 6px;
  background: linear-gradient(135deg, var(--purple2), #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.avatar, .table-avatar {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(165, 107, 255, 0.45);
}
.table-avatar { width: 36px; height: 36px; vertical-align: middle; margin-right: 8px; }
.avatar-fallback, .table-avatar-fallback {
  display: inline-grid; place-items: center;
  background: rgba(124, 77, 255, 0.22); color: #efeaff; font-weight: 800;
}
.status-badge {
  display: inline-flex; padding: 8px 14px; border-radius: 999px;
  background: rgba(80, 200, 120, 0.14); border: 1px solid rgba(100, 220, 140, 0.28);
  color: #c8f5d4; font-size: 13px; font-weight: 800;
}
.copy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.copy-grid > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.copy-grid .btn-row {
  margin-top: 12px;
  width: 100%;
}
.copy-value { margin: 6px 0 0; font-size: 18px; font-weight: 800; word-break: break-all; }
.copy-value-link {
  display: block;
  font-weight: 500;
  color: #c7aaff;
  text-decoration: none;
}
.copy-value-link:hover {
  color: #fff;
  text-decoration: underline;
}
.metrics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.metric-card {
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px;
  padding: 16px; background: rgba(255, 255, 255, 0.03);
}
.metric-label { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.metric-value { margin: 0; font-size: 22px; font-weight: 900; letter-spacing: -0.03em; }
.terms-grid { display: grid; gap: 12px; }
.terms-row dt { margin: 0 0 4px; color: #dce3fb; font-size: 13px; font-weight: 800; }
.terms-row dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  display: grid;
  gap: 4px;
}
.terms-value-line { display: block; }
.terms-reminder { margin: 16px 0 0; font-size: 13px; color: #9588aa; }
.agreement-panel { padding: 24px 22px; }
.agreement-panel-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.agreement-panel-head {
  min-width: 0;
  flex: 1 1 auto;
}
.agreement-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  max-width: min(220px, 42%);
}
.agreement-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(165, 107, 255, 0.45);
  flex-shrink: 0;
}
.agreement-user-avatar-fallback {
  display: inline-grid;
  place-items: center;
  background: rgba(124, 77, 255, 0.22);
  color: #efeaff;
  font-weight: 800;
  font-size: 15px;
}
.agreement-user-name {
  color: #e4d7ff;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.25;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.agreement-page-title {
  margin: 0 0 10px;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.12;
  background: linear-gradient(135deg, var(--purple2), #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.agreement-intro {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 15px;
}
.agreement-doc-panel h3 { margin-bottom: 14px; }
.agreement-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.agreement-actions .btn { flex: 1 1 180px; }
.terms-summary { margin-top: 4px; }
.terms-summary-title {
  margin: 0 0 8px;
  font-size: 18px;
  color: #e4d7ff;
}
.terms-summary-lede {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.terms-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.term-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px 14px 12px;
  background: rgba(255, 255, 255, 0.03);
  position: relative;
}
.term-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.term-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9588aa;
}
.term-help {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(188, 158, 255, 0.28);
  background: rgba(124, 77, 255, 0.12);
  color: #d8baff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.term-help:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(124, 77, 255, 0.22);
}
.term-value {
  display: grid;
  gap: 4px;
}
.term-value-line {
  display: block;
  color: #f3efff;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.35;
}
.term-tip-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: grid;
  place-items: center;
  padding: 20px;
}
.term-tip-overlay[hidden] { display: none !important; }
body.term-tip-open { overflow: hidden; }
.term-tip-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 14, 0.74);
  backdrop-filter: blur(10px);
}
.term-tip-card {
  position: relative;
  width: min(440px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border: 1px solid rgba(188, 158, 255, 0.28);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(19, 25, 48, 0.98), rgba(8, 13, 28, 0.98));
  box-shadow: var(--shadow);
  padding: 22px 22px 20px;
}
.term-tip-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  cursor: pointer;
}
.term-tip-close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(124, 77, 255, 0.22);
}
.term-tip-overlay-title {
  margin: 0 0 12px;
  padding-right: 36px;
  font-size: 18px;
  line-height: 1.25;
  color: #e4d7ff;
}
.term-tip-overlay-body {
  margin: 0 0 18px;
  color: #cbd1e7;
  font-size: 14px;
  line-height: 1.6;
}
.term-tip-dismiss { width: 100%; }
.terms-summary-footer {
  margin: 14px 0 0;
  color: #7f879c;
  font-size: 12px;
  line-height: 1.5;
}
.agreement-scroll {
  max-height: 320px; overflow: auto; padding: 16px; border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(0, 0, 0, 0.18);
  line-height: 1.6; color: #dce3fb; font-size: 14px; margin-bottom: 16px;
}
.check-row { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 16px; color: #dce3fb; }
.table-wrap { overflow: auto; margin-top: 10px; }
table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 14px; }
th, td { padding: 12px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); text-align: left; vertical-align: top; }
th { color: #dce3fb; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.empty-cell { text-align: center; color: var(--muted); padding: 24px 12px; }
.status-pill {
  display: inline-flex; padding: 4px 10px; border-radius: 999px;
  background: rgba(124, 77, 255, 0.16); border: 1px solid rgba(124, 77, 255, 0.28);
  font-size: 12px; font-weight: 800;
}
.name-cell { display: inline-flex; align-items: center; gap: 8px; }
.inline-pre, .modal-pre {
  white-space: pre-wrap; word-break: break-word; font-size: 12px;
  color: #cbd1e7; margin: 0; max-height: 60vh; overflow: auto;
}
.history-card {
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px;
  padding: 16px; margin-bottom: 12px; background: rgba(255, 255, 255, 0.03);
}
.history-collapsible { margin-top: 4px; }
.history-collapsible-summary {
  list-style: none;
  cursor: pointer;
  font-size: 18px;
  color: #e4d7ff;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}
.history-collapsible-summary::-webkit-details-marker { display: none; }
.history-collapsible-summary::marker { content: ""; }
.history-collapsible-summary::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid #e4d7ff;
  border-bottom: 2px solid #e4d7ff;
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
  flex-shrink: 0;
  margin-top: -2px;
}
.history-collapsible[open] .history-collapsible-summary::before {
  transform: rotate(45deg);
  margin-top: 2px;
}
.history-collapsible-summary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(124, 77, 255, 0.22);
  border-radius: 6px;
}
.btn-danger-outline {
  border-color: rgba(255, 107, 140, 0.55);
  color: #ffb8c9;
}
.btn-danger-outline:hover {
  border-color: rgba(255, 107, 140, 0.85);
  color: #ffd6df;
  background: rgba(255, 80, 120, 0.08);
}
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 4, 12, 0.55); padding: 28px 0; text-align: center; color: #778099;
}
.amb-modal {
  position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 20px;
}
.amb-modal[hidden] { display: none !important; }
.amb-modal-backdrop { position: absolute; inset: 0; background: rgba(3, 5, 14, 0.74); backdrop-filter: blur(10px); }
.amb-modal-card {
  position: relative; width: min(720px, 100%); max-height: calc(100vh - 40px); overflow: auto;
  border: 1px solid rgba(188, 158, 255, 0.28); border-radius: 24px;
  background: linear-gradient(180deg, rgba(19, 25, 48, 0.98), rgba(8, 13, 28, 0.98));
  box-shadow: var(--shadow); padding: 24px;
}
.amb-modal-close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px;
  border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05); color: #fff; cursor: pointer;
}
.amb-modal-card .dialog-title {
  margin: 0 0 16px;
  padding-right: 36px;
  font-size: 24px;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--purple2), #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dialog-box {
  border: 1px solid rgba(188, 158, 255, 0.24);
  border-radius: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.03);
}
.dialog-box--success { border-color: rgba(100, 220, 140, 0.28); background: rgba(80, 200, 120, 0.06); }
.dialog-box--error { border-color: rgba(255, 107, 140, 0.28); background: rgba(255, 80, 120, 0.06); }
.dialog-message {
  margin: 0 0 18px;
  color: #dce3fb;
  line-height: 1.6;
  font-size: 15px;
}
.dialog-box--success .dialog-message { color: #d7f5df; }
.dialog-box--error .dialog-message { color: #ffd6df; }
.amb-modal-card .dialog-ok { width: 100%; margin-top: 4px; }
.table-panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.table-panel-range {
  margin: 0;
  font-size: 13px;
}
.table-panel-pagination {
  display: flex;
  align-items: center;
  gap: 10px;
}
.table-panel-page {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

/* Ambassador dashboard hierarchy refresh (Partner Portal parity) */
body.ambassador-dashboard .container {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 32px;
}

body.ambassador-dashboard .panel {
  margin-bottom: 0;
}

.portal-section-group {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.portal-section-group-title {
  margin: 0;
  padding: 0 2px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9588aa;
}

.portal-section-group-body {
  display: grid;
  gap: 12px;
}

.portal-section-group-body > .panel {
  margin: 0;
}

.portal-card-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  color: #efeaff;
  letter-spacing: -0.02em;
}

.panel-compact .portal-card-title {
  font-size: 17px;
}

.section-lede {
  margin: -4px 0 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.panel-primary {
  border-color: rgba(165, 107, 255, 0.22);
  background:
    radial-gradient(ellipse 90% 50% at 50% 0%, rgba(124, 77, 255, 0.08), transparent 65%),
    rgba(255, 255, 255, 0.03);
}

.panel-secondary {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.panel-compact {
  padding: 18px 20px;
}

.panel-compact h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.subsection-title {
  margin: 14px 0 10px;
  font-size: 15px;
  color: #dce3fb;
}

.dashboard-hero {
  padding: 22px 24px;
  border-color: rgba(165, 107, 255, 0.22);
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(124, 77, 255, 0.12), transparent 70%),
    rgba(255, 255, 255, 0.03);
}

.dashboard-hero-main {
  align-items: flex-start;
  gap: 18px;
}

.dashboard-hero-avatar {
  width: 76px;
  height: 76px;
  flex-shrink: 0;
}

.dashboard-hero-copy h1 {
  font-size: clamp(1.65rem, 4vw, 2rem);
  margin-bottom: 4px;
}

.dashboard-hero-meta {
  margin: 0 0 12px;
  font-size: 14px;
}

.dashboard-hero-status {
  padding: 10px 16px;
  font-size: 14px;
}

.hero-summary-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-summary-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(165, 107, 255, 0.24);
  background: rgba(124, 77, 255, 0.1);
}

.hero-summary-pill-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c7aaff;
}

.hero-summary-pill-value {
  font-size: 14px;
  font-weight: 800;
  color: #efeaff;
}

.getting-started-card {
  padding: 20px 22px;
}

.getting-started-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.getting-started-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #a9b0c8;
}

.getting-started-step.is-done {
  color: #dce3fb;
}

.getting-started-mark {
  width: 20px;
  text-align: center;
  font-weight: 800;
  color: #7c4dff;
}

.getting-started-step.is-done .getting-started-mark {
  color: #64dc8c;
}

.referral-link-card .referral-link-grid {
  margin-top: 4px;
}

.metric-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.metric-chip {
  flex: 1 1 120px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.metric-chip--subdued {
  background: rgba(255, 255, 255, 0.015);
  border-color: rgba(255, 255, 255, 0.05);
}

.metric-chip-label {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #a9b0c8;
}

.metric-chip-value {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #efeaff;
  line-height: 1.1;
}

.metric-chip-value--subdued {
  font-size: 16px;
  color: #dce3fb;
}

.metric-strip--subdued {
  margin-top: 0;
}

.performance-secondary {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.performance-secondary-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9588aa;
}

.funnel-card {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.funnel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.funnel-row--muted .funnel-row-value {
  color: #9588aa;
  font-style: italic;
  font-weight: 600;
}

.funnel-row-label {
  font-size: 14px;
  color: #dce3fb;
  font-weight: 650;
}

.funnel-row-value {
  font-size: 16px;
  font-weight: 800;
  color: #efeaff;
}

.empty-state {
  text-align: center;
  padding: 28px 18px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.02);
}

.empty-state p {
  margin: 0;
  max-width: 420px;
  margin-inline: auto;
}

.compact-empty {
  padding: 18px 14px;
}

.compact-empty p {
  margin: 0;
}

.referrals-empty {
  text-align: left;
}

.referrals-empty p {
  max-width: none;
  margin-inline: 0;
}

.terms-compact-row dd .terms-value-line {
  display: block;
  line-height: 1.45;
}

.terms-compact-row dd .terms-value-line + .terms-value-line {
  margin-top: 4px;
}

.terms-compact-row dd .terms-value-line strong {
  font-weight: 800;
}

.earnings-empty {
  margin-top: 12px;
}

.portal-details {
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.portal-details + .portal-details {
  margin-top: 8px;
}

.portal-details-summary {
  cursor: pointer;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 750;
  color: #dce3fb;
  list-style: none;
}

.portal-details-summary::-webkit-details-marker {
  display: none;
}

.portal-details[open] .portal-details-summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-details > :not(summary) {
  padding: 12px 14px 14px;
}

.terms-compact-grid {
  display: grid;
  gap: 10px;
}

.terms-compact-row {
  display: grid;
  grid-template-columns: minmax(0, 140px) minmax(0, 1fr);
  gap: 10px 14px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.terms-compact-row dt {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9588aa;
}

.terms-compact-row dd {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #efeaff;
  line-height: 1.4;
}

.ledger-summary {
  margin: 8px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.ledger-summary-type {
  margin: 0 0 4px;
  font-size: 14px;
  color: #efeaff;
}

.ledger-summary-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.history-card--compact {
  padding: 12px 14px;
}

.history-card--compact .btn-row {
  margin-top: 10px;
}

.panel-subdued-danger {
  opacity: 0.92;
}

body.ambassador-dashboard .site-footer {
  margin-top: 24px;
  padding: 28px 0 16px;
}

@media (max-width: 760px) {
  .container { padding: 14px 0 40px; }
  .hero-block { padding: 24px 18px 22px; }
  .hero-benefits { gap: 12px 18px; margin-top: 24px; padding-top: 10px; }
  .hero-benefits li { font-size: 13px; }
  .terms-summary-grid { grid-template-columns: 1fr; }
  .agreement-actions { flex-direction: column; }
  .agreement-actions .btn { width: 100%; }
  .agreement-panel-top { flex-wrap: wrap; }
  .agreement-user-chip { max-width: 100%; margin-left: auto; }
  .copy-grid, .metrics-grid { grid-template-columns: 1fr; }
  .dashboard-header { flex-direction: column; align-items: flex-start; }
  .dashboard-hero { padding: 18px 16px; }
  .dashboard-hero-main { flex-direction: column; }
  .terms-compact-row { grid-template-columns: 1fr; }
  .funnel-row { flex-direction: column; align-items: flex-start; gap: 4px; }
}
