/* Black Diamond reception — the original gold-on-green club look. */
:root {
  color-scheme: dark;
  --bg: #060a08;
  --surface-strong: #111b16;
  --ink: #f4efe4;
  --ink-bright: #ffffff;
  --muted: #98a69d;
  --subtle: #6e7d74;
  --line: rgba(212, 175, 55, 0.18);
  --line-soft: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(226, 188, 82, 0.48);
  --gold: #d6b154;
  --gold-bright: #f2d47e;
  --gold-deep: #8c691c;
  --green: #1ea858;
  --green-soft: rgba(30, 168, 88, 0.16);
  --amber: rgba(217, 164, 56, 0.18);
  --amber-ink: #f3c868;
  --red: #d94646;
  --red-soft: rgba(217, 70, 70, 0.16);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
  --radius: 16px;
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.45;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; min-height: 100%;
  background:
    radial-gradient(circle at 18% 0%, rgba(24, 68, 45, 0.28), transparent 44%),
    radial-gradient(circle at 82% 8%, rgba(214, 177, 84, 0.12), transparent 38%),
    linear-gradient(180deg, #080d0b 0%, #050807 100%);
  background-attachment: fixed;
  color: var(--ink);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
a { color: var(--gold-bright); }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; }
h1 { font-family: var(--font-display); font-size: clamp(26px, 3vw, 36px); color: var(--ink-bright); font-weight: 650; }
h2 { font-family: var(--font-display); font-size: 20px; color: var(--ink-bright); margin: 26px 0 12px; }
h3 { font-size: 15px; color: var(--ink-bright); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.eyebrow { margin: 0 0 4px; color: var(--gold); font-size: 11px; font-weight: 750; letter-spacing: 0.14em; text-transform: uppercase; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.grow { flex: 1; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(10px + env(safe-area-inset-top)) calc(22px + env(safe-area-inset-right)) 10px calc(22px + env(safe-area-inset-left));
  background: linear-gradient(180deg, rgba(10, 16, 13, 0.97), rgba(7, 11, 9, 0.93));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; color: inherit; }
.brand-mark { width: 40px; height: 42px; display: inline-grid; place-items: center; flex-shrink: 0; filter: drop-shadow(0 2px 10px rgba(214, 177, 84, 0.35)); }
.brand-mark img { width: 38px; height: 42px; object-fit: contain; }
.brand-title { display: flex; flex-direction: column; line-height: 1.05; }
.brand-title strong {
  font-family: var(--font-display); font-size: 16px; letter-spacing: 0.09em; white-space: nowrap;
  background: linear-gradient(180deg, #fff3c4 0%, #d8b256 60%, #a57c24 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-title span { font-size: 9.5px; letter-spacing: 0.32em; color: var(--gold); margin-top: 2px; }
.brand-context { display: flex; flex-direction: column; padding-left: 14px; margin-left: 4px; border-left: 1px solid var(--line); line-height: 1.15; }
.brand-context strong { font-size: 13px; color: var(--ink-bright); font-weight: 650; }
.brand-context span { font-size: 11px; color: var(--muted); }

.section-nav { display: inline-flex; align-items: center; gap: 6px; padding: 4px; background: rgba(5, 9, 7, 0.78); border: 1px solid var(--line); border-radius: 13px; }
.section-nav a {
  display: inline-flex; align-items: center; gap: 7px; color: var(--muted); text-decoration: none;
  padding: 8px 15px; border-radius: 9px; font-size: 13px; font-weight: 650; border: 1px solid transparent; transition: all 160ms ease;
}
.section-nav a:hover { color: var(--ink-bright); }
.section-nav a.current { color: #161105; background: linear-gradient(180deg, #efd07b 0%, #c89d38 100%); border-color: #f7df94; box-shadow: 0 0 18px rgba(214, 177, 84, 0.35); }

.top-status { display: flex; align-items: center; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 12px; font-size: 11.5px; font-weight: 650;
  background: rgba(22, 101, 52, 0.25); color: #7ef2a9; border: 1px solid rgba(46, 204, 113, 0.35);
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: #2ecc71; box-shadow: 0 0 8px #2ecc71; }
.pill.bad { background: var(--red-soft); color: #fca5a5; border-color: rgba(248, 113, 113, 0.4); }
.pill.bad::before { background: var(--red); box-shadow: 0 0 8px var(--red); }
.pill.wait { background: rgba(255, 255, 255, 0.05); color: var(--muted); border-color: var(--line-soft); }
.pill.wait::before { background: var(--gold); box-shadow: none; }

/* ---------- frame + rail ---------- */
.club-frame { display: grid; grid-template-columns: 200px minmax(0, 1fr); min-height: calc(100dvh - 64px); max-width: 1640px; margin: 0 auto; }
.club-rail { position: relative; border-right: 1px solid var(--line); background: #050806; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.rail-art { position: absolute; inset: 0; }
.rail-art img { width: 100%; height: 100%; object-fit: cover; object-position: center top; opacity: 0.72; }
.rail-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 10, 8, 0.15) 0%, rgba(6, 10, 8, 0.68) 58%, #050807 95%); }
.rail-copy { position: relative; z-index: 2; padding: 22px 18px 28px; display: grid; gap: 16px; }
.rail-motto { margin: 0; font-family: var(--font-display); font-size: 15px; line-height: 1.45; letter-spacing: 0.12em; color: #e9d6a0; }
.rail-clock { display: grid; gap: 3px; padding-top: 10px; border-top: 1px solid var(--line); }
.rail-clock small { font-size: 11px; color: var(--muted); letter-spacing: 0.08em; }
.rail-clock strong { font-size: 26px; font-weight: 700; letter-spacing: 0.03em; color: var(--ink-bright); font-variant-numeric: tabular-nums; }
.rail-quote { margin: 0; font-family: var(--font-display); font-style: italic; font-size: 12px; line-height: 1.5; color: var(--muted); }
.page-shell { min-width: 0; width: 100%; padding: 22px calc(24px + env(safe-area-inset-right)) calc(60px + env(safe-area-inset-bottom)) calc(24px + env(safe-area-inset-left)); }
.loading { color: var(--muted); padding: 40px 0; text-align: center; }

/* ---------- workspace nav ---------- */
.workspace-nav {
  display: flex; gap: 8px; overflow-x: auto; padding: 6px; margin: 16px 0 16px;
  background: rgba(9, 15, 12, 0.88); border: 1px solid var(--line); border-radius: 14px; scrollbar-width: none;
}
.workspace-nav::-webkit-scrollbar { display: none; }
.workspace-nav button {
  display: inline-flex; align-items: center; gap: 7px; border: 1px solid transparent; background: transparent; color: var(--muted);
  padding: 9px 15px; border-radius: 10px; font-weight: 650; font-size: 13px; white-space: nowrap; transition: all 150ms ease;
}
.workspace-nav button:hover { color: var(--ink-bright); background: rgba(214, 177, 84, 0.08); }
.workspace-nav button.active {
  background: linear-gradient(180deg, rgba(214, 177, 84, 0.24) 0%, rgba(160, 118, 30, 0.18) 100%);
  color: var(--gold-bright); border-color: var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255, 240, 190, 0.25), 0 0 16px rgba(214, 177, 84, 0.16);
}
.count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--amber-ink); color: #1a1205; font-size: 12px; text-align: center; font-weight: 800; }

/* ---------- buttons ---------- */
.btn, .ghost, .danger, .gold, .primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 10px; padding: 9px 14px; font-weight: 700; font-size: 13px; min-height: 42px;
  border: 1px solid var(--line-strong); background: rgba(24, 36, 30, 0.9); color: var(--ink); text-decoration: none;
  transition: transform 120ms ease, filter 150ms ease, border-color 150ms ease, background 150ms ease;
}
.btn:hover:not(:disabled) { background: rgba(214, 177, 84, 0.14); color: var(--gold-bright); }
.primary { background: linear-gradient(180deg, #1f9d55 0%, #136c38 100%); color: #fff; border-color: rgba(110, 231, 160, 0.45); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 4px 14px rgba(19, 108, 56, 0.4); }
.gold { background: linear-gradient(180deg, #e7c66a 0%, #b88a28 100%); color: #171103; border-color: #f6df98; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 4px 14px rgba(184, 138, 40, 0.32); }
.danger { background: rgba(125, 30, 30, 0.35); color: #fecaca; border-color: rgba(252, 165, 165, 0.35); }
.ghost { background: rgba(255, 255, 255, 0.04); color: var(--muted); border-color: var(--line-soft); }
.ghost:hover:not(:disabled) { color: var(--ink-bright); border-color: var(--line); }
.primary:hover:not(:disabled), .gold:hover:not(:disabled) { filter: brightness(1.08); }
.small.btn, .small.ghost, .ghost.small, .btn.small { padding: 6px 10px; min-height: 32px; font-size: 12px; }
button:disabled { opacity: 0.42; cursor: not-allowed; filter: grayscale(0.25); }

/* ---------- inputs ---------- */
input, select, textarea {
  width: 100%; border: 1px solid rgba(214, 177, 84, 0.24); border-radius: 10px; padding: 10px 12px; min-height: 42px;
  background: rgba(7, 12, 10, 0.92); color: var(--ink-bright); outline: none; transition: border-color 150ms ease, box-shadow 150ms ease;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold-bright); box-shadow: 0 0 0 3px rgba(214, 177, 84, 0.18); }
label { display: grid; gap: 6px; font-size: 12px; font-weight: 600; color: #d5dfd8; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; align-items: end; }

/* ---------- cards ---------- */
.card { background: linear-gradient(180deg, rgba(16, 26, 21, 0.94) 0%, rgba(10, 16, 13, 0.96) 100%); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.welcome { margin-bottom: 4px; }
.welcome .muted { margin: 4px 0 0; font-size: 13px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 14px 0 12px; }
.stat {
  padding: 12px 14px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(16, 27, 22, 0.95) 0%, rgba(10, 16, 13, 0.98) 100%); border: 1px solid var(--line);
}
.stat.with-icon { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.stat .stat-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0;
  background: rgba(214, 177, 84, 0.12); border: 1px solid rgba(214, 177, 84, 0.3); color: var(--gold-bright); font-size: 20px;
}
.stat > div { min-width: 0; }
.stat span { color: var(--muted); font-size: 12px; display: block; }
.stat strong { display: block; font-size: 24px; font-weight: 750; color: var(--ink-bright); line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat small { color: var(--muted); font-size: 11.5px; display: block; }
.stat.hi strong { color: var(--gold-bright); }

.rates-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 12px 18px; margin-bottom: 6px;
  background: linear-gradient(90deg, rgba(18, 30, 24, 0.95) 0%, rgba(24, 32, 22, 0.92) 100%); border: 1px solid var(--line-strong); border-radius: var(--radius);
}
.rates-kicker { color: var(--gold-bright); font-size: 10px; font-weight: 750; letter-spacing: 0.12em; white-space: nowrap; }
.rates-pills { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.rate-pill { display: inline-flex; align-items: baseline; gap: 5px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(5, 9, 7, 0.62); color: var(--muted); font-size: 12px; white-space: nowrap; }
.rate-pill b { color: var(--ink-bright); font-variant-numeric: tabular-nums; }
.rate-pill.vip { border-color: var(--line-strong); background: rgba(214, 177, 84, 0.1); color: var(--gold-bright); }
.rate-pill.vip b { color: var(--gold-bright); }

/* ---------- floor ---------- */
.floor-section { margin-top: 24px; }
.floor-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.floor-title { display: flex; align-items: center; gap: 12px; }
.floor-title h2 { margin: 0; }
.floor-title p { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; }
.floor-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(30, 168, 88, 0.14); border: 1px solid rgba(30, 168, 88, 0.35); color: #58e88f; font-size: 17px; flex-shrink: 0; }
.floor-icon.vip { background: rgba(214, 177, 84, 0.14); border-color: var(--line-strong); color: var(--gold-bright); }
.floor-count { padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #9fd6b4; background: var(--green-soft); border: 1px solid rgba(46, 204, 113, 0.35); }
.floor-count.vip { color: var(--gold-bright); background: rgba(214, 177, 84, 0.12); border-color: var(--line-strong); }
.tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tables.vip-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }

.table-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 13px; border-radius: 15px; overflow: hidden;
  background: linear-gradient(180deg, rgba(17, 28, 23, 0.96) 0%, rgba(9, 15, 12, 0.99) 100%);
  border: 1px solid rgba(214, 177, 84, 0.2);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.table-card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.65), 0 0 22px rgba(214, 177, 84, 0.12); }
.table-card.playing { border-color: rgba(46, 204, 113, 0.45); box-shadow: inset 0 0 24px rgba(30, 168, 88, 0.08), 0 12px 28px rgba(0, 0, 0, 0.55); }
.table-card.paused { border-color: rgba(242, 212, 126, 0.5); }
.table-card.vip {
  border-color: rgba(214, 177, 84, 0.42);
  background: radial-gradient(circle at 25% 20%, rgba(214, 177, 84, 0.14), transparent 60%), linear-gradient(180deg, rgba(22, 28, 21, 0.96) 0%, rgba(10, 14, 11, 0.99) 100%);
}
.table-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.table-top h3 { font-family: var(--font-display); font-size: 16px; font-weight: 700; }
.table-type { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge {
  display: inline-block; border-radius: 999px; padding: 4px 9px; font-size: 10.5px; font-weight: 750; white-space: nowrap;
  background: rgba(255, 255, 255, 0.07); color: #c2cec6; border: 1px solid rgba(255, 255, 255, 0.12);
}
.badge.free { color: #9fd6b4; border-color: rgba(46, 204, 113, 0.35); background: var(--green-soft); }
.badge.play { background: rgba(22, 130, 67, 0.32); color: #7ef2a9; border-color: rgba(46, 204, 113, 0.45); }
.badge.pause, .badge.unpaid { background: var(--amber); color: var(--amber-ink); border-color: rgba(243, 200, 104, 0.4); }
.badge.vip { background: rgba(214, 177, 84, 0.18); color: var(--gold-bright); border-color: var(--line-strong); }
.badge.void { background: var(--red-soft); color: #fca5a5; border-color: rgba(248, 113, 113, 0.4); }
.badge.paid { color: #9fd6b4; border-color: rgba(46, 204, 113, 0.35); background: var(--green-soft); }

.pic {
  position: relative; width: 100%; padding: 0; border: 1px solid rgba(214, 177, 84, 0.18); border-radius: 11px; overflow: hidden; display: block;
  background: radial-gradient(ellipse at 50% 15%, rgba(235, 195, 98, 0.22), rgba(14, 34, 24, 0.65) 55%, #060a08 100%);
  aspect-ratio: 16 / 10;
}
.pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1); }
button.pic:hover img { transform: scale(1.04); }
.table-card.vip .pic { aspect-ratio: 16 / 9; background: radial-gradient(ellipse at 50% 25%, rgba(242, 204, 108, 0.28), rgba(28, 22, 12, 0.72) 58%, #070908 100%); }
.table-card.vip .pic img { object-fit: contain; padding: 6px 10px; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.75)); }
.pic .hint, .vip-chip { position: absolute; padding: 3px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 700; color: var(--gold-bright); background: rgba(6, 10, 8, 0.82); border: 1px solid var(--line); pointer-events: none; }
.pic .hint { right: 8px; bottom: 7px; }
.vip-chip { left: 8px; top: 8px; border-color: var(--line-strong); }

.meta-strip { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); }
.rate-chip { padding: 3px 10px; border-radius: 999px; background: rgba(214, 177, 84, 0.1); border: 1px solid var(--line); color: var(--gold-bright); font-weight: 700; font-size: 12px; }
.guest-pill { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 11px; background: rgba(5, 9, 7, 0.6); border: 1px solid var(--line); }
.guest-pill span { color: var(--muted); font-size: 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timer { font-size: 26px; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; color: var(--ink-bright); line-height: 1.1; }
.amount { color: var(--gold-bright); font-weight: 750; font-variant-numeric: tabular-nums; }
.money { font-variant-numeric: tabular-nums; white-space: nowrap; }
.card-time { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 11px; background: rgba(5, 9, 7, 0.6); border: 1px solid var(--line); }
.card-time .amount { font-size: 18px; }
.table-card .actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: auto; }
.table-card .actions button { min-height: 40px; padding: 7px 6px; font-size: 12.5px; }
.table-card .actions .wide { grid-column: 1 / -1; }

/* ---------- lists / tables ---------- */
.list { display: grid; gap: 8px; }
.item-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: rgba(20, 31, 26, 0.78); border: 1px solid var(--line-soft); border-radius: 10px; }
.item-row .grow { min-width: 0; }
.item-row small { color: var(--muted); display: block; }
.item-row.edit-row { display: grid; grid-template-columns: 2fr 1fr 1fr auto auto; gap: 10px; align-items: end; }
.data { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.data th, .data td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.data th { color: var(--muted); font-weight: 600; font-size: 12px; }
.data td.num, .data th.num { text-align: right; }
.data tr.click { cursor: pointer; }
.data tr.click:hover td { background: rgba(214, 177, 84, 0.07); }
.scroll { overflow-x: auto; }
.empty { color: var(--muted); padding: 22px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); }
.date-range { display: flex; align-items: center; gap: 8px; }
.date-range input { width: auto; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: rgba(9, 15, 12, 0.88); }
.seg button { border: 0; background: none; padding: 8px 12px; color: var(--muted); font-weight: 650; font-size: 13px; }
.seg button.sel { background: rgba(214, 177, 84, 0.2); color: var(--gold-bright); }

/* ---------- dialogs ---------- */
dialog {
  width: min(600px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; padding: 0; color: var(--ink);
  background: radial-gradient(circle at 22% 10%, rgba(214, 177, 84, 0.12), transparent 45%), linear-gradient(180deg, #101915 0%, #080d0b 100%);
  border: 1px solid var(--line-strong); border-radius: 20px; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.85), 0 0 40px rgba(214, 177, 84, 0.14);
}
dialog::backdrop { background: rgba(3, 6, 5, 0.78); backdrop-filter: blur(8px); }
dialog[open] { animation: bdExpand 280ms cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes bdExpand { from { opacity: 0.3; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }
dialog.vip-dlg { width: min(1080px, calc(100vw - 24px)); border-color: rgba(242, 212, 126, 0.7); box-shadow: 0 30px 90px rgba(0, 0, 0, 0.85), 0 0 60px rgba(214, 177, 84, 0.28); }
dialog.std-dlg { width: min(640px, calc(100vw - 24px)); }
.dlg { padding: 20px 22px; display: grid; gap: 14px; }
.dlg header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.dlg header h3 { font-family: var(--font-display); font-size: 22px; margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.head-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.table-no { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; font-family: var(--font-display); font-weight: 800; font-size: 19px; color: var(--gold-bright); background: rgba(30, 168, 88, 0.16); border: 1px solid rgba(30, 168, 88, 0.4); }
.table-no.vip { background: rgba(214, 177, 84, 0.2); border-color: var(--line-strong); }
.meta-row { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; color: var(--muted); font-size: 12px; }
.meta-row strong { color: var(--ink-bright); }
.close-x { background: none; border: 1px solid var(--line-soft); border-radius: 10px; width: 36px; height: 36px; color: var(--muted); font-size: 20px; line-height: 1; flex-shrink: 0; }
.close-x:hover { color: var(--ink-bright); border-color: var(--line); }

.sheet-grid { display: grid; gap: 16px; }
.vip-dlg .sheet-grid { grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.28fr); align-items: start; }
.col { display: grid; gap: 14px; min-width: 0; }
.panel { padding: 14px 16px; border-radius: 14px; background: rgba(12, 20, 16, 0.92); border: 1px solid var(--line); display: grid; gap: 10px; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.panel-head h3 { font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--gold-bright); }
.panel-head small { color: var(--muted); font-size: 11.5px; }

.live-card { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(12, 20, 16, 0.92); border: 1px solid var(--line); }
.live-card .thumb { width: 96px; flex-shrink: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; background: #0b120f; }
.live-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.live-card .nums { min-width: 0; flex: 1; }
.live-card .timer { font-size: 30px; }
.live-card .amount { font-size: 22px; }
.live-card .sub { color: var(--muted); font-size: 12px; }

.hero-stage { position: relative; }
.hero { position: relative; border-radius: 15px; overflow: hidden; border: 1px solid var(--line-strong); background: radial-gradient(circle at 50% 25%, rgba(242, 204, 108, 0.22), rgba(12, 26, 19, 0.85) 62%, #050807 100%); box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.7); }
.hero img.art { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero img.art.contain { object-fit: contain; padding: 14px; }
.hero-top { position: absolute; left: 10px; right: 10px; top: 10px; display: flex; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.hero-tag { padding: 4px 10px; border-radius: 999px; font-size: 10px; font-weight: 750; letter-spacing: 0.08em; color: #e9d6a0; background: rgba(6, 10, 8, 0.8); border: 1px solid var(--line); }
.hero-tag.gold { color: #171103; background: linear-gradient(180deg, #efd07b, #c89d38); border-color: #f7df94; }
.hero-bottom { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 26px 14px 12px; background: linear-gradient(180deg, transparent, rgba(5, 8, 7, 0.92)); }
.hero-bottom .timer { font-size: 34px; }
.hero-bottom .amount { font-size: 22px; }
.view-switch { display: flex; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--line); background: rgba(7, 11, 9, 0.92); }
.view-switch button { padding: 5px 11px; border-radius: 8px; font-size: 11.5px; font-weight: 650; background: rgba(255, 255, 255, 0.04); color: var(--muted); border: 1px solid var(--line-soft); }
.view-switch button.on { border-color: var(--gold-bright); color: var(--gold-bright); background: rgba(214, 177, 84, 0.14); }

.cat-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.cat-pills button { padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 650; color: var(--muted); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-soft); }
.cat-pills button.on { color: var(--gold-bright); background: rgba(214, 177, 84, 0.16); border-color: var(--line-strong); }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.menu-card { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; background: rgba(20, 31, 26, 0.85); border: 1px solid var(--line-soft); }
.menu-card .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(214, 177, 84, 0.12); border: 1px solid var(--line); font-size: 17px; flex-shrink: 0; }
.menu-card .info { min-width: 0; flex: 1; }
.menu-card .info strong { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-card .info span { color: var(--gold-bright); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.add-btn { padding: 6px 11px; min-height: 34px; border-radius: 9px; font-weight: 750; font-size: 12px; color: #fff; background: linear-gradient(180deg, #1f9d55, #136c38); border: 1px solid rgba(110, 231, 160, 0.45); }
.vip-dlg .add-btn { color: #171103; background: linear-gradient(180deg, #e7c66a, #b88a28); border-color: #f6df98; }
.chip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.chip { text-align: left; padding: 9px 11px; min-height: 52px; border-radius: 10px; background: rgba(20, 31, 26, 0.85); border: 1px solid var(--line-soft); color: var(--ink); font-weight: 650; font-size: 13px; }
.chip small { display: block; color: var(--gold-bright); font-size: 12px; font-variant-numeric: tabular-nums; }
.chip:hover { border-color: rgba(46, 204, 113, 0.5); background: rgba(22, 130, 67, 0.22); }
.cat { color: var(--gold); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: 0.12em; margin: 8px 0 2px; }
.run-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(20, 31, 26, 0.78); border: 1px solid var(--line-soft); }
.run-row .grow { min-width: 0; font-size: 13.5px; }
.run-row small { display: block; color: var(--muted); font-size: 11.5px; }
.qty { padding: 2px 9px; border-radius: 999px; font-weight: 750; font-size: 12px; background: rgba(22, 130, 67, 0.32); color: #7ef2a9; border: 1px solid rgba(46, 204, 113, 0.45); }

.footer-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; position: sticky; bottom: -20px; margin: 0 -22px -20px; padding: 14px 22px 18px; background: linear-gradient(180deg, rgba(8, 13, 11, 0.6), #080d0b 35%); border-top: 1px solid var(--line); }
.footer-bar .btn, .footer-bar .gold, .footer-bar .primary { min-height: 48px; padding: 10px 20px; font-size: 14.5px; }
.footer-bar .done { flex: 1; }
.footer-bar .pay { flex: 1; }
.more summary { color: var(--muted); font-size: 13px; cursor: pointer; padding: 4px 0; }
.more[open] summary { margin-bottom: 10px; }

.bill-lines { display: grid; gap: 7px; font-variant-numeric: tabular-nums; }
.bill-lines > div { display: flex; justify-content: space-between; gap: 10px; }
.bill-lines .total { font-size: 24px; font-weight: 800; color: var(--gold-bright); border-top: 1px solid var(--line); padding-top: 10px; }
.pay-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pay-choices button { min-height: 52px; }
.pay-choices button.sel { outline: 2px solid var(--gold-bright); background: rgba(214, 177, 84, 0.2); color: var(--gold-bright); }

.toast {
  position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 80;
  display: flex; align-items: center; gap: 14px; background: rgba(20, 33, 27, 0.97); border: 1px solid var(--line-strong); color: var(--ink-bright);
  padding: 12px 16px; border-radius: 13px; max-width: calc(100vw - 32px); box-shadow: var(--shadow); font-size: 14px;
}
.toast.error { background: rgba(88, 22, 22, 0.96); border-color: rgba(248, 113, 113, 0.55); color: #fecaca; }
.toast button { background: none; border: 1px solid var(--line-strong); color: var(--gold-bright); border-radius: 8px; padding: 4px 10px; font-weight: 700; }

.login { max-width: 400px; margin: 7vh auto; padding: 28px; display: grid; gap: 14px; text-align: center; }
.login img { margin: 0 auto; }

.receipt { background: #fff; color: #111; border-radius: 10px; padding: 16px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.receipt h4 { margin: 0 0 4px; text-align: center; font-size: 15px; }
.receipt .r { display: flex; justify-content: space-between; gap: 10px; }
.receipt hr { border: 0; border-top: 1px dashed #999; margin: 8px 0; }
@media print {
  html, body { background: #fff !important; }
  body > *:not(dialog) { display: none !important; }
  dialog { position: static; border: 0; max-height: none; width: auto; background: #fff; box-shadow: none; animation: none; }
  dialog::backdrop { display: none; }
  .dlg > *:not(.receipt) { display: none !important; }
  .receipt { padding: 0; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .club-frame { grid-template-columns: minmax(0, 1fr); }
  .club-rail { display: none; }
  .brand-context { display: none; }
}
@media (max-width: 860px) {
  .vip-dlg .sheet-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .topbar { padding-left: 12px; padding-right: 12px; gap: 8px; }
  .section-nav a { padding: 7px 11px; }
  .section-nav .sec-label { display: none; }
  .section-nav a.current .sec-label { display: inline; }
  .pill { padding: 5px 9px; }
  .page-shell { padding-left: 14px; padding-right: 14px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stat, .stat.with-icon { padding: 10px 12px; gap: 10px; }
  .stat .stat-icon { width: 36px; height: 36px; font-size: 16px; }
  .workspace-nav { gap: 2px; padding: 4px; }
  .workspace-nav button { padding: 9px 9px; gap: 4px; font-size: 12.5px; }
  .stat strong { font-size: 18px; }
  .item-row.edit-row { grid-template-columns: 1fr 1fr; }
  .item-row.edit-row label:first-child { grid-column: 1 / -1; }
  .date-range { flex: 1 1 100%; }
  .date-range input { flex: 1; min-width: 0; }
  .tables, .tables.vip-grid { grid-template-columns: minmax(0, 1fr); }
  .dlg { padding: 16px 14px; }
  .footer-bar { margin: 0 -14px -16px; padding: 12px 14px calc(14px + env(safe-area-inset-bottom)); bottom: -16px; }
  .hero-bottom .timer { font-size: 26px; }
  .hero-bottom .amount { font-size: 19px; }
  .hero img.art { aspect-ratio: 16 / 10; }
  .hero-tag { font-size: 9px; padding: 3px 8px; }
  .head-left { align-items: flex-start; }
  .dlg header { align-items: flex-start; }
  .dlg header h3 { font-size: 19px; gap: 6px; }
  .table-no { width: 38px; height: 38px; font-size: 16px; }
  .meta-row { gap: 2px 10px; }
  .meta-row span:first-child { display: none; }
}
@media (max-width: 520px) {
  .brand-title { display: none; }
}
@media (max-width: 420px) {
  .stat span { font-size: 11px; }
  .live-card .thumb { width: 72px; }
  .live-card .timer { font-size: 26px; }
}
