:root {
  --bg-main: #070a12;
  --bg-sidebar: rgba(12, 17, 29, 0.95);
  --bg-card: rgba(16, 23, 39, 0.75);
  --bg-card-hover: rgba(22, 31, 52, 0.88);
  --bg-input: rgba(14, 19, 32, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(139, 92, 246, 0.25);
  --border-focus: #8b5cf6;

  --accent-purple: #8b5cf6;
  --accent-purple-glow: rgba(139, 92, 246, 0.35);
  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.3);
  --accent-pink: #ec4899;
  --accent-emerald: #10b981;
  --accent-red: #ef4444;
  --accent-yellow: #f59e0b;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --shadow-elevated: 0 20px 40px -15px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(99, 102, 241, 0.1) 0px, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(6, 182, 212, 0.08) 0px, transparent 40%);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
}

/* Tablet & Studio Canvas Frame on Desktop Screens */
.app-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.7);
  overflow-x: hidden;
}

/* Mobile Top App Bar (< 1024px) */
.mobile-top-bar {
  display: none !important;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  height: 60px;
  background: rgba(10, 14, 24, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 0 14px;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
}

.mobile-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-shrink: 1;
}

.mobile-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px var(--accent-purple-glow));
}

.mobile-brand-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mobile-app-title {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-app-tag {
  font-size: 0.65rem;
  color: var(--accent-cyan);
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.mobile-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.mobile-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 4px 10px;
  border-radius: 20px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: pulseAnim 2s infinite ease-in-out;
}

@keyframes pulseAnim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.mobile-menu-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-menu-btn:active {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(0.95);
}

/* Mobile Drawer Overlay */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1040;
  opacity: 0;
  transition: opacity 0.25s ease;
}

body.drawer-open .drawer-overlay {
  display: block;
  opacity: 1;
}

/* Sidebar */
.sidebar {
  width: 280px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  padding: 24px 18px;
  flex-shrink: 0;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 1050;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 18px;
}

.drawer-close-btn {
  display: none !important;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.drawer-close-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

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

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 16px var(--accent-purple-glow));
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-icon:hover {
  transform: scale(1.05) rotate(2deg);
}

.brand-text h2 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 30%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-text span {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-grow: 1;
  overflow-y: auto;
  scrollbar-width: none;
}
.nav-menu::-webkit-scrollbar { display: none; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.nav-item svg {
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.05);
}

.nav-item:hover svg {
  transform: scale(1.08);
  color: var(--accent-purple);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.16) 0%, rgba(139, 92, 246, 0.04) 100%);
  color: #fff;
  border: 1px solid rgba(139, 92, 246, 0.3);
  font-weight: 600;
  box-shadow: 0 4px 16px -4px var(--accent-purple-glow);
}

.nav-item.active svg {
  color: var(--accent-purple);
}

.system-status-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  margin-top: 14px;
}

.status-indicator {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
}

.status-text {
  display: flex;
  flex-direction: column;
}

.status-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: #cbd5e1;
}

.status-val {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* Main Content */
.main-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px 36px;
  background: radial-gradient(circle at 80% 10%, rgba(139, 92, 246, 0.06), transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.05), transparent 50%);
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
}

.page-title h1 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

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

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot.yellow { background: var(--accent-yellow); box-shadow: 0 0 6px var(--accent-yellow); }
.dot.green { background: var(--accent-emerald); box-shadow: 0 0 6px var(--accent-emerald); }

/* Tab Panes */
.tab-pane {
  display: none;
  animation: fadeIn 0.25s ease forwards;
  min-width: 0;
  max-width: 100%;
}

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

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

/* Grids & Cards */
.grid-2col {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  min-width: 0;
  max-width: 100%;
}

.grid-2col-nested {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
}

.grid-3col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(12px);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.glass-card {
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

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

.card-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}
.badge-purple { background: rgba(139, 92, 246, 0.2); color: #c4b5fd; border: 1px solid rgba(139, 92, 246, 0.4); }
.badge-red { background: rgba(239, 68, 68, 0.2); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.4); }

/* Forms */
.form-group {
  margin-bottom: 18px;
  min-width: 0;
  max-width: 100%;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.input-text, .input-select {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.92rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.input-text:focus, .input-select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.input-with-action {
  display: flex;
  gap: 8px;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.chip.active {
  background: var(--accent-purple);
  color: white;
  border-color: var(--accent-purple);
  box-shadow: 0 2px 10px var(--accent-purple-glow);
}

.radio-toggle {
  display: flex;
  gap: 8px;
}

.radio-btn {
  flex: 1;
  cursor: pointer;
}

.radio-btn input {
  display: none;
}

.btn-box {
  display: block;
  padding: 10px;
  text-align: center;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.radio-btn input:checked + .btn-box {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--accent-purple);
  color: var(--text-primary);
  font-weight: 600;
}

/* Multi-Platform Selector */
.platform-selector-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.platform-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.platform-chip:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.platform-chip.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(6, 182, 212, 0.1));
  border-color: var(--accent-purple);
  box-shadow: 0 4px 16px -4px var(--accent-purple-glow), 0 0 0 1px var(--accent-purple);
  color: #fff;
}

.platform-icon {
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
}

.platform-info {
  display: flex;
  flex-direction: column;
}

.platform-name {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.platform-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.platform-chip.active .platform-sub {
  color: #c4b5fd;
}

.check-group {
  margin: 16px 0;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-purple);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-purple), #7c3aed);
  color: white;
  box-shadow: 0 4px 16px var(--accent-purple-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--accent-purple-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

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

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 14px 24px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.82rem;
}

/* Monitor Screen */
.monitor-screen {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.progress-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.terminal-box {
  background: #05080e;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.log-line {
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.text-muted {
  color: var(--text-muted);
}

.preview-result-box {
  margin-top: 10px;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.preview-result-box h4 {
  margin-bottom: 12px;
  color: var(--accent-emerald);
}

.main-video-player {
  width: 100%;
  max-height: 280px;
  border-radius: var(--radius-sm);
  background: black;
  margin-bottom: 12px;
}

.video-actions {
  display: flex;
  gap: 10px;
}

/* Ideas Studio */
.ideas-input-row {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

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

.idea-card {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s ease;
}

.idea-card:hover {
  border-color: var(--accent-purple);
  transform: translateY(-2px);
}

.idea-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.idea-score {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
}

.idea-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}

.idea-hook {
  font-size: 0.85rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--accent-cyan);
}

/* Scenes List */
.scenes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scene-item-card {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: grid;
  grid-template-columns: 60px 1fr 1fr 80px;
  gap: 16px;
  align-items: center;
}

.scene-num {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-purple);
  text-align: center;
}

/* Video Library */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.video-library-card {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.video-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}

.video-thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-duration-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.video-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.video-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}

.video-card-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* YouTube & Multi-Platform Publishing */
.yt-auth-banner {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(0,0,0,0.3));
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 24px;
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.yt-banner-text h4 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.yt-banner-text p {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

/* Social Channels Grid (Multi-Platform Hub) */
.social-channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.social-channel-card {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.social-channel-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}

.social-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.social-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.social-icon.yt-icon {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.social-icon.tiktok-icon {
  background: rgba(6, 182, 212, 0.15);
  color: #06b6d4;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.social-icon.insta-icon {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(245, 158, 11, 0.2));
  color: #ec4899;
  border: 1px solid rgba(236, 72, 153, 0.3);
}

/* Settings */
.settings-sections {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.settings-block {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 24px;
}

.settings-block h4 {
  font-size: 1.05rem;
  margin-bottom: 16px;
  color: var(--accent-cyan);
}

.empty-placeholder {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Data Table & Benchmarks */
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.data-table th, .data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
}

.data-table th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
}

.data-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.calendar-day-card:hover, .batch-item-card:hover {
  border-color: var(--accent-purple) !important;
  background: rgba(139, 92, 246, 0.05) !important;
}

.catalog-item {
  transition: all 0.2s ease;
}

.catalog-item:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: var(--accent-cyan) !important;
  transform: translateX(4px);
}

/* ==========================================================================
   ADVANCED TIMELINE STUDIO VIDEO EDITOR STYLES
   ========================================================================== */
.studio-container {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.studio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.studio-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.studio-title-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.studio-logo-icon {
  font-size: 1.8rem;
  background: rgba(139, 92, 246, 0.15);
  padding: 6px;
  border-radius: 10px;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.studio-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.studio-project-selector-wrapper {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.studio-workspace {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 16px;
  min-height: 600px;
}

@media (max-width: 1100px) {
  .studio-workspace {
    grid-template-columns: 1fr;
  }
}

.studio-stage-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Stage Monitor */
.studio-player-box {
  background: #080c14;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.studio-player-wrapper {
  position: relative;
  background: #000;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 380px;
  width: 100%;
  aspect-ratio: 16 / 9;
  transition: all 0.3s ease;
}

.studio-player-wrapper.vertical-mode {
  aspect-ratio: 9 / 16;
  max-width: 240px;
  max-height: 420px;
}

.studio-player-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.studio-subtitle-overlay {
  position: absolute;
  bottom: 12%;
  left: 5%;
  right: 5%;
  text-align: center;
  pointer-events: none;
  z-index: 10;
}

.studio-subtitle-overlay span {
  display: inline-block;
  background: rgba(0, 0, 0, 0.75);
  color: #facc15;
  font-weight: 800;
  font-size: 1.15rem;
  padding: 4px 12px;
  border-radius: 6px;
  text-shadow: 2px 2px 0px #000;
  letter-spacing: 0.03em;
  transition: all 0.15s ease;
}

/* Transport Controls */
.studio-transport-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 8px;
}

.transport-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.transport-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.15s ease;
}

.transport-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-purple);
}

.transport-btn.play-btn {
  background: var(--accent-purple);
  color: #fff;
  padding: 6px 16px;
  font-size: 1.1rem;
}

.studio-timecode {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  color: #38bdf8;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.studio-playback-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.input-select-mini {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
}

/* Multi-Track Timeline */
.studio-timeline-box {
  background: #090e17;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  flex-direction: column;
}

.timeline-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 6px;
}

.timeline-scroll-area {
  position: relative;
  overflow-x: auto;
  min-height: 240px;
  padding-bottom: 10px;
}

.timeline-ruler {
  height: 24px;
  margin-left: 110px;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 4px;
}

.ruler-tick {
  position: absolute;
  top: 4px;
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  color: #64748b;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  padding-left: 3px;
  height: 16px;
}

.timeline-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 110px;
  width: 2px;
  background: #ef4444;
  z-index: 50;
  pointer-events: none;
  transition: left 0.05s linear;
}

.playhead-head {
  position: absolute;
  top: 0;
  left: -6px;
  width: 14px;
  height: 14px;
  background: #ef4444;
  clip-path: polygon(0 0, 100% 0, 100% 60%, 50% 100%, 0 60%);
}

.timeline-track-row {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  height: 52px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.track-header {
  width: 110px;
  min-width: 110px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.track-tag {
  background: rgba(139, 92, 246, 0.25);
  color: #c4b5fd;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 2px 5px;
  border-radius: 4px;
}

.track-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-content {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 4px;
  padding: 0 4px;
  flex: 1;
}

/* Timeline Clip Blocks */
.clip-card {
  height: 42px;
  background: #1e1b4b;
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 6px;
  cursor: pointer;
  position: relative;
  user-select: none;
  transition: all 0.15s ease;
  overflow: hidden;
}

.clip-card:hover {
  border-color: #a855f7;
  background: #2e1065;
}

.clip-card.active {
  border-color: #ec4899;
  background: #3b0764;
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.5);
}

.clip-thumb {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  object-fit: cover;
  background: #000;
}

.clip-meta {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.clip-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
}

.clip-dur {
  font-size: 0.65rem;
  color: #94a3b8;
  font-family: 'JetBrains Mono', monospace;
}

.clip-reorder-btn {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 1px 3px;
  font-size: 0.65rem;
  border-radius: 3px;
}

.clip-reorder-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

/* Subtitle Cues Track */
.sub-cue-card {
  height: 36px;
  background: #0f2c3a;
  border: 1px solid rgba(14, 165, 233, 0.4);
  border-radius: 6px;
  padding: 2px 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: #38bdf8;
  cursor: pointer;
  white-space: nowrap;
}

.sub-cue-card:hover {
  background: #0369a1;
  color: #fff;
}

/* Audio Waveform Blocks */
.audio-block {
  height: 38px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  width: 100%;
}

.voice-block {
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.2), rgba(56, 189, 248, 0.1));
  border: 1px solid rgba(14, 165, 233, 0.3);
}

.music-block {
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.1));
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.audio-title {
  font-size: 0.75rem;
  font-weight: 600;
}

.audio-vol-badge {
  margin-left: auto;
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-family: 'JetBrains Mono', monospace;
  color: #f1f5f9;
}

/* Inspector Column */
.studio-inspector-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 800px;
  overflow-y: auto;
}

.inspector-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  gap: 4px;
  padding-bottom: 6px;
}

.insp-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 6px 4px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.15s ease;
}

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

.insp-tab.active {
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.15);
  font-weight: 700;
}

.insp-pane {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.insp-pane.active {
  display: flex;
}

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

.scene-media-preview-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.media-thumb-wrapper {
  position: relative;
  width: 100%;
  height: 120px;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-type-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(0, 0, 0, 0.7);
  color: #f8fafc;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
}

.media-action-buttons {
  display: flex;
  gap: 6px;
}

.stock-search-drawer {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--accent-purple);
  border-radius: 8px;
  padding: 8px;
}

.stock-results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  max-height: 180px;
  overflow-y: auto;
}

.stock-item-card {
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: #000;
  height: 70px;
}

.stock-item-card img, .stock-item-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stock-item-card:hover {
  border-color: #ec4899;
  transform: scale(1.02);
}

.sub-live-preview-box {
  background: #000;
  color: #facc15;
  font-weight: 800;
  padding: 14px;
  border-radius: 8px;
  text-align: center;
  font-size: 0.95rem;
  border: 1px dashed rgba(250, 204, 21, 0.4);
}

.btn-xs {
  padding: 3px 7px !important;
  font-size: 0.72rem !important;
}

/* ==========================================================================
   MOBILE BOTTOM NAVIGATION & APP EXPERIENCE
   ========================================================================== */
.mobile-bottom-nav {
  display: none !important;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  height: 64px;
  background: rgba(10, 14, 24, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border-color);
  z-index: 1000;
  padding: 0 4px;
  padding-bottom: env(safe-area-inset-bottom, 6px);
  align-items: center;
  justify-content: space-around;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
}

.mobile-nav-btn {
  flex: 1 1 0px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 4px 2px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  min-height: 48px;
}

.mobile-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
}

.mobile-nav-label {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.mobile-nav-btn:active .mobile-nav-icon {
  transform: scale(0.88);
}

.mobile-nav-btn.active {
  color: #fff;
}

.mobile-nav-btn.active .mobile-nav-icon {
  color: var(--accent-purple);
  transform: translateY(-2px);
  filter: drop-shadow(0 2px 8px var(--accent-purple-glow));
}

.mobile-nav-btn.active .mobile-nav-label {
  color: #c4b5fd;
  font-weight: 700;
}

.mobile-nav-btn.active::after {
  content: '';
  position: absolute;
  top: 0;
  width: 24px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
  border-radius: 0 0 3px 3px;
  box-shadow: 0 2px 8px var(--accent-purple-glow);
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS (TABLET & MOBILE)
   ========================================================================== */

/* Desktop Studio View (>= 1025px) */
@media (min-width: 1025px) {
  .mobile-top-bar {
    display: none !important;
  }
  .drawer-close-btn {
    display: none !important;
  }
  .mobile-bottom-nav {
    display: none !important;
  }
  .sidebar {
    position: relative !important;
    transform: none !important;
  }
}

/* Tablet Canvas View (769px - 1024px) */
@media (max-width: 1024px) {
  .mobile-top-bar {
    display: flex !important;
  }

  .app-layout {
    flex-direction: column !important;
    max-width: 100% !important;
  }

  .sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 290px !important;
    transform: translateX(-100%) !important;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8) !important;
    z-index: 1050 !important;
  }

  body.drawer-open .sidebar {
    transform: translateX(0) !important;
  }

  .drawer-close-btn {
    display: flex !important;
  }

  .main-content {
    padding: 20px 20px 88px 20px !important;
    width: 100% !important;
  }

  .grid-2col {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}

/* Mobile App View (<= 768px) */
@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex !important;
  }

  .app-layout {
    flex-direction: column !important;
    width: 100% !important;
    overflow-x: hidden !important;
  }

  .main-content {
    padding: 14px 12px 96px 12px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .top-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 18px;
  }

  .page-title h1 {
    font-size: 1.35rem;
  }

  .page-title p {
    font-size: 0.85rem;
  }

  .top-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    width: 100%;
  }

  /* Grids collapse to single column */
  .grid-2col,
  .grid-2col-nested,
  .grid-3col {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .card {
    padding: 16px 14px;
    border-radius: var(--radius-md);
    overflow: hidden;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
  }

  /* Horizontal Scrolling Touch Pills */
  .chip-group,
  .platform-selector-group {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
    gap: 8px;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .chip-group::-webkit-scrollbar,
  .platform-selector-group::-webkit-scrollbar {
    display: none;
  }

  .chip,
  .platform-chip {
    flex-shrink: 0 !important;
    white-space: nowrap;
  }

  .radio-toggle {
    flex-direction: column;
    gap: 6px;
  }

  .input-text,
  .input-select {
    min-height: 46px;
    font-size: 16px; /* iOS zoom prevention */
  }

  .btn {
    min-height: 44px;
    font-size: 0.88rem;
  }

  .btn-lg {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
  }

  /* Studio Workspace Mobile Stacking */
  .studio-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .studio-header-right {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .studio-project-selector-wrapper {
    width: 100%;
    justify-content: space-between;
  }

  .studio-project-selector-wrapper select {
    max-width: none !important;
    flex-grow: 1;
  }

  .studio-workspace {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .studio-player-wrapper {
    max-height: 260px;
  }

  .studio-player-wrapper.vertical-mode {
    max-width: 200px;
    max-height: 350px;
  }

  .studio-transport-bar {
    flex-direction: column;
    gap: 10px;
  }

  .transport-controls {
    width: 100%;
    justify-content: center;
    gap: 10px;
  }

  .transport-btn {
    padding: 8px 14px;
    min-height: 42px;
  }

  .studio-timecode {
    width: 100%;
    text-align: center;
  }

  .studio-playback-tools {
    width: 100%;
    justify-content: center;
  }

  .timeline-toolbar {
    flex-wrap: wrap;
    gap: 8px;
  }

  .timeline-scroll-area {
    min-height: 180px;
  }

  .scene-item-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .videos-grid {
    grid-template-columns: 1fr;
  }

  .social-channels-grid {
    grid-template-columns: 1fr;
  }

  .data-table {
    min-width: 580px;
  }

  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-right: -14px;
    padding-right: 14px;
  }
}

/* Small Smartphone Screen (< 400px) */
@media (max-width: 400px) {
  .mobile-app-title {
    font-size: 0.92rem;
  }

  .mobile-bottom-nav {
    height: 60px;
  }

  .mobile-nav-label {
    font-size: 0.62rem;
  }

  .btn-sm {
    padding: 6px 10px;
    font-size: 0.78rem;
  }
}

/* ==========================================================================
   LIVE PIPELINE STEPPER & PROGRESS FEEDBACK STYLES
   ========================================================================== */

.pipeline-stepper {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.pipe-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 2px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
  text-align: center;
}

.pipe-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  transition: all 0.3s ease;
}

.pipe-step small {
  font-size: 0.65rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.pipe-step.active {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.25);
}

.pipe-step.active span {
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  color: #ffffff;
  box-shadow: 0 0 8px #8b5cf6;
  animation: pulse-glow 1.5s infinite;
}

.pipe-step.active small {
  color: #c4b5fd;
}

.pipe-step.completed {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.4);
}

.pipe-step.completed span {
  background: #10b981;
  color: #ffffff;
}

.pipe-step.completed small {
  color: #34d399;
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.85; }
}

/* Interactive Multi-Step Generation Progress Card */
.generation-progress-card {
  padding: 24px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.85), rgba(30, 41, 59, 0.65));
  border: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(139, 92, 246, 0.15);
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeIn 0.3s ease-out;
}

.gen-progress-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.gen-progress-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(139, 92, 246, 0.2);
  border-top-color: #8b5cf6;
  border-right-color: #06b6d4;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

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

.gen-progress-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8fafc;
}

.gen-progress-subtitle {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: #94a3b8;
}

.gen-progress-pct {
  margin-left: auto;
  font-size: 1.15rem;
  font-weight: 800;
  color: #8b5cf6;
  font-family: 'JetBrains Mono', monospace;
}

.gen-progress-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.gen-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #8b5cf6, #ec4899, #06b6d4);
  background-size: 200% 100%;
  animation: gradient-move 2s linear infinite;
  border-radius: 999px;
  transition: width 0.4s ease-out;
}

@keyframes gradient-move {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.gen-stepper-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gen-step-badge {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #64748b;
  transition: all 0.3s ease;
}

.gen-step-badge.active {
  background: rgba(139, 92, 246, 0.2);
  border-color: #8b5cf6;
  color: #c4b5fd;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.gen-step-badge.completed {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  color: #34d399;
}

.generation-error-card {
  padding: 24px;
  border-radius: 16px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  text-align: center;
  margin: 16px 0;
}



