/* ===== MOBILE EXCLUSIVE STYLES ===== */
.glass-panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ===== MOBILE LAYER PANEL ===== */
.mobile-layer-panel {
  position: fixed;
  right: 16px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 152px);
  z-index: 45;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.02);
  padding: 16px;
  width: 220px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.92);
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              visibility 0.4s;
  pointer-events: none;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.mobile-layer-panel::-webkit-scrollbar {
  display: none;
}

.mobile-layer-panel.open {
  max-height: 480px;
  overflow-y: auto;
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.mobile-layer-panel .mlp-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #64748b;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mobile-layer-panel .mlp-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
  transition: background 0.25s ease, color 0.25s ease, transform 0.15s ease;
  cursor: pointer;
  position: relative;
  padding-right: 56px; /* Space for toggle switch */
}

.mobile-layer-panel .mlp-btn:active {
  transform: scale(0.97);
}

/* Custom CSS Toggle Switch Track */
.mobile-layer-panel .mlp-btn::before {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 18px;
  border-radius: 99px;
  background: #e2e8f0;
  transition: background 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

/* Custom CSS Toggle Switch Thumb */
.mobile-layer-panel .mlp-btn::after {
  content: '';
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background 0.25s ease;
  pointer-events: none;
}

.mobile-layer-panel .mlp-btn:hover {
  background: #f1f5f9;
}

/* Active State: Keep background & text neutral, toggle changes to active color */
.mobile-layer-panel .mlp-btn.active {
  background: transparent;
  color: #1f2937;
}

.mobile-layer-panel .mlp-btn.active::before {
  background: #006857;
}

.mobile-layer-panel .mlp-btn.active::after {
  transform: translate(12px, -50%);
  background: white;
}

/* Exclude PE Engine AI from Toggle Switch styling (Becomes a literal button) */
.mobile-layer-panel #mbtn-pe {
  padding-right: 12px; /* Normal padding since there's no switch */
}

.mobile-layer-panel #mbtn-pe::before,
.mobile-layer-panel #mbtn-pe::after {
  display: none !important;
}

/* PE Engine AI active state (turns green) */
.mobile-layer-panel #mbtn-pe.active {
  background: #006857 !important;
  color: white !important;
}

.mobile-layer-panel #mbtn-pe.active .material-symbols-outlined {
  color: white !important;
}

.mobile-layer-panel .mlp-btn .material-symbols-outlined {
  font-size: 20px;
  color: #64748b;
  transition: color 0.2s;
}

.mobile-layer-panel .mlp-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 10px 0;
}

.mobile-layer-panel .mlp-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 4px;
}

.mobile-layer-panel .mlp-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.mobile-layer-panel .mlp-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255,255,255,1), 0 2px 4px rgba(0,0,0,0.1);
}

/* ===== MOBILE COLLAPSIBLE DRAWER ===== */
.mobile-drawer-collapse {
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  overflow: hidden;
}

.mobile-drawer-collapse.collapsed {
  max-height: 0 !important;
  opacity: 0;
}

.mobile-drawer-collapse.expanded {
  opacity: 1;
}

.drawer-toggle-icon {
  transition: transform 0.3s ease;
}

.drawer-toggle-icon.rotated {
  transform: rotate(180deg);
}

/* ===== SEARCH SYSTEM — Google Maps Style ===== */
/* Clear button */
.search-clear-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #94a3b8;
  transition: all 0.2s;
}

.search-clear-btn:hover {
  background: #f1f5f9;
  color: #475569;
}

.search-clear-btn.visible {
  display: flex;
}

/* Results dropdown */
.search-results {
  position: absolute;
  top: calc(100% + 4px);
  left: -8px;
  right: -8px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.04);
  max-height: 440px;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 100;
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-results.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.search-results::-webkit-scrollbar {
  width: 6px;
}

.search-results::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.search-results::-webkit-scrollbar-track {
  background: transparent;
}

/* Category chips */
.search-categories {
  padding: 10px 14px 6px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-bottom: 1px solid #f1f5f9;
}

.search-cat-chip {
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  background: #f1f5f9;
  color: #475569;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}

.search-cat-chip:hover {
  background: #e8f5e9;
  color: #006857;
  border-color: #a7f3d0;
}

.search-cat-chip .material-symbols-outlined {
  font-size: 14px;
}

/* Section headers */
.search-section-header {
  padding: 8px 16px 4px;
  font-size: 10px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Result items */
.search-result-item {
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.15s ease;
  border-left: 3px solid transparent;
  margin: 0 4px;
  border-radius: 8px;
}

.search-result-item:hover,
.search-result-item.keyboard-active {
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border-left-color: #006857;
}

.search-result-item .result-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.search-result-item .result-icon.icon-city {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.search-result-item .result-icon.icon-city span {
  color: #2563eb;
}

.search-result-item .result-icon.icon-place {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
}

.search-result-item .result-icon.icon-place span {
  color: #006857;
}

.search-result-item .result-icon.icon-road {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.search-result-item .result-icon.icon-road span {
  color: #b45309;
}

.search-result-item .result-icon.icon-building {
  background: linear-gradient(135deg, #fce7f3, #fbcfe8);
}

.search-result-item .result-icon.icon-building span {
  color: #be185d;
}

.search-result-item .result-icon.icon-nature {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
}

.search-result-item .result-icon.icon-nature span {
  color: #065f46;
}

.search-result-item .result-icon.icon-default {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
}

.search-result-item .result-icon.icon-default span {
  color: #006857;
}

.search-result-item .result-icon span {
  font-size: 20px;
}

.search-result-item .result-name {
  font-weight: 700;
  font-size: 13px;
  color: #1a1c1e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-item .result-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.search-result-item .result-type {
  font-size: 10px;
  font-weight: 700;
  color: #006857;
  background: #e8f5e9;
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.search-result-item .result-address {
  font-size: 11px;
  color: #6d7a75;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-item .result-distance {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 1px;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* No result / loading / error */
.search-no-result {
  padding: 28px 20px;
  text-align: center;
  color: #6d7a75;
  font-size: 13px;
}

.search-no-result .material-symbols-outlined {
  font-size: 40px;
  color: #cbd5e1;
  display: block;
  margin: 0 auto 10px;
}

.search-no-result p {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
}

.search-loading {
  padding: 20px;
  text-align: center;
  color: #006857;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Keyboard shortcut hint */
.search-hint {
  padding: 8px 14px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: #94a3b8;
}

.search-hint kbd {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
}

/* ===== WEATHER INFO CARD (shown after search) ===== */
.weather-info-card {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
  padding: 20px 24px;
  z-index: 60;
  opacity: 0;
  transform: translate(-50%, 20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.weather-info-card.visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: all;
}

.weather-info-card .wic-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.weather-info-card .wic-location {
  display: flex;
  align-items: center;
  gap: 10px;
}

.weather-info-card .wic-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.weather-info-card .wic-icon .material-symbols-outlined {
  font-size: 24px;
  color: white;
  font-variation-settings: 'FILL' 1;
}

.weather-info-card .wic-name {
  font-weight: 800;
  font-size: 15px;
  color: #1a1c1e;
}

.weather-info-card .wic-condition {
  font-size: 12px;
  font-weight: 600;
}

.weather-info-card .wic-close {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: none;
  background: #f1f5f9;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: all 0.2s;
}

.weather-info-card .wic-close:hover {
  background: #e2e8f0;
}

.weather-info-card .wic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.weather-info-card .wic-stat {
  background: #f8fafc;
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.weather-info-card .wic-stat-icon {
  font-size: 20px;
}

.weather-info-card .wic-stat-label {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.weather-info-card .wic-stat-value {
  font-size: 16px;
  font-weight: 800;
  color: #1a1c1e;
}

.weather-info-card .wic-coords {
  margin-top: 10px;
  font-size: 11px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ===== COMMUNITY PAGE ===== */
#community-overlay {
  position: fixed;
  inset: 0;
  z-index: 9400;
  background: #f0fdf9;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

#community-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.comm-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0, 104, 87, 0.07), 0 1px 4px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.7);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.comm-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 104, 87, 0.12);
}

.comm-feed-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: comm-fade-in 0.4s ease both;
}

.comm-feed-card:hover {
  transform: scale(1.01);
  box-shadow: 0 6px 24px rgba(0, 104, 87, 0.1);
}

.comm-progress-bar {
  height: 7px;
  border-radius: 99px;
  background: #e8f5e9;
  overflow: hidden;
}

.comm-progress-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #006857, #00a389);
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  animation: comm-bar-grow 1.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.comm-progress-weekly {
  background: linear-gradient(90deg, #f59e0b, #fb923c);
}

.badge-glow-gold {
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.55);
}

.badge-glow-silver {
  box-shadow: 0 0 16px rgba(148, 163, 184, 0.55);
}

.badge-glow-bronze {
  box-shadow: 0 0 16px rgba(180, 83, 9, 0.45);
}

.comm-badge-item {
  position: relative;
}

.comm-badge-item .badge-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1a1c1e;
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.comm-badge-item:hover .badge-tooltip {
  opacity: 1;
}

.comm-action-btn {
  padding: 9px 18px;
  border-radius: 99px;
  border: none;
  background: linear-gradient(135deg, #006857, #00a389);
  color: white;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 3px 12px rgba(0, 104, 87, 0.3);
}

.comm-action-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 104, 87, 0.4);
}

#community-heatmap-map {
  height: 260px;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  z-index: 1;
}

@media (max-width: 767px) {
  #community-heatmap-map {
    height: 220px;
  }
}

.comm-rank-gold {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #b45309;
}

.comm-rank-silver {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  color: #475569;
}

.comm-rank-bronze {
  background: linear-gradient(135deg, #fef0e6, #fed7aa);
  color: #92400e;
}

/* ===== STAYSAFE PAGE ===== */
#staysafe-overlay {
  position: fixed;
  inset: 0;
  z-index: 9400;
  background: #f0f9ff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

#staysafe-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.ss-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0, 104, 87, 0.07), 0 1px 4px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.7);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ss-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 104, 87, 0.12);
}

/* Risk gradient cards */
.ss-risk-aman {
  background: linear-gradient(135deg, #006857 0%, #00a389 55%, #059669 100%);
}

.ss-risk-waspada {
  background: linear-gradient(135deg, #b45309 0%, #d97706 55%, #f59e0b 100%);
}

.ss-risk-tinggi {
  background: linear-gradient(135deg, #b61722 0%, #da3437 55%, #f97316 100%);
}

/* Checklist item */
.ss-check-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.65);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.ss-check-item:hover {
  background: #f0fdf4;
  border-color: #a7f3d0;
}

.ss-check-item.checked {
  background: #e8f5e9;
  border-color: #86efac;
}

.ss-check-box {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  background: white;
}

.ss-check-item.checked .ss-check-box {
  background: #006857;
  border-color: #006857;
}

.ss-check-box-tick {
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  color: white;
  font-size: 14px;
}

.ss-check-item.checked .ss-check-box-tick {
  opacity: 1;
  transform: scale(1);
}

/* AI card glow */
.ss-ai-card {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #4338ca 80%, #2d5bff 100%);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.ss-ai-card::after {
  content: '';
  position: absolute;
  top: -40%;
  left: -40%;
  width: 180%;
  height: 180%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 65%);
  animation: ss-glow-pulse 5s infinite alternate;
  pointer-events: none;
}

/* Safety score bar */
.ss-score-bar {
  height: 10px;
  border-radius: 99px;
  background: #e8f5e9;
  overflow: hidden;
}

.ss-score-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #006857, #00a389, #059669);
  transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ss-tip-animate {
  animation: ss-tip-fade 5s ease-in-out infinite;
}

/* ===== MOVEMENT GENERATOR STYLES ===== */
.movement-section {
  background: linear-gradient(145deg, #ffffff, #f8fafb);
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(0, 104, 87, 0.08), 0 1px 3px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.9);
  overflow: hidden;
  position: relative;
}

.movement-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 104, 87, 0.03) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.movement-preview-area {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.movement-editor-view {
  position: relative;
  width: 100%;
  aspect-ratio: 1485 / 2640;
  border-radius: 24px;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  box-shadow: 0 20px 50px rgba(0, 104, 87, 0.15), 0 0 0 1px rgba(0, 104, 87, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.movement-editor-view:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 30px 60px rgba(0, 104, 87, 0.2);
}

.movement-editor-view:active {
  cursor: grabbing;
}

.movement-glow {
  position: absolute;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(0, 163, 137, 0.2) 0%, transparent 70%);
  filter: blur(40px);
  opacity: 0.4;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: movement-pulse-glow 4s ease-in-out infinite alternate;
}

#movement-canvas-container {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#movement-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.movement-overlay-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

/* Sliders and Controls */
.movement-slider-wrap {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 104, 87, 0.1);
  border-radius: 16px;
  padding: 12px 16px;
}

.movement-slider {
  flex: 1;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: #e2e8f0;
  border-radius: 99px;
  outline: none;
}

.movement-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #006857;
  box-shadow: 0 2px 8px rgba(0, 104, 87, 0.3);
  transition: transform 0.1s;
}
.movement-slider::-webkit-slider-thumb:active {
  transform: scale(1.2);
}

/* Buttons */
.btn-movement-primary {
  background: linear-gradient(135deg, #006857, #00a389);
  color: white;
  box-shadow: 0 8px 24px rgba(0, 104, 87, 0.25);
  border: none;
  position: relative;
  overflow: hidden;
}
.btn-movement-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: movement-shine 3s infinite;
}

.btn-movement-primary:hover {
  box-shadow: 0 12px 32px rgba(0, 104, 87, 0.35);
  transform: translateY(-2px);
}

.btn-movement-social {
  background: white;
  border: 1px solid #e2e8f0;
  color: #334155;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.btn-movement-social:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  transform: translateY(-1px);
}

.movement-upload-btn {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 99px;
  padding: 8px 20px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.movement-upload-btn:hover {
  background: rgba(0,0,0,0.8);
  transform: translateX(-50%) scale(1.05);
}

.movement-success-pop {
  animation: movement-success-pop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.ss-emergency-btn {
  animation: ss-emergency-pulse 2.2s ease-in-out infinite;
}

/* Protection tip cards */
.ss-tip-card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ss-tip-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 104, 87, 0.12);
}
