/* ==========================================================================
   Axios NetworkIQ Mobile — Sleek & Compact On-Location Styling
   Designed for OLED mobile screens, Ray-Ban Meta audio HUD & touch navigation
   ========================================================================== */

:root {
  --bg-mobile: #070a12;
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-card-hover: rgba(31, 41, 55, 0.85);
  --bg-nav: rgba(11, 17, 32, 0.92);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(6, 182, 212, 0.4);
  
  --cyan: #06b6d4;
  --cyan-glow: rgba(6, 182, 212, 0.25);
  --emerald: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.25);
  --rose: #f43f5e;
  --rose-glow: rgba(244, 63, 94, 0.25);
  --violet: #8b5cf6;
  --amber: #f59e0b;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html {
  background-color: #020617;
}

body.mobile-body {
  background-color: var(--bg-mobile);
  color: var(--text-main);
  font-family: var(--font-main);
  min-height: 100vh;
  min-height: -webkit-fill-available;
  overflow-x: hidden;
  padding-top: calc(var(--safe-top) + 54px);
  padding-bottom: calc(var(--safe-bottom) + 68px);
  display: flex;
  flex-direction: column;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.7);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==================== TOP STICKY BAR ==================== */
.mobile-top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 480px;
  height: calc(var(--safe-top) + 54px);
  padding-top: var(--safe-top);
  background: var(--bg-nav);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 10px;
  padding-right: 10px;
  gap: 6px;
  z-index: 1000;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.brand-icon-mini {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border-highlight);
}

.brand-title-mini {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-title-mini .highlight {
  color: var(--cyan);
}

.top-bar-center {
  display: none;
}

.active-event-pill {
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: var(--cyan);
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.glasses-status-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #c4b5fd;
  padding: 3px 7px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}

.glasses-dot-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 6px var(--emerald);
  animation: pulseEmerald 1.5s infinite;
}

/* ==================== BOTTOM NAV BAR ==================== */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 480px;
  height: calc(var(--safe-bottom) + 64px);
  padding-bottom: var(--safe-bottom);
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1000;
}

.nav-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 0.65rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 12px;
  transition: all 0.2s ease;
  position: relative;
  min-width: 58px;
}

.nav-tab-btn i {
  font-size: 1.15rem;
  transition: transform 0.2s ease;
}

.nav-tab-btn.active {
  color: var(--cyan);
}

.nav-tab-btn.active i {
  transform: translateY(-2px);
  color: var(--cyan);
  text-shadow: 0 0 10px var(--cyan-glow);
}

.nav-tab-badge {
  position: absolute;
  top: 2px;
  right: 12px;
  background: var(--cyan);
  color: #000;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 10px;
}

/* ==================== MOBILE SCREENS CONTAINER ==================== */
.mobile-viewport {
  flex: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
}

.mobile-screen {
  display: none;
  flex-direction: column;
  gap: 16px;
  animation: fadeIn 0.25s ease;
}

.mobile-screen.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== SCREEN 1: FLOOR HUD & PACING ==================== */
.mobile-clock-strip {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12) 0%, rgba(139, 92, 246, 0.08) 100%);
  border: 1px solid var(--border-highlight);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.clock-strip-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.clock-strip-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.clock-strip-digits {
  font-size: 1.6rem;
  font-family: var(--font-mono);
  color: #fff;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 0 12px var(--cyan-glow);
}

.clock-strip-window {
  font-size: 0.7rem;
  color: var(--cyan);
  font-weight: 600;
}

.clock-strip-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-icon-pill {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-highlight);
  background: rgba(6, 182, 212, 0.15);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.btn-icon-pill:active {
  transform: scale(0.92);
}

/* Active Prospect Card on Floor */
.mobile-prospect-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.mobile-prospect-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--emerald));
}

.prospect-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.prospect-meta-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.prospect-booth-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(6, 182, 212, 0.18);
  color: var(--cyan);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  align-self: flex-start;
}

.prospect-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-top: 4px;
}

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

.prospect-score-ring {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #0d1322;
  border: 2.5px solid var(--emerald);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px var(--emerald-glow);
  flex-shrink: 0;
}

.prospect-score-ring strong {
  font-size: 1.05rem;
  font-family: var(--font-display);
  line-height: 1;
  color: var(--emerald);
}

.prospect-score-ring span {
  font-size: 0.5rem;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* Conversation Stopwatch Widget */
.mobile-stopwatch-widget {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stopwatch-left {
  display: flex;
  flex-direction: column;
}

.stopwatch-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

.stopwatch-digits {
  font-size: 1.5rem;
  font-family: var(--font-mono);
  color: var(--cyan);
  font-weight: 800;
  line-height: 1.1;
}

.stopwatch-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.phase-pill {
  background: rgba(6, 182, 212, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 10px;
}

.phase-target {
  font-size: 0.68rem;
  color: var(--text-dim);
}

/* Tested Hook Mobile Card */
.mobile-hook-card {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hook-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--emerald);
  text-transform: uppercase;
}

.hook-text {
  font-size: 0.85rem;
  color: #fff;
  font-style: italic;
  line-height: 1.4;
}

/* Big Action Touch Buttons */
.mobile-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-mobile-touch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  border-radius: 14px;
  font-size: 0.82rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-mobile-touch:active {
  transform: scale(0.96);
}

.btn-touch-pass {
  background: rgba(244, 63, 94, 0.15);
  border: 1.5px solid var(--rose);
  color: #fda4af;
}

.btn-touch-close {
  background: rgba(16, 185, 129, 0.18);
  border: 1.5px solid var(--emerald);
  color: #6ee7b7;
}

.btn-touch-primary {
  background: linear-gradient(135deg, var(--cyan) 0%, #2563eb 100%);
  color: #fff;
  grid-column: 1 / -1;
  box-shadow: 0 4px 16px var(--cyan-glow);
}

/* ==================== SCREEN 2: REAL-TIME ELEVENLABS VOICE COPILOT ==================== */
.copilot-voice-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 0 10px 0;
  position: relative;
}

/* Conversational Glowing Orb */
.eleven-voice-orb {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, #06b6d4 0%, #8b5cf6 60%, rgba(139, 92, 246, 0.2) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 35px rgba(6, 182, 212, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.4);
  transition: transform 0.25s ease;
}

.eleven-voice-orb.listening {
  animation: orbListen 1.5s infinite alternate ease-in-out;
}

.eleven-voice-orb.speaking {
  animation: orbSpeak 0.8s infinite alternate ease-in-out;
  background: radial-gradient(circle, #10b981 0%, #06b6d4 60%, rgba(16, 185, 129, 0.3) 100%);
  box-shadow: 0 0 45px rgba(16, 185, 129, 0.7);
}

@keyframes orbListen {
  0% { transform: scale(0.95); box-shadow: 0 0 25px rgba(6, 182, 212, 0.4); }
  100% { transform: scale(1.08); box-shadow: 0 0 50px rgba(139, 92, 246, 0.8); }
}

@keyframes orbSpeak {
  0% { transform: scale(1.0); }
  100% { transform: scale(1.12); }
}

.orb-center-icon {
  font-size: 2.2rem;
  color: #fff;
  z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.orb-status-caption {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--cyan);
  margin-top: 14px;
}

.orb-sub-caption {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 2px;
}

/* Sound Wave Bars */
.sound-wave-bars {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  margin-top: 8px;
}

.wave-bar {
  width: 3px;
  height: 6px;
  background: var(--cyan);
  border-radius: 3px;
  transition: height 0.1s ease;
}

.eleven-voice-orb.speaking + .sound-wave-bars .wave-bar {
  animation: waveAnim 0.6s infinite alternate ease-in-out;
}

.wave-bar:nth-child(2) { animation-delay: 0.1s; }
.wave-bar:nth-child(3) { animation-delay: 0.2s; }
.wave-bar:nth-child(4) { animation-delay: 0.3s; }
.wave-bar:nth-child(5) { animation-delay: 0.15s; }

@keyframes waveAnim {
  0% { height: 4px; }
  100% { height: 22px; }
}

/* Quick Prompt Suggestions */
.copilot-prompt-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.copilot-prompt-chips::-webkit-scrollbar {
  display: none;
}

.prompt-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 0.72rem;
  white-space: nowrap;
  cursor: pointer;
}

.prompt-chip:active {
  background: rgba(6, 182, 212, 0.2);
  border-color: var(--cyan);
}

/* Real-Time Transcript Feed */
.copilot-transcript-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 230px;
  overflow-y: auto;
}

.transcript-message {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  line-height: 1.4;
}

.transcript-message.user {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.3);
  align-self: flex-end;
  color: #e0f2fe;
}

.transcript-message.ai {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  align-self: flex-start;
  color: #fff;
}

.transcript-sender {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--cyan);
}

/* ==================== SCREEN 3: WHALE ROUTE ==================== */
.route-target-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: transform 0.15s ease;
}

.route-target-card:active {
  transform: scale(0.98);
}

.target-left-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.target-score-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0d1322;
  border: 2px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: #fff;
  flex-shrink: 0;
}

.target-score-circle.whale {
  border-color: var(--emerald);
  color: var(--emerald);
}

.target-score-circle.drain {
  border-color: var(--rose);
  color: var(--rose);
}

.target-info-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.target-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.target-company {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.target-time-badge {
  font-size: 0.65rem;
  color: var(--text-dim);
}

.target-action-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==================== SCREEN 4: CAMERA OCR SCANNER ==================== */
.mobile-camera-box {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-subtle);
}

#mobile-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-viewfinder {
  position: absolute;
  top: 12%;
  left: 10%;
  right: 10%;
  bottom: 12%;
  border: 2px dashed rgba(6, 182, 212, 0.7);
  border-radius: 10px;
  pointer-events: none;
}

.camera-shutter-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 12px 0;
}

.btn-shutter {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s ease;
}

.btn-shutter:active {
  transform: scale(0.9);
}

.shutter-inner {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--cyan);
}

.viewfinder-laser-line {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), #fff, var(--cyan), transparent);
  box-shadow: 0 0 10px var(--cyan);
  position: absolute;
  top: 0;
  left: 0;
  animation: laserScan 2.4s infinite ease-in-out;
}

@keyframes laserScan {
  0% { top: 0%; opacity: 0.2; }
  50% { top: 100%; opacity: 1; }
  100% { top: 0%; opacity: 0.2; }
}

.scan-result-container {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 25px rgba(0,0,0,0.5);
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==================== SCREEN 5: MY QR BADGE ==================== */
.qr-fullscreen-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 20px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 12px 40px rgba(6, 182, 212, 0.22), 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-top: 6px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  width: 100%;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
  transition: all 0.3s ease;
}

.qr-badge-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  gap: 10px;
}

.qr-badge-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(6, 182, 212, 0.3);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.qr-badge-header-info {
  flex: 1;
  text-align: left;
}

.qr-badge-org {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: #0b1120;
  line-height: 1.2;
}

.qr-badge-event-tag {
  font-size: 0.68rem;
  color: #64748b;
  margin-top: 2px;
}

.qr-badge-verified {
  background: rgba(6, 182, 212, 0.12);
  color: #0284c7;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}

.qr-white-enclosure {
  background: #ffffff;
  padding: 10px;
  border-radius: 16px;
  border: 2px solid rgba(6, 182, 212, 0.2);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

#mobile-qr-frame {
  width: 190px;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#mobile-qr-frame canvas,
#mobile-qr-frame img {
  display: block !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 auto !important;
}

.qr-badge-attendee-meta {
  text-align: center;
  margin-top: 2px;
}

.qr-attendee-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.qr-attendee-role {
  font-size: 0.72rem;
  color: #475569;
  margin-top: 2px;
  font-weight: 500;
}

.qr-badge-payload-label {
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #334155;
  width: 100%;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.telemetry-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 6px var(--emerald);
  display: inline-block;
  animation: pulseEmerald 1.5s infinite;
}

/* High Brightness Mode */
body.max-bright-active {
  background: #ffffff !important;
}

body.max-bright-active .qr-fullscreen-card {
  box-shadow: 0 0 0 100vmax #ffffff !important;
  border: none !important;
}

/* ==================== TOP BAR USER & ACTION BUTTONS ==================== */
.top-bar-icon-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.top-bar-icon-btn:hover, .top-bar-icon-btn:active {
  background: rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.4);
  color: var(--cyan);
  transform: scale(1.04);
}

.top-bar-avatar-btn {
  background: transparent;
  border: none;
  position: relative;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-initials {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

.avatar-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  border: 1.5px solid var(--bg-nav);
  box-shadow: 0 0 6px var(--emerald);
}

/* ==================== SUITE MODAL BACKDROPS ==================== */
.suite-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 7, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.suite-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.suite-modal-card {
  background: #0d1527;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 35px rgba(6, 182, 212, 0.15);
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.suite-modal-backdrop.active .suite-modal-card {
  transform: translateY(0) scale(1);
}

.suite-modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.suite-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* ==================== TUTORIAL MODAL ==================== */
.tutorial-step-header {
  padding: 16px 18px 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tutorial-step-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border: 1px solid;
  flex-shrink: 0;
}

.tutorial-step-titles {
  flex: 1;
}

.tutorial-step-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 12px;
  border: 1px solid;
  margin-bottom: 4px;
}

.tutorial-step-main-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}

.tutorial-step-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.tutorial-step-body {
  padding: 14px 18px 10px;
}

.tutorial-headline {
  font-size: 0.88rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 6px;
  line-height: 1.35;
}

.tutorial-paragraph {
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.45;
  margin-bottom: 10px;
}

.tutorial-bullets-list {
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tutorial-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 0.76rem;
  color: #cbd5e1;
  line-height: 1.4;
}

.tutorial-bullet-item i {
  margin-top: 2px;
  font-size: 0.78rem;
  flex-shrink: 0;
}

.tutorial-tip-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.72rem;
  color: #fde68a;
  line-height: 1.35;
}

.tutorial-step-footer {
  padding: 12px 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tutorial-dots-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tutorial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.25s;
}

.tutorial-dot.active {
  width: 22px;
  border-radius: 10px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.tutorial-buttons-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-tutorial-nav {
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-tutorial-back {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.btn-tutorial-skip {
  background: transparent;
  border: none;
  color: var(--text-dim);
}

.btn-tutorial-skip:hover {
  color: var(--text-muted);
}

.btn-tutorial-next {
  background: linear-gradient(135deg, #06b6d4, #0284c7);
  border: none;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.35);
}

.btn-tutorial-next:hover {
  transform: scale(1.02);
}

/* ==================== APP SWITCHER MODAL ==================== */
.app-switcher-header {
  padding: 20px 20px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.app-switcher-header h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-switcher-header p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.app-switcher-grid {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 60vh;
  overflow-y: auto;
}

.app-switcher-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.app-switcher-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(6, 182, 212, 0.3);
  transform: translateY(-1px);
}

.app-switcher-card.current-app {
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.4);
}

.app-card-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.app-card-details {
  flex: 1;
  min-width: 0;
}

.app-card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-card-badge {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 10px;
  letter-spacing: 0.4px;
}

.badge-active {
  background: rgba(6, 182, 212, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(6, 182, 212, 0.4);
}

.badge-live {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-sso {
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.4);
}

.app-card-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-card-cat {
  font-size: 0.65rem;
  color: var(--text-dim);
  margin-top: 3px;
  display: block;
}

.launch-arrow {
  color: var(--text-dim);
  font-size: 0.82rem;
  margin-left: 4px;
}

.current-indicator {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--cyan);
  color: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  flex-shrink: 0;
}

/* ==================== SLIDE-OVER PROFILE DRAWER ==================== */
.suite-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 7, 18, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.suite-drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.suite-drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  background: #090e1c;
  border-left: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: -15px 0 45px rgba(0, 0, 0, 0.75);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  z-index: 2600;
  overflow-y: auto;
}

.suite-drawer-backdrop.active .suite-drawer-panel {
  transform: translateX(0);
}

.profile-drawer-header {
  padding: 24px 20px 18px;
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.08) 0%, rgba(9, 14, 28, 0) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-avatar-large {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
  position: relative;
  flex-shrink: 0;
}

.profile-status-ring {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--emerald);
  border: 2px solid #090e1c;
  box-shadow: 0 0 8px var(--emerald);
}

.profile-meta-main {
  flex: 1;
  min-width: 0;
}

.profile-display-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.profile-display-role {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.profile-sso-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 0.65rem;
  color: var(--cyan);
  font-weight: 600;
  margin-top: 6px;
}

.badge-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 6px var(--emerald);
}

.profile-drawer-body {
  padding: 16px 20px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.profile-info-section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 14px 16px;
}

.profile-section-title {
  font-size: 0.74rem;
  font-weight: 700;
  color: #f1f5f9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.profile-data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.76rem;
}

.profile-data-row:last-child {
  border-bottom: none;
}

.profile-data-label {
  color: var(--text-muted);
}

.profile-data-value {
  color: #f8fafc;
  font-weight: 600;
}

.profile-select-control {
  width: 100%;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px 12px;
  color: #fff;
  font-size: 0.78rem;
  font-family: inherit;
  outline: none;
}

.profile-select-control:focus {
  border-color: var(--cyan);
}

.btn-profile-action {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 10px 14px;
  color: #f1f5f9;
  font-size: 0.8rem;
  cursor: pointer;
  margin-bottom: 8px;
  transition: all 0.2s;
}

.btn-profile-action:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(6, 182, 212, 0.3);
}

.btn-profile-action span {
  flex: 1;
  text-align: left;
  margin-left: 10px;
}

.action-arrow {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.profile-signout-wrapper {
  margin-top: auto;
  padding-top: 10px;
}

.btn-profile-signout {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fda4af;
  border-radius: 12px;
  padding: 12px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-profile-signout:hover {
  background: rgba(244, 63, 94, 0.22);
  border-color: #f43f5e;
  color: #fff;
  box-shadow: 0 0 15px rgba(244, 63, 94, 0.3);
}

/* ==================== SIGN-IN / AUTH MODAL ==================== */
.signin-card-body {
  padding: 28px 24px 24px;
  text-align: center;
}

.signin-logo-img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1.5px solid var(--border-highlight);
  margin: 0 auto 14px;
  display: block;
}

.signin-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
}

.signin-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
  margin-bottom: 22px;
}

.btn-sso-login {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  border: none;
  border-radius: 12px;
  padding: 13px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.35);
  margin-bottom: 14px;
  transition: all 0.2s;
}

.btn-sso-login:hover {
  transform: scale(1.02);
  box-shadow: 0 0 25px rgba(249, 115, 22, 0.5);
}

.signin-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 16px 0;
}

.signin-divider::before, .signin-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.signin-divider span {
  padding: 0 10px;
}

.demo-account-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 14px;
  color: #f1f5f9;
  cursor: pointer;
  margin-bottom: 8px;
  transition: all 0.2s;
  text-align: left;
}

.demo-account-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(6, 182, 212, 0.4);
}

.demo-acc-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.demo-acc-info {
  flex: 1;
}

.demo-acc-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
}

.demo-acc-role {
  font-size: 0.68rem;
  color: var(--text-muted);
}
