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

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

:root {
  --bg-main: #0a0a0a;
  --bg-card: #141414;
  --bg-secondary: #141414;
  --bg-sidebar: #111111;
  --border: #2a2a2a;
  --accent: #7c3aed;
  --accent-hover: #6d28d9;
  --primary: #7c3aed;
  --primary-dark: #6d28d9;
  --text-primary: #f5f5f5;
  --text-secondary: #a3a3a3;
  --text-muted: #6b7280;
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-main);
  color: var(--text-primary);
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Sidebar */
.sidebar {
  width: 280px;
  min-width: 280px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.logo-icon {
  font-size: 28px;
}

.logo h1 {
  font-size: 16px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.logo h1 span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  -webkit-text-fill-color: var(--text-secondary);
}

.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-section h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  font-weight: 600;
}

.sidebar-input {
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text-primary);
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  width: 100%;
  transition: border-color 0.2s;
}

.sidebar-input:focus {
  outline: none;
  border-color: var(--accent);
}

.sidebar-input::placeholder {
  color: #555;
}

.btn-save-keys {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'Inter', sans-serif;
}

.btn-save-keys:hover {
  background: var(--accent-hover);
}

.separator {
  height: 1px;
  background: var(--border);
}

.profile-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
}

.profile-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.profile-item .label {
  color: var(--text-secondary);
}

.profile-item .value {
  color: var(--text-primary);
  font-weight: 500;
  text-align: right;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.color-preview {
  display: flex;
  gap: 6px;
  align-items: center;
}

.color-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border);
}

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

.agent-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 4px 0;
}

.agent-status .status-icon {
  font-size: 10px;
}

.agent-status .agent-name {
  color: var(--text-secondary);
}

.agent-status.completed .agent-name {
  color: var(--success);
}

.agent-status.processing .agent-name {
  color: var(--warning);
}

/* Main Area */
.main {
  flex: 1;
  margin-left: 280px;
  display: flex;
  flex-direction: column;
}

/* Tabs */
.tabs {
  display: flex;
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.tab {
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.tab:hover {
  color: var(--text-primary);
  background: rgba(124, 58, 237, 0.05);
}

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

/* Tab Content */
.tab-content {
  display: none;
  padding: 32px;
  animation: fadeIn 0.3s ease;
}

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

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

.tab-header {
  margin-bottom: 28px;
}

.tab-header h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.tab-header p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.form-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
}

.form-input::placeholder {
  color: #444;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-input-color {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-input-color input[type="color"] {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: transparent;
}

.form-input-color input[type="text"] {
  flex: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #a855f7);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-hover), #9333ea);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

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

.btn-secondary:hover {
  border-color: var(--accent);
  background: rgba(124, 58, 237, 0.1);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
}

.btn-icon {
  padding: 8px;
  border-radius: 8px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid var(--border);
  color: var(--accent);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-icon:hover {
  background: var(--accent);
  color: white;
}

/* Progress Bar */
.progress-container {
  display: none;
  margin: 20px 0;
}

.progress-container.active {
  display: block;
}

.progress-bar-bg {
  height: 6px;
  background: var(--bg-card);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #ec4899);
  border-radius: 3px;
  transition: width 0.5s ease;
  width: 0%;
}

.progress-status {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  animation: fadeIn 0.4s ease;
}

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

.card-header h3 {
  font-size: 18px;
  font-weight: 700;
}

.card-header .badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-tofu {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.badge-mofu {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.badge-bofu {
  background: rgba(239, 68, 68, 0.15);
  color: var(--error);
}

.card-body p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 10px;
}

.card-body .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 4px;
  margin-top: 14px;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(124, 58, 237, 0.12);
  color: var(--accent);
  margin-right: 6px;
  margin-bottom: 4px;
}

/* Format-specific tag colors */
.tag-carrusel {
  background: rgba(124, 58, 237, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(124, 58, 237, 0.3);
}
.tag-reel {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.3);
}
.tag-story, .tag-stories, .tag-storiy {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.tag-video, .tag-vídeo {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.tag-post {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Weekly frequency counter */
.freq-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.freq-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.freq-item .freq-num {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}
.freq-item .freq-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
}
.freq-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}
.freq-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}
.freq-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.freq-dot.active { background: var(--accent); }
.freq-dot.active.reel { background: #f472b6; }
.freq-dot.active.story { background: #34d399; }
.freq-dot.active.carrusel { background: #a78bfa; }

/* Pillar Cards */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  border-top: 3px solid var(--accent);
  animation: fadeIn 0.4s ease;
}

.pillar-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
}

.pillar-section {
  margin-bottom: 12px;
}

.pillar-section h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.pillar-section ul {
  list-style: none;
  padding: 0;
}

.pillar-section li {
  font-size: 13px;
  padding: 3px 0;
  color: var(--text-primary);
}

.pillar-section li::before {
  content: '>';
  color: var(--accent);
  margin-right: 8px;
  font-weight: 700;
}

/* Funnel Section */
.funnel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.funnel-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  animation: fadeIn 0.4s ease;
}

.funnel-card h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.funnel-card.tofu h3 { color: var(--success); }
.funnel-card.mofu h3 { color: var(--warning); }
.funnel-card.bofu h3 { color: var(--error); }

.funnel-card ul {
  list-style: none;
  padding: 0;
}

.funnel-card li {
  font-size: 13px;
  padding: 4px 0;
  color: var(--text-secondary);
}

/* Video Input */
.video-entry {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}

.video-entry .video-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.video-entry .video-number {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

.btn-remove-video {
  background: none;
  border: none;
  color: var(--error);
  cursor: pointer;
  font-size: 18px;
  padding: 0;
}

.platform-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.platform-btn {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-main);
  color: var(--text-secondary);
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}

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

/* Carousel Slides */
.carousel-container {
  overflow-x: auto;
  display: flex;
  gap: 20px;
  padding: 20px 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.carousel-container::-webkit-scrollbar {
  height: 6px;
}

.carousel-container::-webkit-scrollbar-track {
  background: var(--bg-card);
  border-radius: 3px;
}

.carousel-container::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

.slide-card {
  min-width: 340px;
  width: 340px;
  height: 340px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.slide-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  text-align: center;
}

.slide-overlay h3 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 800;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  margin-bottom: 10px;
  line-height: 1.2;
}

.slide-overlay p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
  line-height: 1.5;
  max-width: 280px;
}

.slide-number {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.slide-actions {
  text-align: center;
  margin-top: 10px;
}

/* Story Cards */
.stories-container {
  overflow-x: auto;
  display: flex;
  gap: 16px;
  padding: 20px 0;
  scroll-behavior: smooth;
}

.story-card {
  min-width: 220px;
  width: 220px;
  height: 391px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.story-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
}

.story-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.story-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
  text-align: center;
}

.story-overlay h3 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 800;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  margin-bottom: 8px;
  line-height: 1.2;
}

.story-overlay p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
  line-height: 1.4;
}

.story-number {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.story-type-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  background: rgba(124, 58, 237, 0.7);
  color: white;
}

.story-actions {
  text-align: center;
  margin-top: 8px;
}

/* Script Selector */
.script-selector {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.script-selector-btn {
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}

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

/* Results area */
.results-area {
  min-height: 100px;
}

/* Calendar Suggestion */
.calendar-card {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(236, 72, 153, 0.1));
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 16px;
  padding: 24px;
  margin-top: 20px;
}

.calendar-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}

.calendar-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.calendar-card div p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* Score Badge */
.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 800;
}

.score-high {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.score-medium {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.score-low {
  background: rgba(239, 68, 68, 0.15);
  color: var(--error);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 13px;
  color: var(--text-primary);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  animation: slideUp 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--error); }

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

/* Placeholder image */
.placeholder-img {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 12px;
  position: absolute;
  top: 0;
  left: 0;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.empty-state .icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.empty-state p {
  font-size: 14px;
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 1024px) {
  .sidebar {
    width: 240px;
    min-width: 240px;
  }
  .main {
    margin-left: 240px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .funnel-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    display: none;
  }
  .main {
    margin-left: 0;
  }
  .tab {
    padding: 10px 12px;
    font-size: 12px;
  }
  .tab-content {
    padding: 20px;
  }
}

/* Caption box */
.caption-box {
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  margin-top: 16px;
  position: relative;
}

.caption-box p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  white-space: pre-wrap;
}

.caption-box .copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
}

/* Tone buttons */
.tone-btn {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-main);
  color: var(--text-secondary);
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}
.tone-btn:hover { border-color: var(--accent); color: var(--accent); }
.tone-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* Briefing mode toggle */
.briefing-toggle {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}
.briefing-toggle-btn {
  flex: 1;
  padding: 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: var(--bg-main);
  color: var(--text-secondary);
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}
.briefing-toggle-btn.active {
  background: var(--accent);
  color: white;
}

/* File upload area */
.file-upload-area {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg-main);
}
.file-upload-area:hover, .file-upload-area.dragover {
  border-color: var(--accent);
  background: rgba(124, 58, 237, 0.05);
}
.file-upload-area .upload-icon { font-size: 32px; margin-bottom: 8px; }
.file-upload-area p { font-size: 13px; color: var(--text-secondary); margin-bottom: 4px; }
.file-upload-area .file-name {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  margin-top: 8px;
}
.file-upload-area input[type="file"] { display: none; }

/* Section divider */
.form-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  font-weight: 700;
  margin: 28px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* ===== STORIES GUIDE ===== */
.guide-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
}
.guide-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.guide-item {
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
}
.guide-item strong { display: block; margin-bottom: 4px; }
.guide-item p { color: var(--text-secondary); margin: 0; font-size: 12px; }
.tag-reel-bg { background: rgba(236,72,153,0.1); border: 1px solid rgba(236,72,153,0.2); }
.tag-story-bg { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.2); }
.tag-carrusel-bg { background: rgba(124,58,237,0.1); border: 1px solid rgba(124,58,237,0.2); }
.tag-post-bg { background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.2); }

/* B-roll */
.guide-broll { display: flex; flex-direction: column; gap: 16px; }
.broll-def { background: var(--bg-main); border-radius: 10px; padding: 14px; font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.broll-def strong { color: var(--text-primary); }
.broll-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.broll-tag {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(245,158,11,0.12);
  color: #fbbf24;
  border: 1px solid rgba(245,158,11,0.25);
}

/* CTAs */
.cta-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.cta-item { border-radius: 10px; padding: 12px 14px; font-size: 13px; }
.cta-item p { margin: 4px 0 0; color: var(--text-primary); }
.cta-type { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.cta-soft { background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.2); }
.cta-soft .cta-type { color: #34d399; }
.cta-med { background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.2); }
.cta-med .cta-type { color: #fbbf24; }
.cta-hard { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2); }
.cta-hard .cta-type { color: #f87171; }

/* Owner Actions */
.owner-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.owner-col { background: var(--bg-main); border-radius: 10px; padding: 14px; }
.owner-col-title { font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.owner-check { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--text-secondary); cursor: pointer; padding: 4px 0; line-height: 1.4; }
.owner-check input[type="checkbox"] { margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.owner-check:hover { color: var(--text-primary); }

/* ===== FAQ RESULTS ===== */
.faq-section-title {
  font-size: 16px; font-weight: 700; margin: 24px 0 12px;
  padding-left: 12px; border-left: 3px solid var(--accent);
}
.faq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-bottom: 8px; }
.faq-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px;
  animation: fadeIn 0.3s ease;
}
.faq-card .faq-q { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.faq-card .faq-hook { font-size: 12px; color: var(--accent); font-style: italic; margin-bottom: 6px; }
.faq-card .faq-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.series-card {
  background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(236,72,153,0.08));
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 14px; padding: 20px; margin-bottom: 14px;
}
.series-card h4 { font-size: 16px; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.series-card .series-concept { font-size: 13px; color: var(--text-secondary); margin-bottom: 12px; }
.series-episodes { list-style: none; padding: 0; }
.series-episodes li { font-size: 13px; padding: 3px 0; color: var(--text-primary); }
.series-episodes li::before { content: '▶ '; color: var(--accent); font-size: 10px; }

/* ===== TIKTOK SEARCH ===== */
.search-block { background: #0f172a; border: 1px solid #1e293b; border-radius: 16px; padding: 20px; margin-bottom: 8px; }
.search-block-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-weight: 700; color: #f8fafc; font-size: 15px; }
.search-badge { background: #1e293b; color: #64748b; font-size: 11px; font-weight: 500; padding: 3px 10px; border-radius: 99px; }
.search-row { display: flex; gap: 10px; align-items: center; }
.tiktok-results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 16px; }
.tiktok-card { background: #1e293b; border-radius: 12px; overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: border-color 0.2s, transform 0.2s; }
.tiktok-card:hover { border-color: #7c3aed; transform: translateY(-2px); }
.tiktok-card.selected { border-color: #34d399; }
.tiktok-thumb { width: 100%; aspect-ratio: 9/16; object-fit: cover; background: #0f172a; display: flex; align-items: center; justify-content: center; color: #475569; font-size: 32px; }
.tiktok-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tiktok-info { padding: 10px 12px; }
.tiktok-author { font-size: 12px; color: #7c3aed; font-weight: 600; margin-bottom: 4px; }
.tiktok-desc { font-size: 12px; color: #94a3b8; line-height: 1.4; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tiktok-stats { display: flex; gap: 10px; font-size: 11px; color: #64748b; }
.tiktok-stat { display: flex; align-items: center; gap: 3px; }
.tiktok-add-btn { width: 100%; margin-top: 8px; padding: 6px; background: #7c3aed22; color: #a78bfa; border: 1px solid #7c3aed44; border-radius: 6px; cursor: pointer; font-size: 12px; font-weight: 600; transition: background 0.2s; }
.tiktok-add-btn:hover { background: #7c3aed44; }
.tiktok-add-btn.added { background: #34d39922; color: #34d399; border-color: #34d39944; }

/* ===== VIRAL CARD LISTS ===== */
.viral-list { list-style: none; padding: 0; margin: 8px 0 0 0; display: flex; flex-direction: column; gap: 8px; }
.viral-list li { position: relative; padding: 8px 12px 8px 32px; background: #1e1b2e; border-radius: 6px; font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.viral-list li::before { content: '✓'; position: absolute; left: 10px; top: 8px; color: var(--primary); font-weight: 700; font-size: 12px; }
.viral-list.takeaways li::before { content: '→'; color: var(--accent); }
.viral-text { font-size: 13px; color: var(--text-secondary); line-height: 1.6; padding: 8px 12px; background: #1e1b2e; border-radius: 6px; margin: 8px 0 0 0; }

/* ===== MI CONTENIDO — CALENDARIO ===== */
.cal-toolbar { display:flex; align-items:center; gap:12px; margin-bottom:16px; flex-wrap:wrap; }
.cal-month-label { font-size:16px; font-weight:700; color:var(--text-primary); flex:1; text-align:center; }
.cal-view-btn.active { background:var(--primary); color:#fff; border-color:var(--primary); }

.cal-grid { display:grid; gap:8px; margin-bottom:32px; }
.cal-week { grid-template-columns: repeat(7, 1fr); }
.cal-month { grid-template-columns: repeat(7, 1fr); }

.cal-cell { background:var(--bg-card); border:1px solid var(--border); border-radius:10px; padding:10px; min-height:100px; transition:border-color 0.2s; }
.cal-today { border-color:var(--primary); background:#7c3aed15; }
.cal-drag-over { border-color:var(--accent); background:#ec489915; }
.cal-day-name { font-size:10px; color:var(--text-muted); text-transform:uppercase; letter-spacing:.5px; margin-bottom:2px; }
.cal-day-num { font-size:18px; font-weight:700; color:var(--text-secondary); margin-bottom:8px; }
.cal-today-num { color:var(--primary); }
.cal-events { display:flex; flex-direction:column; gap:4px; }
.cal-event { display:flex; align-items:center; gap:4px; background:#1e1b2e; border-radius:6px; padding:4px 6px; font-size:11px; cursor:grab; }
.cal-event-label { font-size:10px; opacity:.7; white-space:nowrap; }
.cal-event-title { flex:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:var(--text-primary); }
.cal-event-open, .cal-event-remove { background:none; border:none; cursor:pointer; font-size:12px; padding:0 2px; opacity:.7; }
.cal-event-open:hover, .cal-event-remove:hover { opacity:1; }
.cal-event-script { border-left:3px solid var(--primary); }
.cal-event-viral { border-left:3px solid #f59e0b; }
.cal-event-carousel { border-left:3px solid #10b981; }
.cal-event-stories { border-left:3px solid var(--accent); }

/* Banco de contenido */
.content-bank-header { margin:8px 0 12px; }
.content-bank-header h3 { font-size:16px; margin-bottom:4px; }
.content-bank-header p { font-size:13px; color:var(--text-muted); }
.content-bank { display:grid; grid-template-columns:repeat(auto-fill, minmax(220px,1fr)); gap:12px; margin-bottom:40px; }
.bank-item { background:var(--bg-card); border:1px solid var(--border); border-radius:10px; padding:14px; cursor:grab; transition:border-color .2s, transform .15s; }
.bank-item:hover { border-color:var(--primary); transform:translateY(-2px); }
.bank-item-top { display:flex; justify-content:space-between; align-items:center; margin-bottom:6px; }
.bank-label { font-size:11px; font-weight:700; color:var(--text-muted); }
.bank-scheduled-badge { font-size:10px; color:#34d399; background:#34d39918; padding:2px 6px; border-radius:10px; }
.bank-item-title { font-size:13px; font-weight:600; color:var(--text-primary); margin-bottom:10px; line-height:1.4; }
.bank-item-actions { display:flex; gap:6px; }
.bank-item.bank-scheduled { opacity:.7; }
.bank-item-script { border-top:3px solid var(--primary); }
.bank-item-viral { border-top:3px solid #f59e0b; }
.bank-item-carousel { border-top:3px solid #10b981; }
.bank-item-stories { border-top:3px solid var(--accent); }

/* ===== MODAL VISTA DOC ===== */
.doc-modal-overlay { position:fixed; inset:0; background:#00000090; backdrop-filter:blur(4px); display:flex; align-items:flex-start; justify-content:center; z-index:1000; padding:24px; overflow-y:auto; }
.doc-modal { background:var(--bg-secondary); border:1px solid var(--border); border-radius:16px; width:100%; max-width:780px; box-shadow:0 20px 60px #00000060; }
.doc-modal-header { display:flex; justify-content:space-between; align-items:flex-start; padding:24px 24px 16px; border-bottom:1px solid var(--border); gap:12px; flex-wrap:wrap; }
.doc-modal-tag { display:inline-block; font-size:11px; font-weight:700; color:var(--primary); background:#7c3aed20; padding:3px 10px; border-radius:20px; margin-bottom:6px; }
.doc-modal-title { font-size:20px; font-weight:700; color:var(--text-primary); margin:0; }
.doc-modal-close { background:none; border:1px solid var(--border); border-radius:8px; color:var(--text-muted); cursor:pointer; padding:6px 12px; font-size:14px; }
.doc-modal-close:hover { color:var(--text-primary); border-color:var(--text-secondary); }
.doc-modal-body { padding:24px; display:flex; flex-direction:column; gap:20px; }
.doc-section { display:flex; flex-direction:column; gap:8px; }
.doc-section-title { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.8px; color:var(--primary); }
.doc-hook-box { background:#7c3aed18; border-left:4px solid var(--primary); border-radius:8px; padding:14px 16px; font-size:15px; font-weight:600; color:var(--text-primary); line-height:1.5; }
.doc-text { font-size:14px; color:var(--text-secondary); line-height:1.7; }
.doc-script { font-size:14px; color:var(--text-primary); line-height:1.8; background:#1e1b2e; border-radius:8px; padding:16px; white-space:pre-wrap; }
.doc-cta { font-size:14px; font-weight:700; color:var(--accent); background:#ec489918; border-radius:8px; padding:12px 16px; }
.doc-list { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:8px; }
.doc-list li { padding:8px 12px 8px 28px; background:#1e1b2e; border-radius:6px; font-size:13px; color:var(--text-secondary); position:relative; line-height:1.5; }
.doc-list li::before { content:'→'; position:absolute; left:10px; color:var(--accent); }
.doc-slide { background:#1e1b2e; border-radius:8px; padding:12px 14px; border-left:3px solid #10b981; }
.doc-slide-num { font-size:10px; color:var(--text-muted); font-weight:700; text-transform:uppercase; margin-bottom:4px; }
.doc-slide-title { font-size:14px; font-weight:700; color:var(--text-primary); margin-bottom:4px; }
.doc-slide-body { font-size:13px; color:var(--text-secondary); line-height:1.6; }

/* Date picker modal */
.date-picker-overlay { position:fixed; inset:0; background:#00000090; display:flex; align-items:center; justify-content:center; z-index:1100; }
.date-picker-modal { background:var(--bg-secondary); border:1px solid var(--border); border-radius:16px; padding:32px; text-align:center; min-width:300px; }
.date-picker-modal h3 { margin-bottom:16px; }
.date-picker-input { width:100%; padding:10px 14px; background:var(--bg-card); border:1px solid var(--border); border-radius:8px; color:var(--text-primary); font-size:15px; }

/* ===== AGENT CHAT BTN ===== */
.agent-status { display:flex; align-items:center; gap:8px; padding:6px 0; }
.agent-chat-btn { margin-left:auto; background:none; border:none; cursor:pointer; font-size:14px; opacity:0.5; transition:opacity .2s; padding:2px 4px; border-radius:4px; }
.agent-chat-btn:hover { opacity:1; background:#7c3aed22; }

/* Sara Consultora btn */
.sara-btn { width:100%; display:flex; align-items:center; gap:12px; background:linear-gradient(135deg, #7c3aed 0%, #ec4899 100%); border:none; border-radius:12px; padding:12px 14px; cursor:pointer; transition:opacity .2s, transform .15s; text-align:left; box-shadow:0 4px 20px #7c3aed50; }
.sara-btn:hover { opacity:.9; transform:translateY(-1px); box-shadow:0 6px 28px #7c3aed70; }
.sara-avatar { font-size:26px; flex-shrink:0; }
.sara-name { font-size:13px; font-weight:700; color:#fff; letter-spacing:.2px; }
.sara-desc { font-size:11px; color:rgba(255,255,255,0.75); margin-top:2px; }
.sara-arrow { margin-left:auto; font-size:16px; color:rgba(255,255,255,0.8); flex-shrink:0; }

/* ===== CHAT PANEL ===== */
.chat-panel { position:fixed; right:-420px; top:0; width:420px; height:100vh; background:var(--bg-secondary); border-left:1px solid var(--border); display:flex; flex-direction:column; z-index:900; transition:right .3s cubic-bezier(.4,0,.2,1); box-shadow:-8px 0 40px #00000040; }
.chat-panel.open { right:0; }
.chat-overlay { position:fixed; inset:0; background:#00000040; z-index:899; display:none; }
.chat-overlay.open { display:block; }

.chat-panel-header { display:flex; align-items:center; justify-content:space-between; padding:16px 16px 14px; border-bottom:1px solid var(--border); flex-shrink:0; }
.chat-agent-info { display:flex; align-items:center; gap:10px; }
.chat-agent-avatar { font-size:28px; }
.chat-agent-name { font-size:14px; font-weight:700; color:var(--text-primary); }
.chat-agent-sub { font-size:11px; color:var(--text-muted); margin-top:1px; }
.chat-close-btn { background:none; border:1px solid var(--border); border-radius:8px; color:var(--text-muted); cursor:pointer; padding:5px 10px; font-size:13px; }
.chat-close-btn:hover { color:var(--text-primary); }
.chat-clear-btn { background:none; border:none; cursor:pointer; font-size:16px; opacity:.5; padding:5px; border-radius:6px; }
.chat-clear-btn:hover { opacity:1; background:#ff444420; }

.chat-messages { flex:1; overflow-y:auto; padding:16px; display:flex; flex-direction:column; gap:12px; }
.chat-msg { display:flex; }
.chat-msg-user { justify-content:flex-end; }
.chat-msg-assistant { justify-content:flex-start; }
.chat-bubble { max-width:85%; padding:10px 14px; border-radius:14px; font-size:13px; line-height:1.6; }
.chat-msg-user .chat-bubble { background:var(--primary); color:#fff; border-bottom-right-radius:4px; }
.chat-msg-assistant .chat-bubble { background:#1e1b2e; color:var(--text-secondary); border-bottom-left-radius:4px; }
.chat-bubble strong { color:var(--text-primary); }
.chat-bubble code { background:#ffffff18; padding:1px 5px; border-radius:4px; font-size:12px; }
.chat-bubble br { line-height:1.8; }
.chat-error { color:#f87171 !important; background:#ff444418 !important; }

/* Typing indicator */
.chat-typing { display:flex; gap:4px; align-items:center; padding:12px 16px !important; }
.chat-typing span { width:7px; height:7px; border-radius:50%; background:var(--primary); animation:typing-bounce .8s infinite; }
.chat-typing span:nth-child(2) { animation-delay:.15s; }
.chat-typing span:nth-child(3) { animation-delay:.3s; }
@keyframes typing-bounce { 0%,80%,100%{transform:translateY(0);opacity:.4} 40%{transform:translateY(-6px);opacity:1} }

.chat-input-area { display:flex; gap:8px; padding:12px 16px; border-top:1px solid var(--border); flex-shrink:0; align-items:flex-end; }
.chat-input { flex:1; background:#1e1b2e; border:1px solid var(--border); border-radius:12px; padding:10px 14px; color:var(--text-primary); font-size:13px; resize:none; font-family:inherit; line-height:1.5; max-height:120px; }
.chat-input:focus { outline:none; border-color:var(--primary); }
.chat-send-btn { width:38px; height:38px; border-radius:10px; background:var(--primary); border:none; color:#fff; font-size:18px; cursor:pointer; display:flex; align-items:center; justify-content:center; flex-shrink:0; transition:background .2s; }
.chat-send-btn:hover { background:var(--primary-dark, #6d28d9); }
.chat-send-btn:disabled { opacity:.5; cursor:not-allowed; }

/* ===== FORM SECTIONS ===== */
.form-section { background:var(--bg-card); border:1px solid var(--border); border-radius:14px; padding:20px 22px; margin-bottom:16px; }
.form-section-title { font-size:13px; font-weight:800; text-transform:uppercase; letter-spacing:1px; background:linear-gradient(135deg,#7c3aed,#ec4899); -webkit-background-clip:text; -webkit-text-fill-color:transparent; margin-bottom:16px; display:flex; align-items:center; gap:6px; }
.form-section-desc { font-size:13px; color:var(--text-muted); margin:-8px 0 14px; line-height:1.5; }
.form-section-spy { border-color:#7c3aed44; background:#7c3aed08; }
.form-section-spy .form-section-title { background:linear-gradient(135deg,#a78bfa,#ec4899); -webkit-background-clip:text; -webkit-text-fill-color:transparent; }
.btn-lg { width:100%; padding:14px; font-size:15px; font-weight:700; margin-top:8px; }

/* Referentes */
.referente-row { display:flex; gap:8px; align-items:center; margin-bottom:8px; }
.referente-row input { flex:1; }
.referente-remove { background:none; border:1px solid var(--border); border-radius:8px; padding:6px 10px; color:var(--text-muted); cursor:pointer; font-size:13px; }
.referente-remove:hover { color:#f87171; border-color:#f87171; }
.referente-analysis-card { background:#1e1b2e; border-radius:10px; padding:14px 16px; margin-bottom:10px; border-left:3px solid var(--primary); }
.referente-analysis-card h4 { font-size:13px; font-weight:700; color:var(--text-primary); margin-bottom:8px; }
.referente-analysis-card p { font-size:12px; color:var(--text-secondary); line-height:1.6; }

/* ===== SIDEBAR BRAND FOOTER ===== */
.sidebar-brand-footer { margin-top:auto; padding-top:16px; border-top:1px solid var(--border); text-align:center; }
.sidebar-brand-by { font-size:10px; color:var(--text-muted); text-transform:uppercase; letter-spacing:1px; margin-bottom:2px; }
.sidebar-brand-name { font-size:13px; font-weight:700; background:linear-gradient(135deg,#7c3aed,#ec4899); -webkit-background-clip:text; -webkit-text-fill-color:transparent; margin-bottom:4px; }
.sidebar-brand-role { font-size:10px; color:var(--text-muted); line-height:1.5; }

/* ===== PROFILE SWITCHER ===== */
.profile-switcher-header { display:flex; justify-content:space-between; align-items:center; }
.profile-select-wrap { display:flex; gap:6px; align-items:center; margin-bottom:8px; }
.profile-select { flex:1; background:var(--bg-main); border:1px solid var(--border); border-radius:8px; padding:7px 10px; color:var(--text-primary); font-size:12px; font-family:'Inter',sans-serif; }
.profile-select:focus { outline:none; border-color:var(--primary); }
.profile-delete-btn { background:none; border:1px solid var(--border); border-radius:6px; padding:6px 8px; cursor:pointer; font-size:13px; opacity:.6; }
.profile-delete-btn:hover { opacity:1; border-color:#f87171; }
.btn-full { width:100%; justify-content:center; }
.btn-sm { padding:7px 12px; font-size:12px; }

/* ===== PILLAR EDITING UI ===== */
.pillars-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; flex-wrap:wrap; gap:8px; }
.pillars-header h3 { font-size:15px; font-weight:700; color:var(--text-primary); }
.pillars-actions { display:flex; gap:8px; }
.pillar-card { background:var(--bg-card); border:1px solid var(--border); border-radius:12px; padding:16px 18px; margin-bottom:12px; transition:border-color .2s; }
.pillar-card.pillar-approved { border-color:#10b98166; background:#10b98108; }
.pillar-card-header { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; margin-bottom:6px; }
.pillar-card-title { font-size:14px; font-weight:700; color:var(--text-primary); }
.pillar-approved-badge { font-size:11px; font-weight:700; color:#10b981; background:#10b98120; border-radius:20px; padding:2px 10px; flex-shrink:0; }
.pillar-card-actions { display:flex; gap:6px; flex-shrink:0; }
.pillar-btn { background:none; border:1px solid var(--border); border-radius:8px; padding:5px 10px; font-size:12px; cursor:pointer; color:var(--text-secondary); transition:all .2s; white-space:nowrap; }
.pillar-btn:hover { color:var(--text-primary); border-color:var(--text-secondary); }
.pillar-btn-approve { border-color:#10b98144; color:#10b981; }
.pillar-btn-approve:hover { background:#10b98120; border-color:#10b981; color:#10b981; }
.pillar-btn-unapprove { border-color:#f59e0b44; color:#f59e0b; }
.pillar-btn-unapprove:hover { background:#f59e0b20; border-color:#f59e0b; color:#f59e0b; }
.pillar-btn-edit { border-color:#7c3aed44; color:#a78bfa; }
.pillar-btn-edit:hover { background:#7c3aed20; border-color:#7c3aed; color:#a78bfa; }
.pillar-btn-delete { border-color:#ef444444; color:#f87171; }
.pillar-btn-delete:hover { background:#ef444420; border-color:#ef4444; color:#f87171; }
.pillar-card-desc { font-size:13px; color:var(--text-secondary); line-height:1.6; margin-bottom:8px; }
.pillar-subpillars { display:flex; flex-wrap:wrap; gap:6px; }
.pillar-tag { font-size:11px; background:#7c3aed22; color:#a78bfa; border-radius:20px; padding:3px 10px; }
/* Edit form inside pillar card */
.pillar-edit-form { margin-top:12px; padding-top:12px; border-top:1px solid var(--border); display:flex; flex-direction:column; gap:10px; }
.pillar-edit-form label { font-size:11px; font-weight:600; color:var(--text-muted); text-transform:uppercase; letter-spacing:.6px; margin-bottom:3px; display:block; }
.pillar-edit-form input, .pillar-edit-form textarea { width:100%; background:var(--bg-main); border:1px solid var(--border); border-radius:8px; padding:8px 12px; color:var(--text-primary); font-size:13px; font-family:'Inter',sans-serif; }
.pillar-edit-form textarea { resize:vertical; min-height:64px; line-height:1.5; }
.pillar-edit-form input:focus, .pillar-edit-form textarea:focus { outline:none; border-color:var(--accent); }
.pillar-edit-actions { display:flex; gap:8px; }

/* ===== MODO CLIENTE / EQUIPO ===== */
/* Solo ocultar el gestor de perfiles — todo lo demás igual */
body.client-mode #profileSwitcher { display: none !important; }

/* Badge modo equipo */
.client-mode-badge {
  background: linear-gradient(135deg, #7c3aed44, #ec489944);
  border: 1px solid #7c3aed66;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  color: #a78bfa;
  text-align: center;
  letter-spacing: .5px;
  margin-bottom: 4px;
}
