:root {
  --bg-dark: #070A0F;
  --bg-surface: #0E141F;
  --card-bg: rgba(18, 26, 38, 0.75);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-active: rgba(147, 51, 234, 0.4);
  
  --gold-primary: #F59E0B;
  --gold-light: #FDE68A;
  --gold-glow: rgba(245, 158, 11, 0.25);
  
  --purple-primary: #8B5CF6;
  --purple-glow: rgba(139, 92, 246, 0.3);
  --blue-primary: #3B82F6;
  --cyan-primary: #06B6D4;
  --emerald: #10B981;
  --rose: #F43F5E;
  --whatsapp: #25D366;
  
  --text-primary: #FFFFFF;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  
  --font-family: 'Plus Jakarta Sans', 'Hind Siliguri', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-glass: 0 12px 40px 0 rgba(0, 0, 0, 0.45);
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-family);
  min-height: 100vh;
  padding-bottom: 95px;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  user-select: none;
  background-image: 
    radial-gradient(circle at 20% 15%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.03) 0%, transparent 60%);
  background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Top App Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 10, 15, 0.85);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-bottom: 1px solid var(--card-border);
  padding: env(safe-area-inset-top, 12px) 20px 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo-box {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #8B5CF6, #3B82F6, #EC4899);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
  position: relative;
  overflow: hidden;
}

.logo-box::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  100% { left: 100%; }
}

.brand-titles h1 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-titles h1 span {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  font-size: 9px;
  font-weight: 800;
  background: rgba(139, 92, 246, 0.2);
  color: #C084FC;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid rgba(139, 92, 246, 0.4);
}

.brand-titles p {
  font-size: 11px;
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pill-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.pill-btn.primary {
  background: linear-gradient(135deg, #8B5CF6, #6366F1);
  color: white;
  border: none;
  box-shadow: 0 2px 10px rgba(139, 92, 246, 0.3);
}

.pill-btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}

/* Main Container */
.main-container {
  flex: 1;
  padding: 18px;
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
}

.tab-page {
  display: none;
  flex-direction: column;
  gap: 18px;
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-page.active {
  display: flex;
}

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

/* Glassmorphic Cards */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 22px;
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.card-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.card-header .icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  shrink: 0;
}

.card-header h2 {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
}

.card-header p {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.5;
}

/* Form Groups & Inputs */
.form-group {
  margin-bottom: 16px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(10, 14, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  font-size: 13px;
  color: var(--text-primary);
  font-family: inherit;
  transition: all 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--purple-primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
  background: rgba(14, 20, 32, 0.95);
}

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

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

.form-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

@media (max-width: 600px) {
  .form-row, .form-row-3 {
    grid-template-columns: 1fr;
  }
}

.hint-text {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 5px;
}

/* Stage Theme Switcher Chips */
.theme-selector-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.theme-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 10px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.theme-chip:hover {
  background: rgba(255, 255, 255, 0.08);
}

.theme-chip.active {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--purple-primary);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.3);
}

.theme-chip .icon {
  font-size: 18px;
  display: block;
  margin-bottom: 4px;
}

.theme-chip .name {
  font-size: 11px;
  font-weight: 700;
  color: #E2E8F0;
  display: block;
}

/* File Upload Button */
.file-upload-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px dashed rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 12px;
  font-weight: 700;
  color: #CBD5E1;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.file-upload-btn:hover {
  border-color: var(--purple-primary);
  background: rgba(139, 92, 246, 0.08);
  color: #FFFFFF;
}

.file-upload-btn input[type="file"] {
  display: none;
}

.photo-preview-box {
  position: relative;
  width: 100%;
  max-height: 160px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--card-border);
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-preview-box img {
  max-height: 160px;
  object-fit: contain;
}

.badge-attached {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(16, 185, 129, 0.9);
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

/* Primary Action Buttons */
.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, #8B5CF6, #6366F1, #3B82F6);
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 20px;
  color: white;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}

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

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

.action-buttons-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.btn-action {
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-action.success-btn {
  background: #10B981;
  color: white;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-action.whatsapp-btn {
  background: #25D366;
  color: white;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-action:hover {
  transform: translateY(-1px);
}

/* Status Message */
.status-msg {
  font-size: 12px;
  font-weight: 600;
  margin-top: 12px;
  text-align: center;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
}

/* Canvas Wrapper */
.canvas-wrapper {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  aspect-ratio: 1/1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: #000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.canvas-wrapper.aspect-reels {
  aspect-ratio: 9/16;
  max-width: 320px;
  max-height: 570px;
}

.canvas-wrapper canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Trending Poster Chips */
.trending-chips-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: none;
}
.trending-chips-bar::-webkit-scrollbar {
  display: none;
}
.trend-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}
.trend-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}
.trend-chip.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(59, 130, 246, 0.35));
  border-color: var(--primary);
  color: #FFFFFF;
}

/* Result Card */
.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.result-header h3 {
  font-size: 14px;
  font-weight: 800;
}

.gold-badge {
  font-size: 10px;
  font-weight: 800;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #000;
  padding: 3px 8px;
  border-radius: 12px;
}

/* Section Title Row */
.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.section-title-row h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}

.badge-count {
  font-size: 11px;
  font-weight: 800;
  background: rgba(139, 92, 246, 0.2);
  color: #C084FC;
  padding: 3px 9px;
  border-radius: 20px;
  border: 1px solid rgba(139, 92, 246, 0.4);
}

/* Category Filter Chips */
.category-filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 10px;
}

.filter-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.filter-chip.active {
  background: rgba(139, 92, 246, 0.2);
  border-color: var(--purple-primary);
  color: #FFFFFF;
}

/* Apps Grid */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.app-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.app-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.app-card:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.15);
}

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

.app-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.app-card .app-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.tag-gem {
  font-size: 9px;
  font-weight: 800;
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.app-card h3 {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.app-card p {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 12px;
}

.app-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 10px;
  font-size: 10.5px;
}

.meta-tag {
  color: var(--text-muted);
  font-weight: 600;
}

.btn-embed-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  color: #A5B4FC;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-embed-chip:hover {
  background: rgba(139, 92, 246, 0.3);
  color: white;
}

/* Reply Blocks */
.reply-block {
  background: rgba(10, 14, 22, 0.7);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 12px;
}

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

.reply-header h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-light);
}

.copy-chip-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--card-border);
  color: #CBD5E1;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.copy-chip-btn:hover {
  background: var(--purple-primary);
  color: white;
}

.reply-content {
  font-size: 12px;
  line-height: 1.6;
  color: #E2E8F0;
  white-space: pre-wrap;
}

/* Modal Windows (Embed & Runner) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease-out;
}

.modal-backdrop.hidden {
  display: none;
}

.modal-content {
  background: #0E141F;
  border: 1px solid var(--card-border-active);
  border-radius: var(--radius-xl);
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  position: relative;
}

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

.modal-header h3 {
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-close-modal {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-close-modal:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #EF4444;
}

.code-snippet-box {
  background: #05080C;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 14px;
  font-family: monospace;
  font-size: 11.5px;
  color: #38BDF8;
  overflow-x: auto;
  margin-bottom: 14px;
  position: relative;
}

/* Bottom Navigation Bar (iOS 18 Style) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 14, 22, 0.88);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-top: 1px solid var(--card-border);
  height: 72px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 4px 10px env(safe-area-inset-bottom, 8px) 10px;
}

.nav-item {
  background: none;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex: 1;
}

.nav-item .nav-icon {
  font-size: 20px;
  transition: transform 0.2s;
}

.nav-item .nav-label {
  font-size: 10.5px;
  font-weight: 700;
}

.nav-item.active {
  color: #C084FC;
}

.nav-item.active .nav-icon {
  transform: translateY(-2px);
}

.nav-item:active {
  transform: scale(0.92);
}

/* Utilities */
.hidden {
  display: none !important;
}

.danger-text {
  color: #F87171 !important;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.empty-state .icon-empty {
  font-size: 40px;
  display: block;
  margin-bottom: 10px;
  opacity: 0.5;
}

.safari-hint {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  font-size: 11.5px;
  color: #DDD6FE;
  line-height: 1.5;
}

/* UGC Video Studio & Google Flow Styling */
.ugc-timeline-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.ugc-shot-card {
  background: rgba(10, 14, 22, 0.75);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 14px;
  position: relative;
  overflow: hidden;
}

.ugc-shot-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3.5px;
  background: linear-gradient(180deg, #8B5CF6, #06B6D4);
}

.ugc-shot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.ugc-shot-time {
  font-size: 10px;
  font-weight: 800;
  background: rgba(139, 92, 246, 0.2);
  color: #C084FC;
  padding: 2px 7px;
  border-radius: 6px;
  font-family: monospace;
}

.ugc-shot-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #F8FAFC;
}

.ugc-shot-desc {
  font-size: 11.5px;
  color: #94A3B8;
  line-height: 1.5;
  margin-bottom: 8px;
}

.ugc-shot-script {
  font-size: 12px;
  color: #FDE68A;
  background: rgba(245, 158, 11, 0.08);
  border: 1px dashed rgba(245, 158, 11, 0.25);
  padding: 8px 12px;
  border-radius: 6px;
  line-height: 1.5;
}

.ugc-prompt-box {
  background: #05080C;
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-md);
  padding: 14px;
  font-family: monospace;
  font-size: 11.5px;
  color: #38BDF8;
  line-height: 1.6;
  white-space: pre-wrap;
  position: relative;
  margin-top: 10px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
}

.ugc-tag-pill {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.ugc-tag-pill.veo {
  background: rgba(59, 130, 246, 0.2);
  color: #60A5FA;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.ugc-tag-pill.omni {
  background: rgba(236, 72, 153, 0.2);
  color: #F472B6;
  border: 1px solid rgba(236, 72, 153, 0.4);
}

.ugc-presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.ugc-preset-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ugc-preset-card:hover {
  background: rgba(139, 92, 246, 0.08);
  border-color: var(--purple-primary);
  transform: translateY(-2px);
}

.ugc-preset-card.active {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--purple-primary);
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.3);
}

.ugc-preset-card .icon {
  font-size: 22px;
  margin-bottom: 6px;
}

.ugc-preset-card h4 {
  font-size: 12px;
  font-weight: 700;
  color: #F1F5F9;
  margin-bottom: 4px;
}

.ugc-preset-card p {
  font-size: 10.5px;
  color: #94A3B8;
  line-height: 1.4;
}

/* --- 16+ Distinct 3D Stage Theme Selector Grid --- */
.theme-selector-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 10px;
  margin-top: 6px;
  margin-bottom: 14px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
}

.theme-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 4px;
  position: relative;
  user-select: none;
}

.theme-chip:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.theme-chip.active {
  background: linear-gradient(145deg, rgba(229, 184, 58, 0.15), rgba(139, 92, 246, 0.18));
  border-color: #F59E0B;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.35);
  transform: translateY(-2px);
}

.theme-chip .icon {
  font-size: 20px;
}

.theme-chip .name {
  font-size: 11px;
  font-weight: 700;
  color: #F1F5F9;
  line-height: 1.2;
}

.theme-chip .tag {
  font-size: 8.5px;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- 3D CGI Master Prompt Studio & Library --- */
.cgi-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.cgi-card {
  background: linear-gradient(145deg, #111827 0%, #0B0F17 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.cgi-card:hover {
  border-color: #8B5CF6;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.25);
}

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

.cgi-card-title {
  font-size: 15px;
  font-weight: 800;
  color: #FFFFFF;
}

.cgi-card-category {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(139, 92, 246, 0.18);
  color: #C084FC;
  border: 1px solid rgba(139, 92, 246, 0.4);
  text-transform: uppercase;
}

.cgi-prompt-content {
  background: #06090E;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 12px;
  font-family: 'SF Mono', Consolas, monospace;
  font-size: 11.5px;
  color: #38BDF8;
  line-height: 1.5;
  margin: 10px 0;
  max-height: 140px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

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

.btn-copy-prompt {
  flex: 1;
  background: linear-gradient(135deg, #3B82F6, #1D4ED8);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-copy-prompt:hover {
  background: linear-gradient(135deg, #60A5FA, #2563EB);
  transform: translateY(-1px);
}

.btn-apply-poster {
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-apply-poster:hover {
  background: rgba(245, 158, 11, 0.3);
  border-color: #F59E0B;
}

/* --- Live Autocomplete Dropdown --- */
.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #0D131F;
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: var(--radius-md);
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  margin-top: 4px;
}

.autocomplete-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.15s ease;
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover, .autocomplete-item.highlighted {
  background: rgba(139, 92, 246, 0.2);
}

.autocomplete-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: #1E293B;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.autocomplete-info {
  flex: 1;
  min-width: 0;
}

.autocomplete-title {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.autocomplete-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  font-size: 11.5px;
}

.autocomplete-brand {
  color: #C084FC;
  font-weight: 700;
}

.autocomplete-price {
  color: #10B981;
  font-weight: 800;
}

.autocomplete-copy-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #CBD5E1;
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.autocomplete-copy-btn:hover {
  background: var(--primary);
  color: #FFFFFF;
}

/* --- Catalog Browser Modal Grid --- */
.catalog-modal-content {
  max-width: 900px;
  width: 94%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}

.catalog-search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  overflow-y: auto;
  max-height: calc(88vh - 220px);
  padding-right: 4px;
}

.catalog-item-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.catalog-item-card:hover {
  border-color: var(--primary);
  background: rgba(139, 92, 246, 0.06);
  transform: translateY(-2px);
}

.catalog-item-img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  background: #0B0F17;
  border-radius: 8px;
  margin-bottom: 8px;
}

.catalog-item-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}

.catalog-item-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 10px;
}

.catalog-item-price {
  font-size: 14px;
  font-weight: 800;
  color: #10B981;
}

.catalog-item-reg-price {
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.catalog-item-actions {
  display: flex;
  gap: 6px;
}

.btn-catalog-copy {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #E2E8F0;
  padding: 7px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-catalog-copy:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
}

.btn-catalog-use {
  flex: 1.2;
  background: linear-gradient(135deg, #8B5CF6, #6366F1);
  border: none;
  color: #FFFFFF;
  padding: 7px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-catalog-use:hover {
  background: linear-gradient(135deg, #A78BFA, #4F46E5);
}

/* --- Multi-Store Switcher & Client URL Sync Panel --- */
.store-switcher-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 10px 0;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  scrollbar-width: thin;
}

.store-chip-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #CBD5E1;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.store-chip-btn:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: #8B5CF6;
  color: #FFFFFF;
}

.store-chip-btn.active {
  background: linear-gradient(135deg, #8B5CF6, #6366F1);
  border-color: #A78BFA;
  color: #FFFFFF;
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.4);
}

.store-chip-btn.add-store-btn {
  background: rgba(16, 185, 129, 0.12);
  border: 1px dashed rgba(16, 185, 129, 0.4);
  color: #34D399;
}

.store-chip-btn.add-store-btn:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: #10B981;
  color: #FFFFFF;
}

.store-sync-panel {
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.95), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  animation: slideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.store-info-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 10px;
  font-size: 11.5px;
}

.store-info-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #E2E8F0;
}

.store-badge-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(139, 92, 246, 0.2);
  color: #C084FC;
  border: 1px solid rgba(139, 92, 246, 0.4);
}

.btn-delete-store {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #F87171;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-delete-store:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #FFFFFF;
}

/* --- Multi-Product Grid Poster Engine Styles --- */
.poster-mode-switcher {
  display: flex;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 6px;
  margin-bottom: 16px;
}

.poster-mode-btn {
  flex: 1;
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #94A3B8;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.poster-mode-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.05);
}

.poster-mode-btn.active {
  background: linear-gradient(135deg, #8B5CF6, #6366F1);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}

.multi-product-slots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

@media (max-width: 650px) {
  .multi-product-slots-grid {
    grid-template-columns: 1fr;
  }
}

.product-slot-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  transition: all 0.2s;
  position: relative;
}

.product-slot-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(15, 23, 42, 0.85);
}

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

.slot-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #C084FC;
  display: flex;
  align-items: center;
  gap: 5px;
}

.slot-thumb-container {
  width: 100%;
  height: 80px;
  border-radius: 8px;
  background: #020617;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  overflow: hidden;
  position: relative;
}

.slot-thumb-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.slot-file-input {
  display: none;
}

.slot-upload-label {
  font-size: 10.5px;
  font-weight: 700;
  color: #94A3B8;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.slot-upload-label:hover {
  color: #FFFFFF;
}

.slot-inputs-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 6px;
  margin-bottom: 6px;
}

.slot-input {
  width: 100%;
  background: rgba(2, 6, 23, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 11px;
  color: #FFFFFF;
}

.slot-input:focus {
  border-color: #8B5CF6;
  outline: none;
}



