/* =============================================================================
   ASC360 Member Portal — Expedition Desk
   Calm product UI · passport cover · emergency-first · no SaaS template chrome
   ============================================================================= */

:root {
  --ink: #121c2a;
  --ink-2: #5a6578;
  --ink-3: #8b95a5;
  --line: #e2e7ef;
  --line-2: #d0d7e2;
  --paper: #f7f8fb;
  --white: #ffffff;
  --navy: #0b1b2e;
  --navy-2: #152942;
  --brand: #ff5c00;
  --brand-deep: #d94a00;
  --brand-soft: #fff1e8;
  --ok: #0e7a52;
  --ok-soft: #e6f5ee;
  --warn: #b86a00;
  --warn-soft: #fff4e4;
  --muted-soft: #eef1f5;
  --sidebar: 248px;
  --r: 12px;
  --r-lg: 18px;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --head: "Montserrat", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 1px 2px rgba(18, 28, 42, 0.04), 0 12px 32px rgba(18, 28, 42, 0.06);
  --shadow-pass: 0 20px 50px rgba(11, 27, 46, 0.22);
  --max: 1120px;

  /* legacy aliases used by auth forms */
  --p-ink: var(--ink);
  --p-ink-2: var(--ink-2);
  --p-ink-3: var(--ink-3);
  --p-line: var(--line);
  --p-mist: var(--paper);
  --p-brand: var(--brand);
  --p-head: var(--head);
  --p-font: var(--font);
  --p-ease: var(--ease);
  --p-brand-glow: rgba(255, 92, 0, 0.28);
}

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

html {
  overflow-x: clip;
  max-width: 100%;
}

body.portal-body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  min-height: 100dvh;
  max-width: 100%;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body.portal-body img,
body.portal-body svg {
  max-width: 100%;
}
body.portal-body .brand img,
body.portal-body .portal-auth__logo img,
body.portal-body .footer-brand__logo img {
  max-width: none;
}

/* Site header sits above the portal shell */
body.portal-body > .site-header {
  position: relative;
  z-index: 50;
}

.portal-skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 8px 16px;
  z-index: 100;
  border-radius: 8px;
}
.portal-skip:focus { left: 12px; top: 12px; }

/* —— Auth (kept lean) —— */
.portal-auth {
  display: grid;
  min-height: 100dvh;
  grid-template-columns: 1fr;
}
@media (min-width: 960px) {
  .portal-auth { grid-template-columns: 1.05fr 1fr; }
}

.portal-auth__brand {
  position: relative;
  padding: clamp(28px, 4vw, 52px);
  background:
    linear-gradient(160deg, rgba(255, 92, 0, 0.14), transparent 42%),
    linear-gradient(180deg, #12263f 0%, var(--navy) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.portal-auth__brand::after {
  content: "";
  position: absolute;
  inset: auto -20% -35% 40%;
  height: 70%;
  background: radial-gradient(circle, rgba(255, 92, 0, 0.28), transparent 65%);
  pointer-events: none;
}

.portal-auth__logo {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  font-family: var(--head);
  font-weight: 700;
  letter-spacing: -0.02em;
  transform-origin: left center;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.portal-auth__logo img {
  width: 52px;
  height: auto;
  object-fit: contain;
}
.portal-auth__logo:hover,
.portal-auth__logo:focus-visible,
.portal-auth__logo:focus,
.portal-auth__logo.is-logo-pop {
  transform: scale(1.35);
}
@media (prefers-reduced-motion: reduce) {
  .portal-auth__logo { transition: none; will-change: auto; }
}
.portal-auth__logo span { font-size: 1.4rem; }
.portal-logo-360 { color: var(--brand); }

.portal-auth__tagline {
  position: relative;
  z-index: 1;
  max-width: 26rem;
  margin-top: auto;
  padding-bottom: clamp(32px, 6vh, 72px);
}
.portal-auth__tagline p {
  margin: 0 0 10px;
  font-size: 0.7rem;
  font-weight: 600;
  opacity: 0.65;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.portal-auth__tagline h2 {
  margin: 0;
  font-family: var(--head);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.portal-auth__tagline h2 em {
  font-style: normal;
  color: #ff8a3d;
}

.portal-auth__panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 5vw, 56px);
  background: var(--white);
}
.portal-auth__card { width: min(100%, 400px); }
.portal-auth__card h1 {
  margin: 0 0 6px;
  font-family: var(--head);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.portal-auth__card .portal-lede {
  margin: 0 0 28px;
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.55;
}

.portal-form__error {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fdecec;
  color: #9b1c1c;
  font-size: 0.875rem;
}
.portal-form__error[hidden] { display: none; }

.portal-field { margin-bottom: 18px; }
.portal-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 7px;
}
.portal-field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: var(--paper);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.portal-field input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 92, 0, 0.15);
  background: #fff;
}
.portal-field--pass { position: relative; }
.portal-field--pass input { padding-right: 64px; }
.portal-field--pass button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  margin-top: 12px;
  border: 0;
  background: transparent;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand);
  cursor: pointer;
  padding: 8px;
}

.portal-form__row {
  display: flex;
  justify-content: flex-end;
  margin: 4px 0 20px;
  font-size: 0.875rem;
}
.portal-form__row a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

.portal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  font-family: var(--head);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s var(--ease), box-shadow 0.2s;
}
.portal-btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 92, 0, 0.28);
}
.portal-btn--primary:hover {
  background: var(--brand-deep);
  transform: translateY(-1px);
}
.portal-btn--google {
  margin-top: 12px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 600;
}

.portal-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: var(--ink-3);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.portal-divider::before,
.portal-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.portal-auth__foot {
  margin-top: 24px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--ink-2);
}
.portal-auth__foot a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.portal-notice {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--brand-soft);
  border: 1px solid rgba(255, 92, 0, 0.18);
  font-size: 0.8rem;
  color: var(--ink-2);
  line-height: 1.5;
}

/* —— Shell —— */
.portal-sidebar__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 27, 46, 0.45);
  z-index: 35;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}
body:has(.portal-shell.is-nav-open) .portal-sidebar__backdrop {
  opacity: 1;
  pointer-events: auto;
}

.portal-shell {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}
@media (min-width: 1024px) {
  .portal-shell {
    flex-direction: row;
    align-items: stretch;
  }
}

.portal-sidebar {
  background: var(--navy);
  color: #c9d4e2;
  padding: 24px 16px 18px;
  display: none;
  flex-direction: column;
  gap: 20px;
  z-index: 40;
  width: var(--sidebar);
  max-width: var(--sidebar);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  box-sizing: border-box;
}
.portal-sidebar .portal-auth__logo { color: #fff; }
.portal-sidebar .portal-auth__logo img { width: 44px; height: auto; object-fit: contain; }

/* Mobile: no drawer / no off-canvas — tabs handle dashboard sections */
@media (max-width: 1023px) {
  .portal-sidebar,
  .portal-sidebar__backdrop {
    display: none !important;
  }
}
@media (min-width: 1024px) {
  .portal-sidebar {
    display: flex;
    position: sticky;
    top: 0;
    flex: 0 0 var(--sidebar);
    height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
  }
  .portal-sidebar__backdrop { display: none; }
  .desk-tabs { display: none !important; }
}

.portal-sidebar__user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.portal-sidebar__avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: var(--head);
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
  background: var(--brand);
}
.portal-sidebar__user-meta {
  min-width: 0;
}
.portal-sidebar__user strong {
  display: block;
  font-family: var(--head);
  font-size: 0.82rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.portal-sidebar__user span {
  display: block;
  font-size: 0.7rem;
  opacity: 0.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portal-nav-label {
  margin: 14px 0 8px;
  padding: 0 10px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(201, 212, 226, 0.45);
}
.portal-nav-label:first-child { margin-top: 0; }

.portal-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.portal-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 10px;
  color: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.portal-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.portal-nav a.is-active {
  background: rgba(255, 92, 0, 0.16);
  color: #fff;
  font-weight: 600;
}
.portal-nav svg {
  width: 18px;
  height: 18px;
  opacity: 0.85;
  flex-shrink: 0;
}

.portal-sidebar__signout {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.portal-sidebar__signout:hover {
  background: rgba(255, 90, 90, 0.1);
  color: #ffc4c4;
}
.portal-sidebar__signout svg {
  width: 18px;
  height: 18px;
}

.portal-main {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  background:
    linear-gradient(180deg, #fbfcfe 0%, var(--paper) 40%),
    var(--paper);
}

/* Dashboard section tabs (mobile / tablet) — wrap, no horizontal slider */
.desk-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 25;
  max-width: 100%;
}
a.desk-tabs__item,
button.desk-tabs__item,
.desk-tabs__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-2) !important;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
a.desk-tabs__item:hover,
button.desk-tabs__item:hover,
.desk-tabs__item:hover {
  border-color: rgba(255, 92, 0, 0.35);
  color: var(--ink) !important;
  background: var(--white);
}
a.desk-tabs__item.is-active,
button.desk-tabs__item.is-active,
.desk-tabs__item.is-active,
a.desk-tabs__item.is-active:hover,
button.desk-tabs__item.is-active:hover,
.desk-tabs__item.is-active:hover,
a.desk-tabs__item.is-active:focus,
.desk-tabs__item.is-active:focus,
a.desk-tabs__item.is-active:visited {
  background: var(--navy) !important;
  border-color: var(--navy) !important;
  color: #ffffff !important;
}
.desk-tabs__item--muted,
a.desk-tabs__item--muted,
button.desk-tabs__item--muted {
  color: var(--ink-3) !important;
  background: transparent;
}
.desk-tabs__item--muted:hover,
a.desk-tabs__item--muted:hover,
button.desk-tabs__item--muted:hover {
  color: var(--ink) !important;
  background: var(--paper);
}

.portal-content {
  position: relative;
  padding: clamp(16px, 3.2vw, 36px);
  flex: 1;
  max-width: min(var(--max), 100%);
  width: 100%;
  margin: 0 auto;
  overflow-x: clip;
  box-sizing: border-box;
}

/* —— Atmospheric masthead —— */
.desk-masthead {
  position: relative;
  height: clamp(88px, 14vw, 148px);
  margin: -4px 0 22px;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.desk-masthead img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  transform: scale(1.04);
  transition: transform 8s var(--ease);
}
.desk-masthead:hover img { transform: scale(1.08); }
.desk-masthead__fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 27, 46, 0.55) 0%, rgba(11, 27, 46, 0.15) 55%, rgba(11, 27, 46, 0.35) 100%),
    linear-gradient(180deg, transparent 40%, rgba(247, 248, 251, 0.55) 100%);
  pointer-events: none;
}

/* —— Greeting —— */
.desk-hello {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 24px;
  margin-bottom: 28px;
}
.desk-hello__time {
  margin: 0 0 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-2);
}
.desk-hello h1 {
  margin: 0;
  font-family: var(--head);
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
}
.desk-hello__sub {
  margin: 8px 0 0;
  max-width: 42ch;
  color: var(--ink-2);
  font-size: 0.92rem;
  line-height: 1.55;
}
.desk-hello__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 100%;
}
.desk-hello__actions .p-btn {
  flex: 1 1 auto;
  min-width: min(100%, 140px);
}

.p-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-family: var(--head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.15s, box-shadow 0.2s;
}
.p-btn:hover { transform: translateY(-1px); }
.p-btn--ghost {
  background: var(--white);
  border-color: var(--line-2);
  color: var(--ink);
}
.p-btn--solid {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 92, 0, 0.28);
}
.p-btn--solid:hover { background: var(--brand-deep); }
.p-btn__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  animation: livePulse 1.8s ease-out infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* —— Cover Pass (hero) —— */
.desk-pass {
  position: relative;
  display: grid;
  gap: 0;
  margin-bottom: 22px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-pass);
  isolation: isolate;
  width: 100%;
  max-width: 100%;
}
@media (min-width: 900px) {
  .desk-pass {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr) minmax(0, 0.72fr);
    min-height: 300px;
  }
}
.desk-pass__visual {
  position: relative;
  min-height: 180px;
  overflow: hidden;
}
@media (max-width: 899px) {
  .desk-pass__visual { order: -1; max-height: 200px; }
}
.desk-pass__visual img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 1.1s var(--ease);
}
.desk-pass:hover .desk-pass__visual img {
  transform: scale(1.06);
}
.desk-pass__visual-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 55%, rgba(11, 27, 46, 0.55) 100%),
    linear-gradient(180deg, rgba(11, 27, 46, 0.15), rgba(11, 27, 46, 0.45));
  pointer-events: none;
}
@media (min-width: 900px) {
  .desk-pass__visual-shade {
    background:
      linear-gradient(90deg, transparent 40%, rgba(11, 27, 46, 0.75) 100%),
      linear-gradient(180deg, transparent 50%, rgba(11, 27, 46, 0.35));
  }
}
.desk-pass__main {
  position: relative;
  z-index: 1;
  padding: clamp(22px, 3.5vw, 34px);
  background:
    linear-gradient(135deg, rgba(255, 92, 0, 0.14) 0%, transparent 45%),
    linear-gradient(160deg, #12263f 0%, #0b1b2e 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.desk-pass__main > * { position: relative; }

.desk-pass__kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  max-width: 100%;
}
.desk-pass__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(14, 122, 82, 0.35);
  border: 1px solid rgba(61, 214, 140, 0.5);
  color: #eafff4;
}
.desk-pass__status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3dd68c;
}
.desk-pass[data-status="upcoming"] .desk-pass__status {
  background: rgba(40, 120, 200, 0.28);
  border-color: rgba(120, 180, 255, 0.45);
  color: #eaf4ff;
}
.desk-pass[data-status="upcoming"] .desk-pass__status::before { background: #7eb6ff; }
.desk-pass[data-status="payment_pending"] .desk-pass__status {
  background: rgba(232, 145, 15, 0.32);
  border-color: rgba(255, 196, 90, 0.55);
  color: #fff6e5;
}
.desk-pass[data-status="payment_pending"] .desk-pass__status::before { background: #ffc45a; }
.desk-pass[data-status="expired"] .desk-pass__status {
  background: rgba(180, 50, 50, 0.35);
  border-color: rgba(255, 150, 150, 0.45);
  color: #ffe8e8;
}
.desk-pass[data-status="expired"] .desk-pass__status::before { background: #ff8f8f; }
.desk-pass[data-status="completed"] .desk-pass__status {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
  color: #f2f5f8;
}
.desk-pass[data-status="completed"] .desk-pass__status::before {
  background: #c5d0dc;
}

.desk-pass__hint {
  margin: 0 0 16px;
  max-width: 42ch;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9) !important;
}

.desk-pass__stamp {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
  font-variant-numeric: tabular-nums;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.desk-pass h2,
.desk-pass .desk-pass__main h2 {
  margin: 0 0 8px;
  font-family: var(--head);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  max-width: 18ch;
  color: #ffffff !important;
}
.desk-pass__route {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92) !important;
}

.desk-pass__timeline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 10px;
  margin-bottom: 22px;
  max-width: 420px;
}
.desk-pass__node span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72) !important;
  margin-bottom: 4px;
}
.desk-pass__node strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff !important;
}
.desk-pass__node:last-child { text-align: right; }
.desk-pass__line {
  height: 2px;
  margin-bottom: 10px;
  background: linear-gradient(90deg, var(--brand), rgba(255, 255, 255, 0.25));
  border-radius: 2px;
  position: relative;
}
.desk-pass__line::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  transform: translate(50%, -50%);
}

.desk-pass__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
}
.desk-pass__actions .p-btn {
  flex: 1 1 auto;
  min-width: min(100%, 140px);
}

.desk-pass__side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(22px, 3.5vw, 30px);
  background: rgba(0, 0, 0, 0.22);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 0;
}
@media (min-width: 900px) {
  .desk-pass__side {
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
  }
}
.desk-pass__metric {
  margin-bottom: 14px;
}
.desk-pass__metric span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72) !important;
  margin-bottom: 4px;
}
.desk-pass__metric strong {
  font-family: var(--head);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff !important;
}
.desk-pass__days {
  margin-top: auto;
}
.desk-pass__days em {
  font-style: normal;
  font-family: var(--head);
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: #ffb07a !important;
}
.desk-pass__days small {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85) !important;
}

/* —— Compact metrics strip —— */
.desk-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 0;
  margin-bottom: 32px;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.desk-strip__item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 4px 20px;
  border-right: 1px solid var(--line);
}
.desk-strip__item:first-child { padding-left: 4px; }
.desk-strip__item span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.desk-strip__item strong {
  font-family: var(--head);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.desk-strip__item--warn span { color: var(--warn); }
.desk-strip__item--warn strong { color: var(--warn); }

/* Status alert banner */
.desk-alert {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  margin-bottom: 16px;
  padding: 16px 18px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}
.desk-alert[hidden] { display: none !important; }
.desk-alert__copy {
  flex: 1 1 220px;
  min-width: 0;
}
.desk-alert__copy strong {
  display: block;
  font-family: var(--head);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 4px;
}
.desk-alert__copy p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.desk-alert__actions {
  flex: 0 0 auto;
}
.desk-alert--warn {
  background: #fff8ec;
  border-color: #f0d2a0;
}
.desk-alert--warn strong { color: #8a4b00; }
.desk-alert--danger {
  background: #fff1f1;
  border-color: #efb4b4;
}
.desk-alert--danger strong { color: #8f1f1f; }
.desk-alert--ok {
  background: #eef8f2;
  border-color: #b7dfc8;
}
.desk-alert--ok strong { color: #0e5c3a; }
.desk-alert--info {
  background: #eef4fb;
  border-color: #b7cce8;
}
.desk-alert--info strong { color: #1a4f86; }
.desk-alert--muted {
  background: #f3f5f8;
  border-color: #d5dbe4;
}
.desk-alert--muted strong { color: var(--ink); }
.desk-strip__cta {
  margin-left: auto;
  padding: 4px 8px;
}
.desk-strip__cta a {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}
.desk-strip__cta a:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .desk-strip__item {
    border-right: 0;
    padding: 6px 8px;
    flex: 1 1 40%;
  }
  .desk-strip__cta {
    margin-left: 0;
    width: 100%;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }
}

/* —— Layout —— */
.desk-layout {
  display: grid;
  gap: 28px;
}
@media (min-width: 980px) {
  .desk-layout {
    grid-template-columns: 1.35fr 0.75fr;
    align-items: start;
  }
}

.desk-section-head {
  margin-bottom: 14px;
}
.desk-section-head h2 {
  margin: 0;
  font-family: var(--head);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.desk-section-head p {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: var(--ink-3);
}

/* Cover archive rows */
.desk-cover-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.desk-cover {
  display: grid;
  gap: 12px;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.desk-cover:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.desk-cover:focus-visible {
  outline: 3px solid rgba(255, 92, 0, 0.35);
  outline-offset: 2px;
}
.desk-cover.is-selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(255, 92, 0, 0.2), var(--shadow);
}
.desk-cover__tap {
  margin: 8px 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
}
@media (min-width: 700px) {
  .desk-cover {
    grid-template-columns: 108px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 12px 14px 12px 12px;
  }
}
.desk-cover__media {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--navy-2);
}
.desk-cover__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}
.desk-cover:hover .desk-cover__media img {
  transform: scale(1.06);
}
.desk-cover__status {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ok);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.desk-cover[data-status="upcoming"] .desk-cover__status {
  background: #e8f1fb;
  color: #1a5f9e;
}
.desk-cover[data-status="payment_pending"] .desk-cover__status {
  background: var(--warn-soft);
  color: #8a4b00;
}
.desk-cover[data-status="expired"] .desk-cover__status {
  background: #fde8e8;
  color: #8f1f1f;
}
.desk-cover[data-status="completed"] .desk-cover__status {
  background: var(--muted-soft);
  color: var(--ink-2);
}
.desk-cover__hint {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-2);
}
.desk-cover[data-status="payment_pending"] .desk-cover__hint { color: #8a4b00; }
.desk-cover[data-status="expired"] .desk-cover__hint { color: #8f1f1f; }
.desk-cover__actions .p-btn:disabled,
.desk-cover__actions .p-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
.desk-cover__body h3 {
  margin: 0 0 4px;
  font-family: var(--head);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.desk-cover__meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-2);
  line-height: 1.45;
}
.desk-cover__meta code {
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}
.desk-cover__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.desk-cover__actions .p-btn {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.72rem;
  border-radius: 8px;
}
.desk-cover__actions .p-btn--ghost {
  background: var(--paper);
}

/* Right rail */
.desk-rail {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.desk-panel {
  position: relative;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.desk-panel--urgent {
  padding: 0;
  background: #0b1b2e;
  color: #e8eef5;
  border-color: transparent;
}
.desk-panel__media {
  position: relative;
  height: 110px;
  overflow: hidden;
}
.desk-panel__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
  filter: saturate(0.92);
}
.desk-panel__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 27, 46, 0.25), #0b1b2e);
}
.desk-panel__body {
  padding: 4px 20px 20px;
  position: relative;
  z-index: 1;
  margin-top: -18px;
}
.desk-panel--claim .desk-panel__thumb {
  margin: -4px 0 14px;
  border-radius: 10px;
  overflow: hidden;
  height: 88px;
}
.desk-panel--claim .desk-panel__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.desk-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.desk-panel h2 {
  margin: 0;
  font-family: var(--head);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.desk-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3dd68c;
}
.desk-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3dd68c;
  animation: livePulse 1.8s ease-out infinite;
}
.desk-panel__lede {
  margin: 0 0 16px;
  font-size: 0.82rem;
  color: rgba(232, 238, 245, 0.65);
  line-height: 1.45;
}
.desk-panel__note {
  margin: 14px 0 0;
  font-size: 0.75rem;
  color: var(--ink-3);
  line-height: 1.45;
}

.desk-emergency {
  display: grid;
  gap: 10px;
}
.desk-em {
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.2s, border-color 0.2s;
}
.desk-em:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 92, 0, 0.35);
}
.desk-em h3 {
  margin: 0 0 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 238, 245, 0.5);
}
.desk-em__phone {
  display: block;
  font-family: var(--head);
  font-size: clamp(1rem, 4.2vw, 1.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ff8a3d;
  text-decoration: none;
  margin-bottom: 6px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.desk-em__phone:hover { color: #ffb07a; }
.desk-em a {
  color: rgba(232, 238, 245, 0.7);
  text-decoration: none;
  font-size: 0.8rem;
}
.desk-em a:hover { color: #fff; }
.desk-em__sub {
  margin: 8px 0 0;
  font-size: 0.75rem;
  color: rgba(232, 238, 245, 0.5);
}

.desk-claim {
  margin-top: 12px;
}
.desk-claim ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.desk-claim li {
  position: relative;
  margin: 0 0 12px;
  padding: 0 0 12px 36px;
  font-size: 0.84rem;
  color: var(--ink-2);
  line-height: 1.5;
  border-bottom: 1px solid var(--line);
  counter-increment: step;
}
.desk-claim li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}
.desk-claim li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-family: var(--head);
  font-size: 0.7rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* Buttons in pass */
.desk-pass .p-btn--solid,
.desk-pass a.p-btn--solid,
.desk-pass button.p-btn--solid {
  background: var(--brand) !important;
  color: #ffffff !important;
  border-color: transparent !important;
}
.desk-pass .p-btn--ghost,
.desk-pass a.p-btn--ghost,
.desk-pass button.p-btn--ghost {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  color: #ffffff !important;
}
.desk-pass .p-btn--ghost:hover,
.desk-pass a.p-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

/* Force readable text on dark pass (beats global h1/h2/h3 navy from styles.css) */
.desk-pass,
.desk-pass * {
  -webkit-font-smoothing: antialiased;
}
.desk-pass__stamp {
  color: rgba(255, 255, 255, 0.78) !important;
}
.desk-pass__main,
.desk-pass__side {
  color: #ffffff;
}

.portal-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(140%);
  background: var(--navy);
  color: #fff;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 0.875rem;
  max-width: min(90vw, 420px);
  box-shadow: var(--shadow-pass);
  z-index: 80;
  transition: transform 0.35s var(--ease);
}
.portal-toast.is-visible {
  transform: translateX(-50%) translateY(0);
}

.portal-profile-card {
  max-width: 480px;
  background: var(--white);
  border-radius: var(--r-lg);
  padding: clamp(22px, 4vw, 32px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* Reveal */
.portal-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.portal-reveal.is-in {
  opacity: 1;
  transform: none;
}
.portal-reveal[data-d="1"] { transition-delay: 0.05s; }
.portal-reveal[data-d="2"] { transition-delay: 0.1s; }
.portal-reveal[data-d="3"] { transition-delay: 0.15s; }
.portal-reveal[data-d="4"] { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  .p-btn__pulse,
  .desk-live i { animation: none; }
  .portal-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .desk-cover:hover,
  .desk-pass:hover .desk-pass__visual img,
  .desk-masthead:hover img,
  .p-btn:hover { transform: none; }
  .desk-masthead img,
  .desk-pass__visual img,
  .desk-cover__media img { transition: none; }
}

/* Profile page greeting reuse */
.portal-head-row {
  margin-bottom: 24px;
}
.portal-eyebrow {
  margin: 0 0 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-2);
}
.portal-content h1 {
  margin: 0;
  font-family: var(--head);
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}
.portal-content .portal-lede {
  margin: 8px 0 0;
  color: var(--ink-2);
  max-width: 42ch;
  font-size: 0.92rem;
  line-height: 1.55;
}
