:root {
  color-scheme: light;
  --bg: #f5f6f8;
  --paper: #ffffff;
  --ink: #0b0c10;
  --ink-2: #3d4150;
  --muted: #8a8f9c;
  --line: #e9ebf0;
  --line-2: #d8dbe3;
  --fill: #f1f2f5;
  --accent: #2b59ff;
  --accent-2: #1f45d6;
  --accent-soft: #edf1ff;
  --danger: #e5484d;
  --ok: #12a150;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.04);
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px -6px rgba(16, 24, 40, 0.10);
  --r: 20px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  font-size: 15px;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; }
[hidden] { display: none !important; }

/* ---------- tipografi ---------- */
.display {
  font-weight: 700;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin: 0;
}
.display em, h1 em { font-style: normal; color: var(--accent); }
h1 { font-weight: 700; font-size: 40px; line-height: 1.05; letter-spacing: -0.04em; margin: 0; }
h2 { font-weight: 650; font-size: 19px; line-height: 1.2; letter-spacing: -0.02em; margin: 0; }
.eyebrow { font-size: 13px; font-weight: 500; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.lede { font-size: 16px; color: var(--ink-2); margin: 0; }
.metric b, .pc-table .main, .tbl .num { font-variant-numeric: tabular-nums; }

/* ---------- temel ---------- */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px 80px; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.stack > * + * { margin-top: 14px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

label { display: block; font-size: 13px; font-weight: 500; color: var(--ink-2); margin-bottom: 6px; }
input, select {
  width: 100%;
  font: inherit;
  font-size: 15px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--fill);
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
input::placeholder { color: #a3a8b4; }
input:hover, select:hover { background: #ebedf1; }
input:focus, select:focus { outline: none; background: var(--paper); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(43, 89, 255, 0.14); }

.btn, button {
  font: inherit;
  font-weight: 550;
  font-size: 14px;
  height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.12s var(--ease), background 0.15s, border-color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.btn:hover, button:hover { background: #fafbfc; border-color: #c9cdd7; }
.btn:active, button:active { transform: scale(0.97); }
.btn.primary, button.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover, button.primary:hover { background: #22242c; }
.btn.accent, button.accent { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(43,89,255,.2), 0 6px 16px -4px rgba(43,89,255,.45); }
.btn.accent:hover, button.accent:hover { background: var(--accent-2); }
button.danger { color: var(--danger); }
button.danger:hover { border-color: #f3b3b5; background: #fff5f5; }
button.big, .btn.big { width: 100%; height: 52px; font-size: 16px; border-radius: 14px; }
button.ghost { border-color: transparent; background: none; box-shadow: none; color: var(--muted); }
button.ghost:hover { color: var(--ink); background: var(--fill); }
button:disabled { opacity: 0.45; cursor: default; transform: none; }

.err { color: var(--danger); font-size: 14px; }
.err:empty { display: none; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 550;
  background: #e8f7ee; color: var(--ok);
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.off { background: var(--fill); color: var(--muted); }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 8px; background: var(--fill); font-size: 12px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.badge.full { background: #e8f7ee; color: var(--ok); }

/* ---------- üst bar / marka ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  height: 64px;
  background: rgba(245, 246, 248, 0.8);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.brand {
  display: inline-flex; align-items: center;
  font-size: 16px; font-weight: 700; letter-spacing: -0.03em; text-decoration: none;
}
.brand::before {
  content: "";
  margin-right: 9px;
  width: 26px; height: 26px; border-radius: 8px;
  background:
    radial-gradient(circle, #fff 2.2px, transparent 2.6px) 3px 3px / 10px 10px,
    var(--accent);
}
.brand em { font-style: normal; color: var(--muted); font-weight: 500; }

/* ---------- toggle ---------- */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; margin: 0; font-size: 14px; color: var(--ink); font-weight: 550; height: 40px; padding: 0 14px 0 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); }
.switch input { appearance: none; -webkit-appearance: none; width: 36px; height: 22px; padding: 0; border-radius: 999px; background: var(--line-2); border: 0; position: relative; cursor: pointer; transition: background 0.2s; flex: none; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform 0.2s var(--ease); }
.switch input:checked, .switch input:checked:hover { background: var(--ok); }
.switch input:checked::after { transform: translateX(14px); }
.switch input:hover { background: var(--line-2); }
.switch input:focus { box-shadow: none; border: 0; }

/* ---------- segment kontrol / sekmeler ---------- */
.tabs, .seg {
  display: inline-flex; gap: 2px; padding: 4px;
  background: #e9ebf0; border-radius: 14px;
  overflow-x: auto; max-width: 100%; scrollbar-width: none;
}
.tabs { margin: 28px 0 22px; }
.tabs::-webkit-scrollbar, .seg::-webkit-scrollbar { display: none; }
.tabs button, .seg button {
  height: 34px; border: 0; border-radius: 10px; background: none; box-shadow: none;
  padding: 0 14px; color: var(--ink-2); font-size: 14px; font-weight: 550;
}
.tabs button:hover, .seg button:hover { background: rgba(255,255,255,.5); }
.tabs button.on, .seg button.on { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(16,24,40,.08), 0 1px 1px rgba(16,24,40,.04); }
.tabs button:active, .seg button:active { transform: none; }

/* =========================================================
   KROKİ
   ========================================================= */
.floor {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 4 / 3;
  container-type: inline-size;
  background:
    radial-gradient(circle at center, #dfe2e9 1px, transparent 1.4px) 0 0 / 4cqw 4cqw,
    #fafbfc;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.floor .stage {
  position: absolute; left: 50%; top: 3.5%; transform: translateX(-50%);
  width: 40%; height: 6.5%;
  background: var(--ink); color: #fff;
  border-radius: 1.4cqw;
  display: grid; place-items: center;
  font-size: max(9px, 1.4cqw); font-weight: 600; letter-spacing: 0.2em;
}
.floor .door {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 12%; height: 1%; background: var(--line-2); border-radius: 4px 4px 0 0;
}
.floor .door::after {
  content: "Giriş"; position: absolute; bottom: 200%; left: 50%; transform: translateX(-50%);
  font-size: max(9px, 1.3cqw); font-weight: 500; color: var(--muted);
}

.tbl {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 11.5%;
  aspect-ratio: 1;
  background: var(--paper);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line-2), 0 2px 4px rgba(16,24,40,.05), 0 6px 16px -6px rgba(16,24,40,.12);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  line-height: 1;
  transition: transform 0.35s var(--ease), background 0.2s, opacity 0.3s, box-shadow 0.2s;
  z-index: 1;
}
.tbl.rect { width: 17%; aspect-ratio: 1.8; border-radius: 1.6cqw; }
.tbl .num { font-weight: 700; font-size: 3.2cqw; letter-spacing: -0.04em; white-space: nowrap; }
.tbl .num.long { font-weight: 600; font-size: 1.4cqw; letter-spacing: -0.01em; white-space: normal; padding: 0 6%; }
.tbl .sub { font-size: max(8px, 1.2cqw); font-weight: 550; color: var(--muted); margin-top: 0.5cqw; font-variant-numeric: tabular-nums; }
.chair {
  position: absolute;
  transform: translate(-50%, -50%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #e3e6ec;
  transition: background 0.2s;
}
.chair.on { background: var(--accent); }

.tbl.dim { opacity: 0.45; }
.tbl.mine {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 1px var(--accent), 0 8px 24px -4px rgba(43, 89, 255, 0.55);
  transform: translate(-50%, -50%) scale(1.2);
  z-index: 3;
  opacity: 1;
}
.tbl.mine .sub { color: rgba(255, 255, 255, 0.75); }
.tbl.mine .chair { background: #9fb3ff; }
.tbl.mine::before {
  content: "";
  position: absolute; inset: -45%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43,89,255,.25), transparent 65%);
  animation: glow 2s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}
@keyframes glow {
  0%, 100% { transform: scale(0.85); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; }
}
@container (max-width: 520px) {
  .tbl { width: 14%; }
  .tbl.rect { width: 20%; }
  .tbl .num { font-size: 4.2cqw; }
}
.tbl.full .sub { color: var(--ok); }
.floor.edit .tbl { cursor: grab; }
.floor.edit .tbl:active { cursor: grabbing; }
.floor.edit .tbl.sel { box-shadow: 0 0 0 2px var(--accent), 0 0 0 7px rgba(43,89,255,.15), 0 6px 16px -6px rgba(16,24,40,.2); }
.floor.edit .tbl.sel .chair { background: #c5d1ff; }

.legend { display: flex; gap: 18px; justify-content: center; font-size: 12px; color: var(--muted); margin-top: 12px; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #e3e6ec; margin-right: 6px; }
.legend i.on, .legend i.mine { background: var(--accent); }

/* =========================================================
   KATILIMCI SAYFASI
   ========================================================= */
body.guest { background: var(--paper); min-height: 100vh; }
.guest-wrap { max-width: 460px; margin: 0 auto; padding: 0 20px 60px; }
.guest-head { display: flex; align-items: center; justify-content: space-between; height: 64px; margin-bottom: 24px; }
.guest-head .eyebrow { height: 28px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 999px; background: var(--fill); color: var(--ink-2); font-size: 12px; font-weight: 550; }
.guest-head .eyebrow:empty { display: none; }

.reveal > * { opacity: 0; animation: rise 0.6s var(--ease) forwards; }
.reveal > *:nth-child(1) { animation-delay: 0.04s; }
.reveal > *:nth-child(2) { animation-delay: 0.10s; }
.reveal > *:nth-child(3) { animation-delay: 0.16s; }
.reveal > *:nth-child(4) { animation-delay: 0.22s; }
.reveal > *:nth-child(5) { animation-delay: 0.28s; }
.reveal > *:nth-child(6) { animation-delay: 0.34s; }
.reveal > *:nth-child(7) { animation-delay: 0.40s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* form: dolgulu alan + yüzen etiket */
.join-form > .eyebrow {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px;
  border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600;
}
.field { position: relative; margin-top: 10px; }
.field:first-child { margin-top: 28px; }
.field input { height: 64px; padding: 24px 16px 8px; font-size: 18px; font-weight: 550; border-radius: 16px; }
.field label {
  position: absolute; left: 17px; top: 21px; margin: 0;
  font-size: 16px; font-weight: 450; color: var(--muted);
  pointer-events: none; transition: all 0.18s var(--ease);
}
.field input:focus + label, .field input:not(:placeholder-shown) + label { top: 11px; font-size: 12px; font-weight: 550; }
.field input:focus + label { color: var(--accent); }
.join-form button.big { margin-top: 20px; }
.join-form .fine { text-align: center; margin-top: 14px; }

/* biniş kartı */
.placecard { filter: drop-shadow(0 18px 24px rgba(43, 89, 255, 0.25)) drop-shadow(0 2px 4px rgba(16, 24, 40, 0.08)); }
.placecard > div {
  position: relative; color: #fff;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.2), transparent 55%),
    linear-gradient(160deg, #3d68ff, #2449ec);
}
.placecard > .pc-bottom { background: linear-gradient(160deg, #2a52f4, #1d3fd8); }
.pc-top {
  border-radius: 26px 26px 0 0;
  padding: 22px 24px;
  --notch: radial-gradient(circle 12px at 0 100%, transparent 11.5px, #000 12px) left / 51% 100% no-repeat,
           radial-gradient(circle 12px at 100% 100%, transparent 11.5px, #000 12px) right / 51% 100% no-repeat;
  -webkit-mask: var(--notch); mask: var(--notch);
}
.pc-bottom {
  border-radius: 0 0 26px 26px;
  padding: 20px 24px 22px;
  --notch: radial-gradient(circle 12px at 0 0, transparent 11.5px, #000 12px) left / 51% 100% no-repeat,
           radial-gradient(circle 12px at 100% 0, transparent 11.5px, #000 12px) right / 51% 100% no-repeat;
  -webkit-mask: var(--notch); mask: var(--notch);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
}
.pc-bottom::before {
  content: ""; position: absolute; top: 0; left: 20px; right: 20px;
  border-top: 2px dashed rgba(255,255,255,.3);
}
.placecard .eyebrow { color: rgba(255,255,255,.72); }
.pc-name { font-size: 30px; font-weight: 700; line-height: 1.08; letter-spacing: -0.04em; margin-top: 4px; word-break: break-word; }
.pc-name em { font-style: normal; }
.pc-table { line-height: 0.82; text-align: right; }
.pc-table .pre { display: block; font-size: 13px; font-weight: 500; color: rgba(255,255,255,.72); margin-bottom: 8px; }
.pc-table .main { display: inline-block; font-size: 104px; font-weight: 800; letter-spacing: -0.07em; margin-right: 4px; }
.pc-table .main.long { font-size: 40px; letter-spacing: -0.04em; margin-right: 0; }
.pc-when .big-s { font-size: 22px; font-weight: 700; line-height: 1; margin-top: 6px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pc-table .main.pop { animation: pop 0.45s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.9); } to { opacity: 1; transform: none; } }

/* oturum seçici */
.sessions { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 18px -20px 0; padding: 2px 20px 4px; }
.sessions::-webkit-scrollbar { display: none; }
.sessions button {
  flex: 1 0 auto; flex-direction: column; align-items: flex-start; gap: 2px;
  height: auto; border-radius: 14px; padding: 10px 14px 11px; min-width: 96px;
  background: var(--fill); border-color: transparent; box-shadow: none;
}
.sessions button:hover { background: #e9ebf0; border-color: transparent; }
.sessions button span { font-size: 12px; color: var(--muted); font-weight: 500; }
.sessions button b { font-weight: 650; font-size: 16px; line-height: 1.2; letter-spacing: -0.02em; }
.sessions button.on { background: var(--ink); color: #fff; }
.sessions button.on span { color: rgba(255,255,255,.6); }

.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin: 32px 0 12px; }
.sec-head h2 { font-size: 18px; }

.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.people li {
  display: flex; align-items: center; gap: 10px;
  background: var(--fill); border-radius: 14px;
  padding: 8px 10px; font-size: 14px; font-weight: 550; min-width: 0;
}
.people li span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 650;
  background: var(--paper); color: var(--ink-2);
  box-shadow: 0 0 0 1px var(--line);
}
.people .empty { grid-column: 1 / -1; justify-content: center; color: var(--muted); font-weight: 450; background: none; border: 1.5px dashed var(--line-2); padding: 16px; }
.not-me { display: flex; margin: 32px auto 0; font-size: 13px; }

.loading { display: grid; place-items: center; height: 50vh; }
.dots { display: flex; gap: 6px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: blink 1s infinite; }
.dots i:nth-child(2) { animation-delay: 0.15s; }
.dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 50% { opacity: 0.2; transform: scale(0.8); } }

/* =========================================================
   ADMIN
   ========================================================= */
.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 18px 0 8px; }
.crumb { font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; }
.crumb:hover { color: var(--ink); }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }
.metric { padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); }
.metric b { display: block; font-weight: 700; font-size: 32px; line-height: 1; margin-top: 10px; letter-spacing: -0.04em; }
.metric b small { font-size: 18px; color: var(--muted); font-weight: 500; letter-spacing: -0.02em; }
.metric b.good { color: var(--ok); }
.metric b.warn { color: var(--danger); }
@media (max-width: 640px) { .metrics { grid-template-columns: 1fr 1fr; } }

.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }

.side { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
@media (max-width: 860px) { .side { grid-template-columns: 1fr !important; } }
.panel-sticky { position: sticky; top: 80px; }

.floor-card { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 12px; box-shadow: var(--shadow-sm); }
.floor-card .floor { border: 0; border-radius: 16px; }

.seat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 20px; }
.seat-card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 16px; box-shadow: var(--shadow-sm); }
.seat-card .hd { display: flex; align-items: center; justify-content: space-between; }
.seat-card .hd b { font-weight: 650; font-size: 16px; letter-spacing: -0.02em; }
.seat-card .bar { height: 4px; border-radius: 4px; background: var(--fill); margin: 12px 0; overflow: hidden; }
.seat-card .bar i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.seat-card .bar i.full { background: var(--ok); }
.names { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.names li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.names .avatar { width: 24px; height: 24px; font-size: 10px; background: var(--fill); box-shadow: none; }

table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th, table.list td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.list tr:last-child td { border-bottom: 0; }
table.list th { color: var(--muted); font-weight: 500; font-size: 13px; background: #fafbfc; }
table.list td:first-child { font-weight: 600; }
table.list tbody tr:hover td { background: #fafbfc; }
.scroll-x { overflow-x: auto; padding: 0; }

.event-list { display: grid; gap: 10px; }
.event-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  padding: 16px 18px; text-decoration: none; box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s, border-color 0.2s;
}
.event-card:hover { transform: translateY(-1px); box-shadow: var(--shadow); border-color: var(--line-2); }
.event-card .ic {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 15px; letter-spacing: -0.03em;
}
.event-card .nm { font-size: 16px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.25; }
.event-card .arrow { color: var(--muted); transition: transform 0.2s var(--ease); }
.event-card:hover .arrow { transform: translateX(3px); color: var(--ink); }
.empty-state { text-align: center; padding: 50px 20px; border: 1.5px dashed var(--line-2); border-radius: var(--r); color: var(--muted); background: rgba(255,255,255,.5); }

.login { max-width: 380px; margin: 14vh auto 0; }
.login .card { margin-top: 26px; padding: 24px; }

/* QR afiş */
.qr-layout { display: grid; grid-template-columns: minmax(280px, 400px) 1fr; gap: 36px; align-items: start; }
@media (max-width: 760px) { .qr-layout { grid-template-columns: 1fr; } }
.poster {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  aspect-ratio: 1 / 1.414;
  padding: 10% 9% 9%;
  display: flex; flex-direction: column; justify-content: space-between;
  container-type: inline-size;
  position: relative; overflow: hidden;
}
.poster::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2.2cqw; background: var(--accent); }
.poster .eyebrow { font-size: 3.4cqw; font-weight: 600; color: var(--accent); }
.poster .p-title { font-size: 10cqw; font-weight: 800; line-height: 0.98; letter-spacing: -0.05em; margin-top: 2.5cqw; }
.poster .p-title em { font-style: normal; color: var(--accent); }
.poster .qr-frame { align-self: center; width: 62%; padding: 3.5cqw; border-radius: 5cqw; background: var(--paper); box-shadow: 0 0 0 1px var(--line), 0 4cqw 8cqw -3cqw rgba(16,24,40,.18); }
.poster img { display: block; width: 100%; image-rendering: pixelated; }
.poster .p-cta { font-size: 6.6cqw; font-weight: 750; line-height: 1.05; letter-spacing: -0.04em; }
.poster .p-sub { font-size: 3cqw; color: var(--muted); margin-top: 1.8cqw; line-height: 1.4; }
code.url { font-family: var(--mono); word-break: break-all; background: var(--fill); padding: 12px 14px; border-radius: 12px; display: block; font-size: 13px; }
.note { font-size: 13px; background: #fff7e6; color: #8a5a00; padding: 12px 14px; border-radius: 12px; border: 1px solid #fde7b0; }

@media print {
  @page { margin: 12mm; }
  body { background: #fff; }
  .noprint, .topbar, .tabs, .metrics { display: none !important; }
  .card, .seat-card, .floor-card { box-shadow: none; }
  .poster { border: 0; box-shadow: none; width: 100%; max-width: none; height: 96vh; aspect-ratio: auto; }
  .qr-layout { display: block; }
  .seat-card { break-inside: avoid; }
  #printSess { display: block !important; margin-bottom: 12px; }
}

/* canlı göstergesi */
.live-dot {
  display: inline-flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 12px; border-radius: 12px;
  font-size: 13px; font-weight: 550; color: var(--ok);
  background: #e8f7ee;
}
.live-dot::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor;
  box-shadow: 0 0 0 0 rgba(18, 161, 80, 0.5);
  animation: live 1.8s infinite;
}
.live-dot.off { color: var(--muted); background: var(--fill); }
.live-dot.off::before { animation: none; }
@keyframes live {
  0% { box-shadow: 0 0 0 0 rgba(18, 161, 80, 0.45); }
  70%, 100% { box-shadow: 0 0 0 7px rgba(18, 161, 80, 0); }
}
tr.flash td, li.flash { animation: flash 2.4s var(--ease); }
li.flash { border-radius: 8px; }
@keyframes flash { 0%, 30% { background: var(--accent-soft); } 100% { background: transparent; } }
.people li.flash { animation: flash-fill 2.4s var(--ease); }
@keyframes flash-fill { 0%, 30% { background: var(--accent-soft); box-shadow: 0 0 0 1.5px var(--accent); } 100% { background: var(--fill); box-shadow: 0 0 0 0 transparent; } }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff;
  padding: 12px 18px; border-radius: 14px;
  font-size: 14px; font-weight: 550; white-space: nowrap;
  box-shadow: 0 10px 30px -8px rgba(16, 24, 40, 0.4);
  transition: transform 0.35s var(--ease), opacity 0.35s;
  z-index: 50;
}
.toast.on { transform: translate(-50%, 0); opacity: 1; }

/* elle masa değiştirme */
.lock-ic { width: 13px; height: 13px; display: inline-block; vertical-align: -2px; color: var(--accent); flex: none; }
span.lock-ic { background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 7V5a3 3 0 0 1 6 0v2' fill='none' stroke='black' stroke-width='1.6'/%3E%3Crect x='3' y='7' width='10' height='7' rx='2'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 7V5a3 3 0 0 1 6 0v2' fill='none' stroke='black' stroke-width='1.6'/%3E%3Crect x='3' y='7' width='10' height='7' rx='2'/%3E%3C/svg%3E") center / contain no-repeat; }
.cell-sel { display: flex; align-items: center; gap: 6px; }
select.tsel {
  height: 34px; min-width: 150px; padding: 0 30px 0 10px; font-size: 14px; font-weight: 500;
  border-radius: 10px; background-color: var(--fill); cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%238a8f9c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center; background-size: 14px;
}
select.tsel.locked { background-color: var(--accent-soft); color: var(--accent-2); font-weight: 600; }
button.unlock { height: 30px; width: 30px; padding: 0; border: 0; box-shadow: none; background: none; border-radius: 8px; }
button.unlock:hover { background: var(--fill); }
button.unlock:hover .lock-ic { color: var(--danger); }
.names li[draggable] { cursor: grab; border-radius: 8px; padding: 2px 4px; margin: 0 -4px; }
.names li[draggable]:hover { background: var(--fill); }
.names li .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.names li.dragging { opacity: 0.4; }
.seat-card { transition: border-color 0.15s, box-shadow 0.15s, background 0.15s; }
.seat-card.drop { border-color: var(--accent); background: #fbfcff; box-shadow: 0 0 0 4px rgba(43, 89, 255, 0.12); }
