/* MASK NEXTGEN Partner Portal — Brand tokens & components
   NOTE: Real brand fonts (Lakes Neue / Garet) swap in at production. Inter used as proxy. */

/* Keep the `hidden` attribute authoritative — a later `display` rule on a
   class would otherwise silently un-hide the element. */
[hidden] { display: none !important; }

:root {
  --brand-blue: #00A1FF;
  --brand-blue-dark: #0078C8;
  --brand-cyan: #00FF8F;
  --brand-cyan-dark: #00C870;
  --brand-navy: #0B1220;
  --brand-navy-2: #131C30;
  --brand-panel: #202733;
  --brand-purple: #8B5CF6;
  --brand-purple-dark: #6D28D9;
  --brand-white: #FFFFFF;
  --brand-bg: #F4F6FA;
  --brand-bg-alt: #E9EEF5;
  --brand-ink: #0F172A;
  --brand-muted: #64748B;
  --brand-line: rgba(255, 255, 255, 0.08);
  --brand-line-light: rgba(15, 23, 42, 0.08);
  --radius: 18px;
  --radius-lg: 24px;
  --shadow-card: 0 10px 30px -10px rgba(15, 23, 42, 0.18);
  --shadow-glow: 0 0 0 1px rgba(139, 92, 246, 0.25), 0 20px 60px -20px rgba(139, 92, 246, 0.45);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--brand-ink);
  background: var(--brand-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

a { text-decoration: none; color: inherit; }

/* ---------- Dark surfaces ---------- */
.bg-navy { background: var(--brand-navy); color: var(--brand-white); }
.bg-navy-2 { background: var(--brand-navy-2); color: var(--brand-white); }
.bg-panel { background: var(--brand-panel); color: var(--brand-white); }

/* ---------- Hero glow ---------- */
.glow-hero {
  position: relative;
  background: var(--brand-navy);
  color: var(--brand-white);
  overflow: hidden;
  isolation: isolate;
}
.glow-hero::before,
.glow-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
}
.glow-hero::before {
  width: 620px; height: 620px;
  background: radial-gradient(circle, var(--brand-purple) 0%, transparent 65%);
  top: -180px; left: -120px;
}
.glow-hero::after {
  width: 540px; height: 540px;
  background: radial-gradient(circle, var(--brand-blue) 0%, transparent 65%);
  bottom: -200px; right: -100px;
}
.glow-hero > * { position: relative; z-index: 1; }

.glow-hero-soft {
  position: relative;
  background: linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-navy-2) 100%);
  color: var(--brand-white);
  overflow: hidden;
}
.glow-hero-soft::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 320px at 15% 0%, rgba(139, 92, 246, 0.30), transparent 60%),
    radial-gradient(700px 320px at 95% 100%, rgba(0, 161, 255, 0.28), transparent 60%),
    radial-gradient(500px 260px at 50% 100%, rgba(0, 255, 143, 0.12), transparent 60%);
  pointer-events: none;
}
.glow-hero-soft > * { position: relative; }

/* ---------- Cards ---------- */
.card {
  background: var(--brand-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--brand-line-light);
  padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -14px rgba(15, 23, 42, 0.22);
}
.card-dark {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius);
  padding: 28px;
  color: var(--brand-white);
  backdrop-filter: blur(8px);
  transition: border-color .2s ease, background .2s ease;
}
.card-dark:hover {
  border-color: rgba(0, 161, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
}

.card-glow {
  position: relative;
}
.card-glow::after {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-blue), var(--brand-cyan));
  z-index: -1;
  opacity: 0;
  transition: opacity .25s ease;
  filter: blur(6px);
}
.card-glow:hover::after { opacity: 0.45; }

/* ---------- Icon block ---------- */
.icon-block {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(0,161,255,.15), rgba(139,92,246,.15));
  color: var(--brand-blue);
  font-weight: 800;
  font-size: 18px;
  border: 1px solid rgba(0,161,255,.25);
}
.icon-block.cyan {
  background: linear-gradient(135deg, rgba(0,255,143,.15), rgba(0,161,255,.10));
  color: var(--brand-cyan-dark);
  border-color: rgba(0,255,143,.35);
}
.icon-block.purple {
  background: linear-gradient(135deg, rgba(139,92,246,.18), rgba(0,161,255,.10));
  color: var(--brand-purple);
  border-color: rgba(139,92,246,.35);
}
.icon-block-lg { width: 56px; height: 56px; border-radius: 14px; font-size: 22px; }
.icon-block-dark {
  background: linear-gradient(135deg, rgba(0,161,255,.20), rgba(139,92,246,.20));
  color: var(--brand-white);
  border-color: rgba(255,255,255,.18);
}

/* ---------- Chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(0,161,255,.10);
  color: var(--brand-blue-dark);
  border: 1px solid rgba(0,161,255,.25);
}
.chip-cyan {
  background: rgba(0,255,143,.10);
  color: #047857;
  border-color: rgba(0,200,112,.35);
}
.chip-purple {
  background: rgba(139,92,246,.12);
  color: var(--brand-purple-dark);
  border-color: rgba(139,92,246,.30);
}
.chip-dark {
  background: rgba(255,255,255,.06);
  color: var(--brand-white);
  border-color: rgba(255,255,255,.15);
}
.chip-warn {
  background: rgba(251, 191, 36, 0.15);
  color: #92400E;
  border-color: rgba(251, 191, 36, 0.45);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .2s ease;
  text-align: center;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-purple) 100%);
  color: var(--brand-white);
  box-shadow: 0 8px 24px -8px rgba(0, 161, 255, .55);
}
.btn-primary:hover {
  box-shadow: 0 10px 32px -8px rgba(0, 161, 255, .85), 0 0 0 4px rgba(0, 255, 143, .12);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--brand-white);
  border-color: rgba(255,255,255,.30);
}
.btn-secondary:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.55);
}
.btn-secondary-light {
  background: transparent;
  color: var(--brand-ink);
  border-color: rgba(15, 23, 42, .15);
}
.btn-secondary-light:hover {
  background: rgba(15, 23, 42, .04);
  border-color: rgba(15, 23, 42, .35);
}
.btn-ghost {
  background: transparent;
  color: var(--brand-blue);
  padding: 8px 4px;
  border-radius: 6px;
}
.btn-ghost:hover { color: var(--brand-purple); }
.btn-cyan {
  background: var(--brand-cyan);
  color: var(--brand-ink);
}
.btn-cyan:hover {
  background: var(--brand-cyan-dark);
  box-shadow: 0 8px 24px -8px rgba(0, 255, 143, .65);
}
.btn-sm { padding: 8px 14px; font-size: 12px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }

/* ---------- Placeholder art ---------- */
.placeholder-art {
  position: relative;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(139,92,246,.20) 0%, rgba(0,161,255,.20) 50%, rgba(0,255,143,.20) 100%),
    var(--brand-navy-2);
  border: 1px dashed rgba(255,255,255,.18);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(255,255,255,.85);
  font-weight: 600;
  font-size: 14px;
  overflow: hidden;
  padding: 20px;
}
.placeholder-art::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(280px 200px at 20% 30%, rgba(139,92,246,.40), transparent 70%),
    radial-gradient(280px 200px at 80% 80%, rgba(0,161,255,.35), transparent 70%);
  opacity: .8;
}
.placeholder-art > span {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(11, 18, 32, 0.55);
  border: 1px solid rgba(255,255,255,.20);
  backdrop-filter: blur(4px);
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.placeholder-art-sm { min-height: 180px; }
.placeholder-art-xs { min-height: 120px; border-radius: var(--radius); }

.placeholder-on-light {
  background:
    linear-gradient(135deg, rgba(139,92,246,.10) 0%, rgba(0,161,255,.10) 50%, rgba(0,255,143,.10) 100%),
    #F1F5F9;
  border: 1px dashed rgba(15, 23, 42, .15);
  color: var(--brand-ink);
}
.placeholder-on-light > span {
  background: rgba(255,255,255,.85);
  color: var(--brand-ink);
  border-color: rgba(15, 23, 42, .15);
}

/* ---------- Testimonial placeholder ---------- */
.testimonial-placeholder { position: relative; }
.testimonial-placeholder .pending-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(251, 191, 36, 0.18);
  color: #92400E;
  border: 1px solid rgba(251, 191, 36, 0.45);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 32, .85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--brand-line);
  color: var(--brand-white);
}
.site-header.on-light {
  background: rgba(255,255,255,.92);
  color: var(--brand-ink);
  border-bottom-color: var(--brand-line-light);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.logo-mark .shield {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 14px rgba(0, 161, 255, .45));
}
.logo-mark .shield img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.logo-mark .name { font-size: 16px; }
.logo-mark .name span { color: var(--brand-cyan); }

.brand-wordmark {
  display: inline-block;
  height: 42px;
  width: auto;
}
.brand-wordmark img {
  height: 100%;
  width: auto;
  display: block;
}

.hero-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  background:
    radial-gradient(360px 240px at 25% 30%, rgba(139,92,246,.35), transparent 70%),
    radial-gradient(360px 240px at 75% 80%, rgba(0,161,255,.30), transparent 70%),
    var(--brand-navy-2);
  border: 1px solid rgba(255,255,255,.10);
  isolation: isolate;
}
.hero-photo img {
  position: relative;
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  display: block;
  z-index: 1;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .45));
}

.nav-links {
  display: none;
  gap: 26px;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a {
  opacity: 0.85;
  transition: opacity .2s ease, color .2s ease;
}
.nav-links a:hover { opacity: 1; color: var(--brand-cyan); }
.nav-actions { display: flex; gap: 10px; align-items: center; }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}

.nav-toggle {
  background: transparent;
  border: 1px solid var(--brand-line);
  color: inherit;
  width: 40px; height: 40px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center; justify-content: center;
}
.site-header.on-light .nav-toggle { border-color: var(--brand-line-light); }

.dropdown {
  position: relative;
}
.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}
.dropdown-trigger::after {
  content: "▾";
  font-size: 10px;
  opacity: 0.7;
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: -16px;
  min-width: 260px;
  background: var(--brand-white);
  color: var(--brand-ink);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 22px 50px -14px rgba(15, 23, 42, 0.35);
  border: 1px solid var(--brand-line-light);
  display: none;
}
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
}
.dropdown-menu a:hover {
  background: rgba(0, 161, 255, 0.07);
  color: var(--brand-blue-dark);
}

.mobile-drawer {
  display: none;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--brand-line);
}
.mobile-drawer.open { display: block; }
.mobile-drawer a {
  display: block;
  padding: 12px 0;
  font-size: 15px;
  border-bottom: 1px solid var(--brand-line);
}
.site-header.on-light .mobile-drawer a { border-bottom-color: var(--brand-line-light); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand-navy);
  color: rgba(255,255,255,.75);
  padding: 60px 24px 30px;
  border-top: 1px solid var(--brand-line);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 40px;
  grid-template-columns: 2fr repeat(3, 1fr);
}
/* Footers carrying two link columns instead of three. Scoped as a modifier so
   pages still running the four-column footer are unaffected. */
.footer-inner-3col { grid-template-columns: 2fr repeat(2, 1fr); }
.footer-inner h4 {
  color: var(--brand-white);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.footer-inner a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
}
.footer-inner a:hover { color: var(--brand-cyan); }
.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--brand-line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
  color: rgba(255,255,255,.50);
}
@media (max-width: 800px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 500px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 88px 0;
}
.section-sm { padding: 56px 0; }
@media (max-width: 700px) {
  .section { padding: 64px 0; }
  .section-sm { padding: 40px 0; }
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-cyan);
  margin-bottom: 14px;
}
.eyebrow-light { color: var(--brand-blue); }

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  margin-bottom: 12px;
}
.section-sub {
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.6;
  opacity: 0.78;
  max-width: 680px;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  border: 0;
  margin: 0;
}

/* ---------- Grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Hero specific ---------- */
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  padding: 96px 0 88px;
}
.hero-grid h1 {
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
}
.hero-grid h1 .accent {
  background: linear-gradient(90deg, var(--brand-cyan) 0%, var(--brand-blue) 60%, var(--brand-purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
  opacity: 0.85;
  margin-top: 20px;
  max-width: 540px;
}
.hero-cta-row {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}
/* Single-CTA hero: let the lone button span the column instead of sitting
   as a small pill against a wide empty row. Capped so it stays a button. */
.hero-cta-row-solo .btn {
  flex: 1 1 auto;
  max-width: 420px;
}
.hero-meta-row {
  display: flex;
  gap: 24px;
  margin-top: 40px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255,255,255,.65);
}
.hero-meta-row span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta-row span::before {
  content: "•";
  color: var(--brand-cyan);
  font-size: 16px;
}
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 64px 0;
  }
}

/* ---------- Forms ---------- */
.form-stack { display: flex; flex-direction: column; gap: 20px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-ink);
  margin-bottom: 6px;
}
.field label .req { color: #DC2626; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, .15);
  background: #FFFFFF;
  font-size: 14px;
  font-family: inherit;
  color: var(--brand-ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 4px rgba(0, 161, 255, .12);
}
.field textarea { min-height: 110px; resize: vertical; }
.help-text { font-size: 12px; color: var(--brand-muted); margin-top: 4px; }

.checkbox-group, .radio-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (max-width: 500px) { .checkbox-group, .radio-group { grid-template-columns: 1fr; } }

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  transition: border-color .15s ease, background .15s ease;
}
.check-row:hover { border-color: var(--brand-blue); background: rgba(0, 161, 255, .04); }
.check-row input { margin-top: 2px; }

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--brand-ink);
  line-height: 1.5;
}
.consent-row input { margin-top: 3px; }

.form-success {
  background: linear-gradient(135deg, rgba(0,255,143,.10), rgba(0,161,255,.10));
  border: 1px solid rgba(0,255,143,.45);
  border-radius: var(--radius);
  padding: 28px;
  color: var(--brand-ink);
}
.form-success h3 { color: #047857; margin-bottom: 8px; }

/* ---------- Portal shell ---------- */
.portal-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  background: var(--brand-bg);
}
.portal-sidebar {
  background: var(--brand-navy);
  color: rgba(255,255,255,.85);
  padding: 28px 18px;
  border-right: 1px solid var(--brand-line);
  position: sticky;
  top: 0;
  height: 100vh;
}
.portal-sidebar .logo-mark { color: white; margin-bottom: 32px; }
.portal-nav { display: flex; flex-direction: column; gap: 4px; }
.portal-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.75);
}
.portal-nav a:hover {
  background: rgba(255,255,255,.06);
  color: var(--brand-white);
}
.portal-nav a.active {
  background: linear-gradient(135deg, rgba(0,161,255,.20), rgba(139,92,246,.20));
  color: var(--brand-white);
  border: 1px solid rgba(0,161,255,.35);
}
.portal-nav .nav-section {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,.40);
  padding: 18px 14px 6px;
}
.portal-main { display: flex; flex-direction: column; }
.portal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  background: white;
  border-bottom: 1px solid var(--brand-line-light);
  gap: 20px;
}
.portal-topbar .breadcrumb {
  font-size: 13px;
  color: var(--brand-muted);
}
.portal-topbar .user-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: #F1F5F9;
  font-size: 13px;
  font-weight: 600;
}
.portal-topbar .avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-purple));
  color: white;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 800;
}
.portal-content { padding: 32px; max-width: 1320px; width: 100%; }

@media (max-width: 900px) {
  .portal-shell { grid-template-columns: 1fr; }
  .portal-sidebar {
    position: relative;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--brand-line);
  }
  .portal-nav { flex-direction: row; flex-wrap: wrap; }
  .portal-nav .nav-section { display: none; }
  .portal-content { padding: 24px; }
}

/* ---------- Misc ---------- */
.cta-strip {
  position: relative;
  background: linear-gradient(135deg, var(--brand-navy-2) 0%, var(--brand-navy) 100%);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  overflow: hidden;
  color: white;
}
.cta-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(500px 200px at 20% 20%, rgba(139,92,246,.30), transparent 60%),
    radial-gradient(500px 200px at 80% 80%, rgba(0,255,143,.18), transparent 60%);
  pointer-events: none;
}
.cta-strip > * { position: relative; }
.cta-strip h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 12px; }
.cta-strip p { opacity: 0.78; max-width: 540px; margin-bottom: 24px; }
.cta-strip .row { display: flex; gap: 12px; flex-wrap: wrap; }

.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.kpi { padding: 18px 20px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--brand-line); }
.kpi .num { font-size: 28px; font-weight: 800; color: var(--brand-cyan); }
.kpi .lbl { font-size: 12px; opacity: 0.75; }
@media (max-width: 600px) { .kpi-row { grid-template-columns: 1fr; } }

.list-checks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.list-checks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
}
.list-checks li::before {
  content: "✓";
  color: var(--brand-cyan-dark);
  font-weight: 900;
  flex-shrink: 0;
  width: 18px;
}
.list-checks.light li::before { color: var(--brand-cyan); }

.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }

.breadcrumbs {
  font-size: 13px;
  color: rgba(255,255,255,.60);
  margin-bottom: 12px;
}
.breadcrumbs a { color: rgba(255,255,255,.80); }
.breadcrumbs a:hover { color: var(--brand-cyan); }
.breadcrumbs .sep { margin: 0 8px; opacity: 0.5; }

.comparison {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--brand-line-light);
}
.comparison th, .comparison td {
  text-align: left;
  padding: 14px 18px;
  font-size: 14px;
  vertical-align: top;
  border-bottom: 1px solid var(--brand-line-light);
}
.comparison thead th {
  background: #F8FAFC;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-muted);
  font-weight: 700;
}
.comparison tbody th {
  font-weight: 700;
  color: var(--brand-ink);
}
.comparison tr:last-child td, .comparison tr:last-child th { border-bottom: 0; }
@media (max-width: 700px) {
  .comparison { display: none; }
}
.comparison-cards { display: none; flex-direction: column; gap: 14px; }
@media (max-width: 700px) {
  .comparison-cards { display: flex; }
}

.subtle-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  color: var(--brand-blue);
}
.subtle-link::after { content: "→"; transition: transform .2s ease; }
.subtle-link:hover::after { transform: translateX(3px); }

/* An inline action that reads as a link but is a real button (keyboard + a11y). */
.link-button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--brand-blue);
  cursor: pointer;
  text-decoration: underline;
}
.link-button:hover { opacity: .8; }
.link-button:disabled { opacity: .5; cursor: default; }

.label-strong { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-muted); }

/* Quick-action button styling for portal */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.quick-action {
  background: white;
  border: 1px solid var(--brand-line-light);
  border-radius: 14px;
  padding: 18px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: all .2s ease;
}
.quick-action:hover {
  border-color: var(--brand-blue);
  box-shadow: 0 8px 20px -10px rgba(0, 161, 255, .35);
  transform: translateY(-2px);
}
.quick-action .ic {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0,161,255,.15), rgba(139,92,246,.15));
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: var(--brand-blue-dark);
}
.quick-action .ttl { font-weight: 700; font-size: 14px; color: var(--brand-ink); }
.quick-action .sub { font-size: 12px; color: var(--brand-muted); }
@media (max-width: 1100px) { .quick-actions { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .quick-actions { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .quick-actions { grid-template-columns: 1fr; } }

.feed-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--brand-line-light);
}
.feed-item:last-child { border-bottom: 0; }
.feed-item .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--brand-blue);
  margin-top: 7px;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(0, 161, 255, .15);
}
.feed-item .dot.cyan { background: var(--brand-cyan-dark); box-shadow: 0 0 0 4px rgba(0, 255, 143, .15); }
.feed-item .dot.purple { background: var(--brand-purple); box-shadow: 0 0 0 4px rgba(139, 92, 246, .15); }
.feed-item .body { flex: 1; }
.feed-item .meta { font-size: 12px; color: var(--brand-muted); margin-top: 2px; }
.feed-item .ttl { font-weight: 600; font-size: 14px; color: var(--brand-ink); }
