:root {
  --lex-navy: #041e42;
  --lex-navy-2: #082b5f;
  --lex-navy-3: #020d20;
  --lex-gold: #ca9a59;
  --lex-gold-2: #f0c47f;
  --lex-bg: #f3f5f9;
  --lex-surface: #ffffff;
  --lex-surface-soft: #f8fafc;
  --lex-border: #dbe3ef;
  --lex-text: #0f172a;
  --lex-muted: #64748b;
  --lex-success: #0f9f6e;
  --lex-warning: #b7791f;
  --lex-danger: #c2410c;
  --shadow-soft: 0 20px 60px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 14px 34px rgba(15, 23, 42, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  margin: 0;
  background: var(--lex-bg);
  color: var(--lex-text);
  font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

a,
button {
  transition: background-color 240ms var(--ease), border-color 240ms var(--ease), color 240ms var(--ease), box-shadow 240ms var(--ease), transform 240ms var(--ease);
}

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

.hidden {
  display: none !important;
}

.payment-shell {
  display: grid;
  grid-template-columns: minmax(20rem, 27rem) minmax(0, 1fr);
  min-height: 100vh;
}

@supports (min-height: 100svh) {
  .payment-shell {
    min-height: 100svh;
  }
}

.brand-rail {
  position: sticky;
  top: 0;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  gap: 2rem;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(155deg, var(--lex-navy) 0%, #061731 58%, var(--lex-navy-3) 100%);
  background-size: 42px 42px, 42px 42px, auto;
  color: #e8eef7;
  padding: 2rem;
}

@supports (min-height: 100svh) {
  .brand-rail {
    min-height: 100svh;
  }
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  width: fit-content;
  color: inherit;
  text-decoration: none;
}

.brand-name {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.brand-name img {
  width: 10.8rem;
  height: 2.7rem;
  object-fit: contain;
  object-position: left center;
}

.brand-lockup small {
  display: block;
  color: #93a4bd;
  font-size: 0.72rem;
  font-weight: 700;
}

.brand-monogram {
  display: grid;
  width: 4rem;
  height: 4rem;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(202, 154, 89, 0.45);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--lex-gold-2);
  font-size: 0.88rem;
  font-weight: 900;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.2);
}

.rail-copy {
  max-width: 23rem;
  margin-top: auto;
}

.kicker {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  color: var(--lex-gold-2);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rail-copy h1 {
  margin: 0.8rem 0 1rem;
  color: #ffffff;
  font-size: 2.35rem;
  line-height: 1.02;
  font-weight: 900;
}

.rail-copy p {
  margin: 0;
  color: #aebbd0;
  font-size: 0.98rem;
  line-height: 1.7;
  font-weight: 500;
}

.journey-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.journey-list li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.7rem 0.85rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.journey-list span {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid rgba(202, 154, 89, 0.52);
  border-radius: 8px;
  color: var(--lex-gold-2);
  font-size: 0.78rem;
  font-weight: 900;
}

.journey-list strong {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
}

.journey-list small {
  grid-column: 2;
  color: #8ea0ba;
  line-height: 1.55;
}

.rail-security {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #b9c5d8;
  font-size: 0.78rem;
  line-height: 1.5;
  font-weight: 600;
}

.rail-security .icon {
  flex: 0 0 auto;
  color: var(--lex-gold-2);
}

.rail-security p {
  margin: 0;
}

.workspace {
  display: flex;
  min-width: 0;
  min-height: 100vh;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 4.8rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(219, 227, 239, 0.88);
  background: rgba(255, 255, 255, 0.92);
  padding: 0.85rem 1.4rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(14px);
}

.topbar h2 {
  margin: 0.12rem 0 0;
  font-size: 1.2rem;
  font-weight: 900;
}

.eyebrow {
  margin: 0;
  color: var(--lex-muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}

.user-badge {
  display: flex;
  max-width: 16rem;
  align-items: center;
  gap: 0.55rem;
  margin-right: 0.25rem;
  color: var(--lex-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.user-badge strong {
  overflow: hidden;
  color: var(--lex-text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.view-stage {
  flex: 1;
  width: 100%;
  max-width: 78rem;
  margin: 0 auto;
  padding: 1.5rem;
}

.view {
  width: 100%;
}

.panel,
.admin-shell,
.profile-strip,
.plan-card {
  border: 1px solid var(--lex-border);
  border-radius: 8px;
  background: var(--lex-surface);
  box-shadow: var(--shadow-card);
}

.panel {
  width: min(100%, 48rem);
  margin: 0 auto;
  padding: 1.5rem;
}

.panel.wide {
  width: min(100%, 62rem);
}

.panel.compact {
  width: min(100%, 29rem);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.panel-head.centered {
  display: block;
  text-align: center;
}

.panel-head h3,
.dashboard-head h3,
.admin-heading h3 {
  margin: 0.15rem 0 0.4rem;
  font-size: 1.45rem;
  line-height: 1.18;
  font-weight: 900;
}

.panel-head p,
.dashboard-head p,
.admin-heading p {
  margin: 0;
  color: var(--lex-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  font-weight: 500;
}

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

.stack-form {
  display: grid;
  gap: 1rem;
}

.span-2 {
  grid-column: span 2;
}

.field {
  display: grid;
  gap: 0.42rem;
  min-width: 0;
}

.field > span {
  color: #334155;
  font-size: 0.78rem;
  font-weight: 800;
}

.field small {
  color: var(--lex-muted);
  font-size: 0.72rem;
  line-height: 1.4;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  min-height: 2.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: var(--lex-text);
  outline: none;
  padding: 0 0.85rem;
  font-size: 0.92rem;
  font-weight: 600;
  transition: border-color 220ms var(--ease), box-shadow 220ms var(--ease), background-color 220ms var(--ease);
}

textarea {
  min-height: 9rem;
  resize: vertical;
  padding-top: 0.8rem;
  line-height: 1.55;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--lex-gold);
  box-shadow: 0 0 0 4px rgba(202, 154, 89, 0.16);
}

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

.input-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.85rem;
  align-items: center;
}

.input-action input {
  border-radius: 8px 0 0 8px;
}

.input-action .icon-button {
  width: 2.85rem;
  height: 2.85rem;
  border-left: 0;
  border-radius: 0 8px 8px 0;
}

.checks {
  display: grid;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--lex-border);
  border-radius: 8px;
  background: var(--lex-surface-soft);
}

.checks label {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: #475569;
  font-size: 0.82rem;
  line-height: 1.55;
  font-weight: 600;
}

.checks input {
  width: 1rem;
  height: 1rem;
  min-height: 1rem;
  margin-top: 0.18rem;
  accent-color: var(--lex-navy);
}

.checks button,
.legal-footer button,
.switch-copy button,
.link-button {
  border: 0;
  background: transparent;
  color: var(--lex-navy);
  padding: 0;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

.button {
  display: inline-flex;
  min-height: 2.65rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 1rem;
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.button.large {
  min-height: 3.05rem;
  padding-inline: 1.25rem;
}

.button.full {
  width: 100%;
}

.button.primary {
  background: var(--lex-navy);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(4, 30, 66, 0.18);
}

.button.primary:hover {
  background: var(--lex-navy-2);
  transform: translateY(-1px);
}

.button.secondary {
  border-color: rgba(4, 30, 66, 0.22);
  background: #ffffff;
  color: var(--lex-navy);
}

.button.secondary:hover,
.button.ghost:hover {
  border-color: rgba(202, 154, 89, 0.55);
  color: var(--lex-navy);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.button.ghost {
  border-color: var(--lex-border);
  background: rgba(255, 255, 255, 0.7);
  color: #475569;
}

.button.gold {
  background: var(--lex-gold);
  color: var(--lex-navy-3);
  box-shadow: 0 12px 24px rgba(202, 154, 89, 0.2);
}

.button.gold:hover {
  background: var(--lex-gold-2);
  transform: translateY(-1px);
}

.icon-button {
  display: inline-grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border: 1px solid var(--lex-border);
  border-radius: 8px;
  background: #ffffff;
  color: #64748b;
}

.icon-button:hover {
  border-color: rgba(202, 154, 89, 0.58);
  color: var(--lex-navy);
}

.icon {
  width: 1.08rem;
  height: 1.08rem;
  stroke-width: 2.2;
}

.link-button.align-right {
  justify-self: end;
  font-size: 0.78rem;
}

.switch-copy {
  margin: 1.2rem 0 0;
  color: var(--lex-muted);
  text-align: center;
  font-size: 0.84rem;
  font-weight: 600;
}

.form-error {
  color: var(--lex-danger) !important;
}

.plans-layout {
  display: grid;
  gap: 1rem;
}

.profile-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
}

.profile-strip strong {
  display: block;
  margin-top: 0.15rem;
  color: var(--lex-text);
  font-size: 0.95rem;
}

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

.plan-card {
  position: relative;
  display: flex;
  min-height: 28rem;
  flex-direction: column;
  overflow: hidden;
}

.plan-card.featured {
  border-color: rgba(202, 154, 89, 0.72);
  background: linear-gradient(155deg, #0b2c5d 0%, #061731 72%);
  color: #ffffff;
  box-shadow: 0 22px 52px rgba(4, 30, 66, 0.26);
}

.plan-body {
  flex: 1;
  padding: 1.3rem;
}

.plan-name {
  display: block;
  color: var(--lex-gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.featured .plan-name {
  color: var(--lex-gold-2);
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin: 0.8rem 0;
}

.price-line small,
.price-line span {
  color: var(--lex-muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.featured .price-line small,
.featured .price-line span,
.featured .plan-body p,
.featured footer small {
  color: #b9c5d8;
}

.price-line strong {
  font-size: 2.35rem;
  line-height: 1;
  font-weight: 900;
}

.plan-body p {
  margin: 0 0 1.2rem;
  color: var(--lex-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  font-weight: 600;
}

.plan-card ul {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-card li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #334155;
  font-size: 0.84rem;
  font-weight: 700;
}

.featured li {
  color: #e7eef8;
}

.plan-card li .icon {
  color: var(--lex-success);
}

.featured li .icon {
  color: var(--lex-gold-2);
}

.plan-card footer {
  display: grid;
  gap: 0.85rem;
  padding: 1.05rem 1.3rem 1.3rem;
  border-top: 1px solid var(--lex-border);
  background: var(--lex-surface-soft);
}

.featured footer {
  border-top-color: rgba(255, 255, 255, 0.14);
  background: rgba(2, 13, 32, 0.28);
}

.plan-card footer small {
  color: var(--lex-muted);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge {
  position: absolute;
  top: 0;
  right: 0;
  border-radius: 0 0 0 8px;
  background: var(--lex-gold);
  color: var(--lex-navy-3);
  padding: 0.45rem 0.7rem;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.status-area {
  display: grid;
  gap: 1rem;
  min-height: 11rem;
  border: 1px solid var(--lex-border);
  border-radius: 8px;
  background: var(--lex-surface-soft);
  padding: 1rem;
}

.status-card {
  display: grid;
  grid-template-columns: 3.6rem 1fr;
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--lex-border);
  border-radius: 8px;
  background: #ffffff;
  padding: 1rem;
}

.status-icon {
  display: grid;
  width: 3.6rem;
  height: 3.6rem;
  place-items: center;
  border-radius: 8px;
  background: #eff6ff;
  color: var(--lex-navy);
}

.status-icon.success {
  background: #e8fff5;
  color: var(--lex-success);
}

.status-icon.warning {
  background: #fff8e8;
  color: var(--lex-warning);
}

.status-card h4 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 900;
}

.status-card p {
  margin: 0;
  color: var(--lex-muted);
  font-size: 0.86rem;
  line-height: 1.6;
  font-weight: 600;
}

.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.9rem;
}

.loader-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 8rem;
  color: var(--lex-muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.spinner {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  border: 3px solid rgba(4, 30, 66, 0.18);
  border-top-color: var(--lex-navy);
  border-radius: 999px;
  animation: spin 0.75s linear infinite;
}

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

.admin-shell {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  overflow: hidden;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: var(--lex-navy);
  color: #dbe7f7;
  padding: 1rem;
}

.admin-nav strong {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  color: var(--lex-gold-2);
  font-size: 0.86rem;
}

.admin-nav button,
.admin-nav a {
  display: flex;
  min-height: 2.65rem;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #dbe7f7;
  padding: 0 0.75rem;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: left;
  text-decoration: none;
}

.admin-nav button:hover,
.admin-nav button.active,
.admin-nav a:hover {
  border-color: rgba(202, 154, 89, 0.34);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.admin-content {
  min-width: 0;
  padding: 1.25rem;
}

.admin-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1rem;
}

.mt-1 {
  margin-top: 1rem;
}

.stat {
  min-height: 5.4rem;
  border: 1px solid var(--lex-border);
  border-radius: 8px;
  background: var(--lex-surface-soft);
  padding: 0.85rem;
}

.stat span {
  color: var(--lex-muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.stat strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.55rem;
  font-weight: 900;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--lex-border);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 42rem;
}

th,
td {
  border-bottom: 1px solid var(--lex-border);
  padding: 0.75rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--lex-surface-soft);
  color: #475569;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

td {
  color: #334155;
  font-size: 0.82rem;
  font-weight: 650;
}

tr:last-child td {
  border-bottom: 0;
}

.status-pill {
  display: inline-flex;
  min-height: 1.7rem;
  align-items: center;
  border-radius: 999px;
  padding: 0 0.65rem;
  font-size: 0.68rem;
  font-weight: 900;
}

.status-pill.paid {
  background: #e8fff5;
  color: #047857;
}

.status-pill.pending {
  background: #fff8e8;
  color: #92400e;
}

.status-pill.neutral {
  background: #eef2f7;
  color: #475569;
}

.user-list {
  display: grid;
  gap: 0.85rem;
}

.user-item {
  border: 1px solid var(--lex-border);
  border-radius: 8px;
  background: var(--lex-surface-soft);
  padding: 1rem;
}

.user-item-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.user-item h4 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 900;
}

.user-item p {
  margin: 0;
  color: var(--lex-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0.8rem 0;
}

.data-grid span {
  min-width: 0;
  border: 1px solid var(--lex-border);
  border-radius: 8px;
  background: #ffffff;
  padding: 0.6rem;
  color: #475569;
  font-size: 0.74rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.access-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.65rem;
  align-items: center;
}

.access-row label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.access-row input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  min-height: 1rem;
  accent-color: var(--lex-navy);
}

.legal-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 0 1.5rem 1.25rem;
  color: var(--lex-muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(2, 13, 32, 0.62);
  padding: 1rem;
}

.modal-card {
  width: min(100%, 31rem);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  padding: 1rem;
}

.modal-card.text-modal {
  width: min(100%, 48rem);
}

.modal-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.modal-card h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 900;
}

.modal-card p {
  color: var(--lex-muted);
  line-height: 1.65;
  font-weight: 600;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 1rem;
}

.legal-text {
  max-height: 60vh;
  overflow: auto;
  border: 1px solid var(--lex-border);
  border-radius: 8px;
  background: var(--lex-surface-soft);
  padding: 1rem;
  color: #334155;
  font-size: 0.9rem;
  line-height: 1.75;
  white-space: pre-wrap;
}

.toast-root {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 100;
  display: grid;
  gap: 0.6rem;
  width: min(24rem, calc(100vw - 2rem));
}

.toast {
  border: 1px solid var(--lex-border);
  border-left: 4px solid var(--lex-navy);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  padding: 0.85rem 1rem;
  color: #334155;
  font-size: 0.84rem;
  font-weight: 750;
}

.toast.success {
  border-left-color: var(--lex-success);
}

.toast.error {
  border-left-color: var(--lex-danger);
}

.toast.info {
  border-left-color: var(--lex-gold);
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 70;
  display: flex;
  width: min(52rem, calc(100vw - 2rem));
  transform: translateX(-50%);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--lex-border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  padding: 1rem;
}

.cookie-banner strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  font-weight: 900;
}

.cookie-banner p {
  margin: 0;
  color: var(--lex-muted);
  font-size: 0.78rem;
  line-height: 1.55;
  font-weight: 650;
}

.cookie-banner > div:last-child {
  display: flex;
  flex: 0 0 auto;
  gap: 0.55rem;
}

@media (max-width: 980px) {
  .payment-shell {
    grid-template-columns: 1fr;
  }

  .brand-rail {
    position: relative;
    min-height: auto;
    gap: 1.25rem;
  }

  .rail-copy {
    margin-top: 0;
  }

  .rail-copy h1 {
    font-size: 1.8rem;
  }

  .journey-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .journey-list li {
    grid-template-columns: 1fr;
  }

  .journey-list small {
    grid-column: auto;
  }

  .workspace {
    min-height: auto;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-nav {
    flex-direction: row;
    overflow-x: auto;
  }

  .admin-nav strong {
    flex: 0 0 auto;
    margin: 0 0.5rem 0 0;
  }

  .admin-nav button {
    flex: 0 0 auto;
  }

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

  .split-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .brand-rail,
  .view-stage,
  .admin-content {
    padding: 1rem;
  }

  .brand-rail {
    gap: 0.85rem;
  }

  .brand-name img {
    width: 8.5rem;
    height: 2.15rem;
  }

  .brand-monogram {
    width: 3.2rem;
    height: 3.2rem;
  }

  .rail-copy h1 {
    margin: 0.35rem 0;
    font-size: 1.28rem;
    line-height: 1.12;
  }

  .rail-copy p {
    font-size: 0.86rem;
    line-height: 1.5;
  }

  .journey-list,
  .rail-security {
    display: none;
  }

  .topbar {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions {
    width: 100%;
    justify-content: stretch;
  }

  .topbar-actions .button {
    flex: 1 1 0;
  }

  .user-badge {
    display: none;
  }

  .panel,
  .panel.wide,
  .panel.compact {
    width: 100%;
    padding: 1rem;
  }

  .panel-head,
  .dashboard-head,
  .profile-strip,
  .admin-heading,
  .user-item-head,
  .cookie-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .form-grid,
  .plan-grid,
  .data-grid,
  .access-row {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

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

  .plan-card {
    min-height: auto;
  }

  .price-line strong {
    font-size: 1.9rem;
  }

  .status-card {
    grid-template-columns: 1fr;
  }

  .access-row label {
    white-space: normal;
  }

  .cookie-banner {
    left: 1rem;
    right: 1rem;
    width: auto;
    transform: none;
  }

  .cookie-banner > div:last-child {
    width: 100%;
  }

  .cookie-banner .button {
    flex: 1 1 0;
  }
}

@media (max-width: 420px) {
  .topbar-actions {
    flex-direction: column;
  }

  .topbar-actions .button {
    width: 100%;
  }

  .brand-lockup {
    width: 100%;
  }

  .rail-copy h1 {
    font-size: 1.55rem;
  }

  .button {
    width: 100%;
  }

  .legal-footer {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
