/* ==========================================================================
   Tennessee Jack's — Admin
   Matches design/admin-*.png: black sidebar with red active pill, dark top
   bar, the "Good food. Good music. Good times." banner, white cards on a
   light grey work area, condensed Oswald headings.
   ========================================================================== */
:root {
  --red: #d71920; --red-dark: #a8121a; --red-soft: #fde8e8;
  --side: #121212; --side-2: #1c1c1c; --top: #191a1c;
  --bg: #eef0f2; --card: #ffffff; --ink: #1d1d1f; --text: #3a3a3e; --mute: #7a7d84; --line: #e3e5e8;
  --green: #22a34a; --green-soft: #dcf5e3; --amber: #f2a20d; --amber-soft: #fff4d6; --blue: #2f7de1; --blue-soft: #e3efff;
  --purple: #8b5cf6; --purple-soft: #efe8ff;
  --head: "Oswald", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --side-w: 226px; --top-h: 56px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font-family: var(--body); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-family: var(--head); font-weight: 500; color: var(--ink); line-height: 1.15; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
svg.i { width: 20px; height: 20px; flex: none; }

/* ---------- layout ---------- */
.app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100%; }
.side { background: var(--side); color: #e9e9ea; position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 14px 6px 24px; display: flex; flex-direction: column; gap: 4px; scrollbar-width: thin; scrollbar-color: #333 transparent; }
.side .brand { display: block; padding: 0 12px 10px; }
.side .brand img { width: 186px; height: auto; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6)); }
.side nav { display: grid; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: 14px; padding: 10px 16px; border-radius: 4px; font-size: 1.04rem; color: #e9e9ea; transition: background .15s; }
.side nav a:hover { background: var(--side-2); }
.side nav a.on { background: var(--red); color: #fff; font-weight: 600; box-shadow: 0 4px 14px rgba(215, 25, 32, 0.35); }
.side nav a svg { width: 22px; height: 22px; }
.side nav a .count { margin-left: auto; background: var(--red); color: #fff; font-size: 0.72rem; font-weight: 700; padding: 1px 7px; border-radius: 99px; }
.side nav a.on .count { background: #fff; color: var(--red); }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 40; height: var(--top-h); background: var(--top); color: #fff; display: flex; align-items: center; gap: 18px; padding: 0 18px 0 0; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); }
.top .burger { width: 62px; height: var(--top-h); display: grid; place-items: center; background: none; border: 0; border-right: 1px solid #2c2d30; color: #fff; cursor: pointer; }
.top h1 { color: #fff; font-size: 1.75rem; font-weight: 500; letter-spacing: 0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .spacer { flex: 1; }
.top .viewsite { display: flex; align-items: center; gap: 10px; font-size: 1rem; padding: 8px 14px; border-right: 1px solid #2c2d30; }
.top .viewsite:hover { color: #ffd0d0; }
.who { position: relative; }
.who > button { display: flex; align-items: center; gap: 10px; background: none; border: 0; color: #fff; cursor: pointer; padding: 6px 4px; font-size: 1rem; }
.who > button .av { width: 30px; height: 30px; border-radius: 50%; background: #e9e9ea; color: #191a1c; display: grid; place-items: center; }
.who .menu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; color: var(--ink); min-width: 200px; border-radius: 6px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25); padding: 6px; display: none; }
.who.open .menu { display: block; }
.who .menu a, .who .menu button { display: flex; width: 100%; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 4px; background: none; border: 0; cursor: pointer; text-align: left; }
.who .menu a:hover, .who .menu button:hover { background: var(--bg); }
.who .menu .meta { padding: 8px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-size: 0.85rem; color: var(--mute); }
.who .menu .meta b { display: block; color: var(--ink); font-size: 0.95rem; }

.banner { position: relative; height: 210px; background: #111 url("../assets/img/admin/banner.jpg") center / cover no-repeat; border-bottom: 3px solid #000; }
.banner .welcome { position: absolute; right: 16px; top: 22px; bottom: 22px; width: 350px; max-width: 40%; background: rgba(20, 20, 22, 0.72); backdrop-filter: blur(4px); border-radius: 8px; color: #fff; padding: 22px 30px; display: grid; align-content: center; gap: 6px; }
.banner .welcome p:first-child { font-size: 1.2rem; }
.banner .welcome h2 { color: #fff; font-size: 2rem; font-weight: 600; }
.banner .welcome p + p { font-size: 1rem; color: #ddd; }
.banner.slim { height: 150px; }
.banner.slim .welcome { display: none; }

.content { padding: 14px 16px 40px; display: grid; gap: 14px; align-content: start; }
.page-title { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; justify-content: space-between; padding: 6px 2px; }
.page-title .t { display: flex; gap: 14px; align-items: flex-start; }
.page-title .t svg { width: 34px; height: 34px; color: var(--red); margin-top: 2px; }
.page-title h2 { font-size: 1.9rem; }
.page-title p { color: var(--mute); margin-top: 2px; }

/* ---------- cards ---------- */
.card { background: var(--card); border-radius: 6px; box-shadow: var(--shadow); border: 1px solid #e6e8eb; min-width: 0; }
.card-pad { padding: 16px 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px 10px; }
.card-head h3 { font-size: 1.3rem; display: flex; align-items: center; gap: 10px; }
.card-head h3 svg { width: 22px; height: 22px; color: var(--ink); }
.link { color: var(--red); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; font-size: 0.95rem; white-space: nowrap; background: none; border: 0; cursor: pointer; padding: 0; }
.link:hover { text-decoration: underline; }
.link svg { width: 16px; height: 16px; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; padding: 16px 22px; }
.stat .ic { width: 52px; height: 52px; display: grid; place-items: center; }
.stat .ic svg { width: 46px; height: 46px; }
.stat b { display: block; font-family: var(--head); font-size: 2.1rem; font-weight: 600; color: var(--ink); line-height: 1; }
.stat span { display: block; font-size: 1.12rem; color: var(--text); margin: 4px 0 8px; }

.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 14px; align-items: start; }
.split-wide { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }

/* ---------- lists ---------- */
.rows { padding: 0 18px 10px; }
.row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row .ri svg { width: 28px; height: 28px; }
.row b { display: block; font-weight: 500; color: var(--ink); }
.row small { display: block; color: var(--mute); font-size: 0.86rem; }
.row .when { text-align: right; color: var(--mute); font-size: 0.9rem; line-height: 1.3; }

.ev-row { display: grid; grid-template-columns: 54px 78px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); }
.ev-row:first-child { border-top: 0; }
.datebox { background: #141414; color: #fff; border-radius: 4px; text-align: center; padding: 6px 0; font-family: var(--head); line-height: 1; }
.datebox small { display: block; color: var(--red); font-size: 0.95rem; margin-bottom: 4px; }
.datebox b { font-size: 1.6rem; font-weight: 500; }
.ev-row img { width: 78px; height: 66px; object-fit: cover; border-radius: 3px; }
.ev-row h4 { font-family: var(--body); font-weight: 600; font-size: 0.98rem; }
.ev-row p { color: var(--mute); font-size: 0.88rem; }

.msg-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto 16px; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); cursor: pointer; }
.msg-row:first-child { border-top: 0; }
.msg-row .av { width: 30px; height: 30px; border-radius: 50%; background: #e9eaec; color: #707379; display: grid; place-items: center; }
.msg-row b { font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.msg-row small { display: block; color: var(--mute); font-size: 0.82rem; line-height: 1.35; }

/* bars */
.bars { padding: 2px 18px 14px; display: grid; gap: 8px; }
.bar { display: grid; grid-template-columns: 38px minmax(0, 1fr) minmax(60px, 1fr) 44px; gap: 10px; align-items: center; font-size: 0.92rem; }
.bar.noimg { grid-template-columns: minmax(0, 1fr) minmax(60px, 1.4fr) 50px; }
.bar img { width: 38px; height: 26px; object-fit: cover; border-radius: 3px; }
.bar .track { height: 14px; background: #f1f2f4; border-radius: 2px; overflow: hidden; }
.bar .fill { height: 100%; background: var(--red); border-radius: 2px; }
.bar.blue .fill { background: #4b9be8; }
.bar em { font-style: normal; text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.sample-note { font-size: 0.8rem; color: var(--mute); padding: 0 18px 12px; font-style: italic; }

.quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 2px 16px 16px; }
.quick button, .quick a { display: grid; justify-items: center; gap: 8px; padding: 14px 6px; border: 1px solid var(--line); border-radius: 4px; background: #fff; cursor: pointer; font-size: 0.86rem; color: var(--text); text-align: center; transition: border-color .15s, background .15s; }
.quick button:hover, .quick a:hover { border-color: var(--red); background: #fff8f8; }
.quick svg { width: 28px; height: 28px; color: var(--red); }

.status-list { padding: 0 18px 14px; }
.status-list div { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.status-list div:first-child { border-top: 0; }
.status-list i { width: 12px; height: 12px; border-radius: 50%; background: var(--green); }
.status-list i.off { background: #c9ccd2; }
.status-list span:last-child { color: var(--mute); font-size: 0.9rem; }

/* ---------- pills / badges ---------- */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 3px 12px; border-radius: 4px; font-size: 0.85rem; font-weight: 500; white-space: nowrap; border: 1px solid transparent; }
.pill.green { background: var(--green-soft); color: #18733a; border-color: #b8e6c7; }
.pill.amber { background: var(--amber-soft); color: #a26700; border-color: #f6dc9b; }
.pill.blue { background: var(--blue-soft); color: #1f5fb3; border-color: #b9d4f7; }
.pill.red { background: var(--red-soft); color: #b1141a; border-color: #f7c2c4; }
.pill.grey { background: #f1f2f4; color: #5c6068; border-color: #e1e3e7; }
.pill.purple { background: var(--purple-soft); color: #6a3fd1; border-color: #d8c9fb; }
.cat-pill { display: inline-block; min-width: 76px; text-align: center; padding: 5px 12px; border-radius: 4px; font-size: 0.86rem; }

/* ---------- buttons & controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 4px; border: 1px solid #d4d7dc; background: #fff; color: var(--ink); cursor: pointer; font-size: 0.92rem; font-weight: 500; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { background: #f6f7f8; border-color: #bfc3c9; }
.btn svg { width: 17px; height: 17px; }
.btn.red { background: var(--red); border-color: var(--red); color: #fff; }
.btn.red:hover { background: #e6252c; }
.btn.big { min-height: 44px; font-size: 1.05rem; padding: 0 20px; font-family: var(--head); letter-spacing: 0.02em; }
.btn.ghost-red { color: var(--red); border-color: #f2b6b8; }
.btn.ghost-red:hover { background: #fff3f3; }
.btn.icon { width: 36px; padding: 0; }
.btn.danger { color: var(--red); border-color: var(--red); }
.btn.sm { min-height: 30px; padding: 0 10px; font-size: 0.85rem; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs button { padding: 7px 14px; border-radius: 4px; border: 1px solid #dfe1e5; background: #fff; cursor: pointer; font-size: 0.92rem; color: var(--text); }
.tabs button.on { background: var(--red); border-color: var(--red); color: #fff; font-weight: 600; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px; }
.search { position: relative; flex: 1 1 260px; max-width: 420px; }
.search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--mute); }
.search input { padding-left: 36px; }

input[type=text], input[type=email], input[type=tel], input[type=url], input[type=number], input[type=date], input[type=time], input[type=password], input[type=search], select, textarea {
  width: 100%; min-height: 38px; padding: 8px 12px; border: 1px solid #d4d7dc; border-radius: 4px; background: #fff; font-size: 0.95rem;
}
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(215, 25, 32, 0.12); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23333' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 12px 8px; padding-right: 34px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.field > span i { color: var(--red); font-style: normal; }
.field small { color: var(--mute); font-size: 0.82rem; }
.field .counter { text-align: right; margin-top: -4px; }
.money { position: relative; }
.money::before { content: "$"; position: absolute; left: 1px; top: 1px; bottom: 1px; width: 32px; display: grid; place-items: center; background: #f3f4f6; border-right: 1px solid #d4d7dc; border-radius: 4px 0 0 4px; color: var(--text); }
.money input { padding-left: 42px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--red); }

.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .knob { width: 44px; height: 24px; border-radius: 99px; background: #c9ccd2; position: relative; transition: background .2s; flex: none; }
.switch .knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); transition: transform .2s; }
.switch input:checked + .knob { background: var(--green); }
.switch input:checked + .knob::after { transform: translateX(20px); }
.switch input:focus-visible + .knob { outline: 2px solid var(--red); outline-offset: 2px; }

.star { background: none; border: 0; cursor: pointer; padding: 4px; color: #c8cbd1; }
.star svg { width: 24px; height: 24px; }
.star.on { color: #f5b301; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; min-width: 760px; }
table.data th { text-align: left; font-weight: 600; color: var(--ink); font-size: 0.92rem; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fafbfc; white-space: nowrap; }
table.data th button { background: none; border: 0; font: inherit; color: inherit; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; padding: 0; }
table.data td { padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:hover td { background: #fbfbfc; }
table.data .thumb { width: 58px; height: 44px; object-fit: cover; border-radius: 3px; background: #f0f1f3; }
table.data .noimg { width: 58px; height: 44px; border-radius: 3px; background: #f0f1f3; display: grid; place-items: center; color: #b0b4ba; }
table.data .name b { display: block; font-weight: 600; color: var(--ink); }
table.data .name small { display: block; color: var(--mute); font-size: 0.85rem; max-width: 280px; }
table.data .acts { display: flex; gap: 8px; flex-wrap: nowrap; }
.empty { padding: 34px 18px; text-align: center; color: var(--mute); }
.empty b { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 4px; }

/* ---------- side panels ---------- */
.side-card h3 { font-size: 1.15rem; padding: 14px 16px 6px; }
.legend { padding: 4px 16px 14px; display: grid; gap: 7px; }
.legend div { display: grid; grid-template-columns: 10px 84px 26px minmax(0, 1fr); gap: 8px; align-items: center; font-size: 0.86rem; }
.legend i { width: 10px; height: 10px; border-radius: 50%; }
.legend em { font-style: normal; text-align: right; font-variant-numeric: tabular-nums; }
.legend .track { height: 10px; background: #f1f2f4; border-radius: 2px; overflow: hidden; }
.legend .track span { display: block; height: 100%; }
.mini-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 4px 14px 14px; }
.mini-quick button { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 4px; background: #fff; cursor: pointer; font-size: 0.82rem; text-align: left; }
.mini-quick button:hover { border-color: var(--red); }
.mini-quick svg { width: 22px; height: 22px; color: var(--red); }
.recent { padding: 2px 14px 12px; display: grid; gap: 8px; }
.recent div { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 0.8rem; }
.recent img, .recent .ph { width: 34px; height: 30px; object-fit: cover; border-radius: 3px; background: #f0f1f3; }
.recent b { display: block; font-size: 0.85rem; color: var(--ink); font-weight: 600; }
.recent small { color: var(--mute); }

/* ---------- editor ---------- */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: start; }
.photo-drop { position: relative; border-radius: 6px; overflow: hidden; background: #f0f1f3; aspect-ratio: 4 / 3; display: grid; place-items: center; color: var(--mute); max-width: 100%; }
.photo-drop img { width: 100%; height: 100%; object-fit: cover; }
.photo-drop .change { position: absolute; left: 12px; bottom: 12px; display: inline-flex; gap: 8px; align-items: center; background: rgba(20, 20, 22, 0.85); color: #fff; padding: 8px 14px; border-radius: 4px; cursor: pointer; font-weight: 600; }
.photo-drop.drag { outline: 3px dashed var(--red); outline-offset: -8px; }
.photo-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; font-size: 0.82rem; color: var(--mute); }
.photo-meta button { background: none; border: 0; color: var(--red); cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
.addons { display: grid; gap: 8px; }
.addon { display: grid; grid-template-columns: 18px minmax(0, 1fr) 110px 30px; gap: 8px; align-items: center; }
.addon .grip { color: #b0b4ba; }
.addon button { background: none; border: 0; color: var(--red); cursor: pointer; }
.preview-card { overflow: hidden; }
.preview-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #f0f1f3; }
.preview-card .pv { padding: 12px 14px 16px; display: grid; gap: 6px; }
.preview-card .pv div { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.preview-card .pv h4 { font-size: 1.35rem; font-family: var(--body); font-weight: 700; }
.preview-card .pv strong { color: var(--red); font-size: 1.35rem; }
.preview-card .tags { display: flex; gap: 8px; flex-wrap: wrap; }
.kv { padding: 4px 16px 14px; display: grid; gap: 0; }
.kv div { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); font-size: 0.9rem; }
.kv div:first-child { border-top: 0; }
.kv svg { width: 18px; height: 18px; color: var(--mute); }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; padding-top: 6px; }
.form-actions .left { margin-right: auto; }

/* gallery */
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; padding: 14px; }
.gal figure { margin: 0; position: relative; border-radius: 4px; overflow: hidden; aspect-ratio: 4 / 3; background: #f0f1f3; }
.gal img { width: 100%; height: 100%; object-fit: cover; }
.gal figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; padding: 6px 8px; background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), transparent); color: #fff; font-size: 0.8rem; text-transform: capitalize; }
.gal figcaption button { background: rgba(215, 25, 32, 0.95); color: #fff; border: 0; border-radius: 3px; width: 28px; height: 26px; display: grid; place-items: center; cursor: pointer; }
.gal figcaption button svg { width: 15px; height: 15px; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(10, 10, 12, 0.55); display: grid; place-items: center; padding: 20px; }
.modal .box { background: #fff; border-radius: 8px; width: min(640px, 100%); max-height: calc(100vh - 40px); overflow: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4); }
.modal .box > header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal .box > header h3 { font-size: 1.4rem; }
.modal .box > header button { background: none; border: 0; cursor: pointer; font-size: 1.6rem; line-height: 1; color: var(--mute); }
.modal .box > .body { padding: 18px 20px; display: grid; gap: 14px; }
.modal .box > footer { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--line); background: #fafbfc; }
.detail-grid { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 8px 14px; font-size: 0.95rem; }
.detail-grid dt { color: var(--mute); }
.detail-grid dd { margin: 0; color: var(--ink); }
.quote { background: #f7f8f9; border-left: 3px solid var(--red); padding: 12px 14px; border-radius: 0 4px 4px 0; }

/* toast */
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 120; background: #1d1d1f; color: #fff; padding: 12px 18px; border-radius: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); display: flex; gap: 10px; align-items: center; transform: translateY(20px); opacity: 0; transition: transform .25s, opacity .25s; pointer-events: none; }
.toast.show { transform: none; opacity: 1; }
.toast svg { width: 18px; height: 18px; color: #4ade80; }

.demo-note { display: flex; gap: 10px; align-items: flex-start; background: #fff8e6; border: 1px solid #f6dc9b; color: #6d4c00; border-radius: 6px; padding: 10px 14px; font-size: 0.9rem; }
.demo-note svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }

/* hours */
.hours-grid { display: grid; gap: 0; }
.hours-grid > div { display: grid; grid-template-columns: 120px 1fr 1fr 130px; gap: 12px; align-items: center; padding: 10px 18px; border-top: 1px solid var(--line); }
.hours-grid > div:first-child { border-top: 0; }
.hours-grid b { font-weight: 600; color: var(--ink); }

/* sign-in */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: #0d0d0e url("../assets/img/admin/banner.jpg") center / cover no-repeat; position: relative; }
.login::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); }
.login .box { position: relative; width: min(420px, 100%); background: #fff; border-radius: 10px; padding: 30px 28px; display: grid; gap: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.login .box img { width: 190px; margin: -90px auto 0; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5)); }
.login h1 { text-align: center; font-size: 1.8rem; }
.login p.sub { text-align: center; color: var(--mute); margin-top: -10px; }
.login .err { color: var(--red); font-size: 0.9rem; min-height: 1.2em; }
.login .alt { text-align: center; font-size: 0.9rem; color: var(--mute); }

/* ---------- responsive ---------- */
@media (max-width: 1300px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editor { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  .grid3 { grid-template-columns: 1fr 1fr; }
  .split, .split-wide { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; z-index: 60; width: 260px; transform: translateX(-100%); transition: transform .25s; box-shadow: 20px 0 40px rgba(0, 0, 0, 0.4); }
  .app.nav-open .side { transform: none; }
  .app.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45); z-index: 50; }
  .banner { height: 130px; }
  .banner .welcome { display: none; }
  .banner.slim { height: 90px; }
  .top h1 { font-size: 1.35rem; }
  .top .viewsite span { display: none; }
  .grid3, .grid4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hours-grid > div { grid-template-columns: 1fr 1fr; }
  .hours-grid > div b { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ev-row { grid-template-columns: 50px minmax(0, 1fr) auto; }
  .ev-row img, .ev-row .pill { display: none; }
  .content { padding: 12px 10px 30px; }
  .who > button .nm { display: none; }
  .detail-grid { grid-template-columns: 1fr; }
  .addon { grid-template-columns: minmax(0, 1fr) 90px 30px; }
  .addon .grip { display: none; }
}
@media (min-width: 901px) {
  .app.nav-collapsed { grid-template-columns: 72px minmax(0, 1fr); }
  .app.nav-collapsed .side .brand img { width: 56px; }
  .app.nav-collapsed .side nav a { justify-content: center; padding: 10px 0; }
  .app.nav-collapsed .side nav a span, .app.nav-collapsed .side nav a .count { display: none; }
}

/* ---- fixes after first review ---- */
:root { --side-w: 244px; }
.app { background: linear-gradient(90deg, var(--side) var(--side-w), transparent var(--side-w)); }
.side nav a { white-space: nowrap; font-size: 1rem; }
.banner { background: #111 url("../assets/img/admin/banner.jpg") left center / auto 100% no-repeat; }
.banner::before { content: ""; position: absolute; inset: 0 0 0 auto; width: 100%; z-index: 0;
  background: linear-gradient(90deg, transparent 0, transparent 60%, rgba(17, 17, 17, 0) 60%), url("../assets/img/admin/banner-fill.jpg") right center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent calc(var(--bw, 1160px) - 140px), #000 var(--bw, 1160px)); mask-image: linear-gradient(90deg, transparent 0, transparent calc(var(--bw, 1160px) - 140px), #000 var(--bw, 1160px)); }
.banner { --bw: calc(210px * 931 / 209); }
.banner.slim { --bw: calc(150px * 931 / 209); }
.banner .welcome { z-index: 1; }
@media (max-width: 900px) { .banner { --bw: calc(130px * 931 / 209); } .banner.slim { --bw: calc(90px * 931 / 209); } }
.stat .link { color: var(--red); display: inline-flex; margin: 0; }
.stat .link svg { width: 16px; height: 16px; }
.form-grid { align-items: start; }
.ev-row { grid-template-columns: 50px 64px minmax(0, 1fr) auto; }
.ev-row img { width: 64px; height: 56px; }
.ev-row > :last-child { display: grid; gap: 6px; justify-items: end; }
.ev-row h4 { line-height: 1.2; }
@media (max-width: 560px) { .ev-row { grid-template-columns: 50px minmax(0, 1fr) auto; } }
@media (max-width: 900px) { .app { background: none; } }
@media (max-width: 560px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { grid-template-columns: 1fr; gap: 6px; padding: 12px 14px; }
  .stat .ic { width: 34px; height: 34px; }
  .stat .ic svg { width: 30px; height: 30px; }
  .stat b { font-size: 1.6rem; }
  .stat span { font-size: 0.95rem; margin: 2px 0 4px; }
  .stat .link { font-size: 0.85rem; }
}

/* ==========================================================================
   Same backdrop as the public site: the blurred bar room drifting slowly,
   with warm out-of-focus lights floating up behind the white cards.
   (Built by admin.js "backdrop"; the light-grey work area is gone.)
   ========================================================================== */
html, body { background: #0b0908; }
.ambient { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.ambient .room { position: absolute; inset: -6%; background: url("../assets/img/backdrop.jpg") center / cover no-repeat; animation: room-drift 48s ease-in-out infinite alternate; }
.ambient canvas { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: screen; }
.ambient::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.25) 30%, rgba(0, 0, 0, 0.6) 100%); }
@keyframes room-drift {
  0%   { transform: scale(1.00) translate(0, 0); }
  50%  { transform: scale(1.06) translate(-1.5%, 1%); }
  100% { transform: scale(1.10) translate(1.5%, -1%); }
}
@media (prefers-reduced-motion: reduce) { .ambient .room { animation: none; } .ambient canvas { display: none; } }
#root, .toast { position: relative; z-index: 1; }
.toast { position: fixed; z-index: 200; }
.main, .content { background: transparent; }
.card { border-color: rgba(0, 0, 0, 0.35); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25), 0 14px 34px rgba(0, 0, 0, 0.45); }
/* text that sits right on the backdrop turns light */
.page-title h2 { color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6); }
.page-title p { color: #d9d3cb; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6); }
.login { background: transparent; }
.login::before { background: rgba(0, 0, 0, 0.35); }
