/* ============ Reset & Base ============ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Cairo', 'Tajawal', sans-serif;
  background: #000814;
  color: #fff;
  position: fixed;
  overscroll-behavior: none;
}

body {
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

#app-root {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  color: inherit;
}

input {
  font-family: inherit;
  outline: none;
}

/* ============ Splash Screen ============ */
#splash-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #000814 0%, #001d3d 50%, #000814 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

#splash-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.splash-content {
  text-align: center;
}

.splash-logo {
  margin-bottom: 24px;
  filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.5));
}

.splash-title {
  font-size: 36px;
  font-weight: 900;
  background: linear-gradient(135deg, #00E5FF, #2962FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 32px;
}

.splash-loader {
  width: 200px;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}

.splash-bar {
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, #00E5FF, #2962FF);
  border-radius: 2px;
  animation: loadBar 1.5s ease-in-out infinite;
}

@keyframes loadBar {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}

/* ============ Screens System ============ */
.screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  background: #000814;
}

.screen.active {
  display: flex;
}

/* ============ Home Screen ============ */
#home-screen {
  background: linear-gradient(180deg, #000814 0%, #001d3d 100%);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.home-bg {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(0, 229, 255, 0.15), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 0, 229, 0.1), transparent 50%);
  pointer-events: none;
}

.home-content {
  position: relative;
  z-index: 1;
  padding: 40px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 100%;
}

.logo-section {
  text-align: center;
  padding: 20px 0 10px;
}

.logo-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.4));
}

.app-title {
  font-size: 32px;
  font-weight: 900;
  background: linear-gradient(135deg, #00E5FF, #2962FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.app-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  font-weight: 400;
}

.status-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.status-card.has-parking {
  background: linear-gradient(135deg, rgba(0,229,255,0.15), rgba(41,98,255,0.15));
  border-color: rgba(0,229,255,0.3);
}

.status-icon {
  font-size: 40px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border-radius: 16px;
}

.status-info { flex: 1; }

.status-label {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.status-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

.main-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-primary, .btn-secondary {
  padding: 18px 24px;
  border-radius: 16px;
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary {
  background: linear-gradient(135deg, #00E5FF 0%, #2962FF 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 229, 255, 0.3);
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
}

.btn-secondary:not(:disabled):active {
  transform: scale(0.97);
  background: rgba(255,255,255,0.12);
}

.btn-secondary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-icon { font-size: 24px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.feature-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.feature-card:active {
  transform: scale(0.96);
  background: rgba(255,255,255,0.08);
}

.feature-icon { font-size: 32px; }

.feature-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}

.bottom-info {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

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

.info-dot.online {
  background: #4caf50;
  box-shadow: 0 0 8px #4caf50;
}

/* ============================================================ */
/* =============== AR + HOLOGRAPHIC MAP SCREEN ================= */
/* ============================================================ */

.ar-screen {
  background: #000;
  position: fixed;
  inset: 0;
}

#ar-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  /* Camera darkens for hologram visibility */
  filter: brightness(0.4) saturate(0.7);
}

#holomap-container {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  /* Slight blue tint overlay */
}

#holomap-container canvas {
  width: 100% !important;
  height: 100% !important;
}

/* Dark overlay gradient for top/bottom */
#holomap-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(180deg, 
      rgba(0, 8, 20, 0.85) 0%, 
      rgba(0, 8, 20, 0) 25%,
      rgba(0, 8, 20, 0) 75%, 
      rgba(0, 8, 20, 0.85) 100%
    ),
    radial-gradient(ellipse at center, 
      transparent 30%, 
      rgba(0, 8, 20, 0.5) 100%
    );
  pointer-events: none;
  z-index: 1;
}

/* ============ Cyberpunk HUD Overlay ============ */
.cyber-hud {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  padding: env(safe-area-inset-top) 12px env(safe-area-inset-bottom);
  font-family: 'Courier New', monospace;
  letter-spacing: 1.5px;
}

.cyber-hud > * {
  pointer-events: auto;
}

/* ============ Cyberpunk Corners (animated brackets) ============ */
.cyber-corners {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cyber-corners::before,
.cyber-corners::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid #00E5FF;
  box-shadow: 0 0 8px #00E5FF;
}

.cyber-corners::before {
  top: -2px;
  left: -2px;
  border-right: none;
  border-bottom: none;
}

.cyber-corners::after {
  bottom: -2px;
  right: -2px;
  border-left: none;
  border-top: none;
}

.cyber-corners.small::before,
.cyber-corners.small::after {
  width: 8px;
  height: 8px;
  border-width: 1.5px;
}

/* Big corner decorations on screen edges */
.cyber-corner-deco {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(0, 229, 255, 0.6);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
  pointer-events: none;
  z-index: 11;
}

.cyber-corner-deco.tl {
  top: calc(env(safe-area-inset-top) + 12px);
  left: 12px;
  border-right: none;
  border-bottom: none;
}

.cyber-corner-deco.tr {
  top: calc(env(safe-area-inset-top) + 12px);
  right: 12px;
  border-left: none;
  border-bottom: none;
}

.cyber-corner-deco.bl {
  bottom: calc(env(safe-area-inset-bottom) + 12px);
  left: 12px;
  border-right: none;
  border-top: none;
}

.cyber-corner-deco.br {
  bottom: calc(env(safe-area-inset-bottom) + 12px);
  right: 12px;
  border-left: none;
  border-top: none;
}

/* ============ Top Bar ============ */
.cyber-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 10px;
}

.cyber-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 20, 40, 0.7);
  border: 1px solid rgba(0, 229, 255, 0.4);
  border-radius: 4px;
  color: #00E5FF;
  position: relative;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.2s;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.cyber-btn:active {
  background: rgba(0, 229, 255, 0.3);
  transform: scale(0.95);
}

.cyber-btn svg {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 4px currentColor);
}

.cyber-btn-flash.active {
  background: rgba(255, 170, 0, 0.3);
  border-color: #FFAA00;
  color: #FFAA00;
}

.cyber-status-panel {
  flex: 1;
  background: rgba(0, 20, 40, 0.7);
  border: 1px solid rgba(0, 229, 255, 0.4);
  padding: 8px 16px;
  position: relative;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 10px;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.cyber-status-content {
  flex: 1;
  text-align: center;
}

.cyber-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00FF88;
  box-shadow: 0 0 8px #00FF88;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.cyber-label-tiny {
  font-size: 9px;
  color: rgba(0, 229, 255, 0.7);
  font-weight: 700;
  letter-spacing: 2px;
  text-shadow: 0 0 4px rgba(0, 229, 255, 0.5);
  margin-bottom: 2px;
}

.cyber-value {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.8);
}

/* ============ Target Panel (Distance Display) ============ */
.cyber-target-panel {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 8, 20, 0.85);
  border: 1px solid rgba(0, 229, 255, 0.6);
  padding: 12px 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  min-width: 200px;
  clip-path: polygon(15px 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 15px 100%, 0 50%);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.3);
}

.cyber-target-panel.visible {
  display: block;
  animation: panelGlow 2s ease-in-out infinite;
}

@keyframes panelGlow {
  0%, 100% { box-shadow: 0 0 30px rgba(0, 229, 255, 0.3); }
  50% { box-shadow: 0 0 50px rgba(0, 229, 255, 0.6); }
}

.cyber-target-content {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
}

.cyber-target-icon {
  width: 50px;
  height: 50px;
  filter: drop-shadow(0 0 10px #00E5FF);
  transition: transform 0.5s ease;
}

.cyber-target-icon svg { width: 100%; height: 100%; }

.cyber-target-info { text-align: center; }

.cyber-target-value {
  font-size: 32px;
  font-weight: 900;
  font-family: 'Courier New', monospace;
  color: #00E5FF;
  text-shadow: 0 0 12px #00E5FF;
  line-height: 1;
}

.cyber-target-unit {
  font-size: 14px;
  color: rgba(0, 229, 255, 0.7);
  margin-right: 4px;
}

/* ============ Side Panels ============ */
.cyber-side-panel {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
}

.cyber-side-panel.right {
  right: 12px;
}

.cyber-side-panel.left {
  left: 12px;
}

.cyber-data-block {
  position: relative;
  background: rgba(0, 8, 20, 0.85);
  border: 1px solid rgba(0, 229, 255, 0.4);
  padding: 8px 12px;
  min-width: 75px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.cyber-data-value {
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  font-family: 'Courier New', monospace;
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.8);
  line-height: 1.2;
}

.cyber-data-unit {
  font-size: 10px;
  color: rgba(0, 229, 255, 0.6);
  font-weight: 400;
  margin-right: 2px;
}

/* Indicators (left side) */
.cyber-indicator-block {
  background: rgba(0, 8, 20, 0.85);
  border: 1px solid rgba(0, 229, 255, 0.3);
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 60px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

.cyber-ind-icon {
  font-size: 16px;
  filter: drop-shadow(0 0 4px #00E5FF);
}

.cyber-ind-bar {
  width: 40px;
  height: 3px;
  background: rgba(0, 229, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.cyber-ind-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, #00E5FF, transparent);
  width: 30%;
  animation: scanBar 2s linear infinite;
}

@keyframes scanBar {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}

.cyber-indicator-block.active .cyber-ind-fill {
  background: #00FF88;
  width: 100%;
  animation: none;
  box-shadow: 0 0 6px #00FF88;
}

.cyber-indicator-block.active {
  border-color: #00FF88;
}

.cyber-indicator-block.active .cyber-ind-icon {
  filter: drop-shadow(0 0 6px #00FF88);
}

.cyber-ind-label {
  font-size: 8px;
  color: rgba(0, 229, 255, 0.7);
  font-weight: 700;
  letter-spacing: 1px;
}

/* ============ Message Center ============ */
.cyber-message {
  position: absolute;
  bottom: 130px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 8, 20, 0.9);
  border: 1px solid rgba(0, 229, 255, 0.5);
  padding: 12px 20px;
  max-width: 80%;
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 10px 100%, 0 50%);
}

.cyber-message.hidden { display: none; }

.cyber-message .message-icon {
  font-size: 18px;
  filter: drop-shadow(0 0 4px #00E5FF);
}

.cyber-message .message-text {
  font-size: 13px;
  color: #fff;
  font-family: 'Cairo', sans-serif;
  letter-spacing: 0.5px;
  text-shadow: 0 0 4px rgba(0, 229, 255, 0.4);
}

/* ============ Bottom Action Bar ============ */
.cyber-bottom-bar {
  position: absolute;
  bottom: 20px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.cyber-coord-panel,
.cyber-steps-panel {
  background: rgba(0, 8, 20, 0.85);
  border: 1px solid rgba(0, 229, 255, 0.4);
  padding: 8px 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  min-width: 90px;
}

.cyber-coord-text {
  font-size: 11px;
  color: #fff;
  font-family: 'Courier New', monospace;
  text-shadow: 0 0 4px rgba(0, 229, 255, 0.6);
  white-space: nowrap;
}

.cyber-steps-panel .cyber-coord-text {
  font-size: 18px;
  font-weight: 900;
  text-align: center;
}

.cyber-action-btn {
  flex: 1;
  position: relative;
  background: linear-gradient(135deg, #00E5FF 0%, #00FFAA 100%);
  color: #001;
  font-weight: 900;
  font-size: 15px;
  padding: 12px 20px;
  letter-spacing: 1px;
  border: 2px solid #00E5FF;
  cursor: pointer;
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 12px 100%, 0 50%);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
  transition: all 0.2s;
  font-family: 'Cairo', sans-serif;
  overflow: hidden;
}

.cyber-action-btn:active {
  transform: scale(0.95);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.8);
}

.cyber-action-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  animation: actionGlow 2s linear infinite;
}

@keyframes actionGlow {
  0% { left: -100%; }
  100% { left: 100%; }
}

.cyber-action-btn.recording {
  background: linear-gradient(135deg, #FF3366 0%, #ff0044 100%);
  border-color: #FF3366;
  box-shadow: 0 0 20px rgba(255, 51, 102, 0.7);
  animation: recordPulse 1s infinite;
}

@keyframes recordPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 51, 102, 0.7); }
  50% { box-shadow: 0 0 40px rgba(255, 51, 102, 1); }
}

/* ============ Scanlines effect ============ */
.cyber-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 2px,
    rgba(0, 229, 255, 0.03) 2px,
    rgba(0, 229, 255, 0.03) 3px
  );
  z-index: 9;
  mix-blend-mode: overlay;
  animation: scanlinesShift 8s linear infinite;
}

@keyframes scanlinesShift {
  0% { transform: translateY(0); }
  100% { transform: translateY(4px); }
}

/* Subtle CRT glow */
.cyber-hud::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 30%,
    rgba(0, 8, 20, 0.4) 100%
  );
  pointer-events: none;
  z-index: 8;
}

/* ============ Share Screen ============ */
#share-screen {
  background: linear-gradient(180deg, #000814 0%, #001d3d 100%);
  padding: env(safe-area-inset-top) 20px env(safe-area-inset-bottom);
  overflow-y: auto;
}

.page-header {
  display: flex;
  align-items: center;
  padding: 20px 0;
  gap: 12px;
}

.back-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-header h2 {
  font-size: 22px;
  font-weight: 700;
}

.share-content {
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.qr-container {
  background: #fff;
  padding: 24px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  margin: 0 auto;
  width: 280px;
}

.qr-placeholder { color: #999; }

.share-link-box {
  display: flex;
  gap: 8px;
  background: rgba(255,255,255,0.05);
  padding: 8px;
  border-radius: 14px;
}

.share-link-box input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  padding: 10px;
  font-size: 13px;
  direction: ltr;
}

.share-link-box button {
  background: linear-gradient(135deg, #00E5FF, #2962FF);
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 700;
}

.share-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.share-btn {
  background: rgba(255,255,255,0.08);
  padding: 16px 8px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.share-btn span:first-child { font-size: 28px; }

.share-btn.whatsapp:active { background: rgba(37, 211, 102, 0.2); }

.share-info {
  background: rgba(255,255,255,0.04);
  padding: 16px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255,255,255,0.7);
}

/* ============ Modals ============ */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background: linear-gradient(135deg, #001d3d, #000814);
  border: 1px solid rgba(0, 229, 255, 0.4);
  border-radius: 4px;
  padding: 32px 24px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  position: relative;
  clip-path: polygon(15px 0, calc(100% - 15px) 0, 100% 15px, 100% calc(100% - 15px), calc(100% - 15px) 100%, 15px 100%, 0 calc(100% - 15px), 0 15px);
}

.modal-icon { font-size: 48px; margin-bottom: 16px; }

.modal-content h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: #00E5FF;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}

.modal-content p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
}

.modal-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
  text-align: right;
}

.modal-content ul li {
  padding: 8px 0;
  color: rgba(255,255,255,0.85);
}

.modal-content button {
  background: linear-gradient(135deg, #00E5FF, #00FFAA);
  padding: 14px 32px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  color: #001;
  width: 100%;
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 10px 100%, 0 50%);
}

/* ============ Toast Notifications ============ */
#toast-container {
  position: fixed;
  top: calc(env(safe-area-inset-top) + 80px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 5000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: rgba(0, 8, 20, 0.95);
  border: 1px solid rgba(0, 229, 255, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  padding: 12px 20px;
  font-size: 14px;
  min-width: 200px;
  text-align: center;
  animation: toastIn 0.3s ease;
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 10px 100%, 0 50%);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

.toast.success { border-color: #00FF88; box-shadow: 0 0 20px rgba(0, 255, 136, 0.3); }
.toast.error { border-color: #FF3366; box-shadow: 0 0 20px rgba(255, 51, 102, 0.3); }
.toast.warning { border-color: #FFAA00; box-shadow: 0 0 20px rgba(255, 170, 0, 0.3); }

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

.toast.hide { animation: toastOut 0.3s ease forwards; }

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

/* ============ Responsive ============ */
@media (max-height: 700px) {
  .home-content { padding: 20px 16px 16px; gap: 14px; }
  .logo-section { padding: 10px 0 0; }
  .logo-icon { width: 60px; height: 60px; }
  .app-title { font-size: 26px; }
  .status-card { padding: 16px; }
  .btn-primary, .btn-secondary { padding: 16px 20px; font-size: 15px; }
  .feature-card { padding: 16px 8px; }
  
  .cyber-target-panel { top: 70px; }
  .cyber-side-panel { gap: 6px; }
  .cyber-data-block { padding: 6px 10px; }
}

@media (max-width: 380px) {
  .cyber-data-block { min-width: 65px; padding: 6px 8px; }
  .cyber-target-value { font-size: 26px; }
  .cyber-coord-text { font-size: 10px; }
  .cyber-action-btn { font-size: 13px; padding: 10px 16px; }
}
