@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Geist+Mono:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ==========================================================================
   NXTslide — Mobile Remote Design System
   Linear / Titanium Solid Dark Theme (Zero glassmorphism blur)
   ========================================================================== */

:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --surface-elevated: #161616;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);

  --indigo: #6366f1;
  --indigo-glow: rgba(99, 102, 241, 0.3);
  --emerald: #22c55e;
  --emerald-dim: rgba(34, 197, 94, 0.12);
  --rose: #ef4444;
  --amber: #f59e0b;
  --sky: #38bdf8;

  --text: #ededed;
  --text-dim: #a1a1a1;
  --text-muted: #666666;
}

* {
  margin: 0; padding: 0; box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  user-select: none; -webkit-user-select: none;
}

html, body {
  height: 100%; width: 100%; overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  touch-action: manipulation;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  -webkit-font-smoothing: antialiased;
}

/* ══════════════════════════════════════
   APP SHELL
══════════════════════════════════════ */
.app {
  display: flex; flex-direction: column;
  height: 100%; width: 100%;
  position: relative;
  background: var(--bg);
}

/* ══════════════════════════════════════
   TOP HUD (Solid Dark Bar)
══════════════════════════════════════ */
.hud {
  height: 52px; padding: 0 14px;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: relative; z-index: 60; flex-shrink: 0;
  min-height: 44px;
}

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

.conn-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--emerald); box-shadow: 0 0 8px var(--emerald);
  transition: all 0.3s;
}
.conn-dot.off { background: var(--rose); box-shadow: 0 0 8px var(--rose); }

.slide-num {
  font-family: 'Geist Mono', 'JetBrains Mono', monospace;
  font-size: 0.78rem; font-weight: 600;
  background: var(--surface-elevated); border: 1px solid var(--border);
  padding: 3px 10px; border-radius: 999px; color: var(--text);
}

.timer-row {
  display: flex; align-items: center; gap: 6px; cursor: pointer;
}
.timer-val {
  font-family: 'Geist Mono', 'JetBrains Mono', monospace;
  font-size: 1.05rem; font-weight: 700; color: #fff;
  letter-spacing: -0.02em;
}

.hud-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface-elevated); border: 1px solid var(--border);
  color: var(--text-dim); display: flex; align-items: center;
  justify-content: center; cursor: pointer; transition: all 0.15s;
}
.hud-icon:active { transform: scale(0.92); background: #222222; }
.hud-icon.lit { background: #222222; color: #fff; border-color: rgba(255, 255, 255, 0.2); }

/* ══════════════════════════════════════
   VOLUME ACTIVATION BANNER
══════════════════════════════════════ */
.vol-banner {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: #141414;
  border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background 0.15s;
}
.vol-banner:active { background: #1a1a1a; }
.vol-banner.active {
  background: #121614;
  border-bottom-color: rgba(34, 197, 94, 0.25);
  cursor: default;
}

.vol-icon { font-size: 1.2rem; flex-shrink: 0; }
.vol-text { flex: 1; }
.vol-title { font-size: 0.82rem; font-weight: 600; color: #ededed; line-height: 1.25; }
.vol-banner.active .vol-title { color: #4ade80; }
.vol-sub { font-size: 0.7rem; color: var(--text-muted); margin-top: 1px; }

.vol-action-btn {
  background: #16a34a; color: white;
  border: none; border-radius: 999px;
  padding: 5px 14px; font-family: inherit;
  font-size: 0.74rem; font-weight: 700;
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(22, 163, 74, 0.3);
}
.vol-banner.active .vol-action-btn {
  background: #222222; box-shadow: none; color: #4ade80; font-size: 0.7rem;
}

/* ══════════════════════════════════════
   CLICKER ZONES (High-Performance Solid Dark)
══════════════════════════════════════ */
.zones {
  flex: 1; display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  min-height: 0;
  background: var(--bg);
}

/* PREV Zone — top 28% */
.zone-prev {
  height: 28%;
  background: var(--surface);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  cursor: pointer; position: relative; overflow: hidden;
  transition: background 0.1s;
}
.zone-prev:active, .zone-prev.pressed {
  background: #1c1c1c;
}

.zone-label {
  font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.12em; font-weight: 600;
  color: var(--text-muted);
}

/* NEXT Zone — bottom 72%, primary thumb area */
.zone-next {
  flex: 1;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  cursor: pointer; position: relative; overflow: hidden;
  transition: background 0.1s;
}
.zone-next:active, .zone-next.pressed {
  background: #0f0f0f;
}

/* 3D Titanium Tactile Orb */
.next-orb {
  width: 84px; height: 84px; border-radius: 50%;
  background: linear-gradient(145deg, #1c1c20 0%, #111113 100%);
  border: 2px solid rgba(255, 255, 255, 0.12);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.25);
  transition: transform 0.1s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.1s;
}
.zone-next:active .next-orb, .zone-next.pressed .next-orb {
  transform: scale(0.92);
  border-color: #22c55e;
  box-shadow: 0 2px 12px rgba(34, 197, 94, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}
.next-orb svg { width: 38px; height: 38px; color: #ededed; margin-left: 4px; }

.next-title { font-size: 1.05rem; font-weight: 700; color: #ededed; letter-spacing: -0.01em; }
.next-hint { font-size: 0.72rem; color: var(--text-muted); }

/* Flash overlay */
.flash {
  position: absolute; inset: 0; background: rgba(255, 255, 255, 0.08);
  pointer-events: none; opacity: 0; transition: opacity 0.06s ease-out;
  z-index: 10;
}
.flash.on { opacity: 1; }

/* ══════════════════════════════════════
   BOTTOM TOOLBAR
══════════════════════════════════════ */
.toolbar {
  flex-shrink: 0;
  height: auto; min-height: 54px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  display: flex; align-items: center;
  justify-content: space-around;
  padding: 6px 4px env(safe-area-inset-bottom);
  z-index: 60;
}

.tool {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: none; border: none; color: var(--text-muted);
  font-family: inherit; font-size: 0.62rem; font-weight: 500;
  cursor: pointer; padding: 6px 8px; border-radius: 8px;
  transition: all 0.15s; flex: 1;
  white-space: nowrap; overflow: hidden;
}
.tool:active { color: white; background: #161616; }
.tool.active { color: #4ade80; }

/* ══════════════════════════════════════
   MODAL SHEET (Solid Dark Elevation, No Blur)
══════════════════════════════════════ */
.overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.82);
  z-index: 200;
  display: none; align-items: flex-end;
}
.overlay.open { display: flex; }

.sheet {
  background: #111111;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px 20px 0 0; width: 100%; max-height: 80vh;
  overflow-y: auto; padding: 20px 20px 32px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.85);
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.handle { width: 36px; height: 4px; background: rgba(255, 255, 255, 0.2); border-radius: 4px; align-self: center; margin-bottom: 6px; }
.sheet-title { font-size: 1.1rem; font-weight: 700; color: #fff; letter-spacing: -0.01em; }
.sheet-body { font-size: 0.82rem; color: var(--text-dim); line-height: 1.6; }

.info-item {
  background: var(--surface-elevated); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 14px;
  display: flex; align-items: flex-start; gap: 12px;
}
.info-item-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.info-item-text strong { display: block; font-size: 0.84rem; color: white; margin-bottom: 3px; font-weight: 600; }
.info-item-text span { font-size: 0.76rem; color: var(--text-dim); line-height: 1.45; }

.badge-row { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  padding: 4px 10px; border-radius: 999px;
  font-size: 0.7rem; font-weight: 600;
  background: #1c1c1c; color: #a1a1a1; border: 1px solid var(--border);
}
.badge.green { background: rgba(34, 197, 94, 0.12); color: #4ade80; border-color: rgba(34, 197, 94, 0.3); }
.badge.red { background: rgba(239, 68, 68, 0.12); color: #f87171; border-color: rgba(239, 68, 68, 0.3); }

.close-btn {
  background: #222222; color: white; border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px; padding: 12px; font-family: inherit;
  font-weight: 700; font-size: 0.88rem; cursor: pointer;
  margin-top: 4px; transition: background 0.15s;
}
.close-btn:hover, .close-btn:active {
  background: #2a2a2a;
}

/* ══════════════════════════════════════
   SOFTWARE PROFILE SELECTOR in HUD
══════════════════════════════════════ */
.profile-chip {
  background: var(--surface-elevated); border: 1px solid var(--border);
  border-radius: 999px; padding: 3px 10px;
  font-size: 0.72rem; font-weight: 600; color: var(--text-dim);
  cursor: pointer; display: flex; align-items: center; gap: 4px;
  max-width: 120px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}

/* ══════════════════════════════════════
   RESPONSIVE: Short Screens (< 620px tall)
══════════════════════════════════════ */
@media (max-height: 620px) {
  .hud { height: 44px; padding: 0 10px; }
  .timer-val { font-size: 0.95rem; }

  .vol-banner { padding: 7px 12px; }
  .vol-title { font-size: 0.78rem; }
  .vol-sub { display: none; }

  .zone-prev { height: 22%; }

  .toolbar { min-height: 48px; padding: 4px 2px env(safe-area-inset-bottom); }
  .tool { font-size: 0.56rem; padding: 4px 4px; }
  .tool svg { width: 15px; height: 15px; }
}

@media (max-height: 500px) {
  .vol-banner { display: none; }
  .zone-prev { height: 20%; }
}

/* ══════════════════════════════════════
   LASER POINTER DRAWER & CONTROLS
══════════════════════════════════════ */
.laser-sheet {
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.laser-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.laser-style-pill {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.laser-close-btn {
  background: #222222;
  color: var(--text-dim);
  border: 1px solid var(--border);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.laser-tabs {
  display: flex;
  width: 100%;
  gap: 6px;
  background: #161616;
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.laser-tab {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-dim);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.laser-tab.active {
  background: #222222;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.laser-view {
  width: 100%;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.laser-view.active {
  display: flex;
}

.clutch-box {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px 0;
}

.laser-clutch {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #242428, #121214);
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: transform 0.08s, box-shadow 0.12s, border-color 0.12s;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.laser-clutch:active, .laser-clutch.pressed {
  transform: scale(0.96);
  background: radial-gradient(circle at 35% 35%, #ef4444, #991b1b);
  border-color: #ef4444;
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.4), inset 0 2px 8px rgba(255, 255, 255, 0.4);
}

.laser-touchpad {
  width: 100%;
  height: 220px;
  background: #141414;
  border: 2px dashed rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.laser-touchpad:active {
  border-color: #22c55e;
  background: #181818;
}

/* ══════════════════════════════════════
   STEALTH BLACKOUT MODE (OLED Fake Off)
══════════════════════════════════════ */
.stealth-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: #000000;
  z-index: 999999;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.stealth-overlay.active {
  display: flex;
}

.stealth-exit-btn {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  right: 16px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  z-index: 10;
  transition: opacity 0.3s, background 0.15s;
}

.stealth-exit-btn:active {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.stealth-hint-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  pointer-events: none;
  text-align: center;
  padding: 24px;
  transition: opacity 1.2s ease-out;
}

.stealth-hint-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.stealth-hint-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.28);
  line-height: 1.5;
}

.stealth-launch-btn {
  margin-top: 12px;
  width: 100%;
  padding: 13px 14px;
  background: #09090b;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ededed;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.stealth-launch-btn:active {
  transform: scale(0.98);
  background: #18181b;
  border-color: rgba(255, 255, 255, 0.3);
}

