:root{
  --bg-1: #1f0536;
  --bg-2: #3a0a5a;
  --accent: #9b59ff;
  --accent-2: #7a3cff;
  --muted: #dfe7ff;
  --card: rgba(255,255,255,0.06);
  --glass: rgba(255,255,255,0.06);
  --success: #4ee89a;
  --danger: #ff6b6b;
}
html,body{
  height:100%;
  margin:0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: linear-gradient(180deg,var(--bg-1) 0%, var(--bg-2) 100%);
  color:var(--muted);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
.container{
  max-width:1200px;
  margin:32px auto;
  padding:20px;
}
header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}
.brand{
  display:flex;
  gap:14px;
  align-items:center;
}
.logo{
  width:54px;
  height:54px;
  border-radius:12px;
  background: linear-gradient(135deg,var(--accent) 0%, var(--accent-2) 100%);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  color:white;
  box-shadow: 0 6px 18px rgba(122,60,255,0.18), inset 0 -4px 10px rgba(0,0,0,0.12);
}
h1{ margin:0; font-size:20px; letter-spacing:0.2px; }
p.lead{ margin:0; color: #cfcff8; opacity:0.9; font-size:13px; }
.grid{
  display:grid;
  grid-template-columns: 1fr 420px;
  gap:20px;
}
/* left panel */
.panel{
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
  border-radius:12px;
  padding:16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.04);
}
.queues{
  display:flex;
  gap:12px;
  margin-bottom:12px;
  flex-wrap:wrap;
}
.queue {
  flex:1 1 240px;
  min-width:240px;
  background:var(--card);
  padding:12px;
  border-radius:10px;
  border: 1px solid rgba(255,255,255,0.03);
}
.queue h3{ margin:0 0 8px 0; font-size:14px; display:flex; justify-content:space-between; align-items:center; }
.queue h3 .tag{ font-size:12px; padding:4px 8px; border-radius:999px; background:rgba(255,255,255,0.03); color:var(--muted); }
.flight-list{
  min-height:120px;
  max-height:320px;
  overflow:auto;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.flight-card{
  display:flex;
  gap:10px;
  align-items:center;
  background:linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius:8px;
  padding:10px;
  border:1px solid rgba(255,255,255,0.02);
  transition:transform 220ms ease, box-shadow 220ms ease;
}
.flight-card:hover{ transform:translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.5); }
.flight-pill{
  width:46px;
  height:46px;
  border-radius:8px;
  background:linear-gradient(135deg,var(--accent) 0%, var(--accent-2) 100%);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  color:white;
  font-size:13px;
  flex-shrink:0;
}
.flight-meta{ font-size:13px; color:var(--muted); }
.flight-meta small{ display:block; font-size:11px; color:#e9e6ff; opacity:0.8; }
.controls{
  display:flex;
  gap:8px;
  margin-top:10px;
  flex-wrap:wrap;
}
input, select{
  background:transparent;
  border:1px solid rgba(255,255,255,0.06);
  color:var(--muted);
  padding:8px 10px;
  border-radius:8px;
  outline:none;
  font-size:13px;
}
button{
  background:linear-gradient(90deg,var(--accent) 0%, var(--accent-2) 100%);
  color:white;
  border:none;
  padding:8px 12px;
  border-radius:8px;
  cursor:pointer;
  font-weight:600;
  box-shadow:0 8px 18px rgba(122,60,255,0.14);
}
button.secondary{
  background:transparent;
  border:1px solid rgba(255,255,255,0.06);
  color:var(--muted);
  box-shadow:none;
}
button.danger{
  background:linear-gradient(90deg,#ff6b6b,#ff4a4a);
  box-shadow:0 8px 18px rgba(255,91,91,0.12);
}
/* right panel */
.right{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.runway-wrap{
  height:220px;
  position:relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.02));
  border-radius:12px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,0.03);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:14px;
}
.runway{
  width:100%;
  height:80px;
  border-radius:8px;
  background:linear-gradient(90deg,#0f1220 0%, #11121e 100%);
  box-shadow: inset 0 10px 40px rgba(0,0,0,0.6);
  position:relative;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,0.03);
}
.runway .center-lines{
  position:absolute;
  top:0; left:0; right:0; bottom:0;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.08) 0 6px, transparent 6px 18px);
  opacity:0.05;
  pointer-events:none;
}
.plane{
  position:absolute;
  width:120px;
  height:40px;
  border-radius:8px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px;
  transform: translateX(-140%);
  box-shadow: 0 12px 34px rgba(0,0,0,0.6);
  transition: transform linear;
  z-index:20;
}
.plane .icon{
  width:36px;height:28px;border-radius:6px;background:white; opacity:0.15;
}
/* log & stats */
.log{
  height:180px;
  overflow:auto;
  background: rgba(255,255,255,0.02);
  padding:10px;border-radius:8px;border:1px solid rgba(255,255,255,0.03);
  font-family: monospace;
  font-size:12px;
  color:#e8e7ff;
}
.stats{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.stat-card{
  background:linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  padding:8px 10px;border-radius:8px;border:1px solid rgba(255,255,255,0.03);
  min-width:110px;
  text-align:center;
}
.stat-card h4{ margin:0; font-size:18px; color:white; }
.stat-card small{ opacity:0.8; display:block; color:#e6e4ff; }
footer{ margin-top:18px; color:#bfb7ff; font-size:13px; text-align:center; opacity:0.9; }
/* responsive */
@media (max-width:980px){
  .grid{ grid-template-columns: 1fr; }
  .queue{ min-width:unset; }
  header{ flex-direction:column; align-items:flex-start; gap:8px; }
}