:root {
  --bg-deep: #0a0f1d;
  --bg-card: rgba(15, 23, 42, 0.78);
  --bg-card-dark: rgba(8, 14, 28, 0.88);
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-glow: rgba(56, 189, 248, 0.35);
  
  --primary: #0ea5e9;
  --primary-glow: #38bdf8;
  --accent-gold: #fbbf24;
  --accent-emerald: #10b981;
  --accent-purple: #a855f7;
  --accent-rose: #f43f5e;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-luxury: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 0 25px rgba(14, 165, 233, 0.15);
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-deep);
  color: var(--text-main);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* App Wrapper & Multi-Aspect Livestream Container */
#app-wrapper {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* TikTok 9:16 Portrait Mode */
#app-wrapper.aspect-9-16 {
  width: 56.25vh; /* 9:16 aspect ratio */
  max-width: 100vw;
  height: 100vh;
  margin: 0 auto;
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.9), 0 0 0 2px rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
}

/* 3D Canvas Layer */
#canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#clinic-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

#canvas-overlay-vignette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, transparent 60%, rgba(5, 9, 20, 0.65) 100%),
              linear-gradient(to bottom, rgba(5, 9, 20, 0.5) 0%, transparent 15%, transparent 80%, rgba(5, 9, 20, 0.8) 100%);
  z-index: 2;
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-luxury);
  border-radius: var(--radius-md);
}

.glass-panel-dark {
  background: var(--bg-card-dark);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
}

/* Top Header Bar */
#top-bar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(10, 15, 29, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
}

.header-left .clinic-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  font-size: 26px;
  color: var(--primary-glow);
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.5));
}

.clinic-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #ffffff 40%, var(--primary-glow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.clinic-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-ai {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

/* Step Progress Indicator */
.step-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.6);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
  transition: all 0.3s ease;
  cursor: pointer;
}

.step-item.active {
  opacity: 1;
}

.step-item.completed {
  opacity: 0.85;
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.step-item.active .step-num {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 12px var(--primary-glow);
}

.step-item.completed .step-num {
  background: var(--accent-emerald);
  color: #fff;
}

.step-info {
  display: flex;
  flex-direction: column;
}

.step-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
}

.step-room {
  font-size: 9px;
  color: var(--text-muted);
}

.step-divider {
  width: 14px;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
}

/* Header Right & Livestream Controls */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.live-status-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 5px 12px;
  border-radius: var(--radius-full);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
}

.live-dot.pulse {
  animation: live-pulse 1.5s infinite;
}

@keyframes live-pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.live-text {
  font-size: 11px;
  font-weight: 800;
  color: #f87171;
  letter-spacing: 0.5px;
}

.live-viewers {
  font-size: 11px;
  font-family: var(--font-mono);
  color: #fecaca;
  margin-left: 4px;
}

.btn-tool {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-tool:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--primary);
  color: #fff;
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #fff;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.35);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5);
}

/* Floating Room Banner */
.room-banner {
  position: absolute;
  top: 75px;
  left: 28px;
  z-index: 10;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
}

/* Active Agent HUD Card */
.agent-hud-card {
  position: absolute;
  top: 115px;
  left: 28px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  max-width: 320px;
  transition: all 0.3s ease;
}

.agent-avatar-wrap {
  position: relative;
  width: 48px;
  height: 48px;
}

.agent-avatar-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.agent-hud-info h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.agent-hud-info p {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.badge-status-online {
  font-size: 10px;
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

.badge-status-online i {
  font-size: 6px;
}

/* Main Dialogue & Choice-Based Box */
.dialogue-box {
  position: absolute;
  bottom: 24px;
  left: 28px;
  right: 360px; /* Leave room for livestream overlay */
  z-index: 10;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dialogue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.speaker-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--primary-glow);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.speaker-role-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(14, 165, 233, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-glow);
}

.btn-audio-speak {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-audio-speak:hover {
  background: rgba(56, 189, 248, 0.3);
  transform: translateY(-1px);
}

.btn-audio-speak.playing {
  background: rgba(16, 185, 129, 0.3);
  border-color: var(--accent-emerald);
}

/* Audio Waves animation */
.audio-waves {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.audio-waves span {
  width: 3px;
  background: var(--primary-glow);
  border-radius: 2px;
  height: 4px;
  transition: height 0.2s ease;
}

.btn-audio-speak.playing .audio-waves span:nth-child(1) { animation: wave 0.8s infinite 0.1s; background: var(--accent-emerald); }
.btn-audio-speak.playing .audio-waves span:nth-child(2) { animation: wave 0.8s infinite 0.3s; background: var(--accent-emerald); }
.btn-audio-speak.playing .audio-waves span:nth-child(3) { animation: wave 0.8s infinite 0.2s; background: var(--accent-emerald); }
.btn-audio-speak.playing .audio-waves span:nth-child(4) { animation: wave 0.8s infinite 0.4s; background: var(--accent-emerald); }

@keyframes wave {
  0%, 100% { height: 4px; }
  50% { height: 14px; }
}

.dialogue-content {
  background: rgba(0, 0, 0, 0.3);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
  min-height: 60px;
}

.dialogue-text {
  font-size: 15px;
  line-height: 1.6;
  color: #fff;
  font-weight: 400;
}

/* Choice Buttons Container (Step by step) */
.choices-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.choice-btn {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.choice-btn:hover {
  background: rgba(14, 165, 233, 0.2);
  border-color: var(--primary-glow);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.2);
}

.choice-key {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.choice-btn:hover .choice-key {
  background: var(--primary);
}

.choice-text {
  flex: 1;
  line-height: 1.4;
}

/* Livestream TikTok/YouTube Overlay */
.livestream-overlay {
  position: absolute;
  top: 75px;
  right: 24px;
  bottom: 24px;
  width: 310px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stream-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
}

.badge-red {
  color: #f87171;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-sub {
  font-size: 10px;
  color: var(--text-muted);
}

/* Viewer Live Poll Box */
.live-poll-box {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.poll-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-gold);
}

.poll-question {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

.poll-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.poll-bar-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.poll-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-muted);
}

.poll-bar-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.poll-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0ea5e9, #38bdf8);
  border-radius: 3px;
  width: 0%;
  transition: width 0.4s ease;
}

.poll-instruction {
  font-size: 10px;
  color: var(--accent-gold);
  text-align: center;
}

/* Chat box */
.stream-chat-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px;
  min-height: 180px;
  overflow: hidden;
}

.chat-header {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-list {
  flex: 1;
  overflow-y: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
}

.chat-msg {
  font-size: 11px;
  line-height: 1.35;
  animation: chat-fade-in 0.3s ease;
}

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

.chat-user {
  font-weight: 700;
  color: var(--primary-glow);
  margin-right: 4px;
}

.chat-badge {
  font-size: 9px;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(251, 191, 36, 0.2);
  color: var(--accent-gold);
  margin-right: 4px;
}

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

/* EMR Drawer (Sidebar) */
.emr-drawer {
  position: absolute;
  top: 0;
  right: -480px;
  width: 460px;
  height: 100%;
  z-index: 100;
  border-radius: 0;
  border-left: 1px solid var(--border-glass);
  background: rgba(10, 15, 29, 0.95);
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.emr-drawer.open {
  right: 0;
}

.emr-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.emr-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.emr-icon {
  font-size: 22px;
  color: var(--accent-emerald);
}

.emr-header h3 {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.emr-id {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.btn-icon-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 6px;
}

.btn-icon-close:hover {
  color: #fff;
}

.emr-content {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.emr-section h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary-glow);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.patient-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
}

.patient-grid .lbl {
  color: var(--text-muted);
}

.vitals-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.vital-badge {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.v-label {
  font-size: 10px;
  color: var(--text-muted);
}

.v-val {
  font-size: 16px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-emerald);
  margin: 2px 0;
}

.v-unit {
  font-size: 9px;
  color: var(--text-dim);
}

.symptoms-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.symptom-chip {
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.3);
  color: var(--primary-glow);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
}

.results-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 12px;
  line-height: 1.5;
}

.placeholder-text {
  color: var(--text-dim);
  font-style: italic;
}

/* Modal: Symptoms Picker */
.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 8, 18, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.modal-backdrop.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-dialog {
  width: 820px;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(14, 165, 233, 0.2);
}

.modal-header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-glass);
  flex-shrink: 0;
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.modal-icon {
  font-size: 26px;
  color: var(--primary-glow);
}

.modal-title-group h3 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.modal-title-group p {
  font-size: 12px;
  color: var(--text-muted);
}

.modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.patient-name-input-group {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
  flex-shrink: 0;
}

.patient-name-input-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.patient-name-input-group input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13px;
  font-family: var(--font-main);
  font-weight: 600;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-gold);
  flex-shrink: 0;
  margin: 0;
}

.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  flex-shrink: 0;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  user-select: none;
}

.tab-btn.active, .tab-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary-glow);
  box-shadow: 0 0 14px rgba(14, 165, 233, 0.4);
}

.symptoms-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  flex: 1;
  min-height: 120px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

/* Custom scrollbars for symptoms & modal */
.modal-body::-webkit-scrollbar,
.symptoms-cards-grid::-webkit-scrollbar,
.category-tabs::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.modal-body::-webkit-scrollbar-track,
.symptoms-cards-grid::-webkit-scrollbar-track,
.category-tabs::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb,
.symptoms-cards-grid::-webkit-scrollbar-thumb,
.category-tabs::-webkit-scrollbar-thumb {
  background: rgba(14, 165, 233, 0.45);
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover,
.symptoms-cards-grid::-webkit-scrollbar-thumb:hover,
.category-tabs::-webkit-scrollbar-thumb:hover {
  background: rgba(14, 165, 233, 0.8);
}

.symptom-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
  user-select: none;
}

.symptom-card:hover {
  background: rgba(14, 165, 233, 0.1);
  border-color: var(--primary-glow);
  transform: translateY(-2px);
}

.symptom-card.selected {
  background: rgba(14, 165, 233, 0.25);
  border-color: var(--primary-glow);
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.35);
}

.symptom-card h5 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
}

.symptom-card p {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

.modal-footer {
  padding: 12px 22px;
  border-top: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 10px;
}

.selected-summary {
  font-size: 13px;
  color: var(--text-muted);
}

/* ========================================================
   RESPONSIVE DESIGN: MOBILE LANDSCAPE & SHORT SCREENS (e.g. Android landscape 360px-420px height)
   ======================================================== */
@media (max-height: 640px) {
  .modal-dialog {
    width: 96vw !important;
    max-width: 96vw !important;
    max-height: 96vh !important;
    border-radius: 12px !important;
  }

  .modal-header {
    padding: 8px 16px !important;
  }

  .modal-icon {
    font-size: 20px !important;
  }

  .modal-title-group h3 {
    font-size: 13px !important;
    line-height: 1.2 !important;
  }

  .modal-title-group p {
    display: none !important; /* Hide subtitle to preserve vertical space */
  }

  .modal-body {
    padding: 8px 16px !important;
    gap: 8px !important;
  }

  .patient-name-input-group {
    padding: 4px 10px !important;
    gap: 8px !important;
  }

  .patient-name-input-group label {
    font-size: 11px !important;
  }

  .patient-name-input-group input {
    font-size: 12px !important;
  }

  .section-label {
    font-size: 11px !important;
  }

  .category-tabs {
    padding-bottom: 4px !important;
    gap: 6px !important;
  }

  .tab-btn {
    padding: 4px 10px !important;
    font-size: 11px !important;
  }

  .symptoms-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
    gap: 6px !important;
    min-height: 80px !important;
  }

  .symptom-card {
    padding: 8px 10px !important;
    gap: 3px !important;
  }

  .symptom-card h5 {
    font-size: 11px !important;
  }

  .symptom-card p {
    font-size: 10px !important;
    line-height: 1.3 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .modal-footer {
    padding: 6px 16px !important;
    gap: 6px !important;
  }

  .selected-summary {
    font-size: 11px !important;
  }

  .btn-primary-large {
    padding: 8px 14px !important;
    font-size: 11px !important;
  }

  .modal-footer .btn-tool {
    padding: 8px 12px !important;
    font-size: 11px !important;
  }
}

/* ========================================================
   RESPONSIVE DESIGN: MOBILE PORTRAIT SCREENS (<= 640px width)
   ======================================================== */
@media (max-width: 640px) {
  .modal-dialog {
    width: 95vw !important;
    max-width: 95vw !important;
    max-height: 92vh !important;
  }

  .modal-header {
    padding: 12px 14px !important;
  }

  .modal-title-group h3 {
    font-size: 13px !important;
  }

  .modal-title-group p {
    font-size: 11px !important;
  }

  .modal-body {
    padding: 12px 14px !important;
    gap: 10px !important;
  }

  .symptoms-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .modal-footer {
    padding: 10px 14px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }

  .modal-footer > div:last-child {
    width: 100% !important;
    display: flex !important;
    gap: 8px !important;
  }

  .modal-footer button {
    flex: 1 !important;
    justify-content: center !important;
    text-align: center !important;
  }
}

.highlight-text {
  color: var(--primary-glow);
}

.btn-primary-large {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #fff;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
}

.btn-primary-large:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-primary-large:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(14, 165, 233, 0.6);
}

/* Responsive adjustments for 9:16 Portrait (TikTok Mode) */
#app-wrapper.aspect-9-16 .step-info {
  display: none;
}

#app-wrapper.aspect-9-16 .dialogue-box {
  right: 28px;
  bottom: 220px;
}

#app-wrapper.aspect-9-16 .livestream-overlay {
  top: auto;
  bottom: 20px;
  left: 28px;
  right: 28px;
  width: auto;
  height: 190px;
}

#app-wrapper.aspect-9-16 .live-poll-box {
  display: none;
}

/* Auto-Stream & SFX Controls */
.btn-autostream.active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  border-color: #34d399 !important;
  color: #fff !important;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.6) !important;
  animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Auto-Stream Countdown Bar */
.autostream-timer-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-sm);
}

.timer-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
}

.timer-info b {
  color: var(--accent-gold);
}

.badge-auto {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.timer-track {
  height: 4px;
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
}

.timer-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #0ea5e9, #10b981);
}

/* Clinic & Doctor Real Banner in Livestream Overlay */
.stream-doctor-banner {
  padding: 10px 12px;
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  border: 1px solid rgba(251, 191, 36, 0.3);
  background: rgba(15, 23, 42, 0.9);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.clinic-brand-line {
  font-size: 10px;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.5px;
}

.doctor-hotline-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #fff;
}

.hotline-tag {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-family: var(--font-mono);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.address-line {
  font-size: 10px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Golden & Cyan Special Tool Buttons */
.btn-gold {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.3) 100%) !important;
  border-color: rgba(251, 191, 36, 0.5) !important;
  color: #fbbf24 !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25) !important;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #fff !important;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.5) !important;
}

.btn-ask-ai {
  background: rgba(14, 165, 233, 0.15) !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  color: #38bdf8 !important;
}

.btn-ask-ai:hover {
  background: rgba(14, 165, 233, 0.3) !important;
}

/* Chat Input Row in Livestream Overlay */
.chat-input-row {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  background: rgba(15, 23, 42, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.chat-input-row input {
  flex: 1;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 6px 10px;
  color: #fff;
  font-size: 11px;
  outline: none;
  font-family: inherit;
}

.chat-input-row input:focus {
  border-color: var(--primary-glow);
}

.btn-send-chat {
  background: var(--primary);
  border: none;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 11px;
  transition: all 0.2s ease;
}

.btn-send-chat:hover {
  background: var(--primary-glow);
}

/* Realtime Floating Stream Toast */
.stream-toast {
  position: absolute;
  top: 90px;
  left: 28px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border-left: 4px solid #10b981;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

.toast-icon i {
  font-size: 20px;
}

.toast-body b {
  color: #34d399;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.toast-body p {
  color: #f8fafc;
  font-size: 12px;
  margin-top: 2px;
}

.animate-slide-in {
  animation: slideInDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-out {
  animation: fadeOut 0.5s ease forwards;
}

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

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

/* Booking Form Elements */
.booking-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.form-group input, .form-group select, .form-group textarea, #fb-comment {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 8px 12px;
  color: #fff;
  font-size: 13px;
  outline: none;
  font-family: inherit;
  width: 100%;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus, #fb-comment:focus {
  border-color: var(--primary-glow);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.booking-alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

/* Doctor Ask AI Modal UI */
.suggest-questions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-dim);
}

.btn-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  border-radius: 99px;
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-chip:hover {
  background: rgba(14, 165, 233, 0.2);
  color: #38bdf8;
  border-color: #38bdf8;
}

.doctor-answer-box {
  margin-top: 15px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border-left: 3px solid #38bdf8;
  background: rgba(15, 23, 42, 0.85);
}

.answer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 12px;
}

.ans-doctor-text {
  font-size: 13px;
  line-height: 1.6;
  color: #f1f5f9;
}

/* Star Rating CSAT UI */
.star-rating {
  display: inline-flex;
  gap: 8px;
  font-size: 28px;
  cursor: pointer;
}

.star-rating i {
  color: #475569;
  transition: color 0.15s ease, transform 0.15s ease;
}

.star-rating i.active, .star-rating i:hover {
  color: #fbbf24;
  transform: scale(1.15);
}

/* --- 3D ROOM QUICK NAVIGATION BAR --- */
.room-nav-bar {
  position: absolute;
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 30px;
  z-index: 15;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.room-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  background: transparent;
  color: #94a3b8;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.room-nav-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.room-nav-btn.active {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

.room-nav-btn.btn-steth-action {
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
  margin-left: 6px;
}

.room-nav-btn.btn-steth-action:hover {
  background: rgba(14, 165, 233, 0.3);
  color: #ffffff;
}

/* 3D Tooltip */
.clinic-3d-tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.9);
  color: #38bdf8;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(56, 189, 248, 0.5);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 6px;
}

.clinic-3d-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- PATIENT VITAL MONITOR MODAL --- */
.monitor-screen-container {
  background: #000000;
  border: 3px solid #1e293b;
  border-radius: 12px;
  padding: 16px;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.9), 0 0 20px rgba(56, 189, 248, 0.2);
}

.monitor-screen-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #64748b;
  border-bottom: 1px solid #1e293b;
  padding-bottom: 8px;
}

.monitor-lead-info {
  display: flex;
  gap: 12px;
}

.monitor-lead-info .lead-tag {
  color: #22c55e;
  font-weight: 700;
}

.monitor-audio-indicator {
  color: #22c55e;
  display: flex;
  align-items: center;
  gap: 6px;
}

.monitor-waveforms {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.waveform-block {
  position: relative;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 6px;
  border: 1px solid #1e293b;
}

.waveform-block canvas {
  width: 100%;
  display: block;
}

.wave-label {
  position: absolute;
  top: 6px;
  left: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
}

.wave-label.green { color: #22c55e; }
.wave-label.cyan { color: #06b6d4; }

.monitor-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.vital-digit-card {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}

.vital-digit-card.green { border-color: rgba(34, 197, 94, 0.4); }
.vital-digit-card.cyan { border-color: rgba(6, 182, 212, 0.4); }
.vital-digit-card.orange { border-color: rgba(249, 115, 22, 0.4); }
.vital-digit-card.purple { border-color: rgba(168, 85, 247, 0.4); }
.vital-digit-card.gold { border-color: rgba(234, 179, 8, 0.4); }

.vital-label {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 4px;
}

.vital-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
}

.vital-digit-card.green .vital-val { color: #22c55e; }
.vital-digit-card.cyan .vital-val { color: #06b6d4; }
.vital-digit-card.orange .vital-val { color: #f97316; }
.vital-digit-card.purple .vital-val { color: #c084fc; }
.vital-digit-card.gold .vital-val { color: #fbbf24; }

.vital-val .unit {
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  margin-left: 2px;
}

.vital-range {
  font-size: 9px;
  color: #64748b;
  margin-top: 4px;
}

/* --- X-RAY & IMAGING LIGHTBOX MODAL --- */
.xray-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 14px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.xray-tool-group {
  display: flex;
  gap: 8px;
}

.xray-tool-btn {
  background: rgba(30, 41, 59, 0.8);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.xray-tool-btn:hover, .xray-tool-btn.active {
  background: #38bdf8;
  color: #0f172a;
  border-color: #38bdf8;
}

.xray-contrast-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #94a3b8;
}

.xray-contrast-wrap input[type=range] {
  accent-color: #38bdf8;
}

.xray-lightbox-frame {
  position: relative;
  background: #020617;
  border: 2px solid #334155;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.95);
}

.xray-lightbox-frame canvas {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  display: block;
}

.xray-annotation-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.xray-callout-bubble {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translate(-10px, -10px);
}

.callout-dot {
  width: 14px;
  height: 14px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 10px #ef4444;
}

.callout-text {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid #ef4444;
  border-radius: 6px;
  padding: 6px 10px;
  color: #ffffff;
  font-size: 11px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.callout-text b {
  color: #f87171;
  display: block;
}

.callout-text p {
  color: #cbd5e1;
  font-size: 10px;
  margin-top: 2px;
}

.xray-doctor-notes {
  margin-top: 12px;
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.85);
  border-left: 3px solid #38bdf8;
  border-radius: 6px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.notes-doctor-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  flex-shrink: 0;
}

/* --- VIRTUAL STETHOSCOPE MODAL --- */
.steth-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.steth-torso-map {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.steth-torso-body {
  position: relative;
  width: 240px;
  height: 300px;
  background: radial-gradient(circle at 50% 40%, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.95) 70%);
  border: 2px solid rgba(56, 189, 248, 0.2);
  border-radius: 120px 120px 60px 60px;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.9);
}

.steth-spot {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  border: 2px solid #38bdf8;
  color: #38bdf8;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: all 0.2s ease;
}

.steth-spot.lung {
  border-color: #06b6d4;
  color: #06b6d4;
}

.steth-spot:hover, .steth-spot.active {
  background: #38bdf8;
  color: #0f172a;
  box-shadow: 0 0 16px #38bdf8;
  transform: translate(-50%, -50%) scale(1.15);
}

.steth-spot.lung.active {
  background: #06b6d4;
  color: #0f172a;
  box-shadow: 0 0 16px #06b6d4;
}

.steth-hint-text {
  font-size: 11px;
  color: #64748b;
  margin-top: 14px;
  text-align: center;
}

.steth-info-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.steth-current-point-card {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 16px;
}

.point-badge-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.point-tag {
  font-size: 13px;
  font-weight: 700;
  color: #38bdf8;
}

.steth-live-audio-dot {
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
}

.phonocardiogram-box {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 6px;
  padding: 8px;
  margin-bottom: 12px;
}

.phonocardiogram-box canvas {
  width: 100%;
  display: block;
}

.sound-characteristics {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.char-row {
  display: flex;
  flex-direction: column;
  font-size: 11px;
}

.char-label {
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 2px;
}

.char-val {
  color: #cbd5e1;
}

.char-val.highlight {
  color: #22c55e;
  font-weight: 600;
}

.steth-mode-buttons {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.btn-steth-mode {
  flex: 1;
  background: rgba(30, 41, 59, 0.8);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-steth-mode:hover, .btn-steth-mode.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

/* --- MOBILE MENU & QUICK ACTIONS --- */
.mobile-step-pill {
  display: none;
}

.btn-mobile-only {
  display: none;
}

.menu-item-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 14px;
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  user-select: none;
}

.menu-item-btn:hover, .menu-item-btn:active {
  background: rgba(14, 165, 233, 0.18);
  border-color: #38bdf8;
  transform: translateY(-1px);
}

.menu-item-btn i:first-child {
  font-size: 18px;
  color: #38bdf8;
  width: 24px;
  text-align: center;
}

.menu-item-btn.gold i:first-child {
  color: #fbbf24;
}

.menu-item-btn div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.menu-item-btn div b {
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
}

.menu-item-btn div span {
  font-size: 11px;
  color: #94a3b8;
}

.menu-item-btn .arrow {
  font-size: 12px;
  color: #64748b;
}

.menu-item-btn.small {
  padding: 10px 12px;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  gap: 8px;
}

.menu-item-btn.small i {
  font-size: 14px;
  width: auto;
}

/* ========================================================
   COMPREHENSIVE MOBILE REDESIGN: PORTRAIT (9:16) & PHONES (<= 768px)
   ======================================================== */
@media (max-width: 768px) and (orientation: portrait), (max-width: 500px) {
  body {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
  }

  #app-wrapper, #app-wrapper.aspect-9-16, #app-wrapper.aspect-16-9 {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    position: relative;
    overflow: hidden;
  }

  /* 1. Header Bar Mobile */
  #top-bar {
    padding: max(6px, env(safe-area-inset-top, 6px)) 10px 6px 10px !important;
    min-height: 44px;
    height: auto;
    gap: 8px;
    background: rgba(8, 14, 28, 0.94) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(56, 189, 248, 0.2) !important;
  }

  .header-left .clinic-logo {
    gap: 8px;
  }

  .logo-icon {
    font-size: 20px !important;
  }

  .clinic-title {
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }

  .clinic-subtitle {
    display: none !important;
  }

  .step-nav {
    display: none !important;
  }

  .mobile-step-pill {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    background: rgba(14, 165, 233, 0.18);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    padding: 3px 8px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
  }

  .mobile-step-pill .badge-dot {
    width: 6px;
    height: 6px;
    background: #38bdf8;
    border-radius: 50%;
    box-shadow: 0 0 6px #38bdf8;
  }

  .header-right .live-status-pill,
  .header-right #btn-toggle-autostream,
  .header-right #btn-toggle-sfx,
  .header-right #btn-open-settings,
  .header-right #btn-toggle-cinematic,
  .header-right #btn-open-booking,
  .header-right a[href="admin.html"],
  .header-right a[href="overlay.html"],
  .header-right #btn-toggle-aspect,
  .header-right #btn-new-patient {
    display: none !important;
  }

  .header-right {
    display: flex !important;
    align-items: center;
    gap: 6px !important;
  }

  .header-right #btn-toggle-emr {
    display: inline-flex !important;
    padding: 6px 10px !important;
    font-size: 11px !important;
    border-radius: 8px !important;
    background: rgba(56, 189, 248, 0.15) !important;
    border-color: rgba(56, 189, 248, 0.4) !important;
    color: #38bdf8 !important;
  }

  .btn-mobile-only {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 6px 10px !important;
    font-size: 12px !important;
    border-radius: 8px !important;
    min-height: 32px;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #f8fafc !important;
    gap: 4px;
  }

  #btn-toggle-mobile-chat {
    color: #38bdf8 !important;
    border-color: rgba(56, 189, 248, 0.3) !important;
  }

  /* 2. Room Nav Bar Floating */
  .room-nav-bar {
    position: absolute !important;
    top: 48px !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    width: 100% !important;
    padding: 6px 10px !important;
    gap: 6px !important;
    border-radius: 0 !important;
    background: rgba(6, 11, 22, 0.88) !important;
    backdrop-filter: blur(14px) !important;
    border-top: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    z-index: 12 !important;
  }

  .room-nav-bar::-webkit-scrollbar {
    display: none;
  }

  .room-nav-btn {
    padding: 5px 10px !important;
    font-size: 11px !important;
    border-radius: 9999px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    min-height: 30px !important;
  }

  .room-banner, .agent-hud-card {
    display: none !important;
  }

  /* 3. Dialogue Box - Bottom Sheet */
  .dialogue-box {
    position: absolute !important;
    left: 8px !important;
    right: 8px !important;
    bottom: max(8px, env(safe-area-inset-bottom, 8px)) !important;
    width: auto !important;
    max-height: 48vh !important;
    max-height: 48dvh !important;
    padding: 12px 14px !important;
    border-radius: 18px !important;
    background: rgba(8, 14, 28, 0.94) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(14, 165, 233, 0.2) !important;
    z-index: 25 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  .dialogue-header {
    padding-bottom: 6px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  .speaker-tag {
    font-size: 12px !important;
    gap: 6px !important;
  }

  .speaker-role-icon {
    width: 22px !important;
    height: 22px !important;
    font-size: 11px !important;
  }

  .dialogue-actions {
    gap: 6px !important;
  }

  .btn-audio-speak {
    padding: 4px 8px !important;
    font-size: 11px !important;
    border-radius: 6px !important;
  }

  .audio-btn-text {
    font-size: 10px !important;
  }

  .dialogue-content {
    max-height: 16vh !important;
    overflow-y: auto !important;
  }

  .dialogue-text {
    font-size: 13px !important;
    line-height: 1.45 !important;
  }

  .choices-container {
    max-height: 22vh !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    padding-right: 2px !important;
  }

  .choice-btn {
    padding: 10px 12px !important;
    min-height: 44px !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .choice-btn:active {
    background: rgba(14, 165, 233, 0.2) !important;
    border-color: #38bdf8 !important;
    transform: scale(0.98);
  }

  .choice-num {
    width: 22px !important;
    height: 22px !important;
    font-size: 11px !important;
    border-radius: 6px !important;
    flex-shrink: 0 !important;
  }

  .choice-text {
    font-size: 12px !important;
    line-height: 1.35 !important;
  }

  /* 4. Livestream Overlay - TikTok-style Floating Ticker */
  .livestream-overlay {
    position: absolute !important;
    left: 8px !important;
    right: auto !important;
    bottom: calc(48vh + 16px) !important;
    bottom: calc(48dvh + 16px) !important;
    width: 260px !important;
    max-width: 78vw !important;
    top: auto !important;
    height: auto !important;
    max-height: 150px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    z-index: 15 !important;
    pointer-events: none !important;
    padding: 0 !important;
    transition: opacity 0.3s ease;
  }

  .livestream-overlay.mobile-chat-closed {
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .stream-doctor-banner {
    display: none !important;
  }

  .stream-badge {
    display: none !important;
  }

  .live-poll-box {
    display: none !important;
  }

  .stream-chat-box {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
  }

  .chat-header {
    display: none !important;
  }

  .chat-list {
    height: auto !important;
    max-height: 130px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    gap: 4px !important;
  }

  .chat-msg {
    background: rgba(8, 14, 28, 0.76) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    padding: 4px 10px !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
    width: fit-content !important;
    max-width: 100% !important;
  }

  .chat-input-row {
    display: none !important;
  }

  /* 5. EMR Drawer - Full Swipe-up Sheet on Mobile */
  .emr-drawer {
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-height: 85vh !important;
    max-height: 85dvh !important;
    border-radius: 20px 20px 0 0 !important;
    transform: translateY(100%) !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 50 !important;
  }

  .emr-drawer.open {
    transform: translateY(0) !important;
  }
}

/* ========================================================
   COMPREHENSIVE MOBILE REDESIGN: LANDSCAPE (16:9) (height <= 550px)
   ======================================================== */
@media (max-height: 550px) and (orientation: landscape), (max-height: 500px) {
  body {
    overflow: hidden;
  }

  #app-wrapper {
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
  }

  #top-bar {
    padding: max(4px, env(safe-area-inset-top, 4px)) 12px 4px 12px !important;
    min-height: 38px !important;
    height: 38px !important;
  }

  .clinic-title {
    font-size: 12px !important;
  }

  .clinic-subtitle {
    display: none !important;
  }

  .step-nav {
    display: none !important;
  }

  .mobile-step-pill {
    display: inline-flex !important;
    padding: 2px 8px !important;
    font-size: 10px !important;
  }

  .header-right .btn-tool {
    padding: 4px 8px !important;
    font-size: 11px !important;
  }

  .room-nav-bar {
    top: 42px !important;
    left: 10px !important;
    transform: none !important;
    padding: 3px 8px !important;
    gap: 4px !important;
    max-width: 60% !important;
    overflow-x: auto !important;
  }

  .room-nav-btn {
    padding: 3px 8px !important;
    font-size: 10px !important;
  }

  .room-banner, .agent-hud-card {
    display: none !important;
  }

  .dialogue-box {
    left: 10px !important;
    bottom: max(6px, env(safe-area-inset-bottom, 6px)) !important;
    right: auto !important;
    width: 60% !important;
    max-height: 54vh !important;
    padding: 8px 12px !important;
    border-radius: 12px !important;
    gap: 6px !important;
    z-index: 25 !important;
  }

  .dialogue-text {
    font-size: 12px !important;
    line-height: 1.35 !important;
  }

  .choices-container {
    max-height: 24vh !important;
    gap: 4px !important;
  }

  .choice-btn {
    padding: 6px 10px !important;
    min-height: 36px !important;
  }

  .choice-text {
    font-size: 11px !important;
  }

  .livestream-overlay {
    top: 42px !important;
    right: 10px !important;
    bottom: max(6px, env(safe-area-inset-bottom, 6px)) !important;
    width: 36% !important;
    z-index: 15 !important;
    padding: 6px !important;
  }

  .stream-doctor-banner {
    padding: 4px 8px !important;
    font-size: 10px !important;
  }

  .stream-doctor-banner .address-line {
    display: none !important;
  }

  .live-poll-box {
    padding: 4px 8px !important;
    margin-bottom: 4px !important;
  }

  .poll-title {
    font-size: 10px !important;
  }

  .poll-instruction {
    display: none !important;
  }

  .chat-list {
    height: 90px !important;
  }

  .chat-input-row input {
    font-size: 11px !important;
    padding: 4px 8px !important;
  }
}

/* ========================================================
   TIKTOK & FACEBOOK LIVE MOBILE SPECIFIC ENHANCEMENTS
   ======================================================== */

/* 1. Floating Reactions (TikTok & FB Live Animated Hearts) */
.floating-hearts-container {
  position: absolute;
  right: 14px;
  bottom: 84px;
  width: 70px;
  height: 380px;
  pointer-events: none;
  z-index: 38;
  overflow: visible;
}

.floating-reaction-heart {
  position: absolute;
  bottom: 0;
  left: 50%;
  pointer-events: none;
  user-select: none;
  animation: float-up-heart 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
  transform-origin: center bottom;
}

@keyframes float-up-heart {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.4) rotate(0deg);
  }
  15% {
    opacity: 1;
    transform: translateY(-40px) scale(1.25) rotate(calc(var(--rot) * 0.4));
  }
  75% {
    opacity: 0.95;
    transform: translate(var(--drift-x), -240px) scale(1) rotate(var(--rot));
  }
  100% {
    opacity: 0;
    transform: translate(calc(var(--drift-x) * 1.5), -360px) scale(0.7) rotate(calc(var(--rot) * 1.6));
  }
}

.mobile-like-btn {
  position: absolute;
  right: 14px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.22);
  border: 1.5px solid rgba(239, 68, 68, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ef4444;
  cursor: pointer;
  z-index: 40;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.35);
  user-select: none;
}

.mobile-like-btn:hover {
  background: rgba(239, 68, 68, 0.35);
  transform: scale(1.08);
}

.mobile-like-btn:active {
  transform: scale(0.88);
  background: rgba(239, 68, 68, 0.5);
}

.mobile-like-btn i {
  font-size: 20px;
  animation: heartbeat-pulse 1.4s infinite;
}

.mobile-like-btn span {
  font-size: 9.5px;
  font-weight: 800;
  color: #fff;
  margin-top: 2px;
  font-family: 'JetBrains Mono', monospace;
}

@keyframes heartbeat-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.22); filter: drop-shadow(0 0 6px #ef4444); }
}

/* 2. TikTok Pinned Doctor Anchor Card */
.mobile-doctor-pinned-card {
  display: none;
}

@media (max-width: 768px) and (orientation: portrait), (max-width: 500px), (max-height: 550px) {
  .mobile-doctor-pinned-card {
    display: flex;
    align-items: center;
    gap: 10px;
    position: absolute;
    top: 92px;
    left: 8px;
    right: 8px;
    padding: 8px 12px;
    background: rgba(8, 14, 28, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(251, 191, 36, 0.45);
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7), 0 0 16px rgba(251, 191, 36, 0.15);
    z-index: 22;
    animation: slide-down-pinned 0.4s ease-out;
  }

  @keyframes slide-down-pinned {
    from {
      opacity: 0;
      transform: translateY(-12px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .pinned-doctor-avatar {
    position: relative;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
  }

  .pinned-doctor-avatar .live-dot-green {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: #10b981;
    border: 2px solid #080e1c;
    border-radius: 50%;
    box-shadow: 0 0 6px #10b981;
  }

  .pinned-doctor-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

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

  .pinned-name {
    font-size: 12px;
    font-weight: 800;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.3px;
  }

  .pinned-badge {
    background: rgba(16, 185, 129, 0.22);
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: #34d399;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 999px;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .pinned-desc {
    font-size: 10.5px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .pinned-doctor-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }

  .btn-pinned-call {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: rgba(251, 191, 36, 0.18);
    border: 1px solid rgba(251, 191, 36, 0.6);
    border-radius: 8px;
    color: #fbbf24;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
  }

  .btn-pinned-call:active {
    transform: scale(0.95);
    background: rgba(251, 191, 36, 0.35);
  }

  .btn-pinned-book {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border: 1px solid #38bdf8;
    border-radius: 8px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .btn-pinned-book:active {
    transform: scale(0.95);
  }
}

/* 3. Live Safezone Visualizer Guide for OBS & Streamers */
.live-safezone-guide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 99;
  display: flex;
  flex-direction: column;
}

.live-safezone-guide.hidden {
  display: none !important;
}

.safezone-top-area {
  height: 110px;
  background: rgba(239, 68, 68, 0.18);
  border-bottom: 2px dashed rgba(239, 68, 68, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fca5a5;
  text-align: center;
  padding: 0 16px;
  letter-spacing: 0.5px;
}

.safezone-center-golden {
  flex: 1;
  border-left: 2px dashed rgba(16, 185, 129, 0.5);
  border-right: 2px dashed rgba(16, 185, 129, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background: rgba(16, 185, 129, 0.04);
}

.golden-tag {
  background: rgba(16, 185, 129, 0.9);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.5px;
}

.safezone-right-rail {
  position: absolute;
  top: 110px;
  right: 0;
  bottom: 280px;
  width: 65px;
  background: rgba(245, 158, 11, 0.16);
  border-left: 2px dashed rgba(245, 158, 11, 0.7);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fde68a;
  letter-spacing: 1px;
}

.safezone-bottom-area {
  height: 280px;
  background: rgba(239, 68, 68, 0.18);
  border-top: 2px dashed rgba(239, 68, 68, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fca5a5;
  text-align: center;
  padding: 0 16px;
  letter-spacing: 0.5px;
}


