:root {
  color-scheme: dark;
  --page: #000;
  --ink: #f5f5f7;
  --ink-soft: #d2d2d7;
  --muted: #86868b;
  --blue: #0071e3;
  --blue-strong: #006edb;
  --green: #30d158;
  --danger: #d70015;
  --warning: #ff9f0a;
  --card: #f5f5f7;
  --card-ink: #1d1d1f;
  --card-muted: #6e6e73;
  --card-line: #d2d2d7;
  --dark-card: #161617;
  --dark-line: rgba(255, 255, 255, 0.14);
  --shadow: 0 42px 120px rgba(0, 0, 0, 0.42);
  --font-sans: "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(920px 520px at 18% 4%, rgba(0, 113, 227, 0.22), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), transparent 34vh),
    var(--page);
  font-family: var(--font-sans);
  line-height: 1.45;
}

[hidden] {
  display: none !important;
}

.cursor-cube-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  perspective: 720px;
  transform: translateZ(0);
}

.cursor-cube {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: var(--cube-size, 10px);
  height: var(--cube-size, 10px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 3px;
  background:
    linear-gradient(135deg, rgba(0, 113, 227, 0.42), rgba(48, 209, 88, 0.24)),
    rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 12px rgba(0, 113, 227, 0.32),
    0 0 20px rgba(48, 209, 88, 0.2),
    inset 0 0 8px rgba(255, 255, 255, 0.18);
  opacity: 0;
  transform-style: preserve-3d;
  animation: cursorCubeDrift var(--cube-duration, 1100ms) cubic-bezier(0.18, 0.72, 0.24, 1) forwards;
  contain: paint;
  will-change: opacity, transform;
}

.cursor-cube::before,
.cursor-cube::after {
  position: absolute;
  inset: 1px;
  border: 1px solid rgba(48, 209, 88, 0.44);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.cursor-cube::before {
  transform: translate3d(3px, -3px, -6px);
  opacity: 0.48;
}

.cursor-cube::after {
  inset: 24%;
  border-color: rgba(255, 255, 255, 0.5);
  background: radial-gradient(circle, rgba(48, 209, 88, 0.28), transparent 62%);
  filter: blur(0.2px);
  transform: translateZ(5px);
}

@keyframes cursorCubeDrift {
  0% {
    opacity: 0;
    transform:
      perspective(520px)
      translate3d(0, 0, 0)
      rotateX(var(--cube-rx-from, 20deg))
      rotateY(var(--cube-ry-from, 40deg))
      rotateZ(var(--cube-rz-from, 0deg))
      scale(0.55);
  }

  14% {
    opacity: var(--cube-opacity, 0.68);
  }

  100% {
    opacity: 0;
    transform:
      perspective(520px)
      translate3d(var(--cube-dx, 0), var(--cube-dy, -42px), 0)
      rotateX(var(--cube-rx-to, 180deg))
      rotateY(var(--cube-ry-to, 220deg))
      rotateZ(var(--cube-rz-to, 80deg))
      scale(1.18);
  }
}

body,
button,
input,
select {
  font: inherit;
  font-family: var(--font-sans);
}

button,
input,
select {
  max-width: 100%;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 16px;
  z-index: 10;
  transform: translateY(-140%);
  border-radius: 999px;
  background: var(--ink);
  color: var(--card-ink);
  padding: 10px 16px;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.45);
  outline-offset: 3px;
}

.site-header,
main {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

main {
  z-index: 1;
}

.site-header {
  z-index: 4;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: inline-grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: 0 12px 34px rgba(0, 113, 227, 0.26);
}

.brand-mark::before {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 3px solid #000;
  border-radius: 50%;
  content: "";
  transform: translate(-2px, -2px);
}

.brand-mark::after {
  position: absolute;
  width: 9px;
  height: 3px;
  border-radius: 999px;
  background: #000;
  content: "";
  transform: translate(7px, 7px) rotate(45deg);
}

.header-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  max-width: min(52vw, 360px);
}

.login-button,
.current-user-name {
  min-height: 36px;
  border: 1px solid var(--dark-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  padding: 0 18px;
  font-weight: 700;
}

.login-button {
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.login-button:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
}

.login-button:active,
.login-button.is-pressed {
  transform: scale(0.98);
}

.current-user-name {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: transparent;
  cursor: pointer;
  line-height: 34px;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.current-user-name:hover,
.current-user-name[aria-expanded="true"] {
  border-color: rgba(0, 113, 227, 0.58);
  background: transparent;
  color: var(--ink);
}

.current-user-name:active {
  transform: scale(0.98);
}

.current-user-name[hidden] {
  display: none;
}

.profile-menu[hidden] {
  display: none;
}

.profile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  width: min(224px, calc(100vw - 24px));
  max-height: calc(100vh - 72px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  background: var(--dark-card);
  color: var(--ink);
  padding: 10px;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.42);
}

.profile-menu-kicker {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.profile-menu-row {
  display: grid;
  gap: 3px;
  padding: 7px 0;
}

.profile-menu-row + .profile-menu-row {
  border-top: 1px solid var(--dark-line);
}

.profile-menu-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.profile-menu strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.25;
}

#profile-menu-email {
  color: var(--ink-soft);
  font-size: 12px;
}

.profile-menu-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--dark-line);
}

.profile-menu-button {
  min-height: 32px;
  border: 1px solid var(--dark-line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  padding: 0 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.profile-menu-button:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
}

.profile-menu-button:active {
  transform: scale(0.98);
}

.profile-menu-button.danger {
  border-color: rgba(255, 105, 97, 0.3);
  background: rgba(255, 105, 97, 0.06);
  color: #ff6961;
}

.profile-menu-button.danger:hover {
  border-color: rgba(255, 105, 97, 0.52);
  background: rgba(255, 105, 97, 0.1);
}

.login-modal[hidden] {
  display: none;
}

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  overflow-y: auto;
  place-items: center;
  padding: 20px;
}

.login-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
}

.login-dialog {
  color-scheme: light;
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  max-height: min(680px, calc(100vh - 40px));
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 8px;
  background: var(--card);
  color: var(--card-ink);
  padding: clamp(22px, 3vw, 28px);
  box-shadow: var(--shadow);
}

.login-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.login-dialog-header h2 {
  margin-bottom: 0;
}

.login-form {
  display: grid;
  gap: 15px;
}

.modal-close-button {
  display: inline-grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--card-line);
  border-radius: 999px;
  background: #fff;
  color: var(--card-ink);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.modal-close-button:hover {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

.login-error {
  margin-bottom: 0;
  line-height: 1.35;
}

.login-error[data-message-type="notice"] {
  border-color: rgba(0, 113, 227, 0.24);
  background: rgba(0, 113, 227, 0.08);
  color: var(--blue);
}

.login-text-link {
  width: fit-content;
  border: 0;
  background: transparent;
  color: var(--blue);
  padding: 0;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.login-text-link:hover {
  color: var(--blue-strong);
  text-decoration: underline;
}

.login-register {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 18px 0 0;
  border-top: 1px solid var(--card-line);
  color: var(--card-muted);
  padding-top: 16px;
  font-size: 14px;
  font-weight: 600;
}

.dashboard-modal[hidden] {
  display: none;
}

.dashboard-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  overflow-y: auto;
  place-items: center;
  padding: 20px;
}

.dashboard-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.dashboard-panel {
  color-scheme: light;
  position: relative;
  z-index: 1;
  width: min(100%, 960px);
  max-height: min(760px, calc(100vh - 40px));
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 8px;
  background: var(--card);
  color: var(--card-ink);
  padding: clamp(20px, 3vw, 28px);
  box-shadow: var(--shadow);
}

.dashboard-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.dashboard-panel-header h2 {
  margin-bottom: 0;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: stretch;
  gap: 14px;
}

.dashboard-section {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  gap: 14px;
  border: 1px solid var(--card-line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.dashboard-section-heading h3 {
  margin-bottom: 0;
  font-size: 22px;
  line-height: 1.15;
}

.dashboard-section-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-section .secondary-button {
  border-color: var(--card-line);
  color: var(--card-ink);
}

.dashboard-section .secondary-button:hover:not(:disabled) {
  border-color: var(--blue);
  background: rgba(0, 113, 227, 0.08);
}

.dashboard-section .secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.dashboard-small-button {
  min-height: 36px;
  flex: 0 0 auto;
  padding: 0 12px;
  font-size: 13px;
}

.dashboard-danger-button {
  border-color: rgba(215, 0, 21, 0.28) !important;
  color: var(--danger) !important;
}

.dashboard-danger-button:hover:not(:disabled) {
  border-color: rgba(215, 0, 21, 0.48) !important;
  background: rgba(215, 0, 21, 0.08) !important;
}

.dashboard-history-section {
  grid-column: 1 / -1;
}

.dashboard-account-actions-section {
  grid-column: 1 / -1;
  justify-content: flex-start;
}

.dashboard-account-status {
  display: grid;
  gap: 6px;
  border: 1px solid var(--card-line);
  border-radius: 8px;
  padding: 12px;
}

.dashboard-account-status[data-state="pending"] {
  border-color: rgba(215, 0, 21, 0.32);
  background: rgba(215, 0, 21, 0.06);
}

.dashboard-account-status strong {
  color: var(--card-ink);
  font-size: 15px;
}

.dashboard-account-status span {
  color: var(--card-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.dashboard-account-dates {
  display: grid;
  gap: 6px;
  margin: 4px 0 0;
}

.dashboard-account-dates div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px;
  border-top: 1px solid var(--card-line);
  padding-top: 6px;
}

.dashboard-account-dates dt,
.dashboard-account-dates dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
}

.dashboard-account-dates dt {
  color: var(--card-muted);
  font-weight: 800;
}

.dashboard-account-dates dd {
  color: var(--card-ink);
  font-weight: 700;
}

.dashboard-account-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-profile-summary {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.dashboard-avatar {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 1px solid rgba(0, 113, 227, 0.22);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 25%, rgba(48, 209, 88, 0.2), transparent 36%),
    rgba(0, 113, 227, 0.1);
  background-position: center;
  background-size: cover;
  color: var(--blue);
  font-size: 22px;
  font-weight: 800;
}

.dashboard-avatar.has-image {
  border-color: var(--card-line);
}

.dashboard-profile-copy {
  min-width: 0;
}

.dashboard-profile-copy strong,
.dashboard-profile-copy span {
  display: block;
  overflow-wrap: anywhere;
}

.dashboard-profile-copy strong {
  font-size: 20px;
  line-height: 1.2;
}

.dashboard-profile-copy span {
  color: var(--card-muted);
  font-size: 14px;
  font-weight: 600;
}

.dashboard-detail-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.dashboard-detail-list div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  border-top: 1px solid var(--card-line);
  padding-top: 8px;
}

.dashboard-detail-list dt {
  color: var(--card-muted);
  font-size: 13px;
  font-weight: 800;
}

.dashboard-detail-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 700;
}

.dashboard-balance-value {
  display: block;
  color: var(--card-ink);
  font: 800 clamp(34px, 5vw, 48px)/1 var(--font-display);
}

.dashboard-history-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dashboard-history-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--card-line);
  border-radius: 8px;
  padding: 10px 12px;
}

.dashboard-history-list strong,
.dashboard-history-list span,
.dashboard-method-list strong,
.dashboard-method-list span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.dashboard-history-list strong,
.dashboard-method-list strong {
  color: var(--card-ink);
  font-size: 14px;
}

.dashboard-history-list span {
  color: var(--card-muted);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.dashboard-history-copy {
  display: grid;
  gap: 2px;
}

.dashboard-history-copy span,
.dashboard-method-list span {
  color: var(--card-muted);
  font-size: 12px;
  font-weight: 700;
  text-align: left;
}

.dashboard-history-side {
  display: grid;
  gap: 2px;
  justify-items: end;
}

.dashboard-history-side strong {
  color: var(--card-ink);
}

.dashboard-status-pill {
  width: fit-content;
  border: 1px solid var(--card-line);
  border-radius: 999px;
  color: var(--card-muted);
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 800;
}

.dashboard-method-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dashboard-method-list li {
  display: grid;
  gap: 2px;
  border: 1px solid var(--card-line);
  border-radius: 8px;
  padding: 10px 12px;
}

.dashboard-empty-state {
  margin: 0;
  border: 1px dashed var(--card-line);
  border-radius: 8px;
  color: var(--card-muted);
  padding: 16px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.hero {
  display: grid;
  min-height: calc(100vh - 72px);
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  gap: clamp(28px, 5vw, 74px);
  align-items: center;
  padding: clamp(20px, 5vh, 58px) 0 clamp(32px, 6vh, 70px);
}

.hero > * {
  min-width: 0;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow,
.card-kicker {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-family: var(--font-display);
  font-size: clamp(62px, 8.4vw, 116px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.94;
}

h2 {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
}

h3 {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.18;
}

.hero-subtitle {
  max-width: 610px;
  margin-bottom: 26px;
  color: var(--ink-soft);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.24;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  list-style: none;
}

.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-list li::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.lookup-card {
  color-scheme: light;
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 8px;
  background: var(--card);
  color: var(--card-ink);
  padding: clamp(22px, 3vw, 30px);
  box-shadow: var(--shadow);
}

.lookup-card .eyebrow {
  color: var(--blue);
}

.lookup-card-header {
  margin-bottom: 22px;
}

.lookup-card-header p:last-child {
  margin: 0;
  color: var(--card-muted);
  font-size: 15px;
}

.identity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field,
.field-phone {
  min-width: 0;
}

.field-phone {
  grid-column: 1 / -1;
}

label {
  display: block;
  margin-bottom: 7px;
  color: var(--card-ink);
  font-size: 13px;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--card-line);
  border-radius: 8px;
  background: #fff;
  color: var(--card-ink);
  outline: none;
  padding: 11px 13px;
  font-size: 16px;
  line-height: 1.2;
}

input::placeholder {
  color: #86868b;
}

input:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.14);
}

select {
  overflow: hidden;
  padding-right: 34px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

option {
  color: var(--card-ink);
  background: #fff;
}

input:-webkit-autofill {
  box-shadow: 0 0 0 1000px #fff inset;
  -webkit-text-fill-color: var(--card-ink);
}

.phone-input-group {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 10px;
}

.muted-copy,
.action-message {
  color: var(--muted);
  font-size: 13px;
}

.consent-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 13px;
  color: var(--card-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.consent-row input {
  width: 17px;
  height: 17px;
  min-height: 0;
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: var(--blue);
}

.form-error {
  margin-bottom: 12px;
  border: 1px solid rgba(215, 0, 21, 0.24);
  border-radius: 8px;
  background: rgba(215, 0, 21, 0.08);
  color: var(--danger);
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.primary-button {
  width: 100%;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
}

.primary-button:hover {
  border-color: var(--blue-strong);
  background: var(--blue-strong);
}

.primary-button:active,
.secondary-button:active {
  transform: scale(0.99);
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: wait;
  opacity: 0.56;
}

.results-section {
  padding: 68px 0 86px;
  border-top: 1px solid var(--dark-line);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 24px;
}

.section-heading h2 {
  color: var(--ink);
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1;
}

.section-heading p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.result-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  background: var(--dark-card);
  color: var(--ink);
  padding: 22px;
}

.result-card-icon {
  display: inline-grid;
  width: 26px;
  height: 26px;
  margin-bottom: 14px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--blue), var(--green));
}

.progress-card,
.sources-card,
.summary-card,
.identifiers-card,
.confidence-card,
.actions-card {
  grid-column: span 3;
}

.card-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.progress-track {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.progress-fill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transition: width 0.35s ease, background 0.2s ease;
}

.progress-fill[data-indeterminate="true"] {
  width: 34%;
  animation: progressSweep 1.45s ease-in-out infinite;
}

.progress-fill[data-state="failed"] {
  background: linear-gradient(90deg, var(--danger), var(--warning));
}

.progress-fill[data-state="completed"] {
  background: var(--green);
}

@keyframes progressSweep {
  0% {
    transform: translateX(-115%);
  }

  100% {
    transform: translateX(320%);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .cursor-cube-layer {
    display: none;
  }

  .cursor-cube,
  .progress-fill[data-indeterminate="true"] {
    animation: none;
    transition: none;
  }
}

@media (hover: none), (pointer: coarse) {
  .cursor-cube-layer {
    display: none;
  }
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.progress-meta strong {
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.summary-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.summary-list div {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
}

.summary-list dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.summary-list dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border: 1px solid var(--dark-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-soft);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
}

.empty-state {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.source-list {
  display: grid;
  gap: 10px;
}

.source-item {
  display: grid;
  gap: 4px;
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 12px;
}

.source-item a {
  color: #66b5ff;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.source-item a:hover {
  text-decoration: underline;
}

.source-item span {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.status-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border: 1px solid rgba(48, 209, 88, 0.42);
  border-radius: 999px;
  background: rgba(48, 209, 88, 0.12);
  color: var(--green);
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
}

.status-badge.warning {
  border-color: rgba(255, 159, 10, 0.42);
  background: rgba(255, 159, 10, 0.12);
  color: #ffd60a;
}

.status-badge.danger {
  border-color: rgba(215, 0, 21, 0.42);
  background: rgba(215, 0, 21, 0.12);
  color: #ff6961;
}

.action-buttons {
  display: grid;
  gap: 10px;
}

.secondary-button {
  border: 1px solid var(--dark-line);
  background: transparent;
  color: var(--ink);
  padding: 0 14px;
}

.secondary-button:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
}

.action-message {
  min-height: 20px;
  margin: 12px 0 0;
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 24px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .lookup-card {
    max-width: 560px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-profile-section,
  .dashboard-history-section {
    grid-column: auto;
    grid-row: auto;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .result-card,
  .progress-card,
  .sources-card,
  .summary-card,
  .identifiers-card,
  .confidence-card,
  .actions-card {
    grid-column: auto;
  }
}

@media (max-width: 680px) {
  .site-header,
  main {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    min-height: 64px;
  }

  .login-modal {
    padding: 12px;
  }

  .login-dialog {
    max-height: calc(100vh - 24px);
    padding: 20px;
  }

  .dashboard-modal {
    padding: 12px;
  }

  .dashboard-panel {
    max-height: calc(100vh - 24px);
    padding: 20px;
  }

  .dashboard-panel-header {
    gap: 14px;
    margin-bottom: 16px;
  }

  .dashboard-profile-summary,
  .dashboard-detail-list div,
  .dashboard-history-list li {
    grid-template-columns: 1fr;
  }

  .dashboard-section-toolbar {
    flex-direction: column;
  }

  .dashboard-small-button {
    width: 100%;
  }

  .dashboard-history-side {
    justify-items: start;
  }

  .dashboard-history-list span {
    text-align: left;
  }

  .login-dialog-header {
    gap: 14px;
    margin-bottom: 16px;
  }

  .hero {
    gap: 24px;
    padding-bottom: 42px;
  }

  h1 {
    font-size: 54px;
  }

  .hero-subtitle {
    font-size: 22px;
  }

  .lookup-card,
  .result-card {
    padding: 18px;
  }

  .identity-grid,
  .phone-input-group {
    grid-template-columns: 1fr;
  }

  .summary-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .progress-meta {
    align-items: flex-start;
    flex-direction: column;
  }
}
