:root {
  --bg-primary: #0D1117;
  --bg-secondary: #010409;
  --glass: rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.08);
  --accent: #58A6FF;
  --accent-glow: rgba(88,166,255,0.3);
  --teal: #39D2C0;
  --gold: #F0C040;
  --text-primary: #E6EDF3;
  --text-secondary: #8B949E;
  --positive: #3FB950;
  --negative: #F85149;
  --warning: #D29922;
}

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

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'IBM Plex Sans', 'Noto Sans JP', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

#root { min-height: 100vh; }

.font-display { font-family: 'Orbitron', sans-serif; }

.glass {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
}

.glass-sm {
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
}

.glow-accent {
  box-shadow: 0 0 20px var(--accent-glow), inset 0 0 20px rgba(88,166,255,0.05);
}

.glow-text {
  text-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #3d8bfd);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'IBM Plex Sans', sans-serif;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-secondary {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  padding: 8px 20px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'IBM Plex Sans', sans-serif;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--accent);
}

input[type="text"], input[type="number"], select, textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 10px 14px;
  border-radius: 8px;
  font-family: 'IBM Plex Sans', 'Noto Sans JP', sans-serif;
  font-size: 14px;
  transition: border-color 0.3s;
  outline: none;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(88,166,255,0.15);
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.1);
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 8px var(--accent-glow);
}

.progress-bar {
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in {
  animation: fadeIn 0.5s ease forwards;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.pulse { animation: pulse 2s infinite; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.float { animation: float 3s ease-in-out infinite; }

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.splash-bg {
  background: linear-gradient(-45deg, #0D1117, #1a1a2e, #0D1117, #16213e);
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
}

.scrollbar-thin::-webkit-scrollbar { width: 4px; }
.scrollbar-thin::-webkit-scrollbar-track { background: transparent; }
.scrollbar-thin::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

.card-select {
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid transparent;
}
.card-select:hover { border-color: rgba(88,166,255,0.3); transform: translateY(-2px); }
.card-select.selected { border-color: var(--accent); box-shadow: 0 0 15px var(--accent-glow); }

.schedule-cell {
  min-height: 20px;
  border: 1px solid rgba(255,255,255,0.04);
  cursor: pointer;
  transition: background 0.2s;
  font-size: 9px;
}
.schedule-cell:hover { background: rgba(88,166,255,0.1); }

.event-card {
  border-left: 3px solid var(--accent);
  padding: 8px 12px;
  margin-bottom: 6px;
  background: rgba(255,255,255,0.03);
  border-radius: 0 8px 8px 0;
  animation: fadeIn 0.3s ease;
}

.time-gradient-morning { background: linear-gradient(135deg, #1a1a2e 0%, #2d1b3d 30%, #3d2c5c 60%, #4a3563 100%); }
.time-gradient-day { background: linear-gradient(135deg, #0D1117 0%, #1a2332 50%, #0D1117 100%); }
.time-gradient-evening { background: linear-gradient(135deg, #1a1a2e 0%, #2d1b20 50%, #1a1a2e 100%); }
.time-gradient-night { background: linear-gradient(135deg, #010409 0%, #0D1117 50%, #010409 100%); }

.world-map-container { position: relative; width: 100%; max-width: 900px; margin: 0 auto; }

.city-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  transition: all 0.3s;
  z-index: 2;
}
.city-dot:hover {
  transform: scale(1.8);
  box-shadow: 0 0 15px var(--accent);
}
.city-dot.selected {
  background: var(--gold);
  box-shadow: 0 0 20px rgba(240,192,64,0.5);
  transform: scale(1.5);
}
.city-dot::after {
  content: '';
  position: absolute;
  top: -4px; left: -4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0.4;
  animation: pulse 2s infinite;
}

.phone-modal {
  width: 320px;
  max-width: 90vw;
  height: 560px;
  max-height: 80vh;
  border-radius: 30px;
  background: #111;
  border: 3px solid #333;
  overflow: hidden;
  position: relative;
}
.phone-notch {
  width: 120px;
  height: 24px;
  background: #000;
  border-radius: 0 0 14px 14px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .dashboard-grid { grid-template-columns: 1fr !important; }
  .phone-modal { width: 280px; height: 480px; }
}