/* app/assets/stylesheets/application.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* ==========================================
   THEME PALETTES (Dark, Light, Neutral)
   ========================================== */

/* 1. DARK THEME (Pro Studio Cyber-Acoustic) */
:root, [data-theme="dark"], html[data-theme="dark"], body[data-theme="dark"] {
  color-scheme: dark;
  --bg-dark: #0d121f;
  --bg-darker: #060911;
  --bg-surface: rgba(13, 20, 36, 0.7);
  --panel-bg: rgba(13, 20, 36, 0.72);
  --panel-border: rgba(255, 255, 255, 0.10);
  --glass-card-bg: rgba(15, 23, 42, 0.78);
  --input-bg: rgba(4, 7, 15, 0.9);
  --input-border: rgba(255, 255, 255, 0.14);
  --text-main: #f8fafc;
  --text-color: #f8fafc;
  --text-muted: #94a3b8;
  --text-heading-gradient: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #38bdf8 100%);
  --navbar-bg: rgba(6, 9, 17, 0.88);

  /* Deep Studio Ambient Lighting (Electric Cyan & Ember Orange Glows) */
  --body-bg-gradient: 
    radial-gradient(ellipse 800px 500px at 15% 10%, rgba(0, 229, 255, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 650px 420px at 85% 20%, rgba(249, 115, 22, 0.07) 0%, transparent 55%),
    radial-gradient(circle 900px at 50% 90%, rgba(37, 99, 235, 0.06) 0%, transparent 65%);
  --scrollbar-thumb: rgba(255, 255, 255, 0.12);
  --card-hover-bg: rgba(22, 33, 56, 0.65);
  --table-row-border: rgba(255, 255, 255, 0.07);
  --table-row-hover: rgba(255, 255, 255, 0.035);

  /* Signature IziEq Brand Accents */
  --accent-color: #00e5ff;
  --accent-cyan: #00e5ff;
  --accent-cyan-hover: #38bdf8;
  --accent-orange: #ff7828;
  --accent-orange-hover: #ea580c;
  --accent-magenta: #c084fc;
  --accent-magenta-hover: #a855f7;
  --accent-live: #00e5ff;

  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --danger-surface: rgba(239, 68, 68, 0.12);
  --danger-border: rgba(239, 68, 68, 0.4);
  --danger-text: #fca5a5;

  --btn-outline-bg: rgba(13, 20, 36, 0.6);
  --btn-outline-border: rgba(0, 229, 255, 0.4);
  --btn-outline-text: #f8fafc;
  --btn-danger-bg: rgba(239, 68, 68, 0.12);
  --btn-danger-border: rgba(239, 68, 68, 0.4);
  --btn-danger-text: #fca5a5;
  --active-badge-bg: rgba(37, 99, 235, 0.18);

  --code-bg: rgba(255, 255, 255, 0.08);
  --code-border: rgba(255, 255, 255, 0.12);

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --shadow-glass: 0 20px 45px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --shadow-neon: 0 0 25px rgba(0, 229, 255, 0.25);
  --shadow-warm-neon: 0 0 25px rgba(249, 115, 22, 0.25);
}

/* 2. LIGHT THEME (Clean Pure Studio White) */
[data-theme="light"], html[data-theme="light"], body[data-theme="light"] {
  color-scheme: light;
  --bg-dark: #f1f5f9;
  --bg-darker: #ffffff;
  --bg-surface: #ffffff;
  --panel-bg: #ffffff;
  --panel-border: rgba(15, 23, 42, 0.14);
  --glass-card-bg: #ffffff;
  --input-bg: #f8fafc;
  --input-border: rgba(15, 23, 42, 0.22);
  --text-main: #0f172a;
  --text-color: #0f172a;
  --text-muted: #64748b;
  --text-heading-gradient: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  --navbar-bg: rgba(255, 255, 255, 0.96);
  --body-bg-gradient: radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.04) 0%, transparent 45%), radial-gradient(circle at 90% 80%, rgba(249, 115, 22, 0.03) 0%, transparent 50%);
  --scrollbar-thumb: rgba(15, 23, 42, 0.22);
  --card-hover-bg: #f8fafc;
  --table-row-border: rgba(15, 23, 42, 0.09);
  --table-row-hover: rgba(15, 23, 42, 0.035);

  --accent-color: #0284c7;
  --accent-cyan: #0284c7;
  --accent-cyan-hover: #0369a1;
  --accent-orange: #c2410c;
  --accent-orange-hover: #9a3412;
  --accent-magenta: #7c3aed;
  --accent-magenta-hover: #6d28d9;
  --accent-live: #0891b2;

  --success: #059669;
  --warning: #d97706;
  --danger: #dc2626;
  --danger-surface: rgba(220, 38, 38, 0.08);
  --danger-border: rgba(220, 38, 38, 0.3);
  --danger-text: #b91c1c;

  --btn-outline-bg: transparent;
  --btn-outline-border: #0284c7;
  --btn-outline-text: #0284c7;
  --btn-danger-bg: rgba(220, 38, 38, 0.08);
  --btn-danger-border: rgba(220, 38, 38, 0.35);
  --btn-danger-text: #b91c1c;
  --active-badge-bg: rgba(2, 132, 199, 0.12);

  --code-bg: rgba(15, 23, 42, 0.06);
  --code-border: rgba(15, 23, 42, 0.14);

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --shadow-glass: 0 10px 30px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-neon: 0 0 15px rgba(2, 132, 199, 0.15);
  --shadow-warm-neon: 0 0 15px rgba(194, 65, 12, 0.15);
}

/* 3. NEUTRAL PRO STUDIO THEME (Matte DAW Graphite) */
[data-theme="neutral"], html[data-theme="neutral"], body[data-theme="neutral"] {
  color-scheme: dark;
  --bg-dark: #1b1e26;
  --bg-darker: #12151b;
  --bg-surface: rgba(27, 30, 38, 0.88);
  --panel-bg: rgba(27, 30, 38, 0.92);
  --panel-border: rgba(255, 255, 255, 0.11);
  --glass-card-bg: rgba(24, 27, 35, 0.94);
  --input-bg: rgba(15, 17, 23, 0.95);
  --input-border: rgba(255, 255, 255, 0.14);
  --text-main: #f1f5f9;
  --text-color: #f1f5f9;
  --text-muted: #94a3b8;
  --text-heading-gradient: linear-gradient(135deg, #ffffff 0%, #cbd5e1 60%, #38bdf8 100%);
  --navbar-bg: rgba(18, 21, 27, 0.94);
  --body-bg-gradient: 
    radial-gradient(ellipse 700px 450px at 15% 10%, rgba(56, 189, 248, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 600px 400px at 85% 20%, rgba(249, 115, 22, 0.06) 0%, transparent 50%),
    radial-gradient(circle 800px at 50% 90%, rgba(51, 65, 85, 0.08) 0%, transparent 60%);
  --scrollbar-thumb: rgba(255, 255, 255, 0.16);
  --card-hover-bg: rgba(38, 43, 54, 0.85);
  --table-row-border: rgba(255, 255, 255, 0.08);
  --table-row-hover: rgba(255, 255, 255, 0.04);

  --accent-color: #38bdf8;
  --accent-cyan: #38bdf8;
  --accent-cyan-hover: #0ea5e9;
  --accent-orange: #f97316;
  --accent-orange-hover: #ea580c;
  --accent-magenta: #c084fc;
  --accent-magenta-hover: #a855f7;
  --accent-live: #22d3ee;

  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --danger-surface: rgba(239, 68, 68, 0.12);
  --danger-border: rgba(239, 68, 68, 0.4);
  --danger-text: #fca5a5;

  --btn-outline-bg: rgba(27, 30, 38, 0.6);
  --btn-outline-border: rgba(56, 189, 248, 0.4);
  --btn-outline-text: #f1f5f9;
  --btn-danger-bg: rgba(239, 68, 68, 0.12);
  --btn-danger-border: rgba(239, 68, 68, 0.4);
  --btn-danger-text: #fca5a5;
  --active-badge-bg: rgba(56, 189, 248, 0.18);

  --code-bg: rgba(255, 255, 255, 0.07);
  --code-border: rgba(255, 255, 255, 0.12);

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --shadow-glass: 0 16px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --shadow-neon: 0 0 20px rgba(56, 189, 248, 0.2);
  --shadow-warm-neon: 0 0 20px rgba(249, 115, 22, 0.2);
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-darker);
  background-image: var(--body-bg-gradient);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Global Accessibility Focus States */
:focus-visible {
  outline: 2px solid var(--accent-live, #00e5ff) !important;
  outline-offset: 2px !important;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(37, 99, 235, 0.4);
}

/* Glassmorphism Panel Utility */
.glass-panel {
  background: var(--panel-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.glass-card {
  background: var(--glass-card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow-glass);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.premium-input, .form-input, .form-control {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text-main);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.premium-input:focus, .form-input:focus, .form-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.25);
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  background: var(--text-heading-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--accent-cyan-hover);
  text-shadow: 0 0 8px rgba(6, 182, 212, 0.4);
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.container-fluid-mixer {
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 1.5rem 2.5rem;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .container-fluid-mixer {
    padding: 1rem 1.25rem;
  }
}

.track-matrix-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid var(--panel-border);
  background: rgba(4, 7, 15, 0.6);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.track-matrix-container::-webkit-scrollbar {
  height: 8px;
}

.track-matrix-container::-webkit-scrollbar-track {
  background: rgba(4, 7, 15, 0.5);
  border-radius: 4px;
}

.track-matrix-container::-webkit-scrollbar-thumb {
  background: rgba(0, 229, 255, 0.3);
  border-radius: 4px;
}

.track-matrix-container::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

.track-matrix-table {
  width: 100%;
  min-width: 1540px;
  border-collapse: separate;
  border-spacing: 0;
}

.track-matrix-table th {
  white-space: nowrap;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  padding: 0.85rem 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  border-bottom: 1px solid var(--panel-border);
  background: var(--card-hover-bg);
}

.track-matrix-table td {
  padding: 0.6rem 0.65rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--table-row-border);
}

.track-matrix-table tbody tr:hover {
  background: var(--table-row-hover);
}

.track-matrix-table .form-control {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.track-matrix-table .form-control:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.15);
  outline: none;
}

/* Tri-State Toggle (Normal / Aggressive / Insane) */
.tri-state-toggle {
  display: inline-flex;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-md);
  padding: 2px;
  gap: 2px;
  user-select: none;
}

.tri-state-toggle .tri-btn {
  background: transparent;
  border: none;
  border-radius: 4px;
  padding: 0.35rem 0.55rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.tri-state-toggle .tri-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
}

.tri-state-toggle .tri-btn.active[data-val="normal"] {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.tri-state-toggle .tri-btn.active[data-val="aggressive"] {
  background: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.tri-state-toggle .tri-btn.active[data-val="insane"] {
  background: rgba(236, 72, 153, 0.25);
  color: #f472b6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Sculpt Audio Toggle Button */
.sculpt-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.sculpt-toggle-btn.active {
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.4);
  color: var(--accent-cyan);
}

.sculpt-toggle-btn.inactive {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 1.75rem;
  background: var(--navbar-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color 0.25s ease, border-color 0.25s ease;
  gap: 1rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand-symbol-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  position: relative;
}

.navbar-brand-symbol {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.45));
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), filter 0.25s ease;
}

.brand-link:hover .navbar-brand-symbol {
  transform: scale(1.08);
  filter: drop-shadow(0 0 14px rgba(0, 229, 255, 0.75)) drop-shadow(0 0 6px rgba(249, 115, 22, 0.4));
}

.brand-wordmark {
  font-family: 'Outfit', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.025em;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.brand-wordmark-accent {
  color: var(--accent-cyan);
  font-weight: 800;
  margin-left: 1px;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.brand-link:hover .brand-wordmark-accent {
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.6);
}

.navbar-nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.nav-link {
  color: var(--text-muted);
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
  padding: 0.35rem 0.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  font-size: 0.925rem;
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-link.active {
  color: var(--accent-cyan);
  font-weight: 600;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-orange, #ff7828));
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent-cyan);
}

.nav-link-harmonizer {
  color: var(--accent-orange);
  font-weight: 600;
}

.nav-link-harmonizer:hover {
  color: var(--accent-orange-hover, #ff9554);
}

.nav-link-live {
  color: var(--accent-live, #00e5ff);
  font-weight: 600;
}

.nav-link-admin {
  color: var(--accent-cyan);
  font-weight: 700;
}

.nav-link-admin:hover {
  color: var(--accent-cyan-hover, #38bdf8);
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  display: inline-block;
  animation: pulse-live 2s infinite ease-in-out;
}

@keyframes pulse-live {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.6; }
}

/* Nav Dropdown Components */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.35rem 0.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s ease;
}

.nav-dropdown-toggle:hover {
  color: var(--text-main);
}

.dropdown-chevron {
  transition: transform 0.2s ease;
  opacity: 0.7;
}

.nav-dropdown[data-state="open"] .dropdown-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 210px;
  background: var(--panel-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
  padding: 0.45rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  animation: dropdown-fade-in 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-dropdown-menu-right {
  left: auto;
  right: 0;
  min-width: 270px;
}

@keyframes dropdown-fade-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
}

.nav-dropdown-item:hover {
  background: var(--card-hover-bg);
  color: var(--text-main);
  transform: translateX(2px);
}

.nav-dropdown-item.active {
  color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.08);
  font-weight: 600;
}

.dropdown-item-icon {
  font-size: 1rem;
  width: 1.25rem;
  display: inline-flex;
  justify-content: center;
}

/* Zone 3: Nav Actions & User Profile */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.btn-nav-plugin {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.14) 0%, rgba(37, 99, 235, 0.18) 100%);
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.1);
}

.btn-nav-plugin:hover {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.25) 0%, rgba(37, 99, 235, 0.3) 100%);
  border-color: var(--accent-cyan);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.35);
}

.nav-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.25rem 0.75rem 0.25rem 0.3rem;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 9999px;
  color: var(--text-main);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

.nav-user-pill:hover {
  border-color: var(--accent-cyan);
  background: var(--card-hover-bg);
}

.user-avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), #2563eb);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
}

.user-display-name {
  font-weight: 600;
  font-size: 0.875rem;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-header {
  padding: 0.65rem 0.85rem 0.45rem;
}

.dropdown-user-fullname {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
}

.dropdown-user-email {
  font-size: 0.78rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-divider {
  height: 1px;
  background: var(--panel-border);
  margin: 0.35rem 0;
}

.dropdown-section-title {
  padding: 0.4rem 0.85rem 0.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.dropdown-admin-ai {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  margin: 0.35rem 0.5rem;
  padding: 0.6rem;
}

.dropdown-admin-ai-header {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 0.4rem;
}

.settings-form-compact {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.settings-group-compact {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.settings-label-micro {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.settings-select-compact {
  background: var(--input-bg);
  color: var(--text-main);
  border: 1px solid var(--input-border);
  border-radius: 4px;
  padding: 0.25rem 0.45rem;
  font-size: 0.8rem;
  font-family: inherit;
  outline: none;
  width: 100%;
}

.settings-select-compact:focus {
  border-color: var(--accent-cyan);
}

.settings-select-compact option {
  background: var(--bg-dark);
  color: var(--text-main);
}

.temp-row {
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.25rem;
}

.temp-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.temp-slider {
  width: 95px;
  accent-color: var(--accent-cyan);
  cursor: pointer;
}

.temp-val {
  color: var(--accent-cyan);
  font-weight: 700;
  font-size: 0.8rem;
  min-width: 24px;
  text-align: right;
}

.dropdown-footer {
  padding: 0.2rem;
}

.dropdown-sign-out-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--danger-text, #fca5a5);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.dropdown-sign-out-btn:hover {
  background: var(--danger-surface);
  color: #ffffff;
}

/* Mobile responsive adjustments */
@media (max-width: 820px) {
  .navbar {
    padding: 0.5rem 1rem;
    gap: 0.75rem;
  }
  .navbar-nav {
    gap: 0.75rem;
  }
  .btn-nav-plugin span {
    display: none;
  }
  .btn-nav-plugin {
    padding: 0.45rem 0.6rem;
  }
  .user-display-name {
    display: none;
  }
  .nav-user-pill {
    padding: 0.25rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  text-decoration: none;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, #00d2ff 0%, #0066ff 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(0, 180, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(0, 210, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  background: linear-gradient(135deg, #26dcff 0%, #1a75ff 100%);
  color: #ffffff;
}

.btn-warm {
  background: linear-gradient(135deg, #ff8c00 0%, #ea580c 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(255, 120, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.btn-warm:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(255, 140, 0, 0.55);
  background: linear-gradient(135deg, #ffa31a 0%, #f97316 100%);
  color: #ffffff;
}

.btn-outline {
  background: var(--btn-outline-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--btn-outline-border);
  color: var(--btn-outline-text);
}

.btn-outline:hover {
  background: var(--active-badge-bg);
  border-color: var(--accent-cyan);
  color: var(--text-main);
  box-shadow: 0 0 18px var(--shadow-neon);
  transform: translateY(-2px);
}

.btn-danger {
  background: var(--btn-danger-bg);
  border: 1px solid var(--btn-danger-border);
  color: var(--btn-danger-text);
}

.btn-danger:hover {
  background: var(--danger);
  color: #ffffff;
  border-color: var(--danger);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
  transform: translateY(-2px);
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
  background: var(--input-bg);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15), inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Dashboard Grid */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease, background-color 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glass);
  border-color: var(--accent-cyan);
  background: var(--card-hover-bg);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta));
  opacity: 0.8;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--text-main) 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Cards (Projects, Footprints, EQs) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.item-card {
  padding: 1.5rem;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.item-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.item-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.45), 0 0 20px rgba(0, 229, 255, 0.12);
  background: var(--card-hover-bg);
}

.item-card:hover::before {
  opacity: 1;
}

.item-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  word-break: break-all;
  overflow-wrap: break-word;
}

.item-card-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.item-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--panel-border);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.badge::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
  box-shadow: 0 0 6px currentColor;
}

.badge-pending { 
  background: rgba(245, 158, 11, 0.15); 
  color: #fbbf24; 
  border: 1px solid rgba(245, 158, 11, 0.35); 
}

.badge-processing { 
  background: rgba(0, 229, 255, 0.15); 
  color: #00e5ff; 
  border: 1px solid rgba(0, 229, 255, 0.35); 
}
.badge-processing::before {
  animation: pulse-glow 1.5s infinite ease-in-out;
}

.badge-completed { 
  background: rgba(16, 185, 129, 0.15); 
  color: #34d399; 
  border: 1px solid rgba(16, 185, 129, 0.35); 
}

.badge-failed { 
  background: rgba(239, 68, 68, 0.15); 
  color: #f87171; 
  border: 1px solid rgba(239, 68, 68, 0.35); 
}

.badge-format { 
  background: rgba(192, 132, 252, 0.12); 
  color: #c084fc; 
  border: 1px solid rgba(192, 132, 252, 0.3); 
}

/* Table for EQ Bands */
.eq-table-container {
  overflow-x: auto;
  margin-top: 2rem;
}

.eq-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.eq-table th, .eq-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--panel-border);
}

.eq-table th {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.eq-table tr:last-child td {
  border-bottom: none;
}

.eq-table tbody tr {
  transition: background-color 0.2s ease;
}

.eq-table tbody tr:hover {
  background-color: var(--card-hover-bg);
}

.value-highlight {
  color: var(--accent-cyan);
  font-family: monospace;
  font-size: 1.1rem;
}

/* Page Header Block */
.page-header-block {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--panel-border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.breadcrumbs {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--text-muted);
}
.breadcrumbs a:hover {
  color: var(--accent-cyan);
}
.breadcrumbs span {
  color: var(--text-main);
}
.breadcrumbs .separator {
  margin: 0 0.5rem;
  color: var(--panel-border);
}

/* Flash Messages */
.flash {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  animation: slideIn 0.3s ease-out;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.flash-close {
  background: transparent;
  border: none;
  color: inherit;
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0 0.35rem;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s, transform 0.2s;
  border-radius: 4px;
}

.flash-close:hover {
  opacity: 1;
  transform: scale(1.1);
}

.flash-notice {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--success);
  color: var(--success);
}

.flash-alert {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--danger);
  color: var(--danger);
}

/* Global Announcement Banner */
.announcement-banner {
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  transition: all 0.2s ease-out;
  overflow: hidden;
}

.announcement-banner-content {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  justify-content: center;
  text-align: center;
}

.announcement-close {
  background: rgba(0, 0, 0, 0.15);
  border: none;
  color: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 50%;
  line-height: 1;
  transition: background 0.2s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
}

.announcement-close:hover {
  background: rgba(0, 0, 0, 0.3);
  transform: scale(1.1);
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Landing Page (Pro Studio Cyber-Acoustic) */
.landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem 5rem 2rem;
  min-height: calc(100vh - 80px);
  position: relative;
  isolation: isolate;
}

/* Acoustic Spectral Grid Background Layer */
.landing::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 25%, black 20%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 25%, black 20%, transparent 85%);
  pointer-events: none;
  z-index: -1;
}

.landing-hero {
  max-width: 960px;
  width: 100%;
  margin-bottom: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1.15rem;
  border-radius: 9999px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.28);
  color: #38bdf8;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.15);
  backdrop-filter: blur(8px);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #00e5ff;
  box-shadow: 0 0 10px #00e5ff;
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Logo with Ambient Stage Glow */
.landing-logo-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.landing-logo-glow {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.28) 0%, rgba(249, 115, 22, 0.22) 50%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
  animation: pulse-glow 4s ease-in-out infinite alternate;
}

.landing-logo-img {
  position: relative;
  z-index: 1;
  height: 150px;
  width: auto;
  mix-blend-mode: screen;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.6));
}

.landing-title {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.gradient-text-hero {
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 40%, #00e5ff 85%, #ff7828 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px rgba(0, 229, 255, 0.3));
}

.landing-description {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  margin-bottom: 2.25rem;
  line-height: 1.7;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.landing-cta {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* Real Desktop Plugin Showcase Stage */
.landing-plugin-stage {
  max-width: 960px;
  width: 100%;
  margin: 3.5rem auto 2rem auto;
  position: relative;
  display: flex;
  justify-content: center;
}

.plugin-stage-ambient-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 92%;
  height: 85%;
  border-radius: var(--radius-xl);
  background: radial-gradient(ellipse, rgba(0, 229, 255, 0.22) 0%, rgba(249, 115, 22, 0.14) 45%, transparent 70%);
  filter: blur(55px);
  pointer-events: none;
  z-index: 0;
  animation: pulse-glow 4s ease-in-out infinite alternate;
}

.plugin-stage-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  background: rgba(8, 12, 22, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 229, 255, 0.15);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
}

.plugin-stage-frame:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, 0.45);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.8), 0 0 50px rgba(0, 229, 255, 0.25);
}

.plugin-stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.25rem;
  background: rgba(13, 18, 32, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
}

.plugin-header-dots {
  display: flex;
  gap: 0.45rem;
}

.plugin-header-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.plugin-header-dots .dot.red { background: #ef4444; }
.plugin-header-dots .dot.yellow { background: #f59e0b; }
.plugin-header-dots .dot.green { background: #10b981; }

.plugin-header-title {
  color: #cbd5e1;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 0.8rem;
}

.plugin-header-tag {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  color: #38bdf8;
  font-weight: 600;
}

.plugin-preview-img {
  width: 100%;
  height: auto;
  display: block;
}

/* DAW Compatibility Ribbon */
.landing-daw-strip {
  max-width: 900px;
  width: 100%;
  margin: 3.5rem auto 1rem auto;
  text-align: center;
}

.daw-strip-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 1.25rem;
}

.daw-strip-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.daw-badge {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
}

.daw-badge:hover {
  border-color: rgba(0, 229, 255, 0.4);
  color: #f8fafc;
  background: rgba(20, 30, 50, 0.85);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Modernized Feature Cards */
.landing-features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  width: 100%;
  max-width: 960px;
  margin: 3.5rem auto 0 auto;
  flex-wrap: wrap;
}

.feature-card-glow {
  max-width: 450px;
  width: 100%;
  text-align: left;
  background: rgba(13, 20, 36, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 2rem;
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card-glow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.feature-card-glow:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 229, 255, 0.15);
}

.feature-card-glow:hover::before {
  opacity: 1;
}

.feature-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-md);
  background: radial-gradient(circle, rgba(0, 229, 255, 0.08) 0%, rgba(4, 7, 15, 0.6) 80%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  position: relative;
}

.feature-card-img {
  max-height: 140px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease;
}

.feature-card-glow:hover .feature-card-img {
  transform: scale(1.05);
}

.feature-card-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #00e5ff;
  background: rgba(0, 229, 255, 0.1);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(0, 229, 255, 0.2);
}

.feature-card-glow h3 {
  font-size: 1.35rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.feature-card-glow p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

/* Interior Pulse LED & Status Dots */
.status-dot-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: currentColor;
  box-shadow: 0 0 10px currentColor;
  animation: pulse-glow 2s infinite ease-in-out;
  margin-right: 0.4rem;
  vertical-align: middle;
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 0.65;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

@keyframes eq-pulse {
  0%, 100% {
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.6));
  }
  50% {
    filter: drop-shadow(0 0 18px rgba(0, 229, 255, 0.95));
  }
}

/* Nav User & Settings */
.nav-user {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.settings-form {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--panel-bg);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--panel-border);
}

.settings-group {
  display: flex;
  align-items: center;
}

.settings-select {
  background: var(--input-bg);
  color: var(--text-main);
  border: 1px solid var(--input-border);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  outline: none;
}

.settings-select:focus {
  border-color: var(--accent-cyan);
}

.settings-select option {
  background: var(--bg-dark);
  color: var(--text-main);
}

.user-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 0.5rem 1rem;
}

.btn-ghost:hover {
  background: var(--card-hover-bg);
  color: var(--text-main);
}
details summary::-webkit-details-marker { display: none; }

.hidden { display: none !important; }

/* --- Comments and Support Module Styles --- */

.comments-module-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

/* Thread Header */
.thread-header-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: var(--panel-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
  margin-bottom: 1.5rem;
}

.thread-header-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.thread-title {
  margin-bottom: 0;
  font-size: 1.5rem;
}

.highlight-cyan {
  color: var(--accent-cyan);
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

/* Chat Container */
.chat-messages-container {
  height: 500px;
  overflow-y: auto;
  padding: 1.5rem;
  background: var(--input-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Message Bubbles */
.chat-message {
  display: flex;
  width: 100%;
}

.message-bubble {
  max-width: 70%;
  padding: 1rem;
  border-radius: var(--radius-md);
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Alignments */
.message-self {
  justify-content: flex-end;
}
.message-self .message-bubble {
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-bottom-right-radius: 2px;
}

.message-client {
  justify-content: flex-start;
}
.message-client .message-bubble {
  background: var(--glass-card-bg);
  border: 1px solid var(--panel-border);
  border-bottom-left-radius: 2px;
}

.message-staff {
  justify-content: flex-start;
}
.message-staff .message-bubble {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-bottom-left-radius: 2px;
}

/* Meta info inside message */
.message-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
}

.message-author {
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.message-time {
  color: var(--text-muted);
}

.message-content {
  color: var(--text-main);
  font-size: 0.95rem;
  word-break: break-word;
}

.message-content p {
  margin-bottom: 0;
}

/* Admin Deletion Action */
.message-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.4rem;
}

.btn-delete-comment {
  background: transparent;
  border: none;
  color: var(--danger);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.2s;
}

.btn-delete-comment:hover {
  background: rgba(239, 68, 68, 0.15);
}

/* Empty State */
.empty-chat-state, .empty-console-state {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  text-align: center;
  padding: 2rem;
}

/* Chat Form Box */
.chat-input-container {
  padding: 1.5rem;
  background: var(--panel-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
}

.chat-textarea {
  width: 100%;
  padding: 1rem;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  resize: vertical;
  transition: border-color 0.2s;
}

.chat-textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.chat-submit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  gap: 1.5rem;
}

.chat-hint-text {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0;
}

.text-danger {
  color: var(--danger);
}

.chat-disabled-banner {
  padding: 1.5rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--danger);
  border-radius: var(--radius-lg);
  text-align: center;
  color: #fca5a5;
}

/* --- Support/Admin Console grid --- */
.console-header {
  margin-bottom: 2.5rem;
}

.console-header h2 {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

.console-header .subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
}

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

.user-console-card {
  background: var(--panel-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s;
}

.user-console-card:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, 0.25);
}

.user-console-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.8rem;
  gap: 10px;
}

.user-email {
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0;
}

.user-console-card .card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.stat-value {
  font-weight: 500;
}

.user-console-card .card-footer {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* Badges & Role Badges */
.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.role-badge {
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.role-admin {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.role-support {
  background: rgba(217, 70, 239, 0.15);
  color: var(--accent-magenta);
  border: 1px solid rgba(217, 70, 239, 0.3);
}

.role-client {
  background: rgba(148, 163, 184, 0.15);
  color: var(--text-muted);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

/* Buttons variations */
.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  border-radius: 6px;
}

.btn-block {
  width: 100%;
  display: flex;
}

.btn-cyan {
  background: var(--accent-cyan);
  color: white;
}

.btn-cyan:hover {
  background: var(--accent-cyan-hover);
  box-shadow: var(--shadow-neon);
}

.btn-danger-outline {
  background: transparent;
  border: 1px solid var(--danger);
  color: var(--danger);
}

.btn-danger-outline:hover {
  background: rgba(239, 68, 68, 0.1);
}

.btn-success-outline {
  background: transparent;
  border: 1px solid var(--success);
  color: var(--success);
}

.btn-success-outline:hover {
  background: rgba(16, 185, 129, 0.1);
}

/* Drag & Drop Upload Zone */
.drop-zone {
  border: 2px dashed var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 3rem 1.5rem;
  text-align: center;
  background: rgba(30, 41, 59, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  margin-bottom: 2rem;
}

.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--accent-cyan);
  background: rgba(37, 99, 235, 0.05);
  box-shadow: var(--shadow-neon);
}

.drop-zone-icon {
  font-size: 2.5rem;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
}

.drop-zone-text {
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: var(--text-main);
}

.drop-zone-subtext {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hidden-file-input {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* Upload Queue */
.upload-queue {
  margin-top: 2rem;
  border-top: 1px solid var(--panel-border);
  padding-top: 1.5rem;
}

.upload-queue-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.upload-queue-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.upload-queue-item {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
  cursor: pointer;
}

.upload-queue-item:hover {
  border-color: var(--accent-cyan-hover);
  background: rgba(37, 99, 235, 0.02);
}

.upload-queue-item.selected {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.15);
  background: rgba(37, 99, 235, 0.06);
}

.upload-queue-item.active {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.1);
}

.upload-file-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-width: 70%;
  text-align: left;
}

.upload-file-name {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-main);
}

.upload-file-size {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.upload-file-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.upload-progress-container {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-top: 0.5rem;
  overflow: hidden;
}

.upload-progress-bar {
  height: 100%;
  background: var(--accent-cyan);
  width: 0%;
  transition: width 0.3s ease;
}

.btn-remove-queue-item {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 6px;
  font-size: 1.2rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border-radius: 4px;
  margin-left: 0.5rem;
}

.btn-remove-queue-item:hover {
  color: #ff4d4d;
  background: rgba(255, 77, 77, 0.1);
  transform: scale(1.15);
}
.reference-drop-zone {
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.01);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  gap: 0.25rem;
}

.reference-drop-zone:hover {
  border-color: var(--accent-cyan);
  background: rgba(37, 99, 235, 0.02);
}

.reference-drop-zone.dragover {
  border-color: var(--accent-cyan) !important;
  background: rgba(37, 99, 235, 0.04) !important;
}

.btn-clear-ref {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 6px;
  font-size: 1.2rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border-radius: 4px;
}

.btn-clear-ref:hover {
  color: #ff4d4d !important;
  background: rgba(255, 77, 77, 0.1);
}

.editable-title {
  border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
  display: inline-block;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: currentColor !important;
  color: var(--text-main) !important;
}

.editable-title:hover {
  border-bottom-color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.05) !important;
  border-radius: var(--radius-md);
  padding: 0 8px;
  color: #ffffff !important;
}

/* Project Show - Prominent Title & Inline Edit */
.project-main-title {
  font-size: 2.35rem !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  margin: 0 !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.project-main-title::after {
  content: "✏️";
  font-size: 1rem;
  opacity: 0.35;
  transition: opacity 0.2s ease, transform 0.2s ease;
  vertical-align: middle;
}

.project-main-title:hover::after {
  opacity: 0.9;
  transform: scale(1.15);
}

.project-edit-input {
  font-size: 2.25rem !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  padding: 0.35rem 0.75rem !important;
  width: auto !important;
  min-width: 320px !important;
  max-width: 100% !important;
  border-radius: var(--radius-md) !important;
  border: 1px solid var(--accent-cyan) !important;
  background: var(--bg-surface) !important;
  color: var(--text-main) !important;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.25) !important;
}

.breadcrumb-current {
  color: var(--text-main) !important;
  font-weight: 500;
}

/* Tabs Interface styling */
.tabs-container {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0px;
}

.tab-button {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.75rem 0.5rem;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

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

.tab-button.active {
  color: var(--accent-cyan);
}

.tab-button.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

/* Custom Confirmation Dialog (HTML5 native <dialog>) */
.confirm-dialog {
  position: fixed;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  background: var(--panel-bg);
  color: var(--text-main);
  padding: 1.75rem;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  outline: none;
}

.confirm-dialog::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Dashboard List Table Styles */
.dashboard-table-container {
  overflow-x: auto;
  margin-top: 1.5rem;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
}

.dashboard-table th, .dashboard-table td {
  padding: 1.2rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--panel-border);
}

.dashboard-table th {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  border-bottom: 1px solid var(--panel-border);
}

.dashboard-table tbody tr.main-row {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.dashboard-table tbody tr.main-row:hover {
  background-color: var(--card-hover-bg);
}

/* Chevron indicator rotating */
.chevron-indicator {
  display: inline-block;
  transition: transform 0.2s ease;
  color: var(--text-muted);
  font-weight: bold;
}
.presets-expanded .chevron-indicator {
  transform: rotate(90deg);
  color: var(--accent-cyan);
}

/* Global Utility & Accessibility Classes */
.text-muted {
  color: var(--text-muted) !important;
}

.text-main {
  color: var(--text-main) !important;
}

.bg-surface {
  background: var(--bg-surface) !important;
}

.form-input {
  background: var(--input-bg) !important;
  border: 1px solid var(--input-border) !important;
  color: var(--text-main) !important;
  border-radius: var(--radius-md);
  font-family: inherit;
}

.form-input:focus {
  border-color: var(--accent-cyan) !important;
  outline: none;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

/* Light Theme overrides for Slate classes (ensures contrast & consistency across all pages) */
[data-theme="light"] .bg-slate-900\/60,
[data-theme="light"] .bg-slate-900\/80,
[data-theme="light"] .bg-slate-900 {
  background-color: var(--panel-bg) !important;
}

[data-theme="light"] .border-slate-800,
[data-theme="light"] .border-slate-700 {
  border-color: var(--panel-border) !important;
}

[data-theme="light"] .text-slate-200,
[data-theme="light"] .text-slate-300 {
  color: var(--text-main) !important;
}

[data-theme="light"] .text-slate-400 {
  color: var(--text-muted) !important;
}

[data-theme="light"] .bg-slate-950\/80,
[data-theme="light"] .bg-slate-950 {
  background-color: var(--bg-dark) !important;
}

[data-theme="light"] .bg-slate-800 {
  background-color: var(--input-bg) !important;
}

[data-theme="light"] .hover\:bg-slate-800\/40:hover {
  background-color: var(--card-hover-bg) !important;
}

[data-theme="light"] h1.text-white,
[data-theme="light"] h2.text-white,
[data-theme="light"] h3.text-white,
[data-theme="light"] h4.text-white,
[data-theme="light"] td.text-white,
[data-theme="light"] .font-medium.text-white {
  color: var(--text-main) !important;
}

/* Neutral Theme overrides for Slate classes (ensures pure DAW graphite without blue slate tint) */
[data-theme="neutral"] .bg-slate-900\/60,
[data-theme="neutral"] .bg-slate-900\/80,
[data-theme="neutral"] .bg-slate-900 {
  background-color: var(--panel-bg) !important;
}

[data-theme="neutral"] .border-slate-800,
[data-theme="neutral"] .border-slate-700 {
  border-color: var(--panel-border) !important;
}

[data-theme="neutral"] .text-slate-200,
[data-theme="neutral"] .text-slate-300 {
  color: var(--text-main) !important;
}

[data-theme="neutral"] .text-slate-400 {
  color: var(--text-muted) !important;
}

[data-theme="neutral"] .bg-slate-950\/80,
[data-theme="neutral"] .bg-slate-950 {
  background-color: var(--bg-dark) !important;
}

[data-theme="neutral"] .bg-slate-800 {
  background-color: var(--input-bg) !important;
}

[data-theme="neutral"] .hover\:bg-slate-800\/40:hover {
  background-color: var(--card-hover-bg) !important;
}

/* Pro-Studio Theme Selector Cards */
.theme-card {
  position: relative;
  border: 2px solid var(--panel-border);
  background: var(--panel-bg);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.theme-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.theme-card.active-theme-card {
  border-color: var(--accent-cyan) !important;
  background: var(--active-badge-bg) !important;
  box-shadow: 0 0 0 1px var(--accent-cyan), 0 8px 28px rgba(0, 229, 255, 0.2) !important;
}

.theme-preview-box {
  width: 100%;
  height: 64px;
  border-radius: var(--radius-md);
  margin-bottom: 0.85rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.theme-preview-dark {
  background: #0d121f;
}
.theme-preview-dark .tp-header {
  height: 14px;
  background: #060911;
  display: flex;
  align-items: center;
  padding: 0 6px;
  gap: 3px;
}
.theme-preview-dark .tp-body {
  padding: 6px;
  display: flex;
  gap: 5px;
}
.theme-preview-dark .tp-sidebar {
  width: 25%;
  height: 38px;
  background: rgba(15, 23, 42, 0.8);
  border-radius: 3px;
}
.theme-preview-dark .tp-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.theme-preview-dark .tp-bar {
  height: 8px;
  background: #00e5ff;
  border-radius: 2px;
  width: 70%;
}
.theme-preview-dark .tp-pill {
  height: 12px;
  background: rgba(0, 229, 255, 0.2);
  border: 1px solid #00e5ff;
  border-radius: 2px;
  width: 45%;
}

.theme-preview-light {
  background: #f1f5f9;
  border-color: rgba(0, 0, 0, 0.12);
}
.theme-preview-light .tp-header {
  height: 14px;
  background: #ffffff;
  display: flex;
  align-items: center;
  padding: 0 6px;
  gap: 3px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.theme-preview-light .tp-body {
  padding: 6px;
  display: flex;
  gap: 5px;
}
.theme-preview-light .tp-sidebar {
  width: 25%;
  height: 38px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 3px;
}
.theme-preview-light .tp-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.theme-preview-light .tp-bar {
  height: 8px;
  background: #0284c7;
  border-radius: 2px;
  width: 70%;
}
.theme-preview-light .tp-pill {
  height: 12px;
  background: rgba(2, 132, 199, 0.15);
  border: 1px solid #0284c7;
  border-radius: 2px;
  width: 45%;
}

.theme-preview-neutral {
  background: #1b1e26;
}
.theme-preview-neutral .tp-header {
  height: 14px;
  background: #12151b;
  display: flex;
  align-items: center;
  padding: 0 6px;
  gap: 3px;
}
.theme-preview-neutral .tp-body {
  padding: 6px;
  display: flex;
  gap: 5px;
}
.theme-preview-neutral .tp-sidebar {
  width: 25%;
  height: 38px;
  background: rgba(30, 36, 46, 0.9);
  border-radius: 3px;
}
.theme-preview-neutral .tp-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.theme-preview-neutral .tp-bar {
  height: 8px;
  background: #38bdf8;
  border-radius: 2px;
  width: 70%;
}
.theme-preview-neutral .tp-pill {
  height: 12px;
  background: rgba(56, 189, 248, 0.2);
  border: 1px solid #38bdf8;
  border-radius: 2px;
  width: 45%;
}

.theme-preview-system {
  background: linear-gradient(135deg, #0d121f 50%, #f1f5f9 50%);
  position: relative;
}
.theme-preview-system .tp-header {
  height: 14px;
  background: linear-gradient(135deg, #060911 50%, #ffffff 50%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.theme-preview-system .tp-split-body {
  display: flex;
  height: 50px;
}
.theme-preview-system .tp-split-left {
  width: 50%;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.theme-preview-system .tp-split-right {
  width: 50%;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.guide-step-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.guide-step-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 229, 255, 0.4) !important;
  box-shadow: 0 8px 24px rgba(0, 229, 255, 0.12) !important;
}

/* Sub-tabs for Footprint Presets (Direct vs Harmonizer) */
.subtab-pill-group {
  display: inline-flex;
  align-items: center;
  background: var(--input-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 3px;
}

.subtab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: calc(var(--radius-md) - 2px);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  line-height: 1.2;
}

.subtab-btn:hover {
  color: var(--text-main);
  background: var(--card-hover-bg);
}

.subtab-btn.active {
  background: var(--active-badge-bg);
  color: var(--accent-cyan);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* ============================================================================
   STUDIO WIZARD (Asistente Guiado Web + Plugin IziEq)
   ============================================================================ */
.wizard-step-indicator:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 4px;
  border-radius: var(--radius-md);
}

.wizard-step-indicator:hover .wizard-step-circle {
  transform: scale(1.08);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.35);
}

.wizard-dropzone:hover,
.wizard-dropzone.dragover {
  border-color: var(--accent-cyan) !important;
  background: rgba(0, 229, 255, 0.08) !important;
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.14);
}

.wizard-prompt-chip {
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.28);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.wizard-prompt-chip:hover {
  background: rgba(0, 229, 255, 0.18);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-1px);
}

.wizard-image-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: zoom-in;
  background: #070b14;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.wizard-image-wrapper:hover {
  transform: translateY(-2px);
  border-color: var(--accent-cyan);
  box-shadow: 0 10px 26px rgba(0, 229, 255, 0.16);
}

.wizard-screenshot-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.wizard-lightbox-dialog {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 96vw;
  max-height: 94vh;
}

.wizard-lightbox-dialog::backdrop {
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(6px);
}

@media (max-width: 768px) {
  .studio-wizard-stepper ol {
    grid-template-columns: 1fr !important;
    gap: 0.65rem !important;
  }
  .wizard-step-indicator {
    flex-direction: row !important;
    justify-content: flex-start !important;
    text-align: left !important;
    gap: 0.75rem !important;
  }
}

