/* ==========================================================================
   10xAI VIRALITY — PRISM & SPINSTACK ENGINE
   Clean White & Lime Theme matching 10xAI Dreamer & Build Your Future
   ========================================================================== */

/* --- Sidebar Nav Item Highlight (In Workspace Dark Sidebar) --- */
.nav-item--virality {
  background: linear-gradient(90deg, rgba(186, 250, 27, 0.12) 0%, rgba(56, 189, 248, 0.04) 100%) !important;
  border: 1px solid rgba(186, 250, 27, 0.3) !important;
  color: #ffffff !important;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 14px rgba(186, 250, 27, 0.1);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.nav-item--virality:hover {
  background: linear-gradient(90deg, rgba(186, 250, 27, 0.22) 0%, rgba(56, 189, 248, 0.1) 100%) !important;
  border-color: rgba(186, 250, 27, 0.6) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(186, 250, 27, 0.25) !important;
}

.nav-item--virality.is-active {
  background: linear-gradient(90deg, rgba(186, 250, 27, 0.28) 0%, rgba(56, 189, 248, 0.14) 100%) !important;
  border-color: #bafa1b !important;
  box-shadow: 0 0 24px rgba(186, 250, 27, 0.35) !important;
}

.nav-item--virality .virality-sidebar-pill {
  font-size: 9px;
  font-weight: 800;
  background: #bafa1b !important;
  color: #0b0e07 !important;
  padding: 2.5px 8px;
  border-radius: 99px;
  margin-left: auto;
  letter-spacing: 0.05em;
  box-shadow: 0 0 10px rgba(186, 250, 27, 0.4);
  text-transform: uppercase;
}

/* --- Fullscreen View Container (Clean White / Soft Slate Canvas) --- */
.view-container.virality-view-wrap {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #f8fafc;
  overflow-y: auto;
  overflow-x: hidden;
  flex-direction: column;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #0f172a;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.view-container.virality-view-wrap.is-active {
  display: flex !important;
}

.virality-view-wrap * {
  box-sizing: border-box;
}

.virality-view-wrap ::selection {
  background: #bafa1b;
  color: #000;
}

/* --- Top Navigation Bar (High-End Black Header matching 10xAI Dreamer) --- */
.virality-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px;
  background: #0e0e11;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.virality-top-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  cursor: pointer;
  padding: 7px 16px;
  border-radius: 99px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: all 0.15s ease;
  text-decoration: none;
}

.virality-top-back:hover {
  background: rgba(186, 250, 27, 0.15) !important;
  border-color: rgba(186, 250, 27, 0.5) !important;
  color: #bafa1b !important;
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(186, 250, 27, 0.25);
}

.virality-logo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.virality-engine-pill {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(186, 250, 27, 0.14);
  color: #bafa1b;
  border: 1px solid rgba(186, 250, 27, 0.3);
}

/* Mode Switcher Segment (In Dark Header) */
.virality-mode-segmented {
  display: flex;
  align-items: center;
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 99px;
  padding: 3px;
  gap: 2px;
}

.virality-mode-btn {
  font-size: 12px;
  font-weight: 700;
  color: #a1a1aa;
  background: transparent;
  border: none;
  border-radius: 99px;
  padding: 5px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.virality-mode-btn.is-active {
  background: #27272a;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.virality-mode-btn.is-active.pro-glow {
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.3), rgba(56, 189, 248, 0.3));
  color: #ffffff;
  border: 1px solid rgba(168, 85, 247, 0.5);
}

/* Topbar Right Actions */
.btn-topbar-profile {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #d4d4d8;
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-topbar-profile:hover {
  border-color: #3f3f46;
  color: #ffffff;
}

.btn-topbar-library {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #d4d4d8;
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-topbar-library:hover {
  background: #27272a;
  color: #ffffff;
}

.btn-topbar-new {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #0e0e0f !important;
  background: #bafa1b !important;
  border: none !important;
  border-radius: 99px;
  padding: 7px 16px;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(186, 250, 27, 0.35);
  transition: all 0.15s ease;
}

.btn-topbar-new:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(186, 250, 27, 0.5);
}

/* --- Main Layout Grid --- */
.virality-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 80px;
  width: 100%;
}

/* Hero Header (Clean Light Theme) */
.virality-hero {
  text-align: center;
  margin-bottom: 28px;
}

.virality-hero h1 {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0 0 8px 0;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.virality-hero h1 span.gradient-text {
  background: linear-gradient(135deg, #0f172a 40%, #4d7c0f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.virality-hero p {
  font-size: 15px;
  color: #475569;
  margin: 0;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* --- 2-Decision Input Box (Crisp White Card with Soft Shadow) --- */
.virality-input-card {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 18px;
  padding: 22px 26px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px -4px rgba(15, 23, 42, 0.06);
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.virality-input-card:focus-within {
  border-color: #0f172a;
  box-shadow: 0 0 0 4px rgba(186, 250, 27, 0.35), 0 12px 34px -4px rgba(15, 23, 42, 0.08);
}

.virality-textarea {
  width: 100%;
  min-height: 88px;
  background: transparent;
  border: none;
  outline: none;
  font-size: 16px;
  font-family: inherit;
  color: #0f172a;
  resize: vertical;
  line-height: 1.55;
  font-weight: 500;
}

.virality-textarea::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

/* Blank-Box Breakers Strip */
.blank-box-breakers {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  flex-wrap: wrap;
  gap: 8px;
}

.starter-pills-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.starter-pill {
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 99px;
  padding: 5px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.starter-pill:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.btn-inspire-me {
  font-size: 11.5px;
  font-weight: 800;
  color: #0284c7;
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.25);
  border-radius: 99px;
  padding: 5px 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.btn-inspire-me:hover {
  background: rgba(2, 132, 199, 0.16);
  border-color: #0284c7;
}

/* --- Step 2: Format Tap Targets (White Cards with Soft Depth) --- */
.format-selector-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 14px;
  align-items: stretch;
  margin-bottom: 24px;
}

@media (max-width: 820px) {
  .format-selector-row {
    grid-template-columns: 1fr;
  }
}

.format-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
}

.format-card:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.format-card.is-active {
  background: linear-gradient(135deg, rgba(186, 250, 27, 0.08) 0%, #ffffff 100%);
  border-color: #84cc16;
  box-shadow: 0 0 0 1px #84cc16, 0 8px 24px -4px rgba(186, 250, 27, 0.25);
}

.format-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  color: #475569;
  transition: all 0.15s ease;
}

.format-card.is-active .format-icon-box {
  background: rgba(186, 250, 27, 0.25);
  color: #3f6212;
}

.format-card-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2px;
}

.format-card-desc {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.4;
}

/* Secondary Platform Pill */
.platform-pill-box {
  display: flex;
  align-items: center;
  justify-content: center;
}

.platform-select-btn {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 16px;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
  height: 100%;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
  transition: all 0.15s ease;
}

.platform-select-btn:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
}

/* --- Action Bar (Generate CTA & Customize Toggle) --- */
.action-generate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 28px;
}

.btn-generate-main {
  flex: 1;
  background: #bafa1b;
  color: #0e0e0f;
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 18px rgba(186, 250, 27, 0.4);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-generate-main:hover {
  background: #cbfd3b;
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(186, 250, 27, 0.55);
}

.btn-generate-main:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-toggle-customize {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  color: #475569;
  border-radius: 12px;
  padding: 13px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
  transition: all 0.15s ease;
}

.btn-toggle-customize:hover {
  color: #0f172a;
  border-color: #cbd5e1;
  background: #f8fafc;
}

/* --- Guided & Pro Drawers (White Cards) --- */
.drawer-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 24px;
  display: none;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}

.drawer-card.is-visible {
  display: block;
  animation: fadeIn 0.2s ease;
}

.drawer-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.drawer-title {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.drawer-field label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.drawer-field select,
.drawer-field input {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #0f172a;
  padding: 8px 12px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s ease;
}

.drawer-field select:focus,
.drawer-field input:focus {
  border-color: #0f172a;
  box-shadow: 0 0 0 3px rgba(186, 250, 27, 0.3);
}

/* Pro Bulk Triggers */
.pro-bulk-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  flex-wrap: wrap;
}

.btn-bulk-action {
  background: rgba(147, 51, 234, 0.08);
  color: #7e22ce;
  border: 1px solid rgba(147, 51, 234, 0.25);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-bulk-action:hover {
  background: rgba(147, 51, 234, 0.15);
  border-color: #7e22ce;
}

/* --- Unified Loading State --- */
.virality-loading-card {
  display: none;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 38px 24px;
  text-align: center;
  margin-bottom: 24px;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.05);
}

.virality-loading-card.is-active {
  display: block;
}

.loading-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid #e2e8f0;
  border-top-color: #65a30d;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

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

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

/* --- Results Section --- */
.virality-result-container {
  display: none;
  animation: fadeIn 0.25s ease;
}

.virality-result-container.is-visible {
  display: block;
}

/* Inline 3-Hook Switcher (Clean Light Styling) */
.hook-switcher-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

.hook-switcher-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.hook-switcher-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.hook-variants-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (max-width: 768px) {
  .hook-variants-grid {
    grid-template-columns: 1fr;
  }
}

.hook-variant-btn {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hook-variant-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.hook-variant-btn.is-active {
  background: #f7fee7;
  border-color: #84cc16;
  box-shadow: 0 0 14px rgba(186, 250, 27, 0.25);
}

.hook-variant-badge {
  font-size: 10px;
  font-weight: 800;
  color: #3f6212;
  text-transform: uppercase;
}

.hook-variant-text {
  font-size: 13px;
  color: #0f172a;
  line-height: 1.45;
  font-weight: 600;
}

/* --- Main Asset Canvas (Crisp White Card with Slate Framing) --- */
.main-asset-canvas {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 26px;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 10px 30px -4px rgba(15, 23, 42, 0.06);
}

/* Carousel Slide Deck View */
.carousel-deck-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.carousel-deck-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.carousel-slide-indicator {
  font-size: 12px;
  font-weight: 800;
  color: #3f6212;
  background: rgba(186, 250, 27, 0.18);
  padding: 4px 12px;
  border-radius: 99px;
  border: 1px solid rgba(186, 250, 27, 0.4);
}

.carousel-slide-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 34px 38px;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 12px 36px -6px rgba(15, 23, 42, 0.08);
  position: relative;
  transition: all 0.2s ease;
}

.slide-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.slide-word-badge {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 6px;
}

.slide-cue-badge {
  font-size: 11px;
  font-weight: 600;
  color: #0284c7;
  background: #eff6ff;
  padding: 3px 8px;
  border-radius: 6px;
  max-width: 60%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slide-headline {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 14px;
}

.slide-body {
  font-size: 15px;
  color: #334155;
  line-height: 1.65;
  white-space: pre-wrap;
  flex-grow: 1;
}

.slide-cliffhanger-bar {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.slide-cliffhanger-pill {
  font-size: 11.5px;
  font-weight: 800;
  color: #4d7c0f;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Carousel Nav Controls */
.carousel-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.btn-carousel-arrow {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  border-radius: 99px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  transition: all 0.15s ease;
}

.btn-carousel-arrow:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #0f172a;
}

.btn-carousel-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.carousel-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-dot.is-active {
  width: 24px;
  border-radius: 99px;
  background: #0f172a;
}

/* Post Canvas */
.post-canvas-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
}

.post-fold-indicator {
  margin: 14px 0;
  padding: 6px 12px;
  background: #f0f9ff;
  border-left: 3px solid #0284c7;
  font-size: 11px;
  color: #0284c7;
  font-weight: 700;
}

.post-body-text {
  font-size: 15px;
  color: #0f172a;
  line-height: 1.7;
  white-space: pre-wrap;
  font-family: inherit;
}

/* Reel Canvas */
.reel-canvas-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.reel-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.reel-audio-badge {
  font-size: 12px;
  font-weight: 800;
  color: #7e22ce;
  background: #faf5ff;
  border: 1px solid #e9d5ff;
  padding: 5px 12px;
  border-radius: 99px;
}

.reel-beats-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}

.reel-beats-table th {
  background: #f8fafc;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.reel-beats-table td {
  padding: 12px 14px;
  font-size: 13px;
  color: #1e293b;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
}

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

.timecode-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #15803d;
  background: #f0fdf4;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.reel-loop-bridge {
  background: #f7fee7;
  border: 1px solid #d9f99d;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 12.5px;
  color: #3f6212;
}

/* --- The Interactive Recipe Strip (White Card) --- */
.recipe-strip-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

.recipe-strip-label {
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.recipe-chips-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.recipe-chip {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 99px;
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  user-select: none;
}

.recipe-chip:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.recipe-chip.is-locked {
  background: #f7fee7;
  border-color: #84cc16;
  color: #3f6212;
  box-shadow: 0 0 10px rgba(186, 250, 27, 0.2);
}

.btn-regenerate-unlocked {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #475569;
  border-radius: 99px;
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
  margin-left: auto;
}

.btn-regenerate-unlocked:hover {
  color: #0f172a;
  border-color: #94a3b8;
  background: #f1f5f9;
}

/* --- One-Tap Quick Tweak Bar (White Card) --- */
.quick-tweak-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 18px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

.tweak-actions-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-tweak {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.btn-tweak:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

.tweak-export-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-export-primary {
  background: #bafa1b;
  color: #0e0e0f;
  border: none;
  border-radius: 8px;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 12px rgba(186, 250, 27, 0.35);
  transition: all 0.15s ease;
}

.btn-export-primary:hover {
  background: #cbfd3b;
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(186, 250, 27, 0.5);
}

/* --- SEO Caption & Hashtags Drawer (White Card) --- */
.seo-caption-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 24px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

.seo-caption-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.seo-caption-title {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.primary-keyword-tag {
  font-size: 11px;
  font-weight: 700;
  color: #0369a1;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  padding: 2px 8px;
  border-radius: 6px;
}

.caption-body-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  font-size: 13.5px;
  color: #1e293b;
  line-height: 1.65;
  white-space: pre-wrap;
  margin-bottom: 12px;
}

.hashtag-pills-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.hashtag-pill {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  padding: 4px 9px;
  border-radius: 6px;
  cursor: pointer;
}

.hashtag-pill:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.alt-text-box {
  font-size: 11.5px;
  color: #64748b;
  background: #ffffff;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px dashed #cbd5e1;
}

/* --- Modals (Brand Profile, Saved Library - Clean White) --- */
.virality-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.virality-modal-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 30px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.15);
  position: relative;
  color: #0f172a;
}

.modal-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.modal-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.btn-modal-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 22px;
  cursor: pointer;
}

.btn-modal-close:hover {
  color: #0f172a;
}

.modal-form-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 6px;
}

.modal-form-group input,
.modal-form-group select,
.modal-form-group textarea {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #0f172a;
  padding: 10px 14px;
  font-size: 13.5px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s ease;
}

.modal-form-group input:focus,
.modal-form-group select:focus,
.modal-form-group textarea:focus {
  border-color: #0f172a;
  box-shadow: 0 0 0 3px rgba(186, 250, 27, 0.3);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

/* Bulk Results Grid */
.bulk-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.bulk-item-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

.bulk-item-title {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

.bulk-item-meta {
  font-size: 11.5px;
  color: #64748b;
}
