  /* ========================================
     UWC Innovation Hub - Analytics Dashboard
     UWC Brand Colors - Gold & Blue Theme
     ======================================== */
  
  :root {
    /* UWC Brand Colors */
    --uwc-blue: #0a1a5c;
    --uwc-blue-dark: #002244;
    --uwc-blue-light: #0055a4;
    --uwc-gold: #bd9a4f;
    --uwc-gold-light: #bd9a4f;
    --uwc-red: #8B1538;
    
    /* Accent Colors */
    --accent-teal: #00C9A7;
    --accent-purple: #845EC2;
    --accent-pink: #D65DB1;
    --accent-orange: #FF9671;
    
    /* UWC Gold & Blue Gradient Background */
    --gradient-bg: linear-gradient(135deg, 
      #f5f7fa 0%, 
      #fdf9e8 20%, 
      #fff8dc 40%, 
      #f0f5ff 60%, 
      #e6eef8 80%, 
      #f5f7fa 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
    --gradient-blue: linear-gradient(135deg, var(--uwc-blue) 0%, var(--uwc-blue-light) 100%);
    --gradient-gold: linear-gradient(135deg, var(--uwc-gold) 0%, var(--uwc-gold-light) 100%);
    
    /* UI Colors */
    --bg-card: #ffffff;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --border-light: rgba(0,0,0,0.06);
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.04), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.08), 0 6px 10px rgba(0,0,0,0.05);
    --shadow-card: 0 4px 20px rgba(0,0,0,0.08);
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
  }

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

  html {
    font-size: 15px;
    scroll-behavior: smooth;
  }

  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gradient-bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
  }

  /* ========================================
     Header (White Banner with Logo) - Fixed
     ======================================== */
  .header {
    background: #ffffff;
    padding: 0 clamp(var(--space-xl), 10vw, 200px);
    box-shadow: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    overflow: hidden;
  }

  .header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0 6px;
  }

  .header-nav {
    display: flex;
    align-items: center;
    gap: 60px;
    padding-bottom: 2px;
  }

  .logo-container {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }

  .logo-zone {
    position: absolute;
    top: 0;
    bottom: 0;
    display: block;
  }

  .logo-zone-left {
    left: 0;
    width: 50%;
  }

  .logo-zone-right {
    right: 0;
    width: 50%;
  }

  .logo-zone:hover {
    opacity: 0.85;
  }

  .logo {
    height: 80px;
    width: auto;
    padding: 4px 0;
  }

  .nav-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--uwc-blue);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    white-space: nowrap;
  }

  .nav-item:hover {
    background: rgba(0, 51, 102, 0.05);
    color: var(--uwc-blue-light);
  }

  .nav-item svg.nav-chevron {
    width: 25px;
    height: 25px;
    transition: transform 0.2s;
    stroke: var(--uwc-gold);
    stroke-width: 3;
    filter: drop-shadow(0 0 0.5px var(--uwc-gold));
  }

  .nav-item:hover svg.nav-chevron {
    transform: translateY(2px);
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
  }

  .header-logged-in {
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.3px;
    margin-left: auto;
  }

  .header-logged-in strong {
    color: var(--uwc-blue);
    font-weight: 600;
  }

  .sign-out-btn {
    background: none;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 5px 8px;
    cursor: pointer;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    transition: all 0.2s ease;
  }

  .sign-out-btn:hover {
    color: #c53030;
    border-color: #feb2b2;
    background: #fff5f5;
  }

  .btn-export {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    background: var(--uwc-gold);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(189,154,79,0.3);
  }

  .btn-export:hover {
    background: var(--uwc-gold);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(189,154,79,0.4);
  }

  .header-divider {
    color: #cbd5e0;
    font-size: 1.39rem;
    font-weight: 700;
  }

  .header-section-label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.94rem;
    font-weight: 900;
    color: var(--uwc-blue);
    text-transform: uppercase;
    letter-spacing: 0.8px;
  }

  /* ========================================
     Blue Navigation Strip
     ======================================== */
  .nav-strip {
    background: var(--uwc-blue);
    height: 56px;
    padding: 0 clamp(var(--space-xl), 10vw, 200px);
    display: flex;
    align-items: center;
    margin-top: 148px; /* offset for fixed header */
  }

  .nav-strip-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
  }

  .nav-strip-left {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.96rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
  }

  .nav-strip-left span.breadcrumb-text {
    color: rgba(255,255,255,0.9);
  }

  .nav-strip-left svg {
    width: 12px;
    height: 12px;
  }

  .breadcrumb-link {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.2s ease;
    cursor: pointer;
  }

  .breadcrumb-link:hover {
    color: var(--uwc-gold);
  }

  .breadcrumb-home {
    display: flex;
    align-items: center;
  }

  .breadcrumb-home-icon {
    height: 15px;
    width: auto;
    opacity: 1;
    filter: brightness(0) invert(1);
  }

  .breadcrumb-sep {
    color: rgba(255,255,255,0.5);
    margin: 0 4px;
  }

  .nav-strip-right {
    font-size: 0.96rem;
    color: #ffffff;
    font-weight: 700;
  }

  /* ========================================
     Dashboard Hero Section
     ======================================== */
  .dashboard-hero {
    background: var(--gradient-card);
    border-bottom: 1px solid var(--border-light);
    padding: var(--space-xl) clamp(var(--space-xl), 10vw, 200px);
    margin-top: 0; /* nav strip is no longer fixed, flows naturally */
    overflow: hidden;
  }

  .hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
  }

  .hero-text h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--uwc-blue);
    margin-bottom: 24px;
    position: relative;
    padding-top: 2px;
  }

  .hero-text h1::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 82px;
    height: 4px;
    background: var(--uwc-gold);
    border-radius: 2px;
  }

  .project-subtitle {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9rem;
    color: var(--uwc-blue);
    font-weight: 500;
  }

  .btn-view-project {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--uwc-gold);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(189,154,79,0.3);
    white-space: nowrap;
  }

  .btn-view-project:hover {
    background: var(--uwc-gold);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(189,154,79,0.4);
  }

  .btn-view-project svg {
    stroke: #ffffff;
  }

  .hero-controls {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
    min-width: 0;
  }

  .period-selector {
    display: flex;
    background: #f1f5f9;
    border-radius: var(--radius-lg);
    padding: 4px;
    border: 1px solid var(--border-light);
  }

  .period-btn {
    padding: 10px 20px;
    border: none;
    background: transparent;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
  }

  .period-btn:hover {
    color: var(--uwc-blue);
  }

  .period-btn.active {
    background: var(--uwc-blue);
    color: #ffffff;
    box-shadow: var(--shadow-sm);
  }

  /* Sync Status Bar */
  .sync-status {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
  }

  .sync-date-label {
    font-size: 1.275rem;
    color: var(--text-muted);
    white-space: nowrap;
  }

  .sync-bar-container {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 180px;
  }

  .sync-bar-track {
    flex: 1;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    min-width: 80px;
  }

  .sync-bar-fill {
    height: 100%;
    background: var(--uwc-gold);
    border-radius: 2px;
    width: 0%;
    transition: width 1s linear;
  }

  .sync-countdown {
    font-size: 1.05rem;
    color: var(--text-muted);
    white-space: nowrap;
    font-weight: 500;
    min-width: 130px;
  }

  .last-updated {
    font-size: 0.975rem;
    color: var(--text-muted);
    white-space: nowrap;
    opacity: 0.7;
    font-style: italic;
  }

  /* Real-time Active Visitors Badge */
  .realtime-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 12px;
    padding: 3px 10px;
    background: rgba(0, 201, 167, 0.1);
    border: 1px solid rgba(0, 201, 167, 0.25);
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent-teal);
    vertical-align: middle;
  }

  .realtime-badge.has-users {
    background: rgba(0, 201, 167, 0.15);
    border-color: rgba(0, 201, 167, 0.4);
  }

  .realtime-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-teal);
    animation: realtimePulse 2s ease-in-out infinite;
  }

  @keyframes realtimePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
  }

  /* Empty State Text */
  .empty-state-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    padding: var(--space-md);
    font-style: italic;
  }

  .refresh-indicator {
    display: none;
  }

  .refresh-indicator.loading {
    display: flex;
  }

  /* Update Notification Popup */
  .update-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 26, 92, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .update-popup-overlay.visible {
    opacity: 1;
    visibility: visible;
  }

  .update-popup {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
    animation: popupSlideIn 0.3s ease;
  }

  @keyframes popupSlideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }

  .update-popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.2s;
  }

  .update-popup-close:hover {
    color: var(--text-primary);
  }

  .update-popup-icon {
    color: var(--uwc-gold);
    margin-bottom: var(--space-lg);
  }

  .update-popup h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--uwc-blue);
    margin-bottom: var(--space-md);
  }

  .update-popup p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-xl);
  }

  .update-popup-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    background: var(--uwc-gold);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(189,154,79,0.3);
  }

  .update-popup-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(189,154,79,0.4);
  }

  .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-light);
    border-top-color: var(--uwc-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
  }

  @keyframes spin {
    to { transform: rotate(360deg); }
  }

  /* ========================================
     Preloader Overlay
     ======================================== */
  .preloader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--uwc-blue);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
  }

  .preloader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .preloader-content {
    text-align: center;
    width: 360px;
  }

  .preloader-logo {
    width: 200px;
    opacity: 0.95;
    margin-bottom: var(--space-xl);
  }

  .preloader-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 20px;
  }

  .preloader-progress-fill {
    height: 100%;
    background: var(--uwc-gold);
    border-radius: 3px;
    width: 0%;
    animation: preloaderFill 8s ease-out forwards;
  }

  .preloader-progress-fill.complete {
    width: 100% !important;
    animation: none;
    transition: width 0.3s ease;
  }

  @keyframes preloaderFill {
    0% { width: 0%; }
    30% { width: 40%; }
    60% { width: 65%; }
    80% { width: 80%; }
    100% { width: 90%; }
  }

  .preloader-text {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    font-weight: 400;
    letter-spacing: 0.3px;
  }

  /* ========================================
     Main Content
     ======================================== */
  .main-content {
    margin: 0 auto;
    padding: var(--space-xl) clamp(var(--space-xl), 10vw, 200px);
    overflow: hidden;
  }

  /* ========================================
     Section Headers
     ======================================== */
  .section-header {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--border-light);
  }

  .section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--uwc-blue);
    margin-bottom: 2px;
    letter-spacing: -0.2px;
  }

  .section-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
    font-weight: 400;
  }

  /* ========================================
     Metrics Section
     ======================================== */
  .metrics-section {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
  }

  .metric-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-light);
    min-height: 110px;
  }

  .metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-gold);
    opacity: 0;
    transition: opacity 0.3s;
  }

  .metric-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(189, 154, 79, 0.3);
  }

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

  .metric-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .metric-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .metric-value {
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--uwc-blue);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    min-width: 60px;
  }

  .metric-change {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 500;
  }

  .metric-change.positive {
    color: var(--accent-teal);
  }

  .metric-change.negative {
    color: var(--uwc-red);
  }

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

  .metric-chart {
    position: relative;
    width: 60px;
    height: 60px;
  }

  .circular-progress {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
  }

  .circle-bg {
    fill: none;
    stroke: #f1f5f9;
    stroke-width: 3;
  }

  .circle {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dasharray 0.8s ease;
  }

  .users-circle { stroke: var(--uwc-blue); }
  .sessions-circle { stroke: var(--accent-teal); }
  .views-circle { stroke: var(--uwc-gold); }
  .duration-circle { stroke: var(--accent-purple); }

  .metric-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .metric-icon svg {
    width: 16px;
    height: 16px;
  }

  .users-icon svg { color: var(--uwc-blue); }
  .sessions-icon svg { color: var(--accent-teal); }
  .views-icon svg { color: var(--uwc-gold); }
  .duration-icon svg { color: var(--accent-purple); }

  /* ========================================
     Charts Section
     ======================================== */
  .charts-section {
    display: grid;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
  }

  .charts-section-single {
    grid-template-columns: 1fr !important;
    min-width: 0;
  }

  .charts-section-activity-devices {
    grid-template-columns: 1.5fr 1fr;
    min-width: 0;
  }

  .charts-section-journey-full {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .chart-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    min-width: 0;
    overflow: hidden;
  }

  .chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
  }

  .chart-header h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--uwc-blue);
    position: relative;
    padding-top: 2px;
  }

  .chart-header h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 44px;
    height: 3px;
    background: var(--uwc-gold);
    border-radius: 2px;
  }

  .chart-legend {
    display: flex;
    gap: var(--space-lg);
  }

  .legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
  }

  .legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
  }

  .chart-body {
    height: 220px;
    max-height: 220px;
    position: relative;
    overflow: hidden;
  }

  .chart-body canvas {
    max-height: 100%;
  }

  .chart-body-centered {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .chart-legend-bottom {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-top: var(--space-md);
  }

  .chart-period {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
  }

  /* Activity Card */
  .activity-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-light);
  }

  .activity-stat {
    text-align: center;
  }

  .activity-value {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--uwc-blue);
  }

  .activity-change {
    display: inline-flex;
    margin-left: 4px;
  }

  .activity-change.up { color: var(--accent-teal); }
  .activity-change.down { color: var(--uwc-red); }

  .activity-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }

  .activity-chart {
    height: 100px;
    max-height: 100px;
  }

  /* Breakdown Card */
  .breakdown-content {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
  }

  .breakdown-chart {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
  }

  .breakdown-legend {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    min-height: 120px;
  }

  .breakdown-legend-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.75rem;
    color: var(--text-secondary);
  }

  .breakdown-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
  }

  /* Devices Card */
  .devices-content {
    height: 180px;
    max-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* ========================================
     Tables Section
     ======================================== */
  .tables-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
  }

  .tables-section-3col {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  }

  .event-name-cell {
    font-family: 'Inter', monospace;
    font-size: 0.82rem;
    color: var(--uwc-blue);
  }

  .event-custom-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 5px;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff;
    background: var(--uwc-gold);
    border-radius: 3px;
    vertical-align: middle;
    text-transform: uppercase;
  }

  .table-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    border: 1px solid var(--border-light);
  }

  .table-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-light);
    background: #fafbfc;
  }

  .table-header h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--uwc-blue);
    position: relative;
    padding-top: 2px;
  }

  .table-header h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 44px;
    height: 3px;
    background: var(--uwc-gold);
    border-radius: 2px;
  }

  .table-body {
    padding: var(--space-md);
    max-height: 280px;
    overflow-y: auto;
  }

  table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
  }

  th {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    padding: var(--space-sm) var(--space-md);
    background: #f8fafc;
    position: sticky;
    top: 0;
  }

  td {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  tr:last-child td {
    border-bottom: none;
  }

  tr:hover td {
    background: rgba(189, 154, 79, 0.05);
  }

  .loading-cell {
    text-align: center;
    color: var(--text-muted);
    padding: var(--space-xl) !important;
  }

  .page-title-cell {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .progress-bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 4px;
  }

  .progress-fill {
    height: 100%;
    background: var(--gradient-gold);
    border-radius: 2px;
  }

  /* ========================================
     Sticky Side Tab - Project Banner
     ======================================== */
  .side-tab {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 998;
    display: flex;
    align-items: stretch;
    background: var(--uwc-blue);
    border: 2px solid #ffffff;
    border-right: none;
    border-radius: 8px 0 0 8px;
    box-shadow: -2px 0 10px rgba(0,0,0,0.15);
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .side-tab.collapsed {
    transform: translateY(-50%) translateX(calc(100% - 40px));
  }

  .side-tab-toggle {
    width: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.2s;
    flex-shrink: 0;
  }

  .side-tab-toggle .turtle-icon {
    stroke: #ffffff;
    stroke-width: 1;
  }

  .side-tab-toggle:hover {
    background: rgba(255,255,255,0.1);
  }

  .side-tab.collapsed .side-tab-toggle .turtle-icon {
    opacity: 0.7;
  }

  .side-tab-content {
    background: transparent;
    padding: var(--space-lg) var(--space-xl);
    width: 260px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
  }

  .side-tab-content::before {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -20%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
  }

  .side-tab-header {
    margin-bottom: var(--space-sm);
  }

  .side-tab-header h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    color: #ffffff;
  }

  .side-tab-content p {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-bottom: var(--space-md);
    line-height: 1.4;
    color: #ffffff;
  }

  .side-tab-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.75rem;
    transition: gap 0.2s;
  }

  .side-tab-link:hover {
    gap: var(--space-sm);
    color: var(--uwc-gold);
  }

  /* ========================================
     Footer
     ======================================== */
  .footer {
    background: var(--uwc-blue);
    color: #fff;
    padding: var(--space-2xl) clamp(var(--space-xl), 10vw, 200px) 68px;
    overflow: hidden;
  }

  .footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    align-items: start;
  }

  .footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding-top: 10px;
  }

  .footer-links h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--uwc-gold-light);
  }

  .footer-links a {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: color 0.2s;
  }

  .footer-links a:hover {
    color: var(--uwc-gold-light);
  }

  .footer-info h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 5px;
    color: rgba(255,255,255,0.9);
    opacity: 0.9;
  }

  .footer-info {
    justify-self: end;
    padding-right: var(--space-xl);
    padding-top: 10px;
  }

  .footer-info p {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 5px;
    line-height: 1.6;
  }

  .footer-contact {
    margin-top: 0;
  }

  .footer-contact a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.2s;
  }

  .footer-contact a:hover {
    color: var(--uwc-gold-light);
  }

  .footer-brand-social {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-top: 32px;
  }

  .footer-logo {
    width: 211px;
    height: 144px;
    opacity: 0.95;
    margin-bottom: 72px;
  }

  .social-icons {
    display: flex;
    gap: var(--space-md);
  }

  .social-icons a {
    width: 51px;
    height: 51px;
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--uwc-gold);
    transition: all 0.2s;
  }

  .social-icons a:hover {
    background: var(--uwc-gold);
    border-color: var(--uwc-gold);
    color: #ffffff;
  }

  .footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: var(--space-xl);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: var(--space-xl);
    font-size: 0.875rem;
    color: #ffffff;
    font-weight: 400;
    opacity: 0.8;
    flex-wrap: wrap;
  }

  .footer-bottom p {
    font-size: 0.875rem;
    color: #ffffff;
    font-weight: 400;
  }

  .footer-property {
    margin-left: auto;
    font-size: 0.875rem;
    color: #ffffff;
    font-weight: 400;
    opacity: 1;
  }

  .footer-bottom-links {
    display: flex;
    gap: var(--space-lg);
  }

  .footer-bottom-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    transition: color 0.2s;
  }

  .footer-bottom-links a:hover {
    color: var(--uwc-gold-light);
  }

  /* ========================================
     User Acquisition Card
     ======================================== */
  .chart-acquisition {
    display: flex;
    flex-direction: column;
  }

  .acquisition-stats {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
  }

  .acquisition-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    background: #f8fafc;
    border: 1px solid var(--border-light);
    overflow: hidden;
    min-width: 0;
  }

  .acquisition-icon {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .acquisition-icon svg {
    width: 15px;
    height: 15px;
  }

  .new-users-acq { background: rgba(0, 201, 167, 0.15); color: var(--accent-teal); }
  .returning-users-acq { background: rgba(0, 51, 102, 0.1); color: var(--uwc-blue); }
  .sessions-acq { background: rgba(189, 154, 79, 0.15); color: var(--uwc-gold); }
  .engagement-acq { background: rgba(132, 94, 194, 0.15); color: var(--accent-purple); }

  .acquisition-detail {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .acquisition-value {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--uwc-blue);
    line-height: 1.2;
  }

  .acquisition-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.2px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .acquisition-bar {
    display: flex;
    height: 26px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-top: auto;
  }

  .acquisition-bar-fill {
    background: var(--accent-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.6s ease;
    overflow: hidden;
    min-width: 0;
  }

  .acquisition-bar-fill span {
    font-size: 0.55rem;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 4px;
  }

  .acquisition-bar-returning {
    background: var(--uwc-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.6s ease;
    overflow: hidden;
    min-width: 0;
  }

  .acquisition-bar-returning span {
    font-size: 0.55rem;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 4px;
  }

  /* ========================================
     User Journey Flow
     ======================================== */
  .journey-section {
    margin-bottom: var(--space-xl);
  }

  .journey-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
  }

  .journey-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: var(--space-lg) 0;
    overflow-x: auto;
  }

  .journey-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    background: #f8fafc;
    border: 2px solid var(--border-light);
    min-width: 170px;
    max-width: 200px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
  }

  .journey-node:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
  }

  .journey-node-primary {
    background: rgba(0, 51, 102, 0.04);
    border-color: var(--uwc-blue);
    border-width: 2px;
  }

  .journey-node-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-sm);
  }

  .journey-icon-gsites {
    background: rgba(66, 133, 244, 0.12);
    color: #4285F4;
  }

  .journey-icon-ihub {
    background: rgba(0, 51, 102, 0.12);
    color: var(--uwc-blue);
  }

  .journey-icon-jig {
    background: rgba(0, 201, 167, 0.12);
    color: var(--accent-teal);
  }

  .journey-node-label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--uwc-blue);
    line-height: 1.2;
  }

  .journey-node-sublabel {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
  }

  .journey-node-stats {
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-weight: 500;
  }

  .journey-stat-views,
  .journey-stat-users {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--uwc-blue);
    font-variant-numeric: tabular-nums;
  }

  .journey-stat-sep {
    margin: 0 3px;
    color: var(--text-muted);
  }

  .journey-node-time {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-style: italic;
  }

  /* Journey arrows */
  .journey-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 var(--space-sm);
    min-width: 70px;
  }

  .journey-arrow-line {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--uwc-gold) 0%, var(--accent-teal) 100%);
    border-radius: 2px;
    position: relative;
  }

  .journey-arrow-label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--uwc-gold);
    margin-top: 4px;
    white-space: nowrap;
  }

  .journey-arrow-head {
    color: var(--accent-teal);
    margin-top: -14px;
    margin-left: auto;
  }

  /* Conversion funnel */
  .journey-funnel {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
  }

  .funnel-step {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    position: relative;
  }

  .funnel-bar {
    height: 24px;
    background: var(--uwc-blue);
    border-radius: 4px;
    min-width: 30px;
    transition: width 0.8s ease;
  }

  .funnel-bar-mid {
    background: var(--uwc-gold);
  }

  .funnel-bar-end {
    background: var(--accent-teal);
  }

  .funnel-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    min-width: 140px;
  }

  .funnel-value {
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--uwc-blue);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
  }

  /* ========================================
     Compact Journey (inline card)
     ======================================== */
  .chart-journey-inline {
    display: flex;
    flex-direction: column;
    max-height: 340px;
  }

  .journey-flow-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: var(--space-sm) 0;
    overflow-x: auto;
  }

  .journey-node-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    background: #f8fafc;
    border: 1.5px solid var(--border-light);
    min-width: 120px;
    max-width: 150px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
  }

  .journey-node-compact:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
  }

  .journey-node-compact.journey-node-primary {
    background: rgba(0, 51, 102, 0.04);
    border-color: var(--uwc-blue);
  }

  .journey-node-compact .journey-node-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 4px;
  }

  .journey-node-compact .journey-node-label {
    font-size: 0.75rem;
  }

  .journey-node-compact .journey-node-sublabel {
    font-size: 0.6rem;
    margin-bottom: 4px;
  }

  .journey-node-compact .journey-node-stats {
    font-size: 0.62rem;
  }

  .journey-node-compact .journey-node-time {
    font-size: 0.58rem;
    margin-top: 2px;
  }

  .journey-arrow-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 4px;
    min-width: 40px;
  }

  .journey-arrow-compact .journey-arrow-line {
    width: 100%;
    height: 2px;
  }

  .journey-arrow-compact .journey-arrow-label {
    font-size: 0.62rem;
    margin-top: 2px;
  }

  .journey-arrow-compact .journey-arrow-head {
    margin-top: -10px;
    margin-left: auto;
  }

  .journey-funnel-compact {
    margin-top: var(--space-md);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .journey-funnel-compact .funnel-step {
    gap: var(--space-sm);
  }

  .journey-funnel-compact .funnel-bar {
    height: 18px;
    min-width: 20px;
  }

  .journey-funnel-compact .funnel-label {
    font-size: 0.65rem;
    min-width: 100px;
  }

  .journey-funnel-compact .funnel-value {
    font-size: 0.7rem;
  }

  /* ========================================
     Combined Tables (Pages + Countries)
     ======================================== */
  .tables-section-2col {
    grid-template-columns: 1.5fr 1fr;
  }

  .table-card-combined .table-body-combined {
    display: flex;
    gap: 0;
    height: 280px;
    max-height: 280px;
    overflow-y: auto;
  }

  .table-half {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-md);
    min-width: 0;
  }

  .table-divider {
    width: 1px;
    background: var(--border-light);
    flex-shrink: 0;
  }

  .table-sub-header {
    font-family: 'Poppins', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--uwc-blue);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: var(--space-sm);
    padding-bottom: 4px;
    border-bottom: 2px solid var(--uwc-gold);
    display: inline-block;
  }

  .th-page-title {
    width: 55%;
  }

  .page-title-cell {
    max-width: none;
  }

  /* ========================================
     Traffic Sources Table
     ======================================== */
  .traffic-channel-cell {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .traffic-channel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
  }

  .traffic-channel-name {
    font-weight: 500;
    color: var(--uwc-blue);
    font-size: 0.82rem;
  }

  /* ========================================
     Bounce Rate Trend Sparkline
     ======================================== */
  .bounce-trend {
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border-light);
  }

  .bounce-trend-label {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: block;
    margin-bottom: 4px;
  }

  #bounceSparkline {
    width: 100%;
    height: 32px;
  }

  /* ========================================
     Geographic Map
     ======================================== */
  .chart-geo-map {
    min-height: 280px;
    max-height: 380px;
  }

  .geo-map-container {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .geo-map-svg {
    flex: 1;
    width: 100%;
    min-height: 200px;
  }

  .geo-map-svg .geo-country {
    fill: #e2e8f0;
    stroke: #ffffff;
    stroke-width: 0.5;
    transition: fill 0.3s ease, opacity 0.2s ease;
    cursor: default;
  }

  .geo-map-svg .geo-country:hover {
    opacity: 0.8;
  }

  .geo-map-svg .geo-country.active {
    cursor: pointer;
  }

  .geo-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: var(--space-sm);
    justify-content: center;
  }

  .geo-legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    color: var(--text-secondary);
    padding: 2px 8px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid var(--border-light);
  }

  .geo-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
  }

  .geo-legend-count {
    font-weight: 700;
    color: var(--uwc-blue);
    font-variant-numeric: tabular-nums;
  }

  /* Geo tooltip */
  .geo-tooltip {
    position: absolute;
    background: rgba(255,255,255,0.95);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    font-size: 0.72rem;
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
    pointer-events: none;
    z-index: 100;
    white-space: nowrap;
    display: none;
  }

  .geo-tooltip-country {
    font-weight: 700;
    color: var(--uwc-blue);
  }

  .geo-tooltip-value {
    color: var(--text-secondary);
    margin-left: 4px;
  }

  /* ========================================
     Responsive
     ======================================== */
  @media (max-width: 1200px) {
    .charts-section-single,
    .charts-section-activity-devices,
    .charts-section-journey-full {
      grid-template-columns: 1fr !important;
    }

    .tables-section-2col {
      grid-template-columns: 1fr;
    }

    .table-card-combined .table-body-combined {
      flex-direction: column;
      height: auto;
    }

    .table-divider {
      width: 100%;
      height: 1px;
    }

    .metrics-section {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .header {
      padding-left: var(--space-xl);
      padding-right: var(--space-xl);
    }
    .nav-strip {
      padding-left: var(--space-xl);
      padding-right: var(--space-xl);
    }
    .footer {
      padding-left: var(--space-xl);
      padding-right: var(--space-xl);
    }
    .dashboard-hero {
      padding-left: var(--space-xl);
      padding-right: var(--space-xl);
    }
    .main-content {
      padding-left: var(--space-xl);
      padding-right: var(--space-xl);
    }
  }

  @media (max-width: 900px) {
    .header-nav {
      display: none;
    }

    .footer-content {
      grid-template-columns: 1fr 1fr;
    }

    .footer-info {
      justify-self: start;
      padding-right: 0;
    }

    .tables-section {
      grid-template-columns: 1fr;
    }

    .logo {
      height: 60px;
    }

    .header-section-label {
      display: none;
    }

    .header-divider {
      display: none;
    }
  }

  @media (max-width: 768px) {
    .journey-flow-compact {
      flex-direction: column;
    }

    .journey-arrow-compact {
      transform: rotate(90deg);
      padding: var(--space-xs) 0;
      min-width: unset;
    }

    .journey-node-compact {
      min-width: 180px;
      max-width: 240px;
    }

    .hero-controls {
      flex-direction: column;
      align-items: stretch;
      gap: var(--space-sm);
    }

    .sync-status {
      flex-wrap: wrap;
      gap: 4px;
    }

    .sync-date-label {
      font-size: 1rem;
    }

    .sync-countdown {
      font-size: 0.85rem;
      min-width: 110px;
    }

    .last-updated {
      font-size: 0.8rem;
    }

    .sync-bar-container {
      min-width: 140px;
    }

    .period-selector {
      justify-content: center;
    }

    .period-btn {
      padding: 8px 14px;
      font-size: 0.72rem;
    }

    .realtime-badge {
      margin-left: 0;
      margin-top: 4px;
    }

    .tables-section-3col {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 600px) {
    .metrics-section {
      grid-template-columns: 1fr;
    }

    .hero-content {
      flex-direction: column;
      text-align: center;
    }

    .hero-text h1::before {
      width: 50px;
    }
    
    .footer-content {
      grid-template-columns: 1fr;
      text-align: center;
    }

    .footer-info {
      justify-self: center;
      text-align: center;
      padding-right: 0;
    }

    .footer-brand-social {
      align-items: center;
    }

    .social-icons {
      justify-content: center;
    }

    .footer-bottom {
      flex-direction: column;
      gap: var(--space-sm);
      text-align: center;
      justify-content: center;
    }

    .footer-bottom-links {
      justify-content: center;
    }
    
    .side-tab {
      display: none;
    }
    
    .logo {
      height: 45px;
    }

    .btn-view-project {
      font-size: 0.65rem;
      padding: 8px 14px;
    }
  }

  /* ========================================
     Print / PDF
     ======================================== */
  @media print {
    .header, .nav-strip {
      position: relative;
    }
    
    .btn-export, .header-nav, .header-top-row, .side-tab {
      display: none;
    }
    
    body {
      background: #fff;
    }
  }
