/* ==========================================================================
   De Burgerij Antwerpen — Studio (owner dashboard)
   Reuses the public site's design tokens, fonts and colours.
   ========================================================================== */

:root {
  --ink: #040305;
  --black: #000000;
  --red: #d30f22;
  --red-dark: #a90c1a;
  --bronze: #794d1c;
  --bronze-light: #b47a37;
  --maroon: #582924;
  --maroon-deep: #2a1214;
  --grey: #32373c;
  --off: #efefef;
  --white: #ffffff;

  --font-display: "Space Grotesk", "Poppins", system-ui, sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, sans-serif;

  --container: 1240px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --header-h: 78px;

  /* dashboard surfaces derived from the brand palette */
  --bg: #0a0607;
  --bg-2: #120b0d;
  --panel: #160e10;
  --panel-2: #1d1315;
  --panel-3: #241719;
  --line: rgba(180, 122, 55, 0.16);
  --line-soft: rgba(255, 255, 255, 0.06);
  --text: #f4ece5;
  --muted: #b3a49b;
  --muted-2: #8f8079;
  --accent: #b47a37;
  --accent-soft: rgba(180, 122, 55, 0.14);
  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 18px 44px -22px rgba(0, 0, 0, 0.85);
  --sidebar-w: 250px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1100px 620px at 88% -8%, rgba(180, 122, 55, 0.10), transparent 60%),
    radial-gradient(900px 520px at 4% 105%, rgba(211, 15, 34, 0.08), transparent 62%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--bronze-light);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  background: var(--bronze);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* ============================ shell ============================ */
.studio-shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: 100vh;
}

.scrim {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  z-index: 40;
}

/* ============================ sidebar ============================ */
.studio-sidebar {
  position: sticky; top: 0;
  align-self: start;
  height: 100vh;
  padding: 22px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: linear-gradient(180deg, #0d0709, #0a0507);
  border-right: 1px solid var(--line-soft);
  z-index: 50;
}

.brand { display: flex; align-items: center; gap: 11px; padding: 4px 6px 18px; }
.brand-mark {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 11px;
  color: var(--bronze-light);
  background: linear-gradient(150deg, rgba(180, 122, 55, 0.22), rgba(88, 41, 36, 0.25));
  border: 1px solid rgba(180, 122, 55, 0.4);
}
.brand-mark svg { width: 23px; height: 23px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-size: 15px; letter-spacing: 0.14em; color: #fff; }
.brand-text small { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }

.side-label {
  font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted-2); padding: 4px 10px; margin-bottom: 4px;
}

.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 11px;
  border-radius: 10px;
  font-size: 13.5px; color: var(--muted);
  border: 1px solid transparent;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.side-nav a .ic { display: grid; place-items: center; width: 18px; height: 18px; flex: none; opacity: .85; }
.side-nav a .ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.side-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.035); transform: translateX(2px); }
.side-nav a.active {
  color: #fff;
  background: linear-gradient(100deg, rgba(180, 122, 55, 0.24), rgba(180, 122, 55, 0.07));
  border-color: rgba(180, 122, 55, 0.34);
  box-shadow: inset 3px 0 0 var(--bronze-light);
}
.side-nav a.active .ic { opacity: 1; color: var(--bronze-light); }
.side-nav .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red); margin-left: auto;
  box-shadow: 0 0 0 3px rgba(211, 15, 34, 0.18);
}
.side-nav .count {
  margin-left: auto; font-size: 11px; font-weight: 600;
  background: rgba(255, 255, 255, 0.08); color: var(--text);
  padding: 1px 8px; border-radius: 20px;
}

.side-user {
  margin-top: auto;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 10px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
}
.side-user .avatar {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  font-size: 12px; font-weight: 600; letter-spacing: .04em; color: #fff;
  background: linear-gradient(140deg, var(--maroon), var(--bronze));
}
.side-user .user-meta { display: flex; flex-direction: column; line-height: 1.2; }
.side-user .user-meta strong { font-size: 12.5px; }
.side-user .user-meta small { font-size: 11px; color: var(--muted); }
.side-user .status-dot { width: 8px; height: 8px; border-radius: 50%; background: #4f9d5b; margin-left: auto; box-shadow: 0 0 0 3px rgba(79, 157, 91, 0.18); }

/* ============================ workspace ============================ */
.workspace {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 0 var(--pad) 0;
}

.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 18px;
  min-height: var(--header-h);
  padding: 18px 0 16px;
  background: linear-gradient(180deg, var(--bg) 62%, rgba(10, 6, 7, 0));
  backdrop-filter: blur(6px);
}

.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--panel); border: 1px solid var(--line);
  align-items: center; justify-content: center;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.greet h1 { font-size: clamp(1.35rem, 2.6vw, 1.85rem); color: #fff; }
.greet-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--muted);
  padding: 4px 10px; border-radius: 20px;
  border: 1px solid var(--line-soft); background: rgba(255, 255, 255, 0.02);
}
.chip .ic svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chip-ok { color: #8fce9a; border-color: rgba(79, 157, 91, 0.3); }

.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px; font-weight: 500; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease;
}
.btn-accent {
  color: #1a1004;
  background: linear-gradient(140deg, var(--bronze-light), var(--bronze));
  box-shadow: 0 10px 24px -12px rgba(180, 122, 55, 0.9);
}
.btn-accent .plus { font-size: 16px; font-weight: 700; line-height: 1; }
.btn-accent:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(180, 122, 55, 0.95); }
.btn-ghost { color: var(--text); background: rgba(255, 255, 255, 0.04); border-color: var(--line); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(180, 122, 55, 0.5); }
.btn .caret { font-size: 10px; opacity: .8; }

.icon-btn {
  position: relative;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--panel); border: 1px solid var(--line);
  color: var(--muted);
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { color: var(--text); border-color: rgba(180, 122, 55, 0.5); }
.icon-btn.bell:hover { color: var(--bronze-light); }
.icon-btn .badge {
  position: absolute; top: 7px; right: 8px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 0 3px var(--panel);
}

/* ============================ dashboard grid ============================ */
.dash {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr);
  gap: 18px;
  align-content: start;
  padding-bottom: 26px;
}

.dash-section { min-width: 0; }
.section-hero { grid-column: 1 / -1; }

.card {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- stat cards ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.stat-card {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 16px 17px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.stat-card:hover { transform: translateY(-3px); border-color: rgba(180, 122, 55, 0.4); box-shadow: 0 22px 40px -24px rgba(0, 0, 0, 0.9); }
.stat-top { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.stat-ic {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 9px;
  color: var(--bronze-light); background: var(--accent-soft);
  border: 1px solid rgba(180, 122, 55, 0.28);
}
.stat-ic svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.stat-label { font-size: 12px; color: var(--muted); }
.stat-value { font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 600; color: #fff; letter-spacing: -0.02em; }
.stat-foot { margin-top: 10px; display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.stat-foot.up { color: #8fce9a; }
.stat-foot.up span { color: var(--muted); }
.stat-foot .track { flex: 1; height: 5px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.stat-foot .track > i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--bronze), var(--bronze-light)); width: 0; transition: width 1.1s cubic-bezier(.2,.7,.2,1); }
.stat-foot .pct { color: var(--text); font-weight: 500; }

/* ---------- generic card head ---------- */
.card-head {
  display: flex; align-items: center; gap: 10px;
  padding: 15px 18px; border-bottom: 1px solid var(--line-soft);
}
.card-head h3 { font-size: 14px; display: flex; align-items: center; gap: 8px; color: #fff; }
.card-head h3 .ic svg { width: 15px; height: 15px; fill: none; stroke: var(--bronze-light); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card-head .muted { margin-left: auto; font-size: 11.5px; color: var(--muted); }

/* ---------- content editor ---------- */
.editor { grid-column: 1; overflow: hidden; }
.editor-head {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 13px 18px; border-bottom: 1px solid var(--line-soft);
}
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.crumbs .ic svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.crumbs span:last-child { color: var(--text); }

.tabs { display: flex; align-items: center; gap: 10px; }
.tab {
  font-size: 12px; padding: 5px 13px; border-radius: 8px;
  background: transparent; border: 1px solid var(--line-soft); color: var(--muted);
  transition: all .18s ease;
}
.tab.active { background: rgba(255, 255, 255, 0.07); color: var(--text); border-color: transparent; }
.tab:hover { color: var(--text); }

.switch { position: relative; display: inline-block; width: 34px; height: 18px; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.switch span {
  position: absolute; inset: 0; border-radius: 20px;
  background: rgba(255, 255, 255, 0.12); transition: background .2s ease;
}
.switch span::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s ease;
}
.switch input:checked + span { background: linear-gradient(120deg, var(--bronze), var(--bronze-light)); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { outline: 2px solid var(--bronze-light); outline-offset: 2px; }
.save-note { font-size: 11.5px; color: var(--muted-2); }
.editor-head .head-actions { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.editor-head .icon-btn { width: 34px; height: 34px; }

.editor-body {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr) 196px;
  gap: 16px;
  padding: 16px 18px 18px;
}

.editor-nav { display: flex; flex-direction: column; gap: 1px; }
.editor-nav a {
  position: relative;
  display: flex; align-items: center; gap: 9px;
  padding: 9px 10px; border-radius: 8px;
  font-size: 12.5px; color: var(--muted);
  transition: background .16s ease, color .16s ease;
}
.editor-nav a .mk { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); flex: none; }
.editor-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.035); }
.editor-nav a.active { color: #fff; background: rgba(255, 255, 255, 0.05); }
.editor-nav a.active .mk { background: var(--bronze-light); box-shadow: 0 0 0 3px rgba(180, 122, 55, 0.2); }

.editor-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.preview-card {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--panel-2);
}
.preview-media {
  position: relative; min-height: 200px;
  background:
    radial-gradient(120% 90% at 30% 10%, rgba(180, 122, 55, 0.32), transparent 60%),
    linear-gradient(150deg, #3a1c12, #1a0d09);
  display: grid; place-items: center;
  overflow: hidden;
}
.preview-media::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 18px 18px; opacity: .5;
}
.preview-media svg { width: 78%; max-width: 240px; position: relative; z-index: 1; filter: drop-shadow(0 18px 24px rgba(0,0,0,.5)); }
.preview-body { padding: 20px 20px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.tag {
  align-self: flex-start;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--bronze-light);
  padding: 4px 9px; border-radius: 20px;
  border: 1px solid rgba(180, 122, 55, 0.4); background: var(--accent-soft);
}
.preview-body h3 { font-size: 1.15rem; color: #fff; }
.preview-body p { font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.preview-body .btn { align-self: flex-start; margin-top: 4px; }

.editor-block {
  border: 1px solid var(--line-soft); border-radius: 12px;
  padding: 15px 16px; background: var(--panel-2);
}
.editor-block h4 { font-size: 13px; color: #fff; margin-bottom: 7px; }
.editor-block p { font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.editor-block .btn { margin-top: 12px; }

.editor-settings { display: flex; flex-direction: column; gap: 12px; border-left: 1px solid var(--line-soft); padding-left: 16px; }
.set-title { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 9px; }
.field { display: block; margin-bottom: 10px; }
.field > span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 5px; }
.field input, .field textarea {
  width: 100%; color: var(--text); font-size: 12.5px;
  background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line-soft);
  border-radius: 8px; padding: 8px 10px;
  transition: border-color .18s ease;
}
.field textarea { resize: vertical; min-height: 54px; line-height: 1.5; }
.field input:focus, .field textarea:focus { border-color: rgba(180, 122, 55, 0.55); outline: none; }
.set-sec { border-top: 1px solid var(--line-soft); padding-top: 10px; margin-top: 4px; }
.set-sec h5 { font-size: 12px; color: var(--text); margin-bottom: 5px; }
.set-sec p { font-size: 11.5px; line-height: 1.55; color: var(--muted-2); }
.hint { font-size: 11px; color: var(--muted-2); line-height: 1.5; margin: 4px 0 10px; }
.toggle-row { display: flex; gap: 7px; margin-bottom: 11px; }
.pill {
  flex: 1; font-size: 11.5px; padding: 7px 8px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-soft); color: var(--muted);
  transition: all .18s ease;
}
.pill.active { color: #fff; background: linear-gradient(120deg, rgba(180, 122, 55, 0.35), rgba(180, 122, 55, 0.12)); border-color: rgba(180, 122, 55, 0.5); }
.pill:hover { color: var(--text); }
.btn.full { width: 100%; }

/* ---------- right column ---------- */
.side-col { grid-column: 2; display: flex; flex-direction: column; gap: 18px; align-self: start; }

.msg-list { padding: 8px 6px; }
.msg {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 12px; border-radius: 11px;
  transition: background .16s ease;
}
.msg:hover { background: rgba(255, 255, 255, 0.04); }
.msg .avatar {
  display: grid; place-items: center; flex: none;
  width: 34px; height: 34px; border-radius: 50%;
  font-size: 11.5px; font-weight: 600; color: #fff;
  background: linear-gradient(140deg, var(--maroon), var(--bronze));
}
.msg-body { min-width: 0; }
.msg-name { font-size: 12.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-sub { font-size: 11px; color: var(--muted-2); margin-top: 1px; }
.msg-meta { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.msg-meta time { font-size: 10.5px; color: var(--muted-2); white-space: nowrap; }
.tag-soft {
  font-size: 10px; padding: 2px 8px; border-radius: 20px;
  color: var(--muted); background: rgba(255, 255, 255, 0.06); white-space: nowrap;
}
.tag-soft.new { color: var(--bronze-light); background: var(--accent-soft); }
.tag-soft.ok { color: #8fce9a; background: rgba(79, 157, 91, 0.14); }
.tag-soft.act { color: #e08a95; background: rgba(211, 15, 34, 0.15); }

.activity ul { list-style: none; margin: 0; padding: 8px 6px; }
.activity li {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 11px;
  transition: background .16s ease;
}
.activity li:hover { background: rgba(255, 255, 255, 0.04); }
.act-ic {
  display: grid; place-items: center; flex: none;
  width: 26px; height: 26px; border-radius: 8px;
  color: var(--bronze-light); background: var(--accent-soft);
}
.act-ic svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.activity .act-body { font-size: 12.5px; color: var(--text); }
.activity .act-body small { display: block; font-size: 10.5px; color: var(--muted-2); margin-top: 1px; }
.activity time { margin-left: auto; font-size: 10.5px; color: var(--muted-2); white-space: nowrap; }

/* ---------- media collection ---------- */
.collection { grid-column: 1; padding-bottom: 16px; position: relative; }
.thumbs {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px; padding: 16px 18px 4px;
}
.thumbs figure { margin: 0; }
.thumb {
  position: relative; display: block;
  aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line-soft);
  transition: transform .2s ease, border-color .2s ease;
}
.thumb:hover { transform: translateY(-3px); border-color: rgba(180, 122, 55, 0.5); }
.thumb svg { width: 100%; height: 100%; }
.thumbs figcaption { font-size: 10.5px; color: var(--muted); margin-top: 7px; text-align: center; }
.thumbs .count-badge {
  position: absolute; bottom: 6px; right: 6px;
  font-size: 9.5px; padding: 2px 6px; border-radius: 20px;
  color: #fff; background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(3px);
}
.media-card {
  position: absolute; right: 18px; bottom: 16px;
  width: min(220px, 46%);
  padding: 12px 14px; border-radius: 12px;
  background: rgba(20, 12, 10, 0.9);
  border: 1px solid rgba(180, 122, 55, 0.28);
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.9);
}
.media-card strong { display: block; font-family: var(--font-display); font-size: 13px; color: #fff; }
.media-card span { display: block; font-size: 11px; color: var(--muted); margin: 2px 0 9px; }
.media-card button {
  width: 100%; font-size: 11.5px; padding: 6px; border-radius: 8px;
  color: var(--text); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line);
  transition: background .18s ease;
}
.media-card button:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- coming soon ---------- */
.coming { grid-column: 2; align-self: start; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.coming h3 { font-size: 15px; color: #fff; display: flex; align-items: center; gap: 8px; }
.coming h3 svg { width: 17px; height: 17px; fill: none; stroke: var(--bronze-light); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.coming p { font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.coming .btn { align-self: flex-start; margin-top: 6px; }

/* ---------- footer ---------- */
.studio-footer {
  border-top: 1px solid var(--line-soft);
  padding: 18px 0 22px;
  text-align: center;
}
.studio-footer p { font-size: 11.5px; color: var(--muted-2); letter-spacing: .04em; }
.studio-footer .backlink {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
  transition: color .18s ease;
}
.studio-footer .backlink:hover { color: #fff; }

/* anchors clear the sticky topbar when the rail links jump in-page */
[id] { scroll-margin-top: calc(var(--header-h) + 14px); }

/* ============================ shared studio components ============================
   These cover classes used by the shared header / nav / footer and the sign-in
   gate on EVERY studio page, so no page depends on a local <style> block. */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }

/* The owner runtime kit tags #app with [data-studio-app] and would otherwise inherit its
   own dark text colour, making inherited copy dark-on-dark. Keep it light inside the studio. */
html [data-studio-app], html [data-studio-gate] { color: var(--text); }

/* sidebar: coming-soon modules */
.side-nav .nav-soon { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 10px; font-size: 13.5px; color: var(--muted); opacity: .72; cursor: not-allowed; }
.side-nav .nav-soon .ic { display: grid; place-items: center; width: 18px; height: 18px; flex: none; }
.side-nav .nav-soon .ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.side-nav .nav-soon .soon-badge { margin-left: auto; font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; padding: 2px 7px; border-radius: 20px; color: var(--muted); white-space: nowrap; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-soft); }

/* bare aliases so the coming-soon classes are styled wherever they appear */
.nav-soon { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 10px; font-size: 13.5px; color: var(--muted); opacity: .72; cursor: not-allowed; }
.nav-soon .ic { display: grid; place-items: center; width: 18px; height: 18px; flex: none; }
.nav-soon .ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.soon-badge { margin-left: auto; font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; padding: 2px 7px; border-radius: 20px; color: var(--muted); white-space: nowrap; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-soft); }

/* shared section heading (dashboard + reservations + menu) */
.section-head { display: flex; align-items: baseline; gap: 12px; margin: 0 2px 12px; }
.section-title { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.section-sub { margin-left: auto; font-size: 12px; color: var(--muted-2); }
.anchor-alias { display: block; height: 0; overflow: hidden; }

/* button variants shared across studio pages */
.btn .plus { font-size: 16px; font-weight: 700; line-height: 1; }
.btn-primary { color: #1a1004; background: linear-gradient(140deg, var(--bronze-light), var(--bronze)); box-shadow: 0 10px 24px -12px rgba(180, 122, 55, .9); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(180, 122, 55, .95); }
.btn-danger { color: #f3d6d9; background: rgba(211, 15, 34, .14); border-color: rgba(211, 15, 34, .34); }
.btn-danger:hover { background: rgba(211, 15, 34, .24); }
.btn-accept { color: #10200f; background: linear-gradient(140deg, #7fc46a, #4f8c33); }
.btn-accept:hover { transform: translateY(-1px); }
.btn-decline { color: #f3d6d9; background: rgba(211, 15, 34, .14); border-color: rgba(211, 15, 34, .34); }
.btn-decline:hover { background: rgba(211, 15, 34, .24); }

/* sign-in gate (shared look) */
.gate { display: grid; place-items: center; padding: 34px var(--pad) 60px; }
.gate-card { width: min(410px, 100%); background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 26px; }
.gate-brand { font-family: var(--font-display); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--bronze-light); }
.gate-card h2 { font-size: 1.5rem; color: #fff; margin-top: 14px; }
.gate-sub { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.6; }
.gate-card .field { margin-top: 16px; }
.gate-card .field input { font-size: 14px; padding: 11px 12px; }
.gate-error { font-size: 12px; color: #f3aab1; background: rgba(211, 15, 34, .12); border: 1px solid rgba(211, 15, 34, .32); border-radius: 8px; padding: 9px 11px; margin-top: 14px; }
.gate-card .btn.full { margin-top: 18px; }
.gate-hint { font-size: 11.5px; color: var(--muted-2); text-align: center; margin-top: 14px; }

/* page header used by subpages */
.eyebrow { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--bronze-light); }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 20px 22px; }
.page-head-body { min-width: 0; flex: 1 1 320px; }
.page-head h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: #fff; margin-top: 8px; }
.page-head-text { font-size: 13px; line-height: 1.65; color: var(--muted); margin-top: 9px; max-width: 60ch; }
.page-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; min-width: 0; }
.field-inline { margin: 0; }
.field select { width: 100%; color: var(--text); font-size: 12.5px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line-soft); border-radius: 8px; padding: 8px 10px; }
@media (max-width: 620px) { .field-row { flex-direction: column; } }

/* ============================ reveal motion ============================ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ============================ responsive ============================ */
@media (max-width: 1080px) {
  .editor-body { grid-template-columns: 132px minmax(0, 1fr); }
  .editor-settings { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line-soft); padding-left: 0; padding-top: 14px; }
  .editor-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
}

@media (max-width: 900px) {
  .studio-shell { grid-template-columns: minmax(0, 1fr); }
  .studio-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: min(280px, 84vw); height: 100%;
    transform: translateX(-102%);
    transition: transform .32s cubic-bezier(.2,.7,.2,1);
  }
  .studio-sidebar.open { transform: none; }
  .nav-toggle { display: flex; }
  .workspace { padding: 0 var(--pad); }
  .topbar { flex-wrap: wrap; }
  .topbar-actions { margin-left: auto; }
  .dash { grid-template-columns: minmax(0, 1fr); }
  .section-hero, .editor, .side-col, .collection, .coming { grid-column: 1 / -1; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .greet-sub { gap: 8px; }
  .topbar { flex-wrap: wrap; }
  .topbar-actions { width: 100%; margin-left: 0; flex-wrap: wrap; }
  .topbar-actions .btn-accent { flex: 1; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .editor-body { grid-template-columns: minmax(0, 1fr); }
  .editor-nav { flex-direction: row; flex-wrap: wrap; }
  .editor-nav a { width: auto; }
  .preview-card { grid-template-columns: minmax(0, 1fr); }
  .preview-media { min-height: 170px; }
  .editor-settings { grid-template-columns: minmax(0, 1fr); }
  .thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .media-card { position: static; width: auto; margin: 12px 18px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================ menu manager page ============================ */
.menu-page { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(200px, 236px) minmax(0, 1fr) minmax(280px, 340px); gap: 16px; align-items: start; padding-bottom: 26px; }
.menu-page > .page-head { grid-column: 1 / -1; }
.menu-page > .menu-title-card { grid-column: 1 / -1; }
.menu-page > #categories { grid-column: 1; }
.menu-page > .items-col { grid-column: 2; }
.menu-page > #editor { grid-column: 3; position: sticky; top: calc(var(--header-h) + 6px); }
.menu-page > #preview { grid-column: 1 / -1; }

.menu-title-card { padding: 16px 18px; }
.menu-title-field { margin: 0; }
.menu-title-field > span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.menu-title-field em { font-style: normal; color: var(--muted-2); }
.menu-title-field input { margin-top: 6px; }

.cat-card { overflow: hidden; }
.cat-list { list-style: none; margin: 0; padding: 8px 8px 4px; display: flex; flex-direction: column; gap: 2px; }
.cat-list li { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 9px; font-size: 13px; color: var(--text); }
.cat-list li:hover { background: rgba(255, 255, 255, .04); }
.cat-list .cat-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-list .cat-count { margin-left: auto; font-size: 11px; color: var(--muted-2); }
.cat-list .mk { width: 6px; height: 6px; border-radius: 50%; background: var(--bronze-light); flex: none; }
.cat-foot { padding: 10px 14px 14px; border-top: 1px solid var(--line-soft); margin-top: 6px; }

.items-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.items-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.items-head h3 { font-size: 14px; color: #fff; }
.items-filter { margin-left: auto; }
.items-filter .field { margin: 0; }
.dish-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dish-card { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line-soft); border-radius: 13px; background: linear-gradient(180deg, var(--panel), var(--bg-2)); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.dish-card:hover, .dish-card.active { border-color: rgba(180, 122, 55, .5); transform: translateY(-2px); box-shadow: 0 18px 34px -22px rgba(0, 0, 0, .9); }
.dish-card.active { box-shadow: inset 3px 0 0 var(--bronze-light), 0 18px 34px -22px rgba(0, 0, 0, .9); }
.dish-thumb { width: 58px; height: 58px; border-radius: 10px; object-fit: cover; flex: none; background: var(--panel-2); border: 1px solid var(--line-soft); }
.dish-body { min-width: 0; flex: 1; }
.dish-body h4 { font-size: 13.5px; color: #fff; }
.dish-body p { font-size: 11.5px; line-height: 1.5; color: var(--muted); margin-top: 3px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dish-meta { display: flex; align-items: center; gap: 8px; margin-top: 7px; }
.dish-price { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--bronze-light); }
.dish-badge { font-size: 10px; padding: 2px 8px; border-radius: 20px; color: #8fce9a; background: rgba(79, 157, 91, .13); border: 1px solid rgba(79, 157, 91, .3); }
.dish-badge.out { color: #e6a3aa; background: rgba(211, 15, 34, .12); border-color: rgba(211, 15, 34, .3); }
.dish-empty { padding: 22px 8px; font-size: 12.5px; color: var(--muted-2); text-align: center; }

.dish-editor { overflow: hidden; }
.dish-empty-panel { padding: 22px 18px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.dish-form { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.dish-form .field { margin: 0; }
.dish-photo-row { display: flex; gap: 12px; align-items: center; }
.dish-photo-frame { width: 84px; height: 68px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-soft); background: var(--panel-2); flex: none; }
.dish-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.dish-photo-actions { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.file-btn { cursor: pointer; }
.dish-form-actions { display: flex; flex-direction: column; gap: 9px; margin-top: 4px; }
.avail-row .avail-pill { flex: 1; }

.preview-wrap { overflow: hidden; }
.preview-light { background: var(--white); color: var(--ink); padding: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; font-family: var(--font-body); }
.preview-light h3 { grid-column: 1 / -1; font-family: var(--font-display); font-size: 16px; color: var(--ink); }
.pv-dish { border: 1px solid #ececec; border-radius: 12px; overflow: hidden; background: var(--white); }
.pv-dish-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--off); }
.pv-dish-body { padding: 10px 12px 12px; }
.pv-dish-body h4 { font-family: var(--font-display); font-size: 13px; color: var(--ink); }
.pv-dish-body p { font-size: 11px; line-height: 1.5; color: #52525b; margin-top: 4px; }
.pv-dish-price { display: block; margin-top: 7px; font-family: var(--font-display); font-weight: 600; font-size: 12.5px; color: var(--red-dark); }

@media (max-width: 1180px) {
  .menu-page { grid-template-columns: minmax(190px, 220px) minmax(0, 1fr); }
  .menu-page > #editor { grid-column: 1 / -1; position: static; }
}
@media (max-width: 900px) {
  .menu-page { grid-template-columns: minmax(0, 1fr); }
  .menu-page > #categories, .menu-page > .items-col, .menu-page > #editor { grid-column: 1 / -1; }
  .dish-grid { grid-template-columns: minmax(0, 1fr); }
  .preview-light { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .preview-light { grid-template-columns: minmax(0, 1fr); }
  .dish-photo-row { flex-direction: column; align-items: flex-start; }
}
