/* ═══════════════════════════════════════════════════════════════
   DiscoveryMax Client Portal — Design System
   Brand: Deep navy + electric blue + white accents
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Brand Colors */
  --dm-navy: #0B1426;
  --dm-dark: #111827;
  --dm-card: #1A2332;
  --dm-card-hover: #1F2B3D;
  --dm-border: #2A3A4E;
  --dm-border-light: #374B63;
  --dm-blue: #2563EB;
  --dm-blue-light: #3B82F6;
  --dm-blue-glow: rgba(37, 99, 235, 0.15);
  --dm-purple: #7C3AED;
  --dm-purple-glow: rgba(124, 58, 237, 0.15);
  --dm-green: #10B981;
  --dm-green-glow: rgba(16, 185, 129, 0.15);
  --dm-orange: #F59E0B;
  --dm-orange-glow: rgba(245, 158, 11, 0.15);
  --dm-red: #EF4444;
  --dm-yellow: #EAB308;
  --dm-cyan: #06B6D4;
  --dm-text: #F1F5F9;
  --dm-text-secondary: #94A3B8;
  --dm-text-muted: #64748B;
  --dm-sidebar: 260px;
  --dm-radius: 12px;
  --dm-radius-sm: 8px;
  --dm-shadow: 0 4px 6px -1px rgba(0,0,0,0.3), 0 2px 4px -2px rgba(0,0,0,0.2);
  --dm-shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.4), 0 8px 10px -6px rgba(0,0,0,0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--dm-navy);
  color: var(--dm-text);
  overflow-x: hidden;
}
a { color: var(--dm-blue-light); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── AUTH SCREEN ─── */
.auth-screen {
  display: flex;
  min-height: 100vh;
}
.auth-container {
  width: 480px;
  min-height: 100vh;
  background: var(--dm-dark);
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.auth-brand {
  text-align: center;
  margin-bottom: 40px;
}
.auth-logo {
  width: auto;
  height: 64px;
  max-width: 200px;
  margin-bottom: 16px;
  border-radius: 16px;
  object-fit: contain;
}
.auth-brand h1 {
  font-size: 28px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--dm-blue-light), var(--dm-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-tagline {
  color: var(--dm-text-secondary);
  font-size: 14px;
  margin-top: 4px;
}
.auth-form h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}
.auth-subtitle {
  color: var(--dm-text-secondary);
  font-size: 14px;
  margin-bottom: 24px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--dm-text-secondary);
  margin-bottom: 6px;
}
.form-group input, .form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--dm-card);
  border: 1px solid var(--dm-border);
  border-radius: var(--dm-radius-sm);
  color: var(--dm-text);
  font-size: 14px;
  transition: all 0.2s;
  outline: none;
}
.form-group input:focus {
  border-color: var(--dm-blue);
  box-shadow: 0 0 0 3px var(--dm-blue-glow);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--dm-red);
  padding: 10px 14px;
  border-radius: var(--dm-radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
}
.auth-switch {
  text-align: center;
  color: var(--dm-text-muted);
  font-size: 13px;
  margin-top: 20px;
}
.auth-bg-art {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--dm-navy) 0%, #0F1D36 30%, #1A0B2E 70%, var(--dm-navy) 100%);
}
.auth-bg-text {
  position: relative;
  z-index: 1;
  max-width: 500px;
  padding: 48px;
}
.auth-bg-text h2 {
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff, var(--dm-blue-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-bg-text p {
  color: var(--dm-text-secondary);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 32px;
}
.auth-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.auth-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dm-text);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 14px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--dm-radius-sm);
  border: 1px solid rgba(255,255,255,0.08);
}

/* ─── BUTTONS ─── */
.btn {
  padding: 12px 24px;
  border-radius: var(--dm-radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--dm-blue), var(--dm-blue-light));
  color: white;
  box-shadow: 0 4px 12px var(--dm-blue-glow);
}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--dm-text-secondary);
  border: 1px solid var(--dm-border);
}
.btn-outline:hover { background: var(--dm-card); color: var(--dm-text); }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ─── PORTAL LAYOUT ─── */
.portal { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
  width: var(--dm-sidebar);
  background: var(--dm-dark);
  border-right: 1px solid var(--dm-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  z-index: 100;
  transition: transform 0.3s;
}
.sidebar-brand {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--dm-border);
}
.sidebar-logo {
  width: auto;
  height: 72px;
  max-width: 200px;
  border-radius: 10px;
  object-fit: contain;
}
.brand-text {
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--dm-blue-light), var(--dm-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sidebar-nav {
  flex: 1;
  padding: 12px 10px;
  overflow-y: auto;
}
.nav-section {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--dm-text-muted);
  padding: 16px 14px 6px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--dm-radius-sm);
  color: var(--dm-text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s;
  text-decoration: none !important;
}
.nav-item:hover {
  background: var(--dm-card-hover);
  color: var(--dm-text);
}
.nav-item.active {
  background: var(--dm-blue);
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 12px var(--dm-blue-glow);
}
.nav-icon { font-size: 18px; min-width: 20px; text-align: center; }

.sidebar-footer {
  padding: 12px;
  border-top: 1px solid var(--dm-border);
}
.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--dm-radius-sm);
  background: var(--dm-card);
  margin-bottom: 8px;
}
.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--dm-blue), var(--dm-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.user-info { display: flex; flex-direction: column; overflow: hidden; }
.user-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-tier { font-size: 11px; color: var(--dm-text-muted); text-transform: capitalize; }
.btn-logout {
  width: 100%;
  padding: 8px;
  background: none;
  border: 1px solid var(--dm-border);
  border-radius: var(--dm-radius-sm);
  color: var(--dm-text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-logout:hover { background: rgba(239,68,68,0.1); color: var(--dm-red); border-color: rgba(239,68,68,0.3); }

/* Mobile */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: var(--dm-dark);
  border-bottom: 1px solid var(--dm-border);
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 99;
}
.hamburger {
  background: none;
  border: none;
  color: var(--dm-text);
  font-size: 24px;
  cursor: pointer;
}
.mobile-brand {
  font-size: 16px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--dm-blue-light), var(--dm-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.mobile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--dm-blue), var(--dm-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: white;
}

/* ─── MAIN CONTENT ─── */
.main-content {
  margin-left: var(--dm-sidebar);
  flex: 1;
  padding: 28px 32px;
  min-height: 100vh;
}
.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.content-header h1 { font-size: 26px; font-weight: 800; }
.subtitle { color: var(--dm-text-secondary); font-size: 14px; margin-top: 4px; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.last-updated { font-size: 12px; color: var(--dm-text-muted); }

/* ─── VIEWS ─── */
.view { display: none; animation: fadeIn 0.3s ease; }
.view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ─── METRICS GRID ─── */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.metric-card {
  background: var(--dm-card);
  border: 1px solid var(--dm-border);
  border-radius: var(--dm-radius);
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  transition: all 0.2s;
}
.metric-card:hover { transform: translateY(-2px); border-color: var(--dm-border-light); }
.metric-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}
.metric-card.glow-blue::after { background: var(--dm-blue); }
.metric-card.glow-green::after { background: var(--dm-green); }
.metric-card.glow-purple::after { background: var(--dm-purple); }
.metric-card.glow-orange::after { background: var(--dm-orange); }
.metric-card.glow-blue { box-shadow: inset 0 1px 0 var(--dm-blue-glow); }
.metric-card.glow-green { box-shadow: inset 0 1px 0 var(--dm-green-glow); }
.metric-card.glow-purple { box-shadow: inset 0 1px 0 var(--dm-purple-glow); }
.metric-card.glow-orange { box-shadow: inset 0 1px 0 var(--dm-orange-glow); }

.metric-icon { font-size: 28px; flex-shrink: 0; margin-top: 2px; }
.metric-body { flex: 1; }
.metric-value { font-size: 28px; font-weight: 800; line-height: 1.1; }
.metric-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--dm-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}
.metric-trend {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  align-self: flex-start;
}
.metric-trend.up { background: rgba(16,185,129,0.15); color: var(--dm-green); }
.metric-trend.down { background: rgba(239,68,68,0.15); color: var(--dm-red); }
.metric-trend.neutral { background: rgba(100,116,139,0.15); color: var(--dm-text-muted); }

/* ─── CARDS ─── */
.card {
  background: var(--dm-card);
  border: 1px solid var(--dm-border);
  border-radius: var(--dm-radius);
  margin-bottom: 20px;
  overflow: hidden;
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--dm-border);
}
.card-header h3 { font-size: 15px; font-weight: 700; }
.card-body { padding: 20px; }
.card-actions select {
  padding: 6px 12px;
  background: var(--dm-navy);
  border: 1px solid var(--dm-border);
  border-radius: var(--dm-radius-sm);
  color: var(--dm-text-secondary);
  font-size: 13px;
  cursor: pointer;
}

/* ─── GRID ─── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ─── BAR CHART ─── */
.bar-chart { display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: flex; align-items: center; gap: 12px; }
.bar-label { font-size: 13px; color: var(--dm-text-secondary); min-width: 100px; font-weight: 500; }
.bar-track { flex: 1; height: 24px; background: var(--dm-navy); border-radius: 6px; overflow: hidden; }
.bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}
.bar-fill.dm-blue { background: linear-gradient(90deg, var(--dm-blue), var(--dm-blue-light)); }
.bar-fill.dm-green { background: linear-gradient(90deg, var(--dm-green), #34D399); }
.bar-fill.dm-purple { background: linear-gradient(90deg, var(--dm-purple), #A78BFA); }
.bar-fill.dm-orange { background: linear-gradient(90deg, var(--dm-orange), #FBBF24); }
.bar-fill.dm-yellow { background: linear-gradient(90deg, var(--dm-yellow), #FCD34D); }
.bar-fill.dm-red { background: linear-gradient(90deg, var(--dm-red), #F87171); }
.bar-fill.dm-cyan { background: linear-gradient(90deg, var(--dm-cyan), #22D3EE); }
.bar-value { font-size: 13px; font-weight: 700; min-width: 40px; text-align: right; }

/* ─── PROGRESS BARS ─── */
.score-components { display: flex; flex-direction: column; gap: 16px; }
.component-header { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.progress-bar { height: 10px; background: var(--dm-navy); border-radius: 5px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 5px; transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1); }

/* ─── PHASES ─── */
.phase-list { display: flex; flex-direction: column; gap: 16px; }
.phase-item {
  background: var(--dm-navy);
  border-radius: var(--dm-radius-sm);
  padding: 16px 20px;
  border-left: 4px solid var(--dm-border);
}
.phase-item.active-phase { border-left-color: var(--dm-blue); }
.phase-item.completed-phase { border-left-color: var(--dm-green); }
.phase-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.phase-name { font-weight: 700; font-size: 14px; }
.phase-status { font-size: 12px; padding: 3px 10px; border-radius: 20px; font-weight: 600; }
.phase-status.status-completed { background: rgba(16,185,129,0.15); color: var(--dm-green); }
.phase-status.status-in_progress { background: rgba(37,99,235,0.15); color: var(--dm-blue); }
.phase-status.status-not_started { background: rgba(100,116,139,0.15); color: var(--dm-text-muted); }
.phase-progress { margin-top: 8px; }
.phase-meta { display: flex; gap: 16px; font-size: 12px; color: var(--dm-text-muted); margin-top: 6px; }

/* ─── TASKS ─── */
.task-list { display: flex; flex-direction: column; gap: 8px; }
.task-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--dm-navy);
  border-radius: var(--dm-radius-sm);
  transition: all 0.15s;
}
.task-item:hover { background: var(--dm-card-hover); }
.task-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.task-status-dot.completed { background: var(--dm-green); }
.task-status-dot.in_progress { background: var(--dm-blue); }
.task-status-dot.todo { background: var(--dm-text-muted); }
.task-status-dot.blocked { background: var(--dm-red); }
.task-info { flex: 1; }
.task-name { font-size: 14px; font-weight: 600; }
.task-meta { font-size: 12px; color: var(--dm-text-muted); margin-top: 2px; }
.task-priority {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}
.task-priority.high { background: rgba(239,68,68,0.15); color: var(--dm-red); }
.task-priority.medium { background: rgba(245,158,11,0.15); color: var(--dm-orange); }
.task-priority.low { background: rgba(16,185,129,0.15); color: var(--dm-green); }
.task-priority.critical { background: rgba(239,68,68,0.25); color: var(--dm-red); }

/* ─── ACTIVITY ─── */
.activity-list { display: flex; flex-direction: column; gap: 0; }
.activity-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--dm-border);
}
.activity-item:last-child { border-bottom: none; }
.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dm-blue);
  margin-top: 5px;
  flex-shrink: 0;
}
.activity-text { font-size: 13px; line-height: 1.5; }
.activity-time { font-size: 11px; color: var(--dm-text-muted); }

/* ─── NOTIFICATIONS ─── */
.notification-list { display: flex; flex-direction: column; gap: 8px; }
.notification-item {
  padding: 10px 14px;
  border-radius: var(--dm-radius-sm);
  font-size: 13px;
  border-left: 3px solid;
}
.notification-item.type-info { background: rgba(37,99,235,0.08); border-color: var(--dm-blue); }
.notification-item.type-success { background: rgba(16,185,129,0.08); border-color: var(--dm-green); }
.notification-item.type-warning { background: rgba(245,158,11,0.08); border-color: var(--dm-orange); }
.notification-item.type-error { background: rgba(239,68,68,0.08); border-color: var(--dm-red); }
.notification-title { font-weight: 600; margin-bottom: 2px; }
.notification-message { color: var(--dm-text-secondary); font-size: 12px; }

/* ─── REPORTS LIST ─── */
.report-list { display: flex; flex-direction: column; gap: 8px; }
.report-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--dm-navy);
  border-radius: var(--dm-radius-sm);
  transition: all 0.15s;
}
.report-item:hover { background: var(--dm-card-hover); }
.report-icon { font-size: 28px; }
.report-info { flex: 1; }
.report-name { font-size: 14px; font-weight: 600; }
.report-meta { font-size: 12px; color: var(--dm-text-muted); margin-top: 2px; }
.report-download {
  padding: 6px 14px;
  background: var(--dm-blue);
  color: white;
  border: none;
  border-radius: var(--dm-radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.report-download:hover { filter: brightness(1.1); }

/* ─── REVIEW ITEMS ─── */
.review-list { display: flex; flex-direction: column; gap: 12px; }
.review-item {
  padding: 14px;
  background: var(--dm-navy);
  border-radius: var(--dm-radius-sm);
}
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.review-source { font-size: 13px; font-weight: 600; }
.review-stars { color: var(--dm-orange); }
.review-text { font-size: 13px; color: var(--dm-text-secondary); line-height: 1.5; }
.review-date { font-size: 11px; color: var(--dm-text-muted); margin-top: 6px; }

/* ─── BADGES ─── */
.badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  background: var(--dm-navy);
  color: var(--dm-text-secondary);
}

/* ─── SCORE HISTORY ─── */
.history-table { width: 100%; border-collapse: collapse; }
.history-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--dm-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--dm-border);
}
.history-table td {
  padding: 10px 14px;
  font-size: 13px;
  border-bottom: 1px solid rgba(42,58,78,0.5);
}
.score-cell { font-weight: 700; }
.score-cell.high { color: var(--dm-green); }
.score-cell.medium { color: var(--dm-orange); }
.score-cell.low { color: var(--dm-red); }

/* ─── LOADING / EMPTY ─── */
.loading-placeholder {
  text-align: center;
  padding: 32px;
  color: var(--dm-text-muted);
  font-size: 14px;
}
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--dm-text-muted);
}
.empty-state p { margin-bottom: 16px; font-size: 14px; }

/* ─── TOAST ─── */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  padding: 12px 20px;
  border-radius: var(--dm-radius-sm);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--dm-shadow-lg);
  animation: toastIn 0.3s ease;
  min-width: 280px;
}
.toast.success { background: var(--dm-green); color: white; }
.toast.error { background: var(--dm-red); color: white; }
.toast.info { background: var(--dm-blue); color: white; }
@keyframes toastIn { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }

/* ─── LLM MODEL CARDS ─── */
.model-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.model-card {
  background: var(--dm-navy);
  border-radius: var(--dm-radius-sm);
  padding: 16px;
  text-align: center;
}
.model-name { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.model-mention { font-size: 28px; font-weight: 800; }
.model-label { font-size: 11px; color: var(--dm-text-muted); text-transform: uppercase; margin-top: 2px; }
.model-bar { margin-top: 10px; }

/* ─── SOCIAL PLATFORM CARDS ─── */
.platform-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.platform-card {
  background: var(--dm-navy);
  border-radius: var(--dm-radius-sm);
  padding: 16px;
  text-align: center;
}
.platform-name { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.platform-metric { font-size: 24px; font-weight: 800; }
.platform-sublabel { font-size: 11px; color: var(--dm-text-muted); }

/* ─── POST APPROVAL CARDS ─── */
.approval-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.approval-header h3 { margin: 0; }
.btn-approve-all {
  padding: 8px 18px;
  border-radius: var(--dm-radius-sm);
  background: linear-gradient(135deg, var(--dm-green), #059669);
  color: white;
  border: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px var(--dm-green-glow);
}
.btn-approve-all:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-approve-all:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.post-approval-list { display: flex; flex-direction: column; gap: 16px; }
.post-approval-card {
  background: var(--dm-navy);
  border-radius: var(--dm-radius);
  padding: 16px;
  border: 1px solid var(--dm-border);
  transition: border-color 0.2s;
}
.post-approval-card:hover { border-color: var(--dm-border-light); }
.post-approval-card.approved { border-color: rgba(16,185,129,0.4); background: rgba(16,185,129,0.05); }
.post-approval-card.rejected { border-color: rgba(239,68,68,0.3); background: rgba(239,68,68,0.04); }

.post-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.post-platform-badge {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-facebook { background: rgba(24,119,242,0.15); color: #4B91F7; }
.badge-instagram { background: rgba(225,48,108,0.15); color: #E1306C; }
.badge-linkedin { background: rgba(10,102,194,0.15); color: #0A66C2; }
.badge-twitter { background: rgba(29,155,240,0.15); color: #1D9BF0; }
.badge-google { background: rgba(66,133,244,0.15); color: #4285F4; }
.badge-default { background: rgba(148,163,184,0.15); color: var(--dm-text-secondary); }

.post-scheduled-date {
  font-size: 12px;
  color: var(--dm-text-muted);
  margin-left: auto;
}
.post-status-badge {
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.post-status-pending { background: rgba(245,158,11,0.15); color: var(--dm-orange); }
.post-status-approved { background: rgba(16,185,129,0.15); color: var(--dm-green); }
.post-status-rejected { background: rgba(239,68,68,0.15); color: var(--dm-red); }

.post-content {
  font-size: 14px;
  line-height: 1.6;
  color: var(--dm-text);
  margin-bottom: 12px;
  white-space: pre-wrap;
  word-break: break-word;
}
.post-image-thumb {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  border-radius: var(--dm-radius-sm);
  margin-bottom: 12px;
  border: 1px solid var(--dm-border);
}
.post-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.btn-post-approve {
  padding: 7px 18px;
  border-radius: var(--dm-radius-sm);
  background: linear-gradient(135deg, var(--dm-green), #059669);
  color: white;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-post-approve:hover { filter: brightness(1.1); }
.btn-post-approve:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-post-reject {
  padding: 7px 18px;
  border-radius: var(--dm-radius-sm);
  background: transparent;
  color: var(--dm-red);
  border: 1px solid rgba(239,68,68,0.4);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-post-reject:hover { background: rgba(239,68,68,0.1); }
.btn-post-reject:disabled { opacity: 0.5; cursor: not-allowed; }
.post-approved-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--dm-green);
}
.post-rejected-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--dm-red);
}

.empty-approval-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--dm-text-muted);
}
.empty-approval-state .empty-icon { font-size: 40px; margin-bottom: 12px; }
.empty-approval-state p { font-size: 14px; }

/* Reject reason modal */
.reject-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}
.reject-modal {
  background: var(--dm-card);
  border: 1px solid var(--dm-border);
  border-radius: var(--dm-radius);
  padding: 28px;
  width: 440px;
  max-width: 90vw;
  box-shadow: var(--dm-shadow-lg);
}
.reject-modal h3 { margin-bottom: 16px; font-size: 18px; }
.reject-modal textarea {
  width: 100%;
  min-height: 100px;
  background: var(--dm-navy);
  border: 1px solid var(--dm-border);
  border-radius: var(--dm-radius-sm);
  color: var(--dm-text);
  padding: 12px;
  font-size: 14px;
  resize: vertical;
  font-family: inherit;
}
.reject-modal textarea:focus { outline: none; border-color: var(--dm-red); }
.reject-modal-actions { display: flex; gap: 10px; margin-top: 16px; justify-content: flex-end; }

/* ─── CAMPAIGN TABLE ─── */
.campaign-table { width: 100%; border-collapse: collapse; }
.campaign-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--dm-text-muted);
  text-transform: uppercase;
  border-bottom: 1px solid var(--dm-border);
}
.campaign-table td {
  padding: 10px 14px;
  font-size: 13px;
  border-bottom: 1px solid rgba(42,58,78,0.5);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); box-shadow: var(--dm-shadow-lg); }
  .mobile-header { display: flex; }
  .main-content { margin-left: 0; padding: 72px 16px 16px; }
  .content-header { flex-direction: column; gap: 12px; align-items: flex-start; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .auth-screen { flex-direction: column; }
  .auth-container { width: 100%; min-height: auto; padding: 32px 24px; }
  .auth-bg-art { min-height: 300px; }
  .form-row { grid-template-columns: 1fr; }
}
