/* ===== GROWTH OPS COMMAND CENTER ===== */
:root {
  --bg: #0a0c10;
  --bg2: #111318;
  --bg3: #1a1d24;
  --border: #2a2d36;
  --accent: #6366f1;
  --accent2: #8b5cf6;
  --green: #10b981;
  --yellow: #f59e0b;
  --red: #ef4444;
  --blue: #3b82f6;
  --text: #e2e8f0;
  --text2: #94a3b8;
  --text3: #64748b;
  --sheikh: #6366f1;
  --justin: #10b981;
  --jack: #f59e0b;
  --yiran: #ec4899;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.5;
}

.app { display: flex; min-height: 100vh; }

.sidebar {
  width: 220px;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  z-index: 100;
  overflow-y: auto;
}

.main {
  margin-left: 220px;
  flex: 1;
  padding: 32px;
}

.sidebar-logo {
  padding: 24px 20px 20px;
  border-bottom: 1px solid var(--border);
}

.logo-mark { display: flex; align-items: center; gap: 10px; }

.logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}

.logo-text { font-size: 15px; font-weight: 700; }
.logo-sub { font-size: 11px; color: var(--text3); margin-top: 2px; }

.sidebar-nav { padding: 16px 12px; flex: 1; }
.nav-section { margin-bottom: 24px; }

.nav-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 8px;
  margin-bottom: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text2);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
  margin-bottom: 2px;
  user-select: none;
}

.nav-item:hover { background: var(--bg3); color: var(--text); }
.nav-item.active { background: rgba(99,102,241,0.15); color: var(--accent); }
.nav-icon { font-size: 15px; width: 18px; text-align: center; }

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
}

.owner-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--bg3);
  border-radius: 8px;
}

.owner-avatar {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}

.owner-name { font-size: 13px; font-weight: 600; }
.owner-role { font-size: 11px; color: var(--text3); }

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
}

.page-title { font-size: 24px; font-weight: 700; }
.page-sub { font-size: 14px; color: var(--text2); margin-top: 4px; }
.header-actions { display: flex; gap: 10px; align-items: center; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.badge-green { background: rgba(16,185,129,0.15); color: var(--green); }
.badge-yellow { background: rgba(245,158,11,0.15); color: var(--yellow); }
.badge-red { background: rgba(239,68,68,0.15); color: var(--red); }
.badge-blue { background: rgba(59,130,246,0.15); color: var(--blue); }
.badge-purple { background: rgba(99,102,241,0.15); color: var(--accent); }

.section { display: none; }
.section.active { display: block; }

/* FUNNEL */
.funnel-container {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px;
}

.funnel-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.funnel-stages {
  display: flex;
  align-items: stretch;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.funnel-stage { flex: 1; min-width: 100px; position: relative; }

.stage-inner {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 10px;
  text-align: center;
  height: 100%;
  transition: all 0.2s;
}

.stage-inner:hover { border-color: var(--accent); background: rgba(99,102,241,0.05); }

.stage-icon { font-size: 18px; margin-bottom: 6px; }
.stage-name { font-size: 10px; color: var(--text3); font-weight: 500; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.stage-value { font-size: 20px; font-weight: 700; margin-bottom: 2px; }
.stage-sub { font-size: 10px; color: var(--text3); }

.stage-owner {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 8px;
  padding: 2px 7px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
}

.owner-sheikh { background: rgba(99,102,241,0.15); color: var(--sheikh); }
.owner-justin { background: rgba(16,185,129,0.15); color: var(--justin); }
.owner-jack { background: rgba(245,158,11,0.15); color: var(--jack); }
.owner-yiran { background: rgba(236,72,153,0.15); color: var(--yiran); }

.conversion-rate { font-size: 10px; color: var(--green); font-weight: 600; margin-top: 4px; }

.funnel-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text3);
  font-size: 14px;
  padding-top: 20px;
  flex-shrink: 0;
}

/* CHANNELS */
.channels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.channel-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

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

.channel-name { font-size: 13px; font-weight: 600; }
.channel-icon { font-size: 20px; }
.channel-uv { font-size: 28px; font-weight: 700; margin-bottom: 4px; }
.channel-label { font-size: 11px; color: var(--text3); }

.channel-bar {
  height: 4px;
  background: var(--bg3);
  border-radius: 2px;
  margin-top: 12px;
  overflow: hidden;
}

.channel-bar-fill { height: 100%; border-radius: 2px; transition: width 0.8s ease; }
.channel-direct .channel-bar-fill { background: var(--sheikh); }
.channel-paid .channel-bar-fill { background: var(--yiran); }
.channel-referral .channel-bar-fill { background: var(--green); }
.channel-affiliate .channel-bar-fill { background: var(--blue); }

/* METRICS */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.metric-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.metric-label { font-size: 12px; color: var(--text3); font-weight: 500; margin-bottom: 8px; }
.metric-value { font-size: 26px; font-weight: 700; margin-bottom: 4px; }
.metric-change { font-size: 12px; display: flex; align-items: center; gap: 4px; }
.change-up { color: var(--green); }
.change-down { color: var(--red); }

/* TEAM */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.team-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.team-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.member-avatar {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700;
}

.member-name { font-size: 16px; font-weight: 700; }
.member-title { font-size: 12px; color: var(--text3); margin-top: 2px; }

.member-domain {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 6px;
}

.kpi-list { display: flex; flex-direction: column; gap: 8px; }

.kpi-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg3);
  border-radius: 8px;
}

.kpi-name { font-size: 12px; color: var(--text2); font-weight: 500; }
.kpi-value { font-size: 14px; font-weight: 700; }
.kpi-pending { font-size: 11px; color: var(--text3); font-style: italic; }

/* TASKS */
.tasks-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.tasks-filters { display: flex; gap: 8px; }

.filter-btn {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text2);
  transition: all 0.15s;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.task-list { display: flex; flex-direction: column; gap: 10px; }

.task-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.15s;
}

.task-item:hover { border-color: var(--accent); }
.task-item.hidden { display: none; }

.task-priority {
  width: 4px;
  height: 40px;
  border-radius: 2px;
  flex-shrink: 0;
}

.priority-high { background: var(--red); }
.priority-med { background: var(--yellow); }
.priority-low { background: var(--green); }

.task-content { flex: 1; }
.task-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.task-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.task-metric { font-size: 11px; color: var(--text3); }

.task-right { display: flex; align-items: center; gap: 12px; }

.progress-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }

.progress-bar {
  width: 80px;
  height: 4px;
  background: var(--bg3);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill { height: 100%; border-radius: 2px; background: var(--accent); }
.progress-text { font-size: 11px; color: var(--text3); }

/* MEETINGS */
.meetings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.meeting-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

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

.meeting-title { font-size: 15px; font-weight: 600; }
.meeting-freq { font-size: 11px; color: var(--text3); margin-top: 3px; }

.meeting-attendees {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.attendee-chip {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
}

.agenda-list { display: flex; flex-direction: column; gap: 6px; }

.agenda-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text2);
  padding: 6px 10px;
  background: var(--bg3);
  border-radius: 6px;
}

.agenda-num {
  width: 18px; height: 18px;
  background: var(--bg);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
  color: var(--text3);
  flex-shrink: 0;
}

/* OVERVIEW */
.overview-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.health-card, .quick-stats {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.health-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.health-items { display: flex; flex-direction: column; gap: 12px; }

.health-item { display: flex; align-items: center; gap: 12px; }

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

.health-dot-green { background: var(--green); box-shadow: 0 0 6px var(--green); }
.health-dot-yellow { background: var(--yellow); box-shadow: 0 0 6px var(--yellow); }
.health-dot-red { background: var(--red); box-shadow: 0 0 6px var(--red); }

.health-name { font-size: 13px; font-weight: 500; flex: 1; }
.health-owner { font-size: 11px; color: var(--text3); }
.health-val { font-size: 13px; font-weight: 600; }

.quick-stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.quick-stat-item:last-child { border-bottom: none; }
.quick-stat-label { font-size: 11px; color: var(--text3); }
.quick-stat-value { font-size: 20px; font-weight: 700; }
.quick-stat-change { font-size: 11px; }

.data-pending {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text3);
  background: var(--bg3);
  padding: 2px 8px;
  border-radius: 4px;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

@media (max-width: 1200px) {
  .channels-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .overview-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .sidebar { width: 60px; }
  .sidebar .logo-text, .sidebar .logo-sub, .sidebar .nav-item span,
  .sidebar .nav-label, .sidebar .owner-name, .sidebar .owner-role { display: none; }
  .main { margin-left: 60px; padding: 20px; }
  .team-grid { grid-template-columns: 1fr; }
  .meetings-grid { grid-template-columns: 1fr; }
}
