@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:wght@700&display=swap');

:root {
  /* Stitch - The Midnight Sommelier Palette (Dark Mode) */
  --bg-app: #0e0e0e; /* Absolute Deep Black */
  --bg-card: rgba(26, 26, 26, 0.4);
  --bg-sidebar: rgba(19, 19, 19, 0.6);
  
  /* Text - High Contrast for Dark Mode */
  --text-primary: #ffffff;
  --text-secondary: #adaaaa;
  --text-muted: #767575;
  
  /* Brand Colors - Neon Nocturnal */
  --primary: #d095ff; /* Electric Purple */
  --primary-glow: rgba(208, 149, 255, 0.4);
  
  --secondary: #00e3fd; /* Radiant Cyan */
  --secondary-glow: rgba(0, 227, 253, 0.4);
  
  --accent: #ffbd5c; /* Neon Amber */
  --accent-glow: rgba(255, 189, 92, 0.4);
  
  /* Functional */
  --success: #00e3fd; /* Cyan used for success in the new system */
  --danger: #ff6e84;
  --warning: #ffbd5c;
  --info: #00e3fd;
  
  --border-radius-lg: 20px;
  --border-radius-md: 12px;
  --border-light: rgba(255, 255, 255, 0.05);
  
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Manrope', 'Inter', sans-serif;
  
  --glass-bg: rgba(26, 26, 26, 0.4);
  --glass-border: 1px solid rgba(255, 255, 255, 0.05);
  --glass-blur: blur(20px);
  --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 15px rgba(208, 149, 255, 0.05);
}

/* White Mode (Opcional) - Refined */
body.light-mode {
  --bg-app: #f8fafc;
  --bg-card: #ffffff;
  --bg-sidebar: #ffffff;
  
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  
  --primary: #7c3aed; /* Vibrant Purple */
  --primary-glow: rgba(124, 58, 237, 0.15);
  
  --secondary: #0ea5e9;
  --secondary-glow: rgba(14, 165, 233, 0.15);
  
  --accent: #f59e0b;
  --accent-glow: rgba(245, 158, 11, 0.15);
  
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: 1px solid rgba(0, 0, 0, 0.05);
  --glass-blur: blur(10px);
  --border-light: rgba(0, 0, 0, 0.08);
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05), 0 0 1px rgba(0, 0, 0, 0.1);
}

body.light-mode h1, body.light-mode h2, body.light-mode h3, body.light-mode h4, body.light-mode h5, body.light-mode h6 {
  color: #1e293b;
}

body.light-mode .text-white:not(.btn-modern), 
body.light-mode .text-white:not(.btn) {
  color: #1e293b !important;
}

body.light-mode .sidebar {
  background: white;
  border-right: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.02);
}

body.light-mode .nav-item {
  color: #64748b;
}

body.light-mode .nav-item:hover {
  background: rgba(124, 58, 237, 0.05);
  color: var(--primary);
}

body.light-mode .nav-item.active {
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.2);
  color: var(--primary);
  box-shadow: none;
}

body.light-mode .user-profile {
  background: #f1f5f9;
  border-color: rgba(0, 0, 0, 0.05);
}

body.light-mode .user-profile #userInfo {
  color: #1e293b !important;
}

body.light-mode .brand-text {
  color: var(--primary);
  text-shadow: none;
}

body.light-mode .input-modern, 
body.light-mode .input-group .form-control {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #1e293b !important;
}


body.light-mode .input-modern:focus {
  background: #ffffff !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1) !important;
}

/* Fix for Table appearance in Light Mode */
body.light-mode .table-premium thead th {
  background: #f1f5f9;
  color: #64748b;
  border-bottom: 2px solid #e2e8f0;
}

body.light-mode .table-premium tbody tr {
  background: #ffffff;
  border-bottom: 1px solid #f8fafc;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

body.light-mode .table-premium tbody tr:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

body.light-mode #tablesMapContainer {
  background: radial-gradient(circle at center, #ffffff 0%, #f1f5f9 100%);
}

body.light-mode #tableDetailPanel {
  background: #ffffff;
  border-left: 1px solid #e2e8f0 !important;
  box-shadow: -10px 0 30px rgba(0,0,0,0.05);
}

body.light-mode .bg-blob {
  opacity: 0.08;
}

body.light-mode .product-card {
  background: white;
  border-color: #e2e8f0;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

body.light-mode .product-card:hover {
  background: white;
  border-color: var(--primary);
  box-shadow: 0 10px 15px rgba(0,0,0,0.05);
}

body.light-mode .pos-cart {
  background: #ffffff;
  border-left: 1px solid #e2e8f0;
}

body.light-mode .cart-header, 
body.light-mode .cart-footer {
  background: #f8fafc;
  border-color: #e2e8f0;
}

body.light-mode .cart-item {
  background: #ffffff;
  border-color: #f1f5f9;
}

body.light-mode .cart-total {
  color: #1e293b;
  text-shadow: none;
}

body.light-mode #inventario > div:first-child {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
}

body.light-mode .uppercase-tracking {
  color: #64748b !important;
}

body.light-mode .product-img-mini {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
}

body.light-mode .badge.bg-glass {
  background: #f1f5f9 !important;
  color: #64748b !important;
  border: 1px solid #e2e8f0 !important;
}

body.light-mode #productDrawer {
  background: #ffffff !important;
  border-left: 1px solid #e2e8f0 !important;
}

* {
  box-sizing: border-box;
  outline: none;
}

body {
  background-color: var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-main);
  margin: 0;
  height: 100vh;
  overflow: hidden;
  transition: background-color 0.3s ease, color 0.2s ease;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 25%), 
    radial-gradient(circle at 85% 30%, rgba(236, 72, 153, 0.08) 0%, transparent 25%);
}

/* Background Animation */
.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
  z-index: -1;
  animation: pulse-glow 10s infinite alternate;
  transition: opacity 0.5s ease;
}

.blob-1 {
  top: -20%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--primary), transparent 70%);
}

.blob-2 {
  bottom: -20%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--secondary), transparent 70%);
}

@keyframes pulse-glow {
  0% { opacity: 0.2; transform: scale(1); }
  100% { opacity: 0.4; transform: scale(1.1); }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  transition: color 0.3s ease;
}
.text-gradient {
  background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hover-opacity-100:hover {
  opacity: 1 !important;
}

.text-accent {
  color: var(--accent) !important;
}

.text-primary { color: var(--primary) !important; }

/* Glassmorphism Components */
.glass-panel, .card-modern, .modal-content {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  box-shadow: var(--card-shadow);
  border-top: 1px solid rgba(255, 255, 255, 0.1); /* Luminous edge highlight */
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Sidebar Navigation */
.sidebar {
  width: var(--sidebar-width, 248px);
  min-width: var(--sidebar-width, 248px);
  flex-shrink: 0; /* Prevents sidebar from shrinking */
  height: 100vh;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 20px 0 50px rgba(0, 0, 0, 0.3);
  z-index: 50;
  position: relative;
  transition: width 0.3s ease, min-width 0.3s ease, padding 0.3s ease;
}

.sidebar::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.3), transparent);
}

.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0 0.2rem;
  position: relative;
  min-width: 0;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
  text-transform: uppercase;
}

.sidebar-toggle-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.sidebar-select-wrap {
  transition: opacity 0.2s ease, transform 0.2s ease, margin 0.2s ease;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
  overflow-y: auto;
}

.nav-menu::-webkit-scrollbar {
  width: 4px;
}
.nav-menu::-webkit-scrollbar-track {
  background: transparent;
}
.nav-menu::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

.nav-item {
  padding: 0.65rem 1rem;
  border-radius: 16px;
  color: var(--text-secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  font-weight: 500;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.nav-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 0 4px 4px 0;
}

.nav-item i {
  font-size: 1.25rem;
  width: 24px;
  text-align: center;
  transition: none !important;
  position: relative;
  z-index: 2;
}

.nav-item span {
  position: relative;
  z-index: 2;
  transition: opacity 0.2s ease, width 0.2s ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  padding-left: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.05);
}

.nav-item:hover i {
  color: var(--primary);
  transform: scale(1.1);
  text-shadow: 0 0 10px var(--primary-glow);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(208, 149, 255, 0.15), rgba(208, 149, 255, 0.05));
  border: 1px solid rgba(208, 149, 255, 0.3);
  color: #fff;
  box-shadow: 0 0 30px rgba(208, 149, 255, 0.1), inset 0 0 20px rgba(208, 149, 255, 0.05);
}

.nav-item.active::before {
  opacity: 1;
  box-shadow: 0 0 10px var(--primary);
}

.nav-item.active i {
  color: var(--primary);
  filter: drop-shadow(0 0 8px var(--primary-glow));
  transform: scale(1.1);
}

.user-profile {
  background: rgba(0, 0, 0, 0.2);
    padding: 0.75rem 0.5rem;
    border-radius: 16px;
    border: var(--glass-border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-avatar {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.sidebar.is-collapsed {
  padding: 1.5rem 0.85rem;
}

.sidebar.is-collapsed .sidebar-top {
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.sidebar.is-collapsed .brand {
  margin-bottom: 0;
  padding: 0;
  justify-content: center;
}

.sidebar.is-collapsed .brand-text,
.sidebar.is-collapsed .sidebar-select-wrap,
.sidebar.is-collapsed .user-profile-details,
.sidebar.is-collapsed #djMenuBadge {
  display: none;
}

.sidebar.is-collapsed .sidebar-toggle-btn i {
  transform: rotate(180deg);
}

.sidebar.is-collapsed .nav-item {
  justify-content: center;
  gap: 0;
  padding: 1rem 0.85rem;
}

.sidebar.is-collapsed .nav-item span {
  width: 0;
  opacity: 0;
  overflow: hidden;
  visibility: hidden;
}

.sidebar.is-collapsed .nav-item:hover {
  padding-left: 0.85rem;
}

.sidebar.is-collapsed .nav-item::after {
  content: attr(data-label);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(-8px);
  background: rgba(15, 23, 42, 0.96);
  color: #fff;
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  font-size: 0.78rem;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 20;
}

.sidebar.is-collapsed .nav-item:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.sidebar.is-collapsed .user-profile {
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 0.5rem;
}

.sidebar.is-collapsed #themeToggle {
  margin-right: 0 !important;
}

/* Main Layout */
.app-shell {
  --sidebar-width: 275px;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  height: 100vh;
  width: 100%;
  min-width: 0;
  overflow: hidden; /* Prevent body scroll if contents expand */
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  background: var(--bg-app);
  min-width: 0;
}

.module-section {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  padding: 0; /* Updated to 0 to manage padding internally */
  animation: fadeIn 0.4s ease-out;
  min-width: 0;
}

.module-centered {
  display: block;
  padding-inline: clamp(1rem, 2vw, 2rem) !important;
}

.module-centered > * {
  width: 100%;
  max-width: 1360px;
  margin-left: auto;
  margin-right: auto;
}

#hub.module-centered > * {
  max-width: 1220px;
}

.module-centered .row {
  margin-left: 0;
  margin-right: 0;
}

.module-centered .row > * {
  padding-left: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
  padding-right: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
}

.pos-product-container {
  padding: 4rem 2rem 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideRight {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Visual Effects */
@keyframes flashSuccess {
  0% { background-color: transparent; transform: scale(1); }
  50% { background-color: rgba(40, 167, 69, 0.3); transform: scale(1.02); }
  100% { background-color: transparent; transform: scale(1); }
}

@keyframes flashDanger {
  0% { background-color: transparent; transform: scale(1); }
  50% { background-color: rgba(220, 53, 69, 0.3); transform: scale(0.98); }
  100% { background-color: transparent; transform: scale(1); }
}

.effect-flash-success {
  animation: flashSuccess 0.4s ease-out;
}

.effect-flash-danger {
  animation: flashDanger 0.4s ease-out;
}

.animate-fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}

/* =========================================
   RESPONSIVE DESIGN (MOBILE MODE)
   ========================================= */

@media (max-width: 992px) {
  body {
    height: auto;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .app-shell {
    flex-direction: column;
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }
  
  .sidebar {
    width: 100%;
    min-width: 100%;
    height: auto;
    flex-direction: row;
    padding: 0.75rem 1rem;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .sidebar-top {
    align-items: center;
  }

  .sidebar-toggle-btn {
    display: none;
  }

  .sidebar-select-wrap {
    width: 220px;
    margin-bottom: 0 !important;
    flex-shrink: 0;
  }
  
  .sidebar .brand {
    padding: 0;
    margin-right: 1.5rem;
    border-bottom: none;
  }
  
  .sidebar .brand-text {
    display: none;
  }
  
  .nav-menu {
    flex-direction: row;
    padding: 0;
    gap: 1rem;
    min-width: max-content;
  }
  
  .nav-item {
    margin: 0;
    padding: 0.5rem 0.75rem;
    min-width: unset;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
  }
  
  .nav-item span {
    display: block;
    font-size: 0.65rem;
    text-align: center;
    white-space: nowrap;
  }
  
  .sidebar::-webkit-scrollbar {
    height: 4px;
  }
  
  .sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
  }
  
  .sidebar::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
  }
  
  .user-profile {
    display: none;
  }

  .main-content {
    overflow: visible;
    min-height: 0;
  }
  
  .module-section {
    height: auto;
    min-height: calc(100dvh - 70px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }

  .module-centered {
    display: block;
    padding-inline: 1rem !important;
  }

  .module-centered > * {
    width: 100%;
  }
  
  .d-flex.h-100 {
    flex-direction: column;
  }
  
  .pos-cart {
    width: 100%;
    height: 400px;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  
  .table-map-item {
    transform: scale(0.8) translate(-50%, -50%);
  }
  
  #tableDetailPanel {
    width: 100%;
  }
}

/* Cards */
.card-modern {
  border-radius: var(--border-radius);
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.card-header {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Premium Inputs & Autofill Fix */
.input-modern, .input-group .form-control, input[type="text"], input[type="password"], input[type="email"], input[type="number"] {
  background: rgba(15, 23, 42, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  border-radius: 16px;
  padding: 0.75rem 1.25rem;
  width: 100%;
  font-family: var(--font-main);
  transition: all 0.2s ease !important;
  font-size: 0.95rem;
}

/* Chrome/Safari Autofill Fix */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 100px #0f172a inset !important;
    -webkit-text-fill-color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s;
}

.input-modern:focus, .input-group .form-control:focus, input:focus {
  border-color: var(--primary) !important;
  background: rgba(15, 23, 42, 0.9) !important;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2), 0 0 20px rgba(139, 92, 246, 0.1) !important;
  outline: none !important;
  color: #fff !important;
}

.input-modern::placeholder, input::placeholder {
  color: rgba(255, 255, 255, 0.4) !important;
}

/* Buttons */
.btn-modern {
  padding: 0.875rem 1.75rem;
  border-radius: 16px;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

/* Custom Switch Toggle Style (Consistente y Profesional) */
#productTrackStock.form-check-input {
  width: 3rem !important;
  height: 1.5rem !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  cursor: pointer;
  background-image: none !important; /* Desactivar forzado previo */
  position: relative;
  transition: all 0.2s ease;
}

#productTrackStock.form-check-input:checked {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
}

#productTrackStock.form-check-input::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 3px;
  width: 1.1rem;
  height: 1.1rem;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

#productTrackStock.form-check-input:checked::after {
  transform: translateX(1.4rem);
}

.form-switch .form-check-input {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: none !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba(255,255,255,0.6)'/%3e%3c/svg%3e");
}

.form-switch .form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
  box-shadow: 0 0 15px var(--primary-glow);
}

.btn-modern::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-modern:hover::after {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #6d28d9);
  color: white;
  box-shadow: 0 10px 20px -5px rgba(124, 58, 237, 0.5);
}

.btn-primary:hover {
  box-shadow: 0 15px 30px -5px rgba(124, 58, 237, 0.6);
}

.btn-success {
  background: linear-gradient(135deg, var(--success), #047857);
  color: white;
  box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.5);
}

.btn-success:hover {
  box-shadow: 0 15px 30px -5px rgba(16, 185, 129, 0.6);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger), #b91c1c);
  color: white;
  box-shadow: 0 10px 20px -5px rgba(239, 68, 68, 0.5);
}

.btn-danger:hover {
  box-shadow: 0 15px 30px -5px rgba(239, 68, 68, 0.6);
}

/* Toast Notifications */
.toast-modern {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  padding: 1rem 2rem;
  border-radius: 20px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.1);
  border-top: 1px solid rgba(255,255,255,0.2);
  min-width: 320px;
  justify-content: center;
  font-weight: 600;
}

.toast-modern.success {
  border-bottom: 3px solid #10b981;
}

.toast-modern.error {
  border-bottom: 3px solid #ef4444;
}

.toast-modern.info {
  border-bottom: 3px solid #3b82f6;
}

.toast-modern.warning {
  border-bottom: 3px solid #f59e0b;
}

.animate-slide-up {
  animation: slideUpToast 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes slideUpToast {
  from { transform: translate(-50%, 100px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.btn-modern:hover {
  transform: translateY(-4px);
  filter: brightness(1.1);
}

.btn-modern:active {
  transform: translateY(-1px);
}

/* Category Filter (POS) */
.category-scroll {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.5rem 0;
  margin-bottom: 2rem;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  min-height: 50px;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar {
  display: none;
}

.category-pill {
  padding: 0.6rem 1.25rem;
  background: rgba(45, 45, 45, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  color: #fff;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  display: flex !important;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.category-actions {
  transition: opacity 0.2s;
  pointer-events: all;
}

.category-pill:hover .category-actions {
  opacity: 1 !important;
}

.category-actions i {
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s;
  cursor: pointer !important;
}

.category-actions i:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  transition: none !important;
}

.btn-glass:hover, .btn-glass.active {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 20px var(--primary-glow);
  transform: none;
}

.category-pill:hover {
  background: rgba(139, 92, 246, 0.1);
  color: #fff;
  border-color: rgba(139, 92, 246, 0.3);
  transform: none;
}

.category-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Product Grid (POS) */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
  padding-bottom: 2rem;
}

.product-card {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover {
  transform: translateY(-8px) scale(1.02);
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 
    0 20px 25px -5px rgba(0, 0, 0, 0.5), 
    0 8px 10px -6px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(139, 92, 246, 0.1); /* Subtle violet glow */
}

.product-card:hover::before {
  opacity: 1;
}

.product-img-container {
  height: 140px; /* Un poco mÃ¡s de altura para botellas */
  overflow: hidden;
  background: rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Mostrar la imagen completa sin recortar */
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  padding: 5px; /* PequeÃ±o margen interno */
}

.product-img-mini {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.02);
}

.status-indicator-pill {
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
}
.status-indicator-pill.ok { background: rgba(0, 227, 253, 0.1); color: var(--secondary); }
.status-indicator-pill.low { background: rgba(255, 189, 92, 0.1); color: var(--accent); }

.btn-icon-glass {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
    background: rgba(255,255,255,0.03);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: none !important;
}
.btn-icon-glass:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: none;
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.z-max { z-index: 99999; }

#productDrawer {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-image {
  height: 140px;
  width: 100%;
  object-fit: contain !important;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.4));
  transition: transform 0.4s ease;
}

.product-image.d-flex {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.product-card:hover .product-image {
  transform: scale(1.15) rotate(3deg);
  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.5));
}

.product-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #e2e8f0;
  line-height: 1.4;
}

.product-price {
  background: rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(8px);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
  border: 1px solid rgba(245, 158, 11, 0.2);
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  display: inline-block;
  transition: none !important;
}

.product-card:hover .product-price {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
  transform: scale(1.05);
}

/* POS Cart */
.pos-cart {
  width: 400px;
  background: rgba(10, 10, 15, 0.85);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(30px);
  box-shadow: -10px 0 30px rgba(0,0,0,0.3);
  z-index: 40;
}

.cart-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.cart-item {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.03);
  margin-bottom: 1rem;
  border-radius: 16px;
  padding: 1rem;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.cart-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(-2px);
}

.cart-footer {
  background: rgba(2, 6, 23, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2rem 1.5rem;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.3);
}

.cart-total {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  text-align: right;
  margin: 1rem 0 1.5rem;
  text-shadow: 0 0 20px rgba(255,255,255,0.1);
  letter-spacing: -1px;
}

/* Brand Logo */
.brand-logo {
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3), 0 0 10px rgba(236, 72, 153, 0.3); /* Neon glow */
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: all 0.5s ease;
  object-fit: cover;
}

.brand-logo:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.5), 0 0 15px rgba(236, 72, 153, 0.5);
  border-color: rgba(255, 255, 255, 0.3);
}

.brand-logo-sm {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
  object-fit: cover;
}

/* Premium Tables */
.table-premium {
  --bs-table-bg: transparent;
  --bs-table-color: #e2e8f0;
  border-collapse: separate;
  border-spacing: 0 0.5rem;
}

.table-premium thead th {
  background: rgba(15, 23, 42, 0.8);
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 1rem;
  border: none;
}

.table-premium thead th:first-child { border-top-left-radius: 12px; border-bottom-left-radius: 12px; }
.table-premium thead th:last-child { border-top-right-radius: 12px; border-bottom-right-radius: 12px; }

.table-premium tbody tr {
  background: rgba(30, 41, 59, 0.4);
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.table-premium tbody tr:hover {
  background: rgba(139, 92, 246, 0.1);
  transform: scale(1.01);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.table-premium td {
  border: none;
  padding: 1rem;
  vertical-align: middle;
}

.table-premium td:first-child { border-top-left-radius: 12px; border-bottom-left-radius: 12px; }
.table-premium td:last-child { border-top-right-radius: 12px; border-bottom-right-radius: 12px; }

.badge-stock {
  padding: 0.35em 0.8em;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.badge-stock.low {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

.badge-stock.ok {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.product-img-cell {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Animations */




/* Scrollbars */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { 
  background: rgba(208, 149, 255, 0.2); 
  border-radius: 10px; 
  border: 1px solid rgba(255, 255, 255, 0.05);
}
::-webkit-scrollbar-thumb:hover { background: rgba(208, 149, 205, 0.4); }



/* Utilities & Overrides */
.text-success { color: #34d399 !important; text-shadow: 0 0 10px rgba(52, 211, 153, 0.3); }
.text-danger { color: #f87171 !important; text-shadow: 0 0 10px rgba(248, 113, 113, 0.3); }
.bg-dark { background-color: rgba(0,0,0,0.3) !important; }

/* Custom Form Styles for Glass Theme */
.card-title-icon-glass {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

.premium-summary-card::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.3), transparent 70%);
  filter: blur(40px);
}

.dj-toolbar {
  background: rgba(255, 255, 255, 0.02);
}

#dj.module-section {
  overflow-x: hidden;
  overflow-y: auto;
}

.dj-workspace {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 180px);
  min-height: 720px;
  max-height: calc(100vh - 120px);
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 24%),
    radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(1, 6, 18, 0.98), rgba(3, 7, 18, 1));
}

.dj-workspace.dj-console-shell {
  overflow: visible !important;
}

.dj-workspace-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  padding: 1rem 1.1rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(7, 11, 24, 0.98), rgba(5, 10, 22, 0.9));
}

.dj-workspace-brand {
  max-width: 720px;
}

.dj-workspace-brand h5 {
  font-size: 1.55rem;
}

.dj-workspace-brand p {
  max-width: 540px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.dj-workspace-actions {
  min-width: 0;
}

.dj-action-strip {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.dj-action-strip::-webkit-scrollbar {
  display: none;
}

.dj-workspace-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}

.dj-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
}

.dj-meta-badge-primary {
  color: #7dd3fc;
  border-color: rgba(59, 130, 246, 0.26);
  background: rgba(37, 99, 235, 0.12);
}

.dj-meta-live {
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.24);
  background: rgba(34, 197, 94, 0.12);
}

.dj-meta-live i {
  font-size: 0.5rem;
}

.dj-workspace-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(760px, 1.6fr) minmax(300px, 0.88fr);
  grid-template-areas: "queue stage tools";
  gap: 0;
  min-height: 0;
  overflow: hidden;
}

.dj-column-queue { grid-area: queue; }
.dj-column-stage { grid-area: stage; }
.dj-column-tools { grid-area: tools; }

.dj-workspace-column {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.dj-column-queue,
.dj-column-stage {
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.dj-panel-card,
.dj-stage-shell,
.dj-tool-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.dj-panel-card,
.dj-tool-card {
  background: rgba(255, 255, 255, 0.02);
}

.dj-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dj-panel-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 1rem;
}

.dj-cockpit {
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.16), transparent 30%),
    radial-gradient(circle at bottom left, rgba(6, 182, 212, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.92));
}

.dj-mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  color: #7dd3fc;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.28);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dj-quick-chip {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.dj-quick-chip:hover,
.dj-quick-chip.active {
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.14);
  color: #fff;
}

.dj-deck-card {
  height: 100%;
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.dj-deck-card.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.24), rgba(8, 47, 73, 0.5));
  border-color: rgba(59, 130, 246, 0.35);
  transform: none;
}

.dj-deck-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  color: #cbd5e1;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.dj-deck-track {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.45rem;
}

.dj-deck-meta {
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.84rem;
  line-height: 1.45;
}

.dj-metric-card {
  height: 100%;
  padding: 0.95rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.035);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dj-metric-label {
  color: rgba(203, 213, 225, 0.68);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.dj-metric-value {
  color: #fff;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
}

.dj-metric-text {
  font-size: 0.95rem;
  line-height: 1.2;
}

.dj-row-hover {
  cursor: default;
}

.dj-row-hover td {
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.dj-row-hover:hover td {
  background: rgba(59, 130, 246, 0.06);
}

.studio-result-item {
  transition: all 0.2s ease-in-out;
}

.studio-result-item[draggable="true"],
.dj-playlist-pill[draggable="true"],
.dj-deck-queue-item[draggable="true"] {
  cursor: grab;
}

.studio-result-item.dj-drag-source,
.dj-playlist-pill.dj-drag-source,
.dj-deck-queue-item.dj-drag-source {
  opacity: 0.62;
  transform: scale(0.985);
}

.studio-result-item:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  transform: scale(1.015);
}

.dj-playlist-pill {
  min-width: 190px;
  padding: 0.65rem 0.8rem;
  border-radius: 18px;
  border: 1px solid rgba(59, 130, 246, 0.18);
  background: rgba(37, 99, 235, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.dj-playlist-pill.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.24), rgba(14, 165, 233, 0.18));
  border-color: rgba(56, 189, 248, 0.35);
}

.dj-playlist-pill:hover {
  transform: none;
  border-color: rgba(56, 189, 248, 0.35);
}

.dj-request-panel {
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(7, 11, 22, 0.96), rgba(3, 7, 18, 0.98));
}

.dj-request-table-wrap {
  flex: 1;
  min-height: 0;
  border-radius: 20px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(2, 6, 23, 0.45);
}

.dj-stage-shell {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.98), rgba(3, 7, 18, 0.98));
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  min-height: 0;
}

.dj-stage-toolbar {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  background: rgba(17, 24, 39, 0.9);
  border-bottom: none;
  position: relative;
  z-index: 10000;
}

.dj-stage-summary-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
  padding: 0.8rem 0.9rem;
  background:
    radial-gradient(circle at top center, rgba(59, 130, 246, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(6, 11, 24, 0.96), rgba(3, 7, 18, 0.98));
}

.dj-stage-summary-grid .dj-deck-card {
  grid-column: span 3;
}

.dj-stage-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  grid-column: span 6;
}

.dj-tool-stack {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  min-height: 100%;
}

.dj-tool-card + .dj-tool-card {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.dj-browser-dropdown {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  z-index: 99999; /* Lowered from 1050 so it doesn't overlap video panels */
  max-height: min(68vh, 620px);
  overflow-y: auto;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.dj-browser-viewport {
  flex: 1;
  min-height: 0;
  padding: 0;
  background:
    radial-gradient(circle at top center, rgba(59, 130, 246, 0.08), transparent 35%),
    rgba(0, 0, 0, 0.26);
}

.dj-flow-card {
  min-height: 170px;
}

.dj-flow-items {
  display: grid;
  gap: 0.55rem;
  align-content: start;
  padding: 0.8rem 1rem 1rem;
  max-height: 185px;
}

.dj-performance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  background:
    radial-gradient(circle at top center, rgba(14, 165, 233, 0.08), transparent 35%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.98));
}

.dj-organizer-panel {
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(6, 11, 24, 0.94), rgba(3, 7, 18, 0.98));
}

.dj-organizer-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: stretch;
}

.dj-spotlight-card,
.dj-ai-panel {
  grid-column: span 4;
}

.dj-vinyl-card,
.dj-ai-panel {
  padding: 0.85rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dj-vinyl-shell {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 120px;
  margin-bottom: 0.7rem;
}

.dj-vinyl {
  position: relative;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(15, 23, 42, 0.4) 0 16%, transparent 16% 18%, rgba(15, 23, 42, 0.3) 18% 100%),
    repeating-radial-gradient(circle at center, rgba(15, 23, 42, 0.18) 0 5px, rgba(2, 6, 23, 0.95) 5px 10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.dj-vinyl::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.dj-vinyl.spinning {
  animation: djSpin 6s linear infinite;
}

.dj-vinyl-core {
  position: absolute;
  inset: 26px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.55), rgba(14, 165, 233, 0.26)),
    #0f172a;
  background-size: cover;
  background-position: center;
  border: 5px solid rgba(15, 23, 42, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.dj-vinyl-core::after {
  content: "";
  position: absolute;
  inset: 50%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #e2e8f0;
}

.dj-vinyl-title {
  color: #fff;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.25rem;
  font-size: 0.94rem;
}

.dj-vinyl-meta,
.dj-ai-reason {
  color: rgba(226, 232, 240, 0.78);
  font-size: 0.78rem;
  line-height: 1.35;
}

.dj-ai-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(7, 16, 32, 0.96), rgba(3, 7, 18, 1));
}

.dj-ai-score {
  min-width: 64px;
  padding: 0.45rem 0.7rem;
  border-radius: 16px;
  text-align: center;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(14, 165, 233, 0.95));
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.18);
}

.dj-ai-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dj-expand-card {
  background:
    radial-gradient(circle at top left, rgba(168, 85, 247, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(7, 11, 24, 0.96), rgba(3, 7, 18, 1));
}

.dj-module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  padding: 0.8rem 1rem 1rem;
}

.dj-module-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 0.8rem;
  border-radius: 16px;
  border: 1px dashed rgba(168, 85, 247, 0.35);
  background: rgba(168, 85, 247, 0.08);
  color: #e9d5ff;
  font-weight: 700;
  font-size: 0.82rem;
}

.dj-flow-items .dj-playlist-pill {
  min-width: 0;
  width: 100%;
}

.dj-performance-deck {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.85rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dj-performance-deck.active {
  border-color: rgba(56, 189, 248, 0.34);
  box-shadow: 0 18px 40px rgba(2, 132, 199, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.dj-performance-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.dj-performance-kicker {
  color: rgba(125, 211, 252, 0.9);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.dj-performance-title {
  color: #fff;
  font-weight: 700;
  line-height: 1.25;
}

.dj-stage-screen {
  position: relative;
  height: 170px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at center, rgba(59, 130, 246, 0.16), transparent 40%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.98));
}

.dj-youtube-frame,
.dj-youtube-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.dj-stage-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.8rem;
  background: linear-gradient(transparent, rgba(2, 6, 23, 0.96));
  pointer-events: none;
}

.dj-stage-meta {
  color: rgba(226, 232, 240, 0.8);
  font-size: 0.74rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.dj-level-meter {
  display: flex;
  align-items: end;
  gap: 0.28rem;
  height: 24px;
}

.dj-level-meter span {
  width: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #38bdf8, #2563eb);
  animation: djMeter 1.15s ease-in-out infinite;
  opacity: 0.8;
}

.dj-level-meter span:nth-child(1) { height: 24%; animation-delay: 0s; }
.dj-level-meter span:nth-child(2) { height: 52%; animation-delay: 0.08s; }
.dj-level-meter span:nth-child(3) { height: 76%; animation-delay: 0.16s; }
.dj-level-meter span:nth-child(4) { height: 42%; animation-delay: 0.24s; }
.dj-level-meter span:nth-child(5) { height: 90%; animation-delay: 0.32s; }
.dj-level-meter span:nth-child(6) { height: 58%; animation-delay: 0.4s; }

.dj-deck-actions,
.dj-cue-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.4rem;
}

.dj-cue-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.dj-control-btn,
.dj-cue-btn {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
  color: #e2e8f0;
  border-radius: 12px;
  min-height: 34px;
  font-size: 0.82rem;
}

.dj-control-btn:hover,
.dj-cue-btn:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.28);
  color: #fff;
}

.dj-volume-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(226, 232, 240, 0.82);
  font-size: 0.78rem;
}

.dj-volume-row .form-range {
  accent-color: #38bdf8;
}

.dj-mixer-strip {
  background: rgba(2, 6, 23, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.dj-crossfader-wrap {
  width: min(100%, 340px);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.dj-crossfader-wrap .form-range {
  accent-color: #38bdf8;
}

@keyframes djMeter {
  0%, 100% { transform: scaleY(0.6); opacity: 0.45; }
  50% { transform: scaleY(1); opacity: 1; }
}

@keyframes djSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 1599px) {
  .dj-workspace-topbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .dj-workspace-meta {
    justify-content: flex-start;
  }

  .dj-workspace-grid {
    grid-template-columns: 320px minmax(0, 1fr);
    grid-template-areas:
      "queue stage"
      "queue tools";
  }

  .dj-column-stage {
    border-right: 0;
  }

  .dj-column-tools {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }

  .dj-tool-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .dj-expand-card {
    grid-column: 1 / -1;
  }

  .dj-stage-summary-grid .dj-deck-card {
    grid-column: span 6;
  }

  .dj-stage-metrics {
    grid-column: 1 / -1;
  }

  .dj-spotlight-card {
    grid-column: span 6;
  }

  .dj-ai-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1199px) {
  .dj-workspace-grid {
    grid-template-columns: 300px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
  }

  .dj-stage-summary-grid .dj-deck-card,
  .dj-stage-metrics,
  .dj-spotlight-card,
  .dj-ai-panel {
    grid-column: 1 / -1;
  }

  .dj-stage-metrics {
    grid-template-columns: 1fr;
  }

  .dj-performance-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991px) {
  .dj-workspace-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "stage"
      "queue"
      "tools";
    overflow: auto;
  }

  .dj-column-queue,
  .dj-column-stage {
    border-right: 0;
  }

  .dj-column-queue,
  .dj-column-stage,
  .dj-column-tools {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .dj-tool-stack {
    grid-template-columns: 1fr;
  }

  .dj-module-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.gastos-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.18), transparent 32%),
    radial-gradient(circle at bottom left, rgba(34, 197, 94, 0.1), transparent 30%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.85));
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.28);
}

.gastos-hero-copy {
  max-width: 720px;
}

.gastos-hero-kicker,
.gastos-form-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fda4af;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.gastos-hero-title {
  color: #fff;
  font-size: clamp(2rem, 2.4vw, 3rem);
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.03em;
}

.gastos-hero-subtitle {
  margin: 0.75rem 0 0;
  color: rgba(226, 232, 240, 0.78);
  font-size: 1rem;
  max-width: 760px;
}

.gastos-hero-side {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}

.gastos-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(10px);
}

.gastos-hero-chip-danger {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.25);
  background: rgba(127, 29, 29, 0.18);
}

.gastos-form-shell,
.gastos-history-shell {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.82));
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.gastos-form-shell {
  padding: 1rem;
}

.gastos-form-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(248, 113, 113, 0.2), transparent 40%),
    linear-gradient(135deg, rgba(127, 29, 29, 0.3), rgba(15, 23, 42, 0.4));
  border: 1px solid rgba(248, 113, 113, 0.14);
}

.gastos-form-title,
.gastos-history-title {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.gastos-amount-preview {
  min-width: 120px;
  text-align: right;
}

.gastos-amount-preview strong {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
}

.gastos-preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.gastos-preset-btn {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  font-size: 0.8rem;
  transition: all 0.18s ease;
}

.gastos-preset-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(248, 113, 113, 0.35);
  color: #fff;
  background: rgba(248, 113, 113, 0.12);
}

.gastos-upload-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.gastos-upload-box .input-modern {
  background: transparent;
  border: none;
  padding: 0;
}

.gastos-upload-box .input-modern:focus {
  box-shadow: none;
}

.gastos-form-tip {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.14);
  color: #cbd5e1;
  font-size: 0.9rem;
}

.gastos-submit-btn {
  border-radius: 18px !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gastos-history-shell {
  padding: 1.2rem;
}

.gastos-history-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.gastos-toolbar {
  background: rgba(2, 6, 23, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 0.75rem;
}

.gastos-filter-field {
  flex: 1 1 320px;
}

.gastos-filter-select {
  width: 220px;
  border-radius: 14px;
}

.gastos-history-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.gastos-history-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #94a3b8;
  font-size: 0.85rem;
}

.gastos-kpi {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.08), transparent 35%),
    linear-gradient(160deg, rgba(15, 23, 42, 0.86), rgba(2, 6, 23, 0.82));
  padding: 1rem;
  min-height: 132px;
}

.gastos-kpi-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
  margin-bottom: 0.45rem;
}

.gastos-kpi-value {
  color: #f8fafc;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.05;
}

.gastos-kpi-category {
  font-size: 1.05rem;
  color: #67e8f9;
}

.gastos-kpi-sub {
  margin-top: 0.55rem;
  color: #94a3b8;
  font-size: 0.8rem;
}

.gastos-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.gastos-card {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at right center, rgba(14, 165, 233, 0.08), transparent 25%),
    linear-gradient(160deg, rgba(15, 23, 42, 0.84), rgba(2, 6, 23, 0.82));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.gastos-card:hover {
  transform: none;
  border-color: rgba(248, 113, 113, 0.22);
}

.gastos-card-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.gastos-card-day {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
}

.gastos-card-month {
  margin-top: 0.25rem;
  color: #94a3b8;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.gastos-card-main {
  min-width: 0;
}

.gastos-card-category {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.18);
  color: #7dd3fc;
  font-size: 0.78rem;
}

.gastos-card-meta {
  color: #94a3b8;
  font-size: 0.8rem;
}

.gastos-card-title {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.gastos-card-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
}

.gastos-card-amount {
  color: #fca5a5;
  font-size: 1.2rem;
  font-weight: 800;
}

.gastos-empty-state {
  background: linear-gradient(160deg, rgba(30, 41, 59, 0.5), rgba(15, 23, 42, 0.55));
  border-radius: 22px;
}

.panel-notification-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.panel-notification-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 0.85rem;
  align-items: start;
  padding: 0.9rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at right center, rgba(59, 130, 246, 0.08), transparent 28%),
    linear-gradient(160deg, rgba(15, 23, 42, 0.78), rgba(2, 6, 23, 0.72));
}

.panel-notification-item.order {
  border-color: rgba(248, 113, 113, 0.16);
}

.panel-notification-item.music {
  border-color: rgba(34, 211, 238, 0.18);
}

.panel-notification-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.panel-notification-item.order .panel-notification-icon {
  background: rgba(248, 113, 113, 0.14);
  color: #fda4af;
}

.panel-notification-item.music .panel-notification-icon {
  background: rgba(34, 211, 238, 0.14);
  color: #67e8f9;
}

.panel-notification-title {
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
}

.panel-notification-message {
  color: #cbd5e1;
  font-size: 0.86rem;
  margin-top: 0.2rem;
}

.panel-notification-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #94a3b8;
  font-size: 0.78rem;
  margin-top: 0.4rem;
}

.panel-notification-time {
  color: #94a3b8;
  font-size: 0.74rem;
  white-space: nowrap;
}

.panel-notification-empty {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #94a3b8;
}

/* Login specific */
.login-glass {
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(40px);
}

@media (max-width: 992px) {
  .app-shell { flex-direction: column; }
  .sidebar { width: 100%; height: auto; flex-direction: row; padding: 1rem; overflow-x: auto; }
  .pos-cart { width: 100%; height: 50vh; order: 2; }
  .nav-menu { flex-direction: row; }
  .brand, .user-profile { display: none; }
  .gastos-hero,
  .gastos-history-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .gastos-hero-side {
    justify-content: flex-start;
  }
  .gastos-card {
    grid-template-columns: 1fr;
  }
  .gastos-card-date,
  .gastos-card-side {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
  }
}

/* =========================================
   TABLE MANAGEMENT & MAP STYLES (v2 â€“ Pro Floor Plan)
   ========================================= */

#tablesMapContainer {
  background-color: #101418;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0);
  background-size: 28px 28px;
  position: relative;
  overflow: hidden;
}

body.light-mode #tablesMapContainer {
  background-color: #f1f5f9;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(0,0,0,0.06) 1px, transparent 0);
  background-size: 28px 28px;
}

#tablesMapContainer::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 60%, rgba(124,58,237,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(14,165,233,0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ---- TABLE ITEM ---- */
.table-item {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  user-select: none;
  z-index: 10;
  border-radius: 14px;
  transform: translate(-50%, -50%);
}

.table-item:hover { z-index: 20; transform: translate(-50%, -50%) scale(1.08); }

.table-item .table-surface {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px;
  position: relative;
  overflow: visible;
  transition: none !important;
  background: rgba(30, 41, 59, 0.7);
  border: 2px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  color: #e2e8f0;
}

.table-item.circle .table-surface { border-radius: 50%; }
.table-item.bar .table-surface { border-radius: 8px; }
.table-item.silla .table-surface { border-radius: 10px; }
.table-item.banqueta .table-surface { border-radius: 50%; }

/* Hide chairs for small individual seats */
.table-item.silla .chair,
.table-item.banqueta .chair { display: none; }

/* Subtle different border for silla/banqueta */
.table-item.silla.status-free .table-surface,
.table-item.banqueta.status-free .table-surface {
  border-color: rgba(251,191,36,0.2);
}
.table-item.silla.status-free:hover .table-surface,
.table-item.banqueta.status-free:hover .table-surface {
  border-color: rgba(251,191,36,0.5);
  box-shadow: 0 0 15px rgba(251,191,36,0.1);
}

/* FREE */
.table-item.status-free .table-surface {
  background: rgba(30, 41, 59, 0.55);
  border-color: rgba(14, 165, 233, 0.2);
}

.table-item.status-free:hover .table-surface {
  border-color: rgba(14, 165, 233, 0.5);
  box-shadow: 0 0 20px rgba(14,165,233,0.15);
}

/* OCCUPIED */
.table-item.status-occupied .table-surface {
  background: linear-gradient(135deg, rgba(124,58,237,0.25), rgba(124,58,237,0.1));
  border-color: rgba(124,58,237,0.5);
  box-shadow: 0 0 25px rgba(124,58,237,0.2);
}

.table-item.status-occupied:hover .table-surface {
  border-color: rgba(124,58,237,0.8);
  box-shadow: 0 0 35px rgba(124,58,237,0.35);
}

/* ---- INFO OVERLAY (Tooltip) ---- */
.table-info-overlay {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15,23,42,0.92);
  backdrop-filter: blur(12px);
  padding: 8px 14px;
  border-radius: 10px;
  min-width: 110px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  z-index: 100;
  color: #fff;
  border: 1px solid rgba(124,58,237,0.25);
  pointer-events: none;
  white-space: nowrap;
}

.table-info-overlay::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(15,23,42,0.92);
}

body.light-mode .table-item .table-surface {
  background: rgba(255,255,255,0.85);
  border-color: rgba(0,0,0,0.08);
  color: #1e293b;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

body.light-mode .table-item.status-occupied .table-surface {
  background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(124,58,237,0.05));
  border-color: rgba(124,58,237,0.35);
}

body.light-mode .table-info-overlay {
  background: #fff;
  color: #1e293b;
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

body.light-mode .table-info-overlay::after {
  border-top-color: #fff;
}

.very-small { font-size: 0.6rem; }

/* ---- CHAIRS ---- */
.chair {
  position: absolute;
  width: 20px;
  height: 8px;
  background: rgba(148,163,184,0.3);
  border-radius: 3px;
  z-index: 1;
  transition: background 0.3s;
}

/* ---- RESIZE HANDLE ---- */
.resize-handle {
  position: absolute;
  right: -8px;
  bottom: -8px;
  width: 20px;
  height: 20px;
  background: var(--primary);
  border: 3px solid #fff;
  border-radius: 50%;
  cursor: nwse-resize;
  z-index: 50;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
  pointer-events: none;
}

body.light-mode .resize-handle { border-color: #f1f5f9; }

.editing .resize-handle {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.editing .resize-handle:hover {
  transform: scale(1.2);
  background: var(--primary-light);
}

.table-item.status-occupied .chair { background: rgba(124,58,237,0.35); }

.chair-t { top: -10px; left: 50%; transform: translateX(-50%); }
.chair-b { bottom: -10px; left: 50%; transform: translateX(-50%); }
.chair-l { left: -10px; top: 50%; transform: translateY(-50%) rotate(90deg); }
.chair-r { right: -10px; top: 50%; transform: translateY(-50%) rotate(90deg); }

/* ---- MAP TOOLBAR ---- */
.map-toolbar {
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, transparent 100%);
  pointer-events: none;
}

.map-toolbar > * { pointer-events: auto; }

.map-toolbar .glass-panel {
  pointer-events: auto;
  border-color: rgba(255,255,255,0.08);
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(12px);
}

body.light-mode .map-toolbar {
  background: linear-gradient(180deg, rgba(241,245,249,0.8) 0%, transparent 100%);
}

body.light-mode .map-toolbar .glass-panel {
  background: rgba(255,255,255,0.7);
  border-color: rgba(0,0,0,0.06);
}

.hover-opacity-100:hover { opacity: 1 !important; }

/* ---- OCCUPIED PULSE ---- */
.table-item.status-occupied {
  animation: table-glow 4s infinite ease-in-out;
}

@keyframes table-glow {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(124, 58, 237, 0.15)); }
  50% { filter: drop-shadow(0 0 18px rgba(124, 58, 237, 0.4)); }
}

/* ---- EDITING UI ---- */
.table-item.editing {
  cursor: grab;
}

.table-item.editing:active {
  cursor: grabbing;
}

.table-item.editing .table-surface {
  border-style: dashed;
  border-color: rgba(255,189,92,0.5);
}

.delete-table-btn {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #ef4444;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(15,23,42,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.4);
  cursor: pointer;
  z-index: 2000;
  transition: all 0.2s ease;
}

.delete-table-btn:hover {
  transform: scale(1.2);
  background: #dc2626;
}

/* ---- CONTEXT MENU ---- */
#tableContextMenu {
  z-index: 3000 !important;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  min-width: 200px;
}

body.light-mode #tableContextMenu {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0,0,0,0.06);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

body.light-mode .delete-table-btn {
  border-color: #fff;
}

/* Edit mode bottom bar */
.edit-mode-bar {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 10px 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

/* --- WEB GRABBER UI --- */
.web-grabber-zone {
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(15, 23, 42, 0.4);
    border-radius: 24px;
    padding: 25px;
    backdrop-filter: blur(10px);
}

.grabber-preview-container {
    width: 200px;
    height: 200px;
    margin: 20px auto 0;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(0,0,0,0.3);
    display: none;
    border: 3px solid var(--primary);
    box-shadow: 0 0 30px var(--primary-glow), inset 0 0 20px rgba(0,0,0,0.5);
    animation: image-pulse 2s infinite ease-in-out;
}

@keyframes image-pulse {
    0%, 100% { transform: scale(1); border-color: var(--primary); }
    50% { transform: scale(1.02); border-color: #d095ff; }
}

.step-number {
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    margin-right: 8px;
}

#imageSearchModal .modal-content {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
}

.btn-search-image {
    background: rgba(208, 149, 255, 0.1);
    color: var(--primary);
    border: 1px solid rgba(208, 149, 255, 0.2);
    transition: none !important;
}

.btn-search-image:hover {
    background: var(--primary);
    color: white;
    transform: none;
}

.dj-console-shell {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}

.dj-console-header {
  display: grid;
  grid-template-columns: minmax(280px, 1.15fr) minmax(420px, 1.9fr) minmax(200px, 0.8fr);
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.15), transparent 32%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.96), rgba(6, 11, 24, 0.92));
}

.dj-console-commandbar,
.dj-console-brand,
.dj-workspace-meta {
  min-width: 0;
}

.dj-console-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  min-height: 0;
  padding: 1rem 1.2rem 1.2rem;
  overflow-y: visible;
  overflow-x: hidden;
}

.dj-vjd-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(340px, 1.2fr) minmax(300px, 1fr);
  gap: 1.5rem;
}

.dj-vjd-deck {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.4), rgba(2, 6, 23, 0.6));
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 24px;
  padding: 1rem;
}

.dj-vjd-video {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255,255,255,0.1);
}

.dj-vjd-jog-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
}

.dj-vjd-jog {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #1e293b 0%, #0f172a 80%, #020617 100%);
  border: 4px solid #334155;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5), inset 0 0 15px rgba(0,0,0,0.8);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dj-vjd-jog.spinning {
  animation: spin 2s linear infinite;
}

.dj-vjd-jog-inner {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #0f172a;
  border: 2px solid #475569;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #94a3b8;
  font-weight: bold;
  font-size: 0.8rem;
}

.dj-vjd-center {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dj-console-rail-bottom {
  display: flex;
  flex-direction: column;
  margin-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1rem;
}

.dj-virtual-dj-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(340px, 1.2fr) minmax(260px, 1fr);
  gap: 1rem;
  flex: 1;
  min-height: 0;
}

.dj-deck-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dj-mixer-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dj-console-rail,
.dj-console-stage,
.dj-console-main,
.dj-tools-shell,
.dj-tool-panels,
.dj-tool-panel {
  min-height: 0;
}

.dj-console-rail,
.dj-console-stage {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dj-console-card {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.95));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
  overflow: hidden;
}

.dj-console-main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dj-console-toolbar {
  padding: 0.4rem 0.6rem;
  border-radius: 16px;
  background: rgba(4, 10, 24, 0.88);
  border: 1px solid rgba(255,255,255,0.07);
  overflow: visible;
  position: relative;
  z-index: 10000;
}

.dj-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.dj-section-copy {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}

.dj-section-subtitle {
  max-width: 720px;
  line-height: 1.45;
}

.dj-header-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.dj-header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.dj-app-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.dj-app-btn:hover {
  transform: translateY(-1px);
  color: #fff;
}

.dj-app-btn:disabled {
  opacity: 0.72;
  cursor: default;
  transform: none;
}

.dj-app-btn-primary {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.24), rgba(14, 165, 233, 0.18));
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.14);
}

.dj-app-btn-primary:hover,
.dj-app-btn-primary.is-active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.34), rgba(34, 211, 238, 0.24));
  border-color: rgba(103, 232, 249, 0.42);
}

.dj-app-btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(148, 163, 184, 0.22);
}

.dj-app-btn-secondary.is-ready {
  border-color: rgba(168, 85, 247, 0.36);
  color: #e9d5ff;
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.24), rgba(59, 130, 246, 0.14));
}

.dj-app-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.72);
  color: rgba(226, 232, 240, 0.84);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.dj-app-status.is-active {
  color: #a7f3d0;
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(6, 95, 70, 0.18);
}

.dj-app-status.is-standalone {
  color: #bfdbfe;
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(30, 64, 175, 0.2);
}

.dj-deck-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.dj-deck-overview-card {
  display: grid;
  gap: 0.65rem;
  padding: 1rem 1.1rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.07), transparent 34%),
    linear-gradient(180deg, rgba(7, 11, 24, 0.94), rgba(2, 6, 23, 0.94));
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.22);
  min-width: 0;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.dj-deck-overview-card.deck-a {
  border-color: rgba(59, 130, 246, 0.22);
}

.dj-deck-overview-card.deck-b {
  border-color: rgba(34, 211, 238, 0.22);
}

.dj-deck-overview-card.is-active {
  transform: none;
}

.dj-deck-overview-card.is-live {
  box-shadow: 0 20px 48px rgba(14, 165, 233, 0.2);
}

.dj-deck-overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.dj-deck-overview-name {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #e2e8f0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dj-deck-overview-title {
  color: #f8fafc;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dj-deck-overview-meta {
  color: rgba(148, 163, 184, 0.88);
  font-size: 0.78rem;
  line-height: 1.45;
  min-width: 0;
}

.dj-deck-overview-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
  color: #e2e8f0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}



.dj-music-hub,
.dj-request-dock {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.4rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.72), rgba(4, 10, 24, 0.92));
}

.dj-music-hub {
  flex: 1.4 1 0;
  min-width: 0;
  position: relative;
  z-index: 2;
  overflow: visible;
  justify-content: flex-start;
}

.dj-music-hub-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.dj-music-hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dj-request-dock {
  flex: 0.95 1 0;
  min-width: 0;
  gap: 0.25rem;
  padding: 0.4rem;
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(6, 14, 33, 0.96), rgba(3, 8, 22, 0.98));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 18px 44px rgba(2, 6, 23, 0.34);
}

.dj-search-placeholder {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  text-align: center;
  padding: 0.65rem 0.85rem;
  color: rgba(148, 163, 184, 0.8);
}

.dj-search-placeholder-icon {
  font-size: 1.2rem;
  color: rgba(56, 189, 248, 0.45);
}

.dj-search-placeholder-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.dj-console-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dj-console-visual-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.05fr) minmax(340px, 1.5fr) minmax(260px, 1.05fr);
  gap: 1rem;
  min-height: 320px;
}

.dj-screen-panel,
.dj-visual-core {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dj-screen-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 0;
}

.dj-console-screen {
  min-height: 245px;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}

.dj-visual-card {
  flex: 0 0 auto;
}

.dj-visual-stack {
  display: grid;
  gap: 0.65rem;
  padding: 0 1rem 1rem;
}

.dj-visual-canvas {
  width: 100%;
  height: 120px;
  border-radius: 18px;
  background:
    radial-gradient(circle at center, rgba(34, 211, 238, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(7, 11, 24, 0.98), rgba(3, 7, 18, 0.94));
  border: 1px solid rgba(255,255,255,0.06);
}

.dj-deck-playlist-items {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 4px;
}

.dj-playlist-item {
  display: flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 6px;
  margin-bottom: 2px;
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.2s ease;
  cursor: pointer;
}

.dj-playlist-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.dj-playlist-item.active {
  background: rgba(14, 165, 233, 0.15);
  border-left: 2px solid #0ea5e9;
}

.dj-playlist-item-img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: cover;
  margin-right: 8px;
}

.dj-playlist-item-info {
  flex: 1;
  min-width: 0;
}

.dj-playlist-item-title {
  font-weight: 600;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.75rem;
}

.dj-playlist-item-artist {
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.65rem;
}

.dj-playlist-item-remove {
  color: #ef4444;
  opacity: 0.5;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
}

.dj-playlist-item-remove:hover {
  opacity: 1;
  background: rgba(239, 68, 68, 0.1);
}

.dj-playlist-item-play:hover {
  color: #0ea5e9 !important;
}

.dj-playlist-item-fav:hover {
  color: #fbbf24 !important;
  opacity: 1;
}

.dj-playlist-item-download:hover {
  color: #22c55e !important;
  opacity: 1;
}

.dj-deck-queue-card {
  padding: 0.95rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.88), rgba(15, 23, 42, 0.7));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dj-deck-queue-card-a {
  border-color: rgba(59, 130, 246, 0.2);
}

.dj-deck-queue-card-b {
  border-color: rgba(34, 211, 238, 0.2);
}

.dj-deck-queue-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.dj-deck-queue-title-wrap {
  min-width: 0;
}

.dj-deck-queue-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #f8fafc;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dj-deck-queue-subtitle {
  margin-top: 0.35rem;
  color: rgba(148, 163, 184, 0.88);
  font-size: 0.72rem;
  line-height: 1.35;
}

.dj-deck-queue-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.dj-deck-queue-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 32px;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 0.8rem;
  font-weight: 800;
}

.dj-deck-queue-list {
  max-height: 250px;
  overflow-y: auto;
  border-radius: 18px;
  padding: 0.35rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.dj-deck-queue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.65rem;
  margin-bottom: 0.4rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.dj-deck-queue-item:last-child {
  margin-bottom: 0;
}

.dj-deck-queue-item-current {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(14, 165, 233, 0.08));
  border-color: rgba(59, 130, 246, 0.22);
}

.dj-deck-queue-item-side {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1;
}

.dj-deck-queue-art {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dj-deck-queue-copy {
  min-width: 0;
}

.dj-deck-queue-line {
  color: #f8fafc;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.25;
}

.dj-deck-queue-meta-line {
  color: #94a3b8;
  font-size: 0.68rem;
  line-height: 1.25;
}

.dj-deck-queue-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dj-deck-queue-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dj-deck-queue-pill-primary {
  color: #bfdbfe;
  background: rgba(37, 99, 235, 0.18);
}

.dj-deck-queue-pill-info {
  color: #a5f3fc;
  background: rgba(6, 182, 212, 0.16);
}

.dj-deck-queue-pill-soft {
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.14);
}

.dj-console-spotlight-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dj-console-mixer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(360px, 1.25fr) minmax(260px, 1fr);
  gap: 1rem;
}

.dj-center-mixer-card {
  padding-bottom: 0.5rem;
  flex-shrink: 0;
}

.dj-center-mixer-body {
  display: grid;
  gap: 1rem;
  padding: 0 1rem 1rem;
}

.dj-master-faders {
  display: grid;
  gap: 0.5rem;
}

.dj-console-range-group {
  display: grid;
  gap: 0.35rem;
}

.dj-console-range-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: rgba(226, 232, 240, 0.92);
  font-size: 0.82rem;
  font-weight: 600;
}

.dj-graphic-eq {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: end;
  min-height: 180px;
}

.dj-eq-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 0.45rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
}

.dj-eq-band span {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.9);
  letter-spacing: 0.08em;
}

.dj-eq-band input[type="range"] {
  writing-mode: vertical-lr !important;
  direction: rtl !important;
  width: 20px;
  height: 110px;
}

.dj-console-performance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.dj-pad-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0 1rem 1rem;
}

.dj-pad-btn {
  min-height: 74px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.09);
  background:
    radial-gradient(circle at top, rgba(56, 189, 248, 0.18), transparent 65%),
    rgba(15, 23, 42, 0.88);
  color: #f8fafc;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.dj-pad-btn.active,
.dj-pad-btn:hover {
  transform: none;
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 12px 24px rgba(34, 211, 238, 0.14);
}

.dj-knob-grid,
.dj-video-routing-grid,
.dj-status-grid {
  display: grid;
  gap: 0.75rem;
  padding: 0 1rem 1rem;
}

.dj-knob-grid,
.dj-video-routing-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dj-knob-control {
  display: grid;
  gap: 0.45rem;
  padding: 0.8rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
}

.dj-knob-control label,
.dj-status-label {
  font-size: 0.76rem;
  color: rgba(148, 163, 184, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dj-knob-control span {
  color: #f8fafc;
  font-weight: 700;
}

.dj-status-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dj-status-pill {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
}

.dj-status-pill strong {
  color: #f8fafc;
  font-size: 1rem;
}

.dj-side-status-card {
  flex: 0 0 auto;
}

.dj-system-note {
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  color: rgba(226, 232, 240, 0.88);
}

.dj-tools-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.dj-tool-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.dj-tool-tab {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: rgba(226, 232, 240, 0.8);
  border-radius: 999px;
  padding: 0.55rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.dj-tool-tab.active {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.26), rgba(34, 211, 238, 0.18));
  color: #fff;
  border-color: rgba(59, 130, 246, 0.28);
}

.dj-tool-panels {
  flex: 1;
  position: relative;
}

.dj-tool-panel {
  display: none;
  height: 100%;
  overflow: hidden;
}

.dj-tool-panel.active {
  display: flex;
  flex-direction: column;
}

.dj-tools-body {
  padding: 0 1rem 1rem;
}

.dj-flow-items,
.dj-browser-viewport {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.dj-request-panel,
.dj-tools-shell {
  height: 100%;
}

.dj-request-table-wrap {
  max-height: 100%;
}

.dj-v-slider {
  writing-mode: vertical-lr;
  direction: rtl;
  width: 40px;
  height: 160px;
  accent-color: #64748b;
  background: rgba(0,0,0,0.3);
  border-radius: 4px;
}

@media (max-width: 1680px) {
  .dj-workspace {
    height: auto;
    min-height: auto;
    max-height: none;
    overflow: visible;
  }

  .dj-console-header {
    grid-template-columns: 1fr;
  }

  .dj-console-body {
    grid-template-columns: minmax(0, 2fr) minmax(260px, 0.95fr);
    overflow: visible;
  }

  .dj-console-rail-right {
    grid-column: 1 / -1;
  }

  .dj-tools-shell {
    min-height: 380px;
  }

  .dj-console-visual-grid,
  .dj-console-mixer-grid,
  .dj-console-performance-grid,
  .dj-console-spotlight-grid,
  .dj-virtual-dj-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1280px) {
  .dj-workspace {
    height: auto;
    min-height: auto;
    max-height: none;
  }

  .dj-console-body {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .dj-console-toolbar,
  .dj-console-header,
  .dj-console-body {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .dj-console-summary,
  .dj-knob-grid,
  .dj-video-routing-grid,
  .dj-tool-tabs,
  .dj-status-grid {
    grid-template-columns: 1fr;
  }

  .dj-section-header,
  .dj-stage-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .dj-header-meta {
    justify-content: flex-start;
  }

  .dj-music-hub,
  .dj-request-dock {
    width: 100%;
    flex: 1 1 auto;
  }
}

/* =========================================
   VDJ PRO CONSOLE STYLES
   ========================================= */

/* Waveform Overview Bar */
.vdj-waveform-overview {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: rgba(2, 6, 23, 0.95);
  border: none;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 4px;
}

.vdj-waveform-canvas {
  flex: 1;
  min-width: 0;
  display: block;
  background: rgba(0,0,0,0.4);
  cursor: ew-resize;
}

.vdj-waveform-b { border-left: 1px solid rgba(255,255,255,0.06); }

.vdj-waveform-divider {
  display: flex;
  align-items: center;
  padding: 0 8px;
  background: rgba(15,23,42,0.9);
}

.vdj-bpm-sync {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #38bdf8;
  white-space: nowrap;
  text-shadow: 0 0 8px rgba(56,189,248,0.4);
}

/* Console 3-Column Grid */
.vdj-console-grid {
  display: grid;
  grid-template-columns: 1fr 220px 1fr;
  gap: 6px;
  min-height: 0;
}

/* Deck Shared */
.vdj-deck {
  background: rgba(8, 12, 24, 0.95);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}

.vdj-deck-a { border-top: none; }
.vdj-deck-b { border-top: none; }

.vdj-deck.dj-drop-ready {
  border-color: rgba(56,189,248,0.78);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 0 0 1px rgba(56,189,248,0.35), 0 22px 38px rgba(14,165,233,0.22);
  transform: none;
}

.vdj-deck-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vdj-deck-label-tag {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.vdj-tag-a {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: white;
  box-shadow: 0 0 12px rgba(59,130,246,0.3);
}

.vdj-tag-b {
  background: linear-gradient(135deg, #0891b2, #06b6d4);
  color: white;
  box-shadow: 0 0 12px rgba(6,182,212,0.3);
}

.vdj-deck-track-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.vdj-track-title {
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vdj-track-artist {
  color: rgba(148,163,184,0.8);
  font-size: 0.65rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Video + Jog Row */
.vdj-deck-main-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  min-height: 130px;
}

.vdj-video-box {
  position: relative;
  min-height: 100px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.08), transparent 48%),
    linear-gradient(180deg, rgba(4,9,22,0.95), rgba(1,4,11,0.98));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 18px 35px rgba(2,6,23,0.35);
}

.vdj-video-box.show-artwork .dj-youtube-frame {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.04);
}

.vdj-deck-artwork {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: opacity 0.35s ease, transform 0.35s ease;
  transform: scale(1.08);
}

.vdj-deck-artwork::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, transparent 0 22%, rgba(255,255,255,0.08) 24%, transparent 28%),
    linear-gradient(180deg, rgba(2,6,23,0.1), rgba(2,6,23,0.78));
}

.vdj-video-box.show-artwork .vdj-deck-artwork {
  opacity: 1;
  transform: scale(1);
}

.vdj-video-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 6px 8px;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
  pointer-events: none;
  z-index: 2;
}

.vdj-video-meta {
  color: rgba(226,232,240,0.7);
  font-size: 0.6rem;
  margin-bottom: 4px;
}

/* VU Meter */
.vdj-vu-meter {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 18px;
}

.vdj-vu-meter span {
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, #ef4444, #f59e0b 40%, #22c55e 70%);
  animation: djMeter 0.8s ease-in-out infinite;
  opacity: 0.75;
}

.vdj-vu-meter span:nth-child(1) { height: 30%; animation-delay: 0s; }
.vdj-vu-meter span:nth-child(2) { height: 55%; animation-delay: 0.06s; }
.vdj-vu-meter span:nth-child(3) { height: 80%; animation-delay: 0.12s; }
.vdj-vu-meter span:nth-child(4) { height: 45%; animation-delay: 0.18s; }
.vdj-vu-meter span:nth-child(5) { height: 95%; animation-delay: 0.24s; }
.vdj-vu-meter span:nth-child(6) { height: 60%; animation-delay: 0.30s; }
.vdj-vu-meter span:nth-child(7) { height: 40%; animation-delay: 0.36s; }
.vdj-vu-meter span:nth-child(8) { height: 70%; animation-delay: 0.42s; }

/* Jog Wheel */
.vdj-jog-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 12px 10px 8px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.09), transparent 22%),
    linear-gradient(180deg, rgba(18,24,38,0.98), rgba(4,8,16,0.98));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 18px 34px rgba(2,6,23,0.38);
}

.vdj-deck-a .vdj-jog-wrap {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 18px 34px rgba(37,99,235,0.16);
}

.vdj-deck-b .vdj-jog-wrap {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 18px 34px rgba(6,182,212,0.16);
}

.vdj-jog-wrap::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.05);
  background: radial-gradient(circle at center, rgba(255,255,255,0.04), transparent 65%);
}

.vdj-jog-wrap::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 12px rgba(34,197,94,0.9);
}

.vdj-jog-canvas {
  width: 100%;
  max-width: 182px;
  height: auto;
  cursor: grab;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 16px 24px rgba(15,23,42,0.45));
  transition: filter 0.3s ease;
  touch-action: none;
  user-select: none;
}

.vdj-jog-canvas:active { cursor: grabbing; filter: drop-shadow(0 20px 34px rgba(59,130,246,0.28)); }

.vdj-jog-time {
  font-size: 0.7rem;
  font-weight: 700;
  color: #38bdf8;
  margin-top: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(56,189,248,0.16);
  background: rgba(8,14,26,0.88);
  text-shadow: 0 0 6px rgba(56,189,248,0.3);
  font-family: 'Courier New', monospace;
}

/* Transport Buttons */
.vdj-transport {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) repeat(2, minmax(0, 1fr)) minmax(0, 0.9fr);
  gap: 0.45rem;
  align-items: stretch;
  margin-top: 0.15rem;
}

.vdj-btn {
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: #94a3b8;
  border-radius: 14px;
  min-height: 52px;
  padding: 0.7rem 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.vdj-btn-icon {
  padding-inline: 0.35rem;
  font-size: 0.9rem;
}

.vdj-btn:hover { background: rgba(255,255,255,0.08); color: #e2e8f0; border-color: rgba(255,255,255,0.18); }
.vdj-btn:active { transform: scale(0.95); }

.vdj-btn-play { background: rgba(34,197,94,0.15); color: #4ade80; border-color: rgba(34,197,94,0.3); }
.vdj-btn-play:hover { background: rgba(34,197,94,0.3); box-shadow: 0 0 12px rgba(34,197,94,0.2); }

.vdj-btn-pause { background: rgba(251,191,36,0.1); color: #fbbf24; border-color: rgba(251,191,36,0.25); }
.vdj-btn-pause:hover { background: rgba(251,191,36,0.25); }

.vdj-btn-cue { background: rgba(239,68,68,0.12); color: #f87171; border-color: rgba(239,68,68,0.25); }
.vdj-btn-cue:hover { background: rgba(239,68,68,0.25); box-shadow: 0 0 10px rgba(239,68,68,0.15); }

.vdj-btn-sync { background: rgba(168,85,247,0.12); color: #c084fc; border-color: rgba(168,85,247,0.25); }
.vdj-btn-sync:hover { background: rgba(168,85,247,0.25); box-shadow: 0 0 10px rgba(168,85,247,0.15); }

.vdj-btn-mixia {
  background: linear-gradient(135deg, rgba(124,58,237,0.3), rgba(59,130,246,0.3));
  color: #c4b5fd;
  border: 1px solid rgba(139,92,246,0.35);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 0.7rem;
}
.vdj-btn-mixia:hover { box-shadow: 0 0 16px rgba(139,92,246,0.25); }

/* EQ Strip */
.vdj-eq-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
}

.vdj-eq-knob-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.vdj-eq-knob-group label,
.vdj-vol-fader-wrap label {
  font-size: 0.55rem;
  font-weight: 800;
  color: rgba(148,163,184,0.6);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.vdj-knob {
  width: 100%;
  accent-color: #38bdf8;
  height: 4px;
}

.vdj-vol-fader-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 30px;
}

.vdj-vol-fader {
  writing-mode: vertical-lr;
  direction: rtl;
  width: 28px;
  height: 50px;
  accent-color: #22c55e;
  touch-action: none;
}

.vdj-vol-value {
  font-size: 0.55rem;
  font-weight: 700;
  color: #22c55e;
  font-family: monospace;
}

/* Hot Cue Buttons */
.vdj-hotcue-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
}

.vdj-hotcue {
  border: none;
  border-radius: 6px;
  padding: 4px;
  font-size: 0.65rem;
  font-weight: 800;
  cursor: pointer;
  color: white;
  text-align: center;
  transition: all 0.15s ease;
}

.vdj-hc-1 { background: rgba(239,68,68,0.35); }
.vdj-hc-2 { background: rgba(34,197,94,0.35); }
.vdj-hc-3 { background: rgba(59,130,246,0.35); }
.vdj-hc-4 { background: rgba(251,191,36,0.35); }
.vdj-hotcue:hover { filter: brightness(1.4); transform: scale(1.05); }
.vdj-hotcue:active { transform: scale(0.92); }

/* MIXER COLUMN - VDJ Style */
.vdj-mixer {
  background: linear-gradient(180deg, rgba(40,44,52,0.98), rgba(30,33,40,0.98));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}

.vdj-mixer-header {
  display: flex;
  align-items: stretch;
  border-bottom: none;
}

.vdj-mixer-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: rgba(148,163,184,0.6);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 8px 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-transform: uppercase;
}

.vdj-mixer-tab.active {
  color: #38bdf8;
  background: rgba(56,189,248,0.08);
  border-bottom: none;
}

.vdj-mixer-tab:hover { color: #e2e8f0; }

/* Mixer Body: 3 columns */
.vdj-mixer-body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2px;
  padding: 8px 4px;
  align-items: center;
}

/* Knob Columns */
.vdj-knobs-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.vdj-rotary-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 64px;
}

.vdj-rotary {
  cursor: grab;
  border-radius: 50%;
  transition: filter 0.2s ease;
  touch-action: none;
  user-select: none;
  outline: none;
  flex-shrink: 0;
  width: 48px !important;
  height: 48px !important;
  display: block;
}
.vdj-rotary:active { cursor: grabbing; filter: brightness(1.3); }
.vdj-rotary:focus-visible {
  box-shadow: 0 0 0 2px rgba(255,255,255,0.1), 0 0 0 4px rgba(59,130,246,0.35);
}

.vdj-rotary-label {
  font-size: 0.5rem;
  font-weight: 800;
  color: rgba(148,163,184,0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vdj-rotary-value {
  font-size: 0.58rem;
  font-weight: 700;
  color: rgba(226,232,240,0.88);
  font-variant-numeric: tabular-nums;
}

/* Channel Faders */
.vdj-channel-faders {
  display: flex;
  gap: 6px;
  padding: 4px 6px;
  align-items: center;
  justify-content: center;
}

.vdj-ch-fader-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vdj-ch-fader {
  writing-mode: vertical-lr;
  direction: rtl;
  width: 22px;
  height: 120px;
  accent-color: #64748b;
  background: rgba(0,0,0,0.3);
  border-radius: 4px;
  touch-action: none;
}

.vdj-ch-fader-a { accent-color: #3b82f6; }
.vdj-ch-fader-b { accent-color: #06b6d4; }

/* FX Row */
.vdj-fx-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px;
  border-top: none;
  border-bottom: none;
}

.vdj-fx-label {
  font-size: 0.55rem;
  font-weight: 700;
  color: rgba(148,163,184,0.5);
  letter-spacing: 0.1em;
}

.vdj-fx-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(168,85,247,0.3);
  background: rgba(168,85,247,0.1);
  color: #c084fc;
  font-size: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.vdj-fx-btn:hover { background: rgba(168,85,247,0.25); box-shadow: 0 0 10px rgba(168,85,247,0.2); }
.vdj-fx-btn.active { 
    background: #a855f7 !important; 
    border-color: #d8b4fe !important; 
    color: #fff !important;
    box-shadow: 0 0 15px rgba(168,85,247,0.8) !important; 
    transform: scale(1.05);
}

/* Master Row */
.vdj-master-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 6px;
}

/* Crossfader Track */
.vdj-cf-track {
  flex: 1;
  background: rgba(0,0,0,0.3);
  border-radius: 6px;
  padding: 4px 2px;
  display: flex;
  align-items: center;
}

/* Spectrum */
.vdj-spectrum-box {
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.04);
}

.vdj-spectrum-canvas {
  width: 100%;
  display: block;
}

/* Master EQ Faders */
.vdj-master-eq {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 6px 0;
}

.vdj-meq-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.vdj-meq-label {
  font-size: 0.55rem;
  font-weight: 800;
  color: rgba(148,163,184,0.5);
  letter-spacing: 0.1em;
}

.vdj-meq-fader {
  writing-mode: vertical-lr;
  direction: rtl;
  width: 24px;
  height: 60px;
  accent-color: #a855f7;
}

/* Crossfader */
.vdj-crossfader-section {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 4px;
  background: rgba(0,0,0,0.3);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.04);
}

.vdj-cf-label {
  font-size: 0.75rem;
  font-weight: 900;
  color: #38bdf8;
  flex-shrink: 0;
}

.vdj-crossfader {
  flex: 1;
  accent-color: #f59e0b;
  height: 6px;
}

/* Master Controls */
.vdj-master-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.vdj-master-knob-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px;
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.04);
}

.vdj-master-knob-group label {
  font-size: 0.5rem;
  font-weight: 800;
  color: rgba(148,163,184,0.5);
  letter-spacing: 0.08em;
}

.vdj-master-knob-group .vdj-knob {
  width: 100%;
}

.vdj-knob-val {
  font-size: 0.55rem;
  font-weight: 700;
  color: #64748b;
  font-family: monospace;
}

/* Mix IA Box */
.vdj-mixia-box {
  text-align: center;
  padding: 6px 4px;
  border-top: none;
}

.vdj-mixia-text {
  color: #cbd5e1;
  font-size: 0.65rem;
  font-weight: 600;
  margin-bottom: 4px;
}

/* ========= VDJ SMART SEARCH ========= */
.vdj-smart-search-wrap {
  flex: none;
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  min-height: 0;
  margin-top: 0;
  z-index: 9999;
  overflow: visible;
}

.vdj-search-input-row {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(15,23,42,0.8);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 0 6px;
  transition: all 0.2s ease;
}

.vdj-search-input-row:focus-within {
  border-color: rgba(56,189,248,0.4);
  box-shadow: 0 0 20px rgba(56,189,248,0.1), inset 0 1px 0 rgba(255,255,255,0.05);
  background: rgba(15,23,42,0.95);
}

.vdj-search-icon {
  color: rgba(148,163,184,0.5);
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-right: 4px;
  transition: color 0.2s;
}

.vdj-search-input-row:focus-within .vdj-search-icon { color: #38bdf8; }

.vdj-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #e2e8f0;
  font-size: 0.75rem;
  padding: 5px 0;
  font-weight: 500;
}

.vdj-search-input::placeholder { color: rgba(148,163,184,0.4); }

.vdj-search-spinner {
  color: #38bdf8;
  font-size: 0.85rem;
  margin-left: 6px;
  animation: fadeIn 0.2s ease;
}

.vdj-search-clear {
  background: none;
  border: none;
  color: rgba(148,163,184,0.5);
  font-size: 0.75rem;
  padding: 4px 6px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.15s;
  margin-left: 4px;
}
.vdj-search-clear:hover { color: #f87171; background: rgba(239,68,68,0.1); }

.vdj-search-shortcut {
  font-size: 0.46rem;
  font-weight: 700;
  color: rgba(148,163,184,0.3);
  border: 1px solid rgba(148,163,184,0.15);
  border-radius: 4px;
  padding: 1px 4px;
  margin-left: 4px;
  flex-shrink: 0;
  letter-spacing: 0.03em;
}

/* Genre Chips */
.vdj-genre-chips {
  display: flex;
  gap: 3px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 2px;
}
.vdj-genre-chips::-webkit-scrollbar {
  height: 2px;
}
.vdj-genre-chips::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
}

.vdj-genre-chip {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(226,232,240,0.7);
  font-size: 0.5rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.vdj-genre-chip:hover {
  background: rgba(56,189,248,0.12);
  border-color: rgba(56,189,248,0.25);
  color: #7dd3fc;
  transform: translateY(-1px);
}

.vdj-genre-chip:active { transform: scale(0.95); }

.vdj-genre-chip.active {
  background: rgba(56,189,248,0.2);
  border-color: rgba(56,189,248,0.4);
  color: #38bdf8;
  box-shadow: 0 0 8px rgba(56,189,248,0.15);
}

/* Search Tabs */
.vdj-search-tabs {
  display: flex;
  gap: 3px;
  flex-wrap: nowrap;
  min-height: 0;
  overflow-x: auto;
  padding-bottom: 2px;
}
.vdj-search-tabs::-webkit-scrollbar {
  height: 2px;
}
.vdj-search-tabs::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
}

.vdj-search-tabs:empty { display: none; }

.dj-browser-dropdown-inline {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  min-width: 400px;
  z-index: 99999;
  display: block;
  margin-top: 5px;
  min-height: 0;
  max-height: min(68vh, 620px);
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  overflow-y: auto;
}

.dj-request-dock .input-group {
  flex-wrap: nowrap !important;
}

.dj-request-dock .input-group-text,
.dj-request-dock .form-control {
  min-height: 34px;
}

.dj-request-dock .form-control {
  font-size: 0.74rem;
  width: 1% !important;
  flex: 1 1 auto !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

.dj-request-dock .input-group-text {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.dj-request-dock .form-control::placeholder {
  font-size: 0.7rem;
}

.dj-request-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  color: rgba(148, 163, 184, 0.88);
  font-weight: 600;
}

.dj-request-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #67e8f9;
  background: rgba(8, 145, 178, 0.16);
  border: 1px solid rgba(34, 211, 238, 0.2);
}

.vdj-search-tab {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 3px 8px 3px 10px;
  font-size: 0.6rem;
  font-weight: 700;
  color: rgba(226,232,240,0.6);
  cursor: pointer;
  transition: all 0.15s ease;
  max-width: 160px;
}

.vdj-search-tab:hover { background: rgba(255,255,255,0.08); color: #e2e8f0; }

.vdj-search-tab.active {
  background: rgba(59,130,246,0.15);
  border-color: rgba(59,130,246,0.3);
  color: #93c5fd;
}

.vdj-search-tab-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 110px;
}

.vdj-search-tab-close {
  background: none;
  border: none;
  color: rgba(148,163,184,0.4);
  font-size: 0.55rem;
  padding: 0;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
}
.vdj-search-tab-close:hover { color: #f87171; }

.vdj-search-tab-count {
  font-size: 0.5rem;
  background: rgba(56,189,248,0.15);
  color: #7dd3fc;
  padding: 1px 4px;
  border-radius: 4px;
  flex-shrink: 0;
}

@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

/* Responsive */
@media (max-width: 1100px) {
  .vdj-console-grid {
    grid-template-columns: 1fr 180px 1fr;
  }
}

@media (max-width: 900px) {
  .vdj-console-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .vdj-mixer {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .vdj-master-eq {
    flex-direction: row;
  }
  .vdj-smart-search-wrap { max-width: 100%; }
  .vdj-genre-chips { overflow-x: auto; flex-wrap: nowrap; }
}

/* =========================================================
   VDJ VIDEO PANEL - Panel de Video Completo
   ========================================================= */

/* Panel switcher */
.vdj-mixer-panel { display: flex; flex-direction: column; gap: 0; }
.vdj-mixer-panel.active { display: flex; }

/* Video Panel Container */
.vdj-video-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 6px;
  overflow-y: auto;
  max-height: 540px;
}

/* Output Preview */
.vdj-video-preview-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vdj-video-preview-label {
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: rgba(148,163,184,0.7);
  text-transform: uppercase;
  display: flex;
  align-items: center;
}

.vdj-output-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(59,130,246,0.2);
  box-shadow: 0 0 16px rgba(59,130,246,0.1), inset 0 0 0 1px rgba(255,255,255,0.03);
}

.vdj-output-overlay-info {
  position: absolute;
  bottom: 4px;
  right: 4px;
  pointer-events: none;
}

.vdj-output-res-badge {
  font-size: 0.5rem;
  font-weight: 800;
  background: rgba(0,0,0,0.7);
  color: #38bdf8;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.06em;
  border: 1px solid rgba(56,189,248,0.2);
}

/* Controls Grid */
.vdj-video-controls-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vdj-video-ctrl-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.vdj-video-ctrl-label {
  font-size: 0.55rem;
  font-weight: 800;
  color: rgba(148,163,184,0.6);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vdj-video-val-badge {
  font-size: 0.55rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56,189,248,0.1);
  border: 1px solid rgba(56,189,248,0.2);
  border-radius: 4px;
  padding: 1px 5px;
  font-family: monospace;
}

.vdj-video-select {
  width: 100%;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 7px;
  color: #e2e8f0;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 5px 8px;
  cursor: pointer;
  transition: border-color 0.15s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2364748b'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}
.vdj-video-select:focus { outline: none; border-color: rgba(56,189,248,0.4); }
.vdj-video-select option { background: #1e2330; color: #e2e8f0; }

/* Video Sliders */
.vdj-video-slider {
  width: 100%;
  height: 4px;
  border-radius: 4px;
  cursor: pointer;
  appearance: none;
  outline: none;
}
.vdj-video-slider::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  cursor: grab;
  transition: transform 0.1s;
  box-shadow: 0 0 6px rgba(0,0,0,0.5);
}
.vdj-video-slider::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.3); }

.vdj-slider-blue  { accent-color: #3b82f6; }
.vdj-slider-blue::-webkit-slider-thumb  { background: #3b82f6; }
.vdj-slider-cyan  { accent-color: #06b6d4; }
.vdj-slider-cyan::-webkit-slider-thumb  { background: #06b6d4; }
.vdj-slider-yellow { accent-color: #f59e0b; }
.vdj-slider-yellow::-webkit-slider-thumb { background: #f59e0b; }
.vdj-slider-pink  { accent-color: #ec4899; }
.vdj-slider-pink::-webkit-slider-thumb  { background: #ec4899; }

/* Video Transition FX */
.vdj-video-fx-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.vdj-video-fx-title {
  font-size: 0.55rem;
  font-weight: 800;
  color: rgba(148,163,184,0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.vdj-video-fx-btns {
  display: flex;
  gap: 3px;
}

.vdj-video-fx-btn {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  color: rgba(148,163,184,0.6);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 5px 2px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-transform: uppercase;
}
.vdj-video-fx-btn:hover {
  background: rgba(56,189,248,0.12);
  color: #7dd3fc;
  border-color: rgba(56,189,248,0.25);
}
.vdj-video-fx-btn.active {
  background: rgba(56,189,248,0.2);
  border-color: rgba(56,189,248,0.4);
  color: #38bdf8;
  box-shadow: 0 0 8px rgba(56,189,248,0.2);
}

/* Video Crossfader */
.vdj-video-xfader-section {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 4px;
  background: rgba(0,0,0,0.25);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.04);
}

/* Action Row */
.vdj-video-action-row {
  display: flex;
  gap: 4px;
}

.vdj-video-action-btn {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: #94a3b8;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 6px 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vdj-video-action-btn:hover {
  background: rgba(255,255,255,0.08);
  color: #e2e8f0;
  border-color: rgba(255,255,255,0.2);
}
.vdj-btn-live {
  background: rgba(34,197,94,0.1);
  border-color: rgba(34,197,94,0.3);
  color: #4ade80;
}
.vdj-btn-live:hover {
  background: rgba(34,197,94,0.25) !important;
  box-shadow: 0 0 12px rgba(34,197,94,0.2);
}

/* Diagnostics Row */
.vdj-video-diag-row {
  display: flex;
  gap: 4px;
  padding: 6px 4px;
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.04);
}

.vdj-video-diag-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.vdj-diag-label {
  font-size: 0.48rem;
  font-weight: 800;
  color: rgba(100,116,139,0.7);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.vdj-diag-val {
  font-size: 0.7rem;
  font-weight: 900;
  font-family: 'Courier New', monospace;
}

@media (max-width: 1199px) {
  .app-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  .sidebar {
    width: 100%;
    min-width: 0;
    height: auto;
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
    overflow-x: auto;
    overflow-y: hidden;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: sticky;
    top: 0;
    z-index: 1050;
  }

  .sidebar::before {
    display: none;
  }

  .sidebar-top {
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
  }

  .sidebar .brand {
    padding: 0;
    margin: 0;
    border-bottom: 0;
    flex-shrink: 0;
  }

  .sidebar-select-wrap {
    width: min(240px, 48vw);
    margin-bottom: 0 !important;
    flex-shrink: 0;
  }

  .nav-menu {
    flex-direction: row;
    gap: 0.65rem;
    flex-wrap: nowrap;
    min-width: max-content;
    padding: 0;
  }

  .nav-item {
    margin: 0;
    min-width: 84px;
    padding: 0.75rem 0.9rem;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
    flex-shrink: 0;
  }

  .nav-item span {
    display: block;
    font-size: 0.7rem;
    line-height: 1.1;
    text-align: center;
    white-space: normal;
  }

  .nav-item .badge {
    margin: 0 !important;
  }

  .user-profile {
    display: none;
  }

  .main-content {
    min-height: 0;
  }

  .module-section {
    height: auto;
    min-height: calc(100dvh - 88px);
  }

  #ventas.module-section,
  #mesas.module-section,
  #inventario.module-section {
    min-height: calc(100dvh - 88px);
  }

  section.module-section.p-4 {
    padding: 1rem !important;
  }

  .module-centered {
    padding-inline: 1rem !important;
  }

  .module-centered > * {
    max-width: none;
  }

  #hub > .d-flex:first-child,
  #dashboard > .d-flex:first-child,
  #caja > .d-flex:first-child,
  #dj > .d-flex:first-child,
  #inventario > .px-5.py-4 > .d-flex:first-child {
    flex-wrap: wrap;
    align-items: flex-start !important;
    gap: 0.85rem;
  }

  .toast-modern {
    min-width: 0;
    width: min(92vw, 420px);
    max-width: calc(100vw - 24px);
    padding: 0.9rem 1rem;
    bottom: 16px;
  }

  .modal-dialog {
    margin: 0.75rem;
  }

  .table-responsive {
    -webkit-overflow-scrolling: touch;
  }

  #ventas > .d-flex.h-100,
  #mesas > .d-flex.h-100 {
    flex-direction: column;
  }

  .pos-product-container {
    padding: 1rem;
    gap: 1rem;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }

  .pos-cart {
    width: 100%;
    max-width: none;
    height: auto;
    max-height: 42dvh;
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .map-toolbar {
    flex-direction: column;
    align-items: stretch !important;
    gap: 0.75rem;
    padding: 0.75rem !important;
  }

  .map-toolbar .glass-panel {
    justify-content: center;
    flex-wrap: wrap;
  }

  #editMapControls {
    left: 0;
    right: 0;
    bottom: 1rem;
    transform: none !important;
    margin: 0 1rem;
  }

  .edit-mode-bar {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.85rem 1rem;
  }

  #tableDetailPanel {
    width: 100% !important;
    max-height: 55dvh;
  }

  #tableCheckoutArea .p-5,
  #productDrawer .p-5 {
    padding: 1.25rem !important;
  }

  #inventario > .px-5.py-4,
  #inventario > .flex-grow-1.p-5 {
    padding: 1rem !important;
  }

  #inventario #productDrawer {
    width: min(100vw, 640px) !important;
  }

  #inventario .display-6 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
  }

  .gastos-form-shell.sticky-top {
    position: static !important;
    top: auto !important;
  }

  .gastos-toolbar {
    align-items: stretch !important;
  }

  .gastos-filter-select,
  .gastos-filter-field {
    width: 100%;
    flex: 1 1 100%;
  }

  .vdj-console-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .vdj-deck-main-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .dj-tool-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dj-toolbar,
  .dj-panel-header {
    flex-wrap: wrap;
  }
}

@media (max-width: 767px) {
  .main-content {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .dj-request-dock {
    min-width: 0;
    width: 100%;
  }

  .dj-section-header {
    gap: 0.85rem;
    margin-bottom: 1rem !important;
  }

  .dj-header-actions,
  .dj-header-meta {
    width: 100%;
  }

  .dj-app-btn {
    flex: 1 1 calc(50% - 0.35rem);
  }

  .dj-deck-overview {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem !important;
  }

  .sidebar {
    padding: 0.75rem 0.75rem 0.85rem;
    gap: 0.65rem;
  }

  .brand-text,
  .sidebar-toggle-btn {
    display: none;
  }

  .sidebar-select-wrap {
    width: min(180px, 56vw);
  }

  .nav-item {
    min-width: 72px;
    padding: 0.65rem 0.75rem;
  }

  .nav-item i {
    font-size: 1rem;
  }

  .nav-item span {
    font-size: 0.64rem;
  }

  .module-section {
    min-height: calc(100dvh - 124px);
  }

  #hub,
  #dashboard {
    overflow-y: visible;
    padding-bottom: 1rem !important;
  }

  #hub > .row.g-4 > [class*="col-"],
  #dashboard > .row.g-4.mb-4 > [class*="col-"] {
    width: 50%;
    flex: 0 0 50%;
    max-width: 50%;
  }

  #hub .glass-panel,
  #dashboard > .row.g-4.mb-4 .glass-panel {
    padding: 1rem !important;
  }

  #hub h5,
  #dashboard > .row.g-4.mb-4 .text-uppercase {
    font-size: 0.9rem;
  }

  #hub .small.text-secondary,
  #dashboard > .row.g-4.mb-4 .small.text-secondary {
    font-size: 0.75rem;
    line-height: 1.35;
  }

  section.module-section.p-4 {
    padding: 0.85rem !important;
  }

  .module-centered {
    padding-inline: 0.75rem !important;
  }

  .card-header {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  #hub .glass-panel,
  #dashboard .glass-panel,
  #caja .glass-panel {
    padding: 1rem !important;
  }

  #ventas .p-4.bg-app.bg-opacity-50 {
    padding: 1rem !important;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .pos-cart {
    max-height: none;
  }

  .cart-header,
  .cart-footer {
    padding: 1rem;
  }

  .cart-footer .row.g-2 {
    row-gap: 0.5rem;
  }

  .cart-footer .row.g-2 > * {
    width: 50%;
    flex: 0 0 50%;
  }

  .map-toolbar .glass-panel {
    width: 100%;
    border-radius: 18px !important;
  }

  .table-item {
    transform: translate(-50%, -50%) scale(0.88);
  }

  .table-item:hover {
    transform: translate(-50%, -50%) scale(0.94);
  }

  .table-info-overlay {
    width: min(220px, 78vw);
  }

  #inventario .d-flex.justify-content-between.align-items-center.mb-4,
  #inventario .d-flex.justify-content-between.align-items-center.mb-5,
  #inventario .d-flex.gap-2,
  #inventario .d-flex.align-items-center.gap-4 {
    flex-direction: column;
    align-items: stretch !important;
  }

  #inventario .input-group[style] {
    max-width: none !important;
    min-width: 0 !important;
    width: 100%;
  }

  #inventario #productDrawer {
    width: 100% !important;
  }

  #inventario #productPreview {
    width: 84px !important;
    height: 84px !important;
  }

  .gastos-form-banner,
  .gastos-form-tip,
  .gastos-history-head {
    flex-direction: column;
    align-items: stretch;
  }

  .vdj-waveform-overview {
    flex-direction: column;
  }

  .vdj-waveform-divider {
    justify-content: center;
    padding: 6px 8px;
  }

  .vdj-waveform-b {
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,0.06);
  }

  .vdj-deck {
    padding: 0.85rem;
  }

  .vdj-deck-header,
  .vdj-video-action-row,
  .vdj-video-diag-row {
    flex-wrap: wrap;
  }

  .dj-deck-queue-head {
    flex-direction: column;
    align-items: stretch;
  }

  .dj-deck-queue-meta {
    justify-content: flex-start;
  }

  .vdj-deck-main-row {
    grid-template-columns: 1fr;
  }

  .vdj-jog-canvas {
    max-width: 150px;
  }

  .vdj-video-box {
    min-height: 150px;
  }

  .dj-tool-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dj-tool-tab {
    min-height: 42px;
  }

  .dj-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .dj-request-item {
    align-items: flex-start !important;
  }

  .table-premium {
    font-size: 0.86rem;
  }

  #ventas > .d-flex.h-100 {
    gap: 0;
    align-items: stretch;
  }

  #ventas > .d-flex.h-100 > .flex-grow-1.d-flex.flex-column {
    min-height: 52dvh;
  }

  #ventas .p-4.bg-app.bg-opacity-50 {
    position: sticky;
    top: 0;
    z-index: 15;
    padding: 0.9rem !important;
  }

  #ventas .pos-product-container {
    padding: 0.85rem 0.85rem 1rem;
    gap: 0.85rem;
  }

  #ventas #productGrid.product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  #ventas .product-card {
    padding: 0.9rem;
    border-radius: 18px;
  }

  #ventas .product-img-container,
  #ventas .product-image {
    height: 108px;
    margin-bottom: 0.85rem;
  }

  #ventas .product-title {
    font-size: 0.9rem;
    line-height: 1.28;
  }

  #ventas .product-price {
    font-size: 0.95rem;
    padding: 0.35rem 0.7rem;
  }

  #ventas .pos-cart {
    max-height: 58dvh;
    min-height: 320px;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    overflow: hidden;
  }

  #ventas .cart-header,
  #ventas .cart-items,
  #ventas .cart-footer {
    padding: 1rem;
  }

  #ventas .cart-footer {
    position: sticky;
    bottom: 0;
    z-index: 3;
  }

  #ventas .cart-total {
    font-size: 1.85rem;
    margin: 0.75rem 0 1rem;
  }

  #ventas #discountInput {
    width: 88px !important;
  }

  #mesas > .d-flex.h-100.overflow-hidden {
    overflow: visible !important;
  }

  #tablesMapContainer {
    min-height: 58dvh;
  }

  .map-toolbar {
    gap: 0.65rem;
    padding: 0.75rem !important;
  }

  .map-toolbar > .glass-panel {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    border-radius: 18px !important;
    text-align: center;
  }

  #editFab {
    bottom: 0.75rem !important;
    right: 0.75rem !important;
    margin: 0 !important;
  }

  #editMapControls {
    bottom: 0.75rem;
    margin: 0 0.75rem;
  }

  #editMapControls .edit-mode-bar {
    gap: 0.5rem;
  }

  #editMapControls .edit-mode-bar > * {
    flex: 1 1 auto;
  }

  #tableDetailPanel {
    width: 100% !important;
    max-width: none !important;
    border-left: 0 !important;
  }

  #tableContent .card-header {
    padding: 1rem !important;
    gap: 0.75rem;
  }

  #tableContent .card-header > .d-flex.gap-2 {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  #tableOrdersList {
    padding: 0.75rem 1rem !important;
    overflow-x: auto;
    white-space: nowrap;
  }

  #tableContent > .p-4.flex-grow-1 {
    padding: 1rem !important;
  }

  #tableContent .sticky-top {
    margin: 0 -1rem 1rem !important;
    padding: 0.9rem 1rem !important;
  }

  #tableProductGrid > * {
    width: 50%;
    flex: 0 0 50%;
  }

  #tableCheckoutArea .p-5 {
    padding: 1rem !important;
  }

  #tableCheckoutArea .row.g-5 {
    row-gap: 1rem;
  }

  #tableCheckoutArea .mt-5.d-flex.gap-3 {
    flex-direction: column;
    margin-top: 1.25rem !important;
  }

  #dj.module-section {
    padding: 0 !important;
  }

  .dj-workspace {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    border-radius: 0;
  }

  .dj-workspace-topbar,
  .dj-console-header {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 0.9rem;
  }

  .dj-workspace-brand p {
    max-width: none;
    font-size: 0.84rem;
  }

  .dj-workspace-meta {
    justify-content: flex-start;
  }

  .dj-workspace-grid,
  .dj-vjd-grid,
  .dj-virtual-dj-grid,
  .dj-console-visual-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    overflow: visible;
  }

  .dj-column-queue,
  .dj-column-stage {
    border-right: 0;
  }

  .dj-console-body,
  .dj-workspace-column,
  .dj-console-stage,
  .dj-console-main,
  .dj-console-rail,
  .dj-tool-panels,
  .dj-tool-panel {
    overflow: visible;
  }

  .dj-console-body {
    padding: 0.75rem;
    gap: 0.75rem;
  }

  .dj-panel-card,
  .dj-stage-shell,
  .dj-tool-card,
  .dj-console-card {
    height: auto;
  }

  .dj-console-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dj-screen-head,
  .dj-panel-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .dj-console-screen {
    min-height: 180px;
  }

  .dj-visual-canvas {
    height: 96px;
  }

  .dj-tool-tab {
    padding: 0.75rem 0.55rem;
    font-size: 0.78rem;
  }

  .dj-toolbar {
    gap: 0.75rem;
  }

  .dj-request-table-wrap {
    max-height: 320px;
    overflow: auto;
  }

  .vdj-video-panel {
    max-height: none;
  }

  .vdj-video-controls-grid {
    grid-template-columns: 1fr;
  }

  .vdj-transport {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.4rem;
  }

  .vdj-btn {
    min-height: 46px;
    font-size: 0.76rem;
  }
}

@media (max-width: 575px) {
  #ventas #productGrid.product-grid,
  #tableProductGrid > * {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
  }

  #ventas #productGrid.product-grid {
    grid-template-columns: 1fr;
  }

  #ventas .pos-cart {
    min-height: 360px;
    max-height: none;
  }

  #tableContent .card-header > .d-flex.gap-2 > * {
    flex: 1 1 calc(50% - 0.25rem);
  }

  .dj-console-summary {
    grid-template-columns: 1fr;
  }

  .dj-app-btn {
    flex: 1 1 100%;
  }

  .dj-app-status {
    width: 100%;
  }

  .dj-deck-overview-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .dj-meta-badge {
    width: 100%;
    justify-content: center;
  }

  .sidebar-select-wrap {
    display: none;
  }

  .nav-menu {
    gap: 0.45rem;
  }

  .nav-item {
    min-width: 64px;
    padding: 0.6rem 0.55rem;
  }

  .module-section {
    min-height: calc(100dvh - 112px);
  }

  .toast-modern {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    border-radius: 16px;
  }

  .cart-footer .row.g-2 > * {
    width: 100%;
    flex: 0 0 100%;
  }

  .dj-tool-tabs {
    grid-template-columns: 1fr;
  }

  .vdj-jog-canvas {
    max-width: 136px;
  }
}

/* =============================================
   DJ QUICK ACCESS PILL & NOW PLAYING WIDGET
   ============================================= */

/* --- Quick Access Pill (centered top shortcut) --- */
.top-center-stack {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1060;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}

.top-center-stack > * {
  pointer-events: auto;
}

/* --- Quick Access Pill (within stack) --- */
.dj-quick-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px 0 12px;
  height: 40px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(20, 20, 30, 0.4), rgba(30, 30, 45, 0.3));
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  user-select: none;
  letter-spacing: 0.5px;
}

.dj-quick-pill:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.45), rgba(59, 130, 246, 0.35));
  border-color: rgba(139, 92, 246, 0.6);
  color: #fff;
  box-shadow: 0 6px 28px rgba(139, 92, 246, 0.3), 0 0 0 3px rgba(139, 92, 246, 0.08);
  transform: translateY(-2px);
}

.dj-quick-pill:active {
  transform: scale(0.96);
}

.dj-quick-pill i {
  font-size: 0.85rem;
  filter: drop-shadow(0 0 4px rgba(139, 92, 246, 0.5));
}

.dj-quick-pill-label {
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.dj-quick-pill-badge {
  background: #ef4444;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
  animation: djBadgePop 0.3s ease-out;
}

@keyframes djPillPulseSubtle {
  0%, 100% { box-shadow: 0 4px 20px rgba(139, 92, 246, 0.12), 0 0 0 0 rgba(139, 92, 246, 0); }
  50% { box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2), 0 0 0 4px rgba(139, 92, 246, 0.05); }
}

@keyframes djBadgePop {
  0% { transform: scale(0); }
  60% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* Hide pill when on DJ panel itself */
.dj-quick-pill.is-on-dj {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
}

/* --- Floating Now Playing Widget (v2 Advanced) --- */
.dj-np-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  width: 280px;
  background: rgba(8, 10, 18, 0.92);
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 18px;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.55),
    0 0 1px rgba(255, 255, 255, 0.08),
    0 0 40px rgba(139, 92, 246, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  animation: djWidgetSlideIn 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes djWidgetSlideIn {
  from { opacity: 0; transform: translateY(24px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dj-np-widget:hover {
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow:
    0 18px 52px rgba(0, 0, 0, 0.6),
    0 0 1px rgba(255, 255, 255, 0.12),
    0 0 50px rgba(139, 92, 246, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Drag bar at the very top â€” separated from header so buttons aren't captured */
.dj-np-drag-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 0 2px 0;
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.dj-np-drag-bar:active { cursor: grabbing; }

.dj-np-drag-dots {
  display: flex;
  gap: 3px;
}
.dj-np-drag-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  transition: background 0.2s;
}
.dj-np-drag-bar:hover .dj-np-drag-dots span {
  background: rgba(139, 92, 246, 0.5);
}

.dj-np-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 12px 6px 12px;
}

.dj-np-widget-title {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(224, 212, 252, 0.85);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.dj-np-widget-title i {
  font-size: 0.72rem;
  color: #a78bfa;
  filter: drop-shadow(0 0 4px rgba(167, 139, 250, 0.4));
}

.dj-np-widget-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.dj-np-widget-btn {
  width: 26px;
  height: 26px;
  border: none;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dj-np-widget-btn:hover {
  background: rgba(139, 92, 246, 0.15);
  color: #e0d4fc;
  transform: scale(1.08);
}

.dj-np-widget-body {
  padding: 4px 10px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Deck row */
.dj-np-deck {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: none !important;
}

.dj-np-deck.is-playing {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.06), rgba(139, 92, 246, 0.04));
  border-color: rgba(34, 197, 94, 0.15);
}

/* Album art */
.dj-np-deck-art-wrap {
  position: relative;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.dj-np-deck-art {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease;
}

.dj-np-deck.is-playing .dj-np-deck-art {
  border-color: rgba(34, 197, 94, 0.25);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.1);
}

.dj-np-deck-letter {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 800;
  line-height: 1;
}

.dj-np-deck-letter.deck-a {
  background: rgba(37, 99, 235, 0.85);
  color: #bfdbfe;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.dj-np-deck-letter.deck-b {
  background: rgba(217, 119, 6, 0.85);
  color: #fef3c7;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.3);
}

/* Track info */
.dj-np-deck-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.dj-np-deck-track {
  color: #eff0f3;
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.dj-np-deck.is-playing .dj-np-deck-track {
  color: #fff;
}

.dj-np-deck-artist {
  color: rgba(148, 163, 184, 0.6);
  font-size: 0.6rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

/* Progress bar */
.dj-np-deck-progress {
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  margin-top: 3px;
  overflow: hidden;
}

.dj-np-deck-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 3px;
  background: linear-gradient(90deg, #a78bfa, #7c3aed);
  transition: width 0.8s linear;
}

.dj-np-deck.is-playing .dj-np-deck-progress-bar {
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

/* Play/Pause button */
.dj-np-deck-playbtn {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(148, 163, 184, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  z-index: 10;
}

.dj-np-deck-playbtn:hover {
  background: rgba(139, 92, 246, 0.2);
  color: #e0d4fc;
  transform: scale(1.12);
}

.dj-np-deck-playbtn:active {
  transform: scale(0.92);
}

.dj-np-deck.is-playing .dj-np-deck-playbtn {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.15);
}

.dj-np-deck.is-playing .dj-np-deck-playbtn:hover {
  background: rgba(34, 197, 94, 0.2);
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.25);
}

@keyframes djNpPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(34, 197, 94, 0.15); }
  50% { box-shadow: 0 0 14px rgba(34, 197, 94, 0.35); }
}

/* Widget hidden state */
.dj-np-widget.is-hidden {
  display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
  .dj-quick-pill {
    padding: 0 12px 0 10px;
    font-size: 0.72rem;
  }

  .dj-np-widget {
    width: 240px;
    bottom: 12px;
    right: 12px;
  }

  .dj-np-deck-art-wrap,
  .dj-np-deck-art {
    width: 32px;
    height: 32px;
  }

  .dj-np-deck-track { font-size: 0.68rem; }
  .dj-np-deck-artist { font-size: 0.55rem; }
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #0f172a inset !important;
    -webkit-text-fill-color: #fff !important;
    transition: background-color 5000s ease-in-out 0s;
}
body.light-mode input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #ffffff inset !important;
    -webkit-text-fill-color: #1e293b !important;
}
.user-avatar-sm { box-shadow: 0 0 10px var(--primary-glow); }

.table-premium th { text-transform: uppercase; font-size: 0.65rem; letter-spacing: 0.05em; color: rgba(255,255,255,0.5); }


/* --- HISTORIAL CALENDAR --- */

.history-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.history-calendar-day-header {
    text-align: center;
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--text-secondary);
    padding: 0.5rem 0;
    text-transform: uppercase;
}
.history-calendar-day {
    aspect-ratio: 1 / 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}
.history-calendar-day:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
    z-index: 2;
}
.history-calendar-day.empty {
    background: transparent;
    border: none;
    cursor: default;
}
.history-calendar-day.empty:hover {
    transform: none;
}
.history-calendar-day.has-sales {
    border-color: rgba(208, 149, 255, 0.3);
}
.history-calendar-day.has-sales::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-glow);
}
.history-calendar-day.selected {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}
.history-calendar-day.selected::after {
    background: #fff;
    box-shadow: none;
}
.history-calendar-day.today {
    color: var(--accent);
}
.history-calendar-day.selected.today {
    color: #fff;
}

.history-sale-card {
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: var(--border-radius-md);
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}
.history-sale-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(208, 149, 255, 0.3);
}
.history-sale-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.history-sale-items {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}
.history-sale-amounts {
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.history-payment-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
}

@media print {
    body * { visibility: hidden; }
    #inventario, #inventario * { visibility: visible; }
    #inventario { 
        position: absolute; 
        left: 0; 
        top: 0; 
        width: 100%; 
        background: white !important; 
        color: black !important;
        display: flex !important;
    }
    .btn, .input-group, .border-bottom, .glass-panel { border: none !important; background: none !important; box-shadow: none !important; }
    .display-6, .h4, .text-white { color: black !important; }
    .table-premium { color: black !important; width: 100%; border-collapse: collapse; }
    .table-premium th, .table-premium td { border: 1px solid #ddd !important; padding: 8px !important; }
    .badge { border: 1px solid black !important; color: black !important; background: transparent !important; }
    .d-none-print, button, input { display: none !important; }
}

@media print {
    body * { visibility: hidden; }
    #inventario, #inventario * { visibility: visible; }
    #inventario { 
        position: absolute; 
        left: 0; 
        top: 0; 
        width: 100%; 
        background: white !important; 
        color: black !important;
        display: flex !important;
    }
    .btn, .input-group, .border-bottom, .glass-panel { border: none !important; background: none !important; box-shadow: none !important; }
    .display-6, .h4, .text-white { color: black !important; }
    .table-premium { color: black !important; width: 100%; border-collapse: collapse; }
    .table-premium th, .table-premium td { border: 1px solid #ddd !important; padding: 8px !important; }
    .badge { border: 1px solid black !important; color: black !important; background: transparent !important; }
    .d-none-print, button, input { display: none !important; }
}

.flying-item { position: fixed; z-index: 99999; pointer-events: none; transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease-out, width 0.6s, height 0.6s; border-radius: 50%; box-shadow: 0 4px 12px rgba(0,0,0,0.5); transform-origin: center center; }

.cursor-pointer, .nav-item, .glass-panel[onclick], .product-card, .btn, .table-item {
    cursor: pointer !important;
}



#cashMetricsGrid .h3 {
    font-size: 1.25rem !important;
    margin-bottom: 0.25rem !important;
}
#cashMetricsGrid .glass-panel {
    padding: 1rem !important;
}

/* New Integrated Inputs */
.input-modern-wrapper {
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 2px 12px !important;
    transition: all 0.3s ease !important;
    margin-bottom: 1rem;
}
.input-modern-wrapper:focus-within {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2) !important;
    background: rgba(15, 23, 42, 0.8) !important;
}

/* Fix: Inner input should be transparent inside wrapper */
.input-modern-wrapper .input-modern {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 10px 5px !important;
    width: 100% !important;
    color: white !important;
}
.input-modern-icon {
    color: var(--primary) !important;
    margin-right: 10px;
    font-size: 0.9rem;
    opacity: 0.8;
}
.input-modern-borderless {
    background: transparent !important;
    border: none !important;
    color: white !important;
    padding: 8px 0 !important;
    width: 100% !important;
    outline: none !important;
    font-size: 0.95rem !important;
}
.input-modern-borderless::placeholder {
    color: rgba(255,255,255,0.3) !important;
}
/* ---- FLOOR ELEMENT HANDLES & CONTEXT ---- */
.editing .rotate-handle, .editing .resize-handle {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: scale(1);
}

.resize-handle {
  position: absolute;
  bottom: -8px;
  right: -8px;
  width: 20px;
  height: 200%; /* Cover a larger vertical area for easier grabbing */
  max-height: 24px;
  width: 24px;
  background: var(--primary);
  border: 3px solid #fff;
  border-radius: 50%; /* Circle looks more standard for handles */
  cursor: nwse-resize;
  z-index: 2100;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.resize-handle::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  transform: translate(-1px, -1px);
}

.resize-handle:hover {
  transform: scale(1.2);
  background: var(--primary-light);
  box-shadow: 0 6px 15px rgba(var(--primary-rgb), 0.4);
}

.rotate-handle {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 24px;
  height: 24px;
  background: var(--primary);
  border: 3px solid #fff;
  border-radius: 50%;
  cursor: grab;
  z-index: 2100 !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.65rem;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
.rotate-handle::before {
  content: '\f2f1';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
}
.rotate-handle::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  width: 2px;
  height: 10px;
  background: var(--primary);
}

.rotate-handle:hover { transform: translateX(-50%) scale(1.2); background: var(--primary-light); }

#floorContextMenu {
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.4), 0 8px 10px -6px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
  animation: contextShow 0.15s ease-out;
  backdrop-filter: blur(12px);
  background: rgba(15, 23, 42, 0.9) !important;
  z-index: 3000 !important;
}

@keyframes contextShow {
  from { opacity: 0; transform: scale(0.95) translateY(-5px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.floor-element {
  backdrop-filter: blur(4px);
  transition: box-shadow 0.2s;
  z-index: 3;
}
.floor-element.editing {
  z-index: 50 !important;
  box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.3) !important;
}

.floor-element.wall { background: rgba(148, 163, 184, 0.2); border-color: rgba(148, 163, 184, 0.5); }
.floor-element.bar { background: rgba(251, 191, 36, 0.15); border-color: rgba(251, 191, 36, 0.5); }
.floor-element.stage { background: rgba(168, 85, 247, 0.18); border-color: rgba(168, 85, 247, 0.5); }
.floor-element.zone { background: rgba(14, 165, 233, 0.1); border-color: rgba(14, 165, 233, 0.4); }
.floor-element.column { border-radius: 50% !important; background: rgba(148, 163, 184, 0.4); }



/* --- NOTIFICATION BELL & DROPDOWN --- */
.notification-wrapper {
  position: relative;
  z-index: 1060;
}

.notification-bell-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
}

.notification-bell-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.notification-bell-btn .notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  background: #ef4444;
  color: #fff;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #0f172a;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.notification-dropdown {
  position: absolute;
  top: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%);
  width: 360px;
  max-height: 500px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: notifyDrop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top center;
}

@keyframes notifyDrop {
  from { opacity: 0; transform: translateX(-50%) scale(0.9) translateY(-10px); }
  to { opacity: 1; transform: translateX(-50%) scale(1) translateY(0); }
}

.notification-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
}

.notification-list {
  overflow-y: auto;
  padding: 0.75rem;
  flex: 1;
}

.notification-item {
  position: relative;
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-radius: 18px;
  margin-bottom: 0.5rem;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
}

.notification-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.notification-item.item-music { border-left: 3px solid #3b82f6; }
.notification-item.item-order { border-left: 3px solid #10b981; }

.notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.item-music .notification-icon { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.item-order .notification-icon { background: rgba(16, 185, 129, 0.1); color: #10b981; }

.notification-content { flex: 1; min-width: 0; }

.notification-title {
  color: #f8fafc;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.notification-msg {
  color: rgba(226, 232, 240, 0.7);
  font-size: 0.8rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.notification-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  color: rgba(226, 232, 240, 0.5);
}

.btn-delete-notify {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-delete-notify:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.notification-loc {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}


/* FINAL MEGA-FIX PARA AUTOFILL Y RECUADRO BLANCO EN LOGIN */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active,
input:-internal-autofill-selected {
    -webkit-box-shadow: 0 0 0 1000px #0f171e inset !important;
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: 0 0 0 1000px #0f171e inset !important;
    transition: background-color 5000s ease-in-out 0s;
    background-color: transparent !important;
    background-image: none !important;
}

.input-modern, .input-group .form-control, input {
    background-color: transparent !important;
    background-image: none !important;
    color: #ffffff !important;
}

.input-modern-wrapper {
    background: rgba(15, 23, 42, 0.95) !important;
    color: white !important;
}


/* Fix Final: Remover apariencia nativa y forzar transparencia */
.input-modern, input.input-modern {
    -webkit-appearance: none !important;
    appearance: none !important;
    background: transparent !important;
    background-color: transparent !important;
    color: white !important;
}

/* --- LIGHT MODE PARA PANEL DJ VDJ ENGINE --- */
body.light-mode .vdj-console-grid {
    background: #f8fafc;
    border-radius: var(--radius-xl);
}
body.light-mode .vdj-deck,
body.light-mode .vdj-mixer {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.06);
}
body.light-mode .vdj-track-title {
    color: #1e293b !important;
}
body.light-mode .vdj-track-artist {
    color: #64748b !important;
}
body.light-mode .vdj-time-lcd {
    background: #e2e8f0;
    color: #0f172a;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}
body.light-mode .vdj-time-lcd-remain { color: #f43f5e; }
body.light-mode .vdj-bpm-display {
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid #cbd5e1;
}
body.light-mode .vdj-btn {
    background: linear-gradient(180deg, #f8fafc, #f1f5f9);
    border: 1px solid #cbd5e1;
    color: #334155;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
body.light-mode .vdj-btn:hover { background: #e2e8f0; color: #0f172a; }
body.light-mode .vdj-btn:active { background: #cbd5e1; box-shadow: inset 0 2px 4px rgba(0,0,0,0.1); }
body.light-mode .vdj-btn-play,
body.light-mode .vdj-btn-cue {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    color: white !important;
}
body.light-mode .vdj-btn-toggle.active {
    background: rgba(59, 130, 246, 0.15);
    color: #2563eb;
    border-color: #93c5fd;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}
body.light-mode .vdj-fader-track { background: #cbd5e1; border: 1px solid #94a3b8; }
body.light-mode .vdj-fader-knob {
    background: linear-gradient(to right, #f8fafc, #e2e8f0);
    border: 1px solid #94a3b8;
    box-shadow: 1px 2px 5px rgba(0,0,0,0.15);
}
body.light-mode .vdj-knob-container canvas { filter: drop-shadow(0 2px 3px rgba(0,0,0,0.1)); }
body.light-mode .vdj-mixer-tabs { background: #e2e8f0; }
body.light-mode .vdj-mixer-tab { color: #64748b; }
body.light-mode .vdj-mixer-tab.active { background: white; color: #0f172a; border: 1px solid #cbd5e1; }
body.light-mode .vdj-mixer-panel { border: 1px solid #cbd5e1; }
body.light-mode .vdj-video-box { background: #1e293b; /* keep video dark to contrast */ border: 2px solid #cbd5e1; }
body.light-mode .vdj-header-bar { border-bottom: 1px solid #cbd5e1; }
body.light-mode .vdj-fx-pad {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
}
body.light-mode .vdj-fx-pad:hover { background: #e2e8f0; }
body.light-mode .vdj-fx-pad.active {
    background: rgba(14, 165, 233, 0.1);
    border-color: #38bdf8;
    color: #0284c7;
}
body.light-mode .vdj-deck-header {
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

/* --- MÁS ARREGLOS LIGHT MODE PARA PANEL DJ VDJ ENGINE --- */
body.light-mode .dj-workspace-topbar,
body.light-mode .dj-console-header {
    background: linear-gradient(180deg, #ffffff, #f1f5f9) !important;
    border-bottom: 1px solid #cbd5e1 !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02) !important;
}
body.light-mode .vdj-jog-wrap {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.02);
}
body.light-mode .vdj-video-box {
    background: #f8fafc !important; /* Make video container lighter if there's no video */
    border: 1px solid #cbd5e1 !important;
}
body.light-mode .vdj-time-lcd,
body.light-mode .vdj-jog-time {
    color: #475569;
    font-weight: 600;
}
body.light-mode .vdj-deck-main-row {
    background: transparent;
}
body.light-mode .dj-search-glass,
body.light-mode .vdj-searcher input {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}
body.light-mode .dj-search-glass::placeholder,
body.light-mode .vdj-searcher input::placeholder {
    color: #94a3b8;
}
body.light-mode .dj-track-result {
    color: #334155;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
body.light-mode .dj-track-result:hover {
    background: #f1f5f9;
}
body.light-mode .vdj-deck-artwork {
    background: #e2e8f0;
}
body.light-mode .vdj-video-meta {
    color: #475569;
    text-shadow: none;
    font-weight: 500;
}
body.light-mode .dj-section-copy h4 {
    color: #0f172a !important;
}
body.light-mode .dj-workspace-brand {
    color: #0f172a !important;
}
body.light-mode .dj-request-item {
    background: white;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
body.light-mode .dj-request-item .text-white {
    color: #1e293b !important;
}
body.light-mode .dj-request-item .text-secondary {
    color: #64748b !important;
}
body.light-mode #djQueueContent .text-secondary {
    color: #64748b !important;
}
body.light-mode .dj-empty-list {
    color: #94a3b8 !important;
}
