:root {
  --bg-primary: #0b0f19;
  --bg-secondary: #131b2e;
  --bg-card: #182238;
  --bg-card-hover: #1f2c49;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-purple: #8b5cf6;
  --accent-orange: #f59e0b;
  --accent-rose: #f43f5e;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-subtle: #24324f;
  --border-focus: #06b6d4;
  --shadow-glow: 0 0 30px rgba(6, 182, 212, 0.15);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 70px;
}

/* ==================== ADS STYLES ==================== */
.ad-container {
  width: 100%;
  max-width: 950px;
  margin: 12px auto;
  padding: 0 16px;
}

.ad-placeholder {
  background: rgba(24, 34, 56, 0.7);
  border: 1px dashed #334155;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  text-align: center;
}

.ad-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  background: #334155;
  color: #94a3b8;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 4px;
}

.ad-title {
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
}

.ad-tagline {
  font-size: 11px;
  color: #64748b;
}

/* ==================== NAVBAR ==================== */
.navbar {
  background: rgba(11, 15, 25, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 40;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

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

.logo-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-pro {
  font-size: 9px;
  font-weight: 900;
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: 0.8px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}

.nav-link-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.logo-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.accent-text { color: var(--accent-cyan); }
.logo-domain { display: block; font-size: 11px; color: var(--text-muted); }

.nav-tabs {
  display: flex;
  gap: 8px;
  background: rgba(19, 27, 46, 0.8);
  padding: 4px;
  border-radius: 30px;
  border: 1px solid var(--border-subtle);
}

.nav-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.nav-tab:hover { color: #ffffff; }

.nav-tab.active {
  background: linear-gradient(135deg, var(--accent-cyan), #0284c7);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(6, 182, 212, 0.3);
}

.badge-new {
  font-size: 9px;
  font-weight: 800;
  background: var(--accent-rose);
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 10px;
}

.btn-install {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
}

/* ==================== HERO & DOWNLOADER ==================== */
.main-content {
  flex: 1;
  max-width: 1050px;
  margin: 0 auto;
  padding: 24px 20px;
  width: 100%;
}

.hero-section {
  text-align: center;
  padding: 20px 0 26px;
}

.hero-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.gradient-text {
  background: linear-gradient(135deg, #38bdf8, #34d399, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 24px;
}

.platform-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.tab-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn:hover { background: var(--bg-card); color: var(--text-main); }
.tab-btn.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(16, 185, 129, 0.2));
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.input-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: var(--shadow-glow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 640px) {
  .input-card { flex-direction: row; padding: 8px; align-items: center; }
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0 12px;
}

.input-wrapper:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
}

.input-icon { font-size: 18px; margin-right: 8px; }

#url-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 15px;
  padding: 14px 0;
}

.btn-clear { background: none; border: none; color: #64748b; font-size: 14px; cursor: pointer; padding: 4px; display: none; }
.btn-paste {
  background: var(--bg-secondary); border: 1px solid #334155; color: #cbd5e1;
  padding: 6px 12px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 600; cursor: pointer;
}

.btn-download {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-emerald));
  color: #0b0f19; border: none; font-size: 15px; font-weight: 700; padding: 14px 28px;
  border-radius: var(--radius-md); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
}

.supported-tags {
  margin-top: 18px; font-size: 12px; color: var(--text-muted);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
}

.tag { background: rgba(30, 41, 59, 0.6); border: 1px solid #334155; padding: 2px 8px; border-radius: 4px; color: #94a3b8; }

/* ==================== RESULT CARD ==================== */
.hidden { display: none !important; }

.loading-card, .error-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); padding: 24px; text-align: center; margin: 20px 0;
}

.spinner {
  width: 44px; height: 44px; border: 4px solid rgba(6, 182, 212, 0.2);
  border-top-color: var(--accent-cyan); border-radius: 50%;
  animation: spin 0.8s linear infinite; margin: 0 auto 16px;
}

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

.result-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 20px; display: flex; flex-direction: column; gap: 20px;
}

@media (min-width: 640px) { .result-card { flex-direction: row; } }

.media-preview {
  position: relative; width: 100%; max-width: 240px; aspect-ratio: 9/16;
  max-height: 280px; border-radius: var(--radius-md); overflow: hidden; background: #000; margin: 0 auto;
}
.media-preview img { width: 100%; height: 100%; object-fit: cover; }

.media-duration {
  position: absolute; bottom: 8px; right: 8px; background: rgba(0, 0, 0, 0.8);
  font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 4px;
}

.media-platform-badge {
  position: absolute; top: 8px; left: 8px; background: var(--accent-cyan);
  color: #0b0f19; font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 4px;
}

.media-details { flex: 1; display: flex; flex-direction: column; }
.media-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.media-author { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }

.download-options-grid { display: flex; flex-direction: column; gap: 12px; }

.dl-btn {
  background: var(--bg-secondary); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); padding: 12px 16px; color: var(--text-main);
  cursor: pointer; display: flex; align-items: center; gap: 12px; transition: all 0.2s;
}

.dl-btn:hover { background: var(--bg-card-hover); border-color: var(--accent-cyan); transform: translateY(-2px); }
.dl-btn-icon { font-size: 22px; }
.dl-btn-text { flex: 1; display: flex; flex-direction: column; }
.dl-label { font-size: 14px; font-weight: 700; }
.dl-sub { font-size: 11px; color: var(--text-muted); }

.dl-studio {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(6, 182, 212, 0.15));
  border-color: rgba(139, 92, 246, 0.4);
}
.dl-studio:hover { border-color: var(--accent-purple); box-shadow: 0 0 15px rgba(139, 92, 246, 0.3); }

.badge-studio {
  font-size: 11px; font-weight: 800; background: var(--accent-purple); color: #fff; padding: 4px 10px; border-radius: 20px;
}
.reward-pill {
  font-size: 10px; font-weight: 700; background: rgba(245, 158, 11, 0.15);
  color: var(--accent-orange); border: 1px solid rgba(245, 158, 11, 0.3); padding: 4px 8px; border-radius: 20px;
}

/* ==================== CREATIVE CUT STUDIO ==================== */
.studio-header-section { width: 100%; }

.studio-container {
  display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 20px;
}

@media (min-width: 900px) { .studio-container { grid-template-columns: 1.1fr 1fr; } }

.studio-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 18px; margin-bottom: 18px;
}

.step-title {
  font-size: 15px; font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}

.step-num {
  background: var(--accent-cyan); color: #0b0f19; width: 22px; height: 22px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800;
}

/* Aspect Grid */
.aspect-selector-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }

.aspect-card {
  background: var(--bg-secondary); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); padding: 12px; cursor: pointer; display: flex;
  flex-direction: column; align-items: center; text-align: center; transition: all 0.2s;
}
.aspect-card input { display: none; }
.aspect-card.active, .aspect-card:has(input:checked) {
  border-color: var(--accent-cyan); background: rgba(6, 182, 212, 0.12);
}
.aspect-icon { font-size: 20px; margin-bottom: 4px; }
.aspect-name { font-size: 12px; font-weight: 700; }
.aspect-dim { font-size: 10px; color: var(--text-muted); }

/* Layout Grid */
.layout-selector-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.layout-btn {
  background: var(--bg-secondary); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); padding: 10px 8px; color: var(--text-muted);
  font-size: 11px; font-weight: 700; cursor: pointer; display: flex;
  flex-direction: column; align-items: center; gap: 6px; transition: all 0.2s;
}
.layout-btn.active { border-color: var(--accent-purple); background: rgba(139, 92, 246, 0.15); color: #fff; }

.layout-preview-box {
  width: 32px; height: 42px; border: 1px solid #475569; border-radius: 4px; overflow: hidden; background: #0f172a; display: flex;
}
.l-single { background: #334155; }
.l-split-v { flex-direction: column; }
.l-split-v div { flex: 1; border-bottom: 1px solid #475569; }
.l-split-h div { flex: 1; border-right: 1px solid #475569; }
.l-triple { flex-direction: column; }
.l-triple div:first-child { flex: 1; border-bottom: 1px solid #475569; }
.l-triple div:last-child { display: flex; flex: 1; }
.l-quad { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.l-quad div { border: 0.5px solid #475569; }
.l-hexa { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr 1fr; }
.l-hexa div { border: 0.5px solid #475569; }

/* Playback Mode (CapCut Style) */
.playback-mode-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 600px) { .playback-mode-grid { grid-template-columns: 1fr 1fr; } }

.playback-card {
  background: var(--bg-secondary); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); padding: 14px; cursor: pointer; display: flex;
  align-items: flex-start; gap: 12px; transition: all 0.2s;
}
.playback-card input { display: none; }
.playback-card.active, .playback-card:has(input:checked) {
  border-color: var(--accent-emerald); background: rgba(16, 185, 129, 0.12);
}
.pb-icon { font-size: 22px; }
.pb-text strong { display: block; font-size: 13px; color: #fff; margin-bottom: 4px; }
.pb-text p { font-size: 11px; color: var(--text-muted); line-height: 1.4; }

/* Caption / Headline Text */
.caption-input-wrapper { display: flex; flex-direction: column; gap: 10px; }
.caption-input-wrapper input[type="text"] {
  background: var(--bg-primary); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm); padding: 10px 14px; color: #fff; font-size: 13px; outline: none;
}
.caption-pos-row { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--text-muted); }
.caption-pos-row label { display: flex; align-items: center; gap: 4px; cursor: pointer; color: #cbd5e1; }

/* Multi-Audio Tracks */
.audio-track-box {
  background: var(--bg-secondary); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); padding: 14px; margin-bottom: 12px;
}
.track-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13px; }
.track-tag { font-size: 9px; font-weight: 800; padding: 2px 6px; border-radius: 4px; }
.tag-music { background: rgba(6, 182, 212, 0.2); color: var(--accent-cyan); border: 1px solid rgba(6, 182, 212, 0.3); }
.tag-voice { background: rgba(244, 63, 94, 0.2); color: var(--accent-rose); border: 1px solid rgba(244, 63, 94, 0.3); }
.tag-sfx { background: rgba(245, 158, 11, 0.2); color: var(--accent-orange); border: 1px solid rgba(245, 158, 11, 0.3); }

.music-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.btn-subtab {
  background: var(--bg-primary); border: 1px solid var(--border-subtle); color: var(--text-muted);
  font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 12px; cursor: pointer;
}
.btn-subtab.active { background: var(--accent-cyan); color: #0b0f19; }

.file-input { display: none; }
.btn-file-upload {
  display: inline-block; background: var(--bg-primary); border: 1px solid #334155;
  color: #fff; font-size: 12px; font-weight: 600; padding: 8px 14px; border-radius: var(--radius-sm); cursor: pointer;
}
.btn-file-upload-mini {
  display: inline-block; background: var(--bg-primary); border: 1px solid #334155;
  color: #fff; font-size: 11px; font-weight: 600; padding: 6px 10px; border-radius: var(--radius-sm); cursor: pointer;
}

.file-name-label { font-size: 11px; color: var(--text-muted); margin-left: 8px; }
.input-wrapper-mini { display: flex; gap: 6px; }
.input-wrapper-mini input {
  flex: 1; background: var(--bg-primary); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm); padding: 8px 10px; color: #fff; font-size: 12px;
}
.btn-mini-fetch {
  background: var(--accent-cyan); color: #0b0f19; border: none; border-radius: var(--radius-sm);
  font-size: 11px; font-weight: 700; padding: 0 12px; cursor: pointer;
}

.volume-slider-row {
  display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-muted); margin-top: 8px;
}
.volume-slider-row input[type="range"] { flex: 1; accent-color: var(--accent-cyan); }
.delay-tag { font-size: 11px; color: var(--text-muted); background: #0f172a; padding: 2px 6px; border-radius: 4px; }
.input-mini-num {
  width: 50px; background: var(--bg-primary); border: 1px solid var(--border-subtle);
  color: #fff; font-size: 12px; padding: 2px 6px; border-radius: 4px; text-align: center;
}

.voice-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.btn-mic {
  background: rgba(244, 63, 94, 0.15); border: 1px solid rgba(244, 63, 94, 0.3); color: var(--accent-rose);
  font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: var(--radius-sm); cursor: pointer;
  display: flex; align-items: center; gap: 6px;
}
.btn-mic.recording { background: var(--accent-rose); color: #fff; }
.mic-dot { width: 8px; height: 8px; background: var(--accent-rose); border-radius: 50%; }
.btn-mic-stop {
  background: #334155; border: none; color: #fff; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: var(--radius-sm); cursor: pointer;
}
.track-player { width: 100%; height: 32px; margin-top: 6px; }

.styled-select {
  width: 100%; background: var(--bg-primary); border: 1px solid var(--border-subtle);
  color: #fff; font-size: 13px; padding: 8px 12px; border-radius: var(--radius-sm); outline: none; margin-top: 6px;
}

/* ==================== CANVAS & SLOTS ==================== */
.studio-canvas-panel { display: flex; flex-direction: column; }
.canvas-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 18px;
}
.canvas-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; flex-wrap: wrap; gap: 10px;
}
.canvas-header-left { display: flex; align-items: center; gap: 10px; }
.canvas-header h3 { font-size: 15px; font-weight: 800; }
.badge-ratio { font-size: 11px; font-weight: 700; background: rgba(6, 182, 212, 0.15); color: var(--accent-cyan); padding: 2px 8px; border-radius: 12px; }

/* Grid Border Controls */
.grid-border-toolbar {
  display: flex; align-items: center; gap: 10px; background: var(--bg-secondary);
  border: 1px solid var(--border-subtle); padding: 6px 10px; border-radius: var(--radius-sm);
}
.toggle-label {
  display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 11px; font-weight: 700; color: #cbd5e1; user-select: none;
}
.toggle-label input[type="checkbox"] { accent-color: var(--accent-cyan); width: 14px; height: 14px; cursor: pointer; }
.border-style-options { display: flex; align-items: center; gap: 6px; }
.mini-select {
  background: var(--bg-primary); border: 1px solid #334155; color: #cbd5e1;
  font-size: 11px; padding: 3px 6px; border-radius: 4px; outline: none; cursor: pointer;
}

.video-canvas-stage {
  width: 100%; max-width: 360px; margin: 0 auto; background: #000;
  border: 2px solid #334155; border-radius: var(--radius-md); overflow: hidden; position: relative;
  display: grid; gap: 4px; transition: gap 0.2s, background 0.2s;
}
.stage-9-16 { aspect-ratio: 9/16; }
.stage-16-9 { aspect-ratio: 16/9; max-width: 100%; }
.stage-1-1  { aspect-ratio: 1/1; }
.stage-4-5  { aspect-ratio: 4/5; }

.canvas-hint-text {
  text-align: center; font-size: 11px; color: var(--text-muted); margin-top: 10px;
}

/* Individual Slot Tiles */
.slot-item {
  background: #111827; position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1px dashed #334155; cursor: pointer; transition: all 0.2s;
}
.slot-item:hover { border-color: var(--accent-cyan); }
.slot-item.has-media { border: none; }
.slot-preview-media { width: 100%; height: 100%; object-fit: cover; display: block; }

.slot-empty-state { text-align: center; padding: 10px; cursor: pointer; }
.slot-plus-icon { font-size: 26px; color: var(--accent-cyan); margin-bottom: 4px; font-weight: 700; }
.slot-label { font-size: 11px; font-weight: 800; color: #cbd5e1; display: block; }
.slot-hint { font-size: 9px; color: #64748b; }

.slot-header-pill {
  position: absolute; top: 6px; left: 6px; background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px); color: #fff; font-size: 9px; font-weight: 800;
  padding: 2px 6px; border-radius: 4px; z-index: 5; border: 1px solid rgba(255, 255, 255, 0.15);
}

.slot-badges-row {
  position: absolute; bottom: 6px; left: 6px; right: 6px; display: flex;
  flex-wrap: wrap; gap: 4px; z-index: 5; pointer-events: none;
}
.slot-mini-badge {
  background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(4px); font-size: 8px; font-weight: 700;
  padding: 1px 4px; border-radius: 3px; border: 1px solid rgba(255, 255, 255, 0.1); color: #cbd5e1;
}
.badge-anim { color: var(--accent-cyan); border-color: rgba(6, 182, 212, 0.3); }
.badge-effect { color: var(--accent-purple); border-color: rgba(139, 92, 246, 0.3); }
.badge-voice { color: var(--accent-rose); border-color: rgba(244, 63, 94, 0.3); }
.badge-trim { color: var(--accent-orange); border-color: rgba(245, 158, 11, 0.3); }

.slot-overlay-controls {
  position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; z-index: 6;
}
.btn-slot-edit {
  background: rgba(6, 182, 212, 0.85); border: none; color: #0b0f19; font-size: 10px;
  font-weight: 800; padding: 2px 7px; border-radius: 4px; cursor: pointer; transition: all 0.2s;
}
.btn-slot-edit:hover { background: #06b6d4; transform: scale(1.05); }
.btn-slot-delete {
  background: rgba(0, 0, 0, 0.8); border: 1px solid #475569; color: #f87171; font-size: 10px;
  width: 20px; height: 20px; border-radius: 4px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.btn-slot-delete:hover { background: #ef4444; color: #fff; }

/* Render & Export */
.render-action-card { margin-top: 18px; text-align: center; }
.btn-render {
  width: 100%; background: linear-gradient(135deg, var(--accent-purple), #6366f1);
  color: #fff; border: none; font-size: 15px; font-weight: 800; padding: 15px; border-radius: var(--radius-md);
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4); transition: transform 0.2s, box-shadow 0.2s;
}
.btn-render:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6); }
.render-hint { font-size: 11px; color: var(--text-muted); margin-top: 8px; }

.studio-render-status {
  background: var(--bg-secondary); border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
  padding: 20px; text-align: center; margin-top: 15px;
}
.studio-export-card {
  background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.3); border-radius: var(--radius-md);
  padding: 20px; text-align: center; margin-top: 15px;
}
.export-success-icon { font-size: 32px; margin-bottom: 8px; }
.result-player { width: 100%; max-width: 320px; border-radius: var(--radius-md); margin: 12px auto; display: block; }
.btn-export-download {
  display: inline-block; background: linear-gradient(135deg, var(--accent-emerald), #059669);
  color: #fff; text-decoration: none; font-size: 14px; font-weight: 800; padding: 12px 24px; border-radius: var(--radius-md);
}

/* ==================== CONTEXTUAL PER-FRAME INSPECTOR MODAL ==================== */
.frame-inspector-box {
  max-width: 620px; width: 100%; max-height: 90vh; display: flex; flex-direction: column;
}
.inspector-title-group { display: flex; align-items: center; gap: 10px; }
.inspector-badge {
  background: var(--accent-cyan); color: #0b0f19; font-size: 10px; font-weight: 800;
  padding: 3px 8px; border-radius: 12px; letter-spacing: 0.5px;
}
.inspector-body {
  padding: 16px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px;
}
.inspector-section {
  background: var(--bg-secondary); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); padding: 14px;
}
.section-title-row {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px;
}
.section-title-row h4 { font-size: 13px; font-weight: 800; color: #fff; }
.section-subtext { font-size: 11px; color: var(--text-muted); }

/* Inspector Media Row */
.inspector-media-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.inspector-media-preview-box {
  width: 90px; height: 90px; border-radius: var(--radius-sm); background: #0f172a;
  border: 1px solid #334155; overflow: hidden; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.inspector-media-preview-box img, .inspector-media-preview-box video {
  width: 100%; height: 100%; object-fit: cover;
}
.empty-preview-icon { font-size: 28px; color: #475569; }
.inspector-media-actions { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 200px; }
.btn-inspector-action {
  background: var(--accent-cyan); color: #0b0f19; border: none; font-size: 12px; font-weight: 700;
  padding: 8px 14px; border-radius: var(--radius-sm); cursor: pointer; text-align: center;
}
.btn-inspector-danger {
  background: transparent; border: 1px solid rgba(239, 68, 68, 0.4); color: #f87171;
  font-size: 11px; font-weight: 600; padding: 5px 10px; border-radius: var(--radius-sm); cursor: pointer;
}
.btn-inspector-danger:hover { background: rgba(239, 68, 68, 0.15); }
.inspector-url-row { display: flex; gap: 6px; }

/* Trim Controls */
.trim-controls-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 10px;
}
.trim-field label { display: block; font-size: 11px; font-weight: 600; color: #cbd5e1; margin-bottom: 4px; }
.num-stepper { display: flex; align-items: center; background: var(--bg-primary); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); padding: 4px 8px; }
.num-stepper input {
  flex: 1; background: transparent; border: none; color: #fff; font-size: 13px; font-weight: 700; outline: none; text-align: right;
}
.num-stepper .unit { font-size: 11px; color: var(--text-muted); margin-left: 4px; }
.quick-trim-presets {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 11px; color: var(--text-muted);
}
.preset-btn {
  background: var(--bg-primary); border: 1px solid #334155; color: #cbd5e1;
  font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 12px; cursor: pointer;
}
.preset-btn:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }

/* Audio & Voice Controls */
.checkbox-label {
  display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: #cbd5e1; cursor: pointer;
}
.checkbox-label input[type="checkbox"] { accent-color: var(--accent-cyan); width: 14px; height: 14px; }
.voice-controls-box { display: flex; flex-direction: column; gap: 10px; }
.voice-actions-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.voiceover-meta-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.btn-text-danger { background: none; border: none; color: #f87171; font-size: 11px; font-weight: 600; cursor: pointer; text-decoration: underline; }

/* Animation Cards Grid */
.animation-cards-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px;
}
.anim-card {
  background: var(--bg-primary); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm); padding: 10px 8px; text-align: center; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 3px; transition: all 0.2s;
}
.anim-card input { display: none; }
.anim-card:hover { border-color: #475569; }
.anim-card.active, .anim-card:has(input:checked) {
  border-color: var(--accent-cyan); background: rgba(6, 182, 212, 0.12);
}
.anim-icon { font-size: 18px; }
.anim-label { font-size: 11px; font-weight: 700; color: #fff; }
.anim-desc { font-size: 9px; color: var(--text-muted); }

/* ==================== VIDEO EFFECTS & FILTERS ==================== */
.effects-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
}
.effect-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: all 0.2s;
}
.effect-card input { display: none; }
.effect-card:hover { border-color: #475569; }
.effect-card.active, .effect-card:has(input:checked) {
  border-color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.14);
}
.effect-icon { font-size: 18px; }
.effect-label { font-size: 11px; font-weight: 700; color: #fff; }
.effect-desc { font-size: 9px; color: var(--text-muted); }

/* Inspector Footer */
.inspector-footer {
  padding: 12px 20px; border-top: 1px solid var(--border-subtle); display: flex; justify-content: flex-end; background: var(--bg-card);
}
.btn-inspector-save {
  background: linear-gradient(135deg, var(--accent-emerald), #059669); color: #fff; border: none;
  font-size: 13px; font-weight: 800; padding: 10px 24px; border-radius: var(--radius-sm); cursor: pointer;
}
.btn-inspector-save:hover { transform: scale(1.02); }

/* ==================== FEATURES BENTO GRID (BEWASTHIT CARDS) ==================== */
.features-section {
  margin-top: 55px;
  padding: 30px 0 10px;
  text-align: center;
}
.section-tag-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.section-title {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.section-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 30px;
  line-height: 1.5;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  text-align: left;
}
.feature-card {
  background: linear-gradient(145deg, rgba(24, 34, 56, 0.9), rgba(15, 23, 42, 0.98));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-emerald));
  opacity: 0.8;
}
.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 12px 30px -8px rgba(6, 182, 212, 0.25);
}
.f-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.f-icon { font-size: 22px; }
.f-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}
.feature-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==================== LEGAL MODALS ==================== */
.legal-modal-box {
  max-width: 680px; width: 100%; max-height: 85vh; display: flex; flex-direction: column;
}
.legal-modal-body {
  padding: 20px 24px; overflow-y: auto; color: #cbd5e1; font-size: 13px; line-height: 1.6;
}
.legal-effective {
  font-size: 12px; color: var(--accent-cyan); margin-bottom: 16px; border-bottom: 1px solid var(--border-subtle); padding-bottom: 8px;
}
.legal-modal-body h4 {
  font-size: 14px; font-weight: 800; color: #ffffff; margin-top: 14px; margin-bottom: 6px;
}
.legal-modal-body p { margin-bottom: 12px; color: #94a3b8; }
.footer-links {
  display: flex; justify-content: center; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap;
}
.footer-links a {
  color: var(--text-muted); text-decoration: none; font-size: 12px; font-weight: 600; transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent-cyan); text-decoration: underline; }
.footer-links span { color: #475569; font-size: 11px; }
.footer-copy { font-size: 11px; color: #64748b; line-height: 1.5; margin-top: 6px; }

/* ==================== REWARDED VIDEO MODAL ==================== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; z-index: 100; padding: 16px;
}
.modal-box {
  background: var(--bg-card); border: 1px solid #334155; border-radius: var(--radius-lg);
  max-width: 500px; width: 100%; overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}
.modal-header {
  padding: 14px 18px; border-bottom: 1px solid var(--border-subtle); display: flex; justify-content: space-between; align-items: center;
}
.reward-status-pill {
  display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800;
  color: var(--accent-orange); background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 4px 10px; border-radius: 20px;
}
.pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-orange); animation: pulse 1s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.modal-close { background: none; border: none; color: #64748b; font-size: 24px; cursor: pointer; }
.modal-body { padding: 20px; }
.modal-title { font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.modal-subtitle { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }

.ad-video-wrapper {
  background: #000; border-radius: var(--radius-md); overflow: hidden; border: 1px solid #334155; margin-bottom: 14px;
}
.video-container { position: relative; width: 100%; height: 200px; background: #0f172a; }
.video-container video { width: 100%; height: 100%; object-fit: cover; }
.video-ad-overlay {
  position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; align-items: center; pointer-events: none;
}
.ad-sponsor-tag { background: rgba(0, 0, 0, 0.7); font-size: 10px; font-weight: 800; color: #fbbf24; padding: 3px 6px; border-radius: 4px; }
.btn-sound-toggle {
  pointer-events: auto; background: rgba(0, 0, 0, 0.7); border: 1px solid #475569; color: #fff; font-size: 11px; padding: 3px 8px; border-radius: 4px; cursor: pointer;
}
.countdown-bar-wrapper { padding: 10px 14px; background: #111827; }
.countdown-info { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.countdown-text { color: #cbd5e1; }
.countdown-percent { color: var(--accent-cyan); }
.progress-track { width: 100%; height: 6px; background: #1f2937; border-radius: 4px; overflow: hidden; }
.progress-fill { width: 0%; height: 100%; background: linear-gradient(90deg, var(--accent-cyan), var(--accent-emerald)); }

.modal-banner-ad {
  background: rgba(30, 41, 59, 0.5); border: 1px dashed #334155; border-radius: var(--radius-sm); padding: 8px 12px; text-align: center; margin-bottom: 16px;
}
.ad-note { font-size: 11px; color: #94a3b8; }
.btn-unlock-disabled {
  width: 100%; background: #334155; color: #94a3b8; border: none; padding: 14px; border-radius: var(--radius-md); font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: not-allowed;
}
.btn-unlock-ready {
  width: 100%; background: linear-gradient(135deg, var(--accent-emerald), #059669); color: #fff; border: none; padding: 14px; border-radius: var(--radius-md); font-size: 15px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

/* ==================== FOOTER ==================== */
.bottom-sticky-ad {
  position: fixed; bottom: 0; left: 0; right: 0; background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(8px); border-top: 1px solid #334155; padding: 8px 12px; text-align: center; z-index: 30;
}
.sticky-ad-content { font-size: 12px; color: #94a3b8; display: flex; align-items: center; justify-content: center; gap: 8px; }
.footer { text-align: center; padding: 20px; font-size: 12px; color: #64748b; border-top: 1px solid var(--border-subtle); }


/* ==========================================================================
   PANORAMIC EXPANSIVE STUDIO WORKSPACE & NON-INTRUSIVE SIDE ADS
   ========================================================================== */

.studio-panoramic-workspace {
  display: grid;
  grid-template-columns: 160px 1fr 380px 160px;
  gap: 20px;
  align-items: start;
  max-width: 1720px;
  margin: 0 auto;
  padding: 10px 15px 40px;
}

@media (max-width: 1400px) {
  .studio-panoramic-workspace {
    grid-template-columns: 140px 1fr 350px 140px;
    gap: 14px;
  }
}

@media (max-width: 1180px) {
  .studio-panoramic-workspace {
    grid-template-columns: 1fr 360px;
  }
  .studio-skyscraper-col {
    display: none !important;
  }
}

@media (max-width: 860px) {
  .studio-panoramic-workspace {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 10px;
  }
}

/* Side Skyscraper Ad Containers (Non-Intrusive) */
.studio-skyscraper-col {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(51, 65, 85, 0.5);
  border-radius: 14px;
  padding: 12px 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
}

.ad-pill-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #64748b;
  margin-bottom: 8px;
  padding: 2px 8px;
  background: rgba(30, 41, 59, 0.6);
  border-radius: 20px;
}

.ad-slot-frame {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 520px;
}

.ad-ph-card {
  width: 100%;
  padding: 24px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.4), rgba(15, 23, 42, 0.8));
  border: 1px dashed rgba(6, 182, 212, 0.35);
  border-radius: 12px;
  margin-top: 10px;
}

.ad-ph-emoji {
  font-size: 32px;
  margin-bottom: 8px;
}

.ad-ph-card strong {
  font-size: 13px;
  color: #f8fafc;
  margin-bottom: 4px;
}

.ad-ph-card p {
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 12px;
}

.ad-ph-btn {
  font-size: 10px;
  font-weight: 700;
  color: #06b6d4;
  padding: 3px 8px;
  background: rgba(6, 182, 212, 0.12);
  border-radius: 6px;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

/* Center Hero Video Canvas Column */
.studio-hero-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(11, 15, 25, 0.7);
  border: 1px solid rgba(51, 65, 85, 0.6);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.canvas-floating-toolbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(51, 65, 85, 0.6);
  border-radius: 12px;
  padding: 8px 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.toolbar-left, .toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-ratio-glow {
  font-size: 12px;
  font-weight: 800;
  color: #00f2fe;
  background: rgba(6, 182, 212, 0.15);
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(6, 182, 212, 0.4);
}

.btn-tool-toggle {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid #475569;
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-tool-toggle:hover {
  background: rgba(6, 182, 212, 0.2);
  border-color: #06b6d4;
  color: #00f2fe;
}

.mini-tool-select {
  background: #0f172a;
  border: 1px solid #334155;
  color: #e2e8f0;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 8px;
  outline: none;
  cursor: pointer;
}

.live-indicator-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  display: inline-block;
}

.live-indicator-text {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #10b981;
}

/* Main Enlarged Video Stage */
.video-canvas-stage {
  position: relative;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
  display: grid;
  transition: all 0.3s ease;
  margin: 0 auto;
}

.stage-9-16 { width: 340px; height: 604px; }
.stage-16-9 { width: 640px; height: 360px; }
.stage-1-1  { width: 440px; height: 440px; }
.stage-4-5  { width: 380px; height: 475px; }

@media (max-width: 600px) {
  .stage-9-16 { width: 280px; height: 498px; }
  .stage-16-9 { width: 320px; height: 180px; }
  .stage-1-1  { width: 300px; height: 300px; }
  .stage-4-5  { width: 300px; height: 375px; }
}

/* Live Caption Preview Overlay */
.live-canvas-caption {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 30px;
  z-index: 20;
  text-align: center;
  pointer-events: none;
}

.caption-inner {
  display: inline-block;
  background: rgba(0, 0, 0, 0.85);
  color: #ffeb3b;
  font-weight: 800;
  font-size: 16px;
  padding: 6px 14px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

.caption-time-pill {
  display: block;
  font-size: 9px;
  font-weight: 700;
  color: #38bdf8;
  margin-top: 3px;
  letter-spacing: 0.5px;
}

/* Live Sticker Preview Overlay */
.live-canvas-sticker {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 25;
  text-align: center;
  pointer-events: none;
}

.sticker-inner {
  font-size: 48px;
  display: inline-block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.7));
}

.sticker-time-pill {
  display: block;
  font-size: 9px;
  font-weight: 700;
  color: #ec4899;
  letter-spacing: 0.5px;
}

.canvas-workspace-footer {
  width: 100%;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.canvas-guide-note {
  font-size: 13px;
  color: #94a3b8;
  text-align: center;
}

.btn-master-render {
  width: 100%;
  max-width: 480px;
  background: linear-gradient(135deg, #06b6d4, #3b82f6 50%, #8b5cf6);
  border: none;
  border-radius: 14px;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.4);
  transition: all 0.25s ease;
}

.btn-master-render:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(6, 182, 212, 0.6);
}

.render-spark { font-size: 20px; }
.render-title { font-size: 16px; font-weight: 800; color: #ffffff; }
.render-badge {
  font-size: 11px;
  font-weight: 800;
  color: #030712;
  background: #00f2fe;
  padding: 3px 8px;
  border-radius: 6px;
}

/* Right Column: Organized Tabbed Sidebar */
.studio-sidebar-col {
  background: rgba(11, 15, 25, 0.7);
  border: 1px solid rgba(51, 65, 85, 0.6);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.sidebar-tab-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: rgba(15, 23, 42, 0.9);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid #334155;
  margin-bottom: 16px;
}

.s-nav-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 4px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.s-nav-btn.active {
  background: #1e293b;
  color: #00f2fe;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.s-tab-pane {
  display: none;
}

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

.drawer-card {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(51, 65, 85, 0.4);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
}

.drawer-heading {
  font-size: 13px;
  font-weight: 800;
  color: #f1f5f9;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}

.field-group {
  margin-bottom: 12px;
}

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 6px;
}

.styled-input {
  width: 100%;
  background: #0b0f19;
  border: 1px solid #334155;
  color: #ffffff;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s;
}

.styled-input:focus {
  border-color: #00f2fe;
  box-shadow: 0 0 0 2px rgba(0, 242, 254, 0.2);
}

.time-range-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.time-field label, .field-half label {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  display: block;
  margin-bottom: 4px;
}

.time-input {
  width: 100%;
  background: #0b0f19;
  border: 1px solid #334155;
  color: #38bdf8;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 8px;
  outline: none;
}

.pos-radio-group {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: #e2e8f0;
}

.pos-radio-group label {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.btn-action-glow {
  width: 100%;
  background: linear-gradient(135deg, #0284c7, #06b6d4);
  border: none;
  border-radius: 10px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  padding: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.3);
}

.btn-action-glow:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(6, 182, 212, 0.5);
}

/* Stickers Emoji Grid */
.stickers-emoji-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.emoji-chip {
  background: #0f172a;
  border: 1px solid #334155;
  font-size: 24px;
  padding: 8px 4px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.emoji-chip:hover, .emoji-chip.active {
  background: rgba(6, 182, 212, 0.2);
  border-color: #00f2fe;
  transform: scale(1.1);
}

.custom-overlay-upload-row {
  margin-bottom: 12px;
  padding-top: 6px;
  border-top: 1px solid #1e293b;
}

.sub-label {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 6px;
}

.btn-file-upload-mini {
  display: inline-block;
  background: #1e293b;
  border: 1px solid #475569;
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.size-pos-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.styled-range {
  width: 100%;
  accent-color: #00f2fe;
}

/* Master Effects Chips */
.effects-chips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.effect-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0f172a;
  border: 1px solid #334155;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: #e2e8f0;
  transition: all 0.2s ease;
}

.effect-chip input {
  accent-color: #00f2fe;
}

.effect-chip:hover, .effect-chip.active {
  background: rgba(6, 182, 212, 0.15);
  border-color: #00f2fe;
  color: #00f2fe;
}

/* Items List (Active Captions & Stickers) */
.items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
}

.item-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0b0f19;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
}

.item-card-row .item-text {
  font-weight: 700;
  color: #f8fafc;
}

.item-card-row .item-badge {
  font-size: 10px;
  color: #00f2fe;
  background: rgba(6, 182, 212, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
}

.item-card-row .btn-del-item {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 14px;
  padding: 2px 6px;
}

.empty-list-hint {
  font-size: 11px;
  color: #64748b;
  font-style: italic;
  text-align: center;
  padding: 8px;
}
