/* ═══════════════════════════════════════════════════════════════════
   FLOWORK NEURAL JIT — macOS SPORT IMMERSIVE FULL-WIDTH CANVAS
   Design: Borderless Spacious Canvas, Zero-Click Direct Previews, Floating Mac Dock
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* ── Ultra Dark Sport Palette ── */
  --bg-macos: #030509;
  --bg-window: rgba(7, 11, 20, 0.96);
  --bg-menubar: rgba(5, 8, 16, 0.9);
  --bg-dock: rgba(12, 17, 30, 0.85);
  --bg-card: rgba(13, 19, 34, 0.7);
  --bg-card-hover: rgba(18, 27, 48, 0.88);
  --bg-input: rgba(5, 8, 15, 0.95);
  --bg-sidebar-tree: rgba(6, 10, 18, 0.96);
  --bg-inspector: rgba(8, 13, 24, 0.98);

  /* ── Sport Neon Accents ── */
  --neon-cyan: #00f2fe;
  --neon-lime: #00ff87;
  --neon-amber: #ffb703;
  --neon-crimson: #ff0055;
  --neon-violet: #8b5cf6;
  --neon-blue: #38bdf8;
  --neon-turbo: #00d2ff;

  --accent-cyan: var(--neon-cyan);
  --accent-blue: var(--neon-blue);
  --accent-emerald: var(--neon-lime);
  --accent-amber: var(--neon-amber);
  --accent-rose: var(--neon-crimson);

  /* ── Borders & Glows ── */
  --border-window: rgba(255, 255, 255, 0.1);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-card: rgba(255, 255, 255, 0.07);
  --border-focus: var(--neon-cyan);
  --border-sport-cyan: rgba(0, 242, 254, 0.35);
  --border-sport-lime: rgba(0, 255, 135, 0.35);

  --glow-cyan: 0 0 16px rgba(0, 242, 254, 0.35);
  --glow-lime: 0 0 16px rgba(0, 255, 135, 0.35);
  --glow-crimson: 0 0 16px rgba(255, 0, 85, 0.35);

  /* ── Typography ── */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-sport: #e2e8f0;

  --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'JetBrains Mono', Menlo, Monaco, Consolas, monospace;

  /* ── Radii & Shadows ── */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-window: 14px;
  --radius-dock: 28px;

  --shadow-window: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 1px 1px rgba(255, 255, 255, 0.08);
  --shadow-dock: 0 20px 48px rgba(0, 0, 0, 0.7), 0 0 1px 1px rgba(255, 255, 255, 0.18);
}

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

body {
  background-color: var(--bg-macos);
  background-image: 
    radial-gradient(circle at 6% 10%, rgba(0, 242, 254, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 94% 90%, rgba(139, 92, 246, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(0, 255, 135, 0.03) 0%, transparent 65%);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13px;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

#neuralCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.2;
}

.app-hud {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════════
   1. macOS SPORT TOP MENUBAR
   ═══════════════════════════════════════════════════════════════════ */
.macos-menubar {
  height: 36px;
  background: var(--bg-menubar);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  font-size: 12px;
  user-select: none;
  flex-shrink: 0;
  z-index: 50;
}

.menubar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sport-brand-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.15s ease;
}

.sport-brand-badge:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--border-sport-cyan);
}

.apple-icon {
  font-size: 15px;
  color: var(--neon-cyan);
  filter: drop-shadow(0 0 6px rgba(0, 242, 254, 0.8));
}

.menubar-app-title {
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: 12px;
  color: #fff;
}

.sport-tag-pill {
  font-size: 9.5px;
  font-family: var(--font-mono);
  font-weight: 800;
  letter-spacing: 0.8px;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-violet));
  color: #030812;
  padding: 1px 5px;
  border-radius: 3px;
}

.menubar-items-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.menubar-item {
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 5px;
  transition: all 0.15s ease;
}

.menubar-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.menubar-item.active {
  color: var(--neon-cyan);
  background: rgba(0, 242, 254, 0.12);
  font-weight: 700;
}

.menubar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sport-telemetry-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 255, 135, 0.12);
  border: 1px solid rgba(0, 255, 135, 0.3);
  color: var(--neon-lime);
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 10.5px;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.3px;
}

.pulse-dot-green {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-lime);
  box-shadow: 0 0 8px var(--neon-lime);
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 135, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(0, 255, 135, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 135, 0); }
}

.menubar-clock {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
}

.menubar-user-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
}

.menubar-role-tag {
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(139, 92, 246, 0.3);
  color: #ddd6fe;
}

.menubar-login-btn, .menubar-logout-btn {
  background: rgba(0, 242, 254, 0.18);
  border: 1px solid rgba(0, 242, 254, 0.4);
  color: var(--neon-cyan);
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.menubar-logout-btn {
  background: rgba(255, 0, 85, 0.15);
  border-color: rgba(255, 0, 85, 0.4);
  color: #fda4af;
}

.menubar-login-btn:hover {
  background: rgba(0, 242, 254, 0.3);
  box-shadow: var(--glow-cyan);
}

/* ═══════════════════════════════════════════════════════════════════
   2. IMMERSIVE FULL-WIDTH DESKTOP & FLUID CANVAS (NO CRAMPED BOXES)
   ═══════════════════════════════════════════════════════════════════ */
.macos-desktop {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 6px 10px 72px 10px; /* Space for floating dock */
  overflow: hidden;
  height: calc(100vh - 36px);
  width: 100vw;
}

.macos-window {
  width: 100%;
  height: 100%;
  background: var(--bg-window);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border-window);
  border-radius: var(--radius-window);
  box-shadow: var(--shadow-window);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.macos-window-header {
  height: 38px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  user-select: none;
  flex-shrink: 0;
}

.traffic-lights {
  display: flex;
  gap: 8px;
  width: 90px;
  align-items: center;
}

.traffic-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  box-shadow: inset 0 1px 1px rgba(0,0,0,0.4);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.traffic-dot:hover { transform: scale(1.15); filter: brightness(1.2); }
.traffic-dot.red { background: #ff5f56; border: 1px solid #e0443e; }
.traffic-dot.yellow { background: #ffbd2e; border: 1px solid #dea123; }
.traffic-dot.green { background: #27c93f; border: 1px solid #1aab29; }

.window-title {
  flex: 1;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.window-hud-badge {
  font-size: 10px;
  font-family: var(--font-mono);
  background: rgba(0, 242, 254, 0.12);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 242, 254, 0.25);
  padding: 1px 6px;
  border-radius: 4px;
}

.window-actions-right {
  width: 90px;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.macos-window-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

/* ═══════════════════════════════════════════════════════════════════
   3. FULL-WIDTH DIRECT CONTENT STREAM (ZERO-CLICK VISIBILITY)
   ═══════════════════════════════════════════════════════════════════ */
.full-content-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.direct-content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.12s ease;
  width: 100%;
}

.direct-content-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 242, 254, 0.3);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.direct-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
  flex-wrap: wrap;
}

.direct-card-title {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.direct-card-body {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: #f1f5f9;
  white-space: pre-wrap;
  word-break: break-word;
  background: rgba(0, 0, 0, 0.45);
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ═══════════════════════════════════════════════════════════════════
   4. FULL-WIDTH DATABASE STUDIO
   ═══════════════════════════════════════════════════════════════════ */
.db-studio-layout {
  display: flex;
  flex: 1;
  height: 100%;
  width: 100%;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-card);
}

.db-studio-sidebar {
  width: 220px;
  background: var(--bg-sidebar-tree);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  flex-shrink: 0;
  padding: 8px 6px;
  gap: 4px;
}

.db-tree-header {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  padding: 4px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.db-tree-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 4px;
}

.db-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: var(--radius-xs);
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.db-group-title:hover { background: rgba(255, 255, 255, 0.08); }
.db-group-title.active {
  background: rgba(0, 242, 254, 0.15);
  color: var(--neon-cyan);
  border-color: var(--border-sport-cyan);
}

.db-table-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 8px;
  margin-top: 2px;
}

.db-table-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  border-radius: var(--radius-xs);
  font-size: 11px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.12s ease;
  border: 1px solid transparent;
}

.db-table-item:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.db-table-item.active {
  background: rgba(0, 242, 254, 0.2);
  color: #fff;
  font-weight: 700;
  border-color: rgba(0, 242, 254, 0.35);
}

.db-row-badge {
  font-size: 9px;
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.5);
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--text-muted);
}

.db-studio-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-input);
  min-width: 0;
  width: 100%;
}

.db-studio-toolbar {
  height: 44px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px;
  gap: 10px;
  flex-shrink: 0;
}

.db-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
}

.db-current-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.db-toolbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.db-studio-grid-container {
  flex: 1;
  overflow: auto;
  background: var(--bg-input);
  width: 100%;
}

/* ═══════════════════════════════════════════════════════════════════
   5. macOS FLOATING DOCK (BOTTOM MENU BAR)
   ═══════════════════════════════════════════════════════════════════ */
.macos-dock-wrapper {
  position: fixed;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 9999;
}

.macos-dock {
  pointer-events: auto;
  background: var(--bg-dock);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-dock);
  padding: 5px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-dock);
}

.dock-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: 3px 5px;
  border-radius: 12px;
  user-select: none;
}

.dock-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.dock-item:hover .dock-icon-box {
  transform: translateY(-8px) scale(1.2);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5), 0 0 16px rgba(0, 242, 254, 0.5);
  border-color: rgba(0, 242, 254, 0.6);
}

.dock-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: transparent;
  margin-top: 3px;
  transition: all 0.2s ease;
}

.dock-item.active .dock-dot {
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
  transform: scale(1.3);
}

.dock-item.active .dock-icon-box {
  background: rgba(0, 242, 254, 0.18);
  border-color: rgba(0, 242, 254, 0.45);
}

.dock-tooltip {
  position: absolute;
  top: -34px;
  background: rgba(8, 12, 22, 0.95);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: all 0.15s ease;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 6px;
}

.dock-shortcut-badge {
  font-size: 9px;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.12);
  padding: 1px 4px;
  border-radius: 3px;
  color: var(--neon-cyan);
}

.dock-item:hover .dock-tooltip {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════════
   6. TABLES, BADGES & BUTTONS
   ═══════════════════════════════════════════════════════════════════ */
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; width: 100%; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 12px; width: 100%; }

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.15s ease;
}

.stat-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 242, 254, 0.3);
}

.stat-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-val {
  font-size: 22px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #fff;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.card-header h3 {
  font-size: 13.5px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.table-container {
  overflow-x: auto;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-card);
  background: var(--bg-input);
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  width: 100%;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}

thead {
  position: sticky;
  top: 0;
  z-index: 5;
}

th {
  background: #090e18;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.7px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-card);
  white-space: nowrap;
}

td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  white-space: nowrap;
}

tr.data-row:hover td {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

code {
  font-family: var(--font-mono);
  font-size: 11px;
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #7dd3fc;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.badge-success { background: rgba(0, 255, 135, 0.15); color: #00ff87; border: 1px solid rgba(0, 255, 135, 0.35); }
.badge-info { background: rgba(0, 242, 254, 0.15); color: #00f2fe; border: 1px solid rgba(0, 242, 254, 0.35); }
.badge-warning { background: rgba(255, 183, 3, 0.15); color: #ffb703; border: 1px solid rgba(255, 183, 3, 0.35); }
.badge-danger { background: rgba(255, 0, 85, 0.15); color: #ff0055; border: 1px solid rgba(255, 0, 85, 0.35); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-xs);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.12s ease;
  border: 1px solid var(--border-card);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  text-decoration: none;
}

.btn:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.24); }
.btn-primary { background: linear-gradient(135deg, var(--neon-cyan), #0284c7); color: #020c14; border-color: transparent; font-weight: 700; }
.btn-primary:hover { background: linear-gradient(135deg, #7dd3fc, var(--neon-cyan)); box-shadow: var(--glow-cyan); }
.btn-danger { background: rgba(255, 0, 85, 0.18); color: #fda4af; border-color: rgba(255, 0, 85, 0.35); }
.btn-danger:hover { background: rgba(255, 0, 85, 0.3); box-shadow: var(--glow-crimson); }
.btn-sm { padding: 3px 8px; font-size: 11px; }

.subtabs-bar {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
}

.subtab-btn {
  padding: 5px 12px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.subtab-btn:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.subtab-btn.active { background: rgba(0, 242, 254, 0.15); color: var(--neon-cyan); border-color: rgba(0, 242, 254, 0.35); font-weight: 700; }

.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.form-label { font-size: 11px; font-weight: 600; color: var(--text-secondary); }

input[type="text"], input[type="password"], input[type="number"], textarea, select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-card);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 12px;
  padding: 7px 10px;
  border-radius: var(--radius-xs);
  outline: none;
  transition: border-color 0.15s ease;
}

input:focus, textarea:focus, select:focus { border-color: var(--border-focus); box-shadow: 0 0 0 2px rgba(0, 242, 254, 0.2); }

/* ═══════════════════════════════════════════════════════════════════
   7. FULL-WIDTH SPOTLIGHT SEARCH (ZERO CLICKS DIRECT FULL TEXT)
   ═══════════════════════════════════════════════════════════════════ */
.spotlight-search-view {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 12px;
}

.spotlight-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-title {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.8px;
  background: linear-gradient(135deg, #ffffff 30%, var(--neon-cyan) 75%, var(--neon-violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.spotlight-box {
  width: 100%;
  background: rgba(12, 18, 32, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spotlight-input-container {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(5, 8, 15, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 12px;
}

.spotlight-input-container:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.25);
}

.spotlight-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
}

.suggestion-chips-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.suggestion-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
}

.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.12s ease;
}

.chip-btn:hover {
  background: rgba(0, 242, 254, 0.15);
  color: var(--neon-cyan);
  border-color: var(--border-sport-cyan);
  transform: translateY(-1px);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.modal {
  background: rgba(12, 18, 32, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  width: 94%;
  max-width: 800px;
  padding: 20px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.8);
}

.modal-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 242, 254, 0.4); }

/* ═══════════════════════════════════════════════════════════════════
   7. 3D HOLOGRAPHIC CINEMATIC LOGIN SCREEN (face2.glb)
   ═══════════════════════════════════════════════════════════════════ */
.login-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 40px 10vw;
  background: #030712;
  overflow: hidden;
}

@media (max-width: 860px) {
  .login-modal {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 18px;
  }
}

/* Full-Screen 3D Holographic Canvas */
.login-3d-bg {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 1;
  display: block;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: grab;
}
.login-3d-bg:active {
  cursor: grabbing;
}

.login-backdrop-tint {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(circle at 30% 50%, rgba(8, 12, 20, 0.2) 0%, rgba(4, 8, 16, 0.88) 100%);
  pointer-events: none;
}

/* Holographic Greeting Hero (Typewriter) */
.login-hero-greeting {
  position: absolute;
  bottom: 50px;
  left: 28%;
  transform: translateX(-50%);
  z-index: 15;
  width: 520px;
  max-width: 48vw;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  pointer-events: none;
  user-select: none;
  text-align: left;
}

.greeting-pretitle {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  color: #00d8f6;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  opacity: 0.95;
}

.greeting-pretitle .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.greeting-text-wrap {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  letter-spacing: -0.015em;
  min-height: 68px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.95), 0 0 25px rgba(0, 216, 246, 0.25);
}

.greeting-typing-text {
  background: linear-gradient(135deg, #ffffff 55%, #7dd3fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.speech-cursor {
  display: inline-block;
  color: #00d8f6;
  font-weight: 900;
  font-size: 1.7rem;
  margin-left: 4px;
  -webkit-text-fill-color: #00d8f6;
  animation: blinkCursor 0.75s infinite;
}

@keyframes blinkCursor {
  0%, 100% { opacity: 1; text-shadow: 0 0 10px #00d8f6; }
  50% { opacity: 0; }
}

@media (max-width: 860px) {
  .login-hero-greeting {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 360px;
    margin: 0 auto 18px auto;
    text-align: center;
  }
  .greeting-pretitle {
    justify-content: center;
  }
}

/* Standalone Login Card */
.login-card {
  position: relative;
  z-index: 20;
  width: 100%;
  max-width: 400px;
  background: rgba(14, 20, 34, 0.88);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(0, 216, 246, 0.3);
  border-radius: 16px;
  padding: 36px 30px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.9), 0 0 36px rgba(0, 216, 246, 0.2);
  animation: loginCardSlide 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes loginCardSlide {
  0% { opacity: 0; transform: scale(0.94) translateY(12px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.login-header {
  text-align: center;
  margin-bottom: 24px;
}

.login-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}

.login-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  font-size: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  text-align: center;
}
.login-error.hidden {
  display: none;
}

.login-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-input-group label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.login-input-wrapper input {
  width: 100%;
  background: rgba(8, 12, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13.5px;
  font-family: inherit;
  color: #fff;
  outline: none;
  transition: all 0.15s ease;
}

.login-input-wrapper input:focus {
  border-color: #00d8f6;
  box-shadow: 0 0 16px rgba(0, 216, 246, 0.35);
  background: rgba(14, 22, 38, 0.95);
}

.btn-login-submit {
  position: relative;
  z-index: 20;
  margin-top: 6px;
  background: linear-gradient(135deg, #00d8f6 0%, #0088ff 100%);
  border: none;
  color: #030712;
  font-size: 13.5px;
  font-weight: 800;
  padding: 13px 20px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 4px 20px rgba(0, 216, 246, 0.35);
}

.btn-login-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 216, 246, 0.55);
}

.btn-login-submit:active {
  transform: scale(0.98);
}

