:root{
  --bg:#0b0f14;
  --panel:#0f1620;
  --panel2:#0c121a;
  --text:#e7eef7;
  --muted:#91a0b3;
  --line:#1c2a3a;
  --green:#2ee59d;
  --yellow:#ffd166;
  --red:#ff4d6d;
  --shadow: 0 12px 40px rgba(0,0,0,.35);
  --radius: 16px;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans";
  background: radial-gradient(1200px 600px at 20% 0%, rgba(46,229,157,.08), transparent 60%),
              radial-gradient(900px 500px at 80% 10%, rgba(255,77,109,.06), transparent 55%),
              var(--bg);
  color:var(--text);
}

a{color:inherit; text-decoration:none}
.container{max-width:1100px; margin:0 auto; padding:20px}
.topbar{
  position:sticky; top:0;
  backdrop-filter: blur(10px);
  background: rgba(11,15,20,.72);
  border-bottom:1px solid var(--line);
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 20px;
  z-index:10;
}
.brand{display:flex; gap:10px; align-items:center; font-weight:700}
.logo{display:inline-flex; width:26px; height:26px; align-items:center; justify-content:center; background:var(--panel); border:1px solid var(--line); border-radius:9px}
.nav{display:flex; gap:12px}
.navlink{color:var(--muted); padding:8px 10px; border-radius:10px}
.navlink:hover{background:rgba(255,255,255,.04); color:var(--text)}

.footer{opacity:.7; padding:20px; text-align:center; color:var(--muted); border-top:1px solid var(--line)}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent 120%), var(--panel);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:18px;
  box-shadow: var(--shadow);
}

.narrow{max-width:420px; margin:0 auto}

.pagehead{display:flex; justify-content:space-between; align-items:flex-end; gap:14px; margin:10px 0 18px}
h1{margin:0; font-size:28px; letter-spacing:.2px}
h2{margin:0 0 10px; font-size:18px}
h3{margin:8px 0 8px; font-size:16px}

.muted{color:var(--muted)}
.small{font-size:12px}
.big{font-size:22px; font-weight:800}

.grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:14px;
  margin-bottom:14px;
}
@media (max-width: 980px){ .grid{grid-template-columns: repeat(2, minmax(0, 1fr));} }
@media (max-width: 640px){ .grid{grid-template-columns: 1fr;} }

.grid2{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:14px;
}
@media (max-width: 980px){ .grid2{grid-template-columns:1fr;} }

.storecard{
  display:block;
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent 140%), var(--panel2);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:16px;
  transition: transform .12s ease, border-color .12s ease;
}
.storecard:hover{ transform: translateY(-2px); border-color: rgba(46,229,157,.22); }

.storecard-top{display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:10px}
.store-name{font-weight:800; font-size:16px}
.rating{color:var(--muted); font-weight:700}

.row{display:flex; justify-content:space-between; gap:10px; margin-top:10px}
.kpi{flex:1; padding:10px; border:1px solid var(--line); border-radius:14px; background:rgba(255,255,255,.02)}
.kpi .value{font-weight:800}

.pill{
  display:flex; align-items:center; gap:10px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.02);
}
.dot{width:10px; height:10px; border-radius:999px; background:var(--muted)}
.pill-green .dot{background:var(--green)}
.pill-yellow .dot{background:var(--yellow)}
.pill-red .dot{background:var(--red)}

.form{display:flex; flex-direction:column; gap:10px; margin-top:10px}
label{font-size:12px; color:var(--muted)}
input, select{
  background:rgba(255,255,255,.03);
  border:1px solid var(--line);
  color:var(--text);
  padding:11px 12px;
  border-radius:14px;
  outline:none;
}
select{cursor:pointer}
input:focus, select:focus{border-color: rgba(46,229,157,.35)}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:11px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  color:var(--text);
  cursor:pointer;
  font-weight:800;
}
.btn-primary{border-color: rgba(46,229,157,.35); background: rgba(46,229,157,.12)}
.btn-primary:hover{background: rgba(46,229,157,.18)}
.btn-ghost:hover{background: rgba(255,255,255,.05)}

.alert{padding:10px 12px; border-radius:14px; border:1px solid var(--line); margin:10px 0}
.alert-danger{border-color: rgba(255,77,109,.35); background: rgba(255,77,109,.12)}

.divider{height:1px; background:var(--line); margin:14px 0}
.kpiGrid{display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:10px}
@media (max-width: 640px){ .kpiGrid{grid-template-columns:1fr;} }
.kpiBox{padding:12px; border:1px solid var(--line); border-radius:14px; background:rgba(255,255,255,.02)}

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