/* ==========================================================================
   LUI VIDEO STUDIO — CYBERPUNK HUD STYLESHEET
   Matching https://luifierey.my.id & Lui Visual Suite
   ========================================================================== */

:root {
  --bg-primary: #07090e;
  --bg-surface: #0e1422;
  --bg-surface-glass: rgba(14, 20, 34, 0.85);
  --bg-surface-elevated: #131b2e;

  --neon-cyan: #00f0ff;
  --neon-cyan-glow: rgba(0, 240, 255, 0.35);
  --neon-orange: #f59e0b;
  --neon-orange-glow: rgba(245, 158, 11, 0.25);
  --neon-green: #10b981;
  --neon-green-glow: rgba(16, 185, 129, 0.25);
  --neon-purple: #818cf8;
  --neon-purple-glow: rgba(129, 140, 248, 0.25);
  --neon-red: #f43f5e;

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow-cyan: rgba(0, 240, 255, 0.35);
  --border-glow-orange: rgba(245, 158, 11, 0.35);

  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-hud: 'Plus Jakarta Sans', sans-serif;
  --font-logo: 'Orbitron', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Reset & Hidden Scrollbar */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

html, body {
  -ms-overflow-style: none;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

::-webkit-scrollbar,
*::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
}

/* Background Atmosphere with 60FPS Ambient Animation */
.bg-grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 38px 38px;
  pointer-events: none;
  z-index: 0;
  animation: cyberGridDrift 90s linear infinite;
}

@keyframes cyberGridDrift {
  0% { background-position: 0 0; }
  100% { background-position: 38px 38px; }
}

.bg-glow-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  transform: translateZ(0);
}

.bg-orb-1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.22) 0%, rgba(0, 136, 255, 0.08) 45%, transparent 70%);
  top: -120px;
  left: -80px;
}

.bg-orb-2 {
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, rgba(176, 38, 255, 0.20) 0%, rgba(99, 102, 241, 0.07) 45%, transparent 70%);
  bottom: -100px;
  right: -80px;
}

.bg-orb-3 {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(0, 255, 136, 0.16) 0%, rgba(0, 240, 255, 0.05) 45%, transparent 70%);
  top: 38%;
  right: 25%;
}

@media (max-width: 768px) {
  .hud-nav, .glassmorphism, .hud-bottom-bar, .app-header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(14, 16, 26, 0.95) !important;
  }
}

@keyframes floatOrb1 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.35;
  }
  50% {
    transform: translate3d(80px, 60px, 0) scale(1.15);
    opacity: 0.48;
  }
  100% {
    transform: translate3d(-40px, 100px, 0) scale(0.95);
    opacity: 0.32;
  }
}

@keyframes floatOrb2 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.30;
  }
  50% {
    transform: translate3d(-90px, -70px, 0) scale(1.18);
    opacity: 0.44;
  }
  100% {
    transform: translate3d(40px, -110px, 0) scale(0.92);
    opacity: 0.28;
  }
}

@keyframes floatOrb3 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.22;
  }
  50% {
    transform: translate3d(-70px, 50px, 0) scale(1.22);
    opacity: 0.34;
  }
  100% {
    transform: translate3d(60px, -40px, 0) scale(0.92);
    opacity: 0.20;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-glow-orb, .bg-grid-overlay {
    animation: none !important;
  }
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* Typography & Helpers */
.font-hud { font-family: var(--font-hud); }
.font-mono { font-family: var(--font-mono); }
.text-cyan { color: var(--neon-cyan); }
.text-orange { color: var(--neon-orange); }
.text-green { color: var(--neon-green); }
.text-muted { color: var(--text-muted); }
.text-glow-cyan {
  color: var(--neon-cyan);
  text-shadow: 0 0 16px var(--neon-cyan-glow);
}
.text-center { text-align: center; }
.hidden { display: none !important; }
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 14px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }

/* Glassmorphism Panel */
.glassmorphism {
  background: var(--bg-surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

/* ==========================================================================
   NAVIGATION BAR (Identical with Converter & RemoveWM)
   ========================================================================== */
.pulse-dot {
  display: inline-block;
  animation: pulseLight 1.8s infinite;
}
@keyframes pulseLight {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hud-nav {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  z-index: 1000;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  box-shadow: none;
  display: flex;
  align-items: center;
  padding: 0;
}
.nav-container {
  width: 100%;
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand-group {
  display: flex;
  align-items: center;
}
.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.75));
  transition: transform 0.25s ease, filter 0.25s ease;
}
.brand-logo-link:hover .brand-logo-img {
  transform: scale(1.08);
  filter: drop-shadow(0 0 16px rgba(0, 240, 255, 0.95));
}
.logo-circle-glow {
  display: contents;
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-title {
  font-family: var(--font-logo, 'Orbitron', sans-serif);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 1.2px;
  display: block;
  white-space: nowrap;
  color: #ffffff;
  line-height: 1.2;
}

.text-gradient {
  color: var(--neon-cyan, #00f0ff);
  background: none;
  -webkit-text-fill-color: initial;
  font-weight: 900;
}
.brand-sub {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--neon-cyan, #00f0ff);
  display: block;
  white-space: nowrap;
  margin-top: 2px;
}
.brand-sub-author {
  color: #ffffff;
}

.hud-status-center {
  display: flex;
  align-items: center;
  gap: 10px;
}
.status-pill, .privacy-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  background: rgba(0,0,0,0.5);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.status-pill { color: var(--neon-orange); border-color: rgba(255,102,0,0.3); }
.privacy-pill { color: var(--neon-green); border-color: rgba(0,255,136,0.3); }

/* Tool Dropdown Menu */
.tool-dropdown-wrap {
  position: relative;
  display: inline-block;
}
.tool-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 13, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f0f4fc;
  padding: 6px 14px;
  border-radius: 10px;
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.25s ease;
  min-height: 38px;
}
.tool-dropdown-btn:hover, .tool-dropdown-wrap.open .tool-dropdown-btn {
  background: rgba(0, 240, 255, 0.12);
  border-color: rgba(0, 240, 255, 0.5);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
  color: #fff;
}
.tool-dropdown-btn .dropdown-arrow {
  font-size: 0.65rem;
  transition: transform 0.25s ease;
}
.tool-dropdown-wrap.open .dropdown-arrow {
  transform: rotate(180deg);
}
.tool-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 260px;
  background: rgba(10, 13, 24, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 240, 255, 0.15);
  z-index: 1000;
  animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.tool-dropdown-wrap.open .tool-dropdown-menu {
  display: block;
}
@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.dropdown-header {
  padding: 6px 12px 8px;
  font-size: 0.65rem;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-weight: 800;
  color: var(--text-dim, #8e9bb8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 4px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #f0f4fc;
  transition: all 0.18s ease;
}
.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(3px);
  color: #fff;
}
.dropdown-item.active {
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.4);
}
.dropdown-item i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
  color: var(--neon-cyan) !important;
}
.dropdown-item-title {
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.dropdown-item-desc {
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.68rem;
  color: #8e9bb8;
}

@media (max-width: 640px) {
  .dropdown-btn-label {
    display: none;
  }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-sawer-nav, .btn-support-nav {
  height: 38px;
  background: rgba(0, 240, 255, 0.08);
  border: 1.5px solid var(--neon-cyan);
  color: var(--neon-cyan);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  text-decoration: none;
}
.btn-sawer-nav i, .btn-support-nav i {
  color: var(--neon-cyan) !important;
  transition: color 0.2s ease;
}
.btn-sawer-nav:hover, .btn-support-nav:hover {
  background: var(--neon-cyan);
  color: #07090e;
  box-shadow: 0 0 18px var(--neon-cyan-glow);
  transform: translateY(-1px);
}
.btn-sawer-nav:hover i, .btn-support-nav:hover i {
  color: #07090e !important;
}
.btn-back-main, .btn-nav-back {
  height: 38px;
  width: 38px;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  font-size: 0.88rem;
  border-radius: 8px;
  border: 1.5px solid var(--neon-cyan);
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  transition: all 0.2s ease;
}
.btn-back-main:hover, .btn-nav-back:hover {
  background: var(--neon-cyan);
  color: #07090e;
  box-shadow: 0 0 18px var(--neon-cyan-glow);
  transform: translateY(-1px);
}

/* QRIS Modal Backdrop & Card */
.cyber-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}
.cyber-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}
.qris-modal-card {
  width: 100%;
  max-width: 500px;
  padding: 24px;
}
.modal-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close-btn:hover {
  color: #fff;
  background: rgba(255, 51, 102, 0.3);
}
.tag-tech {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ==========================================================================
   HERO SECTION & TOOL RIBBON
   ========================================================================== */
.hero-section {
  padding: 30px 10px 24px 10px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-main);
  margin-bottom: 14px;
}
.hero-title {
  font-family: var(--font-hud);
  font-size: clamp(26px, 5vw, 44px);
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 10px;
  line-height: 1.15;
  background: linear-gradient(135deg, #fff 40%, var(--neon-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-gradient {
  background: linear-gradient(135deg, var(--neon-cyan), #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  color: var(--text-muted);
  font-size: clamp(13px, 2vw, 15px);
  max-width: 680px;
  margin: 0 auto 26px auto;
}

/* Tools Ribbon Tabs */
.tools-ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  background: rgba(10, 13, 24, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  max-width: 860px;
  margin: 0 auto;
}
.tool-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}
.tool-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
}
.tool-tab.active {
  background: rgba(0, 240, 255, 0.14);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.25);
}

/* ==========================================================================
   DROPZONE / UPLOAD SECTION
   ========================================================================== */
.upload-section {
  margin: 20px 0 40px 0;
}
.upload-dropzone {
  position: relative;
  padding: 60px 24px;
  border: 2px dashed rgba(0, 240, 255, 0.35);
  border-radius: var(--radius-lg);
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  background: linear-gradient(180deg, rgba(10, 13, 24, 0.7) 0%, rgba(5, 6, 10, 0.9) 100%);
}
.upload-dropzone:hover, .upload-dropzone.dragover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.25), inset 0 0 30px rgba(0, 240, 255, 0.06);
  transform: translateY(-2px);
}
.file-input-hidden {
  display: none;
}

.upload-icon-wrapper {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0 auto 16px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.upload-icon {
  font-size: 34px;
  color: var(--neon-cyan);
  z-index: 2;
}
.pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid rgba(0, 240, 255, 0.4);
  animation: pulseAnim 2.4s infinite ease-out;
}
@keyframes pulseAnim {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

.upload-title {
  font-family: var(--font-hud);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}
.upload-desc {
  color: var(--text-muted);
  font-size: 13.5px;
  margin-bottom: 22px;
}

.btn-upload {
  padding: 12px 30px;
  font-size: 14px;
  margin-bottom: 24px;
}

.upload-specs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.spec-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
}

/* ==========================================================================
   BUTTONS & CONTROLS UI
   ========================================================================== */
.btn-glow-cyan {
  background: var(--neon-cyan);
  color: #05060a;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-hud);
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: var(--transition-fast);
  box-shadow: 0 0 20px var(--neon-cyan-glow);
}
.btn-glow-cyan:hover {
  background: #33f4ff;
  box-shadow: 0 0 28px rgba(0, 240, 255, 0.7);
  transform: translateY(-1px);
}
.btn-glow-cyan:active {
  transform: translateY(1px);
}

.btn-outline-cyan {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: var(--neon-cyan);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 16px;
  transition: var(--transition-fast);
}
.btn-outline-cyan:hover {
  background: rgba(0, 240, 255, 0.18);
  border-color: var(--neon-cyan);
}

.btn-outline-danger {
  background: rgba(255, 51, 102, 0.08);
  border: 1px solid rgba(255, 51, 102, 0.3);
  color: var(--neon-red);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 14px;
  font-size: 12.5px;
  transition: var(--transition-fast);
}
.btn-outline-danger:hover {
  background: rgba(255, 51, 102, 0.2);
  border-color: var(--neon-red);
}

.btn-outline-default {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  padding: 10px 20px;
  transition: var(--transition-fast);
}
.btn-outline-default:hover {
  background: rgba(255, 255, 255, 0.1);
}

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

/* ==========================================================================
   WORKSPACE & EDITOR LAYOUT
   ========================================================================== */
.workspace-section {
  margin: 10px 0 40px 0;
  animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.workspace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 20px;
  margin-bottom: 18px;
}
.video-meta-group {
  display: flex;
  align-items: center;
  gap: 14px;
}
.meta-icon {
  width: 42px;
  height: 42px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.video-filename {
  font-family: var(--font-hud);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  max-width: 480px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.video-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.meta-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 2px 7px;
  border-radius: 4px;
}

.editor-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
}
@media (max-width: 980px) {
  .editor-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   LEFT: PLAYER & TRIMMER
   ========================================================================== */
.player-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.player-card {
  padding: 14px;
  overflow: hidden;
}

.player-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hidden-source-video {
  display: none;
}
.preview-canvas {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.canvas-hud {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
.hud-status {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.7);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 240, 255, 0.4);
  padding: 3px 8px;
  border-radius: 4px;
}
.hud-timecode {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.75);
  color: var(--text-main);
  padding: 3px 9px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: opacity 0.2s;
}
.play-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.btn-play-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.9);
  color: #05060a;
  border: none;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 25px var(--neon-cyan-glow);
  transition: transform 0.2s;
}
.btn-play-circle i {
  margin-left: 4px;
}
.btn-play-circle:hover {
  transform: scale(1.1);
}

.player-controls {
  padding-top: 12px;
}
.controls-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-ctrl {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  shrink: 0;
}
.btn-ctrl:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

.timeline-bar-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}
.timeline-slider {
  width: 100%;
  appearance: none;
  background: rgba(255, 255, 255, 0.1);
  height: 6px;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}
.timeline-slider::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan-glow);
  cursor: pointer;
}

/* Visual Trimmer Card */
.trimmer-card {
  padding: 16px;
}
.trimmer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.trimmer-title {
  font-family: var(--font-hud);
  font-size: 13.5px;
  font-weight: 700;
}
.trimmer-duration {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--neon-cyan);
  font-weight: 600;
}

.dual-range-container {
  position: relative;
  height: 36px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  overflow: hidden;
}
.range-track-highlight {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0%;
  width: 100%;
  background: rgba(0, 240, 255, 0.22);
  border-left: 2px solid var(--neon-cyan);
  border-right: 2px solid var(--neon-cyan);
  pointer-events: none;
}
.dual-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  appearance: none;
  background: transparent;
  pointer-events: none;
}
.dual-thumb::-webkit-slider-thumb {
  appearance: none;
  pointer-events: auto;
  width: 18px;
  height: 36px;
  background: var(--neon-cyan);
  border: 2px solid #05060a;
  border-radius: 4px;
  cursor: ew-resize;
  box-shadow: 0 0 10px var(--neon-cyan-glow);
}

.trim-inputs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.trim-input-box {
  display: flex;
  align-items: center;
  gap: 8px;
}
.trim-input-box label {
  font-size: 12px;
  color: var(--text-muted);
}
.stepper-group {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.btn-step {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 6px 8px;
  cursor: pointer;
}
.btn-step:hover {
  background: rgba(0, 240, 255, 0.15);
  color: var(--neon-cyan);
}
.time-input {
  width: 78px;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: center;
  outline: none;
}

/* ==========================================================================
   RIGHT: TOOL CONTROLS & EXPORT PANEL
   ========================================================================== */
.controls-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tool-panel {
  padding: 20px;
  animation: fadeIn 0.3s ease;
}
.panel-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.panel-heading h3 {
  font-family: var(--font-hud);
  font-size: 16px;
  font-weight: 700;
}
.panel-desc {
  color: var(--text-muted);
  font-size: 12.5px;
  margin-bottom: 18px;
  line-height: 1.5;
}

.setting-group {
  margin-bottom: 18px;
}
.setting-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

/* Button Presets Grid */
.btn-preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
}
.btn-preset {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
}
.btn-preset:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}
.btn-preset.active {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}

/* Radio Card Groups */
.radio-card-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.radio-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
}
.radio-card input[type="radio"] {
  display: none;
}
.radio-card-content {
  display: flex;
  align-items: center;
  gap: 12px;
}
.radio-card-content i {
  font-size: 18px;
  width: 24px;
  text-align: center;
}
.rc-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}
.rc-desc {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
}
.radio-card:hover {
  background: rgba(255, 255, 255, 0.06);
}
.radio-card.active {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.18);
}

/* Sliders & Values */
.custom-slider-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.custom-slider {
  flex: 1;
  appearance: none;
  background: rgba(255, 255, 255, 0.1);
  height: 6px;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}
.custom-slider::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan-glow);
  cursor: pointer;
}
.badge-value {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 2px 7px;
  border-radius: 4px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: var(--text-muted);
  cursor: pointer;
}
.checkbox-row input[type="checkbox"] {
  accent-color: var(--neon-cyan);
  width: 15px;
  height: 15px;
}

.info-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.transform-status-box, .loop-est-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}
.badge-status-cyan {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--neon-cyan);
  font-weight: 600;
}

.custom-file-upload {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.audio-filename-text {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Export Settings Card */
.export-card {
  padding: 18px 20px;
}
.export-header {
  margin-bottom: 14px;
}
.export-title {
  font-family: var(--font-hud);
  font-size: 14px;
  font-weight: 700;
}

.export-settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
@media (max-width: 580px) {
  .export-settings-grid {
    grid-template-columns: 1fr;
  }
}
.setting-item label {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.custom-select {
  width: 100%;
  padding: 9px 12px;
  background: #090c16;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 12.5px;
  outline: none;
  cursor: pointer;
}
.custom-select:focus {
  border-color: var(--neon-cyan);
}

.btn-render-cta {
  width: 100%;
  padding: 14px;
  font-size: 15px;
}

/* ==========================================================================
   MODAL DIALOGS (PROGRESS & RESULT)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease;
}

.modal-card {
  width: 100%;
  max-width: 540px;
  padding: 28px;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 240, 255, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}
.modal-icon-spin {
  font-size: 36px;
  margin-bottom: 12px;
}
.modal-title {
  font-family: var(--font-hud);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.modal-subtitle {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 22px;
}

.progress-box {
  margin-bottom: 20px;
}
.progress-bar-track {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 8px;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-cyan) 0%, var(--neon-green) 100%);
  border-radius: 5px;
  transition: width 0.15s ease;
  box-shadow: 0 0 15px var(--neon-cyan-glow);
}
.progress-info-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
}
.progress-percent {
  font-weight: 700;
  color: var(--neon-cyan);
}
.progress-frames {
  color: var(--text-muted);
}

.progress-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}
.stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--text-dim);
  margin-bottom: 3px;
}
.stat-val {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
}

/* Result Modal */
.result-card {
  max-width: 620px;
}
.result-success-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.4);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--neon-green);
  margin-bottom: 12px;
}
.result-title {
  font-family: var(--font-hud);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 16px;
}

.result-player-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 16px;
}
.result-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.result-stats-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.result-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.result-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.btn-download {
  grid-column: span 2;
  padding: 14px;
  font-size: 15px;
}

/* ==========================================================================
   FEATURES & FAQ SECTION
   ========================================================================== */
.features-section {
  padding: 60px 0 40px 0;
}
.section-title {
  font-family: var(--font-hud);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 30px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  padding: 24px;
  text-align: center;
}
.feature-icon {
  width: 54px;
  height: 54px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin: 0 auto 14px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.feature-name {
  font-family: var(--font-hud);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.hud-footer {
  margin-top: 40px;
  padding: 24px 0;
  border-top: 1px solid var(--border-subtle);
}
.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-links {
  display: flex;
  gap: 16px;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--neon-cyan);
}

/* ==========================================================================
   CROP & COMPRESS EXTENDED STYLES
   ========================================================================== */
.crop-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}
.crop-box {
  position: absolute;
  border: 2px solid var(--neon-cyan);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.65), 0 0 15px var(--neon-cyan-glow);
  pointer-events: auto;
  cursor: move;
  touch-action: none;
}
.crop-grid-lines {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(0, 240, 255, 0.25) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 240, 255, 0.25) 1px, transparent 1px);
  background-size: 33.33% 33.33%;
  pointer-events: none;
}
.crop-handle {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--neon-cyan);
  border: 1px solid #05060a;
  border-radius: 2px;
  box-shadow: 0 0 6px var(--neon-cyan-glow);
}
.handle-nw { top: -6px; left: -6px; cursor: nwse-resize; }
.handle-n  { top: -6px; left: calc(50% - 6px); cursor: ns-resize; }
.handle-ne { top: -6px; right: -6px; cursor: nesw-resize; }
.handle-e  { top: calc(50% - 6px); right: -6px; cursor: ew-resize; }
.handle-se { bottom: -6px; right: -6px; cursor: nwse-resize; }
.handle-s  { bottom: -6px; left: calc(50% - 6px); cursor: ns-resize; }
.handle-sw { bottom: -6px; left: -6px; cursor: nesw-resize; }
.handle-w  { top: calc(50% - 6px); left: -6px; cursor: ew-resize; }

.crop-coords-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.coord-box label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.coord-input {
  width: 100%;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--neon-cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  outline: none;
  text-align: center;
}
.coord-input:focus {
  border-color: var(--neon-cyan);
}

.compress-est-card {
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-top: 14px;
}
.est-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .hud-status-center { display: none; }
  .editor-grid { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 768px) {
  .hud-nav {
    min-height: 64px;
    padding: 6px 0;
  }
  .nav-container {
    padding: 0 14px;
    gap: 10px;
  }
  .btn-sawer-nav {
    min-height: 44px;
    padding: 0 14px;
    font-size: 0.75rem;
  }
  .btn-back-main {
    min-height: 44px;
    min-width: 44px;
  }

  .hero-section {
    padding: 24px 14px 16px 14px;
  }
  .hero-title {
    font-size: 1.6rem;
    line-height: 1.25;
  }
  .hero-desc {
    font-size: 0.88rem;
    margin-bottom: 20px;
  }

  .tools-ribbon {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    border-radius: 16px;
    padding: 8px;
    max-width: 100%;
  }
  .tool-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    gap: 6px;
  }
  .tool-tab i {
    font-size: 14px;
  }

  .workspace-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px 12px;
  }
  .video-meta-group {
    max-width: 100%;
  }
  .meta-icon {
    width: 38px;
    height: 38px;
    font-size: 16px;
    flex-shrink: 0;
  }
  .video-filename {
    font-size: 13px;
    max-width: 100%;
    word-break: break-all;
    white-space: normal;
  }
  .video-badges {
    gap: 4px;
  }
  .meta-badge {
    font-size: 9.5px;
    padding: 2px 6px;
  }
  .workspace-header .btn-outline-danger {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    font-size: 13px;
  }

  .player-card {
    padding: 10px;
  }
  .canvas-hud {
    top: 6px;
    left: 6px;
    right: 6px;
  }
  .hud-status {
    font-size: 9px;
    padding: 2px 6px;
  }
  .hud-timecode {
    font-size: 10px;
    padding: 2px 6px;
  }
  .btn-ctrl {
    min-width: 44px;
    min-height: 44px;
    font-size: 16px;
  }
  .timeline-slider {
    height: 8px;
  }
  .timeline-slider::-webkit-slider-thumb {
    width: 18px;
    height: 18px;
  }

  .tool-panel {
    padding: 16px 12px;
    border-radius: 14px;
  }
  .panel-title {
    font-size: 15px;
  }
  .panel-desc {
    font-size: 12px;
  }

  .preset-grid, .aspect-grid, .speed-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
  }
  .preset-btn, .aspect-btn, .speed-btn {
    min-height: 44px;
    font-size: 12px;
    font-weight: 700;
  }

  .btn-render-action {
    width: 100%;
    min-height: 50px;
    font-size: 14.5px;
    font-weight: 800;
  }

  .crop-coords-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .coord-input {
    min-height: 40px;
  }
}

@media (max-width: 640px) {
  .hud-nav { min-height: 60px; }
  .nav-container { padding: 0 14px; gap: 8px; }
  .brand-logo-img { width: 28px; height: 28px; }
  .brand-title { font-size: 0.88rem; }
  .brand-sub { font-size: 0.6rem; }
  .nav-actions { gap: 6px; }
  .tool-dropdown-btn { padding: 6px 9px; font-size: 0.74rem; border-radius: 8px; }
  .dropdown-btn-label { display: none; }
  .tool-dropdown-menu { width: 260px; max-width: calc(100vw - 28px); right: 0; }
  .hud-btn-support { padding: 6px 10px; font-size: 0.72rem; }
  .support-label { display: none; }
  .hud-back-btn { width: 34px; height: 34px; border-radius: 8px; }
}

@media (max-width: 480px) {
  .brand-sub { display: none; }
  .brand-title { font-size: 0.84rem; }
  .tools-ribbon { grid-template-columns: repeat(2, 1fr); }
  .tool-tab { font-size: 11.5px; padding: 8px 4px; }
  .upload-dropzone { padding: 36px 14px; }
}

/* ========================================================================== */
/* VJ MOTION DESIGN SUITE (STAGE-GRADE PHYSICS & TACTILE MICRO-INTERACTIONS) */
/* ========================================================================== */

/* Fixed High-Performance FX Layer for Click Laser Shockwaves */
#vj-fx-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999999;
  overflow: hidden;
  contain: layout size paint;
}

/* Click Ripple / Tactile Cyber Pulse */
.vj-laser-shockwave {
  position: absolute;
  top: var(--vj-y, 0px);
  left: var(--vj-x, 0px);
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  pointer-events: none;
  contain: layout paint;
  will-change: transform, opacity;
}

/* Subtle Kinetic Laser Ring */
.vj-shockwave-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--vj-fx-color, var(--neon-cyan, #00f0ff));
  box-shadow: 0 0 6px var(--vj-fx-color, var(--neon-cyan, #00f0ff));
  animation: vjRingPulse 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Soft Micro Core */
.vj-shockwave-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--vj-fx-color, var(--neon-cyan, #00f0ff));
  transform: translate(-50%, -50%);
  box-shadow: 0 0 4px var(--vj-fx-color, var(--neon-cyan, #00f0ff));
  animation: vjCoreFade 0.22s ease-out forwards;
}

@keyframes vjRingPulse {
  0% {
    transform: scale(0.25);
    opacity: 0.85;
    border-width: 1.8px;
  }
  100% {
    transform: scale(1.15);
    opacity: 0;
    border-width: 1px;
  }
}

@keyframes vjCoreFade {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.75;
  }
  100% {
    transform: translate(-50%, -50%) scale(0.2);
    opacity: 0;
  }
}

/* -------------------------------------------------------------------------- */
/* STAGE MATERIALIZATION / STAGGERED SCROLL ENTRANCE                          */
/* -------------------------------------------------------------------------- */
.vj-materialize {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  filter: blur(5px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--vj-stagger, 0) * 60ms);
  will-change: opacity, transform, filter;
}

.vj-materialize.vj-in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0px);
}

/* -------------------------------------------------------------------------- */
/* 3D HOLOGRAPHIC STAGE TILT & SPECULAR GLINT                                 */
/* -------------------------------------------------------------------------- */
.vj-holo-tilt {
  transform-style: preserve-3d;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  position: relative;
  isolation: isolate;
}

.vj-holo-tilt::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 3;
  opacity: var(--vj-glint-opacity, 0);
  background: radial-gradient(
    circle 240px at var(--vj-glint-x, 50%) var(--vj-glint-y, 50%),
    rgba(255, 255, 255, 0.14) 0%,
    rgba(0, 240, 255, 0.1) 30%,
    transparent 75%
  );
  transition: opacity 0.25s ease;
  mix-blend-mode: screen;
}

/* -------------------------------------------------------------------------- */
/* BUTTON PRESS & TAB SPRING FEEDBACK                                         */
/* -------------------------------------------------------------------------- */
.btn:active,
.btn-primary:active,
.btn-render-action:active,
.btn-sawer-nav:active,
.tool-tab:active {
  transform: scale(0.965) !important;
  transition: transform 0.08s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.tool-tab.active {
  animation: vjTabSpring 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes vjTabSpring {
  0% { transform: scale(0.94); }
  60% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

/* -------------------------------------------------------------------------- */
/* REDUCED MOTION ACCESSIBILITY                                               */
/* -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  #vj-fx-layer {
    display: none !important;
  }
  .vj-materialize {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  .vj-holo-tilt {
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   UNIFIED HUD BOTTOM BAR (SUITE FOOTER)
   ========================================================================== */
.hud-bottom-bar {
  width: 100%;
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  border-bottom: none;
  border-left: none;
  border-right: none;
  border-radius: 16px 16px 0 0;
  background: rgba(8, 11, 20, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 14px 0;
  position: relative;
  z-index: 50;
}
.bottom-bar-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.bottom-bar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.bottom-bar-brand strong {
  color: #ffffff;
  font-family: var(--font-hud);
  font-weight: 700;
  letter-spacing: 0.5px;
}
.brand-divider {
  color: var(--text-dim);
}
.brand-suite {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}
.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.25);
  color: var(--neon-green, #00ff88);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  margin-left: 6px;
}
.bottom-bar-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.bottom-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-family: var(--font-hud);
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}
.bottom-link:hover {
  background: rgba(0, 240, 255, 0.12);
  border-color: rgba(0, 240, 255, 0.35);
  color: #ffffff;
  transform: translateY(-1px);
}
.bottom-link.active {
  background: rgba(0, 240, 255, 0.18);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}
@media (max-width: 860px) {
  .bottom-bar-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }
  .bottom-bar-links {
    justify-content: center;
  }
}


