/* ==============================================================================
   CLOUDRAT STUDIO — PREMIUM LUXURY MONOCHROME DESIGN SYSTEM
   Design Intel: ui_ux_pro_max | Style: Premium Luxury | Palette: Obsidian Monochrome
   Layout: Balanced Hierarchy | Motion: Expressive Spring Easing
   ============================================================================== */
:root {
  color-scheme: dark;
  /* Obsidian Monochrome Palette */
  --bg-app: #050507;
  --bg-canvas: #050507;
  --bg-topbar: #050507;
  --bg-sidebar: #050507;
  --surface-primary: #0F1015;
  --surface-secondary: #14151C;
  --surface-hover: #191B24;
  --surface-active: #222532;
  --surface-elevated: #161722;
  --surface-glass: rgba(255, 255, 255, 0.035);
  --surface-glass-hover: rgba(255, 255, 255, 0.065);
  
  /* Text Contrast Hierarchy */
  --text-primary: #F8F9FA;
  --text-secondary: #A0A2B0;
  --text-muted: #6B6D7C;
  --text-subtle: #4D4F5C;
  
  /* Hairline Borders & Edge Highlights */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-light: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.18);
  --border-focus: rgba(255, 255, 255, 0.38);
  
  /* Buttons & High-Contrast CTAs */
  --btn-primary-bg: #FFFFFF;
  --btn-primary-text: #050507;
  --btn-primary-hover: #E8E9ED;
  --btn-primary-active: #D4D6DC;
  
  /* Accents */
  --accent-white: #FFFFFF;
  --accent-silver: #D1D5DB;
  --accent-platinum: #E5E7EB;
  --accent-red-brand: #FF1A35;

  /* Status Indicators (Subtle & High Contrast) */
  --accent-green: #10B981;
  --accent-green-bg: rgba(16, 185, 129, 0.12);
  --accent-green-border: rgba(16, 185, 129, 0.35);
  --accent-green-text: #34D399;

  --accent-yellow: #F59E0B;
  --accent-yellow-bg: rgba(245, 158, 11, 0.12);
  --accent-yellow-border: rgba(245, 158, 11, 0.35);
  --accent-yellow-text: #FBBF24;

  --accent-red: #F43F5E;
  --accent-red-bg: rgba(244, 63, 94, 0.12);
  --accent-red-border: rgba(244, 63, 94, 0.35);
  --accent-red-text: #FB7185;

  /* Typography Stacks */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;

  /* Expressive Motion Easing & Durations */
  --ease-expressive: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;

  /* Layered Luxury Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.65);

  /* Rounded Corners (Roblox UICorner Tokens) */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
}

html {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  background-color: var(--bg-app);
  overflow: hidden;
}

body {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  background-color: var(--bg-app);
  color: var(--text-primary);
  overflow: hidden;
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbars — Deep Obsidian Black Theme */
html, body, * {
  scrollbar-color: rgba(255, 255, 255, 0.22) #000000;
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 7px;
  height: 7px;
  background: #000000;
}
::-webkit-scrollbar-track {
  background: #000000 !important;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22) !important;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.38) !important;
}
::-webkit-scrollbar-corner {
  background: #000000 !important;
}
::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* ==============================================================================
   LAYOUT PRIMITIVES (STANDALONE WEB APPLICATION MODE)
   ============================================================================== */
.app-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  background-color: var(--bg-app);
  box-sizing: border-box;
}

/* ==============================================================================
   BRAND INLINE (IN TOP HEADER)
   ============================================================================== */
.brand-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-inline .brand-logo {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  object-fit: contain;
}

.brand-inline .brand-meta {
  display: flex;
  flex-direction: column;
}

.brand-inline .brand-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.2px;
  line-height: 1.1;
}

.brand-inline .brand-tag {
  font-size: 8px;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.6px;
}

.header-divider {
  width: 1px;
  height: 18px;
  background: var(--border-subtle);
  margin: 0 10px;
}

/* ==============================================================================
   BOTTOM NAVIGATION DOCK (BOTTOM MENU GESER)
   ============================================================================== */
.bottom-nav-dock {
  flex-shrink: 0;
  width: 100%;
  background: #0b0c10;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 12px;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
  user-select: none;
}

.bottom-nav-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  justify-content: space-around;
  padding: 2px 4px;
}

.bottom-nav-scroll::-webkit-scrollbar {
  display: none;
}

.bottom-nav-dock .nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

.bottom-nav-dock .nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.bottom-nav-dock .nav-item.active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.bottom-nav-dock .nav-item .nav-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

@media (min-width: 900px) {
  .bottom-nav-dock {
    display: none;
  }
}

/* ==============================================================================
   MAIN CONTENT & HEADER
   ============================================================================== */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-app);
  overflow: hidden;
}

.app-header {
  height: 52px;
  background-color: rgba(8, 9, 11, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  flex-shrink: 0;
  z-index: 50;
}

@media (min-width: 900px) {
  .app-header {
    padding: 0 32px;
  }
}

.top-nav-tabs {
  display: none;
  align-items: center;
  gap: 4px;
  background: rgba(16, 17, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 4px;
  border-radius: 8px;
}

@media (min-width: 768px) {
  .top-nav-tabs {
    display: flex;
  }
}

.top-nav-tabs .nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.top-nav-tabs .nav-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.top-nav-tabs .nav-tab.active {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.top-nav-tabs .nav-tab svg {
  width: 13px;
  height: 13px;
}

.header-left {
  display: flex;
  align-items: center;
}

.view-indicator-text {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: -0.2px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px;
  border-radius: 17px;
  font-size: 11.5px;
  font-weight: 500;
  font-family: var(--font-sans);
  background: #08090C;
  border: 1px solid var(--border-medium);
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.2s var(--ease-expressive);
  user-select: none;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-online, .status-approved {
  background: #08090C;
  border-color: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.status-online .status-dot, .status-approved .status-dot {
  background-color: #10B981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
  animation: pulseStatusDot 2.5s infinite var(--ease-smooth);
}

@keyframes pulseStatusDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(1.15); }
}

.status-warning, .status-review {
  background: #08090C;
  border-color: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.status-warning .status-dot, .status-review .status-dot {
  background-color: #F59E0B;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

.status-offline, .status-rejected {
  background: #08090C;
  border-color: rgba(255, 255, 255, 0.12);
  color: #E2E2E8;
}

.status-offline .status-dot, .status-rejected .status-dot {
  background-color: #EF4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

.icon-btn {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.icon-btn:hover {
  background: var(--surface-hover);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

.icon-btn svg {
  width: 13px;
  height: 13px;
}

/* Alert Banner */
.alert-banner {
  padding: 6px 14px;
  font-size: 10.5px;
  background: var(--accent-yellow-bg);
  border-bottom: 1px solid var(--accent-yellow-border);
  color: var(--accent-yellow-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--accent-yellow);
}

/* Scrollable Workspace Container */
.workspace-scrollable {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
}

@media (min-width: 900px) {
  .workspace-scrollable {
    padding: 24px 32px 36px;
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
  }
}

/* ==============================================================================
   MULTI-PAGE VIEWS
   ============================================================================== */
.page-view {
  display: none;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 100%;
  box-sizing: border-box;
  animation: pageFadeIn 0.15s ease-out;
}

.page-view.active {
  display: flex;
}

#page-home {
  flex: 1;
  display: none;
  flex-direction: column;
  min-height: 100%;
}

#page-home.active {
  display: flex;
}

#page-home .card-hero {
  flex-shrink: 0;
}

#page-home .preset-compact-card {
  flex-shrink: 0;
}

#page-home .recent-preview-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 150px;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Page Typography */
.page-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-header-split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.page-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.eyebrow {
  font-size: 8.5px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* Common Card Base */
.card {
  background: var(--surface-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 11px 13px;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.card-title-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-icon {
  width: 13px;
  height: 13px;
  color: var(--text-secondary);
}

.section-subheading {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.count-badge {
  font-size: 9px;
  font-weight: 700;
  background: var(--surface-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 1px 6px;
  border-radius: 6px;
}

/* ==============================================================================
   PAGE 1: HOME WORKSPACE SPECIFIC STYLES
   ============================================================================== */
.card-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(170px, 0.75fr);
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
}

.hero-left {
  display: flex;
  flex-direction: column;
}

.hero-heading {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 1px;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.input-bar-group {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.input-with-icon {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.field-icon {
  position: absolute;
  left: 9px;
  width: 13px;
  height: 13px;
  color: var(--text-muted);
  pointer-events: none;
}

.input-field {
  width: 100%;
  height: 30px;
  background: #090B0E;
  border: 1px solid var(--border-subtle);
  border-radius: 5px;
  padding: 0 10px 0 28px;
  color: var(--text-primary);
  font-size: 11px;
  outline: none;
  transition: border-color 0.15s ease;
}

.input-field:focus {
  border-color: var(--border-focus);
}

.btn-primary-pill {
  height: 30px;
  padding: 0 13px;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: none;
  border-radius: 15px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-primary-pill:hover:not(:disabled) {
  background: var(--btn-primary-hover);
}

.btn-primary-pill:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-play-icon {
  width: 9px;
  height: 9px;
}

.action-sub-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-ghost-pill {
  height: 23px;
  padding: 0 8px;
  background: var(--surface-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  font-size: 9.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-ghost-pill:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-refresh-icon {
  width: 9px;
  height: 9px;
}

.video-chip {
  font-size: 9.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.hero-visual-img {
  max-width: 100%;
  max-height: 125px;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.6));
  user-select: none;
}

/* Progress & Result Box */
.progress-box {
  margin-top: 8px;
  background: var(--surface-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 5px;
  padding: 6px 9px;
}

.progress-info-row {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.progress-track {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: #FFFFFF;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.result-card {
  margin-top: 8px;
  background: #090B0E;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 8px 10px;
}

.result-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 5px;
}

.result-song-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

.result-meta-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 2px;
}

.mono-id {
  font-family: monospace;
  color: var(--text-primary);
}

.mono-speed {
  color: #FFFFFF;
  font-family: monospace;
}

.creator-hub-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 9px;
}

.creator-hub-link:hover {
  text-decoration: underline;
  color: #fff;
}

.result-lua-wrapper {
  margin-top: 5px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 5px;
}

.result-lua-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.btn-copy-sm {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 8.5px;
  cursor: pointer;
  transition: all 0.12s ease;
}

.btn-copy-sm:hover {
  color: #fff;
  border-color: var(--border-strong);
}

.mono-code-textarea {
  width: 100%;
  background: #07080A;
  border: 1px solid var(--border-subtle);
  border-radius: 5px;
  color: #E2E8F0;
  font-family: Consolas, 'Fira Code', Menlo, Monaco, monospace;
  font-size: 9.5px;
  line-height: 1.35;
  padding: 5px 7px;
  outline: none;
  resize: vertical;
}

/* Preset Compact Card */
.preset-compact-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  gap: 10px;
}

.preset-compact-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.preset-pill-item {
  display: flex;
  flex-direction: column;
}

.preset-label {
  font-size: 8px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.preset-val {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-primary);
}

.preset-divider {
  width: 1px;
  height: 16px;
  background: var(--border-subtle);
}

.btn-sm {
  height: 22px;
  padding: 0 7px;
  font-size: 9px;
}

/* Recent Previews Card */
/* Recent Previews Card (Scrollable Home History) */
.recent-preview-card {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 150px;
  padding: 10px 12px;
  box-sizing: border-box;
}

.recent-preview-card .card-title-row {
  flex: 0 0 auto;
  margin-bottom: 8px;
}

.btn-link-action {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease;
}

.btn-link-action:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.recent-mini-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-height: 70px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  scrollbar-width: thin;
}

.recent-mini-list .history-empty-state {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 11px;
  padding: 18px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px dashed rgba(255, 255, 255, 0.05);
}

.recent-mini-list::-webkit-scrollbar {
  width: 4px;
}

.recent-mini-list::-webkit-scrollbar-track {
  background: transparent;
}

.recent-mini-list::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 4px;
}

.recent-mini-list::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

.home-recent-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0C0E12;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 6px 8px;
  flex-shrink: 0;
  transition: all 0.12s ease;
}

.home-recent-item:hover {
  background: var(--surface-secondary);
  border-color: var(--border-strong);
}

.home-recent-icon {
  width: 22px;
  height: 22px;
  background: var(--surface-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.home-recent-icon svg {
  width: 12px;
  height: 12px;
}

.home-recent-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.home-recent-title {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: default;
}

.home-recent-id {
  font-size: 8.5px;
  color: var(--text-muted);
  font-family: monospace;
}

.home-recent-item .entry-status-badge {
  flex-shrink: 0;
  margin-left: 8px;
}

/* ==============================================================================
   PAGE: YOUTUBE BROWSER & DISCOVER
   ============================================================================== */
.yt-red-icon {
  color: #FF0000;
  transition: transform 0.15s ease;
}

.bottom-nav-dock .nav-item.active .yt-red-icon {
  color: #FF3333;
  filter: drop-shadow(0 0 6px rgba(255, 0, 0, 0.5));
}

#page-youtube {
  flex: 1;
  display: none;
  flex-direction: column;
  min-height: 100%;
  gap: 10px;
}

#page-youtube.active {
  display: flex;
}

/* YouTube Search Bar (Exact Authentic Compound Pill) */
.yt-header-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 4px 0 2px;
  flex-shrink: 0;
}

.yt-search-container {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 580px;
  height: 38px;
  position: relative;
}

/* Input Box Left Pill */
.yt-search-field-box {
  flex: 1;
  display: flex;
  align-items: center;
  background: #121212;
  border: 1px solid #303030;
  border-right: none;
  border-radius: 40px 0 0 40px;
  padding: 0 14px;
  position: relative;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.yt-search-field-box:focus-within {
  border-color: #3EA6FF;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

.yt-search-field {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #F1F1F1;
  font-size: 13px;
  font-family: inherit;
  font-weight: 400;
  height: 100%;
}

.yt-search-field::placeholder {
  color: #888888;
  font-weight: 400;
}

.yt-clear-btn {
  background: transparent;
  border: none;
  color: #AAAAAA;
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: color 0.15s ease;
}

.yt-clear-btn:hover {
  color: #FFFFFF;
}

/* Submit Button Attached Right Pill */
.yt-search-submit-btn {
  width: 54px;
  background: #222222;
  border: 1px solid #303030;
  border-radius: 0 40px 40px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F1F1F1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  flex-shrink: 0;
  padding: 0;
}

.yt-search-submit-btn:hover {
  background: #272727;
  border-color: #383838;
}

.yt-search-submit-btn:active {
  background: #1E1E1E;
}

.yt-search-submit-btn svg {
  width: 17px;
  height: 17px;
  color: #F1F1F1;
}

/* Category Filter Chips (Authentic YouTube 8px Rounded Rectangles) */
.yt-chips-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 0 6px;
  flex-shrink: 0;
  scrollbar-width: none;
}

.yt-chips-scroll::-webkit-scrollbar {
  display: none;
}

.yt-chip {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 8px;
  color: #F1F1F1;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
  font-family: inherit;
}

.yt-chip:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

.yt-chip:active {
  transform: scale(0.97);
}

.yt-chip.active {
  background: #FFFFFF;
  color: #0F0F0F;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.yt-chip.active:hover {
  background: #F2F2F2;
  color: #0F0F0F;
}

/* YouTube Cards Container */
.yt-cards-container {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
}

.yt-loading-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 11px;
}

.yt-spinner {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: ytSpin 0.7s linear infinite;
}

@keyframes ytSpin {
  to { transform: rotate(360deg); }
}

/* Video Grid */
.yt-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
  padding-bottom: 24px;
}

.yt-video-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.015) 100%), rgba(14, 16, 23, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-shadow: 0 10px 30px -4px rgba(0, 0, 0, 0.45), inset 0 1px 0 0 rgba(255, 255, 255, 0.16);
}

.yt-video-card:hover {
  border-color: rgba(255, 0, 0, 0.45);
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%), rgba(18, 20, 28, 0.78);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.65), 0 0 24px -2px rgba(255, 0, 0, 0.22), inset 0 1px 0 0 rgba(255, 255, 255, 0.25);
}

/* Thumbnail Wrap */
.yt-thumb-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  background: #161920;
  overflow: hidden;
}

.yt-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.yt-video-card:hover .yt-thumb-img {
  transform: scale(1.03);
}

.yt-duration-badge {
  position: absolute;
  right: 6px;
  bottom: 6px;
  background: rgba(0, 0, 0, 0.85);
  color: #FFFFFF;
  font-size: 8.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  font-family: monospace;
  letter-spacing: 0.2px;
}

/* Info Wrap */
.yt-info-wrap {
  padding: 8px 10px 6px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.yt-video-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.yt-channel-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  color: var(--text-muted);
}

.yt-verified-icon {
  width: 10px;
  height: 10px;
  color: var(--text-muted);
}

.yt-video-views {
  font-size: 8.5px;
  color: #6B7280;
  margin-top: 2px;
}

/* Action Row in Card */
.yt-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-convert-card {
  flex: 1;
  height: 25px;
  background: linear-gradient(135deg, #FFFFFF 0%, #E8E9F0 100%);
  color: #08090B;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 13px;
  font-size: 9.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: all 0.16s ease;
}

.btn-convert-card:hover {
  background: #FFFFFF;
  transform: translateY(-0.5px);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.35);
}

.btn-convert-card svg {
  width: 9px;
  height: 9px;
}

.btn-preview-card {
  width: 25px;
  height: 25px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.16s ease;
}

.btn-preview-card:hover {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-0.5px);
}

.btn-preview-card svg {
  width: 11px;
  height: 11px;
}

.btn-highlight-pulse {
  animation: pulseGlow 1s ease-out;
}

@keyframes pulseGlow {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
  50% { transform: scale(1.05); box-shadow: 0 0 12px 4px rgba(255, 255, 255, 0.4); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* Play Overlay on Video Thumbnail */
.yt-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.18s ease;
  cursor: pointer;
}

.yt-thumb-wrap:hover .yt-play-overlay {
  opacity: 1;
}

.yt-play-btn-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  transform: scale(0.9);
  transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), background 0.15s ease;
}

.yt-thumb-wrap:hover .yt-play-btn-circle {
  transform: scale(1);
}

.yt-play-btn-circle:hover {
  background: #FF0000;
  transform: scale(1.1);
}

.yt-play-btn-circle svg {
  width: 14px;
  height: 14px;
  margin-left: 2px;
}

.btn-watch-card {
  height: 25px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  font-size: 9.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.16s ease;
  white-space: nowrap;
}

.btn-watch-card:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-0.5px);
}

.btn-watch-card svg {
  width: 9px;
  height: 9px;
  color: #FF0000;
}

/* ==============================================================================
   YOUTUBE VIDEO PLAYER MODAL / THEATER
   ============================================================================== */
.yt-player-modal {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.18s ease-out;
}

.yt-player-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.yt-player-dialog {
  position: relative;
  z-index: 1001;
  width: 92%;
  max-width: 680px;
  background: #0E1015;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: dialogScaleUp 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dialogScaleUp {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.yt-player-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #090B0E;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.yt-player-title-box {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  padding-right: 10px;
}

.yt-player-tag {
  font-size: 8px;
  font-weight: 800;
  color: #F43F5E;
  letter-spacing: 0.6px;
}

.yt-player-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yt-player-close-btn {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.12s ease;
  line-height: 1;
}

.yt-player-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

.yt-player-frame-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  position: relative;
}

.yt-player-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.yt-player-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #090B0E;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.yt-player-meta {
  display: flex;
  flex-direction: column;
}

.yt-player-channel {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.yt-player-hint {
  font-size: 8.5px;
  color: var(--text-muted);
}

.yt-player-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==============================================================================
   PAGE 2: AUDIO OPTIMIZER & LOCAL DRAG & DROP
   ============================================================================== */
.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.metric-card {
  background: var(--surface-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.metric-icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  background: var(--surface-secondary);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  flex-shrink: 0;
}

.metric-icon-wrap svg {
  width: 14px;
  height: 14px;
}

.metric-details {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 8.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.metric-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.pill-features-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--surface-primary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 9.5px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 12px;
}

.feature-pill svg {
  width: 10px;
  height: 10px;
}

.feature-pill.active {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.pill-toggle {
  cursor: pointer;
  transition: all 0.15s ease;
}

.pill-toggle:hover {
  background: var(--surface-hover);
  border-color: var(--border-focus);
}

/* Local Dropzone Area */
.card-upload {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 180px;
}

.dropzone-box {
  flex: 1;
  border: 1px dashed var(--border-strong);
  border-radius: 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 14px;
  text-align: center;
  background: rgba(255, 255, 255, 0.01);
  transition: all 0.15s ease;
  cursor: pointer;
  min-height: 120px;
}

.dropzone-box.dragover {
  border-color: #FFFFFF;
  background: rgba(255, 255, 255, 0.04);
}

.dropzone-cloud-icon {
  width: 32px;
  height: 32px;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.dropzone-cloud-icon svg {
  width: 100%;
  height: 100%;
}

.dropzone-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.btn-select-file {
  height: 26px;
  padding: 0 12px;
  font-size: 10.5px;
  margin-bottom: 8px;
}

.dropzone-footer-note {
  font-size: 8.5px;
  color: var(--text-muted);
}

/* ==============================================================================
   PAGE 3: BATCH LUA SCRIPT GENERATOR
   ============================================================================== */
.batch-full-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  flex: 1;
  min-height: 260px;
}

.batch-quick-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.batch-action-left {
  display: flex;
  align-items: center;
  gap: 5px;
}

.batch-count-badge {
  font-size: 10px;
  color: var(--text-secondary);
}

.btn-mini-tag {
  background: var(--surface-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 9.5px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.12s ease;
}

.btn-mini-tag:hover {
  background: var(--surface-hover);
  color: #fff;
  border-color: var(--border-strong);
}

.btn-tag-contrast {
  background: #23272E;
  color: #FFFFFF;
  border-color: var(--border-strong);
}

.btn-tag-green {
  background: var(--accent-green-bg);
  color: var(--accent-green-text);
  border: 1px solid var(--accent-green-border);
}

.btn-tag-green:hover {
  background: rgba(16, 185, 129, 0.25);
  color: #FFFFFF;
}

.batch-config-bar {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 8px;
  background: #090B0E;
  padding: 6px 9px;
  border-radius: 5px;
  border: 1px solid var(--border-subtle);
}

.cfg-col label {
  display: block;
  font-size: 8.5px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.cfg-input, .cfg-select {
  width: 100%;
  background: var(--surface-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 3px 6px;
  color: #fff;
  font-size: 10px;
  outline: none;
}

.batch-full-textarea {
  flex: 1;
  min-height: 150px;
  font-size: 9.5px;
  resize: none;
}

.batch-btn-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ==============================================================================
   PAGE 4: HISTORY & MODERATION REVIEW
   ============================================================================== */
.header-actions-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-delete-ghost {
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0 8px;
  height: 22px;
  color: var(--text-muted);
  font-size: 9px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.btn-delete-ghost:hover {
  color: #FFFFFF;
  border-color: var(--border-strong);
}

.btn-delete-ghost svg {
  width: 10px;
  height: 10px;
}

.history-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9.5px;
  color: var(--text-muted);
  padding: 0 2px;
}

.history-full-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-height: 240px;
  overflow-y: auto;
  padding-right: 2px;
}

.history-empty-state {
  text-align: center;
  padding: 30px 10px;
  color: var(--text-muted);
  font-size: 10.5px;
}

.history-full-list .history-empty-state {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 10px;
  color: var(--text-muted);
  font-size: 11px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px dashed rgba(255, 255, 255, 0.05);
}

.history-entry {
  background: #0C0E12;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 6px 9px;
  display: flex;
  align-items: center;
  gap: 9px;
  transition: all 0.12s ease;
}

.history-entry:hover {
  background: var(--surface-secondary);
  border-color: var(--border-strong);
}

.history-entry.selected {
  border-color: var(--border-focus);
  background: rgba(255, 255, 255, 0.03);
}

.entry-checkbox {
  width: 13px;
  height: 13px;
  accent-color: #FFFFFF;
  cursor: pointer;
  flex-shrink: 0;
}

.entry-thumb {
  width: 26px;
  height: 26px;
  background: #14171D;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.entry-thumb svg {
  width: 12px;
  height: 12px;
}

.entry-body {
  flex: 1;
  min-width: 0;
}

.entry-title {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.entry-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 1px;
}

.entry-id {
  font-family: monospace;
  color: var(--text-secondary);
  cursor: pointer;
}

.entry-id:hover {
  text-decoration: underline;
  color: #fff;
}

.entry-actions-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}

.entry-time {
  font-size: 8px;
  color: var(--text-muted);
}

.entry-status-badge {
  font-size: 8.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.badge-approved {
  background: var(--accent-green-bg);
  color: var(--accent-green-text);
  border: 1px solid var(--accent-green-border);
}

.badge-pending {
  background: var(--accent-yellow-bg);
  color: var(--accent-yellow-text);
  border: 1px solid var(--accent-yellow-border);
}

.badge-rejected {
  background: var(--accent-red-bg);
  color: var(--accent-red-text);
  border: 1px solid var(--accent-red-border);
}

.entry-btn-lua {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 8.5px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.12s ease;
}

.entry-btn-lua:hover {
  background: var(--surface-hover);
  color: #fff;
}

/* ==============================================================================
   PAGE 5: SETTINGS & CREDENTIALS
   ============================================================================== */
.settings-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.settings-card {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.settings-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-primary);
}

.settings-card-header svg {
  width: 13px;
  height: 13px;
  color: var(--text-secondary);
}

.settings-card-header h3 {
  font-size: 11.5px;
  font-weight: 700;
}

.form-group label {
  display: block;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 2px;
}



.settings-footer-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 3px;
}

.save-feedback-text {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ==============================================================================
   CONFIRMATION MODAL & UI NOTIFICATION TOASTS
   ============================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 10, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.15s ease-out;
}

.modal-container {
  background: #151821;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  width: 90%;
  max-width: 340px;
  padding: 18px 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.modal-desc {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-danger {
  background: #ef4444;
  border: 1px solid #dc2626;
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-danger:hover {
  background: #dc2626;
}

.modal-fadeout {
  opacity: 0;
  transition: opacity 0.2s ease-out;
}

.cloudrat-ui-toast-container {
  position: fixed;
  bottom: 14px;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10000;
  pointer-events: none;
}

.ui-toast {
  background: #181c26;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 11px;
  color: #f1f5f9;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
  animation: slideUp 0.18s ease-out;
}

.ui-toast-success {
  border-left: 3px solid #10b981;
}

.ui-toast-error {
  border-left: 3px solid #ef4444;
}

.ui-toast-warning {
  border-left: 3px solid #f59e0b;
}

.ui-toast-info {
  border-left: 3px solid #3b82f6;
}

.ui-toast-fadeout {
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.25s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==============================================================================
   AUTHENTIC YOUTUBE WEB DARK THEME STYLING
   ============================================================================== */
/* ==============================================================================
   AUTHENTIC YOUTUBE WEB DARK THEME STYLING (PREMIUM LUXURY MONOCHROME)
   ============================================================================== */
body.yt-body {
  background-color: var(--bg-canvas) !important;
  color: var(--text-primary) !important;
  font-family: var(--font-sans) !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  min-height: 100dvh !important;
  box-sizing: border-box !important;
}

/* TOPBAR */
.yt-web-topbar {
  height: 58px;
  background: rgba(5, 5, 7, 0.72);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.yt-topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 1 auto;
  max-width: 320px;
  min-width: 0;
  z-index: 2;
}

.yt-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s var(--ease-expressive);
  flex-shrink: 0;
}

.yt-icon-btn:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  transform: scale(1.05);
}

.yt-brand-logo-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  width: 155px;
  min-width: 155px;
  flex-shrink: 0;
}

.yt-brand-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.4px;
  user-select: none;
  display: inline-flex;
  align-items: center;
  transition: opacity 0.2s var(--ease-expressive);
  white-space: nowrap;
}

.yt-brand-youtube-wrap {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  user-select: none;
  transition: opacity 0.2s var(--ease-expressive);
  white-space: nowrap;
}

.yt-brand-youtube-svg {
  display: block;
  width: 90px;
  height: 20px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(255, 0, 0, 0.35));
}

.yt-brand-play-badge {
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(255, 0, 0, 0.35));
}

.yt-brand-youtube-text {
  font-family: "YouTube Sans", "Roboto", var(--font-display), -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 19px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.55px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  user-select: none;
  white-space: nowrap;
}

.yt-brand-logo-group:hover .yt-brand-title,
.yt-brand-logo-group:hover .yt-brand-youtube-wrap {
  opacity: 0.85;
}

/* SEARCH AREA */
.yt-topbar-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  min-width: 0;
  z-index: 1;
}

.yt-search-form {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 680px;
  height: 40px;
}

.yt-search-input-box {
  flex: 1;
  display: flex;
  align-items: center;
  background-color: #08090C;
  border: 1px solid var(--border-light);
  border-right: none;
  border-radius: 20px 0 0 20px;
  padding: 0 16px;
  position: relative;
  transition: all 0.25s var(--ease-expressive);
  min-width: 0;
}

.yt-search-input-box:focus-within {
  border-color: rgba(255, 255, 255, 0.35);
  background-color: #0B0D12;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.yt-search-input-field {
  flex: 1;
  width: 100%;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #FFFFFF;
  font-size: 13.5px;
  font-family: var(--font-sans);
  font-weight: 400;
}

.yt-search-input-field::placeholder {
  color: var(--text-muted);
}

.yt-search-submit {
  width: 60px;
  background-color: #12131A;
  border: 1px solid var(--border-light);
  border-radius: 0 20px 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s var(--ease-expressive);
  flex-shrink: 0;
}

.yt-search-submit:hover {
  background-color: #1A1C26;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.25);
}

.yt-mic-btn {
  display: none;
}

/* TOPBAR RIGHT */
.yt-topbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 1 auto;
  min-width: 0;
  margin-left: auto;
  z-index: 2;
}

/* AUTHENTICATION CONTROLS (TOPBAR RIGHT) */
.yt-auth-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.yt-btn-auth {
  height: 34px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #08090C;
  border: 1px solid var(--border-medium);
  border-radius: 17px;
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease-expressive);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  user-select: none;
}

.yt-btn-auth:hover {
  background: #11131A;
  border-color: rgba(255, 255, 255, 0.32);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.yt-btn-auth:active {
  transform: translateY(0);
}

.yt-btn-discord .auth-icon {
  color: #5865F2;
}

/* USER PROFILE & DROPDOWN */
.yt-auth-user-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.yt-user-profile-btn,
.yt-user-avatar-btn {
  height: 36px;
  padding: 0 10px 0 4px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.7);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: all 0.2s var(--ease-expressive);
  user-select: none;
}

.yt-user-profile-btn:hover,
.yt-user-avatar-btn:hover {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(30, 41, 59, 0.85);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.15);
  transform: translateY(-1px);
}

.user-chip-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #3b82f6);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(14, 165, 233, 0.4);
}

.user-chip-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.user-chip-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  text-align: left;
}

.user-chip-name {
  font-size: 11.5px;
  font-weight: 600;
  color: #F8FAFC;
  max-width: 90px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-chip-badge {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #38BDF8;
}

.user-chip-chevron {
  width: 12px;
  height: 12px;
  color: #94A3B8;
  transition: transform 0.2s ease;
}

.yt-user-profile-btn:hover .user-chip-chevron {
  color: #FFFFFF;
}

/* SIDEBAR AUTH & PROFILE DOCK (PREMIUM GLASS CARD) */
.sidebar-auth-dock {
  margin: 6px 2px 4px;
  width: calc(100% - 4px);
  box-sizing: border-box;
  padding: 10px 12px;
  background: linear-gradient(165deg, rgba(17, 24, 39, 0.95) 0%, rgba(9, 13, 22, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.sidebar-auth-dock:hover {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.sidebar-auth-guest {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-auth-guest-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-auth-lock-icon {
  width: 16px;
  height: 16px;
  color: #F59E0B;
  flex-shrink: 0;
}

.sidebar-auth-guest-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.sidebar-auth-guest-title {
  font-size: 11px;
  font-weight: 700;
  color: #F1F5F9;
}

.sidebar-auth-guest-desc {
  font-size: 9.5px;
  color: #94A3B8;
}

.btn-sidebar-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 6px 10px;
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.btn-sidebar-auth:hover {
  background: linear-gradient(135deg, #3B82F6, #2563EB);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.6);
  transform: translateY(-1px);
}

.sidebar-auth-user {
  display: flex;
  align-items: center;
  gap: 9px;
}

.sidebar-user-avatar-wrap {
  flex-shrink: 0;
}

.sidebar-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0EA5E9, #2563EB);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.sidebar-user-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.sidebar-user-details {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  line-height: 1.25;
}

.sidebar-user-name {
  font-size: 12px;
  font-weight: 700;
  color: #F8FAFC;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role-badge {
  font-size: 9px;
  font-weight: 700;
  color: #10B981;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sidebar-btn-switch {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.sidebar-btn-switch:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38BDF8;
}

.yt-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  background: #08090C;
  border: 1px solid var(--border-medium);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.user-dropdown-header {
  padding: 4px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-dropdown-name {
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
}

.user-dropdown-provider {
  font-size: 11px;
  color: var(--text-muted);
}

.user-dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 4px 0;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #E2E8F0;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
  text-align: left;
}

.user-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
}

.user-dropdown-item#btnLogout {
  color: #EF4444;
}

.user-dropdown-item#btnLogout:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #F87171;
}

/* APP LAYOUT */
.yt-layout-container {
  display: flex;
  margin-top: 58px;
  height: calc(100vh - 58px);
  height: calc(100dvh - 58px);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

/* SIDEBAR */
.yt-sidebar-drawer {
  width: 240px;
  height: 100%;
  min-height: calc(100vh - 58px);
  box-sizing: border-box;
  background: rgba(9, 10, 15, 0.72);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 10px 12px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  transition: width 0.25s var(--ease-expressive);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) #000000;
}

.yt-sidebar-drawer::-webkit-scrollbar {
  width: 6px;
  background: #000000;
}

.yt-sidebar-drawer::-webkit-scrollbar-track {
  background: #000000 !important;
}

.yt-sidebar-drawer::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22) !important;
  border-radius: 3px;
}

.yt-sidebar-drawer::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.38) !important;
}

.yt-sidebar-drawer::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.yt-sidebar-drawer.collapsed {
  width: 72px;
  padding: 14px 0 16px;
  align-items: center;
  overflow-x: hidden;
}

.yt-sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-bottom: 8px;
}

.yt-sidebar-item {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s var(--ease-expressive);
  user-select: none;
  white-space: nowrap;
  position: relative;
  outline: none;
}

.yt-sidebar-item:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.4);
  outline-offset: 1px;
}

.yt-sidebar-item:hover {
  background-color: var(--surface-glass-hover);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateX(3px);
}

.yt-sidebar-item.active {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.03) 100%);
  color: #FFFFFF;
  font-weight: 600;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.yt-sidebar-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: #FFFFFF;
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.yt-sidebar-item.active .yt-sidebar-icon {
  color: #FFFFFF;
}

.yt-sidebar-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yt-sidebar-icon svg {
  width: 20px;
  height: 20px;
}

.yt-sidebar-drawer.collapsed .yt-sidebar-section {
  width: 100%;
  align-items: center;
  gap: 8px;
  padding-bottom: 6px;
}

.yt-sidebar-drawer.collapsed .yt-sidebar-item {
  flex-direction: row !important;
  width: 44px;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  padding: 0 !important;
  margin: 0 auto;
  gap: 0;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  position: relative;
  outline: none;
}

/* Hide all text completely in collapsed/minimized sidebar */
.yt-sidebar-drawer.collapsed .yt-sidebar-item span,
.yt-sidebar-drawer.collapsed .yt-sidebar-item .am-item-label,
.yt-sidebar-drawer.collapsed .yt-sidebar-item .yt-output-badge {
  display: none !important;
}

/* Collapsed item hover: soft rounded glass glow, zero rigid box frame */
.yt-sidebar-drawer.collapsed .yt-sidebar-item:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #FFFFFF !important;
  border: none !important;
  box-shadow: none !important;
  transform: scale(1.08) !important;
}

/* Collapsed item active: pure icon luminescence, no rectangular box frame */
.yt-sidebar-drawer.collapsed .yt-sidebar-item.active {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transform: none !important;
}

.yt-sidebar-drawer.collapsed .yt-sidebar-item.active:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  transform: scale(1.08) !important;
}

/* Remove side indicator pill pinned to former box frame */
.yt-sidebar-drawer.collapsed .yt-sidebar-item.active::before {
  display: none !important;
}

/* Default active icon illumination */
.yt-sidebar-drawer.collapsed .yt-sidebar-item.active .yt-sidebar-icon {
  color: #FFFFFF !important;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.55));
}

.yt-sidebar-drawer.collapsed .yt-sidebar-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  transition: transform 0.2s var(--ease-expressive), filter 0.2s ease, color 0.2s ease;
}

.yt-sidebar-drawer.collapsed .yt-sidebar-icon svg {
  width: 22px;
  height: 22px;
}

.yt-sidebar-drawer.collapsed .yt-sidebar-icon-youtube svg {
  width: 22px;
  height: 15.7px;
}

.yt-sidebar-drawer.collapsed .yt-sidebar-section-header,
.yt-sidebar-drawer.collapsed .yt-sidebar-divider,
.yt-sidebar-drawer.collapsed .yt-sidebar-footer,
.yt-sidebar-drawer.collapsed .yt-hide-collapsed {
  display: none !important;
}

.yt-sidebar-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.06);
  margin: 10px 10px;
  border: none;
  flex-shrink: 0;
}

.yt-sidebar-section-header {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted, #71717A);
  padding: 8px 10px 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease;
  white-space: nowrap !important;
}

.yt-sidebar-section-header:hover {
  color: var(--text-secondary, #A1A1AA);
}

.yt-sidebar-section-header svg {
  width: 13px;
  height: 13px;
  opacity: 0.7;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, color 0.2s ease;
}

.yt-sidebar-section-header:hover svg {
  transform: translateX(2px);
  opacity: 1;
  color: #60A5FA;
}

.yt-sidebar-footer {
  margin-top: auto !important;
  padding: 16px 12px 10px;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
  flex-shrink: 0;
}

.yt-sidebar-footer a {
  color: var(--text-secondary);
  text-decoration: none;
  margin-right: 6px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.yt-sidebar-footer a:hover {
  color: #FFFFFF;
}

/* MAIN VIEWPORT */
.yt-main-viewport {
  flex: 1;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background-color: var(--bg-canvas);
  display: flex;
  flex-direction: column;
}

/* STICKY CHIPS BAR (BORDERLESS FLOATING ROW - FIXED HEIGHT) */
.yt-chips-sticky-bar {
  position: sticky;
  top: 0;
  background: rgba(5, 5, 7, 0.72);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  z-index: 100;
  padding: 11px 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  flex-shrink: 0;
  min-height: 56px;
  height: 56px;
  box-sizing: border-box;
  scrollbar-width: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.yt-chips-sticky-bar::-webkit-scrollbar {
  display: none;
}

.yt-chip-pill {
  height: 34px;
  min-height: 34px;
  max-height: 34px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border-radius: 17px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s var(--ease-expressive);
  user-select: none;
}

.yt-chip-pill:hover {
  background-color: rgba(255, 255, 255, 0.09);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.yt-chip-pill.active {
  background-color: #FFFFFF;
  color: #050507;
  font-weight: 700;
  border-color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
  transform: none;
}

.yt-chip-pill.yt-chip-shuffle {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  margin-left: 4px;
  cursor: pointer;
  transition: all 0.2s var(--ease-expressive);
}

.yt-chip-pill.yt-chip-shuffle:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.yt-chip-pill.yt-chip-shuffle:active {
  transform: scale(0.96);
}

/* VIDEO GRID CONTAINER */
.yt-feed-container {
  padding: 16px 24px 48px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.yt-video-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 18px;
  padding: 16px 28px 48px;
}

@media (max-width: 1200px) {
  .yt-video-grid-3col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 740px) {
  .yt-video-grid-3col {
    grid-template-columns: 1fr;
  }
}

/* ==============================================================================
   AUDIO & VIDEO FEED CARDS (PREMIUM LUXURY OBSIDIAN)
   ============================================================================== */
.yt-feed-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.015) 100%), rgba(14, 16, 23, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: 0 10px 30px -4px rgba(0, 0, 0, 0.45), inset 0 1px 0 0 rgba(255, 255, 255, 0.16);
  transition: transform 0.28s var(--ease-expressive),
              box-shadow 0.28s var(--ease-expressive),
              border-color 0.28s var(--ease-expressive),
              background 0.28s var(--ease-expressive);
  overflow: hidden;
}

.yt-feed-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
  opacity: 0;
  transition: opacity 0.28s var(--ease-expressive);
}

.yt-feed-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.25);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.025) 100%), rgba(18, 20, 28, 0.78);
  box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.65), 0 0 20px rgba(255, 255, 255, 0.04), inset 0 1px 0 0 rgba(255, 255, 255, 0.25);
}

.yt-feed-card:hover::before {
  opacity: 1;
}

.yt-card-thumb-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background-color: #0d0e13;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.yt-card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease-expressive), filter 0.45s var(--ease-expressive);
}

.yt-feed-card:hover .yt-card-thumb-img {
  transform: scale(1.01);
  filter: contrast(1.03) brightness(1.02);
}

.yt-card-duration-badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background-color: rgba(5, 5, 7, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  letter-spacing: 0.4px;
}

.yt-card-info-row {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  position: relative;
}

.yt-card-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.yt-card-details {
  flex: 1;
  min-width: 0;
}

.yt-card-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.18s ease;
}

.yt-feed-card:hover .yt-card-title {
  color: #FFFFFF;
}

.yt-card-channel-name {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

.yt-card-meta {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.yt-card-3dots {
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  align-self: flex-start;
  opacity: 0.6;
  transition: all 0.18s ease;
}

.yt-feed-card:hover .yt-card-3dots {
  opacity: 1;
  color: #FFFFFF;
}

.yt-card-3dots:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* CARD ACTION BUTTONS */
.yt-card-action-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.yt-btn-card-action {
  height: 30px;
  padding: 0 14px;
  border-radius: 15px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s var(--ease-expressive);
  white-space: nowrap;
}

.yt-btn-card-action.primary {
  background: #FFFFFF;
  color: #050507;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.12);
}

.yt-btn-card-action.primary:hover {
  background: #EAEAEA;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.22);
}

.yt-btn-card-action.primary:active {
  transform: translateY(0);
}

.yt-btn-card-action.secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.yt-btn-card-action.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-medium);
  transform: translateY(-1.5px);
  color: #FFFFFF;
}

.yt-btn-card-action.secondary:active {
  transform: translateY(0);
}

/* ==============================================================================
   SHORTS SHELF (SFX SOUNDBITES)
   ============================================================================== */
.yt-shorts-shelf {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 12px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 28px;
}

.yt-shorts-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.yt-shorts-logo-svg {
  width: 24px;
  height: 24px;
  color: #FFFFFF;
  filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.25));
}

.yt-shorts-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.3px;
}

.yt-shorts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 960px) {
  .yt-shorts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.yt-short-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 10px;
  transition: transform 0.28s var(--ease-expressive),
              box-shadow 0.28s var(--ease-expressive),
              border-color 0.28s var(--ease-expressive);
}

.yt-short-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--border-focus);
  box-shadow: var(--shadow-card-hover);
}

.yt-short-thumb-wrap {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background-color: #0c0d12;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.yt-short-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-expressive);
}

.yt-short-card:hover .yt-short-thumb-img {
  transform: scale(1.05);
}

.yt-short-title {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yt-short-views {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ==============================================================================
   MODAL WINDOWS (PREMIUM LUXURY OBSIDIAN GLASS)
   ============================================================================== */
.yt-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 3, 5, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: modalFadeIn 0.22s var(--ease-expressive);
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.yt-modal-window {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%), rgba(14, 16, 24, 0.78);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-xl);
  width: 580px;
  max-width: 95vw;
  box-shadow: 0 32px 80px -10px rgba(0, 0, 0, 0.8),
              0 0 0 1px rgba(255, 255, 255, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalSlideUp 0.26s var(--ease-expressive);
}

.yt-modal-wide {
  width: 860px;
}

.yt-modal-converter {
  width: 660px;
}

.yt-modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
}

.yt-modal-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.yt-modal-title-group h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
  letter-spacing: -0.2px;
}

.yt-modal-close {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  transition: all 0.18s var(--ease-expressive);
}

.yt-modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  transform: scale(1.08);
}

.yt-modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.modal-form-group label {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.modal-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.metric-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: all 0.2s var(--ease-expressive);
}

.metric-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-light);
  transform: translateY(-1px);
}

.metric-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 3px 0;
}

.metric-desc {
  font-size: 10px;
  color: var(--text-muted);
}



.batch-options-row {
  display: flex;
  gap: 14px;
}

.batch-actions-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.input-field {
  height: 40px;
  background: #090a0e;
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  padding: 0 14px;
  color: #FFFFFF;
  font-size: 13px;
  font-family: var(--font-sans);
  outline: none;
  transition: all 0.2s var(--ease-expressive);
}

.input-field:focus {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25), 0 0 16px rgba(255, 255, 255, 0.05);
  background: #0C0D12;
}

.btn-primary-pill {
  height: 38px;
  padding: 0 20px;
  background: #FFFFFF;
  color: #050507;
  border: 1px solid transparent;
  border-radius: 19px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.14);
  transition: all 0.2s var(--ease-expressive);
  text-decoration: none;
}

.btn-primary-pill:hover {
  background: #EAEAEA;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.22);
}

.btn-primary-pill:active {
  transform: translateY(0);
}

.btn-ghost-pill {
  height: 36px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s var(--ease-expressive);
  text-decoration: none;
}

.btn-ghost-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-medium);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.btn-ghost-pill.btn-sm {
  height: 30px;
  padding: 0 12px;
  font-size: 11.5px;
  border-radius: 15px;
}

.btn-delete-ghost {
  height: 30px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease-expressive);
}

.btn-delete-ghost:hover {
  background: rgba(255, 60, 60, 0.12);
  border-color: rgba(255, 60, 60, 0.3);
  color: #FF5555;
  transform: translateY(-1px);
}

.count-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  padding: 2px 8px;
  border-radius: 10px;
}

.history-table-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-empty-state {
  padding: 36px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
}

.history-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all 0.2s var(--ease-expressive);
}

.history-item-row:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-light);
  transform: translateX(2px);
}


/* ==============================================================================
   YOUTUBE PLAYER EMBED WINDOW (PREMIUM LUXURY MODAL)
   ============================================================================== */
.yt-player-window {
  background: linear-gradient(180deg, #101117 0%, #08090C 100%);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  width: 880px;
  max-width: 95vw;
  box-shadow: 0 28px 85px rgba(0, 0, 0, 0.95),
              0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modalSlideUp 0.26s var(--ease-expressive);
}

.yt-player-topbar {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
  gap: 12px;
}

.yt-player-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.yt-live-pill {
  background: #ff0000;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
  animation: ytLivePulse 1.4s infinite ease-in-out;
}

.yt-player-title-text {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  color: #FFFFFF;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yt-player-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.yt-player-embed-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.yt-player-embed-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* DIRECT STREAM PLAYER (ZERO-BLOCK FALLBACK) */
.yt-direct-player-wrap {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #08090C;
  overflow: hidden;
  z-index: 5;
}

.yt-direct-backdrop-art {
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background-size: cover;
  background-position: center;
  filter: blur(28px) brightness(0.28);
  opacity: 0.9;
  z-index: 1;
}

.yt-direct-card {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 32px;
  max-width: 620px;
  width: 90%;
  background: rgba(18, 20, 28, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
}

.yt-direct-cover-box {
  width: 110px;
  height: 110px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.yt-direct-cover-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.yt-direct-play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
}

.yt-direct-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.yt-direct-stream-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  padding: 3px 8px;
  border-radius: 12px;
  margin-bottom: 6px;
  width: fit-content;
}

.yt-direct-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yt-direct-channel {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

/* CLICKABLE CHANNEL PROFILE IN MODAL */
.yt-player-channel-card {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 4px 8px;
  margin-left: -8px;
  border-radius: 10px;
  transition: background 0.18s ease;
}

.yt-player-channel-card:hover {
  background: rgba(255, 255, 255, 0.06);
}

.yt-player-channel-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF0055, #7A00FF);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
}

.yt-player-channel-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yt-player-channel-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.yt-player-channel-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.yt-channel-check-svg {
  width: 13px;
  height: 13px;
  color: #8ab4f8;
}

.yt-player-channel-subtext {
  font-size: 11.5px;
  color: #8ab4f8;
  font-weight: 500;
}

.yt-card-live-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #ff0000;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
  z-index: 2;
  animation: ytLivePulse 1.4s infinite ease-in-out;
}

.yt-player-footer {
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  background: rgba(14, 15, 21, 0.9);
}

.yt-player-channel {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
  display: block;
}

.yt-player-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.yt-player-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==============================================================================
   HOME DASHBOARD STYLES (CLOUDRAT STUDIO SAAS REDESIGN)
   Design Intel: ui_ux_pro_max | Style: Premium Obsidian | Bento Layout
   ============================================================================== */
.cr-home-view {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 24px 28px 60px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  overflow: visible;
  flex-shrink: 0;
  min-height: min-content;
}

.cr-home-view::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 15%;
  width: 520px;
  height: 360px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, rgba(168, 85, 247, 0.03) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.cr-home-view::after {
  content: "";
  position: absolute;
  top: 140px;
  right: 12%;
  width: 480px;
  height: 320px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.06) 0%, rgba(99, 102, 241, 0.02) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* 1. Hero Section */
.cr-hero-section {
  background: linear-gradient(165deg, rgba(20, 22, 32, 0.95) 0%, rgba(9, 10, 15, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 30px 32px 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.cr-hero-section::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.07) 0%, rgba(59, 130, 246, 0.04) 50%, transparent 70%);
  pointer-events: none;
}

.cr-hero-header {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.cr-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: 9999px;
  align-self: flex-start;
  backdrop-filter: blur(8px);
}

.cr-hero-badge-img {
  width: auto;
  height: 14px;
  object-fit: contain;
  flex-shrink: 0;
}

.cr-badge-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.8);
}

.cr-badge-text {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--accent-silver);
  text-transform: uppercase;
}

.cr-hero-title {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin: 12px 0 8px;
  max-width: 820px;
}

.cr-hero-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
  max-width: 720px;
}

.cr-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

/* Action Buttons */
.cr-btn {
  height: 38px;
  padding: 0 18px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-sans);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s var(--ease-expressive);
  border: 1px solid transparent;
  user-select: none;
  text-decoration: none;
  outline: none;
}

.cr-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 2px;
}

.cr-btn-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.cr-btn-primary {
  background: #FFFFFF;
  color: #050507;
  border-color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.14);
}

.cr-btn-primary:hover {
  background: #E8E9ED;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.22);
}

.cr-btn-primary:active {
  transform: translateY(0);
}

.cr-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.cr-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.cr-btn-secondary:active {
  transform: translateY(0);
}

.cr-btn-tertiary {
  background: transparent;
  color: var(--text-secondary);
  border-color: rgba(255, 255, 255, 0.08);
}

.cr-btn-tertiary:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.cr-btn-tertiary:active {
  transform: translateY(0);
}

/* Telemetry Strip */
.cr-telemetry-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
}

.cr-telemetry-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cr-telemetry-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-silver);
  flex-shrink: 0;
}

.cr-telemetry-icon svg {
  width: 14px;
  height: 14px;
}

.cr-telemetry-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cr-telemetry-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.7px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.cr-telemetry-val {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 2. Generic Section Layout */
.cr-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.cr-section-header {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cr-section-tag {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.cr-section-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.3px;
  margin: 0;
}

.cr-section-subtitle {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}

/* 3. Grid Systems: Discovery (3 cols) & Tools (2 cols) */
.cr-grid-discovery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 8px 4px;
  margin: -8px -4px;
  overflow: visible !important;
  contain: none !important;
}

.cr-grid-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 8px 4px;
  margin: -8px -4px;
  overflow: visible !important;
  contain: none !important;
}

.cr-bento-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 100%), rgba(14, 16, 23, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg, 16px);
  padding: 18px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 30px -6px rgba(0, 0, 0, 0.45), inset 0 1px 0 0 rgba(255, 255, 255, 0.16);
  outline: none;
}

.cr-bento-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35) 30%, rgba(255, 255, 255, 0.35) 70%, transparent);
  pointer-events: none;
}

.cr-bento-card:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 2px;
}

.cr-bento-card:hover {
  transform: translateY(-4px);
  z-index: 2;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 18px 38px -6px rgba(0, 0, 0, 0.6), inset 0 1px 0 0 rgba(255, 255, 255, 0.25);
}

.cr-card-youtube:hover {
  border-color: rgba(255, 0, 0, 0.4);
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.12) 0%, rgba(255, 255, 255, 0.03) 50%, rgba(14, 16, 23, 0.7) 100%);
  box-shadow: 0 20px 42px -6px rgba(0, 0, 0, 0.65), 0 0 28px -4px rgba(255, 0, 0, 0.22), inset 0 1px 0 0 rgba(255, 255, 255, 0.3);
}

.cr-card-sc:hover {
  border-color: rgba(255, 85, 0, 0.4);
  background: linear-gradient(135deg, rgba(255, 85, 0, 0.12) 0%, rgba(255, 255, 255, 0.03) 50%, rgba(14, 16, 23, 0.7) 100%);
  box-shadow: 0 20px 42px -6px rgba(0, 0, 0, 0.65), 0 0 28px -4px rgba(255, 85, 0, 0.22), inset 0 1px 0 0 rgba(255, 255, 255, 0.3);
}

.cr-card-sp:hover {
  border-color: rgba(29, 185, 84, 0.4);
  background: linear-gradient(135deg, rgba(29, 185, 84, 0.12) 0%, rgba(255, 255, 255, 0.03) 50%, rgba(14, 16, 23, 0.7) 100%);
  box-shadow: 0 20px 42px -6px rgba(0, 0, 0, 0.65), 0 0 28px -4px rgba(29, 185, 84, 0.22), inset 0 1px 0 0 rgba(255, 255, 255, 0.3);
}

.cr-card-bypass:hover {
  border-color: rgba(96, 165, 250, 0.4);
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.12) 0%, rgba(255, 255, 255, 0.03) 50%, rgba(14, 16, 23, 0.7) 100%);
  box-shadow: 0 20px 42px -6px rgba(0, 0, 0, 0.65), 0 0 28px -4px rgba(96, 165, 250, 0.22), inset 0 1px 0 0 rgba(255, 255, 255, 0.3);
}

.cr-card-batch:hover {
  border-color: rgba(192, 132, 252, 0.4);
  background: linear-gradient(135deg, rgba(192, 132, 252, 0.12) 0%, rgba(255, 255, 255, 0.03) 50%, rgba(14, 16, 23, 0.7) 100%);
  box-shadow: 0 20px 42px -6px rgba(0, 0, 0, 0.65), 0 0 28px -4px rgba(192, 132, 252, 0.22), inset 0 1px 0 0 rgba(255, 255, 255, 0.3);
}

.cr-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cr-card-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cr-card-icon-box.cr-icon-clean,
.cr-icon-clean {
  width: auto;
  height: 28px;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
}

.cr-icon-yt,
.cr-icon-sc,
.cr-icon-sp,
.cr-icon-bypass,
.cr-icon-batch {
  background: transparent !important;
  border: none !important;
}

.cr-grid-discovery .cr-bento-card,
.cr-grid-tools .cr-bento-card {
  padding: 18px 20px 16px;
  gap: 12px;
}

.cr-grid-discovery .cr-card-body,
.cr-grid-tools .cr-card-body {
  margin: 4px 0 2px;
}

.cr-card-badge {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 3px 8px;
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.cr-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.cr-card-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
  letter-spacing: -0.2px;
}

.cr-card-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.cr-card-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.cr-tag {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 2px 7px;
  border-radius: 5px;
}

.cr-card-footer {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cr-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-silver);
  transition: all 0.2s var(--ease-expressive);
}

.cr-cta-arrow {
  width: 13px;
  height: 13px;
  transition: transform 0.2s var(--ease-expressive);
}

.cr-bento-card:hover .cr-card-cta {
  color: #FFFFFF;
}

.cr-bento-card:hover .cr-cta-arrow {
  transform: translateX(4px);
}

/* 4. Pipeline Architecture Section */
.cr-pipeline-card {
  background: linear-gradient(165deg, rgba(16, 17, 24, 0.95) 0%, rgba(9, 10, 14, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.cr-pipeline-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.cr-step-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cr-step-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 5px;
  width: fit-content;
  padding: 2px 6px;
}

.cr-step-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
}

.cr-step-desc {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

.cr-step-separator {
  color: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cr-step-separator svg {
  width: 15px;
  height: 15px;
}

/* Pipeline Code Preview Box */
.cr-pipeline-code-preview {
  background: #08090C;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.cr-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.cr-code-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-secondary);
}

.cr-code-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s var(--ease-expressive);
}

.cr-code-copy-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.25);
}

.cr-code-block {
  margin: 0;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.55;
  color: #E2E8F0;
  overflow-x: auto;
}

.cr-code-kw { color: #f43f5e; font-weight: 600; }
.cr-code-fn { color: #60a5fa; }
.cr-code-str { color: #34d399; }
.cr-code-num { color: #fbbf24; }
.cr-code-comment { color: #64748b; font-style: italic; }

/* 5. Developer Control Center / Quick Utilities */
.cr-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.cr-quick-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s var(--ease-expressive);
  outline: none;
}

.cr-quick-card:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 1px;
}

.cr-quick-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.cr-quick-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-silver);
}

.cr-quick-icon svg {
  width: 16px;
  height: 16px;
}

.cr-quick-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.cr-quick-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
}

.cr-quick-desc {
  font-size: 11px;
  color: var(--text-secondary);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cr-quick-arrow {
  color: var(--text-muted);
  font-size: 13px;
  transition: transform 0.2s var(--ease-expressive), color 0.2s;
}

.cr-quick-card:hover .cr-quick-arrow {
  color: #FFFFFF;
  transform: translateX(3px);
}

/* 6. Backward Compatibility Aliases for yt-home-* */
.yt-home-hero { composes: cr-hero-section; }
.yt-home-grid { composes: cr-grid-discovery; }
.yt-home-card { composes: cr-bento-card; }

/* 7. Responsive Breakpoints */
@media (max-width: 1100px) {
  .cr-grid-discovery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .cr-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cr-pipeline-steps {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .cr-step-separator {
    display: none;
  }
}

@media (max-width: 768px) {
  .cr-home-view {
    padding: 16px 14px 40px;
    gap: 20px;
  }
  .cr-hero-section {
    padding: 20px 16px;
  }
  .cr-hero-title {
    font-size: 21px;
  }
  .cr-telemetry-strip {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .cr-grid-discovery,
  .cr-grid-tools {
    grid-template-columns: 1fr;
  }
  .cr-pipeline-steps {
    grid-template-columns: 1fr;
  }
  .cr-quick-grid {
    grid-template-columns: 1fr;
  }
}

/* ==============================================================================
   INTEGRATED ROBLOX AUDIO WORKSTATION HERO (PREMIUM LUXURY OBSIDIAN)
   ============================================================================== */
.yt-roblox-hero-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.015) 100%), rgba(14, 16, 24, 0.65);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 64px -12px rgba(0, 0, 0, 0.65),
              0 0 0 1px rgba(255, 255, 255, 0.06),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.yt-roblox-hero-card::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.yt-hero-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.yt-hero-eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-silver);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.yt-hero-heading {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.4px;
  margin: 0;
}

.yt-hero-subtitle {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 860px;
  margin: 0;
}

.yt-hero-subtitle code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
  color: #FFFFFF;
}

.yt-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.yt-url-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.yt-url-input-wrap .field-icon {
  position: absolute;
  left: 16px;
  width: 17px;
  height: 17px;
  color: var(--text-muted);
  pointer-events: none;
}

.yt-main-url-input {
  width: 100%;
  height: 48px;
  background: #08090C;
  border: 1px solid var(--border-medium);
  border-radius: 24px;
  padding: 0 100px 0 46px;
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 13.5px;
  outline: none;
  transition: all 0.25s var(--ease-expressive);
}

.yt-main-url-input:focus {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25), 0 0 24px rgba(255, 255, 255, 0.05);
  background: #0B0D12;
}

/* Embedded Paste Button Inside URL Input */
.yt-btn-paste-inside {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  height: 34px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 17px;
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s var(--ease-expressive);
}

.yt-btn-paste-inside:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  color: #FFFFFF;
}

.yt-btn-paste-inside:active {
  transform: translateY(-50%) scale(0.96);
}

/* Compact Local Audio Upload Icon Button */
.drop-zone.yt-btn-upload-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #08090C;
  border: 1px solid var(--border-medium);
  border-radius: 24px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.22s var(--ease-expressive);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.drop-zone.yt-btn-upload-icon:hover,
.drop-zone.yt-btn-upload-icon.dragover {
  background: #11131A;
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 12px rgba(255, 255, 255, 0.06);
}

.drop-zone.yt-btn-upload-icon:active {
  transform: translateY(0);
}

.drop-zone.yt-btn-upload-icon .drop-icon {
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
  transition: color 0.2s var(--ease-expressive);
}

.drop-zone.yt-btn-upload-icon:hover .drop-icon {
  color: #FFFFFF;
}

/* Harmonized Convert Button (Senada dengan Text Box) */
.yt-btn-convert-primary {
  height: 48px;
  padding: 0 24px;
  background: #08090C;
  color: #FFFFFF;
  border: 1px solid var(--border-medium);
  border-radius: 24px;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: all 0.22s var(--ease-expressive);
  flex-shrink: 0;
}

.yt-btn-convert-primary:hover:not(:disabled) {
  background: #11131A;
  border-color: rgba(255, 255, 255, 0.35);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 12px rgba(255, 255, 255, 0.06);
}

.yt-btn-convert-primary:active {
  transform: translateY(0);
}

.yt-btn-convert-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.video-chip {
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: 14px;
  max-width: 460px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yt-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 768px) {
  .yt-hero-metrics {
    grid-template-columns: 1fr;
  }
}

.yt-metric-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: all 0.22s var(--ease-expressive);
}

.yt-metric-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.yt-metric-card .label {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.yt-metric-card .value {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.3px;
}

.yt-metric-card .desc {
  font-size: 11.5px;
  color: var(--text-secondary);
}

/* DROPZONE STYLING */
.drop-zone {
  border: 1.5px dashed var(--border-medium);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.22s var(--ease-expressive);
}

.drop-zone:hover, .drop-zone.dragover {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.drop-zone-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 13px;
}

.drop-zone-content .drop-icon {
  color: var(--accent-silver);
}

/* PROGRESS BAR STYLING */
.progress-box {
  background: rgba(8, 9, 12, 0.95);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.progress-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-primary);
  font-weight: 600;
}

.progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #FFFFFF, #B0B0B8);
  border-radius: 3px;
  transition: width 0.3s var(--ease-expressive);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}

/* RESULT CARD STYLING */
.result-card {
  background: rgba(14, 15, 21, 0.95);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  animation: modalSlideUp 0.28s var(--ease-expressive);
}

.result-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.result-title-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.result-song-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
}

.result-meta-tags {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.result-meta-tags .mono-id,
.result-meta-tags .mono-speed {
  font-family: var(--font-mono);
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

.creator-hub-link {
  color: #FFFFFF;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.15s ease;
}

.creator-hub-link:hover {
  color: var(--accent-silver);
}

.result-lua-wrapper {
  background: #060709;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.result-lua-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
}

.btn-copy-sm {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.18s var(--ease-expressive);
}

.btn-copy-sm:hover {
  background: #FFFFFF;
  color: #050507;
  transform: translateY(-1px);
}

.mono-code-textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  color: #E2E2E8;
  resize: none;
}

/* ==============================================================================
   CLOUDRAT SOUND BYPASS — STUDIO WORKSTATION SUITE & BATCH QUEUE
   ============================================================================== */

/* Main Workstation View Container */
.bypass-workstation-view {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding: 20px 24px 64px !important;
  flex-direction: column;
  align-items: stretch;
  min-height: calc(100vh - 70px);
}

.bypass-workstation-view[style*="display: none"] {
  display: none !important;
}

.bypass-workstation-view[style*="display: flex"] {
  display: flex !important;
}

.bp-workstation-container {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
  box-sizing: border-box !important;
}

/* Hero Intake Card */
.bp-hero-card {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 100%), rgba(12, 14, 20, 0.72) !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 18px !important;
  padding: 20px 24px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bp-card-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.bp-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.2px;
}

.bp-badge-icon {
  width: 18px;
  height: 18px;
  color: #60a5fa;
  filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.5));
}

/* Master Intake Row */
.bp-intake-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.bp-url-wrap {
  flex: 1;
  min-width: 240px;
  position: relative;
  display: flex;
  align-items: center;
}

.bp-main-input {
  width: 100%;
  height: 50px;
  background: rgba(8, 10, 16, 0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  border-radius: 14px !important;
  padding: 0 100px 0 46px !important;
  color: #FFFFFF !important;
  font-size: 13.5px !important;
  font-family: var(--font-sans) !important;
  outline: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.45);
}

.bp-main-input:focus {
  border-color: rgba(96, 165, 250, 0.6) !important;
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.45), 0 0 24px rgba(96, 165, 250, 0.15) !important;
  background: rgba(12, 15, 24, 0.96) !important;
}

/* Action Tools (Upload Folder & File Pick) */
.bp-btn-action-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%), rgba(16, 18, 25, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  color: #E2E8F0;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.bp-btn-action-tool:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%), rgba(22, 26, 36, 0.9);
  border-color: rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.bp-btn-action-tool:active {
  transform: translateY(0);
}

#dropZone.bp-btn-action-tool {
  width: auto !important;
  min-width: unset !important;
  height: 50px !important;
  padding: 0 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  border-radius: 14px !important;
}

#dropZone.bp-btn-action-tool svg {
  display: inline-block !important;
  width: 17px !important;
  height: 17px !important;
  margin: 0 !important;
  flex-shrink: 0;
}

#dropZone.bp-btn-action-tool span {
  display: inline-block !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
}

#btnUploadFolder {
  border-color: rgba(96, 165, 250, 0.32);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(255, 255, 255, 0.02) 100%), rgba(16, 20, 30, 0.85);
  color: #93c5fd;
}

#btnUploadFolder:hover {
  border-color: rgba(96, 165, 250, 0.65);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%), rgba(20, 26, 40, 0.95);
  color: #FFFFFF;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.25), 0 6px 20px rgba(0, 0, 0, 0.45);
}

.bp-btn-convert-master {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 26px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
  border: 1px solid rgba(147, 197, 253, 0.4) !important;
  border-radius: 14px !important;
  color: #FFFFFF !important;
  font-family: var(--font-display) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.45) !important;
  white-space: nowrap;
  flex-shrink: 0;
}

.bp-btn-convert-master:hover:not(:disabled) {
  background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.65), 0 0 20px rgba(96, 165, 250, 0.35) !important;
}

.bp-btn-convert-master:active {
  transform: translateY(0);
}

/* ==============================================================================
   BATCH AUDIO QUEUE & CHECKLIST CARD
   ============================================================================== */
.bp-batch-queue-card {
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.012) 100%), rgba(12, 14, 20, 0.82) !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 20px !important;
  padding: 24px 28px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bp-queue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.bp-queue-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bp-queue-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.28);
  color: #60a5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bp-queue-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
  letter-spacing: -0.3px;
}

.bp-queue-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  font-size: 12px;
  color: #94a3b8;
}

.bp-queue-source-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #E2E8F0;
}

.bp-queue-count {
  color: #94a3b8;
}

.bp-queue-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.bp-selected-count-badge {
  font-size: 12px;
  font-weight: 700;
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.28);
  padding: 5px 12px;
  border-radius: 20px;
}

/* Batch Progress Bar */
.bp-batch-progress-box {
  background: rgba(7, 9, 14, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bp-batch-progress-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: #FFFFFF;
  font-weight: 600;
}

/* Scrollable Checklist Table */
.bp-queue-list-wrap {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(6, 8, 12, 0.65);
}

.bp-queue-list-header {
  display: grid;
  grid-template-columns: 52px 42px 1fr 140px 140px 170px 48px;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11.5px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.bp-queue-list {
  max-height: 440px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
}

.bp-queue-list::-webkit-scrollbar {
  width: 6px;
}

.bp-queue-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

.bp-queue-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.bp-queue-row {
  display: grid;
  grid-template-columns: 52px 42px 1fr 140px 140px 170px 48px;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s ease;
}

.bp-queue-row:hover {
  background: rgba(255, 255, 255, 0.035);
}

.bp-queue-row.is-selected {
  background: rgba(59, 130, 246, 0.035);
}

.bp-col-check {
  display: flex;
  align-items: center;
  justify-content: center;
}

.bp-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #3b82f6;
  border-radius: 4px;
}

.bp-col-num {
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
  font-family: var(--font-mono);
}

.bp-col-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding-right: 14px;
}

.bp-track-thumb {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.bp-track-thumb-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  flex-shrink: 0;
}

.bp-track-text-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.bp-track-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bp-track-author {
  font-size: 11.5px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bp-col-dur {
  font-size: 12.5px;
  color: #94a3b8;
  font-family: var(--font-mono);
}

.bp-col-src {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bp-platform-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.bp-platform-badge.yt {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.28);
  color: #f87171;
}

.bp-platform-badge.sc {
  background: rgba(255, 85, 0, 0.12);
  border-color: rgba(255, 85, 0, 0.28);
  color: #fb923c;
}

.bp-platform-badge.sp {
  background: rgba(29, 185, 84, 0.12);
  border-color: rgba(29, 185, 84, 0.28);
  color: #4ade80;
}

.bp-platform-badge.folder {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.28);
  color: #60a5fa;
}

.bp-col-status {
  display: flex;
  align-items: center;
}

.bp-status-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  white-space: nowrap;
}

.bp-status-pill.ready {
  background: rgba(148, 163, 184, 0.1);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.bp-status-pill.processing {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
  animation: pulseGlow 1.5s infinite alternate;
}

.bp-status-pill.done {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.bp-status-pill.error {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.bp-col-act {
  display: flex;
  align-items: center;
  justify-content: center;
}

.bp-btn-remove-track {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.bp-btn-remove-track:hover {
  color: #f87171;
  background: rgba(239, 68, 68, 0.1);
}

/* Queue Footer */
.bp-queue-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.bp-queue-footer-left {
  font-size: 12.5px;
  color: #94a3b8;
}

.bp-queue-footer-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bp-btn-start-batch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border: 1px solid rgba(147, 197, 253, 0.4);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.45);
}

.bp-btn-start-batch:hover:not(:disabled) {
  background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.65);
}

.bp-btn-start-batch:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ==============================================================================
   WORKSTATION EMPTY STATE DECK (Fills Screen Gracefully)
   ============================================================================== */
.bp-empty-deck {
  width: 100% !important;
  max-width: 100% !important;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-sizing: border-box !important;
}

.bp-drop-zone-large {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.008) 100%), rgba(12, 14, 20, 0.65);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 2px dashed rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 60px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  min-height: 320px;
}

.bp-drop-zone-large:hover,
.bp-drop-zone-large.dragover {
  border-color: rgba(96, 165, 250, 0.65);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%), rgba(14, 18, 28, 0.85);
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(59, 130, 246, 0.2);
}

.bp-drop-icon-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.bp-drop-icon-bubble {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.16) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #60a5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.bp-drop-icon-bubble.bp-drop-icon-audio {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.16) 0%, rgba(255, 255, 255, 0.03) 100%);
  border-color: rgba(168, 85, 247, 0.35);
  color: #c084fc;
}

.bp-drop-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 8px;
  letter-spacing: -0.3px;
}

.bp-drop-desc {
  font-size: 13.5px;
  color: #94a3b8;
  max-width: 620px;
  margin: 0 0 22px;
  line-height: 1.6;
}

.bp-drop-btn-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.bp-drop-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 13.5px;
  font-weight: 600;
}

.bp-drop-ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 600;
}

/* Tablet & Mobile responsive adaptations for Batch Queue & Workstation */
@media (max-width: 1024px) {
  .bp-queue-list-header,
  .bp-queue-row {
    grid-template-columns: 46px 36px 1fr 110px 130px 40px;
  }
  .bp-col-src {
    display: none;
  }
}

@media (max-width: 768px) {
  .bypass-workstation-view {
    padding: 14px 14px 48px !important;
  }
  .bp-intake-row {
    flex-direction: column;
    align-items: stretch;
  }
  .bp-btn-action-tool,
  .bp-btn-convert-master {
    width: 100%;
    justify-content: center;
  }
  .bp-queue-list-header,
  .bp-queue-row {
    grid-template-columns: 40px 1fr 90px 36px;
  }
  .bp-col-num,
  .bp-col-dur,
  .bp-col-src {
    display: none;
  }
}

/* AUDIO FEED SECTION HEADERS */
.yt-feed-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  margin-top: 2px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 12px;
}

.yt-feed-filter-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.yt-feed-tab-btn {
  background: transparent;
  border: none;
  color: #aaaaaa;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s ease;
}

.yt-feed-tab-btn:hover {
  color: #ffffff;
}

.yt-feed-tab-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 600;
}

.yt-live-dot {
  width: 7px;
  height: 7px;
  background: #ff0000;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px rgba(255, 0, 0, 0.8);
  animation: ytLivePulse 1.4s infinite ease-in-out;
}

@keyframes ytLivePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.yt-feed-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.yt-feed-youtube-logo {
  width: 28px;
  height: 20px;
  display: block;
  flex-shrink: 0;
}

.yt-feed-section-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.4px;
  margin: 0;
  line-height: 1;
}

.yt-asset-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* LOADING STATE & SPINNER */
.yt-loading-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 40px 20px;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
}

.yt-spinner {
  width: 24px;
  height: 24px;
  border: 2.5px solid rgba(255, 255, 255, 0.15);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: ytSpin 0.7s linear infinite;
}

@keyframes ytSpin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   PERSONALIZED YOUTUBE RECOMMENDATIONS BANNER (GOOGLE ACCOUNT INTEGRATION)
   ========================================================================== */
.yt-personalized-banner {
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.08) 0%, rgba(20, 22, 30, 0.8) 45%, rgba(13, 14, 18, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 24px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  animation: ytFadeIn 0.3s ease-out;
}

@keyframes ytFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.yt-rec-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.yt-rec-user-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.yt-rec-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4285F4, #34A853, #FBBC05, #EA4335);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.yt-rec-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yt-rec-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.yt-rec-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.yt-rec-title {
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF;
  margin: 0;
  letter-spacing: -0.2px;
}

.yt-rec-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(66, 133, 244, 0.18);
  color: #8ab4f8;
  border: 1px solid rgba(66, 133, 244, 0.35);
  letter-spacing: 0.3px;
}

.yt-rec-desc {
  font-size: 12.5px;
  color: #aaaaaa;
  margin: 0;
  line-height: 1.4;
}

.yt-rec-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.yt-btn-refresh-rec {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e0e0e0;
  font-size: 12.5px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
}

.yt-btn-refresh-rec:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* ==========================================================================
   FEED LOAD MORE / ENDLESS STREAM
   ========================================================================== */
.yt-feed-load-more-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  margin-bottom: 28px;
  padding: 16px 0;
}

.yt-feed-counter {
  font-size: 13px;
  color: #888888;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.yt-btn-load-more {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 26px;
  border-radius: 24px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.22s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.yt-btn-load-more:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.yt-btn-load-more:active {
  transform: translateY(0);
}

.yt-load-more-icon {
  width: 16px;
  height: 16px;
  stroke: #FFFFFF;
  transition: transform 0.2s ease;
}

.yt-btn-load-more:hover .yt-load-more-icon {
  transform: translateY(2px);
}

.yt-load-more-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #FFFFFF;
  border-radius: 50%;
}

/* VIEW CONTAINERS (BERANDA vs YOUTUBE) */
.yt-view-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  flex-shrink: 0;
  min-height: min-content;
}

/* =====================================================================
   ROBLOX STUDIO STYLE OUTPUT CONSOLE & FLOATING QUICK ACCESS
   ===================================================================== */

.yt-modal-output {
  max-width: 880px;
  width: 92vw;
  height: 600px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  background: #0d0e12;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(168, 85, 247, 0.15);
}

.yt-output-modal-header {
  padding: 14px 20px;
  background: #121319;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.yt-output-header-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yt-output-modal-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.2px;
}

.output-live-pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
  text-transform: uppercase;
}

.yt-output-subtitle {
  font-size: 11.5px;
  color: #94a3b8;
  display: block;
  margin-top: 2px;
}

.yt-output-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Toolbar */
.yt-output-toolbar {
  padding: 10px 18px;
  background: #111217;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.yt-output-filter-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.output-filter-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 500;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.output-filter-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.output-filter-tab.active {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

.output-filter-tab.filter-tab-warn.active {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.output-filter-tab.filter-tab-error.active {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.output-filter-tab.filter-tab-success.active {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.output-tab-count {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.yt-output-search-wrap {
  flex: 1;
  min-width: 140px;
  max-width: 260px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0a0b0e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 4px 10px;
}

.output-search-field {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-size: 11.5px;
  color: #FFFFFF;
}

.output-search-field::placeholder {
  color: #64748b;
}

.yt-output-options {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.output-autoscroll-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #94a3b8;
  cursor: pointer;
  user-select: none;
}

.output-autoscroll-label input {
  cursor: pointer;
  accent-color: #a855f7;
}

/* Monospace Console Viewport */
.yt-output-modal-body {
  flex: 1;
  padding: 0;
  overflow: hidden;
  background: #08090c;
  display: flex;
  flex-direction: column;
}

.output-console-terminal {
  flex: 1;
  overflow-y: auto;
  padding: 10px 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  line-height: 1.6;
  color: #cbd5e1;
}

.output-empty-hint {
  color: #475569;
  font-style: italic;
  padding: 24px;
  text-align: center;
}

.output-log-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 3px 6px;
  border-radius: 4px;
  transition: background 0.1s ease;
  word-break: break-word;
}

.output-log-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.output-time {
  color: #475569;
  font-size: 11px;
  flex-shrink: 0;
  user-select: none;
}

.output-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.output-badge.badge-info {
  background: rgba(56, 189, 248, 0.14);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.28);
}

.output-badge.badge-warn {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.output-badge.badge-error {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.output-badge.badge-success {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.output-source {
  color: #c084fc;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}

.output-msg {
  flex: 1;
  color: #e2e8f0;
}

.output-log-row.level-warn .output-msg {
  color: #fde68a;
}

.output-log-row.level-error .output-msg {
  color: #fca5a5;
  font-weight: 500;
}

.output-log-row.level-success .output-msg {
  color: #a7f3d0;
}

/* Footer Status Bar */
.yt-output-footer-bar {
  padding: 8px 18px;
  background: #101116;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #64748b;
}

.output-shortcuts-tip {
  color: #475569;
}



/* Sidebar Output Badge */
.yt-output-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 8px;
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.btn-xs {
  height: 24px;
  padding: 0 8px;
  font-size: 10.5px;
}

/* =============================================================================
   SOUNDCLOUD & SPOTIFY VIEW STYLES (CLOUDRAT HARMONIZED SUITE)
   ============================================================================= */

/* Sidebar Brand Color Accents */
.yt-sidebar-icon-youtube {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease, color 0.2s ease;
}

.yt-sidebar-icon-youtube svg {
  width: 19px;
  height: 13.5px;
}

/* Inactive state (saat sedang tidak di halaman YouTube): Putih / currentColor sama seperti menu lainnya */
.yt-sidebar-item[data-nav="youtube"] .yt-badge-bg {
  fill: currentColor;
  transition: fill 0.2s ease;
}

.yt-sidebar-item[data-nav="youtube"] .yt-badge-play {
  fill: var(--bg-sidebar, #050507);
  transition: fill 0.2s ease;
}

/* Hover state saat tidak aktif: tetap bernuansa putih bersih */
.yt-sidebar-item[data-nav="youtube"]:hover:not(.active) .yt-sidebar-icon-youtube {
  color: #ffffff;
}

.yt-sidebar-item[data-nav="youtube"]:hover:not(.active) .yt-badge-play {
  fill: var(--surface-glass-hover, #1a1e27);
}

/* Active State (HANYA saat sedang di halaman YouTube): Merah YouTube Resmi dengan segitiga putih & glow */
.yt-sidebar-item[data-nav="youtube"].active .yt-sidebar-icon-youtube {
  filter: drop-shadow(0 0 6px rgba(255, 0, 0, 0.5));
  transform: scale(1.02);
}

.yt-sidebar-item[data-nav="youtube"].active .yt-badge-bg {
  fill: #ff0000;
}

.yt-sidebar-item[data-nav="youtube"].active .yt-badge-play {
  fill: #ffffff;
}

.yt-sidebar-item[data-nav="soundcloud"]:hover .sc-sidebar-icon,
.yt-sidebar-item[data-nav="soundcloud"].active .sc-sidebar-icon {
  color: #ff5500;
  filter: drop-shadow(0 0 8px rgba(255, 85, 0, 0.4));
}

.yt-sidebar-item[data-nav="spotify"]:hover .sp-sidebar-icon,
.yt-sidebar-item[data-nav="spotify"].active .sp-sidebar-icon {
  color: #1db954;
  filter: drop-shadow(0 0 8px rgba(29, 185, 84, 0.4));
}

/* Chips Bar Brand Active Highlights */
.sc-chips-bar .yt-chip-pill.active,
.sc-chips-bar .yt-chip-pill:hover {
  border-color: rgba(255, 85, 0, 0.5);
}
.sc-chips-bar .yt-chip-pill.active {
  background: #ff5500;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 85, 0, 0.35);
}

.sp-chips-bar .yt-chip-pill.active,
.sp-chips-bar .yt-chip-pill:hover {
  border-color: rgba(29, 185, 84, 0.5);
}
.sp-chips-bar .yt-chip-pill.active {
  background: #1db954;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(29, 185, 84, 0.35);
}

/* Discovery Headers */
.sc-discover-header,
.sp-discover-header {
  padding: 24px 28px 12px;
  position: relative;
}

.sc-badge-row,
.sp-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.sc-platform-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #ff5500;
  background: rgba(255, 85, 0, 0.12);
  border: 1px solid rgba(255, 85, 0, 0.3);
  padding: 3px 9px;
  border-radius: 20px;
}

.sp-platform-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #1db954;
  background: rgba(29, 185, 84, 0.12);
  border: 1px solid rgba(29, 185, 84, 0.3);
  padding: 3px 9px;
  border-radius: 20px;
}

.sc-sub-tag,
.sp-sub-tag {
  font-size: 12px;
  color: #94a3b8;
}

.sc-discover-title,
.sp-discover-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.4px;
  margin: 0;
}

/* Section Blocks */
.sc-section-block,
.sp-section-block {
  padding: 16px 28px 24px;
}

.sc-section-header-row,
.sp-section-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}

.sc-section-heading,
.sp-section-heading {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.sc-section-subheading,
.sp-section-more {
  font-size: 12px;
  color: #94a3b8;
}

/* SoundCloud Section 1: Artists to watch out for (Horizontal Row) */
.sc-artists-row,
.sp-artists-row,
.sp-albums-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 12px 6px 14px;
  margin-top: -8px;
  scrollbar-width: none;
}
.sc-artists-row::-webkit-scrollbar,
.sp-artists-row::-webkit-scrollbar,
.sp-albums-row::-webkit-scrollbar {
  display: none;
}

.sc-artist-card {
  flex: 0 0 136px;
  width: 136px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.015) 100%), rgba(16, 18, 25, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  padding: 8px;
  cursor: pointer;
  transition: all 0.22s var(--ease-expressive);
  position: relative;
  box-shadow: 0 10px 28px -4px rgba(0, 0, 0, 0.45), inset 0 1px 0 0 rgba(255, 255, 255, 0.16);
}
.sc-artist-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 85, 0, 0.55);
  box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.65), 0 0 24px -2px rgba(255, 85, 0, 0.25), inset 0 1px 0 0 rgba(255, 255, 255, 0.25);
  background: linear-gradient(135deg, rgba(255, 85, 0, 0.09) 0%, rgba(255, 255, 255, 0.03) 100%), rgba(20, 22, 30, 0.78);
}

.sc-artist-cover-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 8px;
  background: radial-gradient(circle at 50% 35%, #2a2a34 0%, #121216 100%);
}
.sc-artist-cover-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  color: transparent;
  font-size: 0;
  display: block;
  transition: opacity 0.2s ease;
}
.sc-artist-card:hover .sc-artist-cover-box img {
  transform: none;
}

.sc-buzzing-pill {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
  background: #ff5500;
  padding: 2px 6px;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.sc-artist-tag-overlay {
  position: absolute;
  bottom: 6px;
  left: 6px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.sc-artist-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sc-artist-sub {
  font-size: 10.5px;
  color: #ff7700;
  font-weight: 600;
}

/* SoundCloud Section 2: Curated by SoundCloud */
.sc-curated-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.sc-curated-card {
  flex: 0 0 148px;
  width: 148px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.015) 100%), rgba(16, 18, 25, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  padding: 8px;
  cursor: pointer;
  transition: all 0.22s var(--ease-expressive);
  box-shadow: 0 10px 28px -4px rgba(0, 0, 0, 0.45), inset 0 1px 0 0 rgba(255, 255, 255, 0.16);
}
.sc-curated-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 85, 0, 0.55);
  box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.65), 0 0 24px -2px rgba(255, 85, 0, 0.25), inset 0 1px 0 0 rgba(255, 255, 255, 0.25);
  background: linear-gradient(135deg, rgba(255, 85, 0, 0.09) 0%, rgba(255, 255, 255, 0.03) 100%), rgba(20, 22, 30, 0.78);
}

.sc-curated-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 8px;
  position: relative;
  background: radial-gradient(circle at 50% 35%, #2a2a34 0%, #121216 100%);
}
.sc-curated-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  color: transparent;
  font-size: 0;
  display: block;
  transition: opacity 0.2s ease;
}

.sc-curated-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sc-curated-desc {
  font-size: 10.5px;
  color: #94a3b8;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Horizontal Scroll Section Controls */
.row-scroll-nav-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.row-scroll-nav-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.row-scroll-nav-btn svg {
  width: 14px;
  height: 14px;
}

.row-scroll-nav-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.08);
}

.row-scroll-nav-btn:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.25);
}

.sc-theme-view .row-scroll-nav-btn:hover {
  border-color: rgba(255, 85, 0, 0.5);
  color: #ff5500;
}

.sp-theme-view .row-scroll-nav-btn:hover {
  border-color: rgba(29, 185, 84, 0.5);
  color: #1db954;
}

/* Ambient Lighting Underlays for Theme Views to Enhance Glassmorphism */
.sc-theme-view {
  position: relative;
  overflow: visible;
  flex-shrink: 0;
  min-height: min-content;
}

.sc-theme-view::before {
  content: "";
  position: absolute;
  top: 40px;
  right: 12%;
  width: 520px;
  height: 360px;
  background: radial-gradient(circle, rgba(255, 85, 0, 0.10) 0%, rgba(249, 115, 22, 0.04) 40%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.sp-theme-view {
  position: relative;
  overflow: visible;
  flex-shrink: 0;
  min-height: min-content;
}

.sp-theme-view::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 12%;
  width: 520px;
  height: 360px;
  background: radial-gradient(circle, rgba(29, 185, 84, 0.10) 0%, rgba(16, 185, 129, 0.04) 40%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

#viewBypass {
  position: relative;
  overflow: visible;
  flex-shrink: 0;
  min-height: min-content;
}

#viewBypass::before {
  content: "";
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 560px;
  height: 380px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.10) 0%, rgba(168, 85, 247, 0.04) 40%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

#viewYouTube {
  position: relative;
  overflow: visible;
  flex-shrink: 0;
  min-height: min-content;
}

#viewYouTube::before {
  content: "";
  position: absolute;
  top: 40px;
  right: 18%;
  width: 500px;
  height: 360px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.09) 0%, rgba(168, 85, 247, 0.03) 40%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

/* Glassmorphism Feed Track Cards for SoundCloud & Spotify */
.sc-feed-card,
.sc-theme-view .yt-feed-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%), rgba(18, 20, 28, 0.94) !important;
  border: 1px solid rgba(255, 85, 0, 0.22) !important;
  box-shadow: 0 10px 30px -4px rgba(0, 0, 0, 0.45), inset 0 1px 0 0 rgba(255, 255, 255, 0.12) !important;
}

.sc-feed-card:hover,
.sc-theme-view .yt-feed-card:hover {
  border-color: rgba(255, 85, 0, 0.55) !important;
  background: linear-gradient(135deg, rgba(255, 85, 0, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%), rgba(24, 26, 36, 0.96) !important;
  box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.65), 0 0 24px -2px rgba(255, 85, 0, 0.25), inset 0 1px 0 0 rgba(255, 255, 255, 0.20) !important;
}

.sp-feed-card,
.sp-theme-view .yt-feed-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%), rgba(18, 20, 28, 0.94) !important;
  border: 1px solid rgba(29, 185, 84, 0.22) !important;
  box-shadow: 0 10px 30px -4px rgba(0, 0, 0, 0.45), inset 0 1px 0 0 rgba(255, 255, 255, 0.12) !important;
}

.sp-feed-card:hover,
.sp-theme-view .yt-feed-card:hover {
  border-color: rgba(29, 185, 84, 0.55) !important;
  background: linear-gradient(135deg, rgba(29, 185, 84, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%), rgba(24, 26, 36, 0.96) !important;
  box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.65), 0 0 24px -2px rgba(29, 185, 84, 0.25), inset 0 1px 0 0 rgba(255, 255, 255, 0.20) !important;
}

.sc-horizontal-row {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Spotify Section 1: Popular Artists (Circular Cards with Glassmorphism) */
.sp-artist-circle-card {
  flex: 0 0 110px;
  width: 110px;
  text-align: center;
  cursor: pointer;
  padding: 8px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%), rgba(18, 20, 28, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.35), inset 0 1px 0 0 rgba(255, 255, 255, 0.12);
  transition: all 0.22s var(--ease-expressive);
}
.sp-artist-circle-card:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, rgba(29, 185, 84, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%), rgba(24, 26, 36, 0.96);
  border-color: rgba(29, 185, 84, 0.45);
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.5), 0 0 20px -2px rgba(29, 185, 84, 0.22), inset 0 1px 0 0 rgba(255, 255, 255, 0.22);
}

.sp-artist-avatar-wrap {
  position: relative;
  width: 86px;
  height: 86px;
  margin: 0 auto 8px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.12);
}
.sp-artist-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: none;
}
.sp-artist-circle-card:hover .sp-artist-avatar-wrap img {
  transform: none;
}

.sp-artist-name-text {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.sp-artist-role-tag {
  font-size: 10.5px;
  color: #94a3b8;
}

/* Spotify Section 2: Popular Albums & Singles (Square with Hover Floating Search Button) */
.sp-album-card {
  flex: 0 0 136px;
  width: 136px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 100%), rgba(18, 20, 28, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  padding: 8px;
  cursor: pointer;
  position: relative;
  transition: all 0.22s var(--ease-expressive);
  box-shadow: 0 10px 28px -4px rgba(0, 0, 0, 0.45), inset 0 1px 0 0 rgba(255, 255, 255, 0.14);
}
.sp-album-card:hover {
  transform: translateY(-3px);
  border-color: rgba(29, 185, 84, 0.55);
  box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.65), 0 0 24px -2px rgba(29, 185, 84, 0.25), inset 0 1px 0 0 rgba(255, 255, 255, 0.22);
  background: linear-gradient(135deg, rgba(29, 185, 84, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%), rgba(24, 26, 36, 0.96);
}

.sp-album-cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.sp-album-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: none;
}
.sp-album-card:hover .sp-album-cover-wrap img {
  transform: none;
}

.sp-floating-play-btn {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1db954;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.sp-album-card:hover .sp-floating-play-btn {
  opacity: 1;
  transform: translateY(0);
}
.sp-floating-play-btn:hover {
  background: #1ed760;
  transform: scale(1.04) !important;
}

.sp-album-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-album-artist {
  font-size: 11.5px;
  color: #94a3b8;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==============================================================================
   DEDICATED SOUNDCLOUD PLAYER STYLES
   ============================================================================== */
.sc-player-window {
  max-width: 620px;
  border: 1px solid rgba(255, 85, 0, 0.28);
  box-shadow: 0 16px 48px rgba(255, 85, 0, 0.14), 0 24px 70px rgba(0, 0, 0, 0.85);
}

.sc-player-topbar {
  border-bottom: 1px solid rgba(255, 85, 0, 0.2);
}

.sc-player-body {
  padding: 16px 20px;
  background: rgba(15, 15, 18, 0.95);
}

.sc-embed-container {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #111113;
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.sc-card-art-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 85, 0, 0.05);
  border: 1px solid rgba(255, 85, 0, 0.15);
  border-radius: 12px;
  padding: 12px;
}

.sc-player-art {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.sc-player-info {
  flex: 1;
  min-width: 0;
}

.sc-player-song-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sc-player-artist-name {
  font-size: 13px;
  color: #ff7700;
  font-weight: 600;
  margin: 0 0 6px;
}

.sc-stream-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #94a3b8;
}

.sc-pulsing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff5500;
  box-shadow: 0 0 8px #ff5500;
  animation: scPulse 1.6s infinite ease-in-out;
}

@keyframes scPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

.sc-player-footer {
  border-top: 1px solid rgba(255, 85, 0, 0.15);
}

/* ==============================================================================
   DEDICATED SPOTIFY PLAYER STYLES
   ============================================================================== */
.sp-player-window {
  max-width: 600px;
  border: 1px solid rgba(29, 185, 84, 0.28);
  box-shadow: 0 16px 48px rgba(29, 185, 84, 0.14), 0 24px 70px rgba(0, 0, 0, 0.85);
}

.sp-player-topbar {
  border-bottom: 1px solid rgba(29, 185, 84, 0.2);
}

.sp-player-body {
  padding: 22px;
  background: linear-gradient(180deg, rgba(29, 185, 84, 0.08) 0%, rgba(12, 12, 15, 0.98) 100%);
}

.sp-player-showcase {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 20px;
}

.sp-album-vinyl-wrap {
  position: relative;
  width: 136px;
  height: 136px;
  flex-shrink: 0;
}

.sp-vinyl-record {
  position: absolute;
  top: 3px;
  right: -16px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, #222 15%, #050505 16%, #1a1a1a 24%, #080808 30%, #222 36%, #050505 45%, #181818 52%, #0a0a0a 60%, #1c1c1c 70%, #050505 100%);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.sp-vinyl-record.spinning {
  animation: spVinylSpin 4.5s linear infinite;
}

@keyframes spVinylSpin {
  100% { transform: rotate(360deg); }
}

.sp-vinyl-center {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #1db954;
  border: 3px solid #000;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.6);
}

.sp-showcase-cover {
  position: relative;
  width: 130px;
  height: 130px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 2;
}

.sp-showcase-meta {
  flex: 1;
  min-width: 0;
}

.sp-badge-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: #1db954;
  background: rgba(29, 185, 84, 0.15);
  border: 1px solid rgba(29, 185, 84, 0.3);
  border-radius: 10px;
  padding: 2px 8px;
  margin-bottom: 6px;
}

.sp-showcase-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-showcase-artist {
  font-size: 14px;
  color: #1db954;
  font-weight: 600;
  margin: 0 0 2px;
}

.sp-showcase-album {
  font-size: 12px;
  color: #94a3b8;
  margin: 0;
}

/* Audio Player Card */
.sp-audio-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
}

.sp-audio-timeline-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.sp-time-text {
  font-family: var(--font-mono, monospace);
  font-size: 11.5px;
  color: #94a3b8;
  min-width: 36px;
}

.sp-progress-slider {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  accent-color: #1db954;
  cursor: pointer;
}

.sp-audio-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sp-ctrl-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sp-icon-ctrl-btn {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}
.sp-icon-ctrl-btn:hover {
  color: #1db954;
}

.sp-volume-slider {
  width: 75px;
  height: 4px;
  accent-color: #1db954;
  cursor: pointer;
}

.sp-ctrl-center {
  display: flex;
  align-items: center;
}

.sp-big-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1db954;
  color: #000000;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(29, 185, 84, 0.4);
  transition: transform 0.2s ease, background 0.2s ease;
}
.sp-big-play-btn:hover {
  transform: scale(1.08);
  background: #1ed760;
}
.sp-big-play-btn:active {
  transform: scale(0.96);
}

.sp-ctrl-right {
  display: flex;
  align-items: center;
}

.sp-audio-quality-tag {
  font-size: 10.5px;
  font-weight: 700;
  color: #1db954;
  background: rgba(29, 185, 84, 0.12);
  border: 1px solid rgba(29, 185, 84, 0.25);
  border-radius: 6px;
  padding: 2px 7px;
}

.sp-player-footer {
  border-top: 1px solid rgba(29, 185, 84, 0.15);
}

/* Card Selection Pulse & Active State */
.active-card-glow {
  outline: 2px solid currentColor !important;
  box-shadow: 0 0 20px rgba(255, 85, 0, 0.4) !important;
  transform: scale(1.02);
  transition: all 0.25s ease;
}

.sc-artist-card.active-card-glow,
.sc-curated-card.active-card-glow {
  color: #ff5500 !important;
  border-color: #ff5500 !important;
}

.sp-artist-circle-card.active-card-glow,
.sp-album-card.active-card-glow {
  color: #1db954 !important;
  border-color: #1db954 !important;
  box-shadow: 0 0 20px rgba(29, 185, 84, 0.4) !important;
}

/* ==============================================================================
   CLOUDRAT STUDIO — UI/UX PRO MAX RESPONSIVE DESIGN SYSTEM
   ============================================================================== */

/* Backdrop overlay for mobile sidebar drawer */
.yt-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 8, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.yt-sidebar-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Tablet & Medium Screen Breakpoints (max-width: 1100px) */
@media (max-width: 1100px) {
  .yt-topbar-left {
    flex: 0 0 240px;
  }
  .yt-topbar-right {
    flex: 0 0 240px;
  }
  .yt-topbar-center {
    flex: 1 1 auto;
    max-width: 480px;
    margin: 0 12px;
  }
  .yt-video-grid-3col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 14px 18px 40px;
  }
}

/* Mobile Breakpoint (max-width: 768px) */
@media (max-width: 768px) {
  .yt-web-topbar {
    height: 54px;
    padding: 0 10px;
    gap: 6px;
  }

  .yt-layout-container {
    margin-top: 54px;
    height: calc(100vh - 54px);
  }

  .yt-topbar-left {
    gap: 6px;
    flex: 0 0 auto;
    width: auto;
  }

  .yt-brand-logo-group {
    width: auto;
    min-width: 0;
  }

  .yt-icon-btn {
    width: 36px;
    height: 36px;
  }

  .yt-brand-logo-img {
    width: auto;
    height: 24px;
  }

  .yt-brand-logo-text,
  .brand-text,
  .yt-brand-youtube-text,
  .yt-brand-youtube-svg #youtube-paths {
    display: none !important;
  }

  .yt-brand-youtube-svg {
    width: 28px !important;
    height: 20px !important;
  }

  .yt-brand-youtube-wrap {
    margin-left: 2px;
  }

  .yt-topbar-center {
    flex: 1;
    min-width: 0;
    margin: 0 4px;
  }

  .yt-search-form {
    height: 38px;
    max-width: 100%;
    border-radius: 19px;
  }

  .yt-search-input-box {
    padding: 0 10px;
  }

  .yt-search-input-field {
    font-size: 14px;
    padding: 0;
  }

  .yt-search-submit {
    width: 38px;
    border-radius: 0 19px 19px 0;
  }

  .yt-topbar-right {
    gap: 6px;
    flex: 0 0 auto;
    width: auto;
    margin-left: 0;
  }

  #serverStatus {
    padding: 4px 6px;
    height: 32px;
    min-width: 32px;
  }

  #serverStatus #statusText {
    display: none;
  }

  .yt-btn-auth span {
    display: none;
  }

  .yt-btn-auth {
    padding: 0;
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    justify-content: center;
  }

  /* Off-canvas Mobile Sidebar Drawer */
  .yt-sidebar-drawer {
    position: fixed;
    top: 54px;
    left: -285px;
    width: 260px;
    height: calc(100vh - 54px);
    z-index: 1000;
    background: rgba(10, 12, 16, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.85);
    transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .yt-sidebar-drawer.mobile-open {
    left: 0 !important;
  }

  /* Single Column Card Grid */
  .yt-video-grid-3col {
    grid-template-columns: 1fr !important;
    padding: 10px 12px 60px !important;
    gap: 14px;
  }

  .yt-feed-container {
    padding: 12px 14px 36px;
    gap: 20px;
  }

  /* Sound Bypass Mobile Adaptations */
  .yt-input-row {
    flex-direction: column;
    gap: 10px;
  }

  .yt-url-input-wrap {
    width: 100%;
  }

  #btnProcess {
    width: 100%;
    height: 44px;
    justify-content: center;
    font-size: 15px;
  }

  .grid-2col,
  .grid-3col {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  /* Horizontal Rows Momentum Touch */
  .sc-horizontal-row,
  .sp-artists-row,
  .sp-albums-row,
  .yt-chips-sticky-bar {
    -webkit-overflow-scrolling: touch;
    scroll-padding: 0 12px;
  }

  .sc-artist-card {
    min-width: 110px;
    max-width: 110px;
  }

  .sp-artist-circle-card {
    min-width: 100px;
    max-width: 100px;
  }

  .sp-album-card {
    min-width: 120px;
    max-width: 120px;
  }

  .row-scroll-nav-controls {
    display: none;
  }
}

/* Small Smartphone Breakpoint (max-width: 640px) */
@media (max-width: 640px) {
  .yt-modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .yt-player-window {
    width: 100%;
    max-width: 100%;
    max-height: 88vh;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
    margin: 0;
  }

  .sp-player-showcase {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .sp-album-vinyl-wrap {
    width: 110px;
    height: 110px;
  }

  .sp-vinyl-record {
    width: 105px;
    height: 105px;
  }

  .sp-showcase-cover {
    width: 105px;
    height: 105px;
  }

  .yt-player-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px 16px;
  }

  .yt-player-actions {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }

  .yt-player-actions button,
  .yt-player-actions a {
    width: 100%;
    justify-content: center;
    min-height: 42px;
  }

  .sc-card-art-row {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .sc-player-art {
    width: 90px;
    height: 90px;
  }

  /* Convert section responsive layout */
  .convert-card-grid {
    grid-template-columns: 1fr;
  }

  .modulation-controls-grid {
    grid-template-columns: 1fr;
  }
}

/* ==============================================================================
   ROBLOX OPEN CLOUD QUOTA TRACKING & CUSTOM LUA ARRAY STYLES
   ============================================================================== */

/* Topbar Quota Pill */
.status-quota {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  transition: all 0.2s ease;
  user-select: none;
}

.status-quota:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

.status-quota.quota-ok {
  border-color: rgba(16, 185, 129, 0.3);
  color: #10B981;
}

.status-quota.quota-ok .quota-dot {
  background: #10B981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.status-quota.quota-warn {
  border-color: rgba(245, 158, 11, 0.35);
  color: #F59E0B;
}

.status-quota.quota-warn .quota-dot {
  background: #F59E0B;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.status-quota.quota-exhausted {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.08);
  color: #EF4444;
}

.status-quota.quota-exhausted .quota-dot {
  background: #EF4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
  animation: pulse-red-dot 1.4s infinite;
}

@keyframes pulse-red-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Workstation Quota Tracker Banner */
.bp-quota-tracker-banner {
  background: rgba(18, 20, 26, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.bp-quota-col-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 220px;
}

.bp-quota-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: #FFFFFF;
}

.bp-quota-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.bp-quota-tracker-banner.is-exhausted .bp-quota-pulse-dot {
  background: #EF4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.7);
  animation: pulse-red-dot 1.4s infinite;
}

.bp-quota-subtext {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.35;
}

.bp-quota-col-bar {
  flex: 1;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bp-quota-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.bp-quota-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #10B981 0%, #059669 100%);
  border-radius: 3px;
  transition: width 0.4s ease, background 0.3s ease;
}

.bp-quota-tracker-banner.is-warn .bp-quota-bar-fill {
  background: linear-gradient(90deg, #F59E0B 0%, #D97706 100%);
}

.bp-quota-tracker-banner.is-exhausted .bp-quota-bar-fill {
  background: linear-gradient(90deg, #EF4444 0%, #DC2626 100%);
}

.bp-quota-bar-legend {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--text-muted);
}

.bp-quota-col-action {
  display: flex;
  align-items: center;
}

/* Settings Modal Quota Card */
.settings-quota-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.settings-quota-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.settings-quota-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-quota-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #FFFFFF;
}

.settings-quota-badge {
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.settings-quota-badge.ok {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: #10B981;
}

.settings-quota-badge.exhausted {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #EF4444;
}

.settings-quota-bar-wrap {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.settings-quota-bar-fill {
  height: 100%;
  width: 0%;
  background: #10B981;
  transition: width 0.3s ease;
}

.settings-quota-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-top: 4px;
}

.sq-stat-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sq-label {
  font-size: 10.5px;
  color: var(--text-muted);
}

.sq-stat-col strong {
  font-size: 12px;
  color: #FFFFFF;
  font-weight: 600;
}

.settings-quota-notice {
  font-size: 11px;
  line-height: 1.4;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #F87171;
}

/* Custom Lua Array Modal Grid */
.batch-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.batch-options-grid .modal-form-group {
  margin-bottom: 0;
}

.batch-options-grid label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: block;
}

@media (max-width: 640px) {
  .bp-quota-tracker-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .bp-quota-col-bar {
    max-width: 100%;
    width: 100%;
  }
  .settings-quota-stats {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* ==============================================================================
   CUSTOM LUA ARRAY TEMPLATE EDITOR & PLACEHOLDER CHIPS
   ============================================================================== */
.batch-template-container {
  background: rgba(15, 17, 23, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 10px;
  margin-bottom: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.batch-template-container:focus-within {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.batch-template-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.batch-template-title {
  font-size: 11px;
  font-weight: 600;
  color: #E2E8F0;
  letter-spacing: 0.02em;
}
/* Placeholder Chips */

.lua-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #60A5FA;
  font-family: Consolas, 'Fira Code', Menlo, Monaco, monospace;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.lua-chip:hover {
  background: rgba(96, 165, 250, 0.18);
  border-color: rgba(96, 165, 250, 0.4);
  color: #93C5FD;
  transform: translateY(-1px);
}

.lua-chip:active {
  transform: translateY(0);
}


/* ==============================================================================
   BATCH LUA EXPORTER WORKSTATION VIEW (CLOUDRAT UNIFIED OBSIDIAN DESIGN SYSTEM)
   ============================================================================== */
.batch-workstation-view {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 24px 28px 60px !important;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: calc(100vh - 70px);
  position: relative;
  background: transparent !important;
}

.batch-workstation-view[style*="display: none"] {
  display: none !important;
}

.batch-workstation-view[style*="display: flex"] {
  display: flex !important;
}

/* Ambient Subtle Lighting Mesh matching Home & Bypass */
.batch-workstation-view::before {
  content: "";
  position: absolute;
  top: -30px;
  left: 8%;
  width: 520px;
  height: 360px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.07) 0%, rgba(168, 85, 247, 0.02) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.batch-workstation-view::after {
  content: "";
  position: absolute;
  top: 140px;
  right: 6%;
  width: 480px;
  height: 320px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.06) 0%, rgba(59, 130, 246, 0.02) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.batch-workstation-view .bp-workstation-container {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 1;
}

/* Top Hero / Header Card matching bp-hero-card */
.batch-studio-header-card {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 100%), rgba(14, 16, 23, 0.72) !important;
  backdrop-filter: blur(28px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 16px !important;
  padding: 22px 28px !important;
  box-shadow: 0 16px 40px -6px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
  gap: 20px;
}

.batch-studio-header-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.batch-studio-title {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 24px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
  letter-spacing: -0.4px;
  line-height: 1.25;
}

.batch-studio-desc {
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 13px;
  color: var(--text-secondary, #94A3B8);
  margin: 0;
  line-height: 1.5;
}

.batch-studio-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Action Buttons unified with site buttons */
.btn-primary-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 22px !important;
  background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%) !important;
  border: 1px solid rgba(147, 197, 253, 0.4) !important;
  border-radius: 9999px !important;
  color: #FFFFFF !important;
  font-family: var(--font-display, 'Outfit', sans-serif) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.45) !important;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  user-select: none;
  white-space: nowrap;
}

.btn-primary-pill:hover {
  background: linear-gradient(135deg, #60A5FA 0%, #2563EB 100%) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.65), 0 0 20px rgba(96, 165, 250, 0.35) !important;
}

.btn-primary-pill:active {
  transform: translateY(0);
}

.btn-ghost-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%), rgba(16, 18, 25, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  border-radius: 9999px !important;
  color: #E2E8F0 !important;
  font-family: var(--font-sans, 'Inter', sans-serif) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  user-select: none;
  white-space: nowrap;
}

.btn-ghost-pill:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%), rgba(22, 26, 36, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #FFFFFF !important;
  transform: translateY(-1px);
}

.btn-ghost-pill:active {
  transform: translateY(0);
}

.btn-ghost-pill.btn-xs {
  height: 28px !important;
  padding: 0 12px !important;
  font-size: 11px !important;
  border-radius: 6px !important;
}

/* Symmetrical 2x2 Unified Workbench Grid - Equal Column Widths & Row Heights */
.batch-workbench-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 20px !important;
  width: 100% !important;
  align-items: stretch !important;
}

/* Studio Cards matching site cards */
.batch-card {
  width: 100%;
  height: 100% !important;
  box-sizing: border-box;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 100%), rgba(14, 16, 23, 0.72) !important;
  backdrop-filter: blur(24px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 16px !important;
  padding: 20px 24px !important;
  box-shadow: 0 16px 40px -6px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
}

.batch-card:hover {
  border-color: rgba(96, 165, 250, 0.35) !important;
  box-shadow: 0 20px 48px -6px rgba(0, 0, 0, 0.65), 0 0 24px rgba(59, 130, 246, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

.batch-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.batch-card-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.batch-card-title-group h4 {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

/* Symmetrical 2-Column Form Grid */
.batch-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  width: 100%;
}

.batch-form-grid .modal-form-group {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.batch-form-grid label.batch-group-title-label,
.batch-form-grid > .modal-form-group > label:first-child:not(.batch-export-toggle-pill) {
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary, #94A3B8);
  margin-bottom: 6px;
  display: block;
}

/* Text Inputs */
.batch-form-grid .input-field,
.modal-form-group .input-field {
  height: 40px !important;
  line-height: 40px;
  background: rgba(8, 10, 16, 0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  border-radius: 10px !important;
  color: #FFFFFF !important;
  font-family: var(--font-sans, 'Inter', sans-serif) !important;
  font-size: 12.5px !important;
  padding: 0 14px !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.45) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.batch-form-grid .input-field:focus,
.modal-form-group .input-field:focus {
  border-color: rgba(96, 165, 250, 0.6) !important;
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.45), 0 0 20px rgba(96, 165, 250, 0.15) !important;
  background: rgba(12, 15, 24, 0.96) !important;
}

/* Ultra-Premium Glassmorphic Select Dropdowns with Custom Chevron */
select,
.select-field,
.batch-form-grid .select-field,
.modal-form-group select.select-field,
.modal-form-group select {
  height: 40px !important;
  line-height: 38px !important;
  background-color: rgba(10, 13, 20, 0.94) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: calc(100% - 13px) center !important;
  background-size: 14px 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 10px !important;
  color: #F8FAFC !important;
  font-family: var(--font-sans, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif) !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  padding: 0 36px 0 14px !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.25) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  outline: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  user-select: none;
}

select::-ms-expand,
.select-field::-ms-expand {
  display: none !important;
}

select:hover,
.select-field:hover,
.batch-form-grid .select-field:hover,
.modal-form-group select.select-field:hover,
.modal-form-group select:hover {
  background-color: rgba(16, 20, 32, 0.98) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2360A5FA' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  border-color: rgba(96, 165, 250, 0.45) !important;
  border-top-color: rgba(147, 197, 253, 0.6) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), 0 0 12px rgba(96, 165, 250, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

select:focus,
.select-field:focus,
.batch-form-grid .select-field:focus,
.modal-form-group select.select-field:focus,
.modal-form-group select:focus {
  background-color: rgba(14, 18, 28, 0.98) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2338BDF8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  border-color: rgba(96, 165, 250, 0.75) !important;
  box-shadow: 0 0 0 2.5px rgba(96, 165, 250, 0.22), inset 0 2px 4px rgba(0, 0, 0, 0.45), 0 0 20px rgba(59, 130, 246, 0.18) !important;
  color: #FFFFFF !important;
}

/* Dark theme options menu dropdown */
select option,
.select-field option,
.batch-form-grid .select-field option,
.modal-form-group select option {
  background-color: #0B0E17 !important;
  color: #F1F5F9 !important;
  padding: 10px 14px !important;
  font-size: 13px !important;
  font-family: var(--font-sans, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif) !important;
}

select option:checked,
select option:hover,
.select-field option:hover,
.select-field option:focus,
.select-field option:checked {
  background-color: #1E293B !important;
  color: #60A5FA !important;
}

/* Modern Interactive Export Option Switch Pills matching user design */
.batch-export-options-wrap {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  height: 40px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.batch-export-toggle-pill {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 40px !important;
  padding: 0 10px !important;
  margin: 0 !important;
  margin-bottom: 0 !important;
  background: rgba(8, 10, 16, 0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  user-select: none !important;
  box-sizing: border-box !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  min-width: 0 !important;
  gap: 6px !important;
}

.batch-export-toggle-pill:hover {
  background: rgba(16, 20, 32, 0.96) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
}

.batch-toggle-input {
  position: absolute !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  pointer-events: none !important;
  margin: 0 !important;
}

.batch-toggle-left {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-width: 0 !important;
  flex: 1 !important;
}

.batch-toggle-icon {
  width: 16px !important;
  height: 16px !important;
  color: #94A3B8 !important;
  flex-shrink: 0 !important;
  transition: color 0.2s ease !important;
}

.batch-toggle-text {
  font-family: var(--font-sans, 'Inter', sans-serif) !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  color: #FFFFFF !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  transition: color 0.2s ease !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

/* Switch Track & Animated Knob - EXACT MATCH to user screenshot */
.batch-toggle-switch {
  display: inline-block !important;
  width: 32px !important;
  min-width: 32px !important;
  height: 18px !important;
  min-height: 18px !important;
  background: #1C2331 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 9999px !important;
  position: relative !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  vertical-align: middle !important;
}

.batch-toggle-switch::after {
  content: "" !important;
  position: absolute !important;
  top: 2px !important;
  left: 2px !important;
  width: 12px !important;
  height: 12px !important;
  border-radius: 50% !important;
  background: #FFFFFF !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Active State when checkbox is checked */
.batch-export-toggle-pill:has(.batch-toggle-input:checked),
.batch-export-toggle-pill.is-checked {
  border-color: rgba(96, 165, 250, 0.6) !important;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.16) 0%, rgba(37, 99, 235, 0.06) 100%) !important;
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
}

.batch-export-toggle-pill:has(.batch-toggle-input:checked) .batch-toggle-switch,
.batch-export-toggle-pill.is-checked .batch-toggle-switch {
  background: #3B82F6 !important;
  border-color: rgba(96, 165, 250, 0.7) !important;
}

.batch-export-toggle-pill:has(.batch-toggle-input:checked) .batch-toggle-switch::after,
.batch-export-toggle-pill.is-checked .batch-toggle-switch::after {
  transform: translateX(16px) !important;
  background: #FFFFFF !important;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.9) !important;
}

.batch-export-toggle-pill:has(.batch-toggle-input:checked) .batch-toggle-icon,
.batch-export-toggle-pill.is-checked .batch-toggle-icon {
  color: #60A5FA !important;
}

.batch-export-toggle-pill:has(.batch-toggle-input:checked) .batch-toggle-text,
.batch-export-toggle-pill.is-checked .batch-toggle-text {
  color: #FFFFFF !important;
}

.live-pill {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.count-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 9999px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-top: 1px solid rgba(192, 132, 252, 0.55);
  color: #C084FC;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.template-hint {
  font-size: 11.5px;
  color: #64748B;
  margin-top: 8px;
  line-height: 1.45;
}

/* Placeholder Chips Section */
.batch-chips-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.chip-label {
  font-size: 11px;
  font-weight: 500;
  color: #94A3B8;
  display: block;
}

.batch-placeholder-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.lua-chip {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.22) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  color: #93C5FD !important;
  font-family: var(--font-mono, Consolas, monospace);
  font-size: 11px;
  padding: 3.5px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28) !important;
}

.lua-chip:hover {
  background: rgba(59, 130, 246, 0.2) !important;
  border-color: rgba(96, 165, 250, 0.5) !important;
  color: #DBEAFE !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25) !important;
}

.lua-chip:active {
  transform: translateY(0);
}

/* Card Height and Internal Flex Layout */
.batch-card-config,
.batch-card-checklist,
.batch-card-template,
.batch-card-output,
#batchTemplateContainer,
.batch-output-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 0 !important;
  box-sizing: border-box !important;
}

/* Row 1 Symmetrical Matching Height (Konfigurasi & Audio Riwayat) */
.batch-card-config,
.batch-card-checklist {
  min-height: 300px !important;
  max-height: 315px !important;
  overflow: hidden !important;
}

/* Song Checklist Glassmorphic Rows - Fully Scrollable inside matching card frame */
.batch-song-checklist {
  flex: 1 1 0 !important;
  min-height: 0 !important;
  max-height: 215px !important;
  height: 215px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  padding-right: 6px !important;
}

.batch-song-checklist::-webkit-scrollbar {
  width: 6px;
}

.batch-song-checklist::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
}

.batch-song-checklist::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}

.batch-song-checklist::-webkit-scrollbar-thumb:hover {
  background: rgba(96, 165, 250, 0.5);
}

.batch-empty-checklist {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
  text-align: center;
  font-size: 12px;
  color: #64748B;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
}

.batch-song-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  flex-shrink: 0 !important;
  background: rgba(255, 255, 255, 0.025) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border-radius: 10px;
  transition: all 0.15s ease;
  user-select: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

.batch-song-row:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  transform: translateX(2px);
}

.batch-song-row.selected {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.18) 0%, rgba(37, 99, 235, 0.06) 100%) !important;
  border-color: rgba(59, 130, 246, 0.45) !important;
  border-top-color: rgba(96, 165, 250, 0.65) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}

.batch-song-checkbox-wrap {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.batch-song-cb {
  width: 15px;
  height: 15px;
  accent-color: #3B82F6;
  cursor: pointer;
}

.batch-song-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.batch-song-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.batch-song-title {
  font-size: 12px;
  font-weight: 600;
  color: #F1F5F9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.batch-mod-badge {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.badge-approved {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-neutral {
  background: rgba(148, 163, 184, 0.15);
  color: #94A3B8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.batch-song-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: #64748B;
}

.batch-song-aid {
  font-family: var(--font-mono, Consolas, monospace);
  color: #38BDF8;
}

.batch-song-artist {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.batch-song-speed {
  color: #A78BFA;
}

.batch-song-dot {
  opacity: 0.5;
}

/* Code Editors matching site monospace inputs - Symmetrical Height & Fill */
.template-editor {
  width: 100% !important;
  flex: 1;
  min-height: 230px !important;
  box-sizing: border-box !important;
  background: rgba(8, 10, 16, 0.94) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  font-family: var(--font-mono, 'JetBrains Mono', Consolas, monospace) !important;
  font-size: 12px !important;
  line-height: 1.6 !important;
  color: #A7F3D0 !important;
  tab-size: 2 !important;
  -moz-tab-size: 2 !important;
  resize: none !important;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5) !important;
  outline: none;
}

.template-editor:focus {
  border-color: rgba(96, 165, 250, 0.5) !important;
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.18), inset 0 2px 6px rgba(0, 0, 0, 0.45) !important;
}

.batch-code-output {
  width: 100% !important;
  flex: 1;
  min-height: 230px !important;
  box-sizing: border-box !important;
  background: rgba(8, 10, 16, 0.94) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  font-family: var(--font-mono, 'JetBrains Mono', Consolas, monospace) !important;
  font-size: 12px !important;
  line-height: 1.6 !important;
  color: #F8FAFC !important;
  tab-size: 2 !important;
  -moz-tab-size: 2 !important;
  white-space: pre !important;
  word-break: normal !important;
  overflow-x: auto !important;
  resize: none !important;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5) !important;
  outline: none;
}

.batch-code-output:focus {
  border-color: rgba(96, 165, 250, 0.5) !important;
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.18), inset 0 2px 6px rgba(0, 0, 0, 0.45) !important;
}

@media (max-width: 1120px) {
  .batch-workbench-grid {
    grid-template-columns: 1fr !important;
  }
  .batch-card-config,
  .batch-card-checklist {
    max-height: none !important;
  }
  .batch-studio-header-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==============================================================================
   SIDEBAR PERSISTENT MUSIC PLAYER (CLOUDRAT MINI PLAYER)
   ============================================================================== */
.sidebar-mini-player {
  background: linear-gradient(165deg, rgba(17, 24, 39, 0.95) 0%, rgba(9, 13, 22, 0.98) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 12px 12px 10px;
  margin: 8px 2px 4px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 9px;
  box-sizing: border-box;
  width: calc(100% - 4px);
  position: relative;
  overflow: hidden;
  flex-shrink: 0 !important;
  min-height: fit-content;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.sidebar-mini-player::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
  transition: opacity 0.3s ease;
}

.sidebar-mini-player::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 38px;
  background: radial-gradient(ellipse at 50% 120%, rgba(56, 189, 248, 0.16) 0%, transparent 72%);
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.sidebar-mini-player:hover {
  border-color: rgba(96, 165, 250, 0.25);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 16px rgba(56, 189, 248, 0.08);
}

/* Header: Kicker + Platform Pill + Waveform Bars */
/* Header: Kicker on left + Platform Pill on right */
.smp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 22px;
}

.smp-kicker {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #71717A;
  white-space: nowrap;
}

.smp-platform-pill {
  font-size: 8.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(249, 115, 22, 0.16);
  color: #FB923C;
  border: 1.5px solid rgba(249, 115, 22, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  transition: all 0.2s ease;
  white-space: nowrap;
  margin-left: auto;
}

.smp-platform-pill.youtube {
  background: rgba(239, 68, 68, 0.14);
  color: #EF4444;
  border-color: rgba(239, 68, 68, 0.45);
}

.smp-platform-pill.soundcloud {
  background: rgba(249, 115, 22, 0.14);
  color: #FB923C;
  border-color: rgba(249, 115, 22, 0.45);
}

.smp-platform-pill.spotify {
  background: rgba(16, 185, 129, 0.14);
  color: #34D399;
  border-color: rgba(16, 185, 129, 0.45);
}

.smp-platform-pill.radio {
  background: rgba(56, 189, 248, 0.14);
  color: #38BDF8;
  border-color: rgba(56, 189, 248, 0.45);
}

/* Track Info Box */
.smp-track-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 1px 0;
}

.smp-cover-wrap {
  position: relative;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  background: #0D111A;
}

.smp-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.smp-music-note-icon {
  width: 20px;
  height: 20px;
  color: #38BDF8;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.45));
  transition: transform 0.2s ease;
}

.smp-track-box:hover .smp-music-note-icon {
  transform: scale(1.08);
  color: #60A5FA;
}

.smp-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.smp-cover-wrap.spinning .smp-cover-img,
.smp-cover-wrap.spinning .smp-cover-placeholder {
  animation: smpVinylSpin 10s linear infinite;
}

@keyframes smpVinylSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.smp-track-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.smp-title {
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 12px;
  font-weight: 600;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.smp-artist {
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 10.5px;
  color: var(--text-secondary, #94A3B8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

/* Progress Section */
.smp-progress-section {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.smp-progress-bar-wrap {
  width: 100%;
  padding: 4px 0;
  cursor: pointer;
}

.smp-progress-bar-bg {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  position: relative;
  overflow: visible;
  transition: height 0.15s ease;
}

.smp-progress-bar-wrap:hover .smp-progress-bar-bg {
  height: 5px;
}

.smp-progress-bar-fill {
  height: 100%;
  background: #38BDF8;
  border-radius: 9999px;
  position: relative;
  transition: width 0.1s linear;
}

.smp-progress-bar-fill::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38BDF8;
  box-shadow: 0 0 8px #38BDF8, 0 0 2px #FFFFFF;
}

.smp-time-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 9.5px;
  color: var(--text-muted, #71717A);
  line-height: 1;
}

/* Controls Row */
.smp-controls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 4px 0 2px;
}

.smp-btn-icon {
  background: transparent;
  border: none;
  color: var(--text-secondary, #94A3B8);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.18s ease;
  padding: 0;
}

.smp-btn-icon svg {
  width: 14px;
  height: 14px;
}

.smp-btn-icon:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

.smp-btn-icon.active {
  color: #38BDF8;
}

.smp-play-ring {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.65), 0 0 4px rgba(255, 255, 255, 0.5);
  background: transparent;
  padding: 0;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.smp-play-ring:hover {
  transform: scale(1.08);
  border-color: #FFFFFF;
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.85), 0 0 8px rgba(255, 255, 255, 0.7);
}

.smp-play-ring:active {
  transform: scale(0.95);
}

.smp-btn-play {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(180deg, #38BDF8 0%, #2563EB 100%);
  border: 1.5px solid #08101a;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.65);
}

.smp-btn-play svg {
  width: 12px;
  height: 12px;
}

/* Audio Spectrum Waveform Visualizer (Full Width Bottom Deck) */
.smp-waveform-deck {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  height: 38px;
  padding: 4px 4px 2px;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  margin-top: 4px;
  margin-bottom: 2px;
  border-radius: 8px;
  background: transparent;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.smp-wave-bar {
  display: block;
  flex: 1;
  max-width: 4px;
  min-width: 2px;
  margin: 0 0.8px;
  background: linear-gradient(180deg, #38BDF8 0%, #0284C7 100%);
  border-radius: 3px 3px 1px 1px;
  box-shadow: 0 0 5px rgba(56, 189, 248, 0.4);
  transform-origin: bottom;
  height: 5px;
  max-height: 28px;
  min-height: 3px;
  will-change: height, box-shadow;
  transition: opacity 0.25s ease, background 0.18s ease;
}

.smp-wave-bar.crest-bar,
.smp-wave-bar.bass-bar {
  background: linear-gradient(180deg, #A5F3FC 0%, #38BDF8 40%, #1D4ED8 100%);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.75);
}

.smp-waveform-deck.paused .smp-wave-bar {
  opacity: 0.35;
  box-shadow: none;
}

/* Footer Row: Hidden to preserve pristine visualizer layout matching design mock */
.smp-footer-row {
  display: none !important;
}

.smp-vol-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}

.smp-vol-btn {
  background: transparent;
  border: none;
  color: var(--text-muted, #71717A);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.smp-vol-btn svg {
  width: 14px;
  height: 14px;
}

.smp-vol-btn:hover {
  color: #FFFFFF;
}

.smp-vol-slider {
  width: 50px;
  height: 3px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
  outline: none;
  cursor: pointer;
}

.smp-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #38BDF8;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.8);
}

.smp-vol-slider::-moz-range-thumb {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #38BDF8;
  border: none;
  cursor: pointer;
}

.smp-bypass-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(56, 189, 248, 0.09);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 6px;
  padding: 2px 7px;
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 10px;
  font-weight: 600;
  color: #38BDF8;
  cursor: pointer;
  transition: all 0.18s ease;
}

.smp-bypass-btn svg {
  width: 11px;
  height: 11px;
}

.smp-bypass-btn:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.5);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.25);
}




/* ==============================================================================
   QUICK MUSIC PICKER & AUDIO METHOD INTERACTIVE CONTROLS
   ============================================================================== */
.am-clickable-header {
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
  border-radius: 8px;
  padding: 6px 10px;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  white-space: nowrap !important;
  flex-wrap: nowrap !important;
  user-select: none;
}

.am-clickable-header:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
}

.am-header-title,
.am-clickable-header > span:first-child {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted, #71717A);
  white-space: nowrap !important;
  transition: color 0.18s ease;
}

.am-clickable-header:hover .am-header-title,
.am-clickable-header:hover > span:first-child {
  color: var(--text-secondary, #A1A1AA);
}

.am-picker-tag {
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 8.5px;
  font-weight: 700;
  padding: 2.5px 7px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38BDF8;
  letter-spacing: 0.4px;
  white-space: nowrap !important;
  flex-shrink: 0;
  margin-left: auto;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.am-clickable-header:hover .am-picker-tag {
  background: #38BDF8;
  color: #050507;
  border-color: #38BDF8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
  transform: translateY(-0.5px);
}

.am-sidebar-nav-item {
  position: relative;
}

/* ==============================================================================
   ADMIN STUDIO SIDEBAR SECTION (MIRIP AUDIO METHOD / PILIH MUSIK)
   ============================================================================== */
.admin-sidebar-section {
  position: relative;
}

.admin-picker-tag {
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 8.5px;
  font-weight: 700;
  padding: 2.5px 7px;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #F59E0B;
  letter-spacing: 0.4px;
  white-space: nowrap !important;
  flex-shrink: 0;
  margin-left: auto;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-section-header:hover .admin-picker-tag {
  background: #F59E0B;
  color: #050507;
  border-color: #F59E0B;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
  transform: translateY(-0.5px);
}

.admin-sidebar-item {
  display: flex !important;
  align-items: center;
  position: relative;
}

.admin-sidebar-icon-ai {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38BDF8;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease, color 0.2s ease;
}

.admin-sidebar-icon-ai svg {
  width: 19px;
  height: 19px;
}

.admin-sidebar-item:hover .admin-sidebar-icon-ai,
.admin-sidebar-item.active .admin-sidebar-icon-ai {
  color: #38BDF8;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.55));
  transform: scale(1.08);
}

.admin-sidebar-icon-users {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F59E0B;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease, color 0.2s ease;
}

.admin-sidebar-icon-users svg {
  width: 19px;
  height: 19px;
}

.admin-sidebar-item:hover .admin-sidebar-icon-users,
.admin-sidebar-item.active .admin-sidebar-icon-users {
  color: #FBBF24;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.55));
  transform: scale(1.08);
}

.admin-sidebar-badge-pill {
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 8.5px;
  font-weight: 700;
  padding: 1.5px 6px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38BDF8;
  letter-spacing: 0.3px;
  margin-left: auto;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.admin-sidebar-item:hover .admin-sidebar-badge-pill {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38BDF8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.3);
}

.admin-sidebar-badge-pill.admin-badge-pending {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.45);
  color: #F87171;
  animation: pendingPulse 2s infinite ease-in-out;
}

@keyframes pendingPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(239, 68, 68, 0); }
  50% { box-shadow: 0 0 8px rgba(239, 68, 68, 0.5); }
}


/* ==============================================================================
   MUSIC PICKER MODAL WINDOW
   ============================================================================== */
.mp-modal-backdrop {
  z-index: 1050;
}

.mp-modal-window {
  max-width: 740px !important;
  width: 92vw;
  max-height: 82vh;
  height: 680px;
  display: flex;
  flex-direction: column;
  background: rgba(14, 14, 18, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 16px !important;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85), 0 0 1px rgba(255, 255, 255, 0.2);
  overflow: hidden;
  padding: 0 !important;
  animation: mpFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes mpFadeIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.mp-modal-header {
  padding: 16px 20px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mp-header-clean-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mp-header-icon-raw {
  width: 22px;
  height: 22px;
  color: #38BDF8;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.45));
  flex-shrink: 0;
}

.mp-platform-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.25);
}

.mp-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #94A3B8;
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.mp-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.18);
}

.mp-tab-btn[data-mp-platform="youtube"].active {
  background: rgba(255, 0, 0, 0.16);
  border-color: rgba(255, 0, 0, 0.5);
  color: #FFFFFF;
  box-shadow: 0 0 14px rgba(255, 0, 0, 0.3);
}

.mp-tab-btn[data-mp-platform="soundcloud"].active {
  background: rgba(255, 85, 0, 0.16);
  border-color: rgba(255, 85, 0, 0.5);
  color: #FFFFFF;
  box-shadow: 0 0 14px rgba(255, 85, 0, 0.3);
}

.mp-tab-btn[data-mp-platform="spotify"].active {
  background: rgba(29, 185, 84, 0.16);
  border-color: rgba(29, 185, 84, 0.5);
  color: #FFFFFF;
  box-shadow: 0 0 14px rgba(29, 185, 84, 0.3);
}

.mp-search-bar-row {
  padding: 12px 20px 10px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.mp-search-input-wrap {
  position: relative;
  flex: 1;
}

.mp-search-input {
  width: 100%;
  height: 40px;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0 34px 0 38px;
  color: #FFFFFF;
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mp-search-input:focus {
  border-color: #38BDF8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.3);
}

.mp-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: #71717A;
  pointer-events: none;
}

.mp-search-clear-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #71717A;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}

.mp-search-clear-btn:hover {
  color: #FFFFFF;
}

.mp-btn-search {
  height: 40px;
  padding: 0 18px;
  font-size: 13px;
  flex-shrink: 0;
}

.mp-genre-chips {
  display: flex;
  gap: 6px;
  padding: 0 20px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.mp-genre-chips::-webkit-scrollbar {
  display: none;
}

.mp-chip {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  padding: 4px 12px;
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 11.5px;
  font-weight: 500;
  color: #94A3B8;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mp-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.mp-chip.active {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  font-weight: 600;
}

.mp-content-area {
  flex: 1;
  overflow-y: auto;
  padding: 4px 20px 20px;
  position: relative;
}

.mp-loading-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 50px 20px;
  color: #94A3B8;
  font-size: 13px;
}

.mp-track-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.mp-track-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.mp-track-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateX(3px);
}

.mp-track-item.playing-now {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.35);
}

.mp-track-cover-box {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #18181B;
}

.mp-track-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-track-info {
  flex: 1;
  min-width: 0;
}

.mp-track-title {
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 13.5px;
  font-weight: 600;
  color: #FFFFFF;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp-track-artist-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #94A3B8;
}

.mp-track-artist {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}

.mp-track-platform-tag {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.mp-track-platform-tag.youtube {
  background: rgba(255, 0, 0, 0.15);
  color: #FF4444;
}

.mp-track-platform-tag.soundcloud {
  background: rgba(255, 85, 0, 0.15);
  color: #FF7700;
}

.mp-track-platform-tag.spotify {
  background: rgba(29, 185, 84, 0.15);
  color: #1DB954;
}

.mp-track-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.mp-track-play-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.mp-track-play-btn:hover {
  background: #38BDF8;
  border-color: #38BDF8;
  color: #050507;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.45);
  transform: scale(1.04);
}

.mp-track-convert-btn {
  padding: 6px 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #94A3B8;
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.mp-track-convert-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.btn-play-player-card {
  border-color: rgba(255, 0, 0, 0.35) !important;
  color: #FF5555 !important;
}

.btn-play-player-card:hover {
  background: rgba(255, 0, 0, 0.15) !important;
  border-color: rgba(255, 0, 0, 0.6) !important;
  color: #FFFFFF !important;
}

/* Music Picker + Card Add-to-Queue Buttons */
.mp-track-queue-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 9999px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38BDF8;
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.mp-track-queue-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38BDF8;
  color: #FFFFFF;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
  transform: scale(1.04);
}

.btn-queue-card {
  border-color: rgba(56, 189, 248, 0.35) !important;
  color: #38BDF8 !important;
}

.btn-queue-card svg {
  color: #38BDF8 !important;
  stroke: #38BDF8 !important;
  transition: all 0.16s ease;
}

.btn-queue-card:hover {
  background: rgba(56, 189, 248, 0.15) !important;
  border-color: #38BDF8 !important;
  color: #FFFFFF !important;
}

.btn-queue-card:hover svg {
  color: #FFFFFF !important;
  stroke: #FFFFFF !important;
}

/* ==============================================================================
   SIDEBAR PLAYER QUEUE (WAITING LIST)
   ============================================================================== */
.smp-header-right {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.smp-queue-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 3px 8px;
  color: var(--text-secondary, #94A3B8);
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 9px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  flex-shrink: 0;
}

.smp-queue-toggle-btn:hover,
.smp-queue-toggle-btn.active {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.45);
  color: #38BDF8;
}

.smp-queue-count-badge {
  background: #38BDF8;
  color: #050507;
  font-size: 8px;
  font-weight: 800;
  padding: 0 4.5px;
  border-radius: 9999px;
  min-width: 12px;
  height: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.2s ease;
}

.smp-platform-pill.idle,
.smp-platform-pill.offline {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted, #71717A);
  border-color: rgba(255, 255, 255, 0.12);
}

.smp-track-box.clickable {
  cursor: pointer;
  border-radius: 8px;
  padding: 2px;
  transition: background 0.15s ease;
}

.smp-track-box.clickable:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* Queue Overlay Drawer - Modern Glassmorphism */
.smp-queue-drawer {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 28, 0.78);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border-radius: 14px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  padding: 11px 11px 9px;
  box-sizing: border-box;
  animation: smpDrawerIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(56, 189, 248, 0.24);
  box-shadow: 0 16px 40px -6px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

@keyframes smpDrawerIn {
  from { opacity: 0; transform: translateY(6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.smp-queue-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  gap: 8px;
}

.smp-queue-drawer-title {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
}

.smp-queue-title-icon {
  width: 16px;
  height: 16px;
  color: #38BDF8;
  flex-shrink: 0;
  filter: drop-shadow(0 0 5px rgba(56, 189, 248, 0.5));
}

.smp-queue-title-text {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  white-space: nowrap;
  line-height: 1;
}

.smp-queue-qty {
  display: none !important;
}

.smp-queue-drawer-tools {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.smp-queue-clear-btn {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #EF4444;
  border-radius: 4px;
  font-size: 8.5px;
  font-weight: 600;
  padding: 2px 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.smp-queue-clear-btn:hover {
  background: #EF4444;
  color: #FFFFFF;
}

.smp-queue-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary, #94A3B8);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
  flex-shrink: 0;
}

.smp-queue-close-btn:hover {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.45);
  color: #EF4444;
  transform: rotate(90deg) scale(1.08);
}

.smp-queue-items-wrap {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-right: 2px;
}

.smp-queue-items-wrap::-webkit-scrollbar {
  width: 4px;
}

.smp-queue-items-wrap::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}

.smp-queue-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 8px;
  color: var(--text-muted, #71717A);
  gap: 4px;
  height: 100%;
}

.smp-queue-empty p {
  font-size: 11px;
  font-weight: 600;
  color: #E2E8F0;
  margin: 0;
}

.smp-queue-empty span {
  font-size: 9.5px;
  color: var(--text-muted, #71717A);
  line-height: 1.3;
}

.smp-queue-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 7px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.smp-queue-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(56, 189, 248, 0.28);
  transform: translateY(-1px);
}

.smp-queue-item.active {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.16) 0%, rgba(14, 165, 233, 0.06) 100%);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.smp-queue-item-idx {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted, #71717A);
  width: 14px;
  text-align: center;
  flex-shrink: 0;
}

.smp-queue-item.active .smp-queue-item-idx {
  color: #38BDF8;
}

.smp-queue-item-cover {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: #000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.smp-queue-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.smp-queue-item-title {
  font-size: 10.5px;
  font-weight: 600;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.smp-queue-item.active .smp-queue-item-title {
  color: #38BDF8;
}

.smp-queue-item-meta {
  font-size: 9px;
  color: var(--text-muted, #94A3B8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.smp-queue-item-del {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted, #71717A);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.16s ease;
  flex-shrink: 0;
  padding: 0;
}

.smp-queue-item-del:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.45);
  color: #EF4444;
  transform: scale(1.08);
}

/* ==========================================================================
   AUTHENTICATION & ADMIN USER MANAGEMENT (ACC SYSTEM)
   ========================================================================== */
.yt-btn-primary-auth {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(14, 165, 233, 0.38));
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38BDF8 !important;
  font-weight: 600;
  padding: 0 14px;
  height: 36px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.yt-btn-primary-auth:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.32), rgba(14, 165, 233, 0.5));
  border-color: #38BDF8;
  color: #FFFFFF !important;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
  transform: translateY(-1px);
}

.auth-modal-nav-tabs {
  display: flex;
  background: rgba(15, 23, 42, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 16px;
  gap: 6px;
}

.auth-nav-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary, #94A3B8);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.auth-nav-tab:hover {
  color: var(--text-primary, #FFFFFF);
}

.auth-nav-tab.active {
  color: #38BDF8;
  border-bottom-color: #38BDF8;
  font-weight: 600;
}

.auth-tab-panel {
  display: none;
  animation: authPanelFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-tab-panel.active {
  display: block;
}

@keyframes authPanelFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-feedback-box {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.4;
  margin-top: 2px;
}

.auth-feedback-box.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #F87171;
}

.auth-feedback-box.success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34D399;
}

.user-status-pill {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 10px;
  display: inline-block;
}

.user-status-pill.approved {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.user-status-pill.pending {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.user-status-pill.rejected {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Pending Approval Top Banner */
.pending-approval-banner {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0.05));
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 16px 20px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-sizing: border-box;
}

.pending-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #F1F5F9;
}

/* Admin Users Management Window */
.admin-users-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.admin-user-search-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 13px;
  color: #FFFFFF;
  width: 220px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s ease;
}

.admin-user-search-input:focus {
  border-color: #38BDF8;
}

.admin-users-filter-tabs {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  padding: 3px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-filter-tab {
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.admin-filter-tab.active {
  background: rgba(56, 189, 248, 0.15);
  color: #38BDF8;
  font-weight: 600;
}

.admin-users-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 55vh;
  overflow-y: auto;
  padding-right: 4px;
}

.admin-user-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background 0.15s ease;
}

.admin-user-card:hover {
  background: rgba(255, 255, 255, 0.05);
}

.admin-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.admin-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38BDF8, #6366F1);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

.admin-user-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.admin-user-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-user-meta {
  font-size: 11.5px;
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-user-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-acc-approve {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34D399;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-acc-approve:hover {
  background: rgba(16, 185, 129, 0.35);
  border-color: #34D399;
  color: #FFFFFF;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.btn-acc-reject {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #F87171;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-acc-reject:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #FFFFFF;
}

.btn-acc-delete {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94A3B8;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-acc-delete:hover {
  color: #EF4444;
  border-color: rgba(239, 68, 68, 0.3);
}

/* ==========================================================================
   PERFORMANCE & RESPONSIVENESS OPTIMIZATIONS (ALL DEVICE SPECS)
   ========================================================================== */
/* Hardware acceleration and rendering performance */
.yt-video-grid-3col,
.library-grid,
.mp-track-list {
  content-visibility: auto;
  contain-intrinsic-size: 1px 300px;
}

/* Reduce lag on low-spec hardware: eliminate synchronous repaint triggers */
* {
  box-sizing: border-box;
}

/* Mobile & Tablet Full Responsiveness */
@media (max-width: 768px) {
  .yt-header {
    padding: 0 12px;
    gap: 8px;
  }

  .yt-search-container {
    max-width: 100%;
    margin: 0 4px;
  }

  .yt-auth-group {
    gap: 6px;
  }

  .yt-btn-auth span {
    display: none;
  }

  .yt-btn-primary-auth span {
    display: inline;
  }

  .pending-approval-banner {
    margin: 10px 12px 0 12px;
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-users-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-user-search-input {
    width: 100%;
  }

  .admin-user-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-user-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* ==========================================================================
   CLOUDRAT STUDIO — LOCKSCREEN BLUR & PENDING APPROVAL GATEKEEPER
   ========================================================================== */
.app-workspace-content {
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 100dvh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: filter 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s ease, opacity 0.4s ease;
}

body.is-locked {
  overflow: auto;
}

.app-workspace-content.is-locked {
  transition: opacity 0.3s ease;
}

/* Modals backdrops for Lockscreen & Auth */
.cr-auth-backdrop,
.cr-gatekeeper-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: radial-gradient(circle at 50% 35%, rgba(15, 23, 42, 0.85) 0%, rgba(3, 7, 18, 0.96) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  pointer-events: auto !important;
  cursor: default;
  animation: lockscreenFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cr-auth-backdrop[style*="display: none"],
.cr-gatekeeper-backdrop[style*="display: none"] {
  display: none !important;
}

@keyframes lockscreenFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Ensure the modal cards themselves are ALWAYS crisp, sharp, unblurred, and interactive */
.cr-auth-modal-window,
.cr-gatekeeper-card {
  filter: none !important;
  -webkit-filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  opacity: 1 !important;
  z-index: 100000 !important;
  position: relative !important;
  pointer-events: auto !important;
}

@keyframes authModalShake {
  0%, 100% { transform: none; }
}

.cr-auth-modal-window.auth-card-shake,
.cr-gatekeeper-card.auth-card-shake {
  animation: none !important;
  transform: none !important;
}

/* GATEKEEPER CARD: PENDING ACC */
.cr-gatekeeper-card {
  width: 490px;
  max-width: 95%;
  background: linear-gradient(180deg, rgba(20, 26, 42, 0.98) 0%, rgba(10, 14, 25, 1) 100%) !important;
  border: 1px solid rgba(245, 158, 11, 0.4) !important;
  border-radius: 22px;
  padding: 34px 28px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 50px rgba(245, 158, 11, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: gatekeeperScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes gatekeeperScaleUp {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.cr-gatekeeper-glow-ring {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.22) 0%, rgba(245, 158, 11, 0.04) 70%, transparent 100%);
  border: 2px solid rgba(245, 158, 11, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.28);
  animation: gatekeeperPulse 2.4s infinite ease-in-out;
}

@keyframes gatekeeperPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 24px rgba(245, 158, 11, 0.28); }
  50% { transform: scale(1.06); box-shadow: 0 0 36px rgba(245, 158, 11, 0.45); }
}

.cr-gatekeeper-icon-svg {
  width: 32px;
  height: 32px;
  color: #F59E0B;
}

.cr-gatekeeper-badge-row {
  margin-bottom: 10px;
}

.cr-gatekeeper-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #F59E0B;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
}

.cr-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #F59E0B;
  box-shadow: 0 0 8px #F59E0B;
  animation: pulseDotAnim 1.6s infinite ease-in-out;
}

@keyframes pulseDotAnim {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.3); }
}

.cr-gatekeeper-title {
  font-family: 'Outfit', sans-serif;
  font-size: 21px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 8px 0;
  letter-spacing: -0.3px;
}

.cr-gatekeeper-subtitle {
  font-size: 13px;
  color: #94A3B8;
  line-height: 1.55;
  margin: 0 0 18px 0;
  max-width: 420px;
}

.cr-gatekeeper-user-box {
  width: 100%;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  text-align: left;
  box-sizing: border-box;
}

.cr-gatekeeper-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #000000;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.cr-gatekeeper-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cr-gatekeeper-user-info {
  min-width: 0;
  flex: 1;
}

.cr-gatekeeper-user-name {
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cr-gatekeeper-user-meta {
  font-size: 12px;
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  flex-wrap: wrap;
}

.cr-gatekeeper-provider-tag {
  background: rgba(255, 255, 255, 0.08);
  color: #E2E8F0;
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
}

.cr-gatekeeper-dot {
  color: #64748B;
}

.cr-gatekeeper-status-text {
  color: #CBD5E1;
}

.cr-gatekeeper-scan-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11.5px;
  color: #94A3B8;
  background: rgba(15, 23, 42, 0.6);
  border: 1px dashed rgba(245, 158, 11, 0.25);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 18px;
  box-sizing: border-box;
}

.cr-gatekeeper-scan-spinner {
  width: 13px;
  height: 13px;
  border: 2px solid rgba(245, 158, 11, 0.2);
  border-top-color: #F59E0B;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

.cr-gatekeeper-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.cr-btn-glow-primary {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #FFFFFF !important;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  height: 42px;
  border-radius: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.35);
  width: 100%;
  box-sizing: border-box;
}

.cr-btn-glow-primary:hover {
  background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%);
  border-color: #38BDF8;
  box-shadow: 0 6px 22px rgba(56, 189, 248, 0.45);
  transform: translateY(-1px);
}

.cr-btn-glow-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.cr-btn-glass-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #CBD5E1 !important;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  height: 38px;
  border-radius: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.18s ease;
  width: 100%;
  box-sizing: border-box;
}

.cr-btn-glass-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #FFFFFF !important;
}

.cr-gatekeeper-footer-tip {
  font-size: 11px;
  color: #64748B;
  margin-top: 14px;
  line-height: 1.45;
}

/* ==========================================================================
   REDESIGNED CLOUDRAT AUTHENTICATION MODAL (SAAS GLASSMORPHISM)
   ========================================================================== */
.cr-auth-modal-window {
  max-width: 470px !important;
  width: 94% !important;
  background: linear-gradient(180deg, rgba(18, 24, 38, 0.96) 0%, rgba(10, 14, 25, 0.98) 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.24) !important;
  border-radius: 22px !important;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), 0 0 50px rgba(56, 189, 248, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  overflow: hidden;
  animation: authModalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authModalPop {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.cr-auth-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  gap: 12px;
}

.cr-auth-brand-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.cr-auth-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(99, 102, 241, 0.3));
  border: 1px solid rgba(56, 189, 248, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38BDF8;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.2);
}

.cr-auth-logo-icon svg {
  width: 20px;
  height: 20px;
}

.cr-auth-title-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cr-auth-brand-pill {
  font-size: 9.5px;
  font-weight: 700;
  color: #38BDF8;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.cr-auth-title {
  font-family: 'Outfit', sans-serif;
  font-size: 17.5px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cr-auth-subtitle {
  font-size: 11.5px;
  color: #94A3B8;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cr-auth-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.cr-auth-lock-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #F59E0B;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 12px;
}

.cr-auth-close-btn {
  font-size: 20px;
  line-height: 1;
  color: #94A3B8;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.15s ease;
}

.cr-auth-close-btn:hover {
  color: #FFFFFF;
}

/* Segmented Pill Tabs */
.cr-auth-nav-tabs {
  display: flex;
  background: rgba(15, 23, 42, 0.7);
  padding: 6px 14px;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cr-auth-nav-pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 8px 10px;
  color: #94A3B8;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.cr-auth-nav-pill:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.04);
}

.cr-auth-nav-pill.active {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.35);
  color: #38BDF8;
  font-weight: 600;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.18);
}

.cr-auth-modal-body {
  padding: 22px 24px 26px 24px !important;
}

.cr-auth-panel-hint {
  font-size: 12.5px;
  color: #94A3B8;
  margin: 0 0 16px 0;
  line-height: 1.5;
}

.cr-auth-notice-amber {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12px;
  color: #FDE68A;
  line-height: 1.45;
}

.cr-auth-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.cr-input-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cr-input-label {
  font-size: 10.5px;
  font-weight: 700;
  color: #94A3B8;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.cr-input-box {
  position: relative;
  display: flex;
  align-items: center;
}

.cr-input-icon {
  position: absolute;
  left: 12px;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.cr-input-icon svg {
  width: 15px;
  height: 15px;
}

.cr-text-input {
  width: 100%;
  height: 42px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0 14px 0 38px;
  font-family: inherit;
  font-size: 13.5px;
  color: #FFFFFF;
  outline: none;
  box-sizing: border-box;
  transition: all 0.18s ease;
}

.cr-text-input:focus {
  border-color: #38BDF8;
  background: rgba(15, 23, 42, 0.85);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

.cr-text-input::placeholder {
  color: #475569;
}

.cr-btn-block {
  width: 100%;
  margin-top: 4px;
}

.cr-auth-switch-note {
  font-size: 12px;
  color: #64748B;
  text-align: center;
  margin-top: 14px;
  line-height: 1.4;
}

.cr-auth-switch-note a {
  color: #38BDF8;
  text-decoration: none;
  font-weight: 600;
}

.cr-auth-switch-note a:hover {
  text-decoration: underline;
}

/* OAuth Buttons */
.cr-oauth-button-stack {
  display: flex;
  flex-direction: column;
  gap: 11px;
  width: 100%;
}

.cr-btn-oauth-google {
  width: 100%;
  height: 44px;
  border-radius: 22px;
  background: #FFFFFF;
  color: #0F172A;
  border: 1px solid rgba(255, 255, 255, 0.9);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.cr-btn-oauth-google:hover {
  background: #F8FAFC;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.18);
}

.cr-btn-oauth-discord {
  width: 100%;
  height: 44px;
  border-radius: 22px;
  background: #5865F2;
  color: #FFFFFF;
  border: 1px solid rgba(88, 101, 242, 0.4);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 4px 16px rgba(88, 101, 242, 0.35);
}

.cr-btn-oauth-discord:hover {
  background: #4752C4;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.48);
}

/* ==============================================================================
   AI PHOTO UPSCALER 4X (ADMIN ONLY) — DIRECTML / REAL-ESRGAN STYLES
   ============================================================================== */
.upscaler-view {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 16px 28px 48px;
  box-sizing: border-box;
}

.upscaler-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

/* ==============================================================================
   STUDIO HEADER BANNER
   ============================================================================== */
.upscaler-header {
  position: relative;
  background: radial-gradient(120% 120% at 0% 0%, rgba(56, 189, 248, 0.08) 0%, rgba(15, 23, 42, 0.75) 45%, rgba(10, 11, 16, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 20px;
  padding: 26px 30px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
}

.upscaler-header-mesh-glow {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(139, 92, 246, 0.08) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(24px);
}

.upscaler-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.upscaler-pill-admin {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  background: rgba(244, 63, 94, 0.14);
  color: #FB7185;
  border: 1px solid rgba(244, 63, 94, 0.35);
  padding: 3.5px 9px;
  border-radius: 20px;
  text-transform: uppercase;
}

.upscaler-pill-hw {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 11px;
  font-weight: 600;
  background: rgba(56, 189, 248, 0.12);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.32);
  padding: 3.5px 11px;
  border-radius: 20px;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.15);
}

.upscaler-dot-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38BDF8;
  box-shadow: 0 0 8px #38BDF8;
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.upscaler-pill-scale {
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 3.5px 9px;
  border-radius: 20px;
  text-transform: uppercase;
}

.upscaler-pill-feat {
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 10px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  color: #94A3B8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3.5px 8px;
  border-radius: 20px;
}

.upscaler-title {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 26px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 8px 0;
  letter-spacing: -0.4px;
  background: linear-gradient(135deg, #FFFFFF 40%, #7DD3FC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.upscaler-desc {
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 13.5px;
  color: #94A3B8;
  margin: 0;
  line-height: 1.6;
  max-width: 860px;
}

.upscaler-desc strong {
  color: #F1F5F9;
  font-weight: 600;
}

/* ==============================================================================
   WORKSPACE GRID & CARDS
   ============================================================================== */
.upscaler-grid {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 24px;
  align-items: start;
  width: 100%;
}

@media (max-width: 1100px) {
  .upscaler-grid {
    grid-template-columns: 1fr;
  }
}

.upscaler-card {
  background: rgba(13, 17, 26, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
}

.upscaler-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.upscaler-card-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.upscaler-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: #38BDF8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.upscaler-icon-badge.badge-green {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.28);
  color: #34D399;
}

.upscaler-icon-badge svg {
  width: 18px;
  height: 18px;
}

.upscaler-card-title-group h3 {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 16px;
  font-weight: 700;
  color: #F8FAFC;
  margin: 0;
  letter-spacing: -0.2px;
}

.upscaler-subhead {
  font-size: 11.5px;
  color: #64748B;
  display: block;
  margin-top: 2px;
}

.upscaler-fmt-badge {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 700;
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 2.5px 7px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

/* ==============================================================================
   INTERACTIVE DROPZONE & PREVIEWS
   ============================================================================== */
.upscaler-dropzone {
  border: 1.5px dashed rgba(56, 189, 248, 0.28);
  border-radius: 12px;
  background: radial-gradient(circle at 50% 30%, rgba(56, 189, 248, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  padding: 14px 18px;
  text-align: center;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  min-height: 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.upscaler-dropzone:hover,
.upscaler-dropzone.drag-active {
  border-color: #38BDF8;
  background: rgba(56, 189, 248, 0.08);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.18);
  transform: translateY(-1px);
}

.dropzone-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
}

.upscaler-dropzone.has-image .dropzone-content {
  display: none !important;
}

.dropzone-icon-circle {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  max-width: 38px;
  max-height: 38px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38BDF8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.18);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.upscaler-dropzone:hover .dropzone-icon-circle {
  transform: scale(1.08);
}

.dropzone-prompt-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 2px;
}

.dropzone-prompt-text h4 {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 13.5px;
  font-weight: 600;
  color: #F1F5F9;
  margin: 0;
  line-height: 1.3;
}

.dropzone-hint {
  font-size: 11px;
  color: #64748B;
  font-weight: 500;
}

.dropzone-icon-circle svg {
  width: 20px;
  height: 20px;
  max-width: 20px;
  max-height: 20px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  display: block;
}

/* Loaded State - Sleek Compact Horizontal Layout */
.dropzone-loaded {
  width: 100%;
  display: none;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.upscaler-dropzone.has-image .dropzone-loaded {
  display: flex !important;
}

.dropzone-thumb-wrapper {
  position: relative;
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  background: #020617;
  flex-shrink: 0;
}

.dropzone-thumb {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.dropzone-thumb-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(2, 6, 23, 0.85);
  color: #38BDF8;
  font-size: 8px;
  font-weight: 700;
  text-align: center;
  padding: 1px 0;
  letter-spacing: 0.4px;
}

.dropzone-loaded-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.dropzone-filename {
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 12.5px;
  font-weight: 600;
  color: #F8FAFC;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropzone-filemeta {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 600;
  color: #38BDF8;
}

.upscaler-btn-change {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 11px;
  border-radius: 6px;
  flex-shrink: 0;
}

/* ==============================================================================
   RESOLUTION SELECTOR (CHOICE: 1080p, 2K, 4K)
   ============================================================================== */
.ai-resolution-picker-wrap {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-picker-label {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #94A3B8;
}

.ai-picker-res-estimate {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 600;
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 6px;
  padding: 2px 8px;
}

.ai-segmented-control {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: rgba(5, 7, 12, 0.7);
  padding: 5px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-seg-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  gap: 2px;
}

.ai-seg-icon {
  color: #64748B;
  margin-bottom: 2px;
  transition: color 0.2s ease;
}

.ai-seg-icon svg {
  width: 15px;
  height: 15px;
}

.ai-seg-title {
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 11px;
  font-weight: 700;
  color: #CBD5E1;
  transition: color 0.2s ease;
}

.ai-seg-sub {
  font-size: 9px;
  color: #64748B;
  transition: color 0.2s ease;
}

.ai-seg-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.ai-seg-btn.active {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.18);
}

.ai-seg-btn.active .ai-seg-icon {
  color: #38BDF8;
}

.ai-seg-btn.active .ai-seg-title {
  color: #38BDF8;
}

.ai-seg-btn.active .ai-seg-sub {
  color: #93C5FD;
}

/* ==============================================================================
   NEURAL TUNING SLIDERS DRAWER
   ============================================================================== */
.dlss5-sliders-panel {
  margin-top: 16px;
  background: rgba(5, 7, 12, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dlss5-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  gap: 8px;
}

.dlss5-panel-title-wrap {
  display: flex;
  flex-direction: column;
}

.dlss5-panel-title {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 12px;
  font-weight: 700;
  color: #F1F5F9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dlss5-panel-desc {
  font-size: 10px;
  color: #64748B;
  margin-top: 1px;
}

.dlss5-header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dlss5-quick-presets {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-dlss-preset {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94A3B8;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-dlss-preset:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.35);
  color: #38BDF8;
}

.dlss5-reset-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94A3B8;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.dlss5-reset-btn:hover {
  color: #EF4444;
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.1);
}

.dlss5-slider-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dlss5-slider-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: #94A3B8;
}

.dlss5-val-badge {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 1.5px 7px;
  border-radius: 4px;
}

.dlss5-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.dlss5-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #38BDF8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.7);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dlss5-range::-webkit-slider-thumb:hover {
  transform: scale(1.25);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.9);
}

.dlss5-passes-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11.5px;
  color: #94A3B8;
}

.dlss5-select-passes {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #F1F5F9;
  font-size: 11px;
  font-weight: 600;
  border-radius: 8px;
  padding: 5px 10px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.18s ease;
}

.dlss5-select-passes:hover {
  border-color: #38BDF8;
}

/* ==============================================================================
   RESOLUTION HUD SPECS BOX (STREAMLINED PREMIUM DESIGN)
   ============================================================================== */
.upscaler-specs-box {
  background: linear-gradient(135deg, rgba(14, 20, 32, 0.75) 0%, rgba(9, 13, 22, 0.88) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin: 16px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.upscaler-specs-box:hover {
  border-color: rgba(56, 189, 248, 0.22);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45), 0 0 20px rgba(56, 189, 248, 0.06);
}

.upscaler-spec-col,
.upscaler-spec-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.upscaler-spec-col.highlight,
.upscaler-spec-item.highlight {
  text-align: right;
  align-items: flex-end;
}

.spec-header-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.spec-header-row.right {
  justify-content: flex-end;
}

.spec-tag {
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #94A3B8;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.spec-tag.highlight {
  background: rgba(16, 185, 129, 0.12);
  color: #34D399;
  border-color: rgba(16, 185, 129, 0.28);
}

.spec-label {
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 11px;
  font-weight: 600;
  color: #64748B;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spec-val {
  font-family: var(--font-display, 'Outfit', var(--font-sans, sans-serif));
  font-size: 15px;
  font-weight: 700;
  color: #F1F5F9;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.spec-val.highlight {
  color: #34D399;
  text-shadow: 0 0 14px rgba(52, 211, 153, 0.25);
}

/* Center connector flow with balanced lines and capsule */
.upscaler-spec-connector,
.upscaler-spec-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 90px;
}

.spec-track-line {
  flex: 1;
  height: 1px;
}

.spec-track-line.left {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0%, rgba(56, 189, 248, 0.35) 100%);
}

.spec-track-line.right {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.35) 0%, rgba(52, 211, 153, 0.35) 100%);
}

.spec-multiplier-capsule {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 3.5px 9px;
  border-radius: 20px;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.16);
  flex-shrink: 0;
}

.arrow-multiplier {
  font-family: var(--font-sans, 'Inter', monospace);
  font-size: 11px;
  font-weight: 700;
  color: #38BDF8;
  letter-spacing: 0.02em;
}

.spec-arrow-icon {
  width: 12px;
  height: 12px;
  color: #38BDF8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .upscaler-specs-box {
    padding: 12px 14px;
    gap: 10px;
  }
  .spec-val {
    font-size: 13px;
  }
  .upscaler-spec-connector {
    min-width: 70px;
  }
}

/* ==============================================================================
   PRIMARY ACTION CTA BUTTON
   ============================================================================== */
.upscaler-action-btn {
  position: relative;
  width: 100%;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0284C7 0%, #38BDF8 50%, #06B6D4 100%);
  color: #030712;
  border: none;
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.35);
  overflow: hidden;
}

.upscaler-action-btn:hover:not(:disabled) {
  transform: translateY(-1.5px);
  box-shadow: 0 8px 28px rgba(56, 189, 248, 0.5);
  background: linear-gradient(135deg, #0369A1 0%, #38BDF8 40%, #22D3EE 100%);
}

.upscaler-action-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 12px rgba(56, 189, 248, 0.3);
}

.upscaler-action-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  background: #334155;
  color: #94A3B8;
}

.action-btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: all 0.5s ease;
}

.upscaler-action-btn:hover:not(:disabled) .action-btn-shine {
  left: 100%;
}

/* ==============================================================================
   PROGRESS & STATUS
   ============================================================================== */
.upscaler-progress-wrap {
  margin-top: 14px;
  padding: 12px 14px;
  background: rgba(56, 189, 248, 0.05);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.upscaler-spinner-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #CBD5E1;
}

.upscaler-mini-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(56, 189, 248, 0.2);
  border-top-color: #38BDF8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

.upscaler-progress-bar {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.upscaler-progress-bar-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #38BDF8, #10B981, #38BDF8);
  background-size: 200% 100%;
  animation: progress-indet 1.5s infinite linear;
}

@keyframes progress-indet {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ==============================================================================
   RIGHT PANEL: PREVIEW STAGE & RESULTS
   ============================================================================== */
.upscaler-card-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.upscaler-metrics-pill {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.12);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 4px 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.upscaler-preview-stage {
  min-height: 480px;
  height: 540px;
  max-height: 600px;
  background: radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.75) 0%, rgba(7, 10, 16, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), inset 0 0 40px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Futuristic Empty State Scanner */
.upscaler-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 30px 20px;
  max-width: 440px;
}

.empty-state-scanner {
  position: relative;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.scanner-grid-box {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(56, 189, 248, 0.05);
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38BDF8;
}

.empty-state-svg {
  width: 34px;
  height: 34px;
}

.scanner-laser {
  position: absolute;
  top: 10px;
  left: 8px;
  right: 8px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #38BDF8, transparent);
  box-shadow: 0 0 10px #38BDF8;
  animation: laserScan 2.4s ease-in-out infinite;
}

@keyframes laserScan {
  0%, 100% { top: 12px; opacity: 0.2; }
  50% { top: 58px; opacity: 1; }
}

.empty-state-title {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 16px;
  font-weight: 700;
  color: #F8FAFC;
  margin: 0;
}

.empty-state-desc {
  font-size: 13px;
  color: #64748B;
  line-height: 1.6;
  margin: 0;
}

.empty-state-features {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.feat-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #94A3B8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 6px;
}

.feat-badge-item svg {
  width: 12px;
  height: 12px;
  color: #38BDF8;
}

/* Active Result */
.upscaler-active-result {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==============================================================================
   SPLIT SLIDER BEFORE / AFTER INTERACTIVE COMPARISON
   ============================================================================== */
.split-slider-container {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  max-height: 520px;
  background: #000000;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  user-select: none;
  touch-action: none;
  line-height: 0;
}

.split-layer {
  display: block;
  user-select: none;
  pointer-events: none;
}

.split-after {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 100%;
  max-height: 520px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.split-before-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  z-index: 2;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.6);
}

.split-before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  user-select: none;
  pointer-events: none;
}

.split-badge {
  position: absolute;
  top: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 6;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  max-width: calc(50% - 24px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.badge-before {
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  color: #CBD5E1;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.badge-after {
  right: 12px;
  background: rgba(6, 78, 59, 0.88);
  color: #34D399;
  border: 1px solid rgba(52, 211, 153, 0.4);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.35);
}

.split-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 44px;
  transform: translateX(-50%);
  z-index: 5;
  cursor: ew-resize;
  cursor: col-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  user-select: none;
  touch-action: none;
}

.split-handle-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: #FFFFFF;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.75), 0 0 2px rgba(255, 255, 255, 0.6);
  pointer-events: none;
}

.split-handle-circle {
  position: relative;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  max-width: 38px;
  max-height: 38px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  flex-grow: 0;
  box-sizing: border-box;
  background: #FFFFFF;
  color: #0F172A;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), 0 0 0 2.5px #38BDF8, inset 0 1px 1px rgba(255, 255, 255, 0.9);
  z-index: 6;
  cursor: ew-resize;
  cursor: col-resize;
  transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.16s ease;
}

.split-handle:hover .split-handle-circle {
  transform: scale(1.12);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55), 0 0 0 3.5px #38BDF8, 0 0 14px rgba(56, 189, 248, 0.5);
}

.split-handle:active .split-handle-circle {
  transform: scale(1.04);
}

.split-handle-arrows {
  width: 16px;
  height: 16px;
  stroke: #0F172A;
  pointer-events: none;
  flex-shrink: 0;
}

/* ==============================================================================
   INTERACTIVE PAN & ZOOM (DRAG TO PAN + MOUSE WHEEL ZOOM)
   ============================================================================== */
.upscaler-zoom-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 3px 5px;
  border-radius: 10px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.btn-zoom-action {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #E2E8F0;
  width: 25px;
  height: 25px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}

.btn-zoom-action:hover {
  background: rgba(56, 189, 248, 0.22);
  color: #38BDF8;
  border-color: rgba(56, 189, 248, 0.45);
  transform: translateY(-1px);
}

.zoom-level-badge {
  min-width: 42px;
  text-align: center;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  color: #FBBF24;
  padding: 0 3px;
  user-select: none;
}

.btn-zoom-preset {
  background: transparent;
  border: 1px solid transparent;
  color: #94A3B8;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-zoom-preset:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #F8FAFC;
}

.btn-zoom-preset.active {
  background: rgba(245, 158, 11, 0.2);
  color: #FBBF24;
  border-color: rgba(245, 158, 11, 0.4);
  font-weight: 700;
}

.btn-zoom-reset {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94A3B8;
  width: 25px;
  height: 25px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-left: 2px;
  padding: 0;
}

.btn-zoom-reset:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.25);
  transform: rotate(-45deg);
}

/* Floating Pan Drag Hint */
.zoom-pan-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #BAE6FD;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  z-index: 10;
  pointer-events: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
  transition: opacity 0.3s ease;
}

.zoom-pan-hint svg {
  color: #38BDF8;
  animation: pulsePanHint 2s infinite ease-in-out;
}

@keyframes pulsePanHint {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
}

/* Pan & Drag Viewport Modes */
.upscaler-preview-stage.can-pan {
  cursor: grab !important;
}

.upscaler-preview-stage.is-panning {
  cursor: grabbing !important;
  user-select: none !important;
}

.upscaler-preview-stage.can-pan .split-slider-container {
  cursor: grab;
}

.upscaler-preview-stage.is-panning .split-slider-container {
  cursor: grabbing;
}

.upscaler-active-result {
  transform-origin: center center;
  will-change: transform;
  transition: transform 0.12s cubic-bezier(0.2, 0, 0, 1);
}

.upscaler-active-result.is-dragging-pan {
  transition: none !important;
}

/* ==============================================================================
   VIEW MODES & STANDALONE PREVIEW
   ============================================================================== */
.upscaler-view-modes {
  display: inline-flex;
  gap: 4px;
  background: rgba(5, 7, 12, 0.7);
  padding: 3px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-view-mode {
  background: transparent;
  border: 1px solid transparent;
  color: #94A3B8;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-view-mode:hover {
  color: #F1F5F9;
  background: rgba(255, 255, 255, 0.05);
}

.btn-view-mode.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38BDF8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.standalone-preview-wrap {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  max-height: 520px;
  background: #000000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  line-height: 0;
}

.standalone-preview-img {
  display: block;
  max-width: 100%;
  max-height: 520px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.standalone-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  background: rgba(239, 68, 68, 0.92);
  color: #FFFFFF;
  border-radius: 6px;
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  z-index: 10;
  white-space: nowrap;
  max-width: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==============================================================================
   FOOTER ACTIONS
   ============================================================================== */
.upscaler-footer-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.upscaler-btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #059669 0%, #10B981 100%);
  color: #FFFFFF;
  border: none;
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.upscaler-btn-download:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

/* ==============================================================================
   VISUAL ENHANCER NATIVE PIPELINE STAGES (GLASSMORPHIC ACCORDION & SCROLL FRAME)
   ============================================================================== */
.ve-pipeline-wrapper {
  margin-top: 14px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s ease;
}

.ve-pipeline-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  user-select: none;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ve-pipeline-dropdown-header:hover {
  background: rgba(255, 255, 255, 0.05);
}

.ve-pipeline-dropdown-header.collapsed {
  border-bottom: none;
}

.ve-pipeline-title-group {
  display: flex;
  align-items: center;
  gap: 9px;
}

.ve-pipeline-badge-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38BDF8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ve-pipeline-header-title {
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 12px;
  font-weight: 600;
  color: #E2E8F0;
}

.ve-pipeline-active-count {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  letter-spacing: 0.3px;
}

.ve-pipeline-chevron-btn {
  background: transparent;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.ve-pipeline-arrow {
  width: 15px;
  height: 15px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ve-pipeline-dropdown-header.collapsed .ve-pipeline-arrow {
  transform: rotate(-90deg);
}

.ve-stages-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  max-height: 250px;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  transition: max-height 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, padding 0.2s ease;
}

.ve-pipeline-dropdown-header.collapsed + .ve-stages-container {
  max-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Sleek Glassmorphic Scrollbar */
.ve-stages-container::-webkit-scrollbar {
  width: 5px;
}
.ve-stages-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
}
.ve-stages-container::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.25);
  border-radius: 4px;
}
.ve-stages-container::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.5);
}

/* Stage items */
.ve-stage-item {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 8px 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.18s ease;
}

.ve-stage-item:hover {
  border-color: rgba(56, 189, 248, 0.25);
  background: rgba(255, 255, 255, 0.045);
}

.ve-stage-item.stage-active {
  background: rgba(56, 189, 248, 0.06);
  border-color: rgba(56, 189, 248, 0.28);
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.06);
}

.ve-stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.ve-stage-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Switch Toggle */
.ve-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
  flex-shrink: 0;
}

.ve-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.ve-slider-switch {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #334155;
  transition: 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 22px;
}

.ve-slider-switch:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background: #FFFFFF;
  transition: 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.ve-switch input:checked + .ve-slider-switch {
  background: #0284C7;
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.5);
}

.ve-switch input:checked + .ve-slider-switch:before {
  transform: translateX(16px);
}

.ve-stage-title {
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 13px;
  font-weight: 600;
  color: #F1F5F9;
  letter-spacing: -0.1px;
}

.ve-badge-tag {
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 9.5px;
  font-weight: 700;
  padding: 1.5px 6.5px;
  border-radius: 9999px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  flex-shrink: 0;
  user-select: none;
}

.ve-badge-tag.tag-exclusive {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: #38BDF8;
}

.ve-stage-item:not(.stage-active) .ve-badge-tag.tag-exclusive {
  background: rgba(148, 163, 184, 0.06);
  border-color: rgba(148, 163, 184, 0.16);
  color: #64748B;
}

.ve-sub-note {
  font-size: 10.5px;
  color: #94A3B8;
  line-height: 1.4;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.02);
  border-left: 2px solid #38BDF8;
  border-radius: 0 4px 4px 0;
  margin-top: 2px;
}

/* Single Chevron Toggle Button */
.ve-stage-toggle-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94A3B8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.ve-stage-toggle-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  color: #38BDF8;
  border-color: rgba(56, 189, 248, 0.35);
}

.ve-chevron-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.ve-stage-toggle-btn.is-open .ve-chevron-icon {
  transform: rotate(180deg);
}

.ve-stage-suboptions {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11.5px;
  color: #94A3B8;
}

.ve-sub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ve-sub-label {
  font-size: 11px;
  color: #94A3B8;
}

.ve-sub-select {
  background: rgba(10, 14, 24, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #F1F5F9;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  padding: 3.5px 8px;
  outline: none;
  cursor: pointer;
}

.ve-export-box {
  background: rgba(14, 18, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ve-export-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 12.5px;
  font-weight: 700;
  color: #F8FAFC;
  letter-spacing: 0.2px;
}

.ve-export-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ve-export-label {
  font-size: 10.5px;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ve-export-select {
  background: rgba(8, 11, 19, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #F1F5F9;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  padding: 7px 10px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.18s ease;
}

.ve-export-select:hover {
  border-color: #38BDF8;
}

.ve-action-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.ve-btn-preview {
  flex: 1;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #CBD5E1;
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 13px;
  font-weight: 700;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.ve-btn-preview:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.ve-btn-render {
  flex: 2;
  height: 44px;
  background: #00C853;
  color: #032011;
  border: none;
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.2px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 200, 83, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ve-btn-render:hover:not(:disabled) {
  background: #00E676;
  box-shadow: 0 6px 24px rgba(0, 230, 118, 0.5);
  transform: translateY(-1.5px);
}

.ve-btn-render:active:not(:disabled) {
  transform: translateY(0);
}

.ve-btn-render:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  background: #334155;
  color: #94A3B8;
}

/* ==============================================================================
   AI PHOTOREALISTIC PBR REMASTER PROMPT BOX
   ============================================================================== */
.ai-prompt-box {
  background: rgba(18, 20, 28, 0.85);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 14px;
  padding: 16px;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.1);
}

.ai-prompt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-prompt-title {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 13px;
  font-weight: 700;
  color: #C084FC;
  display: flex;
  align-items: center;
  gap: 7px;
}

.ai-prompt-badge {
  font-size: 10px;
  font-weight: 700;
  background: rgba(192, 132, 252, 0.15);
  color: #C084FC;
  border: 1px solid rgba(192, 132, 252, 0.35);
  padding: 2px 7px;
  border-radius: 6px;
}

.ai-prompt-textarea {
  width: 100%;
  height: 120px;
  background: rgba(8, 10, 16, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #E2E8F0;
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 12px;
  line-height: 1.5;
  padding: 10px;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s ease;
}

.ai-prompt-textarea:focus {
  border-color: #A855F7;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.25);
}

.ai-api-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ai-api-label {
  font-size: 11px;
  color: #94A3B8;
  display: flex;
  justify-content: space-between;
}

.ai-api-input {
  background: rgba(8, 10, 16, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #F1F5F9;
  font-size: 12px;
  padding: 7px 10px;
  outline: none;
  font-family: monospace;
}

.ai-api-input:focus {
  border-color: #38BDF8;
}

/* ==============================================================================
   UNIVERSAL AI NEURAL PROVIDER CARD (GEMINI, OPENAI, CLAUDE, OPENROUTER)
   ============================================================================== */
.universal-ai-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.85) 0%, rgba(9, 14, 26, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s ease;
}

.universal-ai-card:hover {
  border-color: rgba(56, 189, 248, 0.25);
}

.universal-ai-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.universal-ai-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.universal-ai-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(56, 189, 248, 0.12);
  color: #38BDF8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.universal-ai-title {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 12.5px;
  font-weight: 700;
  color: #F8FAFC;
}

.universal-ai-sub {
  font-size: 9.5px;
  color: #94A3B8;
  display: block;
  line-height: 1.2;
}

.universal-ai-badge {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94A3B8;
  transition: all 0.2s ease;
}

.universal-ai-badge.status-active {
  background: rgba(52, 211, 153, 0.15);
  border-color: rgba(52, 211, 153, 0.4);
  color: #34D399;
}

.universal-ai-body {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.universal-ai-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.universal-ai-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.universal-ai-field.flex-grow {
  flex: 1;
}

.universal-ai-label {
  font-size: 10px;
  font-weight: 600;
  color: #CBD5E1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.universal-ai-select,
.universal-ai-input {
  background: rgba(6, 9, 18, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #F8FAFC;
  font-size: 11.5px;
  padding: 6px 9px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.universal-ai-select:focus,
.universal-ai-input:focus {
  border-color: #38BDF8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.universal-ai-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.btn-toggle-key-visibility {
  position: absolute;
  right: 7px;
  background: transparent;
  border: none;
  color: #64748B;
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.btn-toggle-key-visibility:hover {
  color: #E2E8F0;
}

.universal-ai-advanced {
  background: rgba(0, 0, 0, 0.25);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px;
  margin-top: 2px;
}

.universal-ai-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.btn-ai-toggle-adv {
  background: transparent;
  border: none;
  color: #38BDF8;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  transition: color 0.15s ease;
}

.btn-ai-toggle-adv:hover {
  color: #7DD3FC;
  text-decoration: underline;
}

.universal-ai-note {
  font-size: 9.5px;
  color: #64748B;
}

/* ==============================================================================
   CLOUDRAT STUDIO — ANIMATION SPOOFER & RE-UPLOADER WORKSTATION STYLES
   ============================================================================== */
/* ==============================================================================
   CLOUDRAT STUDIO — ANIMATION SPOOFER & RE-UPLOADER WORKSTATION STYLES
   ============================================================================== */
.anim-spoofer-view {
  width: 100%;
  max-width: 100%;
  min-height: calc(100vh - 56px);
  padding: 12px 18px 16px;
  box-sizing: border-box;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto;
}

.anim-spoofer-view[style*="display: none"] {
  display: none !important;
}

.anim-spoofer-view[style*="display: flex"] {
  display: flex !important;
}

.anim-workstation-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;
  min-height: 0;
}

/* Top Hero Card — Glassmorphism */
.anim-hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.015) 100%), rgba(12, 15, 22, 0.72) !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 16px 36px 0 rgba(0, 0, 0, 0.45), inset 0 1px 0 0 rgba(255, 255, 255, 0.14) !important;
  border-radius: 12px !important;
  position: relative;
  overflow: hidden;
}

.anim-badge-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.anim-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 12px;
  letter-spacing: 0.2px;
}

.anim-pill-primary {
  background: rgba(56, 189, 248, 0.14);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.28);
}

.anim-pill-sub {
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.anim-dot-pulse {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 6px #38bdf8;
  display: inline-block;
}

.anim-hero-title {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 2px;
  letter-spacing: -0.2px;
}

.anim-hero-desc {
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.35;
  margin: 0;
  max-width: 660px;
}

.anim-hero-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.anim-hero-actions button {
  padding: 6px 12px;
  font-size: 11.5px;
  gap: 6px;
}

/* Symmetrical 2x2 Animation Workbench Grid — Matching Batch Studio Layout (Fills Full Height) */
.anim-workbench-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-template-rows: 255px minmax(360px, 1fr) !important;
  gap: 14px !important;
  width: 100% !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  align-items: stretch !important;
}

@media (max-width: 1050px) {
  .anim-workbench-grid {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
  }
  .anim-hero-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .anim-hero-actions {
    width: 100%;
    flex-wrap: wrap;
  }
}

/* Common Card Styling — Authentic Glassmorphism (Symmetrical Stretch) */
.anim-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 100%), rgba(12, 15, 22, 0.72) !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.11) !important;
  box-shadow: 0 16px 36px 0 rgba(0, 0, 0, 0.45), inset 0 1px 0 0 rgba(255, 255, 255, 0.12) !important;
  border-radius: 14px !important;
  padding: 14px 16px;
  position: relative;
  box-sizing: border-box;
  display: flex !important;
  flex-direction: column !important;
  width: 100%;
  height: 100% !important;
  min-width: 0 !important;
}

/* Row 1 Symmetrical Matching Height (Input & Queue) - STRICTLY LOCKED, NEVER RESIZES */
.anim-card-input,
.anim-card-workbench {
  height: 255px !important;
  min-height: 255px !important;
  max-height: 255px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
}

/* Row 2 Symmetrical Matching Height & Space Fill (Script Generator & History) - STRICTLY LOCKED */
.anim-card-script,
.anim-card-history {
  flex: 1 1 0 !important;
  min-height: 360px !important;
  height: 100% !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
}

.anim-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.anim-card-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.anim-card-title-group h3 {
  font-size: 13.5px;
  font-weight: 600;
  color: #f1f5f9;
  margin: 0;
}

.anim-card-subtitle {
  font-size: 10.5px;
  color: #64748b;
  display: block;
  margin-top: 1px;
}

.anim-icon-badge {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 189, 248, 0.14);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.22);
  flex-shrink: 0;
}

.anim-icon-badge svg {
  width: 15px;
  height: 15px;
}

/* Input Tabs */
.anim-input-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 6px;
}

.anim-tab-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.anim-tab-btn:hover {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
}

.anim-tab-btn.active {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.24);
}

.anim-tab-content.active {
  flex: 1 1 0 !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

/* Textarea & Inputs — Glass Inner Surface */
.anim-textarea-wrapper {
  position: relative;
  width: 100%;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
}

.anim-textarea {
  width: 100%;
  height: 72px;
  background: rgba(8, 10, 16, 0.55) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.06), 0 4px 14px rgba(0, 0, 0, 0.25) !important;
  border-radius: 8px;
  padding: 8px 10px;
  color: #f1f5f9;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  line-height: 1.45;
  resize: none;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-height: 70px;
}

.anim-textarea:focus {
  border-color: rgba(56, 189, 248, 0.5) !important;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.15), inset 0 1px 0 0 rgba(255, 255, 255, 0.08) !important;
}

.anim-sample-row {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin: 6px 0 8px;
}

.anim-sample-label {
  font-size: 10px;
  color: #64748b;
  font-weight: 500;
}

.anim-sample-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.anim-sample-pill:hover {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.25);
}

.anim-sample-clear {
  margin-left: auto;
  background: transparent;
  border: none;
  color: #ef4444;
  font-size: 10px;
  cursor: pointer;
  padding: 1px 4px;
}

.anim-sample-clear:hover {
  text-decoration: underline;
}

.anim-action-row {
  display: flex;
  justify-content: flex-end;
}

.anim-btn-resolve {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 12px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 7px;
}

/* File Upload Dropzone — Glass Inner Surface */
.anim-dropzone {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(56, 189, 248, 0.3);
  border-radius: 10px;
  padding: 16px 12px;
  text-align: center;
  background: rgba(8, 10, 16, 0.5) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 120px;
}

.anim-dropzone:hover,
.anim-dropzone.dragover {
  background: rgba(56, 189, 248, 0.08) !important;
  border-color: #38bdf8;
}

.anim-drop-icon {
  width: 24px;
  height: 24px;
  color: #38bdf8;
  margin-bottom: 4px;
}

.anim-drop-text {
  font-size: 12px;
  color: #e2e8f0;
}

.anim-drop-sub {
  font-size: 10px;
  color: #64748b;
  display: block;
  margin-top: 2px;
}

.anim-file-info-box {
  background: rgba(8, 10, 16, 0.65) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 8px;
  padding: 10px;
  margin-top: 8px;
}

.anim-file-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.anim-file-name-text {
  font-size: 11.5px;
  font-weight: 600;
  color: #f1f5f9;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.anim-file-size-badge {
  font-size: 9.5px;
  color: #64748b;
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 5px;
  border-radius: 4px;
}

.anim-btn-upload {
  width: 100%;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 12px;
  font-size: 11.5px;
  border-radius: 7px;
}

/* Studio Script Generator Card — Matches Bottom Right Height */
.anim-script-box-wrap {
  width: 100%;
  margin: 6px 0 8px;
  flex: 1 1 0 !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.anim-code-preview {
  width: 100% !important;
  flex: 1 1 0 !important;
  min-height: 0 !important;
  height: 100% !important;
  box-sizing: border-box !important;
  background: rgba(8, 10, 16, 0.75) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.06), 0 4px 14px rgba(0, 0, 0, 0.25) !important;
  border-radius: 8px;
  padding: 8px 10px;
  color: #38bdf8;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  line-height: 1.5;
  resize: none !important;
  overflow-y: auto !important;
}

.anim-script-footer-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 6px;
  position: relative;
  z-index: 2;
}

/* Right Workbench Table & Queue — Compact & Scaled */
.anim-card-workbench {
  display: flex;
  flex-direction: column;
}

.anim-queue-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.anim-table-container {
  width: 100%;
  flex: 1 1 0 !important;
  min-height: 0 !important;
  height: 100% !important;
  max-height: none !important;
  overflow-x: auto !important;
  overflow-y: auto !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 8px;
  background: rgba(8, 10, 16, 0.55) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05), 0 4px 14px rgba(0, 0, 0, 0.25) !important;
}

.anim-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.anim-table th {
  position: sticky !important;
  top: 0 !important;
  z-index: 5 !important;
  text-align: left;
  padding: 4px 7px;
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 15, 22, 0.96) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  white-space: nowrap;
}

.anim-table td {
  padding: 4px 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
  color: #cbd5e1;
  font-size: 10.5px;
}

.anim-queue-row {
  height: 32px;
  transition: background 0.15s;
}

.anim-queue-row:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.anim-queue-row.is-selected td {
  background: rgba(56, 189, 248, 0.04);
}

.chk-anim-item,
#chkAnimSelectAll {
  width: 13px;
  height: 13px;
  margin: 0;
  cursor: pointer;
  accent-color: #38bdf8;
  vertical-align: middle;
}

.anim-thumb-wrap {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  overflow: hidden;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.anim-thumb-img,
.anim-table-thumb {
  width: 24px;
  height: 24px;
  object-fit: cover;
  display: block;
}

.anim-title-col {
  max-width: 140px;
}

.anim-title-link,
.anim-table-name-link {
  color: #f8fafc;
  text-decoration: none;
  font-weight: 500;
  font-size: 11px;
  display: block;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.15s;
}

.anim-title-link:hover,
.anim-table-name-link:hover {
  color: #38bdf8;
  text-decoration: underline;
}

.anim-id-badge,
.anim-id-chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.22);
  color: #38bdf8;
  padding: 1px 5px;
  border-radius: 3px;
  cursor: pointer;
  user-select: all;
  display: inline-block;
  transition: all 0.15s;
}

.anim-id-badge:hover,
.anim-id-chip:hover {
  background: rgba(56, 189, 248, 0.2);
}

.anim-id-badge.copied,
.anim-id-chip.copied {
  background: #22c55e;
  color: #000;
  border-color: #22c55e;
}

.anim-creator-text {
  font-size: 10px;
  color: #94a3b8;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

.anim-type-badge {
  font-size: 9px;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.2);
  white-space: nowrap;
}

.anim-queue-row .btn-ghost-pill.btn-xs {
  padding: 2px 6px !important;
  font-size: 10px !important;
  line-height: 1.2;
}

.anim-queue-row .btn-delete-ghost.btn-xs {
  padding: 2px 6px !important;
  font-size: 12px !important;
  line-height: 1;
}

.anim-empty-row td {
  padding: 16px 12px !important;
  font-size: 11px !important;
  line-height: 1.4;
}

/* History List — Compact & Fills Symmetrical Space */
.anim-history-list {
  flex: 1 1 0 !important;
  min-height: 0 !important;
  height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 3px;
}

.anim-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 4px 6px;
  background: rgba(8, 10, 16, 0.55) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05) !important;
  border-radius: 6px;
  transition: background 0.15s, border-color 0.15s;
}

.anim-history-item:hover {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(56, 189, 248, 0.25) !important;
}

.anim-history-item-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.anim-history-thumb {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  object-fit: cover;
  background: #1e293b;
  flex-shrink: 0;
}

.anim-history-details {
  flex: 1;
  min-width: 0;
}

.anim-history-title {
  font-size: 10.5px;
  font-weight: 500;
  color: #f1f5f9;
  text-decoration: none;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.anim-history-title:hover {
  color: #38bdf8;
  text-decoration: underline;
}

.anim-history-meta {
  font-size: 9.5px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 1px;
}

.anim-history-meta code {
  font-size: 9px;
  color: #38bdf8;
}

.anim-history-item-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.anim-history-item-actions .btn-xs {
  padding: 2px 6px !important;
  font-size: 10px !important;
}

/* Unified Glassmorphic Scrollbars for Animation Workbench Frames */
.anim-table-container::-webkit-scrollbar,
.anim-history-list::-webkit-scrollbar,
.anim-code-preview::-webkit-scrollbar,
.anim-tab-content::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.anim-table-container::-webkit-scrollbar-track,
.anim-history-list::-webkit-scrollbar-track,
.anim-code-preview::-webkit-scrollbar-track,
.anim-tab-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.anim-table-container::-webkit-scrollbar-thumb,
.anim-history-list::-webkit-scrollbar-thumb,
.anim-code-preview::-webkit-scrollbar-thumb,
.anim-tab-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 4px;
}

.anim-table-container::-webkit-scrollbar-thumb:hover,
.anim-history-list::-webkit-scrollbar-thumb:hover,
.anim-code-preview::-webkit-scrollbar-thumb:hover,
.anim-tab-content::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.45);
}
