html,body{
    height:100%;
    margin:0;
    background: #02020a; 
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    color:#fff;
    overflow:hidden;
}

.galaxy {
    position:fixed;
    inset:0;
    overflow:hidden;
    background:
    radial-gradient(1200px 600px at 10% 20%, rgba(90,30,130,0.30), transparent 10%),
    radial-gradient(900px 450px at 80% 70%, rgba(30,80,150,0.26), transparent 12%),
    linear-gradient(180deg, #03021a 0%, #06041a 40%, #020115 100%);
    background-blend-mode:screen,screen,normal;
    display:block;
    z-index:0;
}

.galaxy::before,
.galaxy::after{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    mix-blend-mode: screen;
    filter: blur(80px) saturate(140%);
    opacity:0.9;
}

    
.galaxy::before{
    background:      
    radial-gradient(500px 280px at 25% 30%, rgba(255,100,200,0.12), transparent 20%),    
    radial-gradient(420px 220px at 40% 50%, rgba(120,80,255,0.09), transparent 18%);
}

.galaxy::after{
    background:
    radial-gradient(700px 380px at 85% 70%, rgba(0,220,255,0.12), transparent 12%),
    radial-gradient(300px 180px at 70% 30%, rgba(255,200,90,0.06), transparent 18%);
    transform: translateZ(0); 
}

#stars {
    position:absolute;
    inset:0;
    z-index:2;
    pointer-events:none;
}

.star {
    position:absolute;
    border-radius:50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,1) 0%, rgba(255,255,255,0.6) 30%, rgba(255,255,255,0.1) 60%, rgba(255,255,255,0) 100%);
    box-shadow: 0 0 6px rgba(255,255,255,0.6);
    transform: translate3d(0,0,0);
    will-change: opacity, transform;
    animation-name: twinkle;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    mix-blend-mode: screen;
}

@keyframes twinkle {
    0%   { opacity: 0.15; transform: scale(0.9); }
    40%  { opacity: 1;     transform: scale(1.18); }
    100% { opacity: 0.15;  transform: scale(0.9); }
}

.starfield-far {
    position:absolute;
    inset:0;
    background-image: radial-gradient(rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity:0.7;
    mix-blend-mode: screen;
    z-index:1;
    pointer-events:none;
    transform: translateZ(0);
    filter: blur(1px);
}

@media (prefers-reduced-motion: reduce) {
    .star { animation: none !important; opacity:0.85 !important; }
}

.center-hint {
    position:relative;
    z-index:5;
    display:flex;
    align-items:center;
    justify-content:center;
    height:100vh;
    pointer-events:none;
    text-align:center;
    letter-spacing:0.02em;
    font-size:14px;
    color:rgba(255,255,255,0.85);
    text-shadow: 0 2px 18px rgba(0,0,0,0.6);
}

@media (max-width:640px){
    :root { --star-count: 90; }
}

#globe {
  width: 100vw;
  height: 100vh;
  position: relative;
  z-index: 6;
  pointer-events: auto;
  background: transparent;
}

/* Custom globe tooltip styles */
.globe-tooltip-custom {
  pointer-events: auto;
  display: none;
}

.globe-tooltip-custom .label-box {
  background: linear-gradient(180deg, rgba(10,10,20,0.92), rgba(20,20,30,0.78));
  border: 1px solid rgba(255,255,255,0.06);
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow: 0 6px 22px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.02);
  color: #fff;
  font-size: 13px;
  min-width: 160px;
  max-width: 320px;
}

.globe-tooltip-custom .label-city {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
  color: #f6f9ff;
}

.globe-tooltip-custom .label-country {
  font-weight: 500;
  font-size: 13px;
  color: #dfe9ff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.globe-tooltip-custom .label-btn {
  background: linear-gradient(180deg,#ffd9a6,#ffb86b);
  border: none;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(255,160,60,0.16);
}

.globe-tooltip-custom .label-btn:active { transform: translateY(1px); }

/* Popup overlay and card styles for weather details */
#weather-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(6px);
  background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.55));
}

#weather-popup-card {
  background: linear-gradient(180deg, rgba(12,12,18,0.96), rgba(22,22,28,0.94));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 14px;
  min-width: 320px;
  max-width: 720px;
  width: min(86vw,720px);
  box-shadow: 0 8px 36px rgba(0,0,0,0.6);
  position: relative;
  color: #e6eefc;
}

#weather-popup-card {
  padding: 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(8,10,16,0.98), rgba(18,22,28,0.96));
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 10px 40px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.02);
}

#weather-popup-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 15px;
  background: linear-gradient(90deg, rgba(21,80,255,0.06), rgba(0,191,255,0.03));
  z-index: -1;
}

#weather-popup-content { margin-top: 8px; }
#weather-popup-content .weather-popup-inner { padding: 6px 2px; }
.weather-popup-inner h3 { margin:0 0 6px 0; font-size:16px; }
.weather-popup-inner h3 { font-size: 18px; letter-spacing:0.01em; }
.weather-popup-inner p { margin: 6px 0; color:#d8e8ff; }
.weather-popup-inner p, .weather-popup-inner li { font-size: 13px; }
.weather-popup-inner ul { margin:8px 0 0 18px; color:#cddfff; }

.rotate-switch-wrap {
  position: fixed;
  top: 14px;
  right: 18px;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
}
.rotate-switch-wrap input[type="checkbox"] {
  width: 44px;
  height: 24px;
  appearance: none;
  background: linear-gradient(180deg,#2b2f38,#1b1e24);
  border-radius: 999px;
  position: relative;
  outline: none;
  border: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.6);
}
.rotate-switch-wrap input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.18s ease, background 0.18s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.rotate-switch-wrap input[type="checkbox"]:checked {
  background: linear-gradient(180deg,#3ba0ff,#0077ee);
}
.rotate-switch-wrap input[type="checkbox"]:checked::after { transform: translateX(20px); background:#fff; }
@media (max-width:520px) {
  .rotate-switch-wrap { top: 8px; right: 10px; }
  #weather-popup-card { width: calc(94vw); padding:12px; }
}

.globe-tooltip-custom .label-btn { cursor: pointer; }

.verify-wrap {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  pointer-events: auto;
}
.verify-card {
  background: linear-gradient(180deg, rgba(6,8,14,0.96), rgba(16,20,28,0.94));
  border: 1px solid rgba(255,255,255,0.06);
  padding: 22px 26px;
  border-radius: 14px;
  width: 380px;
  text-align: center;
  box-shadow: 0 18px 50px rgba(0,0,0,0.7);
  transform: translateY(6px);
  animation: card-entrance 360ms cubic-bezier(.2,.9,.3,1) both;
}
@keyframes card-entrance { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity:1; transform: translateY(0) scale(1); } }
.verify-logo { width: 72px; height: 72px; margin: -62px auto 8px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: radial-gradient(circle at 30% 30%, rgba(40,120,255,0.14), rgba(20,40,80,0.08)); box-shadow: 0 6px 26px rgba(12,18,28,0.6); }
.verify-logo svg { transform: translateY(1px); }
.verify-card h2 { margin: 6px 0 6px 0; color: #f8fbff; font-size:18px; }
.verify-sub { margin: 8px 0 12px 0; color: #cfe6ff; font-size:13px; }
.verify-msg { margin: 6px 0 12px 0; color: #dbe9ff; font-size:13px; }
.g-signin { margin: 8px auto; display:flex; justify-content:center; }
.verify-error { margin-top:10px; color: #ffb3b3; min-height:18px; font-size:13px; }

.verify-or { color: rgba(255,255,255,0.12); font-size:13px; margin: 10px 0; }
.verify-code-wrap { display:flex; gap:8px; align-items:center; justify-content:center; }
.verify-code { padding:8px 10px; border-radius:8px; border:1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.02); color:#e8f3ff; outline:none; width: 100%; max-width:220px; }
.verify-code::placeholder { color: rgba(222,236,255,0.32); }
.verify-code:focus { box-shadow: 0 8px 26px rgba(12,26,44,0.6); }

.verify-button {
  background: linear-gradient(180deg, #38b2ff 0%, #0077ee 100%);
  color: #fff;
  border: none;
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 24px rgba(3,102,214,0.18), inset 0 -2px 0 rgba(0,0,0,0.12);
  transition: transform 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
}
.verify-button:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(3,102,214,0.22); }
.verify-button:active { transform: translateY(0); box-shadow: 0 6px 18px rgba(3,102,214,0.16); }
.verify-button:focus { outline: 3px solid rgba(59,150,255,0.18); outline-offset: 2px; }

@media (max-width:420px) {
  .verify-code-wrap { flex-direction: column; gap:8px; }
  .verify-button { width: 100%; max-width: 320px; }
}