/* =========================================================================
   AUTOSHORTS — NEUMORPHIC (SOFT UI) COMPLETE DESIGN SYSTEM
   Theme: Off-White (#eef2f7) Base, Tactile 3D Extruded Surfaces, 
          Inset Recessed Controls, Vibrant Royal Blue & Warm Yellow Accents
   ========================================================================= */

:root {
  /* Neumorphic Base Canvas */
  --bg: #eef2f7;
  --surface: #eef2f7;
  --surface-card: #eef2f7;
  --surface-border: rgba(255, 255, 255, 0.9);
  
  /* Neumorphic Dual Shadows */
  --nm-shadow: 7px 7px 16px #cad5e2, -7px -7px 16px #ffffff;
  --nm-shadow-sm: 4px 4px 10px #cad5e2, -4px -4px 10px #ffffff;
  --nm-shadow-xs: 2px 2px 6px #cad5e2, -2px -2px 6px #ffffff;
  --nm-shadow-lg: 12px 12px 28px #cad5e2, -12px -12px 28px #ffffff;
  --nm-inset: inset 3px 3px 6px #cad5e2, inset -3px -3px 6px #ffffff;
  --nm-inset-sm: inset 2px 2px 4px #cad5e2, inset -2px -2px 4px #ffffff;
  --nm-inset-deep: inset 4px 4px 10px #c2cee0, inset -4px -4px 10px #ffffff;
  
  /* Vibrant Royal Blue Accents (Buttons & Active States) */
  --blue: #2563eb;
  --blue-hover: #1d4ed8;
  --blue-dark: #1e40af;
  --blue-gradient: linear-gradient(135deg, #3b82f6, #1d4ed8);
  --blue-glow: 5px 5px 14px rgba(37, 99, 235, 0.35), -4px -4px 10px #ffffff;
  
  /* Warm Yellow & Amber Accents (Badges, Countdown, Highlights) */
  --yellow: #f59e0b;
  --yellow-hover: #d97706;
  --yellow-gradient: linear-gradient(135deg, #fbbf24, #d97706);
  --yellow-light: #fef3c7;
  --yellow-border: #fde68a;
  --yellow-text: #b45309;
  --yellow-glow: 4px 4px 12px rgba(245, 158, 11, 0.3), -4px -4px 10px #ffffff;

  /* Typography Colors (High-Contrast Slate) */
  --text: #0f172a;
  --text-muted: #475569;
  --text-sub: #64748b;
  --border-subtle: rgba(202, 213, 226, 0.65);
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Custom Neumorphic Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: #cad5e2;
  border-radius: 999px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* =========================================================================
   TOP NAVBAR (NEUMORPHIC FLOATING BAR)
   ========================================================================= */
.as-navbar {
  height: 64px;
  background: var(--bg);
  box-shadow: 0 6px 16px #cad5e2, 0 -2px 10px #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.9);
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}

.as-nav-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.as-btn-back-nav {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg);
  box-shadow: var(--nm-shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.as-btn-back-nav:hover {
  box-shadow: var(--nm-inset-sm);
  color: var(--blue-hover);
  transform: translateX(-2px);
}

.as-logo-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--blue-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--blue-glow);
}

.as-logo-wrap svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.as-brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.as-nav-project-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  max-width: 480px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 5px 12px;
  border-radius: 8px;
  background: var(--bg);
  box-shadow: var(--nm-shadow-xs);
  border: 1px solid rgba(255, 255, 255, 0.8);
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.as-nav-project-title:focus {
  box-shadow: var(--nm-inset);
  border-color: var(--blue);
}

.as-nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.as-btn-dashboard {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 9999px;
  background: var(--bg);
  box-shadow: var(--nm-shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.as-btn-dashboard:hover {
  box-shadow: var(--nm-inset-sm);
  color: var(--blue-hover);
}

.as-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.82rem;
  color: #fff;
  box-shadow: var(--blue-glow);
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.as-nav-countdown-badge {
  background: var(--yellow-light);
  border: 1px solid var(--yellow-border);
  color: var(--yellow-text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: 2px 2px 6px #cad5e2, -2px -2px 6px #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* =========================================================================
   VIEW 1: UPLOAD & PROJECTS DASHBOARD
   ========================================================================= */
#viewUploadDashboard {
  max-width: 960px;
  margin: 0 auto;
  padding: 44px 24px 80px;
  width: 100%;
  flex: 1;
  display: block;
}

.as-section-header {
  text-align: center;
  margin-bottom: 28px;
}

.as-section-header h1 {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 8px;
}

.as-section-header p {
  font-size: 0.96rem;
  color: var(--text-muted);
}

/* SOURCE TABS */
.as-source-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
}

.as-tab-btn {
  padding: 10px 22px;
  border-radius: 9999px;
  background: var(--bg);
  box-shadow: var(--nm-shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.as-tab-btn:hover {
  color: var(--blue);
  transform: translateY(-1px);
}

.as-tab-btn.active {
  box-shadow: var(--nm-inset);
  color: var(--blue);
  border-color: rgba(37, 99, 235, 0.25);
  font-weight: 800;
}

/* DROPZONE CARD */
.as-dropzone {
  border: 2px dashed #93c5fd;
  border-radius: 20px;
  background: var(--bg);
  box-shadow: var(--nm-shadow);
  padding: 56px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.as-dropzone:hover, .as-dropzone.dragover {
  border-color: var(--blue);
  box-shadow: var(--nm-shadow-lg);
  transform: translateY(-2px);
}

.as-drop-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.as-dropzone:hover .as-drop-icon {
  transform: scale(1.1);
}

.as-drop-icon svg {
  width: 44px;
  height: 44px;
}

.as-drop-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.as-drop-sub {
  font-size: 0.8rem;
  color: var(--text-sub);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.03em;
}

/* YOUTUBE CARD */
.as-yt-card {
  border-radius: 20px;
  background: var(--bg);
  box-shadow: var(--nm-shadow);
  border: 1px solid rgba(255, 255, 255, 0.9);
  padding: 36px 32px;
  transition: all 0.25s;
  display: none;
}

.as-yt-card.active {
  display: block;
}

.as-yt-input-row {
  display: flex;
  gap: 14px;
  margin-top: 16px;
}

.as-yt-input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 14px;
  background: var(--bg);
  box-shadow: var(--nm-inset);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--text);
  font-size: 0.94rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s;
}

.as-yt-input:focus {
  box-shadow: inset 3px 3px 6px #cad5e2, inset -3px -3px 6px #ffffff, 0 0 0 2px rgba(37, 99, 235, 0.25);
  border-color: var(--blue);
}

/* START BUTTON (REQUESTED: BLUE BUTTON) */
.as-btn-fetch {
  padding: 14px 28px;
  border-radius: 14px;
  background: var(--blue-gradient);
  color: #fff;
  font-weight: 800;
  font-size: 0.94rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: var(--blue-glow);
}

.as-btn-fetch:hover {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  transform: translateY(-1px);
  box-shadow: 6px 6px 18px rgba(37, 99, 235, 0.45), -4px -4px 12px #ffffff;
}

.as-btn-fetch:active {
  transform: translateY(0);
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.3);
}

/* 2-PHASE PROGRESS CARD */
.as-upload-progress-card {
  margin-top: 24px;
  background: var(--bg);
  box-shadow: var(--nm-shadow);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  padding: 20px 24px;
  display: none;
  animation: fadeIn 0.3s ease;
}

.as-up-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
}

.as-up-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.as-up-size {
  font-size: 0.78rem;
  color: var(--text-sub);
  font-family: 'JetBrains Mono', monospace;
  margin-top: 2px;
}

.as-btn-cancel {
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--nm-shadow-xs);
  color: var(--text-sub);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  padding: 5px 12px;
  border-radius: 8px;
  transition: all 0.15s;
}

.as-btn-cancel:hover {
  color: #ef4444;
  box-shadow: var(--nm-inset-sm);
}

.as-up-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--blue);
  margin-bottom: 10px;
  font-weight: 700;
}

.as-up-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(37, 99, 235, 0.25);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.as-up-track {
  width: 100%;
  height: 8px;
  background: var(--bg);
  box-shadow: var(--nm-inset-sm);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

.as-up-bar {
  height: 100%;
  background: var(--blue-gradient);
  border-radius: 9999px;
  width: 0%;
  transition: width 0.35s ease;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
}

.as-down-bar {
  background: var(--blue-gradient) !important;
}

.as-import-bar {
  background: linear-gradient(90deg, #2563eb, #8b5cf6) !important;
}

.as-stage-box {
  margin-top: 12px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--nm-shadow-xs);
  border-radius: 14px;
  transition: all 0.3s ease;
}

.as-stage-box.active {
  box-shadow: var(--nm-inset-sm);
  border-color: rgba(37, 99, 235, 0.35);
}

.as-stage-box.completed {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.03);
}

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

.as-stage-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--blue);
  border: 1px solid rgba(37, 99, 235, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.as-stage-badge.completed {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.3);
}

.as-stage-metric {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.as-import-spinner {
  border: 2px solid rgba(37, 99, 235, 0.25);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.as-stage-check-icon {
  color: #059669;
  font-weight: 800;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* =========================================================================
   YOUR VIDEOS (PROJECT CARDS SECTION)
   ========================================================================= */
.as-videos-section {
  margin-top: 56px;
}

.as-videos-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 22px;
}

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

.as-project-card {
  background: var(--bg);
  box-shadow: var(--nm-shadow);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.as-project-card:hover {
  box-shadow: var(--nm-shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.4);
}

.as-card-thumb-wrap {
  position: relative;
  width: 100%;
  height: 184px;
  background: #000;
  overflow: hidden;
}

.as-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.as-project-card:hover .as-card-thumb {
  transform: scale(1.04);
}

.as-clips-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* DELETE BUTTON ON PROJECT CARD */
.as-btn-delete-project {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fee2e2;
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 3px 3px 8px #cad5e2, -3px -3px 8px #ffffff;
}

.as-btn-delete-project:hover {
  background: #ef4444;
  color: #ffffff;
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.45);
}

.as-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.as-card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.as-card-created {
  font-size: 0.8rem;
  color: var(--text-sub);
  font-weight: 600;
}

/* YELLOW COUNTDOWN BADGE */
.as-card-countdown-badge {
  background: var(--yellow-light);
  border: 1px solid var(--yellow-border);
  color: var(--yellow-text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 2px 2px 5px #cad5e2, -2px -2px 5px #ffffff;
}

.as-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.as-card-clips-detected {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}

/* =========================================================================
   DELETE CONFIRMATION MODAL (NEUMORPHIC POPUP)
   ========================================================================= */
.as-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  animation: fadeIn 0.18s ease;
}

.as-delete-modal-card {
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 22px;
  padding: 30px 32px;
  width: 430px;
  max-width: 92vw;
  box-shadow: var(--nm-shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: scaleUp 0.18s ease;
}

.as-delete-modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #fee2e2;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: var(--nm-shadow-sm);
}

.as-delete-modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.as-delete-modal-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 22px;
}

.as-delete-modal-actions {
  display: flex;
  gap: 12px;
  width: 100%;
}

.as-btn-modal-cancel {
  flex: 1;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--bg);
  box-shadow: var(--nm-shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.as-btn-modal-cancel:hover {
  box-shadow: var(--nm-inset-sm);
  color: var(--text);
}

.as-btn-modal-delete {
  flex: 1;
  padding: 12px 18px;
  border-radius: 12px;
  background: #ef4444;
  border: none;
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 4px 4px 14px rgba(239, 68, 68, 0.4), -4px -4px 10px #ffffff;
}

.as-btn-modal-delete:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

/* QUALITY SELECTION MODAL (NEUMORPHIC POPUP) */
.as-quality-modal-card {
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  padding: 26px 28px;
  width: 490px;
  max-width: 92vw;
  box-shadow: var(--nm-shadow-lg);
  display: flex;
  flex-direction: column;
  animation: scaleUp 0.18s ease;
}

.as-qm-header {
  margin-bottom: 20px;
}

.as-qm-thumb-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.as-qm-thumb {
  width: 78px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: var(--nm-shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.9);
  flex-shrink: 0;
}

.as-qm-meta {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.as-qm-title {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.as-qm-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.as-qm-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 22px;
}

.as-qm-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  border-radius: 14px;
  background: var(--bg);
  box-shadow: var(--nm-shadow-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.as-qm-option:hover {
  transform: translateY(-1px);
  box-shadow: var(--nm-shadow-md);
}

.as-qm-option.selected {
  border-color: #3b82f6;
  background: #f0f7ff;
  box-shadow: var(--nm-inset-sm);
}

.as-qm-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.as-qm-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s;
  background: #fff;
}

.as-qm-option.selected .as-qm-radio {
  border-color: #3b82f6;
  background: #3b82f6;
}

.as-qm-radio-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  display: none;
}

.as-qm-option.selected .as-qm-radio-dot {
  display: block;
}

.as-qm-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.as-qm-tag {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
}

.as-qm-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.as-qm-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 3px 9px;
  border-radius: 20px;
  box-shadow: var(--nm-shadow-sm);
}

.as-qm-actions {
  display: flex;
  gap: 12px;
}

.as-btn-modal-confirm {
  flex: 1.6;
  padding: 12px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border: none;
  color: #fff;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 4px 4px 14px rgba(37, 99, 235, 0.35), -4px -4px 10px #ffffff;
}

.as-btn-modal-confirm:hover {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  transform: translateY(-1px);
}

/* =========================================================================
   VIEW 2: PROJECT STUDIO & VIDEO CLIPS WORKSPACE
   ========================================================================= */
body.studio-mode {
  overflow: hidden !important;
  height: 100vh !important;
}

#viewProjectStudio {
  display: none;
  flex: 1;
  width: 100%;
  height: calc(100vh - 64px);
  max-height: calc(100vh - 64px);
  overflow: hidden;
  position: relative;
  background: var(--bg);
}

.as-studio-layout {
  display: grid;
  grid-template-columns: 1fr 440px;
  height: 100%;
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* LEFT PLAYER PANE (NEUMORPHIC CHASSIS) */
.as-player-pane {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  position: sticky;
  top: 0;
  height: 100%;
  width: 100%;
  border-right: 1px solid var(--border-subtle);
  overflow: hidden;
}

.as-player-box {
  width: 100%;
  max-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--nm-shadow);
  position: relative;
}

.as-video-element {
  width: 100%;
  flex: 1;
  min-height: 0;
  max-height: calc(100vh - 160px);
  display: block;
  background: #000;
  object-fit: contain;
}

/* CUSTOM CONTROLS BAR (NEUMORPHIC SOFT BAR) */
.as-player-controls-bar {
  background: var(--bg);
  border-top: 1px solid var(--border-subtle);
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.as-timeline-row {
  width: 100%;
  display: flex;
  align-items: center;
  position: relative;
}

.as-scrubber {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: var(--bg);
  box-shadow: var(--nm-inset-sm);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}

.as-scrubber::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--blue);
  cursor: pointer;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.6);
}

.as-controls-buttons-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.as-ctrl-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.as-btn-ctrl {
  background: var(--bg);
  box-shadow: var(--nm-shadow-xs);
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: var(--blue);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.2s;
}

.as-btn-ctrl:hover {
  box-shadow: var(--nm-inset-sm);
  color: var(--blue-hover);
}

.as-btn-ctrl svg {
  width: 18px;
  height: 18px;
}

.as-time-display {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  margin-left: 4px;
}

.as-ctrl-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.as-spacebar-hint {
  font-size: 0.72rem;
  color: var(--text-sub);
  background: var(--bg);
  box-shadow: var(--nm-inset-sm);
  border: 1px solid rgba(255, 255, 255, 0.7);
  padding: 3px 8px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}

/* =========================================================================
   RIGHT CLIPS PANE (NEUMORPHIC SIDEBAR)
   ========================================================================= */
.as-clips-pane {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px 20px 60px;
}

.as-finder-box {
  margin-bottom: 20px;
}

.as-finder-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.as-finder-title span {
  color: var(--blue);
}

.as-finder-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.as-finder-input-row {
  display: flex;
  gap: 10px;
}

.as-finder-input {
  flex: 1;
  background: var(--bg);
  box-shadow: var(--nm-inset);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--text);
  outline: none;
  font-family: inherit;
}

.as-finder-input:focus {
  border-color: var(--blue);
}

/* BLUE FIND BUTTON */
.as-btn-finder {
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--blue-gradient);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--blue-glow);
  transition: all 0.2s;
}

.as-btn-finder:hover {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  transform: translateY(-1px);
}

.as-clips-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.as-clips-heading {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
}

.as-btn-export-list {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  box-shadow: var(--nm-shadow-xs);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  padding: 6px 12px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.as-btn-export-list:hover {
  box-shadow: var(--nm-inset-sm);
  color: var(--blue-hover);
}

.as-feedback-card {
  background: var(--bg);
  box-shadow: var(--nm-shadow-xs);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.as-fb-title {
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 700;
}

.as-fb-emojis {
  display: flex;
  align-items: center;
  gap: 8px;
}

.as-fb-emoji-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.15s;
}

.as-fb-emoji-btn:hover {
  transform: scale(1.2);
}

.as-fb-close {
  background: none;
  border: none;
  color: var(--text-sub);
  cursor: pointer;
  font-size: 1rem;
  margin-left: 4px;
}

.as-clips-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* NEUMORPHIC CLIP CARD */
.as-clip-card {
  background: var(--bg);
  box-shadow: var(--nm-shadow);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.as-clip-card:hover {
  box-shadow: var(--nm-shadow-lg);
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.3);
}

.as-clip-card.active {
  border: 2px solid var(--blue);
  box-shadow: 6px 6px 18px rgba(37, 99, 235, 0.22), -6px -6px 18px #ffffff;
}

.as-clip-card-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.as-clip-num-badge {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--bg);
  box-shadow: var(--nm-shadow-xs);
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.as-clip-card.active .as-clip-num-badge {
  background: var(--blue-gradient);
  color: #fff;
  box-shadow: var(--blue-glow);
}

.as-clip-headline {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  flex: 1;
}

.as-btn-copy-clip {
  background: none;
  border: none;
  color: var(--text-sub);
  cursor: pointer;
  padding: 2px;
}

.as-btn-copy-clip:hover {
  color: var(--blue);
}

.as-clip-time-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.as-clip-time-pill {
  font-size: 0.8rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
  background: var(--bg);
  box-shadow: var(--nm-inset-sm);
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

.as-clip-viral-pill {
  font-size: 0.8rem;
  color: var(--blue);
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
}

/* BUTTONS IN CLIP CARD */
.as-clip-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.as-btn-aspect-toggle {
  background: var(--bg);
  box-shadow: var(--nm-shadow-xs);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  padding: 8px 12px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: all 0.2s;
  flex: 1;
  text-align: left;
}

.as-btn-aspect-toggle:hover {
  box-shadow: var(--nm-inset-sm);
  color: var(--blue);
}

.as-btn-aspect-toggle.selected {
  box-shadow: var(--nm-inset);
  color: var(--blue);
  border-color: rgba(37, 99, 235, 0.35);
  font-weight: 700;
}

.as-btn-aspect-col {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.as-btn-aspect-label {
  font-size: 0.7rem;
  color: var(--text-sub);
  font-weight: 600;
}

.as-btn-aspect-val {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

.as-icon-aspect-h {
  width: 14px;
  height: 9px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  opacity: 0.85;
  flex-shrink: 0;
}

.as-icon-aspect-v {
  width: 9px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  opacity: 0.85;
  flex-shrink: 0;
}

/* BLUE ADJUST FRAME BUTTON */
.as-btn-adjust-main {
  background: var(--blue-gradient) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 10px;
  padding: 8px 14px;
  color: #fff !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex: 1.1;
  text-align: center;
  box-shadow: var(--blue-glow);
}

.as-btn-adjust-main:hover {
  background: linear-gradient(135deg, #2563eb, #1e40af) !important;
  transform: translateY(-1px);
  box-shadow: 6px 6px 18px rgba(37, 99, 235, 0.45), -4px -4px 10px #ffffff;
}

.as-btn-adjust-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.25;
}

.as-btn-adjust-label {
  font-size: 0.84rem;
  font-weight: 800;
  color: #fff !important;
}

.as-btn-adjust-symbol {
  font-size: 0.8rem;
  color: #fff !important;
  font-weight: 800;
}

.as-btn-del-clip {
  background: none;
  border: none;
  color: var(--text-sub);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.15s;
}

.as-btn-del-clip:hover {
  color: #ef4444;
}

/* =========================================================================
   VIEW 3: DEDICATED FRAME ADJUSTER & CROP WORKSPACE
   ========================================================================= */
body.adjuster-mode {
  overflow: hidden !important;
  height: 100vh !important;
}

#viewFrameAdjuster {
  display: none;
  flex: 1;
  width: 100%;
  height: calc(100vh - 64px);
  overflow: hidden;
  flex-direction: column;
  background: var(--bg);
}

.as-adj-top-header {
  padding: 12px 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 14px #cad5e2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.as-adj-title-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.as-adj-titles h2 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
}

.as-adj-titles p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.as-format-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  box-shadow: var(--nm-inset-sm);
  padding: 4px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.as-format-pill {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}

.as-format-pill.active {
  background: var(--blue-gradient);
  color: #fff;
  box-shadow: var(--blue-glow);
}

.as-format-pill:hover:not(.active) {
  color: var(--blue);
}

.as-adj-body-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  flex: 1;
  height: calc(100vh - 128px);
  max-height: calc(100vh - 128px);
  overflow: hidden;
}

/* LEFT CROP CANVAS PANE */
.as-adj-canvas-pane {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 20px 14px;
  border-right: 1px solid var(--border-subtle);
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  position: sticky;
  top: 0;
}

.as-crop-stage-box {
  width: 100%;
  flex: 1;
  min-height: 220px;
  max-height: calc(100% - 150px);
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  position: relative;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--nm-shadow);
}

.as-crop-video-wrapper {
  position: relative;
  height: 100%;
  max-height: calc(100vh - 330px);
  aspect-ratio: 16 / 9;
  max-width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  cursor: crosshair;
}

.as-crop-stage-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.as-crop-overlay-rect {
  position: absolute;
  top: 0;
  bottom: 0;
  height: 100%;
  width: 31.640625%;
  left: 10%;
  border: 2.5px solid #10b981;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55), 0 0 20px rgba(16, 185, 129, 0.35);
  cursor: grab;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  z-index: 10;
  transition: border 0.15s, box-shadow 0.15s;
}

.as-crop-overlay-rect.adjusting {
  border: 2.5px dashed var(--blue) !important;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55), 0 0 25px rgba(37, 99, 235, 0.45) !important;
}

.as-crop-overlay-rect:active {
  cursor: grabbing;
}

.as-crop-ratio-tag {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  align-self: flex-start;
  pointer-events: none;
}

.as-crop-center-handle {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 999px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.as-crop-center-handle:hover {
  color: var(--blue);
  transform: scale(1.04);
}

.as-crop-done-btn {
  background: var(--yellow-gradient);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #78350f;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 6px 18px;
  border-radius: 7px;
  box-shadow: var(--yellow-glow);
  cursor: pointer;
  display: none;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.as-crop-done-btn:hover {
  transform: scale(1.05);
}

/* SPLIT MODE FRAMES */
.as-crop-split-rect {
  position: absolute;
  border: 2px solid var(--blue);
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.35);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px;
  z-index: 15;
  cursor: grab;
  user-select: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.as-crop-split-rect.adjusting {
  border: 2.5px dashed var(--blue) !important;
  box-shadow: 0 0 25px rgba(37, 99, 235, 0.45) !important;
}

.as-split-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  pointer-events: none;
}

.as-split-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.as-split-badge.adjusting-badge {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.as-split-zoom-tag {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--blue);
  font-family: 'JetBrains Mono', monospace;
}

.as-split-done-btn {
  align-self: center;
  margin-bottom: 2px;
  display: inline-flex !important;
}

.as-split-handle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--blue);
  border: 2px solid #fff;
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(37, 99, 235, 0.8);
  z-index: 22;
  transition: transform 0.15s, background 0.15s;
}

.as-split-handle:hover {
  transform: scale(1.4);
  background: #fff;
}

.as-split-handle.nw { top: -5px; left: -5px; cursor: nwse-resize; }
.as-split-handle.ne { top: -5px; right: -5px; cursor: nesw-resize; }
.as-split-handle.sw { bottom: -5px; left: -5px; cursor: nesw-resize; }
.as-split-handle.se { bottom: -5px; right: -5px; cursor: nwse-resize; }

/* ACTION MODAL */
.as-timeline-action-modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 22px 24px;
  width: 320px;
  box-shadow: var(--nm-shadow-lg);
  z-index: 50;
  display: none;
  flex-direction: column;
  gap: 12px;
  animation: fadeIn 0.2s ease;
}

.as-modal-header-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text);
  text-align: center;
  margin-bottom: 4px;
}

.as-modal-choice-btn {
  width: 100%;
  border-radius: 12px;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.9);
  transition: all 0.2s;
}

.as-modal-choice-btn.primary {
  background: var(--blue-gradient);
  color: #fff;
  box-shadow: var(--blue-glow);
}

.as-modal-choice-btn.primary:hover {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  transform: translateY(-1px);
}

.as-modal-choice-btn.secondary {
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--nm-shadow-xs);
}

.as-modal-choice-btn.secondary:hover {
  box-shadow: var(--nm-inset-sm);
  color: var(--blue);
}

.as-choice-title {
  font-size: 0.88rem;
  font-weight: 800;
}

.as-choice-sub {
  font-size: 0.74rem;
  opacity: 0.85;
  margin-top: 2px;
}

.as-choice-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
  margin-top: 4px;
  user-select: none;
}

/* MINI CONTROLS BAR */
.as-crop-mini-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: var(--bg);
  border-radius: 12px;
  box-shadow: var(--nm-shadow-xs);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.as-mini-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.as-btn-mini {
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--nm-shadow-xs);
  color: var(--text);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.as-btn-mini:hover {
  box-shadow: var(--nm-inset-sm);
  color: var(--blue);
}

.as-btn-mini-play {
  background: var(--blue-gradient);
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-weight: 800;
  box-shadow: var(--blue-glow);
}

.as-btn-mini-stop {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid rgba(255, 255, 255, 0.9);
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-weight: 800;
  box-shadow: var(--nm-shadow-xs);
}

/* FILMSTRIP TIMELINE */
.as-filmstrip-card {
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--nm-shadow-sm);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.as-filmstrip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.as-filmstrip-track-wrap {
  height: 52px;
  background: var(--bg);
  box-shadow: var(--nm-inset-sm);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  cursor: pointer;
}

.as-filmstrip-frames {
  width: 100%;
  height: 100%;
  display: flex;
  opacity: 0.9;
  pointer-events: none;
}

.as-film-thumb {
  flex: 1;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.95);
  border-right: 1px solid rgba(0, 0, 0, 0.15);
}

.as-timeline-segments-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  pointer-events: none;
  z-index: 2;
}

.as-timeline-segment-block {
  height: 100%;
  border-right: 2px solid rgba(37, 99, 235, 0.4);
  position: relative;
  transition: background 0.15s;
}

.as-timeline-markers-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}

.as-keyframe-diamond {
  position: absolute;
  top: 3px;
  width: 12px;
  height: 12px;
  transform: translateX(-50%) rotate(45deg);
  border-radius: 2px;
  border: 1px solid #fff;
  box-shadow: 0 0 6px currentColor;
}

.as-film-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0%;
  width: 2.5px;
  background: var(--blue);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.9);
  pointer-events: none;
  z-index: 25;
  transition: none;
}

.as-film-playhead::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid var(--blue);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.as-playhead-tag {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* =========================================================================
   RIGHT ADJUSTER PANEL (SIDEBAR CARDS & CONTROLS)
   ========================================================================= */
.as-adj-right-pane {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: calc(100vh - 128px);
  overflow-y: auto !important;
  overflow-x: hidden;
  padding: 16px 18px 40px;
  gap: 16px;
}

/* CARD 1: 9:16 PREVIEW CARD */
.as-adj-preview-card {
  background: var(--bg);
  box-shadow: var(--nm-shadow);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
}

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

.as-prev-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text);
}

.as-prev-status-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue);
  display: none;
}

.as-preview-screen-box {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--nm-shadow);
}

.as-crop-canvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 15px;
}

.as-watermark-overlay {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.68rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 4px;
}

.as-processing-render-overlay {
  position: absolute;
  inset: 0;
  background: rgba(238, 242, 247, 0.96);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  z-index: 20;
}

.as-render-circle-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(37, 99, 235, 0.2);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin-bottom: 16px;
}

.as-render-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.as-render-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.as-render-tip {
  font-size: 0.74rem;
  color: var(--text);
  line-height: 1.45;
  max-width: 230px;
}

.as-upgrade-link {
  text-align: center;
  font-size: 0.78rem;
  color: var(--blue);
  font-weight: 700;
  margin-top: 10px;
  cursor: pointer;
}

.as-upgrade-link:hover {
  text-decoration: underline;
}

/* CARD 2: BRANDING CONTROLS & EXPORT */
.as-export-settings-card {
  background: var(--bg);
  box-shadow: var(--nm-shadow);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.as-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.86rem;
  color: var(--text);
  font-weight: 700;
}

.as-toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.as-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
}

.as-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.as-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--bg);
  box-shadow: var(--nm-inset-sm);
  transition: 0.2s;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.as-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 2px;
  background-color: #cad5e2;
  transition: 0.2s;
  border-radius: 50%;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

input:checked + .as-slider {
  background-color: #dbeafe;
}

input:checked + .as-slider:before {
  background-color: var(--blue);
  transform: translateX(18px);
}

/* EXPANDED BRANDING DRAWER (NEUMORPHIC INSET PANEL) */
.as-branding-panel {
  background: var(--bg);
  box-shadow: var(--nm-inset-sm);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  animation: fadeIn 0.2s ease-out;
}

.as-branding-mode-tabs {
  display: flex;
  gap: 8px;
  background: var(--bg);
  box-shadow: var(--nm-inset-sm);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  width: 100%;
  box-sizing: border-box;
}

.as-brand-tab-btn {
  flex: 1;
  padding: 8px 10px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.as-brand-tab-btn.active {
  background: var(--blue-gradient);
  color: #fff;
  box-shadow: var(--blue-glow);
}

.as-brand-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

.as-brand-upload-zone {
  border: 2px dashed #93c5fd;
  background: var(--bg);
  box-shadow: var(--nm-shadow-xs);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.as-brand-upload-zone:hover {
  border-color: var(--blue);
  box-shadow: var(--nm-shadow-sm);
}

.as-brand-ctrl-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
}

.as-ctrl-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text);
  font-weight: 700;
  width: 100%;
}

.as-brand-input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--bg);
  box-shadow: var(--nm-inset-sm);
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.as-brand-input:focus {
  border-color: var(--blue);
}

.as-brand-select {
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--bg);
  box-shadow: var(--nm-inset-sm);
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.as-brand-select:focus {
  border-color: var(--blue);
}

.as-brand-tools-row {
  display: flex;
  gap: 6px;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.as-tool-btn {
  flex: 1;
  padding: 7px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: var(--bg);
  box-shadow: var(--nm-shadow-xs);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.as-tool-btn:hover {
  color: var(--blue);
  box-shadow: var(--nm-inset-sm);
}

.as-tool-btn.active {
  background: var(--blue-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--blue-glow);
}

.as-slider-range {
  width: 100%;
  height: 6px;
  background: var(--bg);
  box-shadow: var(--nm-inset-sm);
  border-radius: 4px;
  outline: none;
  accent-color: var(--blue);
  cursor: pointer;
  box-sizing: border-box;
}

.as-palette-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
  width: 100%;
  box-sizing: border-box;
}

.as-color-chip {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 2px 2px 5px #cad5e2, -2px -2px 5px #ffffff;
  cursor: pointer;
  transition: transform 0.15s;
  padding: 0;
}

.as-color-chip:hover {
  transform: scale(1.25);
}

.as-color-input {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--nm-shadow-xs);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.as-pos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 4px;
  width: 100%;
  box-sizing: border-box;
}

.as-pos-btn {
  padding: 7px 4px;
  font-size: 0.74rem;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: var(--bg);
  box-shadow: var(--nm-shadow-xs);
  color: var(--text);
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}

.as-pos-btn:hover {
  box-shadow: var(--nm-inset-sm);
  color: var(--blue);
}

.as-pos-btn:active {
  background: var(--blue-gradient);
  color: #fff;
}

/* INTERACTIVE DRAGGABLE BRANDING OVERLAY */
.as-branding-screen-overlay {
  position: absolute;
  cursor: grab;
  user-select: none;
  touch-action: none;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed var(--blue);
  background: rgba(37, 99, 235, 0.1);
  border-radius: 6px;
  padding: 4px 6px;
  transition: border-color 0.15s, background 0.15s;
}

.as-branding-screen-overlay:hover {
  border-color: var(--blue);
  background: rgba(37, 99, 235, 0.2);
}

.as-branding-screen-overlay.dragging {
  cursor: grabbing;
  border-color: var(--blue);
  background: rgba(37, 99, 235, 0.25);
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.4);
}

.as-brand-drag-badge {
  position: absolute;
  top: -19px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.62rem;
  background: var(--blue);
  color: #fff;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.as-branding-screen-overlay:hover .as-brand-drag-badge,
.as-branding-screen-overlay.dragging .as-brand-drag-badge {
  opacity: 1;
}

/* PROCESS VIDEO BUTTON */
.btn-process-video {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  background: var(--blue-gradient);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--blue-glow);
  transition: all 0.2s;
  margin-top: 6px;
}

.btn-process-video:hover {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  transform: translateY(-1px);
  box-shadow: 6px 6px 18px rgba(37, 99, 235, 0.45), -4px -4px 10px #ffffff;
}

.btn-download-clip {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  background: var(--blue-gradient);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--blue-glow);
  text-decoration: none;
  transition: all 0.2s;
}

.btn-download-clip:hover {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  transform: translateY(-1px);
}

.as-btn-next-step {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  background: var(--bg);
  box-shadow: var(--nm-shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.as-btn-next-step:hover {
  box-shadow: var(--nm-inset-sm);
  color: var(--blue-hover);
}

.as-reset-link {
  text-align: center;
  font-size: 0.76rem;
  color: var(--text-sub);
  cursor: pointer;
  margin-top: 6px;
  font-weight: 600;
}

.as-reset-link:hover {
  color: var(--blue);
  text-decoration: underline;
}

/* CARD 3: CROP POSITIONS CARD */
.as-crop-positions-box {
  background: var(--bg);
  box-shadow: var(--nm-shadow);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

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

.as-cp-title {
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--text);
}

.as-cp-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--bg);
  box-shadow: var(--nm-shadow-xs);
  border: 1px solid rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s;
}

.as-cp-item:hover {
  box-shadow: var(--nm-inset-sm);
  color: var(--blue);
}

.as-cp-item.active {
  box-shadow: var(--nm-inset);
  border: 1.5px solid var(--blue) !important;
  color: var(--blue) !important;
  font-weight: 700;
}

.as-cp-bar {
  flex: 1;
  height: 5px;
  background: var(--bg);
  box-shadow: var(--nm-inset-sm);
  border-radius: 3px;
  overflow: hidden;
}

.as-cp-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--blue);
}

/* =========================================================================
   2-HOUR EXPIRATION BANNERS (YELLOW / AMBER NEUMORPHIC STYLING)
   ========================================================================= */
.as-auto-delete-policy-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  box-shadow: var(--nm-shadow-xs);
  border: 1px solid var(--yellow-border);
  border-radius: 14px;
  padding: 12px 18px;
  color: var(--yellow-text);
  font-size: 0.84rem;
  font-weight: 600;
  max-width: 680px;
  margin: 18px auto 0;
  text-align: left;
  line-height: 1.5;
}

.as-policy-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.as-expiry-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
  border: 1px solid var(--yellow-border);
  border-radius: 16px;
  padding: 14px 22px;
  margin-bottom: 20px;
  box-shadow: var(--nm-shadow-sm);
  animation: fadeIn 0.3s ease;
  width: 100%;
}

.as-expiry-banner.as-expiry-urgent {
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.15);
}

.as-expiry-banner.as-expiry-urgent .as-expiry-digits {
  color: #dc2626;
  animation: pulseUrgent 1s infinite;
}

.as-expiry-content {
  display: flex;
  align-items: center;
  gap: 14px;
}

.as-expiry-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--yellow-light);
  box-shadow: var(--nm-shadow-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--yellow-text);
  flex-shrink: 0;
}

.as-expiry-title {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text);
}

.as-expiry-digits {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  color: var(--yellow-text);
  font-size: 1.15rem;
  letter-spacing: 0.05em;
}

.as-expiry-sub {
  font-size: 0.8rem;
  color: var(--text-sub);
  margin-top: 2px;
  font-weight: 600;
}

.as-expiry-badge-pill {
  background: var(--yellow-light);
  border: 1px solid var(--yellow-border);
  color: var(--yellow-text);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  box-shadow: 2px 2px 6px #cad5e2, -2px -2px 6px #ffffff;
}

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

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

@keyframes scaleUp {
  from { transform: scale(0.94); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes pulseUrgent {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.97); }
}

/* =========================================================================
   PROFESSIONAL NEUMORPHIC ALERT & NOTIFICATION MODAL
   Replaces default browser alert() with high-end tool UI popup
   ========================================================================= */
.as-alert-modal-card {
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 22px;
  padding: 32px 28px 26px;
  width: 440px;
  max-width: 90vw;
  box-shadow: 10px 10px 30px #cad5e2, -10px -10px 30px #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: scaleUp 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.as-alert-modal-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: var(--nm-shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.as-alert-modal-icon-wrap.as-type-warning {
  background: #fef3c7;
  color: #d97706;
  border-color: rgba(245, 158, 11, 0.3);
}

.as-alert-modal-icon-wrap.as-type-error {
  background: #fee2e2;
  color: #dc2626;
  border-color: rgba(239, 68, 68, 0.3);
}

.as-alert-modal-icon-wrap.as-type-success {
  background: #d1fae5;
  color: #059669;
  border-color: rgba(16, 185, 129, 0.3);
}

.as-alert-modal-icon-wrap.as-type-info {
  background: #dbeafe;
  color: #2563eb;
  border-color: rgba(59, 130, 246, 0.3);
}

.as-alert-modal-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.as-alert-modal-message {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 24px;
  font-weight: 500;
  word-break: break-word;
  max-width: 380px;
}

.as-alert-modal-actions {
  display: flex;
  width: 100%;
  gap: 10px;
}

.as-btn-alert-confirm {
  flex: 1;
  padding: 13px 20px;
  border-radius: 14px;
  background: var(--blue-gradient);
  border: none;
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 4px 4px 14px rgba(37, 99, 235, 0.35), -4px -4px 10px #ffffff;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.as-btn-alert-confirm:hover {
  background: var(--blue-hover);
  transform: translateY(-2px);
  box-shadow: 6px 6px 18px rgba(37, 99, 235, 0.45), -4px -4px 12px #ffffff;
}

.as-btn-alert-confirm:active {
  transform: translateY(0);
  box-shadow: var(--nm-inset-sm);
}

/* FLOATING NEUMORPHIC TOAST NOTIFICATION */
.as-toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 100010;
  pointer-events: none;
}

.as-neumorphic-toast {
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  padding: 12px 18px;
  box-shadow: var(--nm-shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(14px) scale(0.95);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.as-neumorphic-toast.as-toast-show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.as-neumorphic-toast.as-toast-success .as-toast-icon {
  color: #10b981;
}

.as-neumorphic-toast.as-toast-error .as-toast-icon {
  color: #ef4444;
}

.as-neumorphic-toast.as-toast-info .as-toast-icon {
  color: #3b82f6;
}

/* ========================================================================= */
/* CUT SELECTION, DELETION & TIMELINE INTERACTION (USER REQUEST)             */
/* ========================================================================= */
.as-timeline-segments-overlay {
  pointer-events: none !important;
}

.as-timeline-segment-block {
  pointer-events: none !important;
  box-sizing: border-box !important;
}

.as-timeline-segment-block:hover {
  filter: brightness(1.25);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.4);
}

.as-timeline-segment-block.active-segment {
  border: 2.5px solid #ffffff !important;
  box-shadow: inset 0 0 14px rgba(255, 255, 255, 0.6), 0 0 10px rgba(37, 99, 235, 0.5) !important;
  filter: brightness(1.3) !important;
}

.as-cut-marker-wrap {
  position: absolute;
  top: 0;
  bottom: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto !important;
  z-index: 20;
  cursor: pointer;
}

.as-cut-marker-wrap::before {
  content: '';
  position: absolute;
  top: 14px;
  bottom: 0;
  width: 2px;
  background: #ffffff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.9);
}

.as-btn-marker-delete-cut {
  position: absolute;
  top: -24px;
  background: #ef4444;
  color: #ffffff;
  border: 1.5px solid #ffffff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  z-index: 25;
  transition: all 0.2s;
  padding: 0;
  line-height: 1;
}

.as-cut-marker-wrap:hover .as-btn-marker-delete-cut,
.as-cut-marker-wrap.active .as-btn-marker-delete-cut {
  display: flex;
}

.as-btn-marker-delete-cut:hover {
  transform: scale(1.2);
  background: #dc2626;
}

/* TIMELINE HEADER CUT & DELETE BUTTONS */
.as-btn-tl-cut {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #38bdf8;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.as-btn-tl-cut:hover {
  background: #38bdf8;
  color: #0b0f19;
}

.as-btn-tl-del-cut {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #ef4444;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.as-btn-tl-del-cut:hover {
  background: #ef4444;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

/* ========================================================================= */
/* RENDER QUEUE & BATCH EXPORT STYLES (USER REQUEST)                         */
/* ========================================================================= */
.as-btn-queue-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--nm-shadow-pill);
  color: var(--text-title);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.as-btn-queue-toggle:hover {
  box-shadow: var(--nm-shadow-inset-sm);
  color: var(--blue);
}

.as-queue-badge {
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 9999px;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4);
}

.as-export-buttons-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.btn-add-to-queue {
  width: 100%;
  height: 46px;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.4);
  transition: all 0.2s ease;
}

.btn-add-to-queue:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.6);
  filter: brightness(1.1);
}

/* ========================================================================= */
/* QUEUE MODAL & ITEM ROW STYLES (PIXEL-PERFECT FIX)                         */
/* ========================================================================= */
.as-queue-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.as-queue-modal-box {
  background: #f1f5f9;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  max-width: 620px;
  width: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 88vh;
  position: relative;
  animation: modalPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.as-queue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding-bottom: 14px;
}

.as-queue-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 2px;
}

.as-btn-clear-queue {
  background: transparent;
  border: none;
  color: #ef4444;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.as-btn-clear-queue:hover {
  background: rgba(239, 68, 68, 0.08);
  text-decoration: underline;
}

.as-queue-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  max-height: 48vh;
  padding-right: 4px;
}

.as-queue-items-list::-webkit-scrollbar {
  width: 6px;
}

.as-queue-items-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.04);
  border-radius: 10px;
}

.as-queue-items-list::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 10px;
}

/* QUEUE ITEM ROW CARD */
.as-queue-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  position: relative;
  box-sizing: border-box;
  width: 100%;
}

.as-queue-item-row:hover {
  border-color: #93c5fd;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
  transform: translateY(-1px);
}

.as-queue-item-row.rendering {
  border-color: #38bdf8;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.06), #ffffff);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.35);
}

.as-queue-item-chk {
  width: 17px;
  height: 17px;
  accent-color: #2563eb;
  cursor: pointer;
  flex-shrink: 0;
  margin: 0;
}

.as-queue-item-thumb {
  width: 72px;
  height: 46px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background: #18181b;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.as-queue-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.as-queue-item-dur {
  position: absolute;
  bottom: 2px;
  right: 3px;
  background: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.1;
  pointer-events: none;
}

.as-queue-item-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.as-queue-item-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.as-queue-item-meta {
  font-size: 0.74rem;
  font-weight: 600;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.as-queue-status-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.as-queue-status-badge.pending {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.as-queue-status-badge.rendering {
  background: rgba(234, 179, 8, 0.15);
  color: #b45309;
  border: 1px solid rgba(234, 179, 8, 0.35);
  animation: pulse 1.5s infinite;
}

.as-queue-status-badge.completed {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.as-queue-status-badge.cancelled {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.as-queue-mini-spinner {
  width: 10px;
  height: 10px;
  border: 2px solid rgba(180, 83, 9, 0.3);
  border-top-color: #b45309;
  border-radius: 50%;
  display: inline-block;
  animation: as-spin 0.75s linear infinite;
  vertical-align: middle;
}

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

.as-queue-item-pbar-track {
  width: 100%;
  height: 6px;
  background: rgba(0, 0, 0, 0.07);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 6px;
}

.as-queue-item-pbar-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  border-radius: 999px;
  transition: width 0.25s ease-out;
}

.as-queue-item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.as-btn-queue-item-del {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  font-size: 1.15rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}

.as-btn-queue-item-del:hover {
  background: #ef4444;
  color: #ffffff;
  transform: scale(1.08);
}

.as-btn-queue-item-download {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #10b981;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.as-btn-queue-item-download:hover {
  background: #059669;
  transform: scale(1.08);
}

/* EMPTY STATE */
.as-queue-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 16px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  border: 1.5px dashed rgba(0, 0, 0, 0.12);
}

.as-queue-empty-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

/* PROGRESS BAR */
.as-queue-progress-box {
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 12px;
  padding: 12px 16px;
}

.as-queue-progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 6px;
}

.as-queue-progress-track {
  height: 8px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.as-queue-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.as-queue-progress-box.completed {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
}

.as-queue-progress-box.completed .as-queue-progress-header {
  color: #059669;
}

.as-queue-progress-box.completed .as-queue-progress-fill {
  background: linear-gradient(90deg, #10b981, #059669);
}

/* FOOTER BUTTONS */
.as-queue-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.as-btn-queue-cancel {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  color: #475569;
  padding: 9px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.as-btn-queue-cancel:hover {
  background: #f8fafc;
  color: #1e293b;
}

.as-btn-queue-render-all {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
  padding: 10px 22px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: all 0.2s ease;
}

.as-btn-queue-render-all:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.5);
}

.as-btn-queue-render-all:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* =========================================================
   GLOBAL MULTI-COLUMN FOOTER SYSTEM
   ========================================================= */
.as-hp-footer {
  background: var(--surface-card, #eef2f7);
  border-top: 1px solid var(--surface-border, rgba(255, 255, 255, 0.95));
  box-shadow: var(--nm-shadow-xs, 0 1px 3px rgba(0,0,0,0.05));
  padding: 64px 24px 32px;
  margin-top: 60px;
  width: 100%;
  box-sizing: border-box;
}

.as-footer-container {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  box-sizing: border-box;
}

@media (max-width: 992px) {
  .as-footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 560px) {
  .as-footer-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.as-footer-brand-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text, #0f172a);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.as-footer-brand-desc {
  font-size: 0.88rem;
  color: var(--text-sub, #64748b);
  line-height: 1.6;
  margin-bottom: 16px;
  max-width: 320px;
}

.as-footer-col h4 {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text, #0f172a);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 16px;
}

.as-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.as-footer-col a {
  color: var(--text-sub, #64748b);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
  display: block;
  margin-bottom: 8px;
  cursor: pointer;
}

.as-footer-col a:hover {
  color: var(--blue, #2563eb);
  transform: translateX(2px);
}

.as-footer-bottom {
  max-width: 1240px;
  margin: 44px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.84rem;
  color: var(--text-sub, #64748b);
  box-sizing: border-box;
}


