:root {
  --bg-color: #000000; /* Pure Black (OLED) */
  --primary: #6366f1; /* Electric Indigo */
  --secondary: #00f2fe; /* Neon Cyan */
  --accent: #f43f5e; /* Rose Neon */
  --text-main: #ffffff;
  --text-muted: #888888; /* Kembalikan ke abu-abu untuk hierarki */
  --glow: 0 0 30px rgba(0, 242, 254, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

img {
  -webkit-user-drag: none;
  user-drag: none;
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  position: relative;
}

header {
  text-align: center;
}

header h1 {
  margin-bottom: 0.5rem;
}

.app-logo {
  height: 120px;
  width: auto;
  display: block;
  margin: 0 auto;
}

header p {
  color: var(--text-muted);
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.user-ip {
  color: #ffffff;
  font-size: 0.85rem;
  margin-top: 0.8rem;
  font-family: 'Outfit', monospace;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 16px;
  border-radius: 8px;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

/* 3D Glass Effect untuk Speed Display */
.speed-display {
  position: relative;
  width: 320px;
  height: 320px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: rgba(255, 255, 255, 0.4);
  border-left-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(35px);
  box-shadow: 
    0 35px 70px rgba(0, 0, 0, 0.9),
    inset 0 2px 4px rgba(255, 255, 255, 0.2),
    inset 0 -2px 20px rgba(0, 0, 0, 0.6),
    var(--glow);
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.speed-display:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 45px 90px rgba(0, 0, 0, 1.0),
    0 0 50px rgba(0, 242, 254, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

.gauge-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.gauge-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.02);
  stroke-width: 6;
}

.gauge-progress {
  fill: none;
  stroke: url(#gauge-gradient);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 880;
  stroke-dashoffset: 880;
  transition: stroke-dashoffset 0.3s ease;
}

.gauge-spinner {
  fill: none;
  stroke: rgba(255, 255, 255, 0.5);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 60 820;
  animation: spinCounterClockwise 2s linear infinite;
  transform-origin: 160px 160px;
}

@keyframes spinCounterClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

.center-content {
  text-align: center;
  z-index: 10;
}

.start-text {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 3px;
  color: #ffffff;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.sub-text {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.speed-number {
  font-size: 5.5rem;
  font-weight: 900;
  font-family: 'Outfit', sans-serif;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -2px;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.speed-unit {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 0.5rem;
}

.status-bar {
  width: 100%;
  max-width: 400px;
  height: 4px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 2px;
  margin-top: 1.5rem;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
  position: relative;
}

.status-progress {
  width: 0%;
  height: 100%;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: 2px;
  transition: width 0.3s ease;
  position: relative;
}

.bar-rocket {
  position: absolute;
  right: -20px;
  top: -18px;
  width: 40px;
  height: 40px;
  transform: rotate(90deg);
  filter: drop-shadow(0 0 5px rgba(0, 242, 254, 0.5));
}

.dashboard-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  width: 100%;
  max-width: 1100px;
  margin-bottom: 1.5rem;
}

.side-cards.results-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: auto;
  min-width: 160px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  width: 100%;
  max-width: 800px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease-in-out;
}

.results-grid.visible {
  opacity: 1;
  pointer-events: auto;
}

/* 3D Glass Effect untuk Kartu Hasil */
.result-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 2px solid rgba(255, 255, 255, 0.05);
  border-top-color: rgba(255, 255, 255, 0.3);
  border-left-color: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  backdrop-filter: blur(35px);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.6),
    inset 0 1px 2px rgba(255, 255, 255, 0.15),
    inset 0 -1px 5px rgba(0, 0, 0, 0.5);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.result-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 35px 70px rgba(0, 0, 0, 0.9),
    inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.result-card.active {
  border-color: var(--secondary);
  box-shadow: 0 0 35px rgba(0, 242, 254, 0.2), 0 25px 50px rgba(0, 0, 0, 0.7);
}

.card-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted); /* Kembali ke warna redup untuk estetika */
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
}

.card-value {
  font-size: 1.8rem;
  font-weight: 900;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.card-unit {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.25rem;
  letter-spacing: 1px;
}

.rocket-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 0.5rem;
  animation: rocketFly 1s ease-in-out infinite alternate;
}

@keyframes rocketFly {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-5px) rotate(5deg); }
}

@media (max-width: 768px) {
  .dashboard-container {
    flex-direction: column;
    gap: 2rem;
  }
  
  .side-cards.results-grid {
    flex-direction: row;
    justify-content: center;
    width: 100%;
  }
  
  .result-card {
    flex: 1;
    max-width: 160px;
  }
  
  header h1 {
    font-size: 2.2rem;
  }
  
  .speed-display {
    width: 260px;
    height: 260px;
  }
  
  .speed-number {
    font-size: 4rem;
  }
}

@media (max-width: 480px) {
  .dashboard-container {
    gap: 1.5rem;
  }
  
  .result-card {
    max-width: 140px;
    padding: 0.5rem;
  }
  
  .card-value {
    font-size: 1.3rem;
  }
  
  header h1 {
    font-size: 1.6rem;
  }
  
  .speed-display {
    width: 180px;
    height: 180px;
  }
  
  .speed-number {
    font-size: 2.5rem;
  }
  
  .container {
    padding: 1rem;
    gap: 1.25rem;
  }
  
  .user-ip {
    font-size: 0.75rem;
    max-width: 100%;
    word-break: break-all;
    white-space: normal;
  }
  
  .status-bar {
    max-width: 180px;
  }
}
