
:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17131f;
}
html { background: #f3f0f7; }
* { box-sizing: border-box; }
body { margin: 0; }

/* ── Background image layers ────────────────────────────────────────────── */
/* isolation:isolate creates a stacking context on body so the ::before
   pseudo-element (z-index:-1) sits below page content but above the html
   background, without making any page content transparent.               */
body.investor-bg,
body.admin-bg {
  position: relative;
  isolation: isolate;
}

body.investor-bg::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('/bg/investor') center / cover no-repeat;
  opacity: 0.4;
  z-index: -1;
  pointer-events: none;
}

body.admin-bg::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('/bg/admin') center / cover no-repeat;
  opacity: 0.25;
  z-index: -1;
  pointer-events: none;
}

/* ── Layout ─────────────────────────────────────────────────────────────── */
.wrap { max-width: 1180px; margin: 0 auto; padding: 28px 18px 60px; }
.card {
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  margin: 18px 0;
  box-shadow: 0 12px 40px rgba(39, 20, 59, .08);
}
.narrow { max-width: 540px; margin: 80px auto; }
.centre { text-align: centre; text-align: center; }
.topline { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
h1, h2 { margin-top: 0; }
h1 { font-size: clamp(28px, 5vw, 48px); }
h2 { font-size: 21px; }
.muted { color: #746b7f; }
.small { font-size: 14px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 800; color: #7d3fb2; }

/* ── Forms & controls ───────────────────────────────────────────────────── */
.grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; }
input, select, button, .secondary {
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid #d9d2df;
  padding: 0 13px;
  font: inherit;
}
button, .secondary {
  border: none;
  background: #6f2da8;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
button:hover, .secondary:hover { opacity: .9; }
button.large { min-height: 54px; padding: 0 22px; font-size: 17px; }
button.danger { background: #a62d44; }
.notice { background: #efe4f7; border-radius: 10px; padding: 12px 14px; }

/* ── Tables ─────────────────────────────────────────────────────────────── */
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 980px; }
th, td { border-bottom: 1px solid #eee8f2; padding: 12px 10px; text-align: left; font-size: 14px; vertical-align: top; }
.copyrow { display: flex; gap: 8px; min-width: 340px; }
.copyrow input { width: 100%; }
.action-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.good { color: #137b43; font-weight: 700; }
.warn { color: #9b6200; font-weight: 700; }
.used, .bad { color: #a62d44; font-weight: 700; }

/* ── Video player ───────────────────────────────────────────────────────── */
.video-card { max-width: 900px; margin: 32px auto; }
video { display: block; width: 100%; max-height: 72vh; background: #000; border-radius: 14px; margin-top: 20px; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .grid { grid-template-columns: 1fr; }
  .topline { align-items: flex-start; }
}
