/* ==========================================================================
   No Stress Web (nostressweb.site) - Swiss Minimalist Architecture
   Light Theme Edition + Dashboard Management Extension
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Crisp Light Color Palette */
  --bg-main: #fafafa;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f4f4f5;
  --bg-subtle: #f4f4f5;
  
  --border-muted: #e4e4e7;
  --border-bright: #d4d4d8;
  --border-focus: #09090b;
  
  --text-main: #09090b;
  --text-muted: #52525b;
  --text-subtle: #71717a;
  
  --accent-white: #09090b;
  --accent-green: #16a34a;
  --accent-green-bg: rgba(22, 163, 74, 0.08);
  --accent-blue: #0284c7;
  --accent-blue-bg: rgba(2, 132, 199, 0.08);
  --accent-amber: #d97706;
  --accent-amber-bg: rgba(217, 119, 6, 0.08);

  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Geometry */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
  width: 100%;
}

/* Crisp Hairline Grid Pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(circle at 50% 30%, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, black 40%, transparent 80%);
}

/* Container */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Monospace Badges */
.mono-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-subtle);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.mono-badge-active {
  color: var(--accent-green);
  background: var(--accent-green-bg);
  border: 1px solid rgba(22, 163, 74, 0.25);
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
}

.status-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse-status 2s infinite ease-in-out;
}

@keyframes pulse-status {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--text-main);
  letter-spacing: -0.03em;
  font-weight: 700;
  line-height: 1.15;
  word-break: break-word;
}

.text-muted {
  color: var(--text-muted);
}

/* Header & Nav */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  border-bottom: 1px solid var(--border-muted);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  padding: 1.1rem 0;
  transition: padding var(--transition-fast);
}

.navbar.scrolled {
  padding: 0.8rem 0;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  border: 1px solid var(--border-bright);
  border-radius: 4px;
  color: var(--text-muted);
  font-weight: 500;
  background: var(--bg-surface);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-right-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-btn {
  background: var(--text-main);
  color: #ffffff;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.nav-btn:hover {
  background: #27272a;
  transform: translateY(-1px);
}

.nav-btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-bright);
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.nav-btn-secondary:hover {
  background: var(--bg-surface-hover);
}

/* Mobile Hamburger Toggle Button */
.mobile-toggle {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-muted);
  color: var(--text-main);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

/* Mobile Dropdown Drawer */
.mobile-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-muted);
  padding: 1.5rem;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.mobile-drawer.open {
  display: flex;
}

.mobile-drawer a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-fast);
  text-align: center;
}

.btn-solid {
  background: var(--text-main);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.btn-solid:hover {
  background: #27272a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.btn-outline {
  background: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border-bright);
}

.btn-outline:hover {
  background: var(--bg-surface-hover);
  border-color: var(--text-main);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
}

/* Hero Section */
.hero {
  padding: 9.5rem 0 5rem 0;
  border-bottom: 1px solid var(--border-muted);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  margin: 1.25rem 0;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 520px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hero-specs-bar {
  display: flex;
  gap: 1.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-subtle);
  flex-wrap: wrap;
}

.hero-specs-bar span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-specs-bar strong {
  color: var(--text-main);
}

/* Spotlight Card System */
.spotlight-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: border-color var(--transition-fast), transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.spotlight-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(0, 0, 0, 0.035),
    transparent 40%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: 2;
}

.spotlight-card:hover::before {
  opacity: 1;
}

.spotlight-card:hover {
  border-color: var(--border-bright);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

/* Code & Audit Terminal Card */
.hero-card {
  background: #121215;
  border: 1px solid #27272a;
}

.hero-card .card-header {
  background: #18181b;
  border-bottom: 1px solid #27272a;
}

.hero-card .card-tab-btn {
  color: #71717a;
}

.hero-card .card-tab-btn.active, .hero-card .card-tab-btn:hover {
  color: #f4f4f5;
  background: #09090b;
  border-color: #27272a;
}

.hero-card .metric-box {
  background: #09090b;
  border: 1px solid #27272a;
}

.hero-card .metric-box:hover {
  border-color: rgba(34, 197, 94, 0.4);
}

.hero-card .code-preview {
  background: #09090b;
  border: 1px solid #27272a;
}

/* Card Header */
.card-header {
  background: var(--bg-subtle);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-muted);
  position: relative;
  z-index: 3;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d4d4d8;
}

.hero-card .window-dots span {
  background: #27272a;
}

.card-tabs {
  display: flex;
  gap: 0.4rem;
  list-style: none;
}

.card-tab-btn {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-subtle);
  background: transparent;
  border: 1px solid transparent;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.card-tab-btn.active, .card-tab-btn:hover {
  color: var(--text-main);
  background: var(--bg-surface);
  border-color: var(--border-muted);
}

.card-body {
  padding: 1.5rem;
  position: relative;
  z-index: 3;
}

.code-panel {
  display: none;
}

.code-panel.active {
  display: block;
}

.lighthouse-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.metric-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.5rem;
  text-align: center;
  transition: var(--transition-fast);
}

.metric-box:hover {
  border-color: var(--accent-green);
  transform: translateY(-2px);
}

.metric-value {
  font-family: var(--font-mono);
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 700;
  color: var(--accent-green);
}

.metric-label {
  font-size: 0.65rem;
  color: var(--text-subtle);
  text-transform: uppercase;
  margin-top: 0.25rem;
  font-weight: 600;
}

.code-preview {
  background: var(--bg-subtle);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-sm);
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 2vw, 0.8rem);
  line-height: 1.6;
  color: #d4d4d8;
  overflow-x: auto;
}

.code-keyword { color: #f43f5e; }
.code-tag { color: #38bdf8; }
.code-attr { color: #fbbf24; }
.code-string { color: #4ade80; }
.code-comment { color: #71717a; }

/* Sections */
.section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border-muted);
}

.section-header {
  margin-bottom: 3rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-top: 0.5rem;
}

/* Scroll Reveal Effects */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   DASHBOARD SPECIFIC STYLING
   ========================================================================== */
.dash-header {
  padding: 8.5rem 0 2rem 0;
  border-bottom: 1px solid var(--border-muted);
}

.dash-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin: 2.5rem 0 3.5rem 0;
}

.dash-stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.dash-stat-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  margin-top: 0.4rem;
}

.dash-stat-sub {
  font-size: 0.75rem;
  color: var(--text-subtle);
  margin-top: 0.25rem;
}

/* Dashboard Filter Bar */
.dash-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  min-width: 280px;
}

.search-input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.85rem;
}

.search-input:focus {
  outline: none;
  border-color: var(--border-focus);
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-subtle);
  font-size: 0.85rem;
}

.filter-pills {
  display: flex;
  gap: 0.4rem;
}

.filter-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-muted);
  color: var(--text-muted);
  padding: 0.4rem 0.85rem;
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-pill.active, .filter-pill:hover {
  background: var(--text-main);
  color: #ffffff;
  border-color: var(--text-main);
}

/* Projects Table & Card List */
.projects-table-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-md);
  overflow-x: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.projects-table {
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.projects-table th, .projects-table td {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border-muted);
}

.projects-table th {
  background: #f4f4f5;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-subtle);
  font-weight: 600;
}

.projects-table tr:hover td {
  background: var(--bg-surface-hover);
}

.domain-cell {
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.badge-live {
  color: var(--accent-green);
  background: var(--accent-green-bg);
  border: 1px solid rgba(22, 163, 74, 0.3);
  padding: 0.15rem 0.5rem;
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.badge-build {
  color: var(--accent-blue);
  background: var(--accent-blue-bg);
  border: 1px solid rgba(2, 132, 199, 0.3);
  padding: 0.15rem 0.5rem;
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.badge-action {
  color: var(--accent-amber);
  background: var(--accent-amber-bg);
  border: 1px solid rgba(217, 119, 6, 0.3);
  padding: 0.15rem 0.5rem;
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.action-btns {
  display: flex;
  gap: 0.4rem;
}

/* Modals */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(9, 9, 11, 0.6);
  backdrop-filter: blur(8px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.open {
  display: flex;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  padding: 2.25rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-muted);
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  color: var(--text-subtle);
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text-main);
}

/* Toast Notification */
.toast-msg {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--text-main);
  color: #ffffff;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: 1000;
}

.toast-msg.show {
  transform: translateY(0);
  opacity: 1;
}

/* Footer */
.footer {
  padding: 2.5rem 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-subtle);
  border-top: 1px solid var(--border-muted);
}

.footer-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  .hero-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .dash-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }
}

@media (max-width: 540px) {
  .dash-stats-grid {
    grid-template-columns: 1fr;
  }

  .dash-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    min-width: 100%;
  }

  .filter-pills {
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }
}

/* ==========================================================================
   CLIENT PORTAL LEFT SIDEBAR NAVIGATION SYSTEM
   ========================================================================== */
.portal-container-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.portal-sidebar {
  width: 270px;
  min-width: 270px;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-muted);
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem 1.25rem;
  z-index: 110;
  overflow-y: auto;
  transition: transform var(--transition-smooth);
}

.portal-sidebar-brand {
  margin-bottom: 1.5rem;
}

.portal-client-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  margin-bottom: 1.5rem;
}

.portal-client-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.2;
}

.portal-client-domain {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-green);
  margin-top: 0.2rem;
}

.portal-nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.portal-nav-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-subtle);
  letter-spacing: 0.08em;
  margin: 0.75rem 0 0.25rem 0.5rem;
}

.portal-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.875rem;
  transition: var(--transition-fast);
  cursor: pointer;
}

.portal-nav-item-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.portal-nav-item-icon {
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.portal-nav-item:hover {
  background: var(--bg-surface-hover);
  color: var(--text-main);
}

.portal-nav-item.active {
  background: var(--text-main);
  color: #ffffff;
  font-weight: 600;
}

.portal-nav-item.active .portal-nav-item-icon {
  color: #ffffff;
}

.portal-nav-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.1rem 0.45rem;
  border-radius: 99px;
  background: var(--accent-amber-bg);
  color: var(--accent-amber);
  border: 1px solid rgba(217, 119, 6, 0.3);
}

.portal-nav-item.active .portal-nav-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.portal-sidebar-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--border-muted);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.portal-sidebar-btn {
  width: 100%;
}

.portal-main-wrapper {
  margin-left: 270px;
  flex: 1;
  width: calc(100% - 270px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.portal-topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-muted);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.portal-section-content {
  padding: 2rem;
}

@media (max-width: 960px) {
  .portal-sidebar {
    transform: translateX(-100%);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
  }

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

  .portal-main-wrapper {
    margin-left: 0;
    width: 100%;
  }

  .portal-topbar {
    padding: 1rem 1.25rem;
  }

  .portal-section-content {
    padding: 1.25rem;
  }
}

