:root{
  --bg:#0b0d12;
  --panel:#111828;
  --line:rgba(215,177,91,.22);
  --gold:#d7b15b;
  --text:#eef2ff;
  --muted:#aab3d1;
  --ok:#2fd27c;
  --bad:#ff4d5a;
  --radius:18px;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto;
}

*{box-sizing:border-box}

body{
  margin:0;
  color:var(--text);
  min-height:100vh;
  background:
    radial-gradient(900px 500px at 20% 0%, rgba(215,177,91,.16), transparent 60%),
    radial-gradient(900px 500px at 80% 0%, rgba(110,170,255,.10), transparent 60%),
    linear-gradient(180deg, #07080b 0%, var(--bg) 60%, #07080b 100%);
  overflow-x:hidden;
}

.bg-capital{
  position:fixed; inset:0;
  pointer-events:none;
  opacity:.18;
  display:flex; align-items:center; justify-content:center;
  filter: drop-shadow(0 20px 70px rgba(0,0,0,.6));
}
.bg-capital svg{width:min(980px, 120vw); height:auto}

header{
  position:sticky; top:0; z-index:10;
  background: linear-gradient(180deg, rgba(11,13,18,.92), rgba(11,13,18,.70));
  backdrop-filter: blur(8px);
  border-bottom:1px solid var(--line);
}

.wrap{max-width:1200px; margin:0 auto; padding:18px;}

.brand{
  display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap;
}
.brand h1{margin:0; letter-spacing:.3px; font-size:20px}
.sub{color:var(--muted); font-size:12px}

.card{
  background: linear-gradient(180deg, rgba(17,24,40,.92), rgba(10,12,18,.92));
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow: 0 14px 40px rgba(0,0,0,.45);
  overflow:hidden;
}

.p{padding:16px}

input, textarea, select{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color:var(--text);
  outline:none;
}

label{display:block; color:var(--muted); font-size:12px; margin:10px 0 6px}

.btn{
  border-radius:14px;
  padding:11px 14px;
  border:1px solid rgba(215,177,91,.35);
  background: rgba(215,177,91,.10);
  color:var(--text);
  cursor:pointer;
  transition:.15s transform, .15s opacity;
  user-select:none;
}
.btn:hover{transform: translateY(-1px)}
.btn:active{transform: translateY(0px); opacity:.9}
.btn.ok{border-color: rgba(47,210,124,.45); background: rgba(47,210,124,.12)}
.btn.bad{border-color: rgba(255,77,90,.55); background: rgba(255,77,90,.12)}
.btn.ghost{background:transparent}

.grid2{display:grid; grid-template-columns: 1fr 1fr; gap:16px;}
@media(max-width: 980px){ .grid2{grid-template-columns:1fr;} }

.muted{color:var(--muted)}
hr{border:none; border-top:1px solid var(--line); margin:12px 0}

.orderLayout{
  display:grid;
  grid-template-columns: 1fr 1fr; /* left bill / right selected */
  gap:16px;
  margin-top:16px;
}
@media(max-width: 980px){ .orderLayout{grid-template-columns:1fr;} }

.selectedBox{
  min-height:220px;
  border:1px dashed rgba(215,177,91,.45);
  border-radius:16px;
  padding:12px;
  background: rgba(215,177,91,.06);
}

.thumbRow{display:flex; gap:10px; flex-wrap:wrap}
.thumb{
  width:74px; height:74px; border-radius:16px; overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  position:relative;
  cursor:pointer;
}
.thumb img{width:100%; height:100%; object-fit:cover}
.badgeQty{
  position:absolute; bottom:6px; right:6px;
  background: rgba(0,0,0,.55);
  border:1px solid rgba(255,255,255,.18);
  padding:2px 7px; border-radius:999px; font-size:12px;
}

.menuStrip{
  display:flex; gap:12px; flex-wrap:wrap;
}
.menuItem{
  width:170px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  overflow:hidden;
  background: rgba(255,255,255,.03);
  cursor:pointer;
  transition:.15s transform;
}
.menuItem:hover{transform: translateY(-2px)}
.menuItem img{width:100%; height:108px; object-fit:cover; display:block}
.menuItem .t{padding:10px}
.menuItem .t b{display:block; font-size:13px}
.menuItem .t span{display:block; color:var(--muted); font-size:12px; margin-top:2px}

.billLine{
  display:flex; justify-content:space-between; gap:10px;
  padding:8px 0;
  border-bottom:1px solid rgba(255,255,255,.08);
  font-size:13px;
}

.table{
  width:100%;
  border-collapse:collapse;
}
.table th, .table td{
  padding:10px 8px;
  border-bottom:1px solid rgba(255,255,255,.08);
  font-size:13px;
}
.table th{color:var(--muted); text-align:right}

.badge{
  font-size:12px;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid rgba(215,177,91,.35);
  background: rgba(215,177,91,.08);
  color: var(--gold);
}