/* ==========================================================================
   CITTÀ DEL DELTA · PWA MOBILE-FIRST DESIGN SYSTEM
   "Dove il fiume rinasce come mare"
   ========================================================================== */

:root {
  --po-deep: #050d1a;
  --po-navy: #0b1d38;
  --po-blue: #13335e;
  --po-cyan: #1ea3d8;
  --po-light: #e4f4fc;
  
  --wetland-dark: #0e3020;
  --wetland-green: #1d6a48;
  --wetland-emerald: #22c55e;
  
  --civic-red: #c02626;
  --civic-gold: #eab308;
  --civic-gold-glow: rgba(234, 179, 8, 0.25);
  
  --bg-primary: #070e1a;
  --bg-surface: #0d1a2d;
  --bg-surface-elevated: #13243c;
  --bg-card: rgba(16, 32, 56, 0.75);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(30, 163, 216, 0.4);
  
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-gold: #fde047;
  
  --bottom-bar-h: 70px;
  --top-bar-h: 64px;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 20px rgba(30, 163, 216, 0.25);
  
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  padding-top: var(--top-bar-h);
  padding-bottom: calc(var(--bottom-bar-h) + 20px);
  min-height: 100vh;
}

/* Background gradient ambient */
.bg-ambient {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 10% 20%, rgba(19, 51, 94, 0.45) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(29, 106, 72, 0.3) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(11, 29, 56, 0.6) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* --------------------------------------------------------------------------
   TOP APP BAR
   -------------------------------------------------------------------------- */
.top-appbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--top-bar-h);
  background: rgba(7, 14, 26, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 100;
}

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

.brand-logo-img {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--civic-gold);
  object-fit: cover;
  box-shadow: 0 0 10px var(--civic-gold-glow);
}

.brand-text h1 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #ffffff, var(--po-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.brand-text .claim {
  font-size: 0.68rem;
  color: var(--text-gold);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-fusion-live {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 5px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: #22c55e;
  border-radius: 50%;
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.9); opacity: 0.8; }
}

/* --------------------------------------------------------------------------
   BOTTOM NAVIGATION BAR (MOBILE FIRST NATIVE PWA FEEL)
   -------------------------------------------------------------------------- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-bar-h);
  background: rgba(7, 14, 26, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 6px 8px;
  z-index: 100;
}

.nav-item {
  background: none;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  flex: 1;
}

.nav-item svg {
  width: 22px;
  height: 22px;
  margin-bottom: 2px;
  transition: transform 0.2s ease;
}

.nav-item.active {
  color: var(--po-cyan);
}

.nav-item.active svg {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 8px rgba(30, 163, 216, 0.6));
}

.nav-item.active::after {
  content: '';
  position: absolute;
  top: -6px;
  width: 20px;
  height: 3px;
  background: var(--po-cyan);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--po-cyan);
}

/* --------------------------------------------------------------------------
   CONTAINER & LAYOUT
   -------------------------------------------------------------------------- */
.app-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.25s ease-out;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   HERO / BANNER CITTA' DEL DELTA
   -------------------------------------------------------------------------- */
.hero-card {
  background: linear-gradient(145deg, rgba(19, 51, 94, 0.7) 0%, rgba(13, 26, 45, 0.85) 100%);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(234, 179, 8, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid rgba(234, 179, 8, 0.35);
  color: var(--text-gold);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.hero-title {
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
  line-height: 1.45;
}

.hero-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.metric-box {
  background: rgba(7, 14, 26, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 10px;
  text-align: center;
}

.metric-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--po-cyan);
  line-height: 1.1;
}

.metric-label {
  font-size: 0.68rem;
  color: var(--text-secondary);
  margin-top: 4px;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   SIMULATORE FINANZIARIO & INCENTIVI FUSIONE
   -------------------------------------------------------------------------- */
.fusion-calculator-card {
  background: var(--bg-surface);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-norma {
  background: rgba(30, 163, 216, 0.15);
  border: 1px solid rgba(30, 163, 216, 0.3);
  color: var(--po-cyan);
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.range-slider-wrapper {
  margin: 16px 0;
}

.range-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.slider-custom {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #1e293b;
  outline: none;
  -webkit-appearance: none;
}

.slider-custom::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--wetland-emerald);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
  border: 2px solid #ffffff;
}

.sim-results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.sim-result-item {
  background: rgba(5, 13, 26, 0.6);
  border-radius: var(--radius-md);
  padding: 12px;
  border-left: 3px solid var(--wetland-emerald);
}

.sim-amount {
  font-size: 1.3rem;
  font-weight: 800;
  color: #4ade80;
}

.sim-desc {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.3;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   CARDS DEI COMUNI & PERIMETRI
   -------------------------------------------------------------------------- */
.section-title-wrapper {
  margin: 24px 0 14px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.comuni-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}

.comuni-carousel::-webkit-scrollbar {
  height: 4px;
}
.comuni-carousel::-webkit-scrollbar-thumb {
  background: var(--po-blue);
  border-radius: 4px;
}

.comune-card {
  flex: 0 0 240px;
  scroll-snap-align: start;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: all 0.2s ease;
  position: relative;
  cursor: pointer;
}

.comune-card:hover, .comune-card.selected {
  border-color: var(--po-cyan);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.comune-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.comune-name {
  font-size: 1rem;
  font-weight: 800;
}

.comune-status-tag {
  font-size: 0.62rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.tag-core {
  background: rgba(234, 179, 8, 0.2);
  color: var(--text-gold);
  border: 1px solid rgba(234, 179, 8, 0.4);
}

.tag-snai {
  background: rgba(30, 163, 216, 0.2);
  color: var(--po-cyan);
  border: 1px solid rgba(30, 163, 216, 0.4);
}

.comune-pop {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.comune-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.comune-pill {
  font-size: 0.65rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   DIGITAL TWIN & MAPPA TERRITORIALE
   -------------------------------------------------------------------------- */
.map-visual-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
}

.map-toolbar {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: rgba(5, 13, 26, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.map-layer-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.map-layer-btn.active {
  background: var(--po-blue);
  color: #ffffff;
  border-color: var(--po-cyan);
}

.map-interactive-view {
  position: relative;
  min-height: 380px;
  background: radial-gradient(circle at 60% 40%, #0d284a 0%, #061224 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.map-img-preview {
  width: 100%;
  height: 380px;
  object-fit: cover;
  opacity: 0.75;
  transition: opacity 0.3s ease;
}

.map-overlay-card {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  background: rgba(7, 14, 26, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

.overlay-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--po-cyan);
  margin-bottom: 2px;
}

.overlay-text {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   NEURALOG: TRUTH LEDGER & ATTI TRASPARENTI
   -------------------------------------------------------------------------- */
.neuralog-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.doc-ledger-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  transition: border-color 0.2s ease;
}

.doc-ledger-item:hover {
  border-color: rgba(30, 163, 216, 0.4);
}

.doc-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.doc-authority-tag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.doc-date {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.doc-item-title {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.doc-provenance {
  font-size: 0.72rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --------------------------------------------------------------------------
   CORTEX AI CHATBOT (READ ONLY / PROPOSE ONLY)
   -------------------------------------------------------------------------- */
.cortex-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--top-bar-h) - var(--bottom-bar-h) - 40px);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.cortex-header {
  padding: 14px 16px;
  background: rgba(5, 13, 26, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.cortex-avatar {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--po-cyan), var(--wetland-green));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 0.85rem;
}

.cortex-title h3 {
  font-size: 0.95rem;
  font-weight: 700;
}

.cortex-title span {
  font-size: 0.68rem;
  color: var(--text-secondary);
}

.guardrail-badge {
  font-size: 0.62rem;
  font-weight: 700;
  background: rgba(234, 179, 8, 0.15);
  color: var(--text-gold);
  border: 1px solid rgba(234, 179, 8, 0.3);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.cortex-chat-history {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-bubble {
  max-width: 85%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 0.86rem;
  line-height: 1.45;
}

.chat-bubble.ai {
  align-self: flex-start;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-top-left-radius: 4px;
}

.chat-bubble.user {
  align-self: flex-end;
  background: var(--po-blue);
  color: #ffffff;
  border-top-right-radius: 4px;
}

.chat-source-tag {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.68rem;
  color: var(--po-cyan);
  background: rgba(30, 163, 216, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.cortex-suggested-prompts {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 16px;
  background: rgba(5, 13, 26, 0.4);
  border-top: 1px solid var(--border-subtle);
}

.prompt-pill {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.72rem;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.prompt-pill:hover {
  border-color: var(--po-cyan);
  color: var(--text-primary);
}

.cortex-input-bar {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(7, 14, 26, 0.95);
  border-top: 1px solid var(--border-subtle);
}

.cortex-input {
  flex: 1;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 10px 16px;
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
}

.cortex-input:focus {
  border-color: var(--po-cyan);
}

.cortex-send-btn {
  background: var(--po-cyan);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #050d1a;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.15s ease;
}

.cortex-send-btn:active {
  transform: scale(0.92);
}

/* --------------------------------------------------------------------------
   METROERIDANIA MOBILITY LAB
   -------------------------------------------------------------------------- */
.metro-card {
  background: linear-gradient(135deg, rgba(14, 48, 32, 0.75) 0%, rgba(7, 14, 26, 0.9) 100%);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}

.metro-lines-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 16px;
}

.metro-line-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(5, 13, 26, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
}

.metro-badge {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: white;
  flex-shrink: 0;
}

.badge-acqua { background: #0284c7; }
.badge-terra { background: #16a34a; }
.badge-salute { background: #dc2626; }

.metro-line-info {
  flex: 1;
}

.metro-line-title {
  font-size: 0.88rem;
  font-weight: 700;
}

.metro-line-nodes {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   REFERENDUM & CONSULTAZIONE CIVICA
   -------------------------------------------------------------------------- */
.referendum-card {
  background: var(--bg-surface);
  border: 1px solid var(--civic-gold);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 0 15px var(--civic-gold-glow);
}

.referendum-btn-row {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.ref-btn {
  flex: 1;
  padding: 12px;
  border-radius: var(--radius-md);
  border: none;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.ref-btn:active { transform: scale(0.96); }

.ref-btn-yes {
  background: var(--wetland-emerald);
  color: #05101f;
}

.ref-btn-no {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.poll-results-bar {
  margin-top: 14px;
}

.poll-bar-bg {
  height: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  display: flex;
}

.poll-bar-fill-yes {
  background: var(--wetland-emerald);
  height: 100%;
  width: 78%;
  transition: width 0.5s ease;
}

.poll-bar-fill-no {
  background: rgba(255, 255, 255, 0.3);
  height: 100%;
  width: 22%;
}

.poll-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 6px;
}

/* --------------------------------------------------------------------------
   DESKTOP ADAPTIVE LAYOUT (RESPONSIVE ENHANCEMENT)
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  body {
    padding-bottom: 40px;
  }
  
  .bottom-nav {
    top: var(--top-bar-h);
    bottom: auto;
    width: 220px;
    height: calc(100vh - var(--top-bar-h));
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    padding: 20px 12px;
    border-top: none;
    border-right: 1px solid var(--border-subtle);
  }
  
  .app-container {
    margin-left: 240px;
    padding: 24px 32px;
    max-width: 1080px;
  }
  
  .nav-item {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    padding: 10px 14px;
    font-size: 0.85rem;
  }
  
  .nav-item.active::after {
    top: 50%;
    left: 0;
    width: 3px;
    height: 24px;
    transform: translateY(-50%);
  }
  
  .hero-metrics-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
