/* ═══════════════════════════════════════════════════════════════
   BREAK THE MOLD — DESIGN SYSTEM
   Premium Dark Glassmorphism Marketing Agency Dashboard
   ═══════════════════════════════════════════════════════════════ */

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

/* ── CSS Custom Properties ── */
:root {
  /* Base Colors */
  --bg-primary: #06060b;
  --bg-secondary: #0c0c14;
  --bg-tertiary: #12121e;
  --bg-card: rgba(16, 16, 28, 0.7);
  --bg-card-hover: rgba(22, 22, 38, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-hover: rgba(255, 255, 255, 0.06);

  /* Accent Gradients */
  --gradient-primary: linear-gradient(135deg, #7c3aed, #06b6d4, #ec4899);
  --gradient-purple: linear-gradient(135deg, #7c3aed, #a855f7);
  --gradient-cyan: linear-gradient(135deg, #06b6d4, #22d3ee);
  --gradient-magenta: linear-gradient(135deg, #ec4899, #f472b6);
  --gradient-orange: linear-gradient(135deg, #f59e0b, #ef4444);
  --gradient-green: linear-gradient(135deg, #10b981, #34d399);
  --gradient-blue: linear-gradient(135deg, #3b82f6, #60a5fa);
  --gradient-rose: linear-gradient(135deg, #f43f5e, #fb7185);
  --gradient-amber: linear-gradient(135deg, #f59e0b, #fbbf24);
  --gradient-teal: linear-gradient(135deg, #14b8a6, #2dd4bf);
  --gradient-indigo: linear-gradient(135deg, #6366f1, #818cf8);

  /* Accent Solids */
  --accent-purple: #7c3aed;
  --accent-cyan: #06b6d4;
  --accent-magenta: #ec4899;
  --accent-green: #10b981;
  --accent-orange: #f59e0b;
  --accent-blue: #3b82f6;
  --accent-rose: #f43f5e;
  --accent-teal: #14b8a6;

  /* Text */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #c4b5fd;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(124, 58, 237, 0.3);
  --border-hover: rgba(124, 58, 237, 0.5);

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.15);
  --shadow-glow-cyan: 0 0 40px rgba(6, 182, 212, 0.15);
  --shadow-glow-magenta: 0 0 40px rgba(236, 72, 153, 0.15);

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Animated Background ── */
.bg-animated {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  animation: orbFloat 20s ease-in-out infinite;
}

.bg-orb--purple {
  width: 600px;
  height: 600px;
  background: var(--accent-purple);
  top: -10%;
  left: -5%;
  animation-duration: 25s;
}

.bg-orb--cyan {
  width: 500px;
  height: 500px;
  background: var(--accent-cyan);
  top: 40%;
  right: -10%;
  animation-duration: 30s;
  animation-delay: -5s;
}

.bg-orb--magenta {
  width: 450px;
  height: 450px;
  background: var(--accent-magenta);
  bottom: -10%;
  left: 30%;
  animation-duration: 22s;
  animation-delay: -10s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(50px, -30px) scale(1.1); }
  50% { transform: translate(-20px, 40px) scale(0.95); }
  75% { transform: translate(30px, 20px) scale(1.05); }
}

/* ── Grid Lines Background ── */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* ── Main Container ── */
.app-container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.3);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(124, 58, 237, 0.5);
}

/* ══════════════════════════════════════════
   HEADER / NAVBAR
   ══════════════════════════════════════════ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: var(--space-md) var(--space-xl);
  background: rgba(6, 6, 11, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.header__logo-icon {
  width: 44px;
  height: 44px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow-glow);
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(124,58,237,0.3); }
  50% { box-shadow: 0 0 35px rgba(124,58,237,0.5); }
}

.header__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.header__subtitle {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
}

.header__nav {
  display: flex;
  gap: var(--space-xs);
}

.nav-btn {
  padding: var(--space-sm) var(--space-md);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.nav-btn:hover {
  color: var(--text-primary);
  background: var(--bg-glass-hover);
  border-color: var(--border-subtle);
}

.nav-btn.active {
  color: var(--text-primary);
  background: rgba(124, 58, 237, 0.15);
  border-color: var(--border-glow);
}

.header__status {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 12px var(--accent-green);
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ══════════════════════════════════════════
   SECTION LAYOUTS
   ══════════════════════════════════════════ */
.main-content {
  padding: var(--space-xl);
  max-width: 1600px;
  margin: 0 auto;
}

.section {
  display: none;
  animation: fadeInUp 0.5s ease-out;
}

.section.active {
  display: block;
}

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

.section__header {
  margin-bottom: var(--space-xl);
}

.section__title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: var(--space-xs);
  letter-spacing: -0.02em;
}

.section__title span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section__desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ══════════════════════════════════════════
   GLASS CARD SYSTEM
   ══════════════════════════════════════════ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(124,58,237,0.2), transparent, rgba(6,182,212,0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.card:hover::before {
  opacity: 1;
}

.card__header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.card__subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.card__body {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ══════════════════════════════════════════
   BRIEFING FORM
   ══════════════════════════════════════════ */
.briefing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.form-input,
.form-select,
.form-textarea {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: all var(--transition-base);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

/* ══════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.5);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--secondary {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn--secondary:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glow);
}

.btn--lg {
  padding: var(--space-md) var(--space-xl);
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.btn--full {
  width: 100%;
}

.btn--glow {
  animation: btnGlow 2s ease-in-out infinite;
}

@keyframes btnGlow {
  0%, 100% { box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3); }
  50% { box-shadow: 0 4px 35px rgba(124, 58, 237, 0.6); }
}

/* Shimmer effect */
.btn--primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: rotate(45deg);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}

/* ══════════════════════════════════════════
   AGENTS GRID
   ══════════════════════════════════════════ */
.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.agent-card {
  position: relative;
  cursor: default;
}

.agent-card .card__icon {
  position: relative;
}

.agent-status {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--bg-card);
  background: var(--text-muted);
  transition: all var(--transition-base);
}

.agent-status.active {
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
}

.agent-status.processing {
  background: var(--accent-orange);
  box-shadow: 0 0 10px var(--accent-orange);
  animation: statusPulse 1s ease-in-out infinite;
}

.agent-output {
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-purple);
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: none;
}

.agent-output.visible {
  display: block;
  animation: fadeInUp 0.4s ease-out;
}

.agent-output strong {
  color: var(--text-primary);
}

/* ══════════════════════════════════════════
   CONTENT CALENDAR TABLE
   ══════════════════════════════════════════ */
.calendar-container {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

.calendar-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.calendar-table th {
  background: rgba(124, 58, 237, 0.1);
  padding: var(--space-md);
  text-align: left;
  font-weight: 600;
  color: var(--text-accent);
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.calendar-table td {
  padding: var(--space-md);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  vertical-align: top;
}

.calendar-table tr:hover td {
  background: rgba(124, 58, 237, 0.05);
}

.calendar-table tr:last-child td {
  border-bottom: none;
}

.content-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge--reel {
  background: rgba(124, 58, 237, 0.15);
  color: #a855f7;
  border: 1px solid rgba(124, 58, 237, 0.3);
}

.badge--story {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.badge--carousel {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.badge--live {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.objective-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tag--engagement {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.tag--traffic {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.tag--conversion {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.tag--branding {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
}

/* ══════════════════════════════════════════
   FUNNEL VISUALIZATION
   ══════════════════════════════════════════ */
.funnel-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-2xl) 0;
}

.funnel-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
}

.funnel-stage:hover {
  transform: scale(1.03);
}

.funnel-stage__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}

.funnel-stage__desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.funnel-stage__metric {
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: var(--space-sm);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
}

.funnel-arrow {
  font-size: 1.5rem;
  color: var(--text-muted);
  animation: arrowBounce 2s ease-in-out infinite;
}

@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ══════════════════════════════════════════
   ANALYTICS / KPI CARDS
   ══════════════════════════════════════════ */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.kpi-card {
  text-align: center;
  padding: var(--space-xl);
}

.kpi-card__value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: var(--space-xs);
  letter-spacing: -0.02em;
}

.kpi-card__label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.kpi-card__change {
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: var(--space-sm);
}

.kpi-card__change.positive {
  color: var(--accent-green);
}

.kpi-card__change.negative {
  color: var(--accent-rose);
}

/* Bar chart */
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 120px;
  padding: var(--space-md) 0;
}

.chart-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  min-width: 12px;
  transition: all var(--transition-base);
  position: relative;
}

.chart-bar:hover {
  opacity: 0.8;
  transform: scaleY(1.05);
  transform-origin: bottom;
}

/* ══════════════════════════════════════════
   LOADING / PROCESSING STATES
   ══════════════════════════════════════════ */
.processing-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 6, 11, 0.9);
  backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-xl);
}

.processing-overlay.active {
  display: flex;
}

.processing-spinner {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid var(--border-subtle);
  border-top-color: var(--accent-purple);
  border-right-color: var(--accent-cyan);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.processing-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text-secondary);
}

.processing-agent {
  font-size: 0.9rem;
  color: var(--accent-purple);
  font-weight: 600;
}

/* ══════════════════════════════════════════
   MODAL
   ══════════════════════════════════════════ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(6, 6, 11, 0.85);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  max-width: 700px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal__close {
  float: right;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.modal__close:hover {
  color: var(--text-primary);
}

/* ══════════════════════════════════════════
   CAMPAIGN PLAN CARDS
   ══════════════════════════════════════════ */
.campaign-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.campaign-section {
  margin-bottom: var(--space-xl);
}

.campaign-section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* ══════════════════════════════════════════
   TABS
   ══════════════════════════════════════════ */
.tabs {
  display: flex;
  gap: var(--space-xs);
  margin-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: var(--space-sm);
  overflow-x: auto;
}

.tab {
  padding: var(--space-sm) var(--space-md);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.tab:hover {
  color: var(--text-secondary);
}

.tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent-purple);
}

/* ══════════════════════════════════════════
   OPTIMIZATION LIST
   ══════════════════════════════════════════ */
.opt-list {
  list-style: none;
}

.opt-list__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  transition: background var(--transition-base);
}

.opt-list__item:hover {
  background: var(--bg-glass-hover);
}

.opt-list__icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.opt-list__text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.opt-list__text strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 2px;
}

/* ══════════════════════════════════════════
   AGENT COLLABORATION TIMELINE
   ══════════════════════════════════════════ */
.timeline {
  position: relative;
  padding-left: var(--space-2xl);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-purple), var(--accent-cyan), var(--accent-magenta));
  border-radius: 1px;
}

.timeline__item {
  position: relative;
  padding-bottom: var(--space-xl);
  animation: fadeInUp 0.5s ease-out;
}

.timeline__dot {
  position: absolute;
  left: calc(-1 * var(--space-2xl) + 6px);
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--accent-purple);
  background: var(--bg-primary);
}

.timeline__dot.completed {
  background: var(--accent-purple);
}

.timeline__content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.timeline__agent {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent-purple);
  margin-bottom: var(--space-xs);
}

.timeline__output {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ══════════════════════════════════════════
   UTILITY CLASSES
   ══════════════════════════════════════════ */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-center { text-align: center; }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.75rem; }
.text-muted { color: var(--text-muted); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.hidden { display: none !important; }

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .agents-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

@media (max-width: 768px) {
  .header {
    flex-direction: column;
    gap: var(--space-md);
    padding: var(--space-md);
  }
  .header__nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  .main-content {
    padding: var(--space-md);
  }
  .section__title {
    font-size: 1.5rem;
  }
  .briefing-grid {
    grid-template-columns: 1fr;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .funnel-stage {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .agents-grid {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════
   NUEVOS ESTILOS: GUÍA VISUAL 2026
   ══════════════════════════════════════════ */
.visual-guide-box {
  background: rgba(124, 58, 237, 0.08);
  border-left: 3px solid var(--accent-purple);
  padding: 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  line-height: 1.5;
  margin-top: 10px;
  color: var(--text-secondary);
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.visual-guide-box strong {
  color: var(--accent-purple);
  display: block;
  margin-bottom: 5px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
