/* ==========================================================================
   AI MARKETING WORKFORCE & 24H AUTOPILOT - COMMAND CENTER DESIGN SYSTEM
   Theme: Linear / Vercel Dark Command Center
   Configuration: DESIGN_VARIANCE: 6 | MOTION: 4 | VISUAL_DENSITY: 7
   ========================================================================== */

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

:root {
  /* Surface & Canvas Tokens */
  --bg-canvas: #080c14;
  --bg-subtle: #0d131f;
  --bg-surface: #111827;
  --bg-elevated: #162032;
  
  /* Card & Double-Bezel Tokens */
  --card-bg: rgba(15, 22, 36, 0.75);
  --card-bg-solid: #0f1624;
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-subtle: rgba(255, 255, 255, 0.05);
  --card-border-hover: rgba(255, 255, 255, 0.16);
  --card-glow: 0 4px 24px -2px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  
  /* Typography Tokens */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --text-main: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --text-faint: #475569;
  
  /* Neon Status Accents */
  --accent-emerald: #10b981;
  --accent-emerald-subtle: rgba(16, 185, 129, 0.12);
  --accent-emerald-border: rgba(16, 185, 129, 0.28);
  --accent-emerald-glow: 0 0 12px rgba(16, 185, 129, 0.35);
  
  --accent-amber: #f59e0b;
  --accent-amber-subtle: rgba(245, 158, 11, 0.12);
  --accent-amber-border: rgba(245, 158, 11, 0.28);
  --accent-amber-glow: 0 0 12px rgba(245, 158, 11, 0.35);
  
  --accent-rose: #ef4444;
  --accent-rose-subtle: rgba(239, 68, 68, 0.12);
  --accent-rose-border: rgba(239, 68, 68, 0.28);
  --accent-rose-glow: 0 0 12px rgba(239, 68, 68, 0.35);
  
  --accent-cyan: #38bdf8;
  --accent-cyan-subtle: rgba(56, 189, 248, 0.12);
  --accent-cyan-border: rgba(56, 189, 248, 0.28);
  
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-glow: 0 0 16px rgba(59, 130, 246, 0.35);
  
  /* Geometry & Physics */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-pill: 9999px;
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */

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

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

body {
  background-color: var(--bg-canvas);
  background-image: 
    radial-gradient(1000px 500px at 50% -80px, rgba(30, 48, 80, 0.35), transparent 70%),
    radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 28px 28px;
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.55;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Tabular figures for aligned metric numbers */
.tabular-nums, .metric-value, .log-time, .badge-proof, th, td {
  font-variant-numeric: tabular-nums;
}

.app-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

/* ==========================================================================
   Sticky Glassmorphism Navbar Header
   ========================================================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  margin: 0 -24px 28px -24px;
  background: rgba(8, 12, 20, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  font-size: 24px;
  background: linear-gradient(145deg, rgba(30, 41, 65, 0.8), rgba(15, 22, 36, 0.95));
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: transform var(--transition-fast);
}

.brand:hover .brand-logo {
  transform: scale(1.04);
}

.brand h1 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand .subtitle {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: -0.01em;
}

.nav-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Capsule Status Pills */
.status-chip {
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid var(--card-border);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color var(--transition-fast);
}

.status-chip:hover {
  border-color: var(--card-border-hover);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
}

.pulse-dot.running {
  background-color: var(--accent-emerald);
  box-shadow: var(--accent-emerald-glow);
}

.pulse-dot.running::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--accent-emerald);
  opacity: 0.6;
  animation: pulseRipple 2.2s infinite var(--ease-spring);
}

.pulse-dot.stopped {
  background-color: var(--accent-rose);
  box-shadow: var(--accent-rose-glow);
}

.pulse-dot.warning {
  background-color: var(--accent-amber);
  box-shadow: var(--accent-amber-glow);
}

@keyframes pulseRipple {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(0.9); opacity: 0; }
}

/* ==========================================================================
   Navigation Segmented Control Bar (Tabs)
   ========================================================================== */

.tabs-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  margin-bottom: 24px;
  background: rgba(13, 19, 31, 0.7);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs-nav::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
  color: #ffffff;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.25) 0%, rgba(30, 58, 138, 0.3) 100%);
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.tab-content {
  display: none;
  animation: fadeInContent 0.25s var(--ease-spring);
}

.tab-content.active {
  display: block;
}

@keyframes fadeInContent {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   24h Autopilot Hub: Bento Metric Cards
   ========================================================================== */

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

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

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

.metric-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--card-glow);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.metric-card:hover {
  transform: translateY(-2px);
  border-color: var(--card-border-hover);
  box-shadow: 0 8px 28px -4px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.metric-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.metric-value {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-main);
  line-height: 1.15;
  margin-bottom: 6px;
  font-family: var(--font-sans);
}

.metric-value.highlight {
  color: var(--accent-emerald);
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.25);
}

.metric-value.highlight-cyan {
  color: var(--accent-cyan);
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.25);
}

.metric-sub {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Action Command Panel (Hardware Console Bar)
   ========================================================================== */

.action-panel {
  background: linear-gradient(180deg, rgba(20, 28, 44, 0.8) 0%, rgba(13, 19, 31, 0.9) 100%);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  margin-bottom: 24px;
  box-shadow: var(--card-glow);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.panel-header h2 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dropdown-group {
  display: flex;
  gap: 8px;
  align-items: center;
  background: rgba(0, 0, 0, 0.25);
  padding: 3px 4px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   Button System (Tactile & High-End)
   ========================================================================== */

.btn {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-success {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-success:hover {
  background: linear-gradient(180deg, #34d399 0%, #10b981 100%);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-secondary {
  background: rgba(30, 41, 59, 0.7);
  color: var(--text-secondary);
  border: 1px solid var(--card-border);
}

.btn-secondary:hover {
  background: rgba(51, 65, 85, 0.85);
  color: #ffffff;
  border-color: var(--card-border-hover);
}

.btn-warning {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.btn-warning:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fef3c7;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border-color: var(--card-border-hover);
}

.btn-outline-sm {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  padding: 6px 12px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

.btn-outline-sm:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border-color: var(--card-border-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: none;
}

.btn-ghost:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.btn-sm {
  padding: 5px 11px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

.btn-block {
  width: 100%;
  justify-content: center;
  margin-top: 14px;
}

.btn-link {
  background: none;
  border: none;
  color: var(--accent-cyan);
  font-size: 12.5px;
  cursor: pointer;
  font-weight: 500;
  padding: 0;
  transition: color var(--transition-fast);
}

.btn-link:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

/* ==========================================================================
   Split Grid & Generic Card Containers
   ========================================================================== */

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 900px) {
  .split-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--card-glow);
  position: relative;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--card-border-subtle);
}

.card-header h3 {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   Developer Live Activity Terminal (Obsidian Console)
   ========================================================================== */

.log-stream {
  background: #060910;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  height: 420px;
  overflow-y: auto;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.65;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.log-stream::-webkit-scrollbar {
  width: 6px;
}

.log-stream::-webkit-scrollbar-track {
  background: transparent;
}

.log-stream::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.log-stream::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

.log-entry {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  word-break: break-word;
}

.log-time {
  color: #475569;
  font-size: 11px;
  white-space: nowrap;
  flex-shrink: 0;
}

.log-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 600;
  flex-shrink: 0;
  letter-spacing: 0.03em;
}

.log-badge.INFO {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.log-badge.SUCCESS, .log-badge.POST_SUCCESS {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.log-badge.WARNING, .log-badge.JOIN_REQUESTED {
  background: rgba(245, 158, 11, 0.18);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.log-badge.ERROR, .log-badge.POST_FAILED {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.log-placeholder {
  color: var(--text-muted);
  text-align: center;
  padding: 40px 0;
  font-style: italic;
}

/* ==========================================================================
   Flyer Preview Box (Showcase)
   ========================================================================== */

.flyer-preview-box {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #060910;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  height: 420px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8);
}

.flyer-preview-box img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

.flyer-preview-box img:hover {
  transform: scale(1.02);
}

.flyer-placeholder {
  text-align: center;
  color: var(--text-muted);
  padding: 24px;
}

.flyer-placeholder .icon {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: 0.6;
}

/* ==========================================================================
   Form Controls (Precision Inputs)
   ========================================================================== */

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.form-control, .select-sm {
  width: 100%;
  background: rgba(10, 15, 26, 0.85);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 9px 13px;
  color: var(--text-main);
  font-size: 13.5px;
  font-family: var(--font-sans);
  outline: none;
  transition: all var(--transition-fast);
}

.select-sm {
  width: auto;
  padding: 7px 12px;
  font-size: 12.5px;
}

.form-control:focus, .select-sm:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  background: rgba(15, 23, 42, 0.95);
}

.form-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.col-4 {
  flex: 1;
  min-width: 240px;
}

.hint-text {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}

/* Badges */
.badge-purple {
  background: rgba(139, 92, 246, 0.15);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
}

.badge-matched {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  display: inline-block;
  font-weight: 600;
}

.badge-file {
  background: rgba(30, 41, 59, 0.8);
  color: #93c5fd;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11.5px;
  margin-left: 8px;
  font-family: var(--font-mono);
}

/* Markdown preview */
.output-wrapper {
  background: #060910;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
}

.output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--card-border-subtle);
}

.markdown-preview {
  white-space: pre-wrap;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: #cbd5e1;
  max-height: 450px;
  overflow-y: auto;
}

.file-attach-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-path-text {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  word-break: break-all;
}

/* ==========================================================================
   Media Grid & Gallery
   ========================================================================== */

.media-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.media-card {
  background: rgba(13, 19, 31, 0.85);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 10px;
  text-align: center;
  transition: all var(--transition-fast);
}

.media-card:hover {
  transform: translateY(-2px);
  border-color: var(--card-border-hover);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.media-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.media-card .title {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 14px; }
.mt-4 { margin-top: 20px; }

/* ==========================================================================
   Proof of Work Table & Verified Gallery
   ========================================================================== */

.proofs-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.proofs-table th {
  background: rgba(13, 19, 31, 0.9);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 12px 14px;
  border-bottom: 1px solid var(--card-border);
}

.proofs-table td {
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 13px;
  color: var(--text-secondary);
  vertical-align: middle;
}

.proofs-table tr:hover td {
  background-color: rgba(59, 130, 246, 0.04);
}

.badge-proof {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 600;
}

.badge-proof.published {
  background: var(--accent-emerald-subtle);
  color: #34d399;
  border: 1px solid var(--accent-emerald-border);
}

.badge-proof.pending {
  background: var(--accent-amber-subtle);
  color: #fbbf24;
  border: 1px solid var(--accent-amber-border);
}

.badge-proof.join-requested {
  background: var(--accent-cyan-subtle);
  color: #38bdf8;
  border: 1px solid var(--accent-cyan-border);
}

.badge-proof.access-denied {
  background: var(--accent-rose-subtle);
  color: #f87171;
  border: 1px solid var(--accent-rose-border);
}

/* Recent proofs container in Autopilot Hub */
.recent-proofs-grid {
  min-height: 80px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

/* ==========================================================================
   Modals (Glassmorphism Double-Bezel Overlay)
   ========================================================================== */

.proof-modal-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 7, 14, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: modalFadeIn 0.2s var(--ease-spring);
}

.proof-modal-box {
  background: linear-gradient(180deg, #131b2e 0%, #0d1322 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  max-width: 900px;
  width: 100%;
  padding: 24px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  animation: modalScaleUp 0.22s var(--ease-spring);
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalScaleUp {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.btn-modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.btn-modal-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

/* History table */
.history-table {
  background: #060910;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 12px;
  max-height: 240px;
  overflow-y: auto;
}

/* ==========================================================================
   Target Groups & Targeted Campaign Runner Styles
   ========================================================================== */

.product-subtabs-nav {
  display: flex;
  gap: 8px;
  margin: 16px 0 12px 0;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 10px;
  overflow-x: auto;
}

.product-subtab-btn {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.product-subtab-btn:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text-main);
}

.product-subtab-btn.active {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.5);
  color: #93c5fd;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.subtab-badge {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
}

.product-subtab-btn.active .subtab-badge {
  background: rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.4);
  color: #bfdbfe;
}

/* Rich Groups Table */
.rich-groups-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.rich-groups-table th {
  background: rgba(13, 19, 31, 0.9);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 12px 14px;
  border-bottom: 1px solid var(--card-border);
}

.rich-groups-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 13px;
  color: var(--text-secondary);
  vertical-align: middle;
}

.rich-groups-table tr:hover td {
  background-color: rgba(59, 130, 246, 0.04);
}

.badge-member {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  background: var(--accent-emerald-subtle);
  color: #34d399;
  border: 1px solid var(--accent-emerald-border);
}

.badge-pending {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  background: var(--accent-amber-subtle);
  color: #fbbf24;
  border: 1px solid var(--accent-amber-border);
}

.badge-rich-note {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Runner Progress Bar */
.runner-progress-bar {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.runner-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #06b6d4, #10b981);
  border-radius: var(--radius-pill);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.launchpad-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #93c5fd;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.15);
}

.runner-result-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  transition: background var(--transition-fast);
}

.runner-result-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.btn-danger-outline {
  color: #f87171 !important;
  border-color: rgba(239, 68, 68, 0.35) !important;
  background: rgba(239, 68, 68, 0.06) !important;
}

.btn-danger-outline:hover {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: rgba(239, 68, 68, 0.6) !important;
}
