/* ═══════════════════════════════════════════════════════════════════
   PeerLink Role Portal — Neumorphism (Soft UI / Extruded Plastic)
   Strict Light Mode: Dual-source lighting on porcelain canvas
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --neu-base: #f5f5f7;
  --neu-card-bg: #ffffff;
  --neu-light: #ffffff;
  --neu-dark: rgba(166, 180, 200, 0.55);
  --neu-dark-strong: rgba(150, 165, 185, 0.75);
  --neu-primary: #0284c7;
  --neu-primary-hover: #0ea5e9;

  --neu-flat: 8px 8px 20px var(--neu-dark), -8px -8px 20px var(--neu-light);
  --neu-flat-lg: 14px 14px 34px var(--neu-dark-strong), -14px -14px 34px var(--neu-light);
  --neu-flat-sm: 5px 5px 12px var(--neu-dark), -5px -5px 12px var(--neu-light);
  --neu-flat-xs: 3px 3px 8px var(--neu-dark), -3px -3px 8px var(--neu-light);
  --neu-pressed: inset 3px 3px 7px var(--neu-dark), inset -3px -3px 7px var(--neu-light);
  --neu-pressed-sm: inset 2px 2px 5px var(--neu-dark), inset -2px -2px 5px var(--neu-light);
  --neu-rim: 1px solid rgba(203, 213, 225, 0.85);

  --portal-text-main: #0f172a;
  --portal-text-sub: #475569;
  --portal-text-muted: #64748b;
  --portal-radius: 28px;
  --portal-font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

html[data-theme="dark"], html.dark {
  --neu-base: #12161f;
  --neu-card-bg: #181b20;
  --neu-light: transparent;
  --neu-dark: rgba(0, 0, 0, 0.75);
  --neu-dark-strong: rgba(0, 0, 0, 0.9);
  --neu-primary: #38bdf8;
  --neu-primary-hover: #0ea5e9;

  --neu-flat: 8px 8px 24px rgba(0, 0, 0, 0.72);
  --neu-flat-lg: 14px 14px 36px rgba(0, 0, 0, 0.82);
  --neu-flat-sm: 4px 4px 12px rgba(0, 0, 0, 0.65);
  --neu-flat-xs: 3px 3px 8px rgba(0, 0, 0, 0.6);
  --neu-pressed: inset 3px 3px 8px rgba(0, 0, 0, 0.8);
  --neu-pressed-sm: inset 2px 2px 5px rgba(0, 0, 0, 0.75);
  --neu-rim: 1px solid rgba(255, 255, 255, 0.08);

  --portal-text-main: #f1f5f9;
  --portal-text-sub: #cbd5e1;
  --portal-text-muted: #94a3b8;
  color-scheme: dark !important;
}

html[data-theme="dark"] .portal-page,
html.dark .portal-page {
  background-color: var(--neu-base);
  color: var(--portal-text-main);
  color-scheme: dark !important;
}

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

/* ── 1. Page Background ────────────────────────────────────────── */

.portal-page {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--portal-font);
  color: var(--portal-text-main);
  background-color: var(--neu-base);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 24px;
  position: relative;
  overflow-x: hidden;
  color-scheme: light !important;
}

.portal-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(14, 165, 233, 0.08), transparent 60%);
  z-index: 0;
  pointer-events: none;
}

.portal-page::after {
  display: none;
}

/* ── 2. Top Back Pill ──────────────────────────────────────────── */

.portal-landing-back {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px 10px 14px;
  border-radius: 999px;
  border: var(--neu-rim);
  background: var(--neu-base);
  color: #0f172a;
  box-shadow: var(--neu-flat-xs);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-landing-back svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--neu-primary);
}

.portal-landing-back:hover {
  color: var(--neu-primary);
  box-shadow: var(--neu-flat-sm);
  transform: translateY(-1.5px);
}

.portal-landing-back:active {
  box-shadow: var(--neu-pressed-sm);
  transform: translateY(1px);
}

.portal-theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px 10px 14px;
  border-radius: 999px;
  border: var(--neu-rim);
  background: var(--neu-base);
  color: var(--portal-text-main);
  box-shadow: var(--neu-flat-xs);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  line-height: 1;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.portal-theme-toggle:hover {
  color: var(--neu-primary);
  box-shadow: var(--neu-flat-sm);
  transform: translateY(-1.5px);
}

.portal-theme-toggle:active {
  box-shadow: var(--neu-pressed-sm);
  transform: translateY(1px);
}

.portal-theme-icon-sun,
.portal-theme-icon-moon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  flex-shrink: 0;
}

html:not([data-theme="dark"]) .portal-theme-icon-sun { display: none; }
html:not([data-theme="dark"]) .portal-theme-icon-moon { display: block; color: var(--neu-primary); }
html[data-theme="dark"] .portal-theme-icon-sun { display: block; color: #f59e0b; }
html[data-theme="dark"] .portal-theme-icon-moon { display: none; }

@media (max-width: 640px) {
  .portal-theme-toggle {
    top: 12px;
    right: 12px;
    padding: 8px 14px 8px 10px;
    font-size: 0.8125rem;
  }
}

/* ── 3. Main Extruded Slab (Portal Card) ───────────────────────── */

.portal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 920px;
  margin-inline: auto;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  background: var(--neu-card-bg);
  border-radius: var(--portal-radius);
  border: var(--neu-rim);
  box-shadow: var(--neu-flat-lg);
  overflow: hidden;
  animation: portal-scale-in 0.34s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

@keyframes portal-scale-in {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.portal-divider {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(166, 180, 200, 0.5), rgba(255, 255, 255, 0.8));
  box-shadow: 1px 0 0 #ffffff;
  margin: 24px 0;
}

.portal-panel {
  padding: 40px 36px;
  min-height: 100%;
}

/* ── 4. Brand Panel (Left) ─────────────────────────────────────── */

.portal-panel--brand {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  background: var(--neu-base);
}

.portal-brand-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.portal-brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.portal-brand-icon {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(14, 165, 233, 0.4));
}

.portal-brand-text-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
}

.portal-brand-title-main {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.portal-brand-title-main .brand-peer {
  color: #0f172a;
  font-weight: 800;
}

.portal-brand-title-main .brand-link {
  color: #0284c7;
  font-weight: 800;
}

.portal-brand-subtitle-main {
  font-size: 0.82rem;
  font-weight: 600;
  color: #0284c7;
  letter-spacing: 0.01em;
  margin-top: 2px;
  line-height: 1.15;
}

.portal-brand-title {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #0f172a;
}

.portal-brand-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--portal-text-sub);
  max-width: 28ch;
}

.portal-brand-points {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.875rem;
  color: #334155;
}

.portal-brand-points li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.portal-brand-points li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  box-shadow: 1px 1px 3px rgba(14, 165, 233, 0.4);
  flex-shrink: 0;
}

/* ── Portal Feature List (Enhanced Info Pods) ─────────────────────── */
.portal-feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 10px 0 0;
  width: 100%;
}

.portal-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 6px 8px;
  border-radius: 12px;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.22s ease;
}

.portal-feature-item:hover {
  transform: translateX(4px);
  background: rgba(14, 165, 233, 0.05);
}

.portal-feature-icon-pod {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 11px;
  background: var(--neu-card-bg);
  border: var(--neu-rim);
  box-shadow: var(--neu-pressed-sm);
  color: var(--neu-primary);
  flex-shrink: 0;
  transition: all 0.22s ease;
}

.portal-feature-item:hover .portal-feature-icon-pod {
  color: var(--neu-primary-hover);
  box-shadow: inset 1px 1px 2px var(--neu-dark), inset -1px -1px 2px var(--neu-light), 0 0 10px rgba(14, 165, 233, 0.25);
  border-color: rgba(56, 189, 248, 0.5);
}

.portal-feature-svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.portal-feature-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.portal-feature-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--portal-text-main);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.portal-feature-desc {
  font-size: 0.78rem;
  font-weight: 450;
  color: var(--portal-text-sub);
  line-height: 1.4;
}

html[data-theme="dark"] .portal-feature-item:hover,
html.dark .portal-feature-item:hover {
  background: rgba(56, 189, 248, 0.08);
}

html[data-theme="dark"] .portal-feature-icon-pod,
html.dark .portal-feature-icon-pod {
  background: #141820;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.75), inset -1px -1px 3px rgba(255, 255, 255, 0.03);
  color: #38bdf8;
}

html[data-theme="dark"] .portal-feature-item:hover .portal-feature-icon-pod,
html.dark .portal-feature-item:hover .portal-feature-icon-pod {
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.8), 0 0 12px rgba(56, 189, 248, 0.3);
}

.portal-brand-footer {
  margin: 0;
  font-size: 0.78rem;
  color: var(--portal-text-muted);
  line-height: 1.5;
}

.portal-brand-footer-unit {
  margin: 0 0 6px;
  font-weight: 600;
  color: #0f172a;
}

.portal-brand-footer-links {
  margin: 0;
}

.portal-brand-footer-links a {
  color: var(--neu-primary);
  text-decoration: none;
  font-weight: 600;
}

.portal-brand-footer-links a:hover {
  text-decoration: underline;
}

.portal-page-footer {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 920px;
  margin: 0;
  padding: 0 12px 8px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--portal-text-muted);
  line-height: 1.6;
  flex-shrink: 0;
}

.portal-page-footer a {
  color: var(--neu-primary);
  text-decoration: none;
  font-weight: 600;
}

.portal-page-footer a:hover {
  text-decoration: underline;
}

/* ── 5. Actions Panel (Right) ──────────────────────────────────── */

.portal-panel--actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--neu-base);
}

.portal-step {
  display: none;
  flex-direction: column;
  animation: portal-fade-in 0.28s ease backwards;
}

.portal-step--visible,
.portal-step:not([hidden]) {
  display: flex;
}

.portal-step[hidden] {
  display: none !important;
}

@keyframes portal-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.portal-kicker {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neu-primary);
}

.portal-step-title {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.portal-step-sub {
  margin: 0 0 24px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--portal-text-sub);
}

.portal-selected-role {
  color: var(--neu-primary);
  font-weight: 600;
}

.portal-role-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

/* ── 6. Extruded Role Selection Cards ──────────────────────────── */

.portal-role-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  border-radius: 18px;
  border: var(--neu-rim);
  background: var(--neu-card-bg);
  color: #0f172a;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--neu-flat-xs);
  transition:
    box-shadow 0.22s ease,
    transform 0.22s ease,
    border-color 0.22s ease;
}

.portal-role-card:hover {
  border-color: rgba(14, 165, 233, 0.5);
  transform: translateY(-2px);
  box-shadow: var(--neu-flat-sm);
}

.portal-role-card:focus-visible {
  outline: 2px solid var(--neu-primary);
  outline-offset: 2px;
}

.portal-role-card:active {
  box-shadow: var(--neu-pressed-sm);
  transform: translateY(1px);
}

/* Sunken Molded Icon Wells inside Role Cards */
.portal-role-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--neu-base);
  box-shadow: var(--neu-pressed-sm);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
}

.portal-role-icon svg {
  width: 22px;
  height: 22px;
}

.portal-role-card--staff .portal-role-icon {
  color: #d97706;
}

.portal-role-card--mentor .portal-role-icon {
  color: #0284c7;
}

.portal-role-card--mentee .portal-role-icon {
  color: #16a34a;
}

.portal-role-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.portal-role-name {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.portal-role-desc {
  font-size: 0.82rem;
  color: var(--portal-text-sub);
}

.portal-footnote {
  margin: 20px 0 0;
  font-size: 0.85rem;
  text-align: center;
  color: var(--portal-text-muted);
}

.portal-footnote a {
  color: var(--neu-primary);
  text-decoration: none;
  font-weight: 600;
}

.portal-footnote a:hover {
  text-decoration: underline;
}

/* ── 7. Step 2 & Actions Buttons ───────────────────────────────── */

.portal-back-btn {
  align-self: flex-start;
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: var(--neu-rim);
  border-radius: 999px;
  background: var(--neu-base);
  color: #0f172a;
  box-shadow: var(--neu-flat-xs);
  cursor: pointer;
  transition: all 0.2s ease;
}

.portal-back-btn svg {
  width: 18px;
  height: 18px;
  color: var(--neu-primary);
}

.portal-back-btn:hover {
  box-shadow: var(--neu-flat-sm);
  transform: translateY(-1.5px);
}

.portal-back-btn:active {
  box-shadow: var(--neu-pressed-sm);
  transform: translateY(1px);
}

.portal-auth-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.portal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Tactile Convex Primary Button */
.portal-btn--primary {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  background: linear-gradient(145deg, #0ea5e9, #0284c7);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    4px 4px 14px rgba(14, 165, 233, 0.4),
    3px 3px 8px var(--neu-dark),
    -3px -3px 8px var(--neu-light);
}

.portal-btn--primary:hover {
  background: linear-gradient(145deg, #38bdf8, #0284c7);
  box-shadow:
    6px 6px 18px rgba(14, 165, 233, 0.5),
    -4px -4px 10px var(--neu-light);
  transform: translateY(-1.5px);
  color: #ffffff;
}

.portal-btn--primary:active {
  box-shadow:
    inset 2px 2px 6px rgba(2, 132, 199, 0.75),
    inset -2px -2px 6px rgba(255, 255, 255, 0.35);
  transform: translateY(1px);
}

/* Extruded Secondary Button */
.portal-btn--secondary {
  border: var(--neu-rim);
  color: #0f172a;
  background: var(--neu-base);
  box-shadow: var(--neu-flat-xs);
}

.portal-btn--secondary:hover {
  color: var(--neu-primary);
  box-shadow: var(--neu-flat-sm);
  transform: translateY(-1.5px);
}

.portal-btn--secondary:active {
  box-shadow: var(--neu-pressed-sm);
  transform: translateY(1px);
}

.portal-btn[hidden] {
  display: none !important;
}

/* ── 8. Mobile Responsiveness ──────────────────────────────────── */

@media (max-width: 768px) {
  .portal-page {
    padding: 16px;
    align-items: center;
    justify-content: center;
    padding-top: 56px;
  }

  .portal-landing-back {
    top: 12px;
    left: 12px;
    padding: 8px 14px 8px 10px;
    font-size: 0.8125rem;
  }

  .portal-card {
    grid-template-columns: 1fr;
    max-width: 440px;
  }

  .portal-divider {
    display: none;
  }

  .portal-panel {
    padding: 28px 24px;
  }

  .portal-panel--brand {
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(166, 180, 200, 0.4);
  }

  .portal-brand-title {
    font-size: 1.35rem;
  }

  .portal-brand-points {
    display: none;
  }

  .portal-brand-footer {
    display: none;
  }
}

/* ── Dark Mode Comprehensive Neumorphism & Text Visibility ─── */
html[data-theme="dark"] .portal-page,
html.dark .portal-page {
  background-color: #12161f !important;
  color: #f1f5f9 !important;
}

/* Top Navigation Pills */
html[data-theme="dark"] .portal-landing-back,
html.dark .portal-landing-back {
  background: #181b20 !important;
  color: #f1f5f9 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.65) !important;
}

html[data-theme="dark"] .portal-landing-back:hover,
html.dark .portal-landing-back:hover {
  color: #38bdf8 !important;
  border-color: rgba(56, 189, 248, 0.4) !important;
  box-shadow: 5px 5px 14px rgba(0, 0, 0, 0.75) !important;
}

html[data-theme="dark"] .portal-landing-back:active,
html.dark .portal-landing-back:active {
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.75) !important;
}

html[data-theme="dark"] .portal-theme-toggle,
html.dark .portal-theme-toggle {
  background: #181b20 !important;
  color: #f1f5f9 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.65) !important;
}

html[data-theme="dark"] .portal-theme-toggle:hover,
html.dark .portal-theme-toggle:hover {
  color: #38bdf8 !important;
  border-color: rgba(56, 189, 248, 0.4) !important;
  box-shadow: 5px 5px 14px rgba(0, 0, 0, 0.75) !important;
}

html[data-theme="dark"] .portal-theme-toggle:active,
html.dark .portal-theme-toggle:active {
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.75) !important;
}

/* Main Portal Card Slab */
html[data-theme="dark"] .portal-card,
html.dark .portal-card {
  background: #181b20 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 12px 12px 34px rgba(0, 0, 0, 0.8) !important;
}

html[data-theme="dark"] .portal-panel--brand,
html.dark .portal-panel--brand,
html[data-theme="dark"] .portal-panel--actions,
html.dark .portal-panel--actions {
  background: #181b20 !important;
}

html[data-theme="dark"] .portal-divider,
html.dark .portal-divider {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.08) 20%, rgba(255, 255, 255, 0.08) 80%, transparent) !important;
  box-shadow: none !important;
}

/* Brand Section Text Visibility */
html[data-theme="dark"] .portal-brand-title-main .brand-peer,
html.dark .portal-brand-title-main .brand-peer {
  color: #f1f5f9 !important;
}

html[data-theme="dark"] .portal-brand-title-main .brand-link,
html.dark .portal-brand-title-main .brand-link {
  color: #38bdf8 !important;
}

html[data-theme="dark"] .portal-brand-subtitle-main,
html.dark .portal-brand-subtitle-main {
  color: #38bdf8 !important;
}

html[data-theme="dark"] .portal-brand-title,
html.dark .portal-brand-title {
  color: #f1f5f9 !important;
  text-shadow: none !important;
}

html[data-theme="dark"] .portal-brand-text,
html.dark .portal-brand-text {
  color: #cbd5e1 !important;
}

/* Bullet Points - High Contrast */
html[data-theme="dark"] .portal-brand-points,
html.dark .portal-brand-points {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .portal-brand-points li,
html.dark .portal-brand-points li {
  color: #cbd5e1 !important;
  font-weight: 500 !important;
}

html[data-theme="dark"] .portal-brand-points li::before,
html.dark .portal-brand-points li::before {
  background: linear-gradient(135deg, #38bdf8, #0284c7) !important;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.45) !important;
}

html[data-theme="dark"] .portal-brand-footer-unit,
html.dark .portal-brand-footer-unit {
  color: #f1f5f9 !important;
}

html[data-theme="dark"] .portal-brand-footer,
html.dark .portal-brand-footer {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .portal-brand-footer-links a,
html.dark .portal-brand-footer-links a {
  color: #38bdf8 !important;
}

/* Actions Section Text Visibility */
html[data-theme="dark"] .portal-kicker,
html.dark .portal-kicker {
  color: #38bdf8 !important;
}

html[data-theme="dark"] .portal-step-title,
html.dark .portal-step-title {
  color: #f1f5f9 !important;
}

html[data-theme="dark"] .portal-step-sub,
html.dark .portal-step-sub {
  color: #cbd5e1 !important;
}

/* Neumorphic Extruded Role Cards */
html[data-theme="dark"] .portal-role-card,
html.dark .portal-role-card {
  background: #151922 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.65) !important;
}

html[data-theme="dark"] .portal-role-card:hover,
html.dark .portal-role-card:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(56, 189, 248, 0.45) !important;
  box-shadow: 6px 6px 18px rgba(0, 0, 0, 0.8), 0 0 14px rgba(56, 189, 248, 0.16) !important;
}

html[data-theme="dark"] .portal-role-card:active,
html.dark .portal-role-card:active {
  transform: translateY(1px) !important;
  box-shadow: inset 2px 2px 6px rgba(0, 0, 0, 0.8) !important;
}

html[data-theme="dark"] .portal-role-name,
html.dark .portal-role-name {
  color: #f1f5f9 !important;
}

html[data-theme="dark"] .portal-role-desc,
html.dark .portal-role-desc {
  color: #94a3b8 !important;
}

/* Sunken Recessed Role Icon Wells */
html[data-theme="dark"] .portal-role-icon,
html.dark .portal-role-icon {
  background: #10131a !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.75) !important;
}

html[data-theme="dark"] .portal-role-card--staff .portal-role-icon,
html.dark .portal-role-card--staff .portal-role-icon {
  color: #fbbf24 !important;
}

html[data-theme="dark"] .portal-role-card--mentor .portal-role-icon,
html.dark .portal-role-card--mentor .portal-role-icon {
  color: #38bdf8 !important;
}

html[data-theme="dark"] .portal-role-card--mentee .portal-role-icon,
html.dark .portal-role-card--mentee .portal-role-icon {
  color: #4ade80 !important;
}

/* Footnotes & Bottom Page Footer */
html[data-theme="dark"] .portal-footnote,
html.dark .portal-footnote {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .portal-footnote a,
html.dark .portal-footnote a {
  color: #38bdf8 !important;
}

html[data-theme="dark"] .portal-page-footer,
html.dark .portal-page-footer {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .portal-page-footer strong,
html.dark .portal-page-footer strong {
  color: #f1f5f9 !important;
}

html[data-theme="dark"] .portal-page-footer a,
html.dark .portal-page-footer a {
  color: #38bdf8 !important;
}

/* Secondary & Back Buttons in Step 2 */
html[data-theme="dark"] .portal-back-btn,
html.dark .portal-back-btn,
html[data-theme="dark"] .portal-btn--secondary,
html.dark .portal-btn--secondary {
  background: #181b20 !important;
  color: #f1f5f9 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.65) !important;
}

html[data-theme="dark"] .portal-btn--primary,
html.dark .portal-btn--primary {
  background: #1d4ed8 !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.65) !important;
}

html[data-theme="dark"] .portal-btn--primary:hover,
html.dark .portal-btn--primary:hover {
  background: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.8) !important;
}
