/* Open Axis — Client Portal Stylesheet
   Standalone: copies design tokens from the main site, no imports.
   Used by: portal/login.html, portal/dashboard.html
   Note: .header__portal-btn rules for index.html live in the main style.css
*/

/* ═══════════════════════════════════════
   DESIGN TOKENS (mirrors style.css :root)
═══════════════════════════════════════ */
:root {
  --bg-deep: #0a0c10;
  --bg-surface: #0d1117;
  --bg-elevated: #13171f;
  --bg-panel: rgba(22, 27, 34, 0.6);
  --accent: #ef4444;
  --accent-dim: rgba(239, 68, 68, 0.5);
  --accent-glow: rgba(239, 68, 68, 0.25);
  --accent-secondary: #b91c1c;
  --accent-secondary-dim: rgba(185, 28, 28, 0.4);
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --text-muted: #6e7681;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(239, 68, 68, 0.35);
  --border-panel: rgba(239, 68, 68, 0.12);
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --section-pad: clamp(3rem, 8vw, 5rem);
  --container: min(1120px, 92vw);
  --radius: 8px;
  --radius-lg: 12px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.25s;
}

/* ═══════════════════════════════════════
   RESET + BASE
═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 var(--space-md);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0; }

/* ═══════════════════════════════════════
   LAYOUT
═══════════════════════════════════════ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}
.page-wrap { position: relative; min-height: 100vh; display: flex; flex-direction: column; }

/* ═══════════════════════════════════════
   BACKGROUND EFFECTS
═══════════════════════════════════════ */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
  animation: grid-pulse 8s var(--ease-out) infinite;
}
@keyframes grid-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}
.bg-glow {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
}
.bg-glow--hero {
  width: 80vmin;
  height: 80vmin;
  top: -20vmin;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  animation: glow-breathe-hero 6s var(--ease-out) infinite;
}
.bg-glow--mid {
  width: 60vmin;
  height: 60vmin;
  top: 55%;
  left: 20%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(185, 28, 28, 0.15) 0%, transparent 70%);
  animation: glow-breathe 8s var(--ease-out) infinite 1s;
}
@keyframes glow-breathe {
  0%, 100% { opacity: 0.35; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.55; transform: translate(-50%, -50%) scale(1.05); }
}
@keyframes glow-breathe-hero {
  0%, 100% { opacity: 0.35; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.55; transform: translateX(-50%) scale(1.05); }
}
.bg-scan {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.15;
  pointer-events: none;
  z-index: 1;
  animation: scan-move 4s linear infinite;
}
@keyframes scan-move {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.bg-float {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bg-float__orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(239, 68, 68, 0.15), transparent 70%);
  filter: blur(40px);
  animation: float-orb 20s var(--ease-out) infinite;
}
.bg-float__orb--1 { width: 280px; height: 280px; top: 10%; left: 10%; animation-duration: 18s; }
.bg-float__orb--2 { width: 200px; height: 200px; top: 60%; right: 15%; animation-delay: -5s; animation-duration: 22s; }
.bg-float__orb--3 { width: 160px; height: 160px; bottom: 20%; left: 25%; animation-delay: -10s; animation-duration: 25s; }
@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
  25% { transform: translate(30px, -40px) scale(1.05); opacity: 0.8; }
  50% { transform: translate(-20px, 20px) scale(0.95); opacity: 0.5; }
  75% { transform: translate(20px, 30px) scale(1.02); opacity: 0.7; }
}

/* ═══════════════════════════════════════
   HEADER
═══════════════════════════════════════ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 12, 16, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  min-height: 64px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-primary);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
}
.logo:hover { color: var(--text-primary); text-decoration: none; }
.logo__icon {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  border-radius: 4px;
  box-shadow: 0 0 12px var(--accent-glow), 0 0 24px rgba(239, 68, 68, 0.15);
  transition: box-shadow var(--duration);
  flex-shrink: 0;
}
.logo:hover .logo__icon {
  box-shadow: 0 0 16px var(--accent-glow), 0 0 32px rgba(239, 68, 68, 0.2);
}
.logo__text { white-space: nowrap; }

/* ═══════════════════════════════════════
   BUTTONS
═══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.875rem 1.5rem;
  min-height: 2.75rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.35s var(--ease-out), border-color 0.35s var(--ease-out),
    color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), transform 0.35s var(--ease-out);
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: linear-gradient(180deg, #f87171 0%, #ef4444 50%, #dc2626 100%);
  color: #fff;
  border: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12),
    0 0 28px rgba(239, 68, 68, 0.25),
    0 0 56px rgba(239, 68, 68, 0.1);
}
.btn--primary:hover {
  color: #fff;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12),
    0 0 36px rgba(239, 68, 68, 0.4),
    0 0 72px rgba(239, 68, 68, 0.18);
  transform: translateY(-3px);
}
.btn--outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--border-panel);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.04);
}
.btn--outline:hover {
  border-color: var(--border-accent);
  background: rgba(239, 68, 68, 0.06);
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.12), 0 0 0 1px rgba(239, 68, 68, 0.15);
  text-decoration: none;
  color: var(--text-primary);
}
.btn--sm { padding: 0.5rem 1.125rem; min-height: 2.25rem; font-size: 0.875rem; }
.btn--full { width: 100%; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ═══════════════════════════════════════
   PANEL CARD
═══════════════════════════════════════ */
.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-panel);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: border-color var(--duration), box-shadow var(--duration), transform 0.3s var(--ease-out);
  position: relative;
}
.panel::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(239,68,68,0.08), transparent 40%, transparent 60%, rgba(185,28,28,0.06));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--duration);
}
.panel:hover {
  border-color: rgba(239, 68, 68, 0.25);
  box-shadow: 0 0 32px rgba(239, 68, 68, 0.08), inset 0 1px 0 rgba(255,255,255,0.03);
  transform: translateY(-2px);
}
.panel:hover::before { opacity: 1; }

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.footer {
  position: relative;
  z-index: 1;
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  margin-top: auto;
}
.footer__inner { display: flex; flex-direction: column; gap: var(--space-sm); align-items: center; }
.footer__tagline { font-size: 0.875rem; color: var(--text-muted); margin: 0; }

/* ═══════════════════════════════════════
   REVEAL ANIMATIONS
═══════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════════════
   LOGIN PAGE
══════════════════════════════════════════════════════════ */
.portal-main {
  flex: 1;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  padding: var(--section-pad) 0;
}

.login-box {
  max-width: 440px;
  margin: 0 auto;
  padding: var(--space-2xl);
  box-shadow: 0 0 60px rgba(239, 68, 68, 0.06), inset 0 1px 0 rgba(255,255,255,0.04);
}
.login-box__eyebrow {
  margin-bottom: var(--space-lg);
}
.login-box__tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-panel);
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.login-box__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}
.login-box__sub {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}
.login-box__hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: var(--space-lg);
}
.login-box__hint a { color: var(--text-secondary); }
.login-box__hint a:hover { color: var(--accent); }

/* Login form */
.login-form__row { margin-bottom: var(--space-lg); }
.login-form__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}
.login-form__input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  transition: border-color var(--duration), box-shadow var(--duration);
}
.login-form__input::placeholder { color: var(--text-muted); }
.login-form__input:focus {
  outline: none;
  border-color: var(--border-accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.login-form__error {
  font-size: 0.875rem;
  color: var(--accent);
  min-height: 1.2em;
  margin-bottom: var(--space-md);
  display: block;
}
.login-form__error:empty { display: none; }
.login-form__submit { margin-top: var(--space-sm); }

/* Shake animation on wrong password */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-8px); }
  30% { transform: translateX(7px); }
  45% { transform: translateX(-6px); }
  60% { transform: translateX(5px); }
  75% { transform: translateX(-3px); }
  90% { transform: translateX(2px); }
}
.login-box--shake { animation: shake 0.5s var(--ease-out); }

/* ══════════════════════════════════════════════════════════
   DASHBOARD — HEADER IDENTITY
══════════════════════════════════════════════════════════ */
.portal-identity {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex: 1;
  padding: 0 var(--space-md);
  overflow: hidden;
}
.portal-identity__company {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.portal-identity__sep {
  color: var(--text-muted);
  flex-shrink: 0;
}
.portal-identity__user {
  font-size: 0.875rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ══════════════════════════════════════════════════════════
   ADMIN SWITCHER BAR
══════════════════════════════════════════════════════════ */
.admin-switcher {
  position: relative;
  z-index: 99;
  background: rgba(239, 68, 68, 0.04);
  border-bottom: 1px solid var(--border-panel);
  padding: var(--space-sm) 0;
}
.admin-switcher__inner {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.admin-switcher__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}
.admin-switcher__select {
  flex: 1;
  max-width: 400px;
  padding: 0.45rem 0.75rem;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border-panel);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--duration);
  appearance: auto;
}
.admin-switcher__select:focus {
  outline: none;
  border-color: var(--border-accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.admin-switcher__select option {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

/* ══════════════════════════════════════════════════════════
   DASHBOARD — MAIN LAYOUT
══════════════════════════════════════════════════════════ */
.portal-dashboard {
  position: relative;
  z-index: 1;
  padding: var(--space-2xl) 0 var(--space-3xl);
  flex: 1;
}
.portal-dashboard > .container {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

/* ═══ STATUS BAR ═══ */
.dash-status {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-xl);
  padding: var(--space-xl) var(--space-2xl);
}
.dash-status__label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
}
.dash-status__project {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 var(--space-xs);
}
.dash-status__client {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}
.dash-status__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-md);
  flex-shrink: 0;
}
.dash-status__phase-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: block;
  margin-bottom: var(--space-xs);
}
.dash-status__phase {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* Status badge */
.status-badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid;
  letter-spacing: 0.02em;
}
.status-badge--active {
  color: var(--accent);
  border-color: var(--border-accent);
  background: rgba(239, 68, 68, 0.08);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.15);
}
.status-badge--done {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.3);
  background: rgba(74, 222, 128, 0.06);
}
.status-badge--hold {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.06);
}

/* ═══ STATS ROW ═══ */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-md);
}
.stat-card {
  padding: var(--space-lg) var(--space-md);
  text-align: center;
}
.stat-card__value {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
  line-height: 1;
  margin-bottom: var(--space-xs);
}
.stat-card__label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* ═══ SECTION WRAPPER ═══ */
.dash-section { display: flex; flex-direction: column; gap: var(--space-lg); }
.dash-section__head {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
}
.dash-section__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}
.dash-section__badge {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
}
.dash-section__hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-left: auto;
}

/* ═══ ROADMAP ═══ */
.roadmap-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.roadmap-step {
  display: flex;
  gap: var(--space-md);
  align-items: stretch;
}
.roadmap-step__indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 24px;
  flex-shrink: 0;
  padding-top: var(--space-lg);
}
.roadmap-step__dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border-subtle);
  background: transparent;
  flex-shrink: 0;
  transition: border-color var(--duration), background var(--duration), box-shadow var(--duration);
}
.roadmap-step__line {
  flex: 1;
  width: 2px;
  background: var(--border-subtle);
  margin-top: 6px;
  min-height: 16px;
}
.roadmap-step__content {
  flex: 1;
  margin-bottom: var(--space-md);
  padding: var(--space-md) var(--space-lg);
}
.roadmap-step__num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: var(--space-xs);
}
.roadmap-step__name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--space-xs);
}
.roadmap-step__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: var(--space-sm);
}
.roadmap-step__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}
.roadmap-step__date {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: 'Space Grotesk', sans-serif;
}
.roadmap-step__status-icon {
  font-size: 0.8125rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
}

/* Roadmap state modifiers */
.roadmap-step--done .roadmap-step__dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}
.roadmap-step--done .roadmap-step__num { color: var(--accent); }
.roadmap-step--done .roadmap-step__status-icon { color: var(--accent); }
.roadmap-step--done .roadmap-step__line { background: rgba(239, 68, 68, 0.2); }

.roadmap-step--active .roadmap-step__dot {
  background: transparent;
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.5);
  animation: pulse-dot 2s ease-in-out infinite;
}
.roadmap-step--active .roadmap-step__num { color: var(--accent); }
.roadmap-step--active .roadmap-step__content {
  border-color: var(--border-accent);
  box-shadow: 0 0 28px rgba(239, 68, 68, 0.1), inset 0 1px 0 rgba(239, 68, 68, 0.05);
}
.roadmap-step--active .roadmap-step__status-icon { color: var(--accent); }

.roadmap-step--upcoming .roadmap-step__dot {
  border-color: var(--border-subtle);
  background: transparent;
  box-shadow: none;
}
.roadmap-step--upcoming .roadmap-step__name { color: var(--text-secondary); }
.roadmap-step--upcoming .roadmap-step__status-icon { color: var(--text-muted); }

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 8px rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 0 20px rgba(239, 68, 68, 0.7), 0 0 36px rgba(239, 68, 68, 0.3); }
}

/* ═══ DEVLOG ═══ */
.devlog-feed {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.devlog-entry {
  border-left: 2px solid var(--border-panel);
  padding-left: calc(var(--space-lg) - 2px);
  transition: border-left-color var(--duration);
  /* Override default panel padding to account for left border offset */
  padding: var(--space-md) var(--space-lg) var(--space-md) calc(var(--space-lg) - 2px);
  border-left: 2px solid var(--border-panel);
}
.devlog-entry:hover { border-left-color: var(--accent-dim); }
.devlog-entry__head {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}
.devlog-entry__date {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}
.devlog-entry__tag {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border-panel);
  background: rgba(255, 255, 255, 0.02);
}
.devlog-entry__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--space-xs);
}
.devlog-entry__body {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ═══ EXPAND / COLLAPSE BUTTON ═══ */
.expand-btn {
  display: block;
  margin: var(--space-lg) auto 0;
  padding: 0.55rem 1.25rem;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-panel);
  border-radius: 9999px;
  cursor: pointer;
  transition: border-color var(--duration), color var(--duration), background var(--duration);
}
.expand-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-accent);
  background: rgba(239, 68, 68, 0.05);
}
.expand-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ═══ MODAL OVERLAY ═══ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease-out), visibility 0.3s;
}
.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.modal {
  position: relative;
  width: min(720px, 92vw);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border-panel);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 80px rgba(239, 68, 68, 0.1), 0 24px 48px rgba(0, 0, 0, 0.5);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.3s var(--ease-out);
}
.modal-overlay.is-open .modal {
  transform: translateY(0) scale(1);
}
.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.modal__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}
.modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 1.125rem;
  cursor: pointer;
  transition: border-color var(--duration), color var(--duration), background var(--duration);
  flex-shrink: 0;
}
.modal__close:hover {
  border-color: var(--border-accent);
  color: var(--text-primary);
  background: rgba(239, 68, 68, 0.06);
}
.modal__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-xl);
  /* Styled scrollbar for dark theme */
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.modal__body::-webkit-scrollbar { width: 6px; }
.modal__body::-webkit-scrollbar-track { background: transparent; }
.modal__body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}
.modal__body::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }

/* Roadmap and devlog inside modal reuse the same component styles */
.modal__body .roadmap-timeline { gap: 0; }
.modal__body .devlog-feed { gap: var(--space-md); }

/* Remove hover-lift on panels inside modal to avoid jumpiness while scrolling */
.modal__body .panel:hover { transform: none; }

@media (max-width: 600px) {
  .modal {
    width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }
  .modal__body { padding: var(--space-lg); }
}

/* ═══ NEXT STEPS ═══ */
.next-steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.next-step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
}
.next-step__icon {
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.15em;
  opacity: 0.8;
}
.next-step__title {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-primary);
  display: block;
  margin-bottom: var(--space-xs);
}
.next-step__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 900px) {
  .dash-status {
    flex-direction: column;
    gap: var(--space-lg);
    padding: var(--space-lg);
  }
  .dash-status__right { align-items: flex-start; }
  .portal-identity { display: none; }
  .dash-section__hint { display: none; }
}
@media (max-width: 600px) {
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .login-box { padding: var(--space-xl) var(--space-lg); }
  .roadmap-step__indicator { display: none; }
  .roadmap-step__content { margin-bottom: var(--space-sm); }
}
