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

/* ========================
   THEME VARIABLES
   ======================== */
:root {
  --bg: #000;
  --bg-card: #1a1a1f;
  --bg-card-hover: #222228;
  --bg-input: #2a2a30;
  --text: #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-muted: #6e6e73;
  --brand: #7c3aed;
  --brand-light: #8b5cf6;
  --brand-bg: rgba(124, 58, 237, 0.1);
  --success: #30d158;
  --success-bg: rgba(48, 209, 88, 0.1);
  --warning: #ffd60a;
  --warning-bg: rgba(255, 214, 10, 0.1);
  --danger: #ff453a;
  --danger-bg: rgba(255, 69, 58, 0.1);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --shadow: rgba(0, 0, 0, 0.4);
  --overlay: rgba(0, 0, 0, 0.6);
  --tooltip-bg: #2a2a30;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
}

[data-theme="light"] {
  --bg: #f5f6fa;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f1f5;
  --bg-input: #eef0f4;
  --text: #1a1a2e;
  --text-secondary: #6b6b80;
  --text-muted: #9b9bb0;
  --brand: #7c3aed;
  --brand-light: #8b5cf6;
  --brand-bg: rgba(124, 58, 237, 0.08);
  --success: #30d158;
  --success-bg: rgba(48, 209, 88, 0.1);
  --warning: #e6a600;
  --warning-bg: rgba(255, 214, 10, 0.1);
  --danger: #ff453a;
  --danger-bg: rgba(255, 69, 58, 0.1);
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.14);
  --shadow: rgba(0, 0, 0, 0.08);
  --overlay: rgba(0, 0, 0, 0.4);
  --tooltip-bg: #1a1a2e;
}

/* ========================
   RESET & BASE
   ======================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ========================
   HEADER
   ======================== */
.portal-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.portal-header .header-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex-shrink: 0;
}

.portal-header .header-info { flex: 1; min-width: 0; }
.portal-header .header-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.portal-header .header-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.header-right { display: flex; align-items: center; gap: 10px; }

/* Theme toggle */
.theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 16px;
  transition: all 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover { background: var(--bg-card-hover); color: var(--text); border-color: var(--border-hover); }

/* Live badge */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 10px;
  border-radius: 20px;
  flex-shrink: 0;
}
.live-badge.active { color: var(--success); background: var(--success-bg); }
.live-badge.active::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse-dot 1.5s ease-in-out infinite;
}
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ========================
   TAB BAR
   ======================== */
.tab-bar {
  display: flex;
  gap: 2px;
  padding: 8px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.tab-bar::-webkit-scrollbar { display: none; }

.tab-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.tab-btn:hover { color: var(--text); background: var(--bg-card-hover); }
.tab-btn.active {
  color: var(--brand);
  background: var(--brand-bg);
  border-color: rgba(124, 58, 237, 0.2);
  font-weight: 600;
}
.tab-btn .tab-icon { font-size: 14px; }

/* ========================
   CONTAINER
   ======================== */
.container { max-width: 960px; margin: 0 auto; padding: 40px 48px; }

/* ========================
   WELCOME CARD
   ======================== */
.welcome-card {
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.welcome-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 20%, rgba(255,255,255,0.12) 0%, transparent 55%);
  pointer-events: none;
}
.welcome-card h1 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
  position: relative;
  color: #fff;
}
.welcome-card p { font-size: 13px; opacity: 0.85; position: relative; color: #fff; }
.welcome-card .welcome-meta {
  margin-top: 10px;
  font-size: 11px;
  opacity: 0.65;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}

/* Refresh button in welcome card */
.refresh-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
  flex-shrink: 0;
}
.refresh-btn:hover { background: rgba(255,255,255,0.25); }
.refresh-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.refresh-btn #refresh-icon { display: flex; align-items: center; justify-content: center; }

/* ========================
   SECTION LABELS
   ======================== */
.section-title {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ========================
   KPI GRID
   ======================== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}
@media (max-width: 700px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .kpi-grid { grid-template-columns: 1fr 1fr 1fr; } }

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 14px 14px;
  position: relative;
  transition: all 0.2s;
}
.kpi-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--shadow);
}
.kpi-value {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 3px;
  line-height: 1.1;
}
.kpi-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* KPI color variants */
.kpi-green .kpi-value { color: var(--success); }
.kpi-yellow .kpi-value { color: var(--warning); }
.kpi-red .kpi-value { color: var(--danger); }

/* KPI info icon */
.kpi-info {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--text-muted);
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.kpi-info:hover { opacity: 1; }

/* Tooltip */
.kpi-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  max-width: 220px;
  width: max-content;
  background: var(--tooltip-bg);
  color: var(--text);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 11px;
  line-height: 1.5;
  z-index: 9999;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  pointer-events: none;
  word-wrap: break-word;
  white-space: normal;
}
.kpi-tooltip::before {
  content: '';
  position: absolute;
  bottom: -5px;
  right: 10px;
  width: 8px;
  height: 8px;
  background: var(--tooltip-bg);
  border-right: 1px solid var(--border-hover);
  border-bottom: 1px solid var(--border-hover);
  transform: rotate(45deg);
}
.kpi-card:hover .kpi-tooltip { display: block; }

/* ========================
   CARDS
   ======================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}
.card-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-title { font-size: 13px; font-weight: 600; }
.card-body { padding: 22px 24px; }

/* Status rows */
.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.status-row:last-child { border-bottom: none; }
.status-label { font-size: 13px; color: var(--text-secondary); }
.status-value { font-size: 13px; font-weight: 600; }

/* Stage badges */
.stage-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.stage-research { background: rgba(0,122,255,0.12); color: #0a84ff; }
.stage-strategy { background: rgba(139,92,246,0.12); color: #8b5cf6; }
.stage-creative { background: rgba(255,159,10,0.1); color: var(--warning); }
.stage-live, .stage-optimization, .stage-scaling { background: var(--success-bg); color: var(--success); }

/* Progress bars */
.progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 20px;
  overflow: hidden;
  margin-top: 8px;
}
.progress-fill {
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  transition: width 0.8s ease;
}
.progress-fill.green { background: linear-gradient(90deg, var(--success), #4ade80); }
.progress-fill.yellow { background: linear-gradient(90deg, var(--warning), #fde047); }

/* Content item */
.content-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.content-item:last-child { border-bottom: none; }
.content-label { font-size: 13px; color: var(--text-secondary); }
.content-count { font-size: 13px; font-weight: 700; }
.content-count.done { color: var(--success); }
.content-count.pending { color: var(--text-muted); }

/* ========================
   CLOSING TEAM PERFORMANCE
   ======================== */
.closing-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.closing-metric {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  text-align: center;
}
.closing-metric .metric-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 4px;
}
.closing-metric .metric-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}
.closing-metric .metric-note {
  font-size: 10px;
  color: var(--text-muted);
}
@media (max-width: 600px) {
  .closing-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================
   PERFORMANCE TAB
   ======================== */
.view-toggle-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
  width: fit-content;
}
.view-toggle-btn {
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.view-toggle-btn.active {
  background: var(--brand);
  color: white;
}

.date-range-bar {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
}
.date-btn {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
}
.date-btn.active {
  background: var(--brand-bg);
  color: var(--brand);
  border-color: rgba(124,58,237,0.3);
}

/* Bar chart */
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 80px;
  margin-bottom: 8px;
  padding: 0 2px;
}
.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.bar-fill {
  width: 100%;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--brand-light), var(--brand));
  transition: height 0.5s ease;
  min-height: 2px;
  cursor: pointer;
}
.bar-fill:hover { opacity: 0.8; }
.bar-label { font-size: 9px; color: var(--text-muted); text-align: center; }

.chart-spend-total {
  text-align: right;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* Campaign table */
.campaign-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.campaign-table th {
  text-align: left;
  padding: 8px 10px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-size: 10px;
  border-bottom: 1px solid var(--border);
}
.campaign-table td {
  padding: 10px 10px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.campaign-table tr:last-child td { border-bottom: none; }
.campaign-table tr:hover td { background: var(--bg-card-hover); }
.campaign-table .camp-name { font-weight: 600; color: var(--text); font-size: 13px; }
.campaign-table .camp-spend { font-weight: 700; color: var(--text); }

/* Instagram grid */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
@media (max-width: 500px) { .ig-grid { grid-template-columns: repeat(2, 1fr); } }
.ig-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-card-hover);
  cursor: pointer;
  transition: transform 0.2s;
}
.ig-thumb:hover { transform: scale(2.5); z-index: 10; }
.ig-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ig-thumb .ig-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: flex-end;
  padding: 6px;
  opacity: 0;
  transition: opacity 0.2s;
}
.ig-thumb:hover .ig-overlay { opacity: 1; }
.ig-stats { color: white; font-size: 10px; font-weight: 600; display: flex; gap: 6px; }

/* IG Performance Summary Grid */
.ig-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
@media (max-width: 700px) { .ig-summary-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 400px) { .ig-summary-grid { grid-template-columns: repeat(2, 1fr); } }

.ig-summary-kpi {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  text-align: center;
  transition: all 0.2s;
}
.ig-summary-kpi:hover { border-color: var(--border-hover); transform: translateY(-1px); }
.ig-summary-value {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 2px;
  line-height: 1.1;
}
.ig-summary-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
}

/* IG Reach Bar Chart */
.ig-chart-container {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 120px;
  padding: 0 2px;
}
.ig-chart-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  justify-content: flex-end;
}
.ig-chart-bar {
  width: 100%;
  min-height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--brand-light), var(--brand));
  transition: height 0.6s ease;
  cursor: pointer;
  position: relative;
}
.ig-chart-bar:hover { opacity: 0.8; }
.ig-chart-bar::after {
  content: attr(title);
  display: none;
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--tooltip-bg);
  color: var(--text);
  font-size: 10px;
  padding: 3px 6px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
}
.ig-chart-bar-wrap:hover .ig-chart-bar::after { display: block; }
.ig-chart-date {
  font-size: 9px;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
}

/* IG Post Rows */
.ig-post-row:hover td { background: var(--bg-card-hover); }

/* ========================
   GOALS TAB
   ======================== */
.goal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  transition: all 0.2s;
}
.goal-card:hover { border-color: var(--border-hover); }
.goal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.goal-name { font-size: 14px; font-weight: 600; }
.goal-pct { font-size: 12px; font-weight: 700; color: var(--brand); }
.goal-meta { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.goal-badge {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 2px 8px;
  border-radius: 10px;
}
.goal-badge.leads { background: rgba(0,122,255,0.1); color: #0a84ff; }
.goal-badge.revenue { background: var(--success-bg); color: var(--success); }
.goal-badge.content { background: var(--warning-bg); color: var(--warning); }
.goal-badge.spend { background: var(--brand-bg); color: var(--brand); }

/* ========================
   AI SPECIALIST
   ======================== */
.ai-trigger {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: white;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(124,58,237,0.4);
  z-index: 500;
  transition: all 0.3s;
  border: none;
}
.ai-trigger:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(124,58,237,0.5); }
.ai-trigger.active { background: var(--text-muted); }

/* AI Modal */
.ai-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--overlay);
  z-index: 600;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0 20px 20px;
}
.ai-modal.open { display: flex; }

.ai-panel {
  width: 400px;
  max-width: 100%;
  height: 560px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@media (max-width: 440px) {
  .ai-modal { padding: 0; align-items: flex-end; }
  .ai-panel { width: 100%; border-radius: var(--radius-lg) var(--radius-lg) 0 0; height: 75vh; }
}
@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.ai-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.ai-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.ai-header-info .ai-name { font-size: 14px; font-weight: 700; }
.ai-header-info .ai-sub { font-size: 10px; color: var(--text-muted); }
.ai-close {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.ai-close:hover { background: var(--bg-card-hover); color: var(--text); }

.ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.ai-messages::-webkit-scrollbar { width: 4px; }
.ai-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.ai-msg {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.55;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.ai-msg.user {
  align-self: flex-end;
  background: var(--brand);
  color: white;
  border-bottom-right-radius: 4px;
}
.ai-msg.bot {
  align-self: flex-start;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.ai-msg .msg-time { font-size: 9px; opacity: 0.5; margin-top: 4px; display: block; }

.ai-typing {
  align-self: flex-start;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 10px 14px;
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  font-size: 13px;
}
.ai-typing::after { content: ''; animation: dots 1.2s steps(4, end) infinite; }
@keyframes dots { 0%,20% { content: ''; } 40% { content: '.'; } 60% { content: '..'; } 80%,100% { content: '...'; } }

.ai-footer {
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.ai-input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text);
  resize: none;
  font-family: inherit;
  max-height: 100px;
  outline: none;
  transition: border-color 0.2s;
}
.ai-input:focus { border-color: var(--brand); }
.ai-input::placeholder { color: var(--text-muted); }
.ai-send {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: white;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
  border: none;
}
.ai-send:hover { background: var(--brand-light); transform: scale(1.05); }
.ai-send:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* ========================
   FEEDBACK WIDGET
   ======================== */
.feedback-section {
  margin-top: 24px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.feedback-toggle {
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s;
  background: none;
  border: none;
  font-family: inherit;
}
.feedback-toggle:hover { color: var(--text-secondary); }
.feedback-panel { display: none; margin-top: 12px; }
.feedback-panel.open { display: block; }
.feedback-panel textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text);
  font-family: inherit;
  resize: vertical;
  min-height: 80px;
  outline: none;
  transition: border-color 0.2s;
}
.feedback-panel textarea:focus { border-color: var(--brand); }
.feedback-panel textarea::placeholder { color: var(--text-muted); }
.feedback-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.feedback-char { font-size: 10px; color: var(--text-muted); }
.feedback-submit {
  padding: 7px 16px;
  background: var(--brand);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all 0.2s;
}
.feedback-submit:hover { background: var(--brand-light); }
.feedback-submit:disabled { opacity: 0.4; cursor: not-allowed; }
.feedback-success {
  font-size: 12px;
  color: var(--success);
  margin-top: 8px;
  display: none;
}

/* ========================
   NO DATA / LOADING
   ======================== */
.no-data {
  text-align: center;
  padding: 28px;
  color: var(--text-muted);
  font-size: 13px;
}
.no-data svg { margin-bottom: 8px; opacity: 0.4; }

.loading-state {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
}
.spinner {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 2.5px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 10px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.error-state {
  background: var(--danger-bg);
  border: 1px solid rgba(255,69,58,0.2);
  border-radius: var(--radius);
  padding: 16px;
  font-size: 13px;
  color: var(--danger);
  text-align: center;
}

/* ========================
   FOOTER
   ======================== */
.portal-footer {
  text-align: center;
  padding: 20px;
  font-size: 10px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  margin-top: 32px;
}

/* ========================
   GOALS EDIT MODAL
   ======================== */
.goals-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--overlay);
  z-index: 700;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.goals-modal-overlay.open { display: flex; }

.goals-modal-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.goals-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}
.goals-modal-title { font-size: 16px; font-weight: 700; }
.goals-modal-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.goals-modal-close {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s; flex-shrink: 0;
}
.goals-modal-close:hover { background: var(--bg-card-hover); color: var(--text); }

.goals-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.goals-modal-body::-webkit-scrollbar { width: 4px; }
.goals-modal-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.goals-modal-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
  background: var(--bg);
}

/* ========================
   UTILITIES
   ======================== */
.hide { display: none !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger { color: var(--danger) !important; }
.font-mono { font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace; font-size: 12px; }

/* Page transitions */
.tab-content {
  padding: 32px 48px;
  animation: tabFadeIn 0.3s ease;
}
@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Thin scrollbar for tables */
.table-scroll { overflow-x: auto; }
.table-scroll::-webkit-scrollbar { height: 3px; }
.table-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ========================
   CONTENT TAB
   ======================== */

/* File preview modal overlay */
#client-file-modal {
  backdrop-filter: blur(4px);
}

#c-preview-body h1 { font-size:22px;font-weight:700;margin:0 0 16px;color:var(--text);border-bottom:1px solid var(--border);padding-bottom:12px }
#c-preview-body h2 { font-size:17px;font-weight:600;margin:24px 0 10px;color:var(--text) }
#c-preview-body h3 { font-size:14px;font-weight:600;margin:16px 0 8px;color:var(--text) }
#c-preview-body p { margin:0 0 12px;line-height:1.75 }
#c-preview-body ul, #c-preview-body ol { margin:0 0 12px;padding-left:22px }
#c-preview-body li { margin-bottom:4px;line-height:1.65 }
#c-preview-body code { background:var(--bg);padding:2px 6px;border-radius:4px;font-size:12px }
#c-preview-body pre { background:var(--bg);border:1px solid var(--border);border-radius:8px;padding:14px;overflow-x:auto;margin:0 0 14px;font-size:12px;line-height:1.6 }
#c-preview-body blockquote { border-left:3px solid var(--brand);margin:0 0 12px;padding:8px 16px;background:var(--brand-bg);border-radius:0 6px 6px 0;color:var(--text-secondary) }
#c-preview-body table { width:100%;border-collapse:collapse;margin:0 0 14px;font-size:13px }
#c-preview-body th { background:var(--bg);padding:8px 12px;text-align:left;font-weight:600;border-bottom:2px solid var(--border) }
#c-preview-body td { padding:8px 12px;border-bottom:1px solid var(--border) }
#c-preview-body strong { font-weight:600;color:var(--text) }
#c-preview-body hr { border:none;border-top:1px solid var(--border);margin:20px 0 }

/* Content Machine grid */
.cm-file-btn {
  display:flex;align-items:center;gap:10px;padding:12px 14px;
  background:var(--bg);border:1px solid var(--border);border-radius:10px;
  cursor:pointer;transition:all 0.2s ease;color:var(--text);
}
.cm-file-btn:hover { border-color:var(--brand); }
.cm-file-btn .file-icon {
  width:36px;height:36px;min-width:36px;border-radius:8px;
  display:flex;align-items:center;justify-content:center;
}

/* Post row hover */
.post-row-client:hover td { background:var(--bg-card-hover); }
.ig-post-row:hover td { background:var(--bg-card-hover); }

/* Post thumbnail hover effect */
.post-thumb-client {
  width:44px;height:44px;border-radius:8px;object-fit:cover;
  background:var(--bg);border:1px solid var(--border);
  cursor:pointer;transition:transform 0.2s ease;
}
.post-thumb-client:hover { transform:scale(2.5); }

/* Content tab responsive */
@media (max-width: 700px) {
  #tab-content .grid-2 { grid-template-columns: 1fr; }
}

/* Client content tab grid for output tracker */
.client-output-grid {
  display:grid;grid-template-columns:1fr 1fr;gap:10px;
}

/* ========================
   CONTENT TAB DASHBOARD STYLES
   ======================== */

/* Grid layout */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 700px) {
  .grid-2 { grid-template-columns: 1fr; }
}

/* Margin bottom */
.mb-6 { margin-bottom: 24px; }

/* Text utilities */
.text-xs { font-size: 11px; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }

/* Button styles from dashboard */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-family: inherit;
}
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-secondary {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}
.btn-primary {
  background: var(--brand);
  color: white;
}
.btn-primary:hover {
  background: var(--brand-light);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover {
  color: var(--text);
  background: var(--bg-card-hover);
}

/* Table wrapper */
.table-wrapper {
  overflow-x: auto;
}
.table-wrapper table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.table-wrapper th {
  text-align: left;
  padding: 8px 10px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-size: 10px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table-wrapper td {
  padding: 10px 10px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: middle;
}
.table-wrapper tr:last-child td { border-bottom: none; }
.table-wrapper tr:hover td { background: var(--bg-card-hover); }

/* Card styles (enhancements) */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}
.card-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.card-title { font-size: 13px; font-weight: 600; }
.card-body { padding: 22px 24px; }

/* Post thumbnail in table */
.post-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--bg);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.2s ease;
}
.post-thumb:hover { transform: scale(2.5); z-index: 100; box-shadow: 0 8px 24px rgba(0,0,0,0.3); }

/* Post row hover */
.post-row:hover { background: var(--bg-card-hover); }

/* Badge styles */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.badge-purple { background: var(--brand-bg); color: var(--brand); }
.badge-green { background: var(--success-bg); color: var(--success); }

/* Font mono */
.font-mono {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 12px;
}

/* Kpi grid for performance summary */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 500px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }

.kpi-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
  transition: all 0.2s;
}
.kpi-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
}
.kpi-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.kpi-value {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.1;
}

/* Tabs style for account switching */
.tabs {
  display: inline-flex;
  gap: 2px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px;
}
.tabs .tab {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.tabs .tab:hover {
  color: var(--text);
}
.tabs .tab.active {
  background: var(--brand);
  color: white;
}

/* ========================
   CONTENT MACHINE (Agency Dashboard Style)
   ======================== */

/* CM Card */
.cm-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}
.cm-card[style*="border: 2px"] {
  border-color: var(--brand) !important;
}
.cm-card-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.cm-card-title { font-size: 13px; font-weight: 600; color: var(--text); }
.cm-card-body { padding: 16px; }

/* CM Label */
.cm-label { font-size: 11px; color: var(--text-muted); }

/* CM Badge */
.cm-badge { font-size: 11px; color: var(--text-muted); background: var(--bg); padding: 2px 8px; border-radius: 4px; border: 1px solid var(--border); }

/* CM Refresh Button */
.cm-refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}
.cm-refresh-btn:hover { background: var(--bg-card-hover); border-color: var(--border-hover); }

/* CM Grid */
.cm-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 700px) { .cm-grid-2 { grid-template-columns: 1fr; } }

/* CM Table Wrapper */
.cm-table-wrapper { overflow-x: auto; }
.cm-table-wrapper table { width: 100%; border-collapse: collapse; font-size: 12px; }
.cm-table-wrapper th {
  text-align: left; padding: 8px 10px;
  color: var(--text-muted); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.3px; font-size: 10px;
  border-bottom: 1px solid var(--border);
}
.cm-table-wrapper td { padding: 10px 10px; border-bottom: 1px solid var(--border); color: var(--text-secondary); vertical-align: middle; }
.cm-table-wrapper tr:last-child td { border-bottom: none; }
.cm-table-wrapper tr:hover td { background: var(--bg-card-hover); }

/* CM Post Thumb */
.cm-post-thumb {
  width: 44px; height: 44px; border-radius: 8px; object-fit: cover;
  background: var(--bg); border: 1px solid var(--border);
  cursor: pointer; transition: transform 0.2s ease;
}
.cm-post-thumb:hover { transform: scale(2.5); z-index: 100; box-shadow: 0 8px 24px rgba(0,0,0,0.3); }

/* CM Badge/Tag */
.cm-tag { display: inline-flex; padding: 2px 8px; border-radius: 10px; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.cm-tag-purple { background: var(--brand-bg); color: var(--brand); }

/* CM Font Mono */
.cm-mono { font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace; font-size: 12px; }

/* CM KPI Grid */
.cm-kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cm-kpi-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; text-align: center; transition: all 0.2s; }
.cm-kpi-card:hover { border-color: var(--border-hover); transform: translateY(-1px); }
.cm-kpi-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-muted); margin-bottom: 4px; }
.cm-kpi-value { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); line-height: 1.1; }

/* CM AI Analysis */
.cm-ai-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.cm-ai-placeholder {
  padding: 32px;
  text-align: center;
}
.cm-ai-icon {
  width: 56px; height: 56px;
  background: var(--brand-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--brand);
}
.cm-ai-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.cm-ai-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; max-width: 400px; margin-left: auto; margin-right: auto; }
.cm-ai-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--brand);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 12px;
}
.cm-ai-btn:hover { background: var(--brand-light); }
.cm-ai-cost { font-size: 11px; color: var(--text-muted); }

/* CM Output Tracker */
.cm-tracker-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.2s ease;
  margin-bottom: 10px;
}
.cm-tracker-item:last-child { margin-bottom: 0; }
.cm-tracker-item:hover { transform: translateY(-2px); }
.cm-tracker-icon {
  width: 44px; height: 44px; min-width: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  border: 1px solid;
}
.cm-tracker-content { flex: 1; min-width: 0; }
.cm-tracker-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.cm-tracker-label { font-size: 12px; font-weight: 600; color: var(--text); }
.cm-tracker-count {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 12px; font-weight: 700;
  padding: 2px 8px; border-radius: 6px;
}
.cm-tracker-bar { height: 8px; background: var(--bg-card-hover); border-radius: 6px; overflow: hidden; }
.cm-tracker-fill { height: 100%; border-radius: 6px; transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes slideRight { 0% { transform: translateX(-20px); } 100% { transform: translateX(40px); } }

/* CM Modal */
.cm-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cm-modal.open { display: flex; }
.cm-modal-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 700px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}
.cm-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.cm-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

/* CM Files Grid */
.cm-file-hero {
  background: linear-gradient(135deg, var(--brand), #3d2c76);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.cm-file-hero-label { color: white; }
.cm-file-hero-title { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.cm-file-hero-sub { font-size: 11px; opacity: 0.7; }
.cm-file-hero-btn {
  background: white;
  color: var(--brand);
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cm-files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.cm-file-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.cm-file-btn:hover { border-color: var(--brand); }
.cm-file-icon {
  width: 36px; height: 36px; min-width: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.cm-file-label { font-size: 12px; font-weight: 600; line-height: 1.3; }
.cm-file-size { font-size: 10px; color: var(--text-muted); margin-top: 2px; }
.cm-file-ready { width: 6px; height: 6px; border-radius: 50%; background: #30d158; flex-shrink: 0; }
.cm-stats-bar { font-size: 11px; color: var(--text-muted); margin-top: 8px; }
