:root {
  --xpo-bg: #f4ede5;
  --xpo-surface: rgba(255, 252, 247, 0.97);
  --xpo-surface-strong: rgba(255, 255, 255, 0.99);
  --xpo-text: #24211f;
  --xpo-muted: #544d47;
  --xpo-line: rgba(173, 151, 132, 0.34);
  --xpo-forest: #355641;
  --xpo-forest-deep: #263b2e;
  --xpo-sky: #5f7998;
  --xpo-rose: #c48f69;
  --xpo-rose-soft: #edd5c1;
  --xpo-ok: #0c7a22;
  --xpo-danger: #b00020;
  --xpo-radius-lg: 28px;
  --xpo-shadow: 0 18px 34px rgba(67, 56, 45, 0.08);
  --xpo-shadow-lg: 0 28px 58px rgba(56, 43, 31, 0.14);
  --xpo-shadow-press: 0 14px 24px rgba(36, 33, 31, 0.14);
  --bg: var(--xpo-bg);
  --surface: var(--xpo-surface);
  --panel: var(--xpo-surface);
  --text: var(--xpo-text);
  --muted: var(--xpo-muted);
  --line: var(--xpo-line);
  --ink: var(--xpo-forest-deep);
  --ink-soft: #314236;
  --mist: rgba(255, 248, 241, 0.98);
  --primary: var(--xpo-forest);
  --primary-text: #ffffff;
  --gold: var(--xpo-rose);
  --rose: var(--xpo-rose);
  --danger: var(--xpo-danger);
  --ok: var(--xpo-ok);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--xpo-text);
  font-family: "Manrope", "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  background: radial-gradient(
      circle at top left,
      rgba(95, 121, 152, 0.12),
      transparent 24%
    ),
    radial-gradient(
      circle at 88% 12%,
      rgba(196, 143, 105, 0.14),
      transparent 22%
    ),
    linear-gradient(180deg, #fbf8f3 0%, var(--xpo-bg) 100%);
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
}

a,
button {
  transition: transform 180ms ease, box-shadow 180ms ease,
    border-color 180ms ease, background 180ms ease, color 180ms ease;
  -webkit-tap-highlight-color: transparent;
}

@keyframes xpo-soft-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes xpo-soft-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(196, 143, 105, 0);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(196, 143, 105, 0.08);
  }
}

a:active,
button:active {
  transform: scale(0.985);
  box-shadow: var(--xpo-shadow-press);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--xpo-rose);
  outline-offset: 2px;
}

.shell {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 28px 16px 60px;
}

.card {
  border: 1px solid var(--xpo-line);
  border-radius: var(--xpo-radius-lg);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.99),
    var(--xpo-surface)
  );
  box-shadow: var(--xpo-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

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

.actions {
  display: grid;
  gap: 12px;
}

.copy,
.muted {
  color: var(--xpo-muted);
  line-height: 1.6;
}

.xpo-entry-form,
.xpo-portal-page,
.xpo-profile-page,
.xpo-scan-page,
.xpo-auth-page,
.xpo-ops-page,
.xpo-admin-ops,
.xpo-upgrade-page {
  font-family: "Manrope", "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
}

@media (prefers-reduced-motion: no-preference) {
  .xpo-entry-form .card,
  .xpo-portal-page .hero,
  .xpo-portal-page .card,
  .xpo-profile-page .hero,
  .xpo-profile-page .card,
  .xpo-auth-page .hero,
  .xpo-auth-page .card,
  .xpo-ops-page .panel,
  .xpo-admin-ops .panel,
  .xpo-upgrade-page .panel {
    animation: xpo-soft-rise 420ms ease both;
  }

  .xpo-entry-form .choice-card:nth-child(2),
  .xpo-portal-page .card:nth-child(2),
  .xpo-profile-page .card:nth-child(2),
  .xpo-ops-page .card:nth-child(2),
  .xpo-admin-ops .panel:nth-child(2) {
    animation-delay: 60ms;
  }

  .xpo-entry-form .choice-card:nth-child(3),
  .xpo-portal-page .card:nth-child(3),
  .xpo-profile-page .card:nth-child(3),
  .xpo-ops-page .card:nth-child(3),
  .xpo-admin-ops .panel:nth-child(3) {
    animation-delay: 110ms;
  }

  .xpo-entry-form .choice-cta:hover,
  .xpo-portal-page a.btn:hover,
  .xpo-profile-page .xpo-tab-btn[aria-selected="true"],
  .xpo-scan-page .actions .primary,
  .xpo-upgrade-page a.btn.primary,
  .xpo-upgrade-page button.btn.primary {
    animation: xpo-soft-glow 1.8s ease-in-out 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.status {
  min-height: 22px;
  font-weight: 800;
}

.status.ok {
  color: var(--xpo-ok);
}

.status.error {
  color: var(--xpo-danger);
}

.hidden {
  display: none !important;
}

button,
a.btn,
.actions button,
.actions a {
  min-height: 50px;
}

@media (min-width: 760px) {
  .shell {
    padding: 36px 22px 72px;
  }
}

.xpo-entry-form {
  color: var(--text);
  background: radial-gradient(
      circle at 10% 0%,
      rgba(255, 255, 255, 0.85),
      rgba(255, 255, 255, 0) 30%
    ),
    radial-gradient(
      circle at 88% 8%,
      rgba(86, 120, 163, 0.26),
      rgba(86, 120, 163, 0) 24%
    ),
    radial-gradient(
      circle at 50% 100%,
      rgba(184, 111, 88, 0.08),
      rgba(184, 111, 88, 0) 30%
    ),
    linear-gradient(180deg, #edf4fb 0%, var(--bg) 56%, #d3dfea 100%);
}

.xpo-entry-form .shell {
  width: min(1140px, 100%);
  margin: 0 auto;
  padding: 44px 18px 64px;
  position: relative;
}

.xpo-entry-form .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(86, 120, 163, 0.22);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #35506f;
  box-shadow: 0 18px 36px rgba(39, 63, 92, 0.12);
  margin-bottom: 20px;
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
}

.xpo-entry-form .card {
  background: linear-gradient(
    180deg,
    rgba(251, 254, 255, 0.98),
    rgba(232, 241, 249, 0.96)
  );
  border: 2px solid rgba(177, 196, 217, 0.96);
  border-radius: 34px;
  padding: 24px 24px 26px;
  box-shadow: 0 30px 72px rgba(32, 51, 78, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    inset 0 -20px 40px rgba(255, 255, 255, 0.14);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(14px) saturate(125%);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
}

.xpo-entry-form .card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, #476482, #355641, #b86f58);
}

.xpo-entry-form .hero {
  position: relative;
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  max-width: 100%;
  text-align: center;
  justify-items: center;
}

.xpo-entry-form h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.55rem, 4.9vw, 3.55rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.xpo-entry-form .sub {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  max-width: 35rem;
  font-size: 1rem;
  text-align: center;
}

.xpo-entry-form .choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: stretch;
}

.xpo-entry-form .choice-card {
  display: grid;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  border: 2px solid rgba(177, 196, 217, 0.96);
  border-radius: 30px;
  min-height: 0;
  padding: 24px 22px 22px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 180ms ease, box-shadow 180ms ease,
    border-color 180ms ease, background 180ms ease;
  backdrop-filter: blur(10px) saturate(118%);
  -webkit-backdrop-filter: blur(10px) saturate(118%);
}

.xpo-entry-form .choice-card > * {
  position: relative;
  z-index: 1;
}

.xpo-entry-form .choice-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.xpo-entry-form .choice-card::after {
  content: "";
  position: absolute;
  inset: auto -24px -30px auto;
  width: 132px;
  height: 132px;
  border-radius: 999px;
  pointer-events: none;
}

.xpo-entry-form .choice-card.primary-path {
  background: linear-gradient(
    160deg,
    rgba(248, 252, 255, 0.99),
    rgba(217, 231, 246, 0.98)
  );
  box-shadow: 0 30px 60px rgba(37, 68, 106, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    inset 0 -12px 24px rgba(255, 255, 255, 0.1);
}

.xpo-entry-form .choice-card.primary-path::before {
  background: linear-gradient(
    180deg,
    rgba(86, 120, 163, 0.12),
    rgba(86, 120, 163, 0) 44%
  );
}

.xpo-entry-form .choice-card.primary-path::after {
  opacity: 1;
  background: radial-gradient(
    circle,
    rgba(86, 120, 163, 0.18),
    rgba(86, 120, 163, 0) 70%
  );
}

.xpo-entry-form .choice-card.secondary-path {
  background: linear-gradient(
    160deg,
    rgba(248, 252, 255, 0.99),
    rgba(229, 239, 233, 0.98)
  );
  box-shadow: 0 26px 54px rgba(53, 86, 65, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    inset 0 -10px 20px rgba(255, 255, 255, 0.1);
}

.xpo-entry-form .choice-card.secondary-path::before {
  background: linear-gradient(
    180deg,
    rgba(53, 86, 65, 0.1),
    rgba(53, 86, 65, 0) 42%
  );
}

.xpo-entry-form .choice-card.secondary-path::after {
  opacity: 1;
  background: radial-gradient(
    circle,
    rgba(184, 111, 88, 0.14),
    rgba(184, 111, 88, 0) 70%
  );
}

.xpo-entry-form .choice-card:hover,
.xpo-entry-form .choice-card.is-active {
  transform: translateY(-4px);
  box-shadow: 0 36px 74px rgba(29, 49, 77, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.xpo-entry-form .choice-card.primary-path:hover,
.xpo-entry-form .choice-card.primary-path.is-active {
  border-color: rgba(111, 143, 182, 0.44);
}

.xpo-entry-form .choice-card.secondary-path:hover,
.xpo-entry-form .choice-card.secondary-path.is-active {
  border-color: rgba(93, 122, 88, 0.4);
}

.xpo-entry-form .choice-body {
  display: grid;
  gap: 12px;
  align-content: start;
}

.xpo-entry-form .choice-card h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.15rem;
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: var(--ink-soft);
  text-align: center;
}

.xpo-entry-form .choice-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.96rem;
  text-align: center;
}

.xpo-entry-form .choice-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 800;
  border: 1px solid transparent;
  margin-top: 6px;
  width: fit-content;
  justify-self: center;
}

.xpo-entry-form .choice-card.primary-path .choice-cta {
  background: linear-gradient(180deg, #18314c, var(--primary));
  color: var(--primary-text);
  box-shadow: 0 20px 34px rgba(24, 41, 61, 0.28);
}

.xpo-entry-form .choice-card.secondary-path .choice-cta {
  background: rgba(255, 255, 255, 0.92);
  color: #355641;
  border-color: rgba(177, 196, 217, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 14px 26px rgba(32, 51, 78, 0.14);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
}

.xpo-entry-form .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  justify-content: center;
}

.xpo-entry-form button,
.xpo-entry-form a.btn {
  border: 1px solid #111;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}

.xpo-entry-form button:hover,
.xpo-entry-form a.btn:hover {
  transform: translateY(-1px);
}

.xpo-entry-form button.primary,
.xpo-entry-form a.btn.primary {
  background: linear-gradient(180deg, #261f1a, var(--primary));
  color: var(--primary-text);
  box-shadow: 0 18px 28px rgba(26, 23, 21, 0.18);
}

.xpo-entry-form a.btn.secondary {
  background: transparent;
  color: #476482;
  border-color: transparent;
  box-shadow: none;
  padding-inline: 10px;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.xpo-entry-form .status {
  margin-top: 16px;
  min-height: 1.3rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.xpo-entry-form .status.error {
  color: var(--danger);
}

.xpo-entry-form .status.ok {
  color: var(--ok);
}

.xpo-entry-form .hidden {
  display: none !important;
}

.xpo-entry-form .next-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

@media (max-width: 700px) {
  .xpo-entry-form .shell {
    padding: 24px 14px 36px;
  }

  .xpo-entry-form .card {
    padding: 24px 18px;
  }

  .xpo-entry-form .choice-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .xpo-entry-form .choice-card {
    min-height: 0;
    padding: 24px 20px;
  }

  .xpo-entry-form h1 {
    font-size: clamp(2.6rem, 13vw, 3.4rem);
  }

  .xpo-entry-form .actions > * {
    width: 100%;
  }

  .xpo-entry-form button,
  .xpo-entry-form a.btn,
  .xpo-entry-form .choice-cta {
    min-height: 52px;
  }
}

.xpo-portal-page {
  color: var(--text);
  background: radial-gradient(
      circle at 10% 0%,
      rgba(255, 255, 255, 0.82),
      rgba(255, 255, 255, 0) 28%
    ),
    radial-gradient(
      circle at 88% 8%,
      rgba(176, 122, 98, 0.1),
      rgba(176, 122, 98, 0) 22%
    ),
    radial-gradient(
      circle at 50% 100%,
      rgba(49, 72, 59, 0.06),
      rgba(49, 72, 59, 0) 28%
    ),
    linear-gradient(180deg, #f6f1e9 0%, var(--bg) 58%, #e2d8cb 100%);
}

.xpo-portal-page .shell {
  width: min(620px, 100%);
  margin: 0 auto;
  padding: 56px 18px 72px;
  display: grid;
  gap: 28px;
}

.xpo-portal-page .hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(86, 83, 74, 0.18);
  border-radius: 34px;
  background: linear-gradient(
      135deg,
      rgba(30, 39, 42, 0.96),
      rgba(49, 72, 59, 0.96)
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
  box-shadow: 0 28px 58px rgba(31, 30, 27, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  padding: 42px 28px 34px;
  text-align: center;
}

.xpo-portal-page .hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, #677786, #31483b, #b07a62);
}

.xpo-portal-page .hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -40px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(
    circle,
    rgba(219, 232, 244, 0.26),
    rgba(219, 232, 244, 0) 72%
  );
  pointer-events: none;
}

.xpo-portal-page .eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 243, 233, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #e0b29a;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.xpo-portal-page h1 {
  margin: 18px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.75rem, 5.4vw, 4rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  color: #f8fbff;
}

.xpo-portal-page .sub {
  margin: 16px auto 0;
  max-width: 34rem;
  color: rgba(244, 238, 231, 0.88);
  line-height: 1.6;
  font-size: 1.02rem;
}

.xpo-portal-page .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: stretch;
}

.xpo-portal-page .card {
  display: grid;
  gap: 18px;
  min-height: 0;
  padding: 30px 24px 26px;
  border: 1px solid rgba(104, 96, 82, 0.18);
  border-radius: 30px;
  position: relative;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(
    180deg,
    rgba(255, 253, 249, 0.99),
    rgba(245, 239, 231, 0.97)
  );
  box-shadow: 0 22px 42px rgba(54, 45, 36, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.xpo-portal-page .card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.xpo-portal-page .card.bridal::before {
  background: linear-gradient(
    180deg,
    rgba(103, 119, 134, 0.08),
    rgba(103, 119, 134, 0) 42%
  );
}

.xpo-portal-page .card.vendor::before {
  background: linear-gradient(
    180deg,
    rgba(49, 72, 59, 0.08),
    rgba(49, 72, 59, 0) 42%
  );
}

.xpo-portal-page .card > * {
  position: relative;
  z-index: 1;
}

.xpo-portal-page .card h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.15rem;
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: var(--ink-soft);
}

.xpo-portal-page .card p {
  margin: 0 auto;
  max-width: 21rem;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.96rem;
}

.xpo-portal-page .actions {
  display: grid;
  gap: 14px;
  align-content: start;
  margin-top: auto;
  width: 100%;
  justify-items: center;
  padding-top: 6px;
}

.xpo-portal-page a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  width: min(100%, 360px);
  border-radius: 999px;
  padding: 14px 22px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
}

.xpo-portal-page a.btn:hover {
  transform: translateY(-3px) scale(1.01);
}

.xpo-portal-page a.btn.primary {
  background: radial-gradient(
      circle at 30% 18%,
      rgba(255, 255, 255, 0.18),
      rgba(255, 255, 255, 0) 34%
    ),
    linear-gradient(180deg, #2c3941 0%, #31483b 100%);
  color: var(--primary-text);
  box-shadow: 0 16px 28px rgba(31, 30, 27, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -10px 18px rgba(0, 0, 0, 0.08);
}

.xpo-portal-page a.btn.secondary {
  background: radial-gradient(
      circle at 30% 18%,
      rgba(255, 255, 255, 0.94),
      rgba(255, 255, 255, 0) 42%
    ),
    linear-gradient(
      180deg,
      rgba(255, 253, 249, 0.99),
      rgba(243, 237, 229, 0.97)
    );
  color: #31483b;
  border-color: rgba(216, 202, 184, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 12px 22px rgba(54, 45, 36, 0.1),
    inset 0 -8px 16px rgba(176, 122, 98, 0.04);
}

.xpo-portal-page a.btn.primary:hover {
  box-shadow: 0 20px 34px rgba(31, 30, 27, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -10px 18px rgba(0, 0, 0, 0.08);
}

.xpo-portal-page a.btn.secondary:hover {
  border-color: rgba(176, 122, 98, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 16px 28px rgba(54, 45, 36, 0.14),
    inset 0 -8px 16px rgba(176, 122, 98, 0.04);
}

@media (max-width: 760px) {
  .xpo-portal-page .shell {
    padding: 42px 14px 56px;
    gap: 24px;
  }

  .xpo-portal-page .hero {
    padding: 36px 20px 28px;
    border-radius: 28px;
  }

  .xpo-portal-page .card {
    padding: 26px 20px 24px;
  }

  .xpo-portal-page h1 {
    font-size: clamp(2.7rem, 13vw, 3.8rem);
  }

  .xpo-portal-page .grid {
    gap: 24px;
  }

  .xpo-portal-page .actions {
    width: 100%;
  }

  .xpo-portal-page .actions > * {
    width: 100%;
  }

  .xpo-portal-page a.btn {
    width: 100%;
    min-height: 56px;
  }
}

@media (min-width: 900px) {
  .xpo-portal-page .shell {
    width: min(760px, 100%);
  }
}

.xpo-profile-page {
  color: var(--ink);
  background: radial-gradient(
      circle at top left,
      rgba(113, 131, 106, 0.12),
      transparent 24%
    ),
    radial-gradient(
      circle at 88% 12%,
      rgba(242, 183, 148, 0.16),
      transparent 22%
    ),
    linear-gradient(180deg, #fbf8f3 0%, #f2ede5 100%);
}

.xpo-profile-page .shell {
  width: min(680px, 100%);
  margin: 0 auto;
  padding: 28px 16px 56px;
  display: grid;
  gap: 28px;
}

.xpo-profile-page .hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(53, 86, 65, 0.24);
  border-radius: 32px;
  background: radial-gradient(
      circle at 88% 18%,
      rgba(255, 224, 205, 0.18),
      rgba(255, 224, 205, 0) 24%
    ),
    linear-gradient(
      120deg,
      rgba(242, 183, 148, 0.16),
      rgba(242, 183, 148, 0) 34%
    ),
    linear-gradient(180deg, #385b45 0%, #263b2e 100%);
  color: #fff;
  padding: 34px 24px 28px;
  text-align: center;
  box-shadow: 0 28px 54px rgba(38, 59, 46, 0.22);
}

.xpo-profile-page .hero::before,
.xpo-scan-page .hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(
    90deg,
    rgba(95, 121, 152, 0.92),
    rgba(53, 86, 65, 0.96),
    rgba(196, 143, 105, 0.9)
  );
}

.xpo-profile-page .hero::after,
.xpo-scan-page .hero::after {
  content: "";
  position: absolute;
  right: -56px;
  top: -52px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(
    circle,
    rgba(255, 240, 228, 0.22),
    rgba(255, 240, 228, 0) 72%
  );
  pointer-events: none;
}

.xpo-profile-page .eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 800;
}

.xpo-profile-page .hero-mark {
  margin: 0 0 10px;
  font-family: "Lobster", cursive;
  color: var(--gold);
  font-size: 2rem;
  line-height: 1;
}

.xpo-profile-page h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.7rem, 11vw, 4rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.xpo-profile-page .sub {
  margin: 12px auto 0;
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.55;
  font-size: 1rem;
}

.xpo-profile-page .grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}

.xpo-profile-page .card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(219, 202, 185, 0.92);
  border-radius: 28px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.99) 0%,
    var(--mist) 100%
  );
  padding: 22px 18px;
  box-shadow: var(--xpo-shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.xpo-profile-page .card::before,
.xpo-scan-page .scan-profile-card::before,
.xpo-scan-page .scan-notes-card::before,
.xpo-scan-page .scan-offers-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
      circle at top right,
      rgba(196, 143, 105, 0.1),
      rgba(196, 143, 105, 0) 28%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
}

.xpo-profile-page h2 {
  margin: 0 0 10px;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

.xpo-profile-page label {
  font-size: 0.92rem;
  font-weight: 800;
  color: #2e2a27;
}

.xpo-profile-page input,
.xpo-profile-page textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(173, 151, 132, 0.34);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.96);
  color: #24211f;
  font-size: 16px;
}

.xpo-profile-page textarea {
  min-height: 120px;
  resize: vertical;
}

.xpo-profile-page input:focus,
.xpo-profile-page textarea:focus {
  outline: none;
  border-color: rgba(95, 121, 152, 0.66);
  box-shadow: 0 0 0 4px rgba(95, 121, 152, 0.14);
}

.xpo-profile-page .xpo-tab-shell {
  display: grid;
  gap: 16px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 250, 245, 0.7);
  border: 1px solid rgba(196, 143, 105, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.xpo-profile-page .xpo-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.xpo-profile-page .xpo-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  flex: 0 0 auto;
  min-height: 48px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid rgba(173, 151, 132, 0.34);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.97),
    rgba(249, 242, 235, 0.94)
  );
  color: #3a332d;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease,
    color 160ms ease;
}

.xpo-profile-page .xpo-tab-btn[aria-selected="true"] {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #355641 0%, #263b2e 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(38, 59, 46, 0.18);
}

.xpo-profile-page .xpo-tab-panel {
  display: none;
}

.xpo-profile-page .xpo-tab-panel.active {
  display: grid;
  gap: 16px;
}

.xpo-profile-page .scan-offer-stack {
  display: grid;
  gap: 12px;
}

.xpo-profile-page .scan-offer-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(196, 143, 105, 0.24);
  border-radius: 20px;
  padding: 16px;
  background: linear-gradient(
      135deg,
      rgba(196, 143, 105, 0.12),
      rgba(196, 143, 105, 0) 38%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.99),
      rgba(248, 243, 235, 0.96)
    );
}

.xpo-profile-page .scan-offer-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.xpo-profile-page .scan-offer-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #201c19;
}

.xpo-profile-page .scan-offer-copy,
.xpo-profile-page .scan-offer-note,
.xpo-profile-page .scan-panel-copy,
.xpo-profile-page .scan-login-hint {
  margin: 0;
  line-height: 1.55;
  color: #5d554c;
  overflow-wrap: anywhere;
}

.xpo-profile-page .scan-offer-note {
  font-size: 0.92rem;
  font-weight: 700;
  color: #69492f;
}

.xpo-profile-page .scan-offer-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 248, 241, 0.92);
  border: 1px solid rgba(196, 143, 105, 0.32);
  color: #845239;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.xpo-scan-page .shell {
  width: min(920px, 100%);
  gap: 18px;
}

.xpo-scan-page .copy {
  font-size: 0.98rem;
}

.xpo-scan-page .hero {
  position: relative;
  overflow: hidden;
  text-align: left;
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: 34px 24px 28px;
}

.xpo-scan-page .sub {
  margin-left: 0;
  margin-right: 0;
  max-width: 40rem;
}

.xpo-scan-page .scan-profile-card,
.xpo-scan-page .scan-notes-card,
.xpo-scan-page .scan-offers-card {
  position: relative;
  padding: 20px 18px;
}

.xpo-scan-page .scan-profile-head,
.xpo-scan-page .scan-notes-head,
.xpo-scan-page .scan-offers-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.xpo-scan-page .scan-section-kicker {
  margin: 0 0 6px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a6a10;
}

.xpo-scan-page .scan-profile-head h2,
.xpo-scan-page .scan-notes-head h2,
.xpo-scan-page .scan-offers-head h2 {
  margin-bottom: 6px;
}

.xpo-scan-page .scan-mode-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(196, 143, 105, 0.3);
  background: rgba(255, 248, 241, 0.92);
  color: #845239;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.xpo-scan-page .scan-profile-body {
  display: grid;
  gap: 14px;
}

.xpo-scan-page .scan-summary-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(196, 143, 105, 0.22);
  border-radius: 24px;
  padding: 20px 18px;
  background: radial-gradient(
      circle at top right,
      rgba(196, 143, 105, 0.14),
      rgba(196, 143, 105, 0) 28%
    ),
    linear-gradient(
      135deg,
      rgba(196, 143, 105, 0.12),
      rgba(196, 143, 105, 0) 38%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.99),
      rgba(248, 243, 235, 0.96)
    );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.xpo-scan-page .scan-summary-title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.1rem, 6vw, 3rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.xpo-scan-page .scan-summary-subtitle {
  margin: 0;
  color: #5d554c;
  line-height: 1.55;
  font-size: 0.96rem;
}

.xpo-scan-page .scan-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.xpo-scan-page .scan-stat {
  border: 1px solid rgba(173, 151, 132, 0.24);
  border-radius: 20px;
  padding: 13px 14px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.95),
    rgba(250, 244, 238, 0.9)
  );
  min-width: 0;
  box-shadow: 0 10px 20px rgba(67, 56, 45, 0.05);
}

.xpo-scan-page .scan-stat-label {
  margin: 0 0 4px;
  color: #746a60;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.xpo-scan-page .scan-stat-value {
  margin: 0;
  color: #1f1b18;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.xpo-scan-page .scan-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.xpo-scan-page .scan-detail-card {
  border: 1px solid rgba(173, 151, 132, 0.22);
  border-radius: 20px;
  padding: 13px 14px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.92),
    rgba(249, 242, 235, 0.82)
  );
  min-width: 0;
}

.xpo-scan-page .scan-detail-label {
  margin: 0 0 5px;
  color: #746a60;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.xpo-scan-page .scan-detail-value {
  margin: 0;
  color: #211d19;
  font-size: 0.96rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.xpo-scan-page .scan-chip-group {
  display: grid;
  gap: 8px;
}

.xpo-scan-page .scan-chip-title {
  margin: 0;
  color: #5f564d;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.xpo-scan-page .scan-empty {
  border: 1px dashed rgba(173, 151, 132, 0.4);
  border-radius: 22px;
  padding: 18px;
  color: #61584f;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.76),
    rgba(248, 241, 235, 0.68)
  );
}

.xpo-scan-page .scan-notes-copy {
  margin: 0;
  color: #5d554c;
  line-height: 1.55;
  max-width: 42rem;
}

.xpo-scan-page .scan-note-field textarea,
.xpo-scan-page .scan-offer-field textarea {
  min-height: 132px;
}

.xpo-scan-page .kv {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.xpo-scan-page .k {
  font-weight: 800;
  color: #645c55;
}

.xpo-scan-page .chips,
.xpo-scan-page .rubric,
.xpo-scan-page .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.xpo-scan-page .chips {
  margin-top: 12px;
}

.xpo-scan-page .chip,
.xpo-scan-page .rubric button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 0.82rem;
  font-weight: 800;
}

.xpo-scan-page .chip {
  border: 1px solid rgba(196, 143, 105, 0.34);
  background: rgba(255, 248, 241, 0.92);
  color: #845239;
}

.xpo-scan-page .rubric button {
  border: 1px solid rgba(173, 151, 132, 0.34);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98),
    rgba(248, 242, 236, 0.94)
  );
  color: #24211f;
  cursor: pointer;
}

.xpo-scan-page .actions {
  margin-top: 12px;
}

.xpo-scan-page .actions button,
.xpo-scan-page .actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid rgba(173, 151, 132, 0.34);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98),
    rgba(248, 242, 236, 0.95)
  );
  color: #24211f;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(67, 56, 45, 0.08);
}

.xpo-scan-page .actions .primary {
  background: linear-gradient(180deg, #263b2e 0%, #355641 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 18px 30px rgba(38, 59, 46, 0.22);
}

.xpo-scan-page .divider {
  border: none;
  height: 1px;
  background: rgba(173, 151, 132, 0.34);
  margin: 18px 0;
}

@media (max-width: 760px) {
  .xpo-profile-page .shell {
    padding: 22px 14px 40px;
    gap: 18px;
  }

  .xpo-profile-page .hero {
    padding: 26px 16px 22px;
  }

  .xpo-profile-page .card {
    padding: 18px 14px;
    border-radius: 24px;
  }

  .xpo-profile-page .xpo-tab-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .xpo-profile-page .xpo-tab-btn {
    width: 100%;
    min-height: 52px;
    padding: 12px 12px;
    font-size: 0.86rem;
  }

  .xpo-profile-page .actions > * {
    flex: 1 1 100%;
    width: 100%;
  }

  .xpo-scan-page .hero {
    padding: 26px 16px 22px;
    text-align: left;
  }

  .xpo-scan-page .scan-profile-card,
  .xpo-scan-page .scan-notes-card,
  .xpo-scan-page .scan-offers-card {
    padding: 16px 14px;
  }

  .xpo-scan-page .scan-summary-card {
    padding: 16px 14px;
  }

  .xpo-scan-page .scan-summary-title {
    font-size: clamp(1.8rem, 9vw, 2.35rem);
  }

  .xpo-scan-page .scan-profile-head,
  .xpo-scan-page .scan-notes-head,
  .xpo-scan-page .scan-offers-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .xpo-scan-page .kv {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .xpo-scan-page .scan-stat-grid,
  .xpo-scan-page .scan-detail-grid {
    grid-template-columns: 1fr;
  }

  .xpo-scan-page .actions > * {
    flex: 1 1 100%;
    width: 100%;
  }
}

@media (min-width: 760px) {
  .xpo-profile-page .shell {
    padding: 36px 22px 72px;
  }

  .xpo-profile-page .card {
    padding: 26px 24px;
  }
}

.xpo-auth-page {
  min-height: 100vh;
  padding: 20px 16px 32px;
  color: #1f2b38;
  background: radial-gradient(
      circle at 8% 0%,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0) 38%
    ),
    radial-gradient(
      circle at 90% 12%,
      rgba(111, 143, 182, 0.2),
      rgba(111, 143, 182, 0) 26%
    ),
    linear-gradient(135deg, #f8fbff 0%, #e7eff7 54%, #dfe8f1 100%);
}

.xpo-auth-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
      circle at 84% 12%,
      rgba(53, 86, 65, 0.16),
      rgba(53, 86, 65, 0) 28%
    ),
    linear-gradient(transparent 0 96%, rgba(53, 86, 65, 0.03) 96% 100%);
  background-size: auto, 100% 28px;
  opacity: 0.7;
}

.xpo-auth-page .shell {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 12px 0;
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
}

.xpo-auth-page .hero {
  border-radius: 28px;
  border: 1px solid #272729;
  background: linear-gradient(
      120deg,
      rgba(111, 143, 182, 0.22),
      rgba(111, 143, 182, 0) 34%
    ),
    linear-gradient(180deg, #29435a 0%, #203428 68%, #18211b 100%);
  color: #fff;
  padding: 30px 24px 24px;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  position: relative;
  text-align: center;
}

.xpo-auth-page .hero::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -40px;
  top: -54px;
  border-radius: 999px;
  background: radial-gradient(
    circle,
    rgba(219, 232, 244, 0.34),
    rgba(219, 232, 244, 0) 72%
  );
}

.xpo-auth-page .eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--rose, #c48f69);
  position: relative;
  z-index: 1;
  font-weight: 800;
}

.xpo-auth-page .hero-mark {
  margin: 0 0 8px;
  font-family: "Lobster", cursive;
  color: var(--rose, #c48f69);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1;
  position: relative;
  z-index: 1;
}

.xpo-auth-page h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.2rem, 6vw, 3rem);
  line-height: 0.98;
  position: relative;
  z-index: 1;
}

.xpo-auth-page .hero-copy {
  margin: 10px auto 0;
  max-width: 34rem;
  color: #deebf8;
  font-size: 0.98rem;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.xpo-auth-page .card {
  border: 1px solid rgba(111, 143, 182, 0.16);
  border-radius: 24px;
  background: linear-gradient(
    180deg,
    rgba(248, 251, 255, 0.98),
    rgba(240, 247, 253, 0.96)
  );
  box-shadow: 0 18px 36px rgba(43, 62, 90, 0.12);
  padding: 22px 18px 20px;
  position: relative;
}

.xpo-auth-page .card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(
    90deg,
    rgba(111, 143, 182, 0.95),
    rgba(53, 86, 65, 0.72),
    rgba(184, 111, 88, 0.55)
  );
}

.xpo-auth-page .stack {
  display: grid;
  gap: 14px;
}

.xpo-auth-page .field {
  display: grid;
  gap: 6px;
}

.xpo-auth-page label {
  font-weight: 700;
  font-size: 0.92rem;
  color: #304154;
}

.xpo-auth-page input {
  width: 100%;
  min-height: 48px;
  border-radius: 15px;
  border: 1px solid #ccd8e4;
  background: linear-gradient(180deg, #fff, #f4f8fc);
  color: #1f2b38;
  padding: 12px 14px;
  font-size: 16px;
}

.xpo-auth-page input:focus {
  outline: none;
  border-color: rgba(111, 143, 182, 0.78);
  box-shadow: 0 0 0 4px rgba(111, 143, 182, 0.14);
  transform: translateY(-1px);
}

.xpo-auth-page .helper,
.xpo-auth-page .field-hint {
  font-size: 0.88rem;
  color: #5a6777;
  line-height: 1.5;
}

.xpo-auth-page .actions {
  display: grid;
  gap: 10px;
}

.xpo-auth-page button,
.xpo-auth-page a.btn,
.xpo-auth-page a.linkish {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 16px;
  padding: 12px 16px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.xpo-auth-page button,
.xpo-auth-page a.btn:not(.secondary),
.xpo-auth-page .mode-btn.active {
  border: 1px solid #1b1b1d;
  background: linear-gradient(180deg, #1f3249 0%, #15211a 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(15, 15, 16, 0.18);
}

.xpo-auth-page button.secondary-action,
.xpo-auth-page .btn.secondary,
.xpo-auth-page a.linkish,
.xpo-auth-page .mode-btn {
  background: #eef4fb;
  color: #1f2b38;
  border: 1px solid #cddcec;
  box-shadow: none;
}

.xpo-auth-page .mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px;
  border-radius: 20px;
  background: rgba(111, 143, 182, 0.08);
  border: 1px solid rgba(111, 143, 182, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.xpo-auth-page .mode-summary {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(111, 143, 182, 0.12);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.94),
    rgba(238, 245, 252, 0.88)
  );
  text-align: center;
}

.xpo-auth-page .mode-summary strong {
  color: #1a2430;
  font-size: 0.98rem;
}

.xpo-auth-page .mode-summary span {
  color: #586777;
  font-size: 0.9rem;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .xpo-auth-page {
    padding: 16px 14px 28px;
  }

  .xpo-auth-page .actions > * {
    width: 100%;
  }

  .xpo-auth-page .mode-switch {
    grid-template-columns: 1fr;
  }
}

.xpo-ops-page {
  min-height: 100vh;
  padding: 20px 16px 32px;
  color: #182432;
  background: radial-gradient(
      circle at 10% 0%,
      rgba(255, 255, 255, 0.85),
      rgba(255, 255, 255, 0) 30%
    ),
    radial-gradient(
      circle at 88% 8%,
      rgba(86, 120, 163, 0.24),
      rgba(86, 120, 163, 0) 24%
    ),
    radial-gradient(
      circle at 50% 100%,
      rgba(184, 111, 88, 0.08),
      rgba(184, 111, 88, 0) 30%
    ),
    linear-gradient(180deg, #edf4fb 0%, #dbe5f0 56%, #d3dfea 100%);
}

.xpo-ops-page .wrap,
.xpo-ops-page .page-shell {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.xpo-ops-page .panel {
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(177, 196, 217, 0.96);
  border-radius: 30px;
  background: linear-gradient(
    180deg,
    rgba(251, 254, 255, 0.98),
    rgba(232, 241, 249, 0.96)
  );
  box-shadow: 0 28px 68px rgba(32, 51, 78, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.xpo-ops-page .panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, #476482, #355641, #b86f58);
}

.xpo-ops-page .hero {
  padding: 26px 24px 24px;
  display: grid;
  gap: 10px;
}

.xpo-ops-page .eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(86, 120, 163, 0.22);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #35506f;
}

.xpo-ops-page h1,
.xpo-ops-page h2,
.xpo-ops-page h3 {
  margin: 0;
}

.xpo-ops-page h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.35rem, 4.5vw, 3.25rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.xpo-ops-page .sub,
.xpo-ops-page .vendor-meta,
.xpo-ops-page .card p,
.xpo-ops-page .route-panel p {
  margin: 0;
  color: #44576b;
  line-height: 1.55;
}

.xpo-ops-page .actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.xpo-ops-page a.btn,
.xpo-ops-page button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 999px;
  border: 1px solid rgba(177, 196, 217, 0.9);
  background: rgba(255, 255, 255, 0.92);
  color: #18314c;
  font-weight: 800;
  text-decoration: none;
  padding: 12px 18px;
}

.xpo-ops-page a.btn.primary,
.xpo-ops-page button.primary {
  background: linear-gradient(180deg, #18314c, #355641);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 18px 30px rgba(24, 41, 61, 0.2);
}

.xpo-ops-page .chip,
.xpo-ops-page .card-kicker,
.xpo-ops-page .tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-weight: 800;
}

.xpo-ops-page .chip {
  gap: 8px;
  border: 1px solid rgba(185, 202, 220, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #f5f9ff;
  font-size: 0.88rem;
  padding: 8px 12px;
}

.xpo-ops-page .card-kicker {
  padding: 6px 11px;
  background: #edf4fb;
  border: 1px solid rgba(111, 143, 182, 0.18);
  color: #476482;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.xpo-ops-page .grid,
.xpo-ops-page .vendor-grid {
  display: grid;
  gap: 16px;
}

.xpo-ops-page .card,
.xpo-ops-page .vendor-card {
  display: grid;
  gap: 12px;
  padding: 22px 20px;
  border: 2px solid rgba(177, 196, 217, 0.96);
  border-radius: 24px;
  background: rgba(251, 254, 255, 0.98);
  box-shadow: 0 22px 46px rgba(32, 51, 78, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

@media (max-width: 760px) {
  .xpo-ops-page {
    padding: 16px 14px 28px;
  }

  .xpo-ops-page .hero {
    padding: 24px 18px 22px;
  }

  .xpo-ops-page .actions > * {
    flex: 1 1 100%;
  }
}

.xpo-admin-ops {
  margin: 0;
  min-height: 100vh;
  padding: 20px 16px 32px;
  font-family: "Manrope", "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
  color: #e7f1ff;
  --muted: #a8c0e6;
  --text: #e7f1ff;
  --line: rgba(124, 160, 225, 0.35);
  background: radial-gradient(
    1200px 700px at 20% -15%,
    #234988 0%,
    #0d2146 42%,
    #0a1630 100%
  );
}

.xpo-admin-ops .wrap {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.xpo-admin-ops .panel {
  border: 1px solid rgba(124, 160, 225, 0.35);
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    rgba(19, 40, 74, 0.96),
    rgba(10, 25, 49, 0.98)
  );
  box-shadow: 0 18px 38px rgba(2, 8, 20, 0.45);
  padding: 16px;
}

.xpo-admin-ops .hero {
  border: 1px solid rgba(124, 160, 225, 0.35);
  border-radius: 18px;
  background: radial-gradient(
      circle at top right,
      rgba(87, 132, 215, 0.3),
      rgba(87, 132, 215, 0) 36%
    ),
    linear-gradient(160deg, rgba(61, 123, 230, 0.18), rgba(61, 123, 230, 0) 35%),
    linear-gradient(180deg, rgba(15, 33, 62, 0.98), rgba(10, 25, 49, 0.98));
  padding: 24px 20px;
  box-shadow: 0 22px 44px rgba(2, 8, 20, 0.45);
}

.xpo-admin-ops .eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  color: #8eb6ff;
  font-weight: 800;
}

.xpo-admin-ops .hero-mark {
  margin: 0 0 8px;
  font-family: "Lobster", cursive;
  color: #8eb6ff;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1;
}

.xpo-admin-ops .hero-title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.2rem, 5vw, 3.25rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: #fff;
}

.xpo-admin-ops .hero-copy,
.xpo-admin-ops .section-copy {
  margin: 10px 0 0;
  color: #a8c0e6;
  line-height: 1.6;
}

.xpo-admin-ops .hero-strip {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.xpo-admin-ops .hero-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border-radius: 999px;
  padding: 9px 14px;
  border: 1px solid rgba(124, 160, 225, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: #e7f1ff;
  font-size: 0.86rem;
  font-weight: 700;
}

.xpo-admin-ops h1,
.xpo-admin-ops h2,
.xpo-admin-ops h3 {
  margin: 0 0 10px;
}

.xpo-admin-ops p {
  margin: 0;
  color: #a8c0e6;
}

.xpo-admin-ops .row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.xpo-admin-ops .subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.xpo-admin-ops input,
.xpo-admin-ops select,
.xpo-admin-ops button,
.xpo-admin-ops a.btn {
  min-height: 48px;
  border-radius: 10px;
  border: 1px solid rgba(124, 160, 225, 0.35);
  background: rgba(10, 24, 48, 0.8);
  color: #e7f1ff;
  padding: 10px 12px;
}

.xpo-admin-ops button,
.xpo-admin-ops a.btn {
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.xpo-admin-ops button.primary,
.xpo-admin-ops a.btn.primary {
  background: #3d7be6;
  border-color: #3d7be6;
  color: #fff;
}

.xpo-admin-ops .grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.xpo-admin-ops .field-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.xpo-admin-ops .stat {
  border: 1px solid rgba(124, 160, 225, 0.35);
  border-radius: 10px;
  padding: 10px;
  background: rgba(10, 24, 48, 0.75);
}

.xpo-admin-ops .stat .label {
  color: #a8c0e6;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.xpo-admin-ops .stat .k {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}

.xpo-admin-ops .tables {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.xpo-admin-ops .tables > div {
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}

.xpo-admin-ops table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 560px;
}

.xpo-admin-ops th,
.xpo-admin-ops td {
  text-align: left;
  border-bottom: 1px solid rgba(124, 160, 225, 0.2);
  padding: 8px 6px;
}

.xpo-admin-ops th {
  color: #cfe2ff;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.xpo-admin-ops .status {
  min-height: 1.2rem;
  font-weight: 700;
}

.xpo-admin-ops .ok {
  color: #79e3a3;
}

.xpo-admin-ops .err {
  color: #ff9aae;
}

.xpo-admin-ops .note {
  border: 1px dashed rgba(124, 160, 225, 0.5);
  background: rgba(10, 24, 48, 0.5);
  border-radius: 10px;
  padding: 10px;
  color: #cfe2ff;
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .xpo-admin-ops .tables {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .xpo-admin-ops {
    padding: 14px 12px 24px;
  }

  .xpo-admin-ops .panel {
    padding: 14px;
    border-radius: 12px;
  }

  .xpo-admin-ops .row > * {
    flex: 1 1 100%;
  }

  .xpo-admin-ops button,
  .xpo-admin-ops a.btn {
    width: 100%;
    min-height: 50px;
  }

  .xpo-admin-ops .grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .xpo-admin-ops table {
    min-width: 500px;
    font-size: 0.88rem;
  }

  .xpo-admin-ops th,
  .xpo-admin-ops td {
    padding: 8px 8px;
  }
}

.xpo-upgrade-page {
  margin: 0;
  min-height: 100vh;
  padding: 24px 16px 32px;
  color: #2b2014;
  font-family: "Manrope", "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
  background: radial-gradient(
      900px 500px at 0% 0%,
      rgba(178, 123, 43, 0.16),
      transparent 55%
    ),
    radial-gradient(
      1000px 520px at 100% 0%,
      rgba(24, 52, 95, 0.12),
      transparent 55%
    ),
    linear-gradient(180deg, #fcf8f2 0%, #ede1d1 100%);
}

.xpo-upgrade-page .wrap {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.xpo-upgrade-page .panel {
  border: 1px solid rgba(92, 67, 31, 0.18);
  border-radius: 20px;
  background: rgba(255, 252, 247, 0.95);
  box-shadow: 0 18px 38px rgba(54, 34, 12, 0.08);
  padding: 20px;
}

.xpo-upgrade-page .hero {
  display: grid;
  gap: 12px;
}

.xpo-upgrade-page .eyebrow {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7d4e15;
}

.xpo-upgrade-page h1,
.xpo-upgrade-page h2 {
  margin: 0;
}

.xpo-upgrade-page p {
  margin: 0;
  color: #655441;
}

.xpo-upgrade-page .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border: 1px solid rgba(92, 67, 31, 0.18);
  border-radius: 999px;
  background: rgba(178, 123, 43, 0.08);
  color: #7d4e15;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 8px 12px;
}

.xpo-upgrade-page .grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.xpo-upgrade-page .card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(92, 67, 31, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  padding: 16px;
  box-shadow: none;
}

.xpo-upgrade-page .price {
  font-size: 2rem;
  font-weight: 900;
  color: #18345f;
}

.xpo-upgrade-page ul {
  margin: 0;
  padding-left: 18px;
  color: #655441;
}

.xpo-upgrade-page .actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.xpo-upgrade-page a.btn,
.xpo-upgrade-page button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 12px;
  border: 1px solid rgba(92, 67, 31, 0.18);
  background: #fff;
  color: #18345f;
  font-weight: 800;
  text-decoration: none;
  padding: 10px 16px;
  cursor: pointer;
}

.xpo-upgrade-page a.btn.primary,
.xpo-upgrade-page button.btn.primary {
  background: linear-gradient(135deg, #b27b2b 0%, #c99643 100%);
  border-color: rgba(125, 78, 21, 0.45);
  color: #fff;
}

.xpo-upgrade-page .status {
  min-height: 22px;
  font-weight: 700;
}

.xpo-upgrade-page .status.error {
  color: #9b2226;
}

.xpo-upgrade-page .status.ok {
  color: #0c7a22;
}

.xpo-upgrade-page .note {
  border: 1px dashed rgba(125, 78, 21, 0.35);
  border-radius: 14px;
  background: rgba(255, 247, 235, 0.85);
  padding: 14px;
}

@media (max-width: 720px) {
  .xpo-upgrade-page {
    padding: 16px 14px 28px;
  }

  .xpo-upgrade-page .actions > * {
    flex: 1 1 100%;
  }
}

/* Refined Offline Banner - Depth System Update */
.offline-banner {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 32px), 580px);
  z-index: 3000;
  padding: 14px 22px;
  border-radius: 24px;
  border: 1px solid rgba(196, 143, 105, 0.25);
  background: rgba(255, 252, 247, 0.94);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  box-shadow: 0 25px 50px -12px rgba(67, 56, 45, 0.18),
    0 12px 24px -10px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 14px;
  pointer-events: none; /* Allow clicks through to content underneath */
}

.offline-banner .indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--xpo-rose);
  box-shadow: 0 0 12px rgba(196, 143, 105, 0.6);
  flex-shrink: 0;
  animation: xpo-soft-glow 2s infinite ease-in-out;
}

.offline-banner .msg {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--xpo-text);
  letter-spacing: -0.01em;
}

.vendor-card,
.summary-card,
.match-card,
.note-card {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  will-change: transform, box-shadow;
}

@media (hover: hover) {
  .vendor-card:hover,
  .summary-card:hover,
  .match-card:hover,
  .note-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 30px 60px -12px rgba(38, 59, 46, 0.18),
      0 18px 36px -18px rgba(0, 0, 0, 0.12);
  }
}

.note-input-wrap textarea,
.vendor-card textarea,
.note-card textarea {
  width: 100%;
  min-height: 100px;
  font-size: 16px;
  padding: 16px;
  border-radius: 16px;
  border: 2px solid rgba(0, 0, 0, 0.08);
  background: linear-gradient(to bottom, #fcfdfc, #ffffff);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
  line-height: 1.6;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  box-sizing: border-box;
}

.note-input-wrap textarea:focus,
.vendor-card textarea:focus,
.note-card textarea:focus {
  outline: none;
  border-color: #355641;
  box-shadow: 0 0 0 4px rgba(53, 86, 65, 0.12),
    inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.note-save-btn {
  min-height: 48px;
  padding: 0 24px;
  font-weight: 800;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #355641 0%, #263b2e 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(38, 59, 46, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  touch-action: manipulation;
}

.note-save-btn:active {
  transform: scale(0.96);
  box-shadow: 0 2px 6px rgba(38, 59, 46, 0.1);
}

.note-status-indicator {
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: #5f7998;
}

.note-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-synced .note-status-dot {
  background-color: #2ecc71;
  box-shadow: 0 0 8px rgba(46, 204, 113, 0.4);
}

.status-pending .note-status-dot {
  background-color: #f1c40f;
  box-shadow: 0 0 8px rgba(241, 196, 15, 0.4);
}

.note-quick-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.quick-pick-chip {
  padding: 8px 16px;
  border-radius: 999px;
  background: #f1f7f2;
  border: 1px solid rgba(53, 86, 65, 0.1);
  color: #355641;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-pick-chip:hover {
  background: #e6f0eb;
  transform: translateY(-1px);
}

.quick-pick-chip.selected {
  background: #355641;
  color: white;
  box-shadow: 0 4px 10px rgba(53, 86, 65, 0.2);
}

.question-section input[type="text"],
.question-section input[type="email"],
.question-section input[type="tel"],
.question-section input[type="date"],
.question-section select {
  width: 100%;
  min-height: 48px;
  font-size: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 2px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  box-sizing: border-box;
}

.question-section input[type="text"]:focus,
.question-section input[type="email"]:focus,
.question-section input[type="tel"]:focus,
.question-section input[type="date"]:focus,
.question-section select:focus {
  outline: none;
  border-color: #355641;
  box-shadow: 0 0 0 4px rgba(53, 86, 65, 0.12);
}

.question-section input[type="radio"],
.question-section input[type="checkbox"] {
  min-width: 24px;
  min-height: 24px;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  vertical-align: middle;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  accent-color: #355641;
}

.question-section input[type="radio"] {
  border-radius: 50%;
}

.question-section input[type="radio"]:focus,
.question-section input[type="checkbox"]:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(53, 86, 65, 0.12);
}

.question-section button:not(.note-save-btn) {
  min-height: 48px;
  touch-action: manipulation;
}

#review-jump-btn {
  min-height: 48px;
  padding: 0 20px;
  font-weight: 800;
  border-radius: 999px;
  border: 2px solid rgba(53, 86, 65, 0.3);
  background: #ffffff;
  color: #355641;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

#review-jump-btn:hover {
  border-color: #355641;
  background: #f1f7f2;
  transform: translateY(-1px);
}
