/* ════════════════════════════════════════════════════════════
   Matikus Tech – Glassmorphism Dashboard
   ════════════════════════════════════════════════════════════ */

:root {
  --bg:            #1c1c1c;
  --glass-bg:      rgba(255, 255, 255, 0.05);
  --glass-border:  rgba(255, 255, 255, 0.10);
  --glass-blur:    blur(12px);
  --shadow:        0 8px 32px rgba(0, 0, 0, 0.40);
  --accent:        #4ade80;
  --accent-dim:    rgba(74, 222, 128, 0.11);
  --accent-ring:   rgba(74, 222, 128, 0.28);
  --text:          rgba(255, 255, 255, 0.92);
  --text-muted:    rgba(255, 255, 255, 0.45);
  --radius:        16px;

  /* typography */
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body:    'Outfit', system-ui, sans-serif;

  /* layout geometry */
  --sb-left:  20px;   /* sidebar distance from left edge       */
  --sb-w:     242px;  /* sidebar width                         */
  --sb-gap:   20px;   /* gap between sidebar and main content  */
  --pad:      20px;   /* uniform page padding (top/right/btm)  */
}

/* ── Reset ───────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  font-family: var(--font-body);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

ul { list-style: none; }
a  { color: inherit; text-decoration: none; }

/* ── Grain overlay (subtle noise texture over background) ── */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  opacity: 0.022;
}

/* ── Canvas (fixed, always behind everything) ────────────── */

#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
}

/* ── Glass utility ───────────────────────────────────────── */

.glass-panel {
  background:           var(--glass-bg);
  backdrop-filter:      var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border:               1px solid var(--glass-border);
  border-radius:        var(--radius);
  box-shadow:           var(--shadow);
}

/* ── Top-level wrapper ───────────────────────────────────── */

.layout {
  position: relative;
}

/* Page-load: sidebar slides in from left */
.sidebar {
  animation: sidebarReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}

.main-content {
  animation: mainReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

@keyframes sidebarReveal {
  from { opacity: 0; transform: translateX(-18px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes mainReveal {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}


/* ════════════════════════════════════════════════════════════
   SIDEBAR
   Fixed, floating – top/bottom margins give it a framed look.
   ════════════════════════════════════════════════════════════ */

.sidebar {
  position: fixed;
  top:    var(--pad);
  bottom: var(--pad);
  left:   var(--sb-left);
  width:  var(--sb-w);
  z-index: 10;

  display: flex;
  flex-direction: column;
  padding: 24px 16px 20px;
  overflow: hidden;
}

/* Brand header ─────────────────────────────────────────────  */

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
  flex-shrink: 0;
}

.sidebar-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px var(--accent-ring);
  transition: box-shadow 0.25s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.sidebar-logo:hover {
  box-shadow: 0 0 0 3px var(--accent-ring), 0 0 14px rgba(74, 222, 128, 0.25);
  transform: scale(1.06);
}

.sidebar-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-main {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.brand-sub {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}

/* Navigation ───────────────────────────────────────────────  */

.sidebar-nav {
  flex: 1;
  overflow: hidden;
}

.nav-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 10px;
  padding-left: 6px;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  position: relative;
  padding: 10px 12px 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-muted);
  user-select: none;
  outline: none;
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

/* accent left-bar indicator */
.nav-item::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 3px;
  height: 52%;
  background: var(--accent);
  border-radius: 2px;
  transition: transform 0.22s ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding-left: 22px;
}

.nav-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav-item.active {
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 500;
}

.nav-item.active::before {
  transform: translateY(-50%) scaleY(1);
}

/* User area ────────────────────────────────────────────────  */

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--glass-border);
  flex-shrink: 0;
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid var(--accent-ring);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  flex-shrink: 0;
}

.user-name {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* ════════════════════════════════════════════════════════════
   MAIN CONTENT
   ════════════════════════════════════════════════════════════ */

.main-content {
  margin-left: calc(var(--sb-left) + var(--sb-w) + var(--sb-gap));
  padding: var(--pad) var(--pad) var(--pad) 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Views ───────────────────────────────────────────────── */

.view {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;

  /* Fade-in transition on reveal */
  opacity: 0;
  transform: translateY(10px);
  animation: viewReveal 0.28s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.view.hidden {
  display: none;
}

@keyframes viewReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.view-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}


/* ════════════════════════════════════════════════════════════
   WELCOME VIEW
   ════════════════════════════════════════════════════════════ */

.welcome-panel {
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 640px;
}

.welcome-heading {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.1;
}

.welcome-sub {
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

.welcome-body {
  font-size: 0.92rem;
  line-height: 1.82;
  color: var(--text-muted);
}

.welcome-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-ring);
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  width: fit-content;
  margin-top: 4px;
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.22s ease;
}

.welcome-cta:hover {
  background: rgba(74, 222, 128, 0.20);
  border-color: rgba(74, 222, 128, 0.50);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 222, 128, 0.18);
}

.welcome-cta:active {
  transform: translateY(0);
  box-shadow: none;
}


/* ════════════════════════════════════════════════════════════
   PROFILE VIEW – stacked panels (top: info, bottom: tags)
   ════════════════════════════════════════════════════════════ */

.profile-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  width: 50%;
}

/* Top: photo + LinkedIn summary ─────────────────────────── */

.profile-info-panel {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}

/* Bottom: floating tags only ────────────────────────────── */

.profile-tags-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.profile-tags-wrap {
  flex: 1;
  position: relative;
  overflow: hidden;
}

#profile-canvas {
  display: block;
  position: absolute;
  inset: 0;
}

.profile-photo-wrap {
  display: flex;
  justify-content: center;
  padding: 4px 0;
}

.profile-photo {
  width: 85%;
  max-width: 220px;
  height: auto;
  display: block;
  border-radius: 12px;
}

.profile-summary-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.profile-summary-title {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 14px;
}

.profile-summary-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}

.profile-summary-list li {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
  padding-left: 14px;
  position: relative;
}

.profile-summary-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.7rem;
  top: 1px;
}

.profile-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.profile-links a {
  font-size: 0.82rem;
  color: var(--accent);
  transition: opacity 0.2s ease;
}

.profile-links a:hover {
  opacity: 0.7;
}


/* ════════════════════════════════════════════════════════════
   PROJECTS VIEW
   ════════════════════════════════════════════════════════════ */

.projects-layout {
  display: flex;
  gap: 16px;
  flex: 1;
  align-items: stretch;
}

/* Left: project list ─────────────────────────────────────── */

.projects-list-panel {
  width: 192px;
  flex-shrink: 0;
  padding: 20px 14px;
}

.panel-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 10px;
  padding-left: 4px;
}

.project-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.project-nav-item {
  padding: 9px 12px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-muted);
  user-select: none;
  outline: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.project-nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.project-nav-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.project-nav-item.active {
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 500;
}

/* Right: project detail ──────────────────────────────────── */

.projects-detail-panel {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.detail-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.detail-placeholder.gone {
  opacity: 0;
}

/* Detail content – absolutely fills panel, individually scrollable */

.detail-content {
  position: absolute;
  inset: 0;
  padding: 28px;
  overflow-y: auto;
  opacity: 0;
  transform: translateX(22px);
  transition: opacity 0.36s ease, transform 0.36s ease;
  pointer-events: none;
}

.detail-content::-webkit-scrollbar        { width: 4px; }
.detail-content::-webkit-scrollbar-track  { background: transparent; }
.detail-content::-webkit-scrollbar-thumb  { background: rgba(255,255,255,0.12); border-radius: 2px; }

.detail-content.visible {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.detail-title {
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 7px;
}

.detail-tag {
  font-size: 0.76rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.detail-body {
  font-size: 0.9rem;
  line-height: 1.78;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* Logo (MatikusGames) ───────────────────────────────────── */

.detail-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.detail-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px var(--accent-ring);
}

/* Current project card ──────────────────────────────────── */

.detail-project-card {
  padding: 14px 16px;
  background: rgba(74, 222, 128, 0.05);
  border: 1px solid rgba(74, 222, 128, 0.14);
  border-radius: 10px;
  margin: 4px 0 10px;
}

.detail-project-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.detail-project-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.detail-sub-tag {
  font-size: 0.76rem;
  color: var(--accent);
  font-weight: 500;
  margin-top: 8px;
}

/* CTA button ────────────────────────────────────────────── */

.detail-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-ring);
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 8px;
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.22s ease;
}

.detail-cta:hover {
  background: rgba(74, 222, 128, 0.20);
  border-color: rgba(74, 222, 128, 0.50);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 222, 128, 0.18);
}

.detail-cta:active {
  transform: translateY(0);
  box-shadow: none;
}


/* ════════════════════════════════════════════════════════════
   RECOMMENDATIONS VIEW
   ════════════════════════════════════════════════════════════ */

.rec-panel {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.rec-section {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.rec-heading {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--glass-border);
}

.rec-section > p {
  font-size: 0.88rem;
  line-height: 1.72;
  color: var(--text-muted);
}

.rec-cta {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  transition: opacity 0.2s ease;
}

.rec-cta:hover {
  opacity: 0.7;
}

.rec-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.rec-list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.88rem;
}

.rec-list li::before {
  content: '→';
  color: var(--accent);
  font-size: 0.78rem;
  flex-shrink: 0;
}

.rec-list a {
  color: var(--text);
  transition: color 0.2s ease;
}

.rec-list a:hover {
  color: var(--accent);
}

.rec-note {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.28);
  font-style: italic;
  margin-top: 3px;
}

.rec-section a {
  color: var(--accent);
}

.rec-section a:hover {
  text-decoration: underline;
}


/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */

.site-footer {
  margin-top: 28px;
  padding: 16px 0 4px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-sep {
  margin: 0 8px;
  opacity: 0.32;
}

.site-footer a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--accent);
}


.address {
  display: inline-block;
  transition: filter 0.4s ease;
  cursor: pointer;
}
.address-blurred {
  filter: blur(4px);
  user-select: none;
}

/* ── Screen-reader only ───────────────────────────────── */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Key takeaways list (Welcome panel) ───────────────── */

.key-takeaways {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.key-takeaways li {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  padding-left: 16px;
  position: relative;
}

.key-takeaways li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.72rem;
  top: 2px;
}

/* ── Detail meta definition list (Project panels) ──────── */

.detail-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  margin: 10px 0;
  font-size: 0.82rem;
}

.detail-meta dt {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.70rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  align-self: center;
}

.detail-meta dd {
  color: var(--text);
}


/* ── Mobile-only elements (hidden on desktop) ────────────── */

.mobile-topbar { display: none; }
.mobile-overlay { display: none; }
.hamburger { display: none; }


/* ════════════════════════════════════════════════════════════
   RESPONSIVE – Tablet (~920px) and Mobile (≤768px)
   ════════════════════════════════════════════════════════════ */

/* Tablet: narrower sidebar, two-column layouts stack */
@media (max-width: 920px) {
  :root {
    --sb-w:   210px;
    --sb-gap: 16px;
    --sb-left: 14px;
    --pad: 14px;
  }

  .profile-layout {
    width: 100%;
  }

  .projects-layout {
    flex-direction: column;
  }

  .projects-list-panel {
    width: 100%;
    padding: 14px 14px 10px;
  }

  .project-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .project-nav-item {
    padding: 7px 14px;
  }

  .projects-detail-panel {
    min-height: 320px;
  }

  .welcome-heading {
    font-size: 2.1rem;
  }
}

/* Mobile: hamburger drawer (≤768px) */
@media (max-width: 768px) {

  /* ── Mobile top bar ───────────────────────────────────── */

  .mobile-topbar {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    z-index: 200;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background: rgba(28, 28, 28, 0.88);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
  }

  .mobile-topbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .mobile-topbar-logo {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 2px var(--accent-ring);
    flex-shrink: 0;
  }

  .mobile-topbar-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
  }

  .mobile-brand-main {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
  }

  .mobile-brand-sub {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent);
  }

  /* ── Hamburger button ─────────────────────────────────── */

  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: background 0.2s ease;
  }

  .hamburger:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  .hamburger:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }

  .ham-line {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition:
      transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
      opacity   0.2s  ease;
    transform-origin: center;
  }

  /* ☰ → ✕ animation */
  .hamburger.open .ham-line:nth-child(1) { transform: translateY(7px)  rotate(45deg);  }
  .hamburger.open .ham-line:nth-child(2) { opacity: 0; transform: scaleX(0);           }
  .hamburger.open .ham-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* ── Backdrop overlay ─────────────────────────────────── */

  .mobile-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 140;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .mobile-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  /* ── Sidebar: slide-in drawer ─────────────────────────── */

  .sidebar {
    position: fixed;
    top: 56px;
    bottom: 0;
    left: 0;
    width: 280px;
    height: auto;
    border-radius: 0 var(--radius) var(--radius) 0;
    flex-direction: column;
    flex-wrap: nowrap;
    padding: 24px 16px 20px;
    gap: 0;
    z-index: 160;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
    animation: none;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-header { margin-bottom: 28px; }
  .sidebar-nav    { overflow: visible; }
  .nav-list       { flex-direction: column; flex-wrap: nowrap; }
  .sidebar-user   { border-top: 1px solid var(--glass-border); padding-top: 16px; }

  /* ── Main content ─────────────────────────────────────── */

  .main-content {
    margin-left: 0;
    padding: 72px 16px 16px;
    animation: none;
  }

  /* Prevent background scroll while menu is open */
  body.menu-open {
    overflow: hidden;
  }

  /* ── Typography ───────────────────────────────────────── */

  .welcome-heading { font-size: 1.8rem; }
  .welcome-panel   { padding: 24px; }
}
