/* v2 — daha büyük masalar, daha şık kartlar */
:root{
  --bg:#0e1117; --card:#161b22; --muted:#8b97a8; --text:#e6e7ea;
  --primary:#2ea043; --danger:#ef4444; --accent:#6b8afd;
  --open:#ff4d6d; --reserved:#f59e0b; --paid:#10b981; --empty:#334155;
  --chip:#253047;
}
*{box-sizing:border-box} body{margin:0;background:var(--bg);color:var(--text);font:14px/1.5 system-ui,Segoe UI,Roboto,Arial}
a{color:inherit;text-decoration:none}
.container{max-width:1280px;margin:16px auto;padding:0 16px}
.topbar{display:flex;align-items:center;gap:10px;padding:12px 16px;background:linear-gradient(180deg,#121721,#0e1117);border-bottom:1px solid #222}
.topbar .brand{font-weight:700}
.topbar .spacer{flex:1}
.btn{display:inline-flex;align-items:center;gap:6px;border:1px solid #2a3141;border-radius:12px;padding:10px 14px;background:#131827;cursor:pointer}
.btn.primary{background:var(--accent);border-color:var(--accent);color:white}
.alert{background:#3b1f27;border:1px solid #7a2e3c;color:#ffd8dd;border-radius:10px;padding:10px;margin-bottom:10px}
.login-bg{display:flex;min-height:100vh;align-items:center;justify-content:center}
.card.login{width:360px;background:var(--card);padding:22px;border-radius:18px;box-shadow:0 12px 28px rgba(0,0,0,.45)}
.card.login h1{margin:0 0 10px}
.card.login label{display:block;margin:8px 0 4px;color:var(--muted)}
.card.login input{width:100%;padding:12px;border-radius:12px;border:1px solid #2a3141;background:#0f1424;color:var(--text)}
.card.login .primary{width:100%;margin-top:12px}
.card.login .muted{color:var(--muted);font-size:12px;margin-top:8px;text-align:center}

.grid.tables{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:16px}
.grid.tables.big{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:18px}
.table-card{background:var(--card);padding:18px;border-radius:18px;border:1px solid #2a3141;display:block;box-shadow:0 8px 20px rgba(0,0,0,.25)}
.table-card .t-name{font-weight:800;margin-bottom:10px;font-size:18px}
.table-card .t-sub{display:flex;justify-content:space-between;color:var(--muted);font-size:13px}
.table-card.empty{outline:2px dashed var(--empty)}
.table-card.open{background:rgba(255,77,109,.10);border-color:#4c1d2f}
.table-card.reserved{background:rgba(245,158,11,.10);border-color:#55350e}
.table-card.paid{background:rgba(16,185,129,.10);border-color:#134e4a}

.two-col{display:grid;grid-template-columns:1fr 380px;gap:18px}
.catalog .search{width:100%;padding:12px;border-radius:12px;border:1px solid #2a3141;background:#0f1424;color:var(--text);margin-bottom:12px}
.cat-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.chip{background:var(--chip);padding:7px 12px;border-radius:999px;color:#cbd5e1;border:1px solid #334155}
.grid.prods{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:14px}
.prod{background:var(--card);border:1px solid #2a3141;border-radius:16px;padding:12px;display:flex;flex-direction:column;gap:6px;position:relative;box-shadow:0 8px 18px rgba(0,0,0,.25)}
.prod .img{width:100%;padding-top:70%;background:#0e1424 center/cover no-repeat;border-radius:12px}
.prod .p-name{font-weight:800}
.prod .p-price{color:#b8c1d4}
.circle{position:absolute;right:12px;bottom:12px;border-radius:999px;width:38px;height:38px;border:0;background:var(--primary);color:white;font-weight:900;font-size:20px;cursor:pointer}
.prod.hide{display:none}

.cart{background:var(--card);border:1px solid #2a3141;border-radius:16px;padding:14px;position:sticky;top:12px;height:calc(100dvh - 80px);display:flex;flex-direction:column}
.cart h3{margin:0 0 8px}
.cart-list{list-style:none;padding:0;margin:0;flex:1;overflow:auto;border-top:1px solid #2a3141;border-bottom:1px solid #2a3141}
.cart-list li{display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:center;padding:10px;border-bottom:1px solid #202636}
.cart-list .ci-qty button{width:30px;height:30px;border-radius:8px;border:1px solid #334155;background:#0f1424;color:#e6e7ea;cursor:pointer}
.cart .summary{display:grid;grid-template-columns:1fr auto;gap:6px;margin:12px 0;color:#cbd5e1}
.cart .total-row{font-weight:900}
.pay-row{display:flex;gap:10px}
.pay.cash{background:var(--danger);color:white;border-color:transparent}
.pay.card{background:var(--primary);color:white;border-color:transparent}

.table{width:100%;border-collapse:collapse;margin-top:10px}
.table th,.table td{border:1px solid #2a3141;padding:8px}
.table th{background:#141a26}

@media(max-width:980px){
  .two-col{grid-template-columns:1fr}
  .cart{position:static;height:auto}
}
