:root{
  --bg:#0b1020;
  --panel:#0f1733;
  --card:#0d142b;
  --card2:#0f1733;
  --text:#f3f6ff;
  --muted:#aeb7d6;
  --muted2:#7f8ab3;
  --line:rgba(255,255,255,.08);
  --accent:#7c5cff;
  --accent2:#00d4ff;
  --good:#2ce5c0;
  --warn:#ffd266;
  --bad:#ff5c7a;
  --shadow:0 10px 24px rgba(0,0,0,.35);
  --radius:16px;
  --radius2:22px;
  --max:1200px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:radial-gradient(1100px 600px at 20% 0%, rgba(124,92,255,.22), transparent 60%),
             radial-gradient(900px 500px at 80% 10%, rgba(0,212,255,.14), transparent 55%),
             var(--bg);
  color:var(--text);
  font-family:ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

a{color:inherit}

.app{
  min-height:100%;
  display:flex;
  flex-direction:column;
  padding-bottom:76px;
}

.topbar{
  position:sticky;
  top:0;
  z-index:10;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 16px;
  border-bottom:1px solid var(--line);
  background:rgba(11,16,32,.75);
  backdrop-filter: blur(12px);
}

.brand{display:flex; gap:12px; align-items:center}
.logo{
  width:40px;height:40px;border-radius:14px;
  background:linear-gradient(135deg, rgba(124,92,255,.95), rgba(0,212,255,.75));
  display:grid;place-items:center;
  font-weight:800;
  box-shadow:0 8px 22px rgba(124,92,255,.25);
}
.brand-name{font-weight:800; letter-spacing:.2px}
.brand-sub{color:var(--muted); font-size:12px; margin-top:2px}

.topbar-actions{display:flex; gap:10px; align-items:center}

.statusbar{
  max-width:var(--max);
  margin:10px auto 0;
  padding:10px 14px;
  width:calc(100% - 20px);
  border-radius:999px;
  background:rgba(255,210,102,.12);
  border:1px solid rgba(255,210,102,.20);
  color:#ffe6aa;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.status-close{
  background:transparent;
  border:0;
  color:inherit;
  font-size:18px;
  cursor:pointer;
  padding:0 6px;
  line-height:1;
}

.content{
  width:100%;
  max-width:var(--max);
  margin:0 auto;
  padding:14px 12px 24px;
}

.view{display:none}
.view-active{display:block}

.card{
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border:1px solid var(--line);
  border-radius:var(--radius2);
  padding:16px;
  box-shadow:var(--shadow);
}

.card.inner{
  background:rgba(255,255,255,.03);
  box-shadow:none;
}

.card + .card{margin-top:12px}

.card-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.card-actions{display:flex; gap:10px; align-items:center}

.h1{font-size:28px; line-height:1.14; margin:0 0 10px}
.h2{font-size:18px; margin:0 0 6px}
.h3{font-size:15px; margin:0 0 6px}
.muted{color:var(--muted)}
.hint{margin-top:12px; color:var(--muted2); font-size:13px}

.hero{display:flex; gap:16px; align-items:stretch}
.hero-left{flex:1; min-width:280px}
.hero-right{width:380px; min-width:280px; display:flex; flex-direction:column; gap:12px}

.hero-actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:12px}
.hero-badges{display:flex; gap:8px; flex-wrap:wrap; margin-top:12px}

.badge{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  color:var(--muted);
  font-size:12px;
}

.statgrid{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:10px;
}
.stat{
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  border-radius:16px;
  padding:12px;
}
.stat-num{
  font-weight:800;
  font-size:18px;
}
.stat-label{
  color:var(--muted);
  font-size:12px;
  margin-top:4px;
}

.mini-preview{
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px;
  background:rgba(255,255,255,.03);
}
.mini-title{font-weight:700; margin-bottom:8px}
.mini-list{display:flex; flex-direction:column; gap:8px}

.grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:12px;
}

.split{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:12px;
}

.list{display:flex; flex-direction:column; gap:10px}
.list.scroll{max-height:520px; overflow:auto; padding-right:6px}
.list.scroll::-webkit-scrollbar{width:10px}
.list.scroll::-webkit-scrollbar-thumb{background:rgba(255,255,255,.10); border-radius:999px}

.item{
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px;
  background:rgba(255,255,255,.03);
  cursor:pointer;
  transition:transform .06s ease, border-color .2s ease, background .2s ease;
}
.item:hover{transform:translateY(-1px); border-color:rgba(124,92,255,.35)}
.item-title{font-weight:800}
.item-meta{color:var(--muted); font-size:12px; margin-top:4px}
.item-tags{display:flex; gap:6px; flex-wrap:wrap; margin-top:8px}
.tag{
  font-size:11px;
  padding:4px 8px;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--muted);
  background:rgba(255,255,255,.02);
}

.btn{
  border:1px solid var(--line);
  border-radius:999px;
  padding:10px 14px;
  cursor:pointer;
  font-weight:700;
  color:var(--text);
  background:rgba(255,255,255,.03);
  transition:transform .06s ease, border-color .2s ease, background .2s ease;
}
.btn:active{transform:translateY(1px)}
.btn-primary{
  border-color:rgba(124,92,255,.55);
  background:linear-gradient(135deg, rgba(124,92,255,.95), rgba(0,212,255,.65));
}
.btn-secondary{
  border-color:rgba(0,212,255,.35);
  background:rgba(0,212,255,.10);
}
.btn-ghost{
  background:transparent;
  border-color:rgba(255,255,255,.14);
  color:var(--muted);
}
.btn[disabled]{opacity:.55; cursor:not-allowed}

.form{display:flex; flex-direction:column; gap:12px}
.row{display:flex; gap:10px; flex-wrap:wrap}
.row-actions{align-items:center}
.spacer{flex:1}

.field{display:flex; flex-direction:column; gap:6px; flex:1; min-width:220px}
.label{color:var(--muted); font-size:12px}

.input{
  width:100%;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  color:var(--text);
  outline:none;
}
.input:focus{border-color:rgba(124,92,255,.55)}

.chips{display:flex; gap:8px; flex-wrap:wrap}
.chip{
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.02);
  color:var(--muted);
  cursor:pointer;
  user-select:none;
  font-size:12px;
  font-weight:700;
}
.chip-active{
  border-color:rgba(124,92,255,.55);
  color:var(--text);
  background:rgba(124,92,255,.18);
}

.filters{display:flex; flex-direction:column; gap:10px; margin-bottom:10px}

.map-wrap{position:relative}
.city-map{
  width:100%;
  height:auto;
  border-radius:18px;
  border:1px solid var(--line);
  overflow:hidden;
}
.map-legend{
  display:flex;
  gap:8px;
  align-items:center;
  margin-top:10px;
  color:var(--muted);
  flex-wrap:wrap;
}
.dot{width:10px;height:10px;border-radius:99px; display:inline-block}
.dot-1{background:#7c5cff}
.dot-2{background:#00d4ff}
.dot-3{background:#2ce5c0}
.legend-text{margin-right:10px; font-size:12px}

.poi-marker{cursor:pointer}
.poi-marker circle{filter:url(#glow)}
.poi-label{font-size:12px; fill:rgba(255,255,255,.85); opacity:.85}

.details-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.details-actions{display:flex; gap:10px; flex-wrap:wrap}
.details-desc{margin:0 0 10px; color:rgba(243,246,255,.92)}
.details-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.kv{
  border:1px solid var(--line);
  border-radius:16px;
  padding:10px;
  background:rgba(255,255,255,.02);
}
.k{display:block; color:var(--muted); font-size:12px}
.v{display:block; margin-top:6px; font-weight:700}

.timeline{margin-top:12px; display:flex; flex-direction:column; gap:10px}
.step{
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px;
  background:rgba(255,255,255,.02);
}
.step-top{display:flex; justify-content:space-between; gap:10px; align-items:flex-start}
.step-title{font-weight:800}
.step-sub{color:var(--muted); font-size:12px; margin-top:4px}
.step-meta{color:rgba(0,212,255,.85); font-weight:800; font-size:12px; white-space:nowrap}

.chat{display:flex; flex-direction:column; gap:10px}
.chat-log{
  height:420px;
  overflow:auto;
  padding:8px;
  border-radius:18px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.02);
}
.msg{
  display:flex;
  gap:10px;
  margin:10px 4px;
  align-items:flex-start;
}
.bubble{
  max-width:78%;
  padding:10px 12px;
  border-radius:16px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
}
.msg.me{justify-content:flex-end}
.msg.me .bubble{
  background:rgba(124,92,255,.18);
  border-color:rgba(124,92,255,.35);
}
.msg.ai .bubble{
  background:rgba(0,212,255,.10);
  border-color:rgba(0,212,255,.20);
}
.bubble .small{color:var(--muted); font-size:12px; margin-top:6px}

.chat-form{display:flex; gap:10px}
.chat-form .input{flex:1}
.chat-quick{display:flex; gap:8px; flex-wrap:wrap}
.quick{
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.02);
  color:var(--muted);
  cursor:pointer;
  font-weight:700;
  font-size:12px;
}
.chat-foot{font-size:12px}

.ul{margin:10px 0 0; padding-left:18px}
.ul li{margin:8px 0; color:rgba(243,246,255,.92)}

.footer{margin-top:14px; text-align:center}

.contact{display:flex; flex-direction:column; gap:8px; margin-top:10px}
.contact-row{display:flex; justify-content:space-between; gap:10px; padding:10px; border:1px solid var(--line); border-radius:16px; background:rgba(255,255,255,.02)}
.contact-label{color:var(--muted); font-size:12px}
.contact-value{font-weight:800}

.bottomnav{
  position:fixed;
  left:0; right:0; bottom:0;
  display:flex;
  justify-content:space-around;
  gap:4px;
  padding:10px 10px 12px;
  border-top:1px solid var(--line);
  background:rgba(11,16,32,.85);
  backdrop-filter: blur(12px);
}
.navbtn{
  flex:1;
  border:1px solid transparent;
  background:transparent;
  color:var(--muted);
  border-radius:16px;
  padding:8px 6px;
  display:flex;
  flex-direction:column;
  gap:4px;
  align-items:center;
  cursor:pointer;
}
.navbtn-active{
  color:var(--text);
  border-color:rgba(124,92,255,.35);
  background:rgba(124,92,255,.10);
}
.navicon{font-size:18px; line-height:1}
.navlabel{font-size:11px; font-weight:800}

@media (max-width: 980px){
  .hero{flex-direction:column}
  .hero-right{width:auto}
  .grid{grid-template-columns:1fr}
  .split{grid-template-columns:1fr}
  .details-grid{grid-template-columns:1fr}
  .chat-log{height:360px}
}
