:root{
  --bg:#0b0f14;
  --card:#111826;
  --muted:#94a3b8;
  --text:#e5e7eb;
  --accent:#22c55e;
  --accent2:#38bdf8;
  --danger:#ef4444;
  --line:#1f2a3a;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 18px;
  --radius2: 14px;
  --max: 1080px;
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  background: radial-gradient(1200px 700px at 20% -10%, rgba(56,189,248,.18), transparent 55%),
              radial-gradient(900px 600px at 110% 10%, rgba(34,197,94,.12), transparent 60%),
              var(--bg);
  color: var(--text);
}
a{color:inherit}
.wrap{max-width:var(--max); margin:0 auto; padding:18px 14px 120px;}
header{
  display:flex; gap:14px; align-items:center; justify-content:space-between;
  padding:14px; background: rgba(17,24,38,.75);
  border:1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: sticky; top: 10px; z-index: 20; backdrop-filter: blur(10px);
}
.brand{display:flex; gap:12px; align-items:center; min-width: 220px;}
.logo{
  width:46px; height:46px; border-radius: 14px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(56,189,248,.25), rgba(34,197,94,.20));
  border:1px solid rgba(148,163,184,.25);
  font-weight:800;
}
.brand h1{margin:0; font-size:16px; line-height:1.1}
.brand p{margin:4px 0 0; color:var(--muted); font-size:12px}
.topActions{display:flex; gap:10px; align-items:center;}
.pill{
  border:1px solid rgba(148,163,184,.25);
  background: rgba(15,23,42,.35);
  padding:10px 12px; border-radius: 999px;
  color: var(--text); font-size: 13px;
  display:flex; gap:8px; align-items:center;
}
.pill strong{font-size:13px}
.btn{
  cursor:pointer; border:none;
  border-radius: 999px;
  padding:10px 12px;
  font-weight:700;
  color: #07120a;
  background: linear-gradient(135deg, var(--accent), #7ef0a5);
  box-shadow: 0 10px 20px rgba(34,197,94,.18);
  display:flex; gap:8px; align-items:center;
  white-space:nowrap;
}
.btn.secondary{
  background: rgba(56,189,248,.12);
  color: var(--text);
  border:1px solid rgba(56,189,248,.25);
  box-shadow:none;
}
.btn.danger{
  background: rgba(239,68,68,.15);
  color: var(--text);
  border:1px solid rgba(239,68,68,.25);
  box-shadow:none;
}
.grid{
  margin-top: 14px;
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 14px;
  align-items:start;
}
@media (max-width: 920px){
  .grid{grid-template-columns:1fr}
  header{flex-wrap:wrap}
  .brand{flex: 1 1 260px}
  .topActions{flex: 1 1 260px; justify-content:flex-end}
}
.panel{
  background: rgba(17,24,38,.72);
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.panelHead{
  padding: 14px;
  border-bottom: 1px solid var(--line);
  display:flex; gap: 10px; align-items:center; justify-content:space-between;
}
.panelHead h2{margin:0; font-size:14px; letter-spacing:.2px}
.panelHead small{color: var(--muted)}
.panelBody{padding: 14px;}
.searchRow{display:flex; gap:10px; flex-wrap:wrap;}
.input{
  flex: 1 1 260px;
  background: rgba(2,6,23,.45);
  border:1px solid rgba(148,163,184,.22);
  color: var(--text);
  padding: 11px 12px;
  border-radius: 12px;
  outline:none;
}
.cats{
  display:flex; gap:8px; overflow:auto; padding: 10px 0 2px;
  scrollbar-width: thin;
}
.chip{
  cursor:pointer;
  border-radius: 999px;
  padding: 8px 12px;
  border:1px solid rgba(148,163,184,.20);
  background: rgba(15,23,42,.30);
  color: var(--text);
  font-size: 13px;
  white-space:nowrap;
  transition: .15s ease;
}
.chip.active{
  border-color: rgba(34,197,94,.35);
  background: rgba(34,197,94,.12);
}
.menu{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  margin-top: 12px;
}
@media (max-width: 560px){
  .menu{grid-template-columns:1fr}
}
.item{
  background: rgba(2,6,23,.35);
  border:1px solid rgba(148,163,184,.18);
  border-radius: var(--radius2);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  min-height: 140px;
}
.thumb{
  height: 92px;
  background: linear-gradient(135deg, rgba(56,189,248,.14), rgba(34,197,94,.12));
  border-bottom: 1px solid rgba(148,163,184,.10);
  position:relative;
}
.thumb img{
  width:100%; height:100%; object-fit:cover; display:block;
  opacity:.95;
}
.badge{
  position:absolute; left:10px; top:10px;
  background: rgba(2,6,23,.60);
  border:1px solid rgba(148,163,184,.18);
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  backdrop-filter: blur(8px);
}
.itemBody{padding: 12px; display:flex; flex-direction:column; gap: 8px; flex:1}
.titleRow{display:flex; gap:10px; align-items:flex-start; justify-content:space-between;}
.item h3{margin:0; font-size: 14px}
.price{font-weight: 900; color:#d1fae5}
.desc{margin:0; color: var(--muted); font-size:12.5px; line-height:1.25}
.itemFoot{display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:auto}
.qty{
  display:flex; align-items:center; gap: 8px;
  border:1px solid rgba(148,163,184,.18);
  background: rgba(15,23,42,.25);
  padding: 6px 8px;
  border-radius: 999px;
}
.qty button{
  width:30px; height:30px;
  border-radius: 999px;
  border:1px solid rgba(148,163,184,.18);
  background: rgba(2,6,23,.35);
  color: var(--text);
  cursor:pointer;
  font-weight: 900;
}
.qty span{min-width: 18px; text-align:center; font-weight:800}
.noteBtn{
  cursor:pointer;
  border:1px solid rgba(56,189,248,.25);
  background: rgba(56,189,248,.10);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space:nowrap;
}

/* Cart */
.cartList{display:flex; flex-direction:column; gap:10px;}
.cartItem{
  display:flex; gap:10px; align-items:flex-start; justify-content:space-between;
  padding: 10px;
  border-radius: 14px;
  background: rgba(2,6,23,.35);
  border:1px solid rgba(148,163,184,.14);
}
.cartItem h4{margin:0; font-size: 13px}
.cartItem p{margin: 3px 0 0; color: var(--muted); font-size:12px}
.cartRight{display:flex; flex-direction:column; align-items:flex-end; gap:6px;}
.mini{display:flex; align-items:center; gap:6px}
.mini button{
  width:28px; height:28px; border-radius: 10px;
  border:1px solid rgba(148,163,184,.18);
  background: rgba(2,6,23,.35);
  color: var(--text);
  cursor:pointer;
  font-weight:900;
}
.totalRow{
  margin-top: 12px;
  display:flex; align-items:center; justify-content:space-between;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: rgba(2,6,23,.25);
}
.totalRow strong{font-size: 16px}
.muted{color: var(--muted)}
.small{font-size: 12px}

/* Floating bar (mobile) */
.floating{
  position: fixed; left: 0; right: 0; bottom: 0;
  padding: 10px 12px;
  background: rgba(2,6,23,.65);
  border-top: 1px solid rgba(148,163,184,.18);
  backdrop-filter: blur(10px);
  z-index: 50;
}
.floatingInner{
  max-width: var(--max);
  margin: 0 auto;
  display:flex; gap: 10px; align-items:center; justify-content:space-between;
}
.hideDesktop{display:none}
@media (max-width: 920px){
  .hideDesktop{display:flex}
}

/* Modal */
.modal{
  position: fixed; inset:0;
  display:none;
  background: rgba(0,0,0,.55);
  z-index: 80;
  padding: 14px;
  align-items:center;
  justify-content:center;
}
.modal.show{display:flex}
.modalCard{
  width: min(560px, 100%);
  border-radius: 18px;
  border:1px solid rgba(148,163,184,.22);
  background: rgba(17,24,38,.95);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.modalHead{
  padding: 14px;
  border-bottom: 1px solid var(--line);
  display:flex; align-items:center; justify-content:space-between; gap: 10px;
}
.modalHead h3{margin:0; font-size: 14px}
.x{
  cursor:pointer;
  border:1px solid rgba(148,163,184,.25);
  background: rgba(2,6,23,.35);
  color: var(--text);
  width: 38px; height: 38px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 900;
}
.modalBody{padding: 14px}
textarea{
  width:100%;
  min-height: 110px;
  resize: vertical;
  background: rgba(2,6,23,.45);
  border:1px solid rgba(148,163,184,.22);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  outline:none;
  font-family: inherit;
}
.row{display:flex; gap:10px; flex-wrap:wrap}
.row .input{flex: 1 1 220px}
.footBtns{
  display:flex; gap:10px; justify-content:flex-end;
  padding: 14px; border-top: 1px solid var(--line);
  background: rgba(2,6,23,.25);
}
