/* ==========================================================================
   LectureSync — Modern Dark Glassmorphism Design System
   Focused, Clean & Production-Ready Studio Interface
   ========================================================================== */

:root {
  color-scheme: dark;
  /* Color Palette */
  --bg-main: #090a10;
  --bg-surface: #10121d;
  --bg-elevated: #161928;
  --bg-overlay: rgba(16, 18, 29, 0.85);
  --bg-glass: rgba(22, 25, 40, 0.7);
  --bg-glass-hover: rgba(30, 35, 56, 0.85);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-accent: rgba(99, 102, 241, 0.4);

  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.25);
  
  --accent-cyan: #06b6d4;
  --accent-purple: #a855f7;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #818cf8;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Layout Constants */
  --header-height: 64px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Transitions & Shadows */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Force dark style for all select and option elements */
select, option, optgroup {
  color-scheme: dark !important;
  background-color: #161928 !important;
  color: #f8fafc !important;
  font-family: inherit;
}

select:focus {
  outline: none;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ─────────────────────────────────────────────────────────────
   HEADER & TOP NAVIGATION
   ───────────────────────────────────────────────────────────── */
.site-header {
  height: var(--header-height);
  background: var(--bg-overlay);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}

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

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px var(--primary-glow);
}

.brand-logo svg {
  width: 20px;
  height: 22px;
}

.brand-logo svg path {
  fill: #ffffff;
}

.brand-text h1 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gpu-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.gpu-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
}

/* Header Center / Language Selection Bar */
.header-center {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-pair-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 6px 14px;
}

.custom-select-wrap {
  position: relative;
}

.custom-select-trigger {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
  font-family: inherit;
}

.custom-select-trigger:hover {
  border-color: var(--primary);
  background: var(--bg-glass-hover);
}

.custom-select-trigger .chevron-icon {
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.custom-select-wrap.open .custom-select-trigger .chevron-icon {
  transform: rotate(180deg);
}

.custom-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #161928;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  min-width: 160px;
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 300;
  backdrop-filter: blur(20px);
}

.custom-select-wrap.open .custom-select-menu {
  display: flex;
}

.custom-opt-btn {
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition-fast);
  text-align: left;
  width: 100%;
}

.custom-opt-btn:hover {
  background: rgba(99, 102, 241, 0.2);
  color: #fff;
}

.custom-opt-btn.active {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.lang-swap-btn {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: var(--text-accent);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.lang-swap-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: rotate(180deg);
}

/* Header Actions: Upload & UI Language */
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-primary-action {
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  color: #fff;
  border: none;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 16px var(--primary-glow);
  transition: var(--transition-fast);
  font-family: inherit;
}

.btn-primary-action:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

/* User Account Profile Badge Button */
.user-profile-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 6px 12px;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: inherit;
}

.user-profile-badge-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--border-strong);
  color: #fff;
}

.user-avatar-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.user-name-label {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* UI Language Dropdown (Globe) */
.ui-lang-dropdown {
  position: relative;
}

.globe-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.globe-btn:hover {
  border-color: var(--primary);
  background: var(--bg-elevated);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  min-width: 170px;
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 200;
  backdrop-filter: blur(20px);
}

.lang-dropdown-menu.show {
  display: flex;
}

.lang-item-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition-fast);
}

.lang-item-btn:hover, .lang-item-btn.active {
  background: var(--primary-glow);
  color: #fff;
}

/* ─────────────────────────────────────────────────────────────
   MAIN STUDIO LAYOUT
   ───────────────────────────────────────────────────────────── */
.app-container {
  max-width: 1720px;
  margin: 0 auto;
  padding: 24px;
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(380px, 0.95fr);
  gap: 24px;
  align-items: start;
}

/* Left Column: Player Hub */
.player-container {
  background: #000;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Subtitles Floating Box */
.subtitles-overlay {
  position: absolute;
  bottom: 80px;
  left: 6%;
  right: 6%;
  text-align: center;
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.2s ease;
}

.subtitles-text {
  display: inline-block;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  line-height: 1.45;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  max-width: 85%;
}

/* Video Transport Controls Bar */
.transport-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(9, 10, 16, 0.95), rgba(9, 10, 16, 0.4) 70%, transparent);
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 20;
}

/* Progress Scrubber (YouTube Style with Expanded Hit Area) */
.timeline-scrubber {
  width: 100%;
  height: 20px;
  position: relative;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  display: flex;
  align-items: center;
}

/* Base Track (Visible Gray Bar) */
.timeline-scrubber::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 2px;
  transition: height 0.15s ease, background 0.15s ease;
  pointer-events: none;
}

/* Buffered Track (Lighter Gray Bar) */
.scrubber-buffered {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  background: rgba(255, 255, 255, 0.38);
  border-radius: 2px;
  width: 0%;
  pointer-events: none;
  transition: height 0.15s ease;
  z-index: 1;
}

/* Played Progress Fill (Vibrant Gradient Accent) */
.scrubber-fill {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  background: linear-gradient(90deg, #6366f1, #06b6d4);
  border-radius: 2px;
  width: 0%;
  pointer-events: none;
  transition: height 0.15s ease;
  z-index: 2;
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
}

/* Draggable Circular Thumb */
.scrubber-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 13px;
  height: 13px;
  background: #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.9), 0 1px 3px rgba(0, 0, 0, 0.5);
  opacity: 0.9;
  pointer-events: none;
  transition: transform 0.12s ease, opacity 0.15s ease;
  z-index: 3;
}

/* On Hover or Active Drag: Expand Track Height and Thumb */
.timeline-scrubber:hover::before,
.timeline-scrubber.is-scrubbing::before {
  height: 6px;
  background: rgba(255, 255, 255, 0.32);
}

.timeline-scrubber:hover .scrubber-buffered,
.timeline-scrubber.is-scrubbing .scrubber-buffered {
  height: 6px;
}

.timeline-scrubber:hover .scrubber-fill,
.timeline-scrubber.is-scrubbing .scrubber-fill {
  height: 6px;
}

.timeline-scrubber:hover .scrubber-thumb,
.timeline-scrubber.is-scrubbing .scrubber-thumb {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.25);
}

/* Controls Row */
.controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.ctrl-btn {
  background: transparent;
  border: none;
  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);
}

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

.ctrl-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.ctrl-btn.active {
  color: var(--primary);
  background: var(--primary-glow);
}

.time-display {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0 6px;
}

/* Volume Slider Group */
.volume-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.volume-slider {
  width: 75px;
  height: 4px;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

/* Playback Speed Pill Dropdown */
.speed-dropdown {
  position: relative;
}

.speed-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.speed-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 4px;
  display: none;
  flex-direction: column;
  gap: 2px;
  box-shadow: var(--shadow-md);
  z-index: 50;
}

.speed-menu.show {
  display: flex;
}

.speed-opt {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
}

.speed-opt:hover, .speed-opt.active {
  background: var(--primary);
  color: #fff;
}

/* Player Meta Card */
.player-meta-card {
  margin-top: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.meta-title h2 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.meta-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.meta-downloads {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  transition: var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: var(--border-strong);
}

/* ─────────────────────────────────────────────────────────────
   RIGHT COLUMN: WORKBENCH CONSOLE
   ───────────────────────────────────────────────────────────── */
.workbench-console {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 620px;
}

/* Tabs Bar */
.console-tabs {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(16, 18, 29, 0.5);
  padding: 0 12px;
}

.console-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 14px 16px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
}

.console-tab-btn:hover {
  color: var(--text-main);
}

.console-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.console-tab-pane {
  display: none;
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.console-tab-pane.active {
  display: flex;
  flex-direction: column;
}

/* Search bar inside Subtitles */
.transcript-search-wrap {
  margin-bottom: 12px;
  position: relative;
}

.transcript-search-input {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 13px;
  padding: 9px 12px 9px 36px;
  font-family: inherit;
  outline: none;
}

.transcript-search-input:focus {
  border-color: var(--primary);
}

.transcript-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* Subtitles List (Clean & Readable) */
.segments-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  padding-right: 4px;
}

.segment-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 12px;
}

.segment-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-glass-hover);
  transform: translateX(2px);
}

.segment-card.active {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.12);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.2);
}

.seg-time-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 3px 6px;
  line-height: 1;
  flex-shrink: 0;
  letter-spacing: 0.5px;
  transition: var(--transition-fast);
  align-self: flex-start;
  margin-top: 2px;
}

.segment-card.active .seg-time-badge {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.segment-card:hover .seg-time-badge {
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.2);
}

.seg-text-trans {
  font-size: 14px;
  color: var(--text-main);
  font-weight: 500;
  line-height: 1.5;
  flex: 1;
}

/* Visual Translation Tab Panel */
.visual-panel-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.visual-mockup-frame {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  padding: 28px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.visual-mockup-frame svg {
  width: 44px;
  height: 44px;
  color: var(--text-muted);
}

.visual-mockup-frame h3 {
  font-size: 15px;
  color: #fff;
}

.visual-mockup-frame p {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 320px;
}

.btn-visual-action {
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.btn-visual-action:hover {
  filter: brightness(1.15);
}

/* Visual Translation Rich Results & Components */
.vt-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeIn 0.3s ease-out;
}

/* Loading State with Scanner Animation */
.vt-loading-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.vt-scanner-preview {
  position: relative;
  width: 100%;
  max-height: 160px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000;
}

.vt-scanner-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  filter: blur(1px);
}

.vt-scanner-beam {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary), #38bdf8, transparent);
  box-shadow: 0 0 16px var(--primary), 0 0 8px #fff;
  animation: vtScan 2.2s ease-in-out infinite alternate;
}

@keyframes vtScan {
  0% { top: 0%; }
  100% { top: 96%; }
}

.vt-loading-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.vt-loading-sub {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 320px;
}

.vt-loading-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 4px 10px;
  border-radius: 20px;
}

/* Slide Result Card */
.vt-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

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

.vt-meta-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vt-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--bg-elevated);
  color: #cbd5e1;
  border: 1px solid var(--border-strong);
}

.vt-pill.primary {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border-color: rgba(99, 102, 241, 0.3);
}

.vt-actions-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
}

.vt-btn-sm {
  background: var(--bg-elevated);
  color: #e2e8f0;
  border: 1px solid var(--border-strong);
  font-size: 11px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition-fast);
}

.vt-btn-sm:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  color: #fff;
}

.vt-btn-sm.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Structured Typography */
.vt-slide-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  padding: 8px 12px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.08) 100%);
  border-left: 3px solid var(--primary);
  border-radius: 0 6px 6px 0;
}

.vt-heading {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #38bdf8;
  margin-top: 10px;
  margin-bottom: 2px;
}

.vt-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0;
  padding-left: 0;
  list-style: none;
}

.vt-list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: #e2e8f0;
}

.vt-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 7px;
  flex-shrink: 0;
  box-shadow: 0 0 6px var(--primary);
}

.vt-paragraph {
  font-size: 13px;
  line-height: 1.6;
  color: #cbd5e1;
  margin: 4px 0;
}

.vt-term-box {
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.25);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.5;
  color: #e0f2fe;
}

.vt-formula-box {
  background: #090d16;
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 6px;
  padding: 10px 14px;
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 13px;
  color: #38bdf8;
  overflow-x: auto;
  margin: 6px 0;
}

.vt-table-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 10px;
  background: var(--bg-elevated);
  border-radius: 4px;
  font-size: 12px;
  color: #cbd5e1;
}

.vt-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

/* Visual Translation Enhanced View Modes */
.vt-mode-tabs {
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 3px;
  width: 100%;
}

.vt-tab-btn {
  flex: 1;
  background: transparent;
  color: #94a3b8;
  border: none;
  font-size: 11px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.vt-tab-btn:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.05);
}

.vt-tab-btn.active {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.vt-slide-preview-wrap {
  position: relative;
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vt-slide-preview-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.vt-slide-subbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4px 2px;
  flex-wrap: wrap;
  gap: 6px;
}

.vt-badge-group {
  display: inline-flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}

.vt-badge-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.vt-badge-btn:hover {
  color: #fff;
}

.vt-badge-btn.active {
  background: rgba(99, 102, 241, 0.25);
  color: #818cf8;
  font-weight: 600;
}

/* Interactive Curtain (Before / After Comparison) */
.vt-curtain-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  user-select: none;
  touch-action: none;
  cursor: ew-resize;
  background: #000;
}

.vt-curtain-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.vt-curtain-layer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.vt-curtain-after {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 2;
  border-right: 2px solid #818cf8;
}

.vt-curtain-after img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.vt-curtain-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #818cf8;
  z-index: 3;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.6);
}

.vt-curtain-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #818cf8;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  border: 2px solid #fff;
  pointer-events: none;
}

.vt-curtain-badge {
  position: absolute;
  top: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 4;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.vt-curtain-badge.before {
  left: 10px;
  background: rgba(15, 23, 42, 0.75);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.vt-curtain-badge.after {
  right: 10px;
  background: rgba(99, 102, 241, 0.85);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Video Player Projector Overlay */
.video-slide-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.video-slide-overlay img {
  max-width: 96%;
  max-height: 86%;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8);
}

.video-slide-banner {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.video-slide-banner button {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 14px;
  padding: 0 4px;
}

.video-slide-banner button:hover {
  color: #f87171;
}

/* Processing Status Monitor (Clean, Ordered 1-5, No Technical Jargon) */
.pipeline-phase-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pipeline-phase-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.pipeline-phase-item.done {
  border-color: rgba(16, 185, 129, 0.4);
}

.phase-number-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.pipeline-phase-item.done .phase-number-badge {
  background: var(--success);
  color: #fff;
}

.phase-content {
  flex: 1;
}

.phase-content h4 {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

.phase-content p {
  font-size: 12px;
  color: var(--text-muted);
}

.phase-status-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--success);
  background: rgba(16, 185, 129, 0.12);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
}

.pipeline-phase-item.active {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.08);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.15);
}

.pipeline-phase-item.active .phase-number-badge {
  background: var(--primary);
  color: #fff;
  animation: phasePulse 1.5s infinite;
}

@keyframes phasePulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.5); }
  70% { transform: scale(1.06); box-shadow: 0 0 0 8px rgba(99, 102, 241, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

.pipeline-phase-item.active .phase-status-tag {
  color: var(--primary);
  background: rgba(99, 102, 241, 0.15);
}

.success-final-item {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.06);
  display: none;
  align-items: center;
}

.success-final-item.visible {
  display: flex !important;
}

.card-user-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.35);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ─────────────────────────────────────────────────────────────
   BOTTOM SECTION: LIBRARY OF LECTURES
   ───────────────────────────────────────────────────────────── */
.library-section {
  margin-top: 36px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
}

.section-header {
  margin-bottom: 18px;
}

.section-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-header p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.lecture-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.lecture-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.lecture-card.active {
  border-color: var(--primary);
  box-shadow: 0 0 16px var(--primary-glow);
}

.card-thumb-wrap {
  aspect-ratio: 16 / 9;
  background: #111;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-thumb-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 10px;
}

.card-lang-badge {
  font-size: 11px;
  font-weight: 700;
  background: var(--primary);
  color: #fff;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.card-duration {
  font-family: var(--font-mono);
  font-size: 11px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: auto;
}

.card-delete-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
  backdrop-filter: blur(4px);
}

.lecture-card:hover .card-delete-btn {
  opacity: 1;
  transform: scale(1);
}

.card-delete-btn:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
  transform: scale(1.08);
}

.btn-danger-action {
  background: #ef4444;
  border: 1px solid #dc2626;
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-danger-action:hover {
  background: #dc2626;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.45);
}

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

.card-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
}

.download-badge-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.2s ease;
  letter-spacing: 0.5px;
}

.download-badge-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 12px var(--primary-glow);
  transform: translateY(-1px);
}

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

/* ─────────────────────────────────────────────────────────────
   MODAL DIALOG: UPLOAD
   ───────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  pointer-events: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.show {
  display: flex !important;
  pointer-events: auto !important;
}

.modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  max-width: 540px;
  width: 100%;
  padding: 28px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8);
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 18px;
}

.drop-zone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
}

.drop-zone svg {
  width: 44px;
  height: 44px;
  color: var(--primary);
}

.drop-zone h3 {
  font-size: 16px;
  color: #fff;
}

.drop-zone p {
  font-size: 12px;
  color: var(--text-muted);
}

/* Responsive Rules */
@media (max-width: 1100px) {
  .studio-grid {
    grid-template-columns: 1fr;
  }
  .workbench-console {
    height: 500px;
  }
}

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

/* ======================================================================
   Fullscreen Slide Zoom Lightbox Modal
   ====================================================================== */
.slide-zoom-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-zoom-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 14, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
}

.slide-zoom-dialog {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: min(96vw, 1500px);
  max-height: 96vh;
  background: rgba(16, 18, 29, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85), 0 0 40px rgba(99, 102, 241, 0.18);
  overflow: hidden;
}

.slide-zoom-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 20px;
  background: rgba(22, 25, 40, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.slide-zoom-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.slide-zoom-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slide-zoom-modes {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.25);
  padding: 3px 6px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

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

.slide-zoom-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.slide-zoom-close:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
  color: #f87171;
  transform: scale(1.05);
}

.slide-zoom-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: auto;
  background: radial-gradient(circle at center, rgba(30, 35, 55, 0.3) 0%, rgba(10, 12, 20, 0.8) 100%);
}

.slide-zoom-body img {
  max-width: 100%;
  max-height: calc(96vh - 80px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  user-select: none;
}

.vt-slide-preview-wrap {
  cursor: zoom-in;
}

@keyframes fadeInModal {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ─────────────────────────────────────────────────────────────
   SHOWCASE LIBRARY, AUTH MODAL & QUEUE BADGES (v2.5)
   ───────────────────────────────────────────────────────────── */
.library-filter-tabs {
  display: flex;
  gap: 10px;
}

.lib-tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
}

.lib-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: var(--border-strong);
}

.lib-tab-btn.active {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.2);
}

.card-showcase-tag {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.2), rgba(245, 158, 11, 0.3));
  color: #fde047;
  border: 1px solid rgba(234, 179, 8, 0.4);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tab-badge-dev {
  font-size: 10px;
  font-weight: 700;
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 6px;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.visual-dev-banner {
  background: rgba(234, 179, 8, 0.08);
  border: 1px solid rgba(234, 179, 8, 0.25);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  text-align: left;
}

.auth-tab-btn {
  transition: var(--transition-fast);
  font-family: inherit;
}

.auth-tab-btn.active {
  background: rgba(99, 102, 241, 0.15) !important;
  color: var(--primary) !important;
}

.user-menu-dropdown {
  animation: fadeInModal 0.15s ease-out;
}

.queue-badge-pulse {
  animation: pulseQueue 1.8s infinite;
}

@keyframes pulseQueue {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

