/* ── 100% CONSISTENT LIVE 3D SMARTWATCH UNIT & TELEMETRY SIMULATOR ─────── */
.watch-explorer-window {
  position: relative;
  width: 100%;
  max-width: 580px;
  background: radial-gradient(circle at 50% 20%, rgba(35, 20, 8, 0.96) 0%, rgba(10, 6, 2, 0.99) 80%);
  border: 1.5px solid rgba(255, 152, 0, 0.45);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), 0 0 45px rgba(232, 123, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.watch-explorer-window:hover {
  border-color: rgba(255, 152, 0, 0.75);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.98), 0 0 60px rgba(255, 152, 0, 0.45);
}

/* ── HEADER ───────────────────────────────────────────────────────────── */
.explorer-header {
  padding: 1.1rem 1.5rem;
  background: linear-gradient(180deg, rgba(28, 16, 6, 0.98) 0%, rgba(14, 8, 3, 0.96) 100%);
  border-bottom: 1px solid rgba(255, 152, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.explorer-title-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.explorer-badge {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.3) 0%, rgba(232, 123, 0, 0.12) 100%);
  border: 1px solid rgba(255, 152, 0, 0.55);
  color: #FF9800;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 0 12px rgba(255, 152, 0, 0.25);
}

.explorer-subtitle {
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.live-telemetry-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 230, 118, 0.15);
  border: 1px solid rgba(0, 230, 118, 0.4);
  color: #00E676;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 14px;
}

.live-telemetry-pill .live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00E676;
  box-shadow: 0 0 8px #00E676;
  animation: telemetry-pulse 1.5s infinite alternate;
}

@keyframes telemetry-pulse {
  0% { opacity: 0.5; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1.3); }
}

/* ── STAGE: 3D GLASS SMARTWATCH UNIT ──────────────────────────────────── */
.watch-stage-3d {
  position: relative;
  width: 100%;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 50%, rgba(255, 152, 0, 0.16) 0%, rgba(18, 10, 3, 0.98) 70%, rgba(6, 4, 1, 1) 100%);
  perspective: 1000px;
  overflow: hidden;
}

.watch-stage-3d::before {
  content: '';
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) rotateX(75deg);
  width: 320px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 152, 0, 0.35) 0%, rgba(232, 123, 0, 0.1) 50%, transparent 80%);
  box-shadow: 0 0 60px rgba(255, 152, 0, 0.45);
  pointer-events: none;
}

/* CSS 3D Smartwatch Hardware Frame */
.smartwatch-hardware-unit {
  position: relative;
  width: 250px;
  height: 290px;
  background: linear-gradient(145deg, #1C1510 0%, #0C0805 100%);
  border: 4px solid #2B1D12;
  border-radius: 42px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 40px rgba(255, 152, 0, 0.25), inset 0 0 20px rgba(255, 152, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  will-change: transform;
}

/* Bezel Rim Accents */
.smartwatch-hardware-unit::before {
  content: 'HEATSHIELD';
  position: absolute;
  top: 10px;
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--orange-bright);
  text-shadow: 0 0 8px rgba(232, 123, 0, 0.5);
}

/* Strap Lug Cutouts */
.smartwatch-hardware-unit::after {
  content: '';
  position: absolute;
  bottom: 8px;
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 152, 0, 0.3);
}

/* 1.64" AMOLED Touchscreen Screen Glass */
.amoled-screen-glass {
  position: relative;
  width: 100%;
  height: 100%;
  background: #040302;
  border: 2px solid rgba(255, 152, 0, 0.35);
  border-radius: 28px;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.9);
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

/* AMOLED Screen Header */
.screen-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 700;
}

.screen-header-bar .watch-id {
  color: var(--orange-bright);
}

/* Vitals Metrics Grid inside AMOLED */
.screen-vitals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 6px 0;
}

.vital-metric-card {
  background: rgba(22, 13, 5, 0.85);
  border: 1px solid rgba(255, 152, 0, 0.25);
  border-radius: 10px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
}

.vital-val {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.1;
  transition: color 0.3s ease;
}

.vital-lbl {
  font-size: 0.62rem;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Live Heart Rate ECG Waveform SVG Graph */
.ecg-graph-box {
  width: 100%;
  height: 36px;
  background: rgba(10, 6, 2, 0.9);
  border: 1px solid rgba(255, 152, 0, 0.2);
  border-radius: 8px;
  padding: 4px;
  overflow: hidden;
  position: relative;
}

.ecg-path {
  fill: none;
  stroke: #00E676;
  stroke-width: 2;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: ecg-sweep 2.2s linear infinite;
  transition: stroke 0.3s ease;
}

@keyframes ecg-sweep {
  0% { stroke-dashoffset: 400; }
  100% { stroke-dashoffset: 0; }
}

/* Screen Status Banner */
.screen-status-banner {
  background: rgba(0, 230, 118, 0.2);
  border: 1px solid #00E676;
  color: #00E676;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 900;
  text-align: center;
  padding: 5px 0;
  border-radius: 8px;
  letter-spacing: 0.5px;
  transition: all 0.35s ease;
}

/* ── SENSOR HOVER HALOS ────────────────────────────────────────────────── */
.sensor-halo {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 20;
  cursor: pointer;
}

.halo-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 152, 0, 0.25);
  border: 2px solid #FF9800;
  box-shadow: 0 0 15px #FF9800;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.halo-dot::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FF9800;
  box-shadow: 0 0 8px #FF9800;
  animation: halo-pulse 1.6s infinite alternate;
}

@keyframes halo-pulse {
  0% { transform: scale(0.8); opacity: 0.7; }
  100% { transform: scale(1.3); opacity: 1; }
}

.sensor-halo:hover .halo-dot {
  transform: scale(1.3);
  background: #FF9800;
  border-color: #FFFFFF;
  box-shadow: 0 0 25px #FF9800;
}

.halo-tooltip {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(14, 8, 3, 0.96);
  border: 1px solid rgba(255, 152, 0, 0.8);
  color: #FF9800;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.9);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.sensor-halo:hover .halo-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── RISK LEVEL SIMULATOR BAR (4 TIER BUTTONS) ─────────────────────────── */
.simulator-control-bar {
  padding: 1rem 1.4rem;
  background: linear-gradient(180deg, rgba(20, 11, 4, 0.98) 0%, rgba(10, 6, 2, 0.99) 100%);
  border-top: 1px solid rgba(255, 152, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.simulator-label {
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.simulator-tier-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.tier-sim-btn {
  background: rgba(22, 13, 5, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 8px 4px;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tier-sim-btn:hover {
  transform: translateY(-2px);
}

.tier-sim-btn.tier-green.active {
  background: rgba(0, 230, 118, 0.2);
  border-color: #00E676;
  color: #00E676;
  box-shadow: 0 4px 15px rgba(0, 230, 118, 0.3);
}

.tier-sim-btn.tier-yellow.active {
  background: rgba(255, 214, 0, 0.2);
  border-color: #FFD600;
  color: #FFD600;
  box-shadow: 0 4px 15px rgba(255, 214, 0, 0.3);
}

.tier-sim-btn.tier-orange.active {
  background: rgba(255, 152, 0, 0.25);
  border-color: #FF9800;
  color: #FF9800;
  box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
}

.tier-sim-btn.tier-red.active {
  background: rgba(255, 61, 0, 0.3);
  border-color: #FF3D00;
  color: #FF3D00;
  box-shadow: 0 4px 20px rgba(255, 61, 0, 0.5);
  animation: alert-btn-pulse 1.2s infinite alternate;
}

@keyframes alert-btn-pulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.04); }
}

/* ── SENSOR SPEC DRAWER POPUP ─────────────────────────────────────────── */
.sensor-spec-drawer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(16, 9, 3, 0.98);
  border-top: 1.5px solid rgba(255, 152, 0, 0.5);
  padding: 1.1rem 1.4rem;
  z-index: 30;
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.95);
}

.sensor-spec-drawer.open {
  transform: translateY(0);
}

.drawer-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.drawer-sensor-title {
  color: #FF9800;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
}

.drawer-close-x {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.2s;
}

.drawer-close-x:hover {
  color: #FFFFFF;
}

.drawer-sensor-desc {
  color: var(--text-light);
  font-size: 0.8rem;
  line-height: 1.4;
  margin-bottom: 0.4rem;
}

.drawer-sensor-specs {
  color: #C2B0A0;
  font-size: 0.76rem;
  font-family: var(--font-body);
  line-height: 1.4;
  background: rgba(10, 6, 2, 0.6);
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 152, 0, 0.2);
}
