/* ============================================
   OA CONSTRAINTS ANALYSIS ENGINE
   Brand: Outsource Access
   Left Sidebar Navigation Layout
   ============================================ */

:root {
  --oa-deep-purple: #362456;
  --oa-blue: #48A7DB;
  --oa-dark-blue: #0c4da2;
  --oa-light-blue: #18a8f2;
  --oa-gold: #FDC329;
  --oa-text: #111111;
  --oa-bg: #f5f5f7;
  --oa-white: #FFFFFF;
  --oa-border: #e2e8f0;
  --oa-muted: #64748b;
  --oa-success: #10b981;
  --oa-warning: #f59e0b;
  --oa-danger: #ef4444;
  --text1: #1a1a2e;
  --text2: #4a4a5a;
  --text3: #5a5f6d;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.10), 0 8px 32px rgba(0,0,0,0.06);
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --sidebar-width: 260px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--oa-bg);
  color: var(--oa-text);
  min-height: 100vh;
}

/* ========== HEADER ========== */
.app-header {
  background: linear-gradient(135deg, #362456 0%, #0c4da2 100%);
  color: white;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(54, 36, 86, 0.3);
}
.header-left { display: flex; align-items: center; gap: 16px; }
.header-logo { height: 36px; }
.header-title-group { display: flex; flex-direction: column; }
.header-title { font-size: 18px; font-weight: 700; letter-spacing: -0.3px; }
.header-subtitle { font-size: 12px; opacity: 0.8; font-weight: 400; }
.header-right { display: flex; align-items: center; gap: 8px; }

/* Hamburger button - hidden on desktop */
.hamburger-btn {
  display: none;
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.15); border: none; color: white;
  cursor: pointer; align-items: center; justify-content: center;
  transition: var(--transition);
}
.hamburger-btn:hover { background: rgba(255,255,255,0.25); }

/* Refresh button */
.refresh-btn {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.15); border: none; color: white;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.refresh-btn:hover { background: rgba(255,255,255,0.25); }
.refresh-btn:active svg { animation: spin 0.6s ease; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== SIDEBAR OVERLAY (mobile) ========== */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 90;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

/* ========== APP LAYOUT ========== */
.app-layout {
  display: flex;
  min-height: calc(100vh - 68px);
}

/* ========== LEFT SIDEBAR ========== */
.sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background: #f3f3f6;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid var(--oa-border);
  position: sticky;
  top: 68px;
  height: calc(100vh - 68px);
  overflow-y: auto;
}

/* Sidebar category headers - dark bars */
.sidebar-category {
  background: #4a4a5a;
  color: #ffffff;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 12px;
  margin-bottom: 4px;
}
.sidebar-category:first-child {
  margin-top: 0;
}

/* Sidebar nav items */
.sidebar-nav-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 14px;
  background: none;
  border: none;
  border-left: 3px solid transparent;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}
.sidebar-nav-item:hover {
  background: rgba(59,125,216,0.12);
}
.sidebar-nav-item.active {
  background: linear-gradient(135deg, #3b7dd8 0%, #5a9be6 50%, #3b7dd8 100%);
  color: #ffffff;
  border-left: 3px solid #2c6bc0;
  box-shadow: 0 2px 8px rgba(59,125,216,0.3);
  font-weight: 600;
}
.sidebar-nav-item svg {
  flex-shrink: 0;
}

/* ========== MAIN CONTENT ========== */
.main-content {
  flex: 1;
  max-width: 1200px;
  padding: 24px 24px 60px;
  min-width: 0;
}
.tab-panel { display: none; animation: fadeIn 0.3s ease; }
.tab-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ========== CARDS ========== */
.card {
  background: var(--oa-white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.card-title { font-size: 17px; font-weight: 700; margin-bottom: 4px; color: var(--oa-deep-purple); }
.card-desc { font-size: 14px; color: var(--text3); margin-bottom: 16px; }

/* ========== HERO ========== */
.setup-hero, .employee-welcome {
  text-align: center;
  padding: 40px 20px;
  margin-bottom: 24px;
}
.hero-icon {
  width: 80px; height: 80px; border-radius: 20px;
  background: linear-gradient(135deg, rgba(72,167,219,0.1), rgba(54,36,86,0.1));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.setup-hero h2, .employee-welcome h2 { font-size: 24px; font-weight: 700; margin-bottom: 8px; color: var(--oa-deep-purple); }
.setup-hero p, .employee-welcome p { font-size: 15px; color: var(--text3); max-width: 600px; margin: 0 auto; line-height: 1.6; }

/* ========== FORMS ========== */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--oa-text); }
.form-group input, .form-group select, textarea {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--oa-border);
  border-radius: 8px; font-family: inherit; font-size: 14px;
  transition: var(--transition); background: white;
}
.form-group input:focus, .form-group select:focus, textarea:focus {
  outline: none; border-color: var(--oa-blue); box-shadow: 0 0 0 3px rgba(72,167,219,0.15);
}
textarea { resize: vertical; }

/* ========== BUTTONS ========== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--oa-blue), var(--oa-dark-blue));
  color: white; border: none; border-radius: 8px;
  font-family: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: var(--transition);
  box-shadow: 0 2px 8px rgba(72,167,219,0.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(72,167,219,0.4); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  background: white; color: var(--oa-text); border: 1.5px solid var(--oa-border);
  border-radius: 8px; font-family: inherit; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: var(--transition);
}
.btn-secondary:hover { border-color: var(--oa-blue); color: var(--oa-blue); }
.btn-add {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 16px; margin-top: 12px;
  background: rgba(72,167,219,0.08); color: var(--oa-blue);
  border: 1px dashed rgba(72,167,219,0.4); border-radius: 8px;
  font-family: inherit; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: var(--transition);
}
.btn-add:hover { background: rgba(72,167,219,0.15); border-color: var(--oa-blue); }
.btn-submit { padding: 14px 32px; font-size: 15px; }

/* ========== DYNAMIC LIST ITEMS ========== */
.dynamic-list { display: flex; flex-direction: column; gap: 12px; }
.list-item {
  display: flex; gap: 12px; align-items: flex-start;
  background: #f8fafc; border-radius: 10px; padding: 14px;
  border: 1px solid var(--oa-border);
  animation: slideIn 0.2s ease;
}
@keyframes slideIn { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: translateX(0); } }
.list-item-fields { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.list-item-fields input, .list-item-fields select {
  width: 100%; padding: 8px 12px; border: 1.5px solid var(--oa-border);
  border-radius: 6px; font-family: inherit; font-size: 13px; background: white;
  transition: var(--transition);
}
.list-item-fields input:focus, .list-item-fields select:focus {
  outline: none; border-color: var(--oa-blue); box-shadow: 0 0 0 3px rgba(72,167,219,0.12);
}
.inline-fields { display: flex; gap: 8px; flex-wrap: wrap; }
.mini-field { flex: 1; min-width: 100px; }
.mini-field label { display: block; font-size: 11px; font-weight: 600; color: var(--text3); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.remove-item-btn {
  width: 28px; height: 28px; border-radius: 6px;
  background: rgba(239,68,68,0.08); border: none;
  color: var(--oa-danger); font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); flex-shrink: 0;
}
.remove-item-btn:hover { background: rgba(239,68,68,0.15); }

/* ========== SECTION LABELS ========== */
.section-label { font-size: 15px; font-weight: 700; color: var(--oa-deep-purple); margin-bottom: 4px; }
.section-desc { font-size: 13px; color: var(--text3); margin-bottom: 16px; line-height: 1.5; }

/* ========== MULTI-STEP ========== */
.progress-bar-container {
  height: 4px; background: var(--oa-border); border-radius: 4px;
  margin-bottom: 12px; overflow: hidden;
}
.progress-bar {
  height: 100%; background: linear-gradient(90deg, var(--oa-blue), var(--oa-dark-blue));
  border-radius: 4px; transition: width 0.4s ease; width: 20%;
}
.step-indicator { font-size: 13px; color: var(--text3); margin-bottom: 24px; text-align: center; }
.step-header {
  display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px;
}
.step-number {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--oa-blue), var(--oa-dark-blue));
  color: white; font-weight: 700; font-size: 18px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.step-header h3 { font-size: 20px; font-weight: 700; color: var(--oa-deep-purple); }
.step-header p { font-size: 14px; color: var(--text3); margin-top: 4px; }
.step-nav { display: flex; justify-content: space-between; margin-top: 24px; }

/* ========== LINKS GRID ========== */
.links-grid { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.link-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; background: #f8fafc; border-radius: 8px;
  border: 1px solid var(--oa-border);
}
.link-row .link-label { font-weight: 600; font-size: 13px; min-width: 100px; }
.link-row .link-url {
  flex: 1; font-size: 13px; color: var(--oa-blue);
  word-break: break-all; font-family: 'SF Mono', Monaco, monospace;
}
.link-row .link-status {
  font-size: 12px; padding: 3px 10px; border-radius: 20px;
  font-weight: 600; white-space: nowrap;
}
.link-status.pending { background: rgba(245,158,11,0.1); color: var(--oa-warning); }
.link-status.submitted { background: rgba(16,185,129,0.1); color: var(--oa-success); }
.link-copy-btn {
  padding: 6px 12px; border-radius: 6px; background: var(--oa-blue);
  color: white; border: none; font-size: 12px; cursor: pointer;
  font-weight: 500; transition: var(--transition);
}
.link-copy-btn:hover { background: var(--oa-dark-blue); }
.link-actions { display: flex; gap: 12px; }

/* ========== SUCCESS SCREEN ========== */
.success-screen { text-align: center; padding: 60px 20px; }
.success-icon { margin-bottom: 20px; }
.success-screen h2 { font-size: 24px; color: var(--oa-deep-purple); margin-bottom: 12px; }
.success-screen p { font-size: 15px; color: var(--text3); max-width: 400px; margin: 0 auto; }

/* ========== DASHBOARD ========== */
.dashboard-header-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 20px; flex-wrap: wrap; gap: 16px;
}
.dash-title { font-size: 22px; font-weight: 700; color: var(--oa-deep-purple); }
.dash-subtitle { font-size: 14px; color: var(--text3); }
.dash-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.company-switch {
  padding: 8px 14px; border-radius: 8px; border: 1.5px solid var(--oa-border);
  font-family: inherit; font-size: 13px; background: white;
}

/* ========== STATS ROW ========== */
.stats-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px; margin-bottom: 24px;
}
.stat-card {
  background: white; border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow); text-align: center;
  border-top: 3px solid var(--oa-blue);
}
.stat-card.gold { border-top-color: var(--oa-gold); }
.stat-card.purple { border-top-color: var(--oa-deep-purple); }
.stat-card.green { border-top-color: var(--oa-success); }
.stat-card.red { border-top-color: var(--oa-danger); }
.stat-value { font-size: 32px; font-weight: 800; color: var(--oa-deep-purple); }
.stat-label { font-size: 12px; color: var(--text3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; }

/* ========== SUB TABS (horizontal, inside dashboard) ========== */
.sub-tabs {
  display: flex; gap: 0; margin-bottom: 20px;
  background: white; border-radius: 10px; padding: 4px;
  box-shadow: var(--shadow); overflow-x: auto;
}
.sub-tab {
  padding: 10px 18px; border-radius: 8px;
  background: none; border: none; font-family: inherit;
  font-size: 13px; font-weight: 500; color: var(--text3);
  cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.sub-tab:hover { color: var(--oa-text); background: #f8fafc; }
.sub-tab.active { background: linear-gradient(135deg, var(--oa-blue), var(--oa-dark-blue)); color: white; font-weight: 600; }
.subtab-panel { display: none; animation: fadeIn 0.3s ease; }
.subtab-panel.active { display: block; }

/* ========== HEAT MAP ========== */
.heat-map-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.heat-cell {
  padding: 16px; border-radius: 10px; text-align: center;
  transition: var(--transition); cursor: default;
}
.heat-cell h4 { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.heat-cell .heat-value { font-size: 24px; font-weight: 800; }
.heat-cell .heat-label { font-size: 11px; opacity: 0.8; margin-top: 2px; }
.heat-high { background: rgba(239,68,68,0.12); color: #dc2626; }
.heat-medium { background: rgba(245,158,11,0.12); color: #d97706; }
.heat-low { background: rgba(16,185,129,0.12); color: #059669; }

/* ========== DELEGATION CARDS ========== */
.delegation-cards { display: flex; flex-direction: column; gap: 16px; }
.delegation-card {
  background: white; border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow); display: flex; gap: 16px; align-items: flex-start;
  border-left: 4px solid var(--oa-blue);
}
.delegation-rank {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--oa-blue), var(--oa-dark-blue));
  color: white; font-weight: 700; font-size: 16px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.delegation-info { flex: 1; }
.delegation-info h4 { font-size: 15px; font-weight: 700; color: var(--oa-deep-purple); margin-bottom: 4px; }
.delegation-info p { font-size: 13px; color: var(--text3); margin-bottom: 8px; }
.delegation-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.del-tag {
  padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600;
}
.del-tag.hours { background: rgba(72,167,219,0.1); color: var(--oa-blue); }
.del-tag.people { background: rgba(54,36,86,0.1); color: var(--oa-deep-purple); }
.del-tag.savings { background: rgba(16,185,129,0.1); color: var(--oa-success); }
.del-tag.easy { background: rgba(253,195,41,0.15); color: #b45309; }

/* ========== AUTOMATION TABLE ========== */
.auto-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.auto-table th {
  text-align: left; padding: 10px 14px; font-size: 12px; font-weight: 700;
  color: #1a1a1a; text-transform: uppercase; letter-spacing: 0.5px;
  border-bottom: 2px solid var(--oa-border); background: #f8fafc;
}
.auto-table td {
  padding: 12px 14px; font-size: 13px; border-bottom: 1px solid var(--oa-border);
}
.auto-table tr:hover td { background: #f8fafc; }
.api-badge {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 600;
}
.api-badge.yes { background: rgba(16,185,129,0.1); color: var(--oa-success); }
.api-badge.no { background: rgba(239,68,68,0.1); color: var(--oa-danger); }
.api-badge.partial { background: rgba(245,158,11,0.1); color: var(--oa-warning); }

/* ========== ROI ========== */
.roi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.roi-input-card, .roi-result-card {
  background: white; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.roi-result-card { border-top: 4px solid var(--oa-success); }
.roi-big { font-size: 40px; font-weight: 900; color: var(--oa-success); }
.roi-breakdown { margin-top: 16px; }
.roi-line { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--oa-border); font-size: 14px; }
.roi-line:last-child { border-bottom: none; font-weight: 700; }

/* ========== VSM ========== */
.vsm-container { background: white; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.vsm-flow { display: flex; gap: 16px; overflow-x: auto; padding: 20px 0; align-items: flex-start; }
.vsm-node {
  min-width: 180px; background: #f8fafc; border-radius: 10px;
  padding: 16px; text-align: center; border: 2px solid var(--oa-border);
  flex-shrink: 0; position: relative;
}
.vsm-node.constraint { border-color: var(--oa-danger); background: rgba(239,68,68,0.04); }
.vsm-node.opportunity { border-color: var(--oa-success); background: rgba(16,185,129,0.04); }
.vsm-node h5 { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.vsm-node p { font-size: 11px; color: var(--text3); }
.vsm-node .vsm-time { font-size: 18px; font-weight: 800; color: var(--oa-deep-purple); margin: 8px 0; }
.vsm-arrow {
  display: flex; align-items: center; font-size: 24px; color: var(--oa-border);
  flex-shrink: 0; padding-top: 30px;
}

/* ========== TOOLS ========== */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.tool-card {
  background: white; border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); border: 1px solid var(--oa-border);
  transition: var(--transition); position: relative;
}
.tool-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.tool-card.featured { border: 2px solid var(--oa-blue); }
.tool-badge {
  position: absolute; top: -10px; right: 16px;
  background: var(--oa-blue); color: white; font-size: 11px;
  font-weight: 700; padding: 4px 12px; border-radius: 20px;
}
.tool-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.tool-header h3 { font-size: 17px; font-weight: 700; color: var(--oa-deep-purple); }
.tool-price { font-size: 13px; font-weight: 600; color: var(--oa-blue); }
.tool-desc { font-size: 13px; color: var(--text3); line-height: 1.5; margin-bottom: 12px; }
.tool-features { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.tool-feature { font-size: 13px; display: flex; align-items: center; gap: 6px; }
.tool-feature .check { color: var(--oa-success); font-weight: 700; }
.tool-feature .x { color: var(--oa-danger); font-weight: 700; }
.tool-api-note {
  font-size: 12px; color: var(--text3); background: #f8fafc;
  padding: 12px; border-radius: 8px; line-height: 1.5;
}
.tool-api-note code { background: rgba(72,167,219,0.1); padding: 2px 6px; border-radius: 4px; font-size: 11px; }
.recommendation-box {
  background: linear-gradient(135deg, rgba(54,36,86,0.04), rgba(72,167,219,0.04));
  border-radius: 10px; padding: 20px; border-left: 4px solid var(--oa-blue);
}
.recommendation-box p { font-size: 14px; color: var(--oa-text); line-height: 1.6; }

/* ========== TOAST ========== */
.toast {
  position: fixed; bottom: 30px; right: 30px;
  background: var(--oa-deep-purple); color: white;
  padding: 12px 24px; border-radius: 10px;
  font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-lg);
  transform: translateY(100px); opacity: 0;
  transition: all 0.3s ease; z-index: 1000;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ========== COMPANIES LIST ========== */
.company-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px; border-radius: 8px; background: #f8fafc;
  border: 1px solid var(--oa-border); margin-bottom: 8px;
}
.company-row-info h4 { font-size: 15px; font-weight: 600; }
.company-row-info p { font-size: 13px; color: var(--text3); }
.company-row-actions { display: flex; gap: 8px; }

/* ========== EXPORT MODAL ========== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 200; animation: fadeIn 0.2s ease;
}
.modal-box {
  background: white; border-radius: var(--radius); padding: 32px;
  max-width: 500px; width: 90%; box-shadow: var(--shadow-lg);
}
.modal-box h3 { margin-bottom: 16px; color: var(--oa-deep-purple); }

/* ========== EMPTY STATE ========== */
.empty-state { text-align: center; padding: 40px 20px; }

/* ========== RESPONSIVE — MOBILE ========== */
@media (max-width: 768px) {
  .app-header { padding: 12px 16px; }
  .header-title { font-size: 15px; }
  .header-subtitle { font-size: 10px; }
  .header-logo { height: 28px; }

  /* Show hamburger on mobile */
  .hamburger-btn {
    display: flex;
  }

  /* Sidebar becomes slide-out overlay on mobile */
  .sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    min-width: 280px;
    height: 100vh;
    z-index: 95;
    transition: left 0.3s ease;
    padding-top: 80px;
    box-shadow: none;
  }
  .sidebar.open {
    left: 0;
    box-shadow: 4px 0 24px rgba(0,0,0,0.15);
  }

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

  .main-content { padding: 16px 12px 40px; }

  .form-grid { grid-template-columns: 1fr; }
  .inline-fields { flex-direction: column; }
  .dashboard-header-row { flex-direction: column; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .roi-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .sub-tabs { flex-wrap: nowrap; }
  .sub-tab { padding: 8px 12px; font-size: 12px; }
  .link-row { flex-wrap: wrap; }
  .step-header { flex-direction: column; }
  .vsm-flow { flex-direction: column; align-items: stretch; }
  .vsm-arrow { transform: rotate(90deg); padding: 0; justify-content: center; }
}

@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr; }
  .stat-value { font-size: 28px; }
}
