/* Argeta Café — "Lacivert servis paneli": derin lacivert kabuk, soğuk açık zemin, tek vurgu: kobalt mavi.
   Dokunmatik öncelikli: tüm etkileşim hedefleri en az 48px. */
:root {
  --bg: #EDF1F8; --surface: #FFFFFF; --sunken: #E3E9F4;
  --ink: #0B1B3A; --ink-2: #31446B; --muted: #66779A;
  --line: #DBE3F0; --line-strong: #C3CFE3;
  --side: #0A1730; --side-2: #13264A; --side-3: #1B3262; --side-text: #B9C6E0; --side-muted: #7B8DB3;
  --primary: #2457D6; --primary-hover: #1B44B0; --primary-soft: #E2EAFE; --primary-ring: rgba(36, 87, 214, .22);
  --success: #0F9D78; --success-soft: #D9F3EA;
  --warning: #A86A0C; --warning-soft: #FDF0D2;
  --danger: #CC2F45; --danger-soft: #FBE0E4;
  --secondary: #6F8CC4; --accent: #F2B24C;
  --r-sm: 12px; --r: 16px; --r-lg: 22px;
  --sh1: 0 1px 2px rgba(10, 23, 48, .06);
  --sh2: 0 14px 30px -16px rgba(10, 23, 48, .34);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --display: "Bahnschrift", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --tap: 52px;
}
* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
body { overflow-x: hidden; font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; -webkit-tap-highlight-color: transparent; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
svg.i { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--primary-ring); outline-offset: 2px; border-radius: 10px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.num { font-family: var(--display); font-variant-numeric: tabular-nums; }

/* ---------- Butonlar & form ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--tap); padding: 0 22px;
  border-radius: var(--r-sm); font-weight: 600; font-size: 16px; border: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--sh1);
  transition: background .15s, border-color .15s, transform .1s, box-shadow .15s; white-space: nowrap; }
.btn:hover { background: var(--bg); border-color: #AEBDD8; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 6px 16px -8px rgba(36, 87, 214, .7); }
.btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn.success { background: var(--success); border-color: var(--success); color: #fff; }
.btn.success:hover { filter: brightness(.93); }
.btn.danger { color: var(--danger); border-color: #EBB4BC; background: var(--surface); }
.btn.danger:hover { background: var(--danger-soft); }
.btn.ghost { border-color: transparent; background: transparent; box-shadow: none; }
.btn.ghost:hover { background: var(--sunken); }
.btn.sm { min-height: 48px; padding: 0 18px; font-size: 15px; }
.btn.lg { min-height: 64px; font-size: 18px; border-radius: var(--r); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; box-shadow: none; }
.iconbtn { width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--r-sm); color: var(--ink-2); transition: background .15s, transform .1s; }
.iconbtn:hover { background: var(--sunken); }
.iconbtn:active { transform: scale(.94); }

.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field > label, .field > .lbl { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.input { width: 100%; min-height: 56px; padding: 0 16px; border-radius: var(--r-sm); border: 1.5px solid var(--line-strong);
  background: #fff; font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-ring); }
.hint { font-size: 13px; color: var(--muted); }
.err { background: var(--danger-soft); color: var(--danger); padding: 12px 14px; border-radius: var(--r-sm); font-size: 15px; margin-bottom: 16px; font-weight: 500; }
.check { display: flex; align-items: center; gap: 12px; min-height: 52px; cursor: pointer; font-weight: 500; }
.check input { width: 24px; height: 24px; accent-color: var(--primary); }
.seg { display: inline-flex; padding: 4px; background: var(--sunken); border-radius: 16px; gap: 2px; flex-wrap: wrap; }
.seg button { min-height: 48px; padding: 0 20px; border-radius: 12px; font-weight: 600; font-size: 15px; color: var(--ink-2); transition: background .15s, color .15s; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--primary); box-shadow: 0 1px 3px rgba(10, 23, 48, .16); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 99px; font-size: 13px; font-weight: 600; background: var(--sunken); color: var(--ink-2); }
.badge.ok { background: var(--success-soft); color: var(--success); }
.badge.off { background: var(--sunken); color: var(--muted); }
.badge.warn { background: var(--warning-soft); color: var(--warning); }

/* ---------- Giriş ---------- */
#app { min-height: 100vh; }
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(340px, 5fr) 6fr; }
.login-side { background: var(--side); color: #EAF0FF; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-side::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 55% at 85% 8%, rgba(36, 87, 214, .55), transparent 70%),
    radial-gradient(60% 50% at 0% 100%, rgba(63, 120, 255, .22), transparent 70%),
    repeating-linear-gradient(0deg, transparent 0 63px, rgba(185, 198, 224, .05) 63px 64px),
    repeating-linear-gradient(90deg, transparent 0 63px, rgba(185, 198, 224, .05) 63px 64px); }
.login-side > * { position: relative; }
.brand { display: flex; align-items: center; gap: 14px; font-family: var(--display); font-weight: 700; font-size: 23px; letter-spacing: .01em; }
.brand-mark { width: 44px; height: 44px; border-radius: 13px; background: linear-gradient(145deg, #4A7BF0, var(--primary)); display: grid; place-items: center; color: #fff;
  box-shadow: 0 8px 18px -8px rgba(36, 87, 214, .9), inset 0 1px 0 rgba(255, 255, 255, .3); }
.login-side h2 { font-size: clamp(32px, 3.6vw, 50px); line-height: 1.06; font-weight: 600; max-width: 12ch; }
.login-side h2 em { font-style: normal; color: #8FB0FF; }
.login-side p { color: var(--side-text); margin-top: 16px; max-width: 34ch; font-size: 17px; }
.login-foot { color: var(--side-muted); font-size: 13.5px; }
.login-main { display: grid; place-items: center; padding: 32px 24px; }
.login-card { width: min(420px, 100%); }
.login-card h1 { font-size: 32px; margin-bottom: 6px; }
.login-card .sub { color: var(--muted); margin-bottom: 30px; }
.login-card .brand.m { display: none; color: var(--ink); margin-bottom: 36px; }
.demo-hint { margin-top: 24px; font-size: 13.5px; color: var(--muted); border-top: 1px dashed var(--line-strong); padding-top: 16px; }
.demo-hint code { background: var(--sunken); padding: 2px 7px; border-radius: 6px; color: var(--ink-2); }

/* ---------- Kabuk ---------- */
.shell { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.side { background: linear-gradient(180deg, #0C1B38 0%, var(--side) 100%); color: var(--side-text); display: flex; flex-direction: column; padding: 22px 16px; position: sticky; top: 0; height: 100vh; }
.side .brand { color: #fff; padding: 2px 8px 24px; font-size: 20px; }
.side .brand-mark { width: 40px; height: 40px; }
.nav { display: grid; gap: 4px; overflow-y: auto; scrollbar-width: none; }
.nav-label { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--side-muted); padding: 18px 14px 8px; font-weight: 600; }
.nav button { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 0 16px; border-radius: 14px; color: var(--side-text);
  font-weight: 600; font-size: 16px; text-align: left; position: relative; transition: background .15s, color .15s, transform .1s; }
.nav button:hover { background: var(--side-2); color: #fff; }
.nav button:active { transform: scale(.98); }
.nav button[aria-current="page"] { background: var(--primary); color: #fff; box-shadow: 0 8px 18px -10px rgba(36, 87, 214, .9); }
.nav button.sub { min-height: 48px; margin-left: 20px; padding-left: 16px; font-size: 15px; font-weight: 500; border-radius: 12px; }
.nav button.sub::after { content: ""; position: absolute; left: -10px; top: -6px; bottom: 50%; width: 10px; border-left: 2px solid var(--side-3); border-bottom: 2px solid var(--side-3); border-radius: 0 0 0 8px; }
.nav button.sub .cnt { margin-left: auto; min-width: 26px; padding: 0 8px; border-radius: 99px; background: var(--accent); color: var(--side); font-size: 13px; font-weight: 800; text-align: center; line-height: 24px; }
.subdot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.me { margin-top: auto; padding: 12px; border-radius: 16px; background: var(--side-2); display: flex; align-items: center; gap: 12px; border: 1px solid rgba(185, 198, 224, .08); }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(145deg, #5C86F3, var(--primary)); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; font-family: var(--display); }
.me .nm { color: #fff; font-weight: 600; line-height: 1.2; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me .rl { font-size: 12.5px; color: var(--side-muted); }
.me .meta { min-width: 0; flex: 1; }
.me .iconbtn { color: var(--side-text); }
.me .iconbtn:hover { background: var(--side-3); color: #fff; }

.main { padding: 32px clamp(18px, 3vw, 44px) 56px; min-width: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.page-head h1 { font-size: 34px; line-height: 1.1; }
.page-head p { color: var(--muted); margin-top: 6px; }

/* ---------- Masalar ---------- */
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 26px; box-shadow: var(--sh1), var(--sh2); }
.stat { padding: 22px 30px 24px; display: grid; gap: 4px; align-content: start; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 1px; background: var(--line); }
.stat .sl { font-size: 14px; font-weight: 600; color: var(--muted); }
.stat .sv { font-family: var(--display); font-size: 38px; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.stat .sv small { font-size: 20px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.occ { display: block; height: 8px; border-radius: 99px; background: var(--sunken); overflow: hidden; margin-top: 10px; }
.occ i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #4A7BF0, var(--primary)); transition: width .5s var(--ease); }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.tools { display: flex; gap: 12px; flex-wrap: wrap; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chips button { min-height: 52px; padding: 0 24px; border-radius: 99px; font-weight: 600; font-size: 15.5px; color: var(--ink-2);
  background: var(--surface); border: 1.5px solid var(--line); transition: background .15s, color .15s, border-color .15s, transform .1s; }
.chips button:hover { border-color: var(--line-strong); }
.chips button:active { transform: scale(.97); }
.chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg.vw button { display: inline-flex; align-items: center; gap: 8px; }
.seg.vw svg { width: 19px; height: 19px; }

.area { margin-bottom: 38px; }
.area-title { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.area-title h2 { font-size: 22px; }
.area-count { color: var(--muted); font-size: 14px; }
.area-count b { color: var(--ink); font-family: var(--display); }
.area-bar { flex: 1; max-width: 160px; height: 5px; border-radius: 99px; background: var(--line); overflow: hidden; }
.area-bar i { display: block; height: 100%; background: var(--primary); border-radius: 99px; transition: width .4s var(--ease); }

.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(224px, 1fr)); gap: 18px; }
.tcard { position: relative; text-align: left; display: grid; grid-template-rows: auto 1fr auto; gap: 14px; min-height: 176px; padding: 20px;
  border-radius: var(--r-lg); background: var(--surface); border: 1.5px solid var(--line);
  box-shadow: var(--sh1); transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s; }
.tcard:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--sh2); }
.tcard:active { transform: scale(.985); }
.tc-top { display: flex; justify-content: space-between; align-items: center; }
.tc-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--success-soft); color: var(--success); }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 13px; border-radius: 99px; font-size: 13px; font-weight: 700; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.free { background: var(--success-soft); color: var(--success); }
.pill.busy { background: var(--primary-soft); color: var(--primary-hover); }
.tc-name { font-family: var(--display); font-size: 28px; font-weight: 600; line-height: 1.1; letter-spacing: -.01em; align-self: end; }
.tc-foot { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 15px; font-weight: 600; padding-top: 14px; border-top: 1px solid var(--line); min-height: 74px; }
.tc-foot svg { width: 22px; height: 22px; transition: transform .18s var(--ease); }
.tcard:hover .tc-foot { color: var(--primary); }
.tcard:hover .tc-foot svg { transform: rotate(90deg); }
.tcard.busy { background: linear-gradient(180deg, #F3F7FF 0%, var(--surface) 70%); border-color: #BCCDF7; }
.tcard.busy::before { content: ""; position: absolute; left: 22px; right: 22px; top: -1px; height: 4px; border-radius: 0 0 5px 5px; background: var(--primary); }
.tcard.busy:hover { border-color: var(--primary); }
.tcard.busy .tc-ico { background: var(--primary-soft); color: var(--primary); }
.tc-foot.col { display: grid; gap: 2px; align-content: center; justify-content: stretch; color: var(--ink); }
.tc-total { font-family: var(--display); font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.tc-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; font-size: 14px; font-weight: 500; color: var(--muted); }
.tc-meta span { display: inline-flex; align-items: center; gap: 6px; }
.tc-meta svg { width: 16px; height: 16px; }
.tc-meta .late { color: var(--warning); font-weight: 700; }
.tcard.busy:hover .tc-foot { color: var(--ink); }

/* ---------- Salon planı (3B masa düzeni) ---------- */
.plan-legend { display: flex; align-items: center; gap: 20px; font-size: 14.5px; color: var(--ink-2); margin: -6px 2px 16px; flex-wrap: wrap; font-weight: 500; }
.plan-legend span { display: inline-flex; align-items: center; gap: 8px; }
.plan-legend .muted { margin-left: auto; }
.lg { width: 16px; height: 16px; border-radius: 50%; display: inline-block; }
.lg.free { background: #2FA98C; box-shadow: 0 2px 0 #1F7A65; }
.lg.busy { background: var(--primary); box-shadow: 0 2px 0 #16358D; }

.room { margin-bottom: 38px; border-radius: 26px; overflow: hidden; border: 1px solid #B9C7E0; background: #DCE6F5;
  box-shadow: var(--sh1), 0 24px 44px -26px rgba(10, 23, 48, .45); }
.room-wall { display: flex; align-items: baseline; gap: 14px; padding: 20px 30px 22px; color: #EAF0FF; position: relative;
  background:
    repeating-linear-gradient(90deg, transparent 0 118px, rgba(185, 198, 224, .07) 118px 120px),
    linear-gradient(180deg, #08142B 0%, #14294F 100%);
  border-bottom: 9px solid #2F4C86; box-shadow: inset 0 -12px 16px -12px rgba(0, 0, 0, .55); }
.room-wall h2 { font-size: 24px; color: #fff; }
.room-wall span { font-size: 14px; color: var(--side-text); }
.room-wall b { color: var(--accent); font-family: var(--display); }

.floor { position: relative; padding: 20px 22px 30px; isolation: isolate;
  background: radial-gradient(120% 90% at 50% 0%, #EDF2FB 0%, #DFE8F6 60%, #D0DCF0 100%); }
.floor::before { content: ""; position: absolute; left: -40%; right: -40%; top: 0; bottom: -30%; z-index: -1; transform-origin: 50% 0; transform: perspective(560px) rotateX(38deg);
  background:
    repeating-linear-gradient(90deg, rgba(36, 70, 140, .13) 0 2px, transparent 2px 92px),
    repeating-linear-gradient(0deg, rgba(36, 70, 140, .08) 0 1px, transparent 1px 46px); }
.floor::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 23, 48, .12) 0, transparent 70px), linear-gradient(0deg, rgba(237, 242, 251, .6) 0, transparent 90px); }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(204px, 1fr)); justify-items: center; row-gap: 12px; }

.t3 { --top: #EEF2FA; --top2: #FFFFFF; --edge: #AEBCD6; --chair: #2FA98C; --chair-e: #1F7A65; --ink3: #0B1B3A;
  position: relative; width: 184px; height: 184px; text-align: center; transition: transform .2s var(--ease); }
.t3.busy { --top: #2457D6; --top2: #5585F2; --edge: #16358D; --chair: #14295A; --chair-e: #081633; --ink3: #fff; }
.t3:hover { transform: translateY(-5px); }
.t3:active { transform: translateY(-2px) scale(.97); }
.t3:focus-visible { outline-offset: 0; border-radius: 28px; }
.t3-shadow { position: absolute; left: 50%; top: 96px; width: 156px; height: 42px; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(10, 23, 48, .38), transparent); transition: opacity .2s, transform .2s; }
.t3:hover .t3-shadow { opacity: .6; transform: translateX(-50%) scale(.92); }
.t3-top { position: absolute; z-index: 3; left: 50%; top: 42px; width: 130px; height: 72px; transform: translateX(-50%);
  display: grid; align-content: center; justify-items: center; gap: 1px; border-radius: 50%; color: var(--ink3);
  background: radial-gradient(90% 90% at 35% 25%, var(--top2), var(--top));
  box-shadow: 0 10px 0 var(--edge), 0 13px 3px rgba(10, 23, 48, .2), inset 0 2px 0 rgba(255, 255, 255, .5); }
.t3.sq .t3-top { border-radius: 24px; width: 124px; height: 70px; }
.t3-name { font-family: var(--display); font-size: 16px; font-weight: 700; line-height: 1.1; letter-spacing: .01em; }
.t3-sub { font-size: 12.5px; font-weight: 700; opacity: .8; }
.t3.busy .t3-sub { font-size: 14px; opacity: 1; }

.ch { position: absolute; width: 48px; height: 25px; border-radius: 12px 12px 9px 9px; background: var(--chair); box-shadow: 0 6px 0 var(--chair-e), 0 9px 4px rgba(10, 23, 48, .18); }
.ch::before { content: ""; position: absolute; left: 4px; right: 4px; top: -9px; height: 12px; border-radius: 9px 9px 3px 3px; background: var(--chair); filter: brightness(.9); }
.ch.cb { z-index: 1; left: 50%; top: 28px; transform: translateX(-50%); }
.ch.cf { z-index: 4; left: 50%; top: 110px; transform: translateX(-50%); }
.ch.cf::before { display: none; }
.ch.cl, .ch.cr { z-index: 2; width: 27px; height: 42px; top: 54px; border-radius: 12px; }
.ch.cl { left: 12px; } .ch.cr { right: 12px; }
.ch.cl::before, .ch.cr::before { top: 4px; bottom: 4px; width: 9px; height: auto; left: auto; right: auto; border-radius: 5px; }
.ch.cl::before { left: -5px; } .ch.cr::before { right: -5px; }
.t3.s2 .ch.cb { top: 26px; }
.t3-tag { position: absolute; z-index: 5; left: 50%; bottom: 8px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px 4px 9px; border-radius: 99px; background: var(--surface); color: var(--ink-2); font-size: 13px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 3px 8px rgba(10, 23, 48, .25); border: 1px solid var(--line); }
.t3-tag svg { width: 15px; height: 15px; }
.t3-tag.late { background: var(--warning-soft); color: var(--warning); border-color: #EAD08F; }

/* ---------- Sipariş ---------- */
.order-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.order-head .back { width: 56px; height: 56px; border-radius: 16px; background: var(--surface); border: 1.5px solid var(--line); box-shadow: var(--sh1); color: var(--ink); display: grid; place-items: center; transition: background .15s, transform .1s; }
.order-head .back:hover { background: var(--bg); }
.order-head .back:active { transform: scale(.94); }
.order-head h1 { font-size: 34px; line-height: 1.05; }
.oh-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.oh-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 13px 5px 11px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.oh-chip svg { width: 16px; height: 16px; color: var(--primary); }
.oh-chip.live { background: var(--primary-soft); border-color: #BCCDF7; color: var(--primary-hover); }

.order { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 26px; align-items: start; }
.order > section { min-width: 0; }
.cats { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 14px; margin-bottom: 8px; scrollbar-width: none; }
.cats button { min-height: 56px; padding: 0 26px; border-radius: 18px; border: 1.5px solid var(--line); font-weight: 600; font-size: 16.5px; white-space: nowrap; background: var(--surface); color: var(--ink-2);
  box-shadow: var(--sh1); display: inline-flex; align-items: center; gap: 10px; transition: background .15s, color .15s, transform .1s, border-color .15s; }
.cats button:hover { border-color: var(--line-strong); }
.cats button:active { transform: scale(.97); }
.cats button[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 8px 18px -10px rgba(36, 87, 214, .85); }
.cats .cn { min-width: 26px; height: 24px; padding: 0 8px; border-radius: 99px; background: var(--sunken); color: var(--ink-2); font-size: 13px; font-weight: 700; display: inline-grid; place-items: center; }
.cats button[aria-pressed="true"] .cn { background: rgba(255, 255, 255, .22); color: #fff; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: 14px; }
.prod { position: relative; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh1);
  display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s, transform .1s; }
.prod:hover { border-color: #AFC2EE; box-shadow: var(--sh2); }
.prod.in { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); }
.prod-main { flex: 1; min-height: 192px; text-align: left; padding: 14px 18px 16px; display: grid; grid-template-rows: auto 1fr auto; gap: 8px; transition: background .12s; }
.prod-main:active { background: var(--primary-soft); }
.prod .pn { font-weight: 600; font-size: 17.5px; line-height: 1.25; letter-spacing: -.005em; align-self: start; }
.prod-foot { display: flex; align-items: center; justify-content: space-between; }
.prod .pp { font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--primary-hover); }
.prod .pa { width: 44px; height: 44px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; transition: background .15s, color .15s, transform .15s var(--ease); }
.prod-main:active .pa { background: var(--primary); color: #fff; transform: scale(1.08); }
.prod-bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; background: var(--primary-soft); border-top: 1px solid #C5D4F8; animation: rise .2s var(--ease); }
.prod-bar button { width: 52px; height: 48px; border-radius: 13px; background: #fff; color: var(--primary-hover); display: grid; place-items: center; box-shadow: var(--sh1); transition: transform .1s; }
.prod-bar button:active { transform: scale(.92); }
.prod-bar b { font-family: var(--display); font-size: 22px; color: var(--primary-hover); min-width: 40px; text-align: center; }

.ticket { position: sticky; top: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; display: flex; flex-direction: column; max-height: calc(100vh - 48px); overflow: hidden;
  box-shadow: var(--sh1), 0 24px 48px -28px rgba(10, 23, 48, .5); }
.ticket-h { padding: 20px 24px; background: linear-gradient(180deg, #0F2149, var(--side)); color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ticket-h h2 { font-size: 20px; }
.ticket-h .sub { font-size: 13.5px; color: var(--side-text); margin-top: 2px; display: block; }
.ticket-h .iconbtn { color: #fff; }
.ticket-h .iconbtn:hover { background: var(--side-3); }
.lines { overflow-y: auto; padding: 6px 22px; flex: 1; min-height: 140px; }
.line { display: grid; grid-template-columns: 52px 1fr auto; gap: 4px 12px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line:last-child { border-bottom: 0; }
.line .ln { font-weight: 600; font-size: 17px; line-height: 1.25; }
.line .lp { font-family: var(--display); font-size: 18px; font-weight: 700; text-align: right; }
.line .lu { font-size: 13.5px; color: var(--muted); }
.line .pimg { grid-row: span 2; align-self: center; }
.stepper { display: inline-flex; align-items: center; gap: 4px; grid-column: 2 / 4; justify-self: end; background: var(--bg); border-radius: 16px; padding: 4px; }
.stepper button { width: 52px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: #fff; color: var(--primary-hover); box-shadow: var(--sh1); transition: transform .1s, background .15s; }
.stepper button:hover { background: var(--primary-soft); }
.stepper button:active { transform: scale(.92); }
.stepper b { min-width: 38px; text-align: center; font-family: var(--display); font-size: 19px; }
.empty { color: var(--muted); text-align: center; padding: 40px 14px; }
.empty svg { width: 40px; height: 40px; opacity: .5; margin-bottom: 10px; }
.ticket-f { padding: 20px 22px 22px; border-top: 1px solid var(--line); background: var(--bg); display: grid; gap: 12px; }
.total { display: flex; justify-content: space-between; align-items: baseline; }
.total span { color: var(--ink-2); font-weight: 600; font-size: 16px; }
.total b { font-family: var(--display); font-size: 36px; font-weight: 700; letter-spacing: -.02em; }
.ticket-bar { display: none; }

/* ---------- Kartlar / tablolar ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh1); }
.panel-h { padding: 18px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.panel-h h2 { font-size: 18px; }
.panel-b { padding: 24px; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; padding: 12px 24px; background: var(--bg); }
.tbl td { padding: 16px 24px; border-top: 1px solid var(--line); vertical-align: middle; }
.tbl tr.off td { color: var(--muted); }
.tbl .r { text-align: right; }
.tbl .act { text-align: right; white-space: nowrap; }
.tbl .act .btn + .btn { margin-left: 8px; }
.tbl tbody tr.click { cursor: pointer; }
.tbl tbody tr.click:hover td { background: var(--bg); }
.who { display: flex; align-items: center; gap: 14px; }
.who .avatar { background: var(--primary-soft); color: var(--primary); width: 40px; height: 40px; font-size: 15px; }

/* ---------- Ürün görselleri ---------- */
.pimg { position: relative; display: block; width: 100%; height: 104px; flex: none; }
.pimg .pi-main { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; object-fit: contain; transform: translate(-50%, -50%); filter: drop-shadow(0 8px 8px rgba(10, 23, 48, .18)); transition: transform .25s var(--ease); }
.pimg .pi-badge { position: absolute; left: calc(50% + 14px); top: calc(50% + 6px); width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 4px 5px rgba(10, 23, 48, .28)); transition: transform .25s var(--ease); }
.pimg.has-badge .pi-main { transform: translate(-62%, -54%); }
.prod:hover .pi-main { transform: translate(-50%, -54%) scale(1.06); }
.prod:hover .pimg:has(.pi-badge) .pi-main { transform: translate(-62%, -58%) scale(1.06); }
.prod-main:active .pi-main { transform: translate(-50%, -50%) scale(.94); }
.pimg:has(.pi-badge) .pi-main { transform: translate(-62%, -54%); }
.prod-main:active .pimg:has(.pi-badge) .pi-main { transform: translate(-62%, -54%) scale(.94); }
.pimg.ph { display: grid; place-items: center; font-family: var(--display); font-size: 40px; font-weight: 700; color: var(--primary); }
.pimg.ph::before { content: ""; position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; transform: translate(-50%, -50%); border-radius: 26px; background: var(--primary-soft); z-index: -1; }
.pimg.sm { width: 52px; height: 52px; }
.pimg.sm .pi-main { width: 40px; height: 40px; filter: drop-shadow(0 3px 3px rgba(10, 23, 48, .2)); }
.pimg.sm .pi-badge { width: 22px; height: 22px; left: calc(50% + 6px); top: calc(50% + 4px); filter: drop-shadow(0 2px 2px rgba(10, 23, 48, .3)); }
.pimg.sm:has(.pi-badge) .pi-main { transform: translate(-64%, -56%); }
.pimg.sm.ph { font-size: 22px; }
.pimg.sm.ph::before { width: 44px; height: 44px; border-radius: 14px; }
.who .pimg.sm { width: 56px; }

/* ---------- Sayfalama ---------- */
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 24px; border-top: 1px solid var(--line); }
.pg-info { color: var(--muted); font-size: 14px; font-weight: 500; }
.pg-btns { display: flex; align-items: center; gap: 6px; }
.pg-btns button { min-width: 48px; height: 48px; padding: 0 12px; border-radius: 12px; font-weight: 700; font-size: 15px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-2);
  display: grid; place-items: center; transition: background .15s, transform .1s, border-color .15s; }
.pg-btns button:hover { border-color: var(--line-strong); background: var(--bg); }
.pg-btns button:active { transform: scale(.93); }
.pg-btns button[aria-current="page"] { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 6px 14px -8px rgba(36, 87, 214, .8); }
.pg-btns button[disabled] { opacity: .38; pointer-events: none; }
.pg-next svg { transform: rotate(180deg); }
.pg-gap { min-width: 24px; text-align: center; color: var(--muted); font-weight: 700; }

/* ---------- Raporlar ---------- */
.kpis { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; box-shadow: var(--sh1); }
.kpi .kl { font-size: 14px; color: var(--muted); font-weight: 600; }
.kpi .kv { font-family: var(--display); font-size: 32px; font-weight: 700; margin-top: 6px; line-height: 1.15; }
.kpi.hero { background: linear-gradient(145deg, #12275A, var(--side)); border-color: var(--side); color: #EAF0FF; position: relative; overflow: hidden; }
.kpi.hero::after { content: ""; position: absolute; right: -40px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(closest-side, rgba(63, 120, 255, .5), transparent); }
.kpi.hero .kl { color: var(--side-text); }
.kpi.hero .kv { font-size: 42px; color: #fff; }
.kpi .ks { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.kpi.hero .ks { color: var(--side-text); }
.rgrid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; margin-bottom: 20px; }
.chart { width: 100%; height: auto; display: block; }
.chart text { font-family: var(--font); font-size: 11px; fill: var(--muted); }
.chart .bar { fill: #BFCDEB; transition: fill .15s; }
.chart .bar.peak { fill: var(--primary); }
.chart .bar:hover { fill: var(--ink); }
.chart .grid { stroke: var(--line); stroke-dasharray: 3 4; }
.rank { list-style: none; padding: 0; display: grid; gap: 16px; }
.rank li { display: grid; grid-template-columns: 26px 1fr auto; gap: 6px 12px; align-items: center; }
.rank .ix { font-family: var(--display); color: var(--muted); font-weight: 600; }
.rank .rn { font-weight: 600; }
.rank .rv { font-family: var(--display); font-size: 14.5px; color: var(--ink-2); }
.rank .bar { grid-column: 2 / 4; height: 8px; background: var(--sunken); border-radius: 4px; overflow: hidden; }
.rank .bar i { display: block; height: 100%; background: linear-gradient(90deg, #6F9BF5, var(--primary)); border-radius: 4px; }
.pay { display: grid; gap: 14px; }
.pay-row { display: flex; justify-content: space-between; align-items: center; }
.pay-bar { display: flex; height: 12px; border-radius: 8px; overflow: hidden; background: var(--sunken); margin-bottom: 16px; }
.pay-bar i { display: block; }
.range { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.range .input { min-height: 52px; width: auto; }

/* ---------- Modal / toast ---------- */
.overlay { position: fixed; inset: 0; background: rgba(6, 14, 32, .58); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 16px; z-index: 50; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--surface); border-radius: 26px; width: min(500px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 30px 70px rgba(6, 14, 32, .5); animation: rise .24s var(--ease); }
.modal.wide { width: min(580px, 100%); }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } }
.modal-h { padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.modal-h h2 { font-size: 21px; }
.modal-b { padding: 24px; }
.modal-f { padding: 16px 24px 24px; display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.modal-f .btn { min-height: 56px; }
.paybtns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0 6px; }
.paybtns button { border: 2px solid var(--line-strong); border-radius: var(--r); padding: 26px 8px; display: grid; justify-items: center; gap: 10px; font-weight: 700; font-size: 18px; background: #fff; transition: border-color .15s, background .15s, transform .1s; }
.paybtns button:active { transform: scale(.97); }
.paybtns button svg { width: 34px; height: 34px; }
.paybtns button[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-hover); box-shadow: 0 0 0 4px var(--primary-ring); }
.big-total { text-align: center; padding: 8px 0 2px; }
.big-total b { display: block; font-family: var(--display); font-size: 50px; line-height: 1.1; letter-spacing: -.02em; }
.toast { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); background: var(--side); color: #fff; padding: 14px 24px; border-radius: 16px; z-index: 80; font-weight: 600; box-shadow: 0 14px 34px rgba(6, 14, 32, .4); animation: rise .25s var(--ease); }
.receipt-line { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line-strong); }
.menu-cat { margin-bottom: 20px; }

/* ---------- Mobil alt çubuk ---------- */
.mbar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; grid-template-columns: 1fr 1fr 84px 1fr 1fr; align-items: center;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: var(--side); border-top: 1px solid rgba(185, 198, 224, .12); box-shadow: 0 -10px 30px -12px rgba(6, 14, 32, .5); }
.mb-i { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 60px; border-radius: 16px; color: var(--side-text);
  font-size: 12px; font-weight: 600; transition: background .15s, color .15s, transform .1s; }
.mb-i:active { transform: scale(.94); }
.mb-i[aria-current="page"] { background: var(--primary); color: #fff; }
.mb-cnt { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--accent); color: var(--side); font-size: 12px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--side); }
.mb-fab { justify-self: center; width: 68px; height: 68px; margin-top: -34px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, #5C86F3, var(--primary)); box-shadow: 0 0 0 6px var(--side), 0 12px 24px -8px rgba(36, 87, 214, .9); transition: transform .2s var(--ease); }
.mb-fab svg { width: 28px; height: 28px; }
.mb-fab:active { transform: scale(.92); }
.mb-fab[aria-expanded="true"] { background: linear-gradient(145deg, #1B3262, var(--side-2)); transform: rotate(90deg); }
.mp-bg { position: fixed; inset: 0; z-index: 41; background: rgba(6, 14, 32, .45); animation: fade .15s; }
.mpop { position: fixed; z-index: 42; left: 14px; right: 14px; bottom: calc(100px + env(safe-area-inset-bottom)); max-width: 440px; margin: 0 auto; padding: 14px; background: var(--surface); border-radius: 24px;
  box-shadow: 0 24px 60px -10px rgba(6, 14, 32, .6); animation: rise .22s var(--ease); }
.mpop::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 20px; height: 20px; background: var(--surface); border-radius: 4px; transform: translateX(-50%) rotate(45deg); }
.mp-user { display: flex; align-items: center; gap: 12px; padding: 4px 6px 14px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.mp-user b { display: block; line-height: 1.2; }
.mp-user span:not(.avatar) { font-size: 13px; color: var(--muted); }
.mp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mp-t { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 0 16px; border-radius: 16px; background: var(--bg); border: 1.5px solid var(--line); font-weight: 600; font-size: 15.5px; color: var(--ink); text-align: left; transition: transform .1s, background .15s; }
.mp-t svg { color: var(--primary); width: 24px; height: 24px; }
.mp-t:active { transform: scale(.96); }
.mp-t[aria-current="page"] { background: var(--primary-soft); border-color: #BCCDF7; color: var(--primary-hover); }
.mp-t.out { color: var(--danger); grid-column: 1 / -1; background: var(--surface); border-color: #EBB4BC; justify-content: center; }
.mp-t.out svg { color: var(--danger); }

/* ---------- Duyarlı ---------- */
@media (max-width: 1280px) {
  .order { grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; }
}
@media (max-width: 1100px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi.hero { grid-column: 1 / -1; }
  .rgrid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; padding-bottom: 96px; }
  .mbar { display: grid; }
  .side { display: none; }
  .main { padding-top: 22px; }
  .order { grid-template-columns: minmax(0, 1fr); }
  .ticket { position: fixed; left: 0; right: 0; bottom: 0; top: 14%; max-height: none; border-radius: 26px 26px 0 0; z-index: 60; transform: translateY(105%); transition: transform .28s var(--ease); box-shadow: 0 -20px 50px rgba(6, 14, 32, .4); }
  .ticket.open { transform: none; }
  .ticket-bar { display: flex; position: fixed; left: 12px; width: calc(100% - 24px); bottom: 104px; z-index: 45; box-shadow: 0 14px 30px -10px rgba(36, 87, 214, .8); }
  .order .pgrid { padding-bottom: 80px; }
  .tgrid { grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 14px; }
}
@media (max-width: 760px) {
  .login { grid-template-columns: 1fr; }
  .login-side { display: none; }
  .login-card .brand.m { display: flex; }
  .page-head h1, .order-head h1 { font-size: 28px; }
  .tbl th, .tbl td { padding: 13px 14px; }
  .pager { padding: 14px; justify-content: center; } .pg-info { width: 100%; text-align: center; } .pg-btns button { min-width: 44px; padding: 0 8px; }
  .tbl .hide-s { display: none; }
  .kpi .kv { font-size: 26px; } .kpi.hero .kv { font-size: 34px; }
  .stat { padding: 16px 14px; } .stat .sv { font-size: 26px; } .stat .sv small { font-size: 15px; }
  .toolbar { flex-direction: column; align-items: stretch; } .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; } .chips button { white-space: nowrap; }
  .tools { display: grid; gap: 10px; } .tools .seg { display: grid; grid-template-columns: repeat(3, 1fr); } .tools .seg.vw { grid-template-columns: 1fr 1fr; } .area-bar { display: none; }
  .plan-legend .muted { display: none; } .room-wall { padding: 16px 20px 18px; } .floor { padding: 10px 6px 20px; } .plan-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .t3 { transform: scale(.86); margin: -12px -10px; } .t3:hover { transform: scale(.86) translateY(-4px); }
}
@media (max-width: 480px) {
  .kpis { grid-template-columns: 1fr; }
  .pgrid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .prod-main { min-height: 196px; padding: 10px 14px 14px; } .prod .pn { font-size: 16px; } .pimg { height: 92px; } .pimg .pi-main { width: 80px; height: 80px; } .pimg .pi-badge { width: 40px; height: 40px; }
  .tgrid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tcard { min-height: 154px; padding: 16px; border-radius: 18px; } .tc-name { font-size: 22px; } .tc-ico { width: 40px; height: 40px; } .pill { padding: 4px 9px; font-size: 12px; }
  .stat .sl { font-size: 12px; } .stat .sv { font-size: 21px; }
  .modal-f .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media print {
  .side, .page-head .btn, .range { display: none !important; }
  .shell { display: block; } body { background: #fff; }
  .room { break-inside: avoid; }
}

/* ---------- Ürün resmi seçici ---------- */
.imgpick { display: flex; gap: 16px; align-items: center; }
.imgpick .box { width: 116px; height: 116px; flex: none; border-radius: 16px; border: 1.5px dashed var(--line-strong); background: var(--bg); display: grid; place-items: center; overflow: hidden; isolation: isolate; }
.imgpick .box .pimg { height: 104px; }
.imgpick-act { display: grid; gap: 6px; justify-items: start; }
.pimg .pi-up { width: 100%; height: 100%; max-width: 100px; max-height: 100px; border-radius: 12px; object-fit: cover; }
.pimg.sm .pi-up { width: 44px; height: 44px; border-radius: 10px; }

/* ---------- Salon planı: bölümler yan yana ---------- */
.rooms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.rooms .room { margin-bottom: 0; }
.rooms .plan-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.rooms .room-wall { padding: 18px 24px 20px; }
.rooms .floor { padding: 16px 10px 26px; }
@media (max-width: 1100px) { .rooms { grid-template-columns: 1fr; } }

/* ---------- Uygulama yükle (PWA) ---------- */
.install { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: auto; margin-bottom: 10px; padding: 11px 14px; text-align: left; border-radius: 12px;
  background: var(--primary); color: #fff; transition: filter .15s, transform .1s; }
.install:hover { filter: brightness(1.1); }
.install:active { transform: translateY(1px); }
.install span { display: grid; line-height: 1.25; }
.install b { font-size: 14px; }
.install small { font-size: 12px; opacity: .85; }
.install + .me { margin-top: 0; }
@media (max-width: 900px) { .install { display: none; } }

.pimg .pi-photo { width: 104px; height: 104px; }
.pimg.sm .pi-photo { width: 48px; height: 48px; }

/* ---------- Masa şekilleri ---------- */
.t3.rc .t3-top { width: 156px; height: 70px; border-radius: 22px; }
.t3.rc .t3-shadow { width: 178px; }
.t3.rc .ch.cb { left: 38px; transform: none; }
.t3.rc .ch.cb2 { z-index: 1; left: 98px; top: 28px; }
.t3.rc .ch.cf { left: 38px; transform: none; }
.t3.rc .ch.cf2 { z-index: 4; left: 98px; top: 110px; }
.t3.rc .ch.cf2::before { display: none; }
.t3.rc .ch.cl { left: 0; } .t3.rc .ch.cr { right: 0; }
.t3.sq.s2 .t3-top, .t3.rd.s2 .t3-top { width: 112px; }

.shapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.shape { display: grid; justify-items: center; gap: 6px; padding: 12px 8px 10px; border-radius: var(--r); border: 1.5px solid var(--line-strong); background: #fff; font-weight: 600; font-size: 13.5px; color: var(--ink-2); transition: border-color .15s, background .15s; }
.shape svg { fill: #DCE5F6; stroke: var(--line-strong); stroke-width: 1.5; }
.shape:hover { border-color: var(--primary); }
.shape[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-hover); }
.shape[aria-pressed="true"] svg { fill: var(--primary); stroke: var(--primary-hover); }
.seatseg button[disabled] { opacity: .35; pointer-events: none; }
.tprev { display: grid; place-items: center; height: 214px; margin-top: 4px; border-radius: var(--r); overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, #EDF2FB, #D0DCF0); }
.tprev .t3 { pointer-events: none; transform: scale(.9); }
.shape-lbl { display: inline-flex; align-items: center; gap: 10px; }
.shape-lbl svg { width: 30px; height: 22px; fill: #CBD8EF; stroke: #9DB0D6; stroke-width: 1.5; }

/* ---------- Modal düzeni: başlık/alt çubuk sabit, yalnızca içerik kayar ---------- */
body.modal-open { overflow: hidden; }
.overlay { overscroll-behavior: contain; }
.modal { display: flex; flex-direction: column; overflow: hidden; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); }
.modal > form { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
.modal-h, .modal-f { flex: none; }
.modal-b { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.modal-f { border-top: 1px solid var(--line); padding: 14px 24px; background: var(--surface); }
.modal-f .btn { min-height: 48px; }
.modal.wide:has(.tm) { width: min(700px, 100%); }
.tm { display: grid; grid-template-columns: minmax(0, 1fr) 236px; gap: 24px; align-items: start; }
.tm .field { margin-bottom: 14px; }
.tm-side { display: grid; gap: 8px; position: sticky; top: 0; }
.tm-side .lbl { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.tm .tprev { height: 236px; margin: 0; }
.tm .tprev .t3 { transform: scale(.88); }
.tm .shapes { gap: 8px; }
.tm .shape { padding: 10px 4px 8px; font-size: 13px; }
@media (max-width: 640px) {
  .overlay { padding: 8px; align-items: end; }
  .modal { max-height: calc(100dvh - 16px); border-radius: 22px; }
  .modal-h { padding: 16px 18px; } .modal-b { padding: 18px; } .modal-f { padding: 12px 18px; }
  .tm { grid-template-columns: 1fr; gap: 6px; }
  .tm-side { position: static; order: -1; } .tm .tprev { height: 190px; }
}

/* Tablo işlem düğmeleri: aynı yükseklik, aynı dikey hiza */
.tbl td.act { white-space: nowrap; }
.tbl td.act .btn { height: 44px; min-height: 44px; padding-top: 0; padding-bottom: 0; vertical-align: middle; box-sizing: border-box; }
.tbl td.act .btn + .btn { margin-left: 8px; }

/* ---------- Masa yönetimi: filtre + şekil önizlemesi ---------- */
.ta-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.seg-n { margin-left: 4px; padding: 1px 8px; border-radius: 99px; background: rgba(10, 23, 48, .08); font-size: 12px; font-weight: 700; }
.seg button[aria-pressed="true"] .seg-n { background: var(--primary-soft); color: var(--primary-hover); }
.ta-area .input { min-height: 46px; width: auto; min-width: 190px; }
.shape-lbl { gap: 14px; }
.shape-lbl .sl-t { display: grid; line-height: 1.25; }
.shape-lbl .sl-t small { color: var(--muted); font-size: 13px; }
.tmini { position: relative; display: block; width: 96px; height: 68px; flex: none; overflow: hidden; border-radius: 12px; background: radial-gradient(120% 90% at 50% 0%, #EDF2FB, #D0DCF0); }
.tmini .t3 { position: absolute; left: 50%; top: -9px; margin: 0; transform: translateX(-50%) scale(.5); transform-origin: top center; pointer-events: none; }
.tmini .t3-top > * { display: none; }
.tr.off .tmini, .tbl tr.off .tmini { opacity: .55; filter: grayscale(.6); }

/* ---------- Yakınlaştırma (0,5x / 1x / 2x) ---------- */
.seg.zm button { min-width: 52px; font-variant-numeric: tabular-nums; }
.tools .seg.zm { display: inline-flex; }
.t3 { zoom: var(--tz, 1); }
.tmini .t3, .tprev .t3 { zoom: 1; }
.plan-grid { grid-template-columns: repeat(auto-fill, minmax(calc(204px * var(--tz, 1)), 1fr)); row-gap: calc(12px * var(--tz, 1)); }
.rooms .plan-grid { grid-template-columns: repeat(auto-fill, minmax(calc(150px * var(--tz, 1)), 1fr)); }
.tgrid { grid-template-columns: repeat(auto-fill, minmax(calc(224px * var(--tz, 1)), 1fr)); gap: calc(18px * var(--tz, 1)); }
.tcard { zoom: var(--tz, 1); }
@media (max-width: 900px) { .tgrid { grid-template-columns: repeat(auto-fill, minmax(calc(176px * var(--tz, 1)), 1fr)); } }
@media (max-width: 640px) { .tgrid { grid-template-columns: repeat(auto-fill, minmax(calc(140px * var(--tz, 1)), 1fr)); } .rooms .plan-grid { grid-template-columns: repeat(auto-fill, minmax(calc(150px * var(--tz, 1)), 1fr)); } }

/* ---------- Masa yerleşimi: hücre = masanın gerçek ayak izi, üst üste binme yok ---------- */
.plan-grid, .rooms .plan-grid { grid-template-columns: repeat(auto-fill, minmax(calc(184px * var(--tz, 1)), 1fr)); column-gap: 0; row-gap: calc(10px * var(--tz, 1)); justify-items: center; }
.floor, .rooms .floor { padding: 22px 14px 32px; }
@media (max-width: 640px) {
  .plan-grid, .rooms .plan-grid { grid-template-columns: repeat(auto-fill, minmax(calc(160px * var(--tz, 1)), 1fr)); row-gap: calc(6px * var(--tz, 1)); }
}
