/* ====== YOUR SPACE / NEON AUTH UI (UNCHANGED CORE) ====== */
*,*::before,*::after{box-sizing:border-box}
:root{
  --bg-dark:#020617;
  --bg-blue:#020b1f;
  --neon:#38bdf8;
  --neon-soft:#7dd3fc;
  --text:#e6f1ff;
  --muted:#9fb3d1;
  --glass:rgba(255,255,255,.08);
  --border:rgba(56,189,248,.35);
}

html,body{
  height:100%;
  margin:0;
}

body{
  font-family:'Inter',system-ui;
  background:
    radial-gradient(1000px 600px at 15% 10%, rgba(56,189,248,.18), transparent 45%),
    radial-gradient(900px 500px at 85% 85%, rgba(2,58,111,.35), transparent 50%),
    linear-gradient(180deg,var(--bg-blue),var(--bg-dark));
  color:var(--text);
  overflow:hidden; /* desktop default */
}

/* ---------- STARFIELD ---------- */
#stars{
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
}
.star{
  position:fixed;
  background:white;
  border-radius:50%;
  opacity:.8;
  animation:fall linear infinite,twinkle ease-in-out infinite;
}
@keyframes fall{
  from{transform:translateY(-100vh)}
  to{transform:translateY(110vh)}
}
@keyframes twinkle{
  0%,100%{opacity:.2}
  50%{opacity:1}
}

/* ---------- MAIN GRID ---------- */
.dashboard{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:420px 1fr;
  height:100vh;
  padding:28px;
  gap:24px;
}

/* ---------- LEFT PANEL ---------- */
.left{
  background:linear-gradient(180deg,rgba(255,255,255,.12),rgba(255,255,255,.04));
  border:1px solid var(--border);
  border-radius:26px;
  padding:30px;
  backdrop-filter:blur(18px);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  overflow:visible; /* 🔥 ไม่ตัด content */
}

.brand-logos{
  display:flex;
  gap:14px;
  align-items:center;
}
.brand-logos img{
  height:40px;
  object-fit:contain;
  filter:drop-shadow(0 0 12px rgba(56,189,248,.7));
}

h1{
  font-family:'Orbitron';
  color:var(--neon);
  letter-spacing:2px;
  margin:12px 0 6px;
}

.tagline{
  font-size:13px;
  color:var(--muted);
}

.section{
  margin-top:18px;
}
.section h3{
  font-family:'Orbitron';
  font-size:14px;
  color:var(--neon-soft);
  letter-spacing:1px;
  margin-bottom:6px;
}
.section p{
  font-size:13px;
  line-height:1.6;
  color:var(--text);
}

.cta{
  text-align:center;
}
.cta button{
  width:100%;
  padding:14px;
  border-radius:18px;
  border:none;
  cursor:pointer;
  font-weight:700;
  letter-spacing:1px;
  background:linear-gradient(135deg,var(--neon),var(--neon-soft));
  box-shadow:0 0 30px rgba(56,189,248,.6);
}

/* ---------- CESIUM ---------- */
#cesium{
  position:relative;        /* 🔑 สำคัญมาก */
  width:100%;
  height:100%;
  min-height:360px;
  border-radius:26px;
  overflow:hidden;
  border:1px solid var(--border);
}



/* ---------- CESIUM LEGEND ---------- */
#cesium-legend{
  position:absolute;        /* 🔥 อิงกับ #cesium */
  right:16px;
  bottom:34px;              /* อยู่ในกรอบ Cesium */
  z-index:10;
  background:rgba(2,6,23,.55);
  backdrop-filter:blur(12px);
  border:1px solid var(--border);
  border-radius:14px;
  padding:10px 14px;
  font-family:'Orbitron','Inter',sans-serif;
  font-size:12px;
  letter-spacing:0.4px;
  box-shadow:0 0 24px rgba(0,0,0,.6);
  pointer-events:none;      /* ไม่บัง interaction */
}


.legend-item{
  display:flex;
  align-items:center;
  gap:8px;
  margin:4px 0;
  color:var(--text);
}

.dot{
  width:10px;
  height:10px;
  border-radius:50%;
  display:inline-block;
  box-shadow:0 0 8px currentColor;
}
.dot.green{background:#00ff6a;color:#00ff6a}
.dot.red{background:#ff3b3b;color:#ff3b3b}

/* ======================================================
   MOBILE / TABLET — FULL CONTENT MODE
   ====================================================== */
@media (max-width:1024px){

  body{
    overflow:auto; /* 🔥 ให้เลื่อนทั้งหน้า */
  }

  .dashboard{
    grid-template-columns:1fr; /* 1 column */
    height:auto;
    min-height:100vh;
  }

  .left{
    overflow:visible; /* 🔥 โชว์ครบ */
  }

  #cesium{
    height:60vh;
    min-height:380px;
  }

  #cesium-legend{
    right:12px;
    bottom:12px;
    font-size:11px;
  }

}
