:root{
  --bg:#0b0f14;
  --card:#111823;
  --muted:#a7b0bd;
  --text:#eef2f7;
  --accent:#ffcc00;
  --accent2:#00e58b;
  --danger:#ff4d4d;
  --shadow:0 10px 30px rgba(0,0,0,.35);
  --radius:18px;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:radial-gradient(1200px 700px at 20% 0%, #182033 0%, var(--bg) 55%);
  color:var(--text);
}

.topbar{
  position:sticky;
  top:0;
  z-index:10;
  background:rgba(11,15,20,.75);
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px;
  max-width:1200px;
  margin:0 auto;
}
.brand{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.brand .title{font-weight:800; letter-spacing:.2px}
.brand .subtitle{font-size:12px; color:var(--muted)}

.container{max-width:1200px; margin:0 auto; padding:16px}

.section{
  margin:18px 0 26px;
}
.section h2{
  margin:0 0 10px;
  font-size:16px;
  color:rgba(255,255,255,.9);
  letter-spacing:.2px;
}
.section h2 span{color:var(--accent)}

.grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap:14px;
}

.card{
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.08);
  border-radius:var(--radius);
  padding:14px;
  box-shadow: var(--shadow);
  cursor:pointer;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
  user-select:none;
}
.card:hover{transform: translateY(-2px); border-color: rgba(255,204,0,.35)}
.card.selected{border:2px solid var(--accent); box-shadow: 0 12px 35px rgba(255,204,0,.12)}
.card h3{margin:0 0 6px; font-size:18px}
.card p{margin:0 0 10px; color:var(--muted); font-size:13px; line-height:1.3}
.price{font-weight:800; font-size:16px}
.price .plus{color:var(--accent)}

.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:1px solid rgba(255,255,255,.1);
  padding:8px 12px;
  border-radius:999px;
  color:var(--muted);
  font-size:13px;
}

.footerbar{
  position:sticky;
  bottom:0;
  z-index:10;
  background:rgba(11,15,20,.85);
  backdrop-filter: blur(10px);
  border-top:1px solid rgba(255,255,255,.06);
}
.footerbar-inner{
  max-width:1200px;
  margin:0 auto;
  padding:12px 16px;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.total{
  font-size:18px;
  font-weight:900;
}
.btn{
  border:none;
  border-radius:14px;
  padding:14px 18px;
  font-weight:900;
  cursor:pointer;
}
.btn-primary{background:var(--accent); color:#000}
.btn-primary:disabled{opacity:.45; cursor:not-allowed}
.btn-ghost{background:transparent; color:var(--text); border:1px solid rgba(255,255,255,.15)}

.modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,255,0.3);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  z-index:50;
}
.modal.hidden{display:none}
.modal-box{
  width:100%;
  max-width:520px;
  background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border:1px solid rgba(255,255,255,.12);
  border-radius:22px;
  box-shadow:0 30px 80px rgba(0,0,0,.5);
  padding:18px;
}
.modal-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.modal-title{font-size:18px; font-weight:900}
.modal-close{
  width:42px;height:42px;border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background:transparent;color:var(--text);cursor:pointer;
}
.modal-body{margin-top:12px; color:var(--muted); font-size:14px; line-height:1.4}
.summary{
  margin-top:12px;
  background:rgba(0,0,0,.2);
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  padding:14px;
}
.summary strong{color:var(--text)}
.summary .line{display:flex; justify-content:space-between; gap:10px; padding:4px 0}
.summary .hr{height:1px; background:rgba(255,255,255,.08); margin:10px 0}
.modal-actions{display:flex; gap:10px; margin-top:14px}
.modal-actions .btn{flex:1}

/* Cozinha / Retirada */
.tv-body{
  background:#070a0f;
}
.tv-header{
  background:var(--accent);
  color:#000;
  font-weight:1000;
  text-align:center;
  padding:18px;
  font-size:28px;
  letter-spacing:.8px;
}
.tv-grid{
  padding:18px;
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(280px, 1fr));
  gap:16px;
}
.k-card{
  background:#0d1520;
  border:2px solid rgba(255,204,0,.45);
  border-radius:22px;
  padding:16px;
}
.k-senha{
  font-size:56px;
  font-weight:1000;
  text-align:center;
  margin:0 0 10px;
}
.k-itens{color:var(--muted); font-size:14px; line-height:1.35}
.k-itens strong{color:var(--text)}
.k-footer{display:flex; justify-content:space-between; align-items:center; margin-top:12px; gap:10px}
.k-valor{font-weight:900}
.k-btn{background:var(--accent2); color:#000; border:none; border-radius:14px; padding:12px 14px; font-weight:1000; cursor:pointer; width:100%}

.split{
  display:grid;
  grid-template-columns:1fr 1fr;
  height:calc(100vh - 72px);
}
.col{
  padding:18px;
}
.col h2{
  margin:0 0 12px;
  text-align:center;
  letter-spacing:.6px;
}
.preparo h2{color:var(--accent)}
.pronto h2{color:var(--accent2)}
.senha-tile{
  background:#0d1520;
  border-radius:22px;
  padding:26px 0;
  text-align:center;
  font-size:72px;
  font-weight:1000;
}
.preparo .senha-tile{border:3px solid rgba(255,204,0,.45); opacity:.65}
.pronto .senha-tile{border:3px solid rgba(0,229,139,.55); animation:pulse 1.4s infinite}
@keyframes pulse{0%{transform:scale(1)}50%{transform:scale(1.04)}100%{transform:scale(1)}}

@media (max-width: 860px){
  .split{grid-template-columns:1fr}
}

/* Cozinha */
.kitchen-grid{display:grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap:14px;}
.kitchen-card{background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border:1px solid rgba(255,255,255,.08); border-radius:22px; padding:14px; box-shadow: var(--shadow);} 
.kitchen-senha{font-size:64px; font-weight:1000; text-align:center; margin-bottom:10px; color:var(--accent)}
.kitchen-title{font-weight:900; font-size:18px; margin-bottom:8px}
.kitchen-line{color:var(--muted); font-size:13px; line-height:1.35; margin:4px 0}
.kitchen-line span{color:rgba(255,255,255,.85); font-weight:700}
.kitchen-total{margin-top:10px; font-size:16px; font-weight:900}

.btn-success{background:var(--accent2); color:#000}
.btn.sm{ padding:8px 10px; border-radius:12px; font-size:12px; }

/* Admin */
.admin-grid{display:grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap:14px}
.input{width:100%; background:#0d1520; border:1px solid rgba(255,255,255,.12); color:var(--text); padding:12px 12px; border-radius:14px; outline:none}
.input:focus{border-color:rgba(255,204,0,.55)}
.row{display:flex; gap:10px}
.row > *{flex:1}
.table{width:100%; border-collapse:collapse}
.table th,.table td{border-bottom:1px solid rgba(255,255,255,.08); padding:10px; text-align:left; font-size:14px}
.tag{display:inline-flex; padding:6px 10px; border-radius:999px; font-weight:800; font-size:12px}
.tag-on{background:rgba(0,229,139,.14); color:var(--accent2); border:1px solid rgba(0,229,139,.35)}
.tag-off{background:rgba(255,77,77,.12); color:var(--danger); border:1px solid rgba(255,77,77,.3)}
/* ===== Modal Extras (Touch) ===== */
.extrasBack{
  position:fixed; inset:0; background:rgba(0,0,0,.70);
  display:none; z-index:60; padding:18px;
}
.extrasBack.on{ display:block; }
.extrasModal{
  max-width:560px; margin:6vh auto; background:#121216; border:1px solid var(--stroke);
  border-radius:18px; padding:14px; box-shadow:0 12px 50px rgba(0,0,0,.55);
}
.extrasHead{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.extrasTitle{font-weight:1000;font-size:16px}
.extrasSub{font-size:12px;color:var(--muted);margin-top:4px}
.extrasGrid{
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px; margin-top:12px;
}
@media (max-width:520px){ .extrasGrid{grid-template-columns:1fr;} }
.extraOpt{
  border:1px solid var(--stroke); background:#17171a; color:var(--txt);
  border-radius:14px; padding:12px; cursor:pointer; user-select:none;
}
.extraOpt.on{
  border-color:rgba(255,179,0,.7);
  box-shadow:0 0 0 2px rgba(255,179,0,.12) inset;
}
.extraOpt .nm{font-weight:1000}
.extraOpt .pr{color:var(--muted);font-size:12px;margin-top:6px}
.extrasBox{margin-top:12px}
.extrasBox textarea{
  width:100%; box-sizing:border-box; border-radius:12px; border:1px solid var(--stroke);
  background:#101013; color:var(--txt); padding:12px; outline:none; min-height:90px;
}
.extrasFoot{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.extrasFoot .btn{flex:1}