/* Private booking pages (customer + staff). Same dark/electric-blue language as the site. */
@font-face { font-family: SpaceGrotesk; src: url("/space-grotesk.ttf") format("truetype"); font-weight: 300 700; font-display: swap; }

:root {
  --bg: #030609;
  --panel: rgba(10, 18, 26, .78);
  --line: rgba(160, 200, 230, .16);
  --text: #eef4f8;
  --muted: #93a6b5;
  --blue: #2f8cff;
  --ice: #bfe4ff;
  --ok: #3ddc84;
  --warn: #f2b84b;
  --bad: #ff6b6b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100svh;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(47, 140, 255, .14), transparent 70%),
    var(--bg);
  color: var(--text);
  font: 15px/1.55 SpaceGrotesk, system-ui, sans-serif;
}

.m-wrap { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 64px; }

.m-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.m-top img { width: 64px; height: 64px; object-fit: contain; }
.m-top a { color: var(--muted); font-size: 13px; text-decoration: none; }
.m-top a:hover { color: var(--ice); }

.m-kicker { margin: 0 0 6px; color: var(--muted); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; }
h1 { margin: 0 0 10px; font-size: clamp(28px, 6vw, 42px); line-height: 1.08; letter-spacing: -.02em; }
h2 { margin: 0 0 12px; font-size: 18px; }

.m-status {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); font-size: 13px; background: rgba(255, 255, 255, .04);
}
.m-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.m-status[data-s="approved"]::before, .m-status[data-s="completed"]::before { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.m-status[data-s="pending"]::before, .m-status[data-s="proposed"]::before,
.m-status[data-s="change_requested"]::before, .m-status[data-s="cancel_requested"]::before { background: var(--warn); box-shadow: 0 0 10px var(--warn); }
.m-status[data-s="declined"]::before, .m-status[data-s="cancelled"]::before { background: var(--bad); }

.m-card {
  margin-top: 18px; padding: 22px; border-radius: 18px;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box,
    linear-gradient(135deg, rgba(150, 210, 255, .45), rgba(255, 255, 255, .04) 45%, rgba(150, 210, 255, .25)) border-box;
  backdrop-filter: blur(14px);
}

.m-card.m-attn { background:
  linear-gradient(var(--panel), var(--panel)) padding-box,
  linear-gradient(135deg, rgba(242, 184, 75, .7), rgba(255, 255, 255, .04) 50%, rgba(242, 184, 75, .4)) border-box; }

dl { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 10px 16px; margin: 0; }
dt { color: var(--muted); font-size: 13px; }
dd { margin: 0; overflow-wrap: anywhere; }

.m-lines { margin: 0; padding: 0; list-style: none; }
.m-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.m-lines li:last-child { border: 0; font-weight: 600; }

.m-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

button, .m-btn {
  min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 14px; color: var(--text);
  border: 1px solid rgba(150, 200, 255, .35);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(0, 0, 0, .4)),
    url("/media/brand/carbon-hybrid.png") 0 0 / 224px 224px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 8px 24px rgba(0, 0, 0, .45);
  transition: border-color .25s, box-shadow .25s, transform .15s;
}
.m-btn { display: inline-flex; align-items: center; text-decoration: none; }
.m-btn.m-quiet { background: transparent; box-shadow: none; }
button:hover, .m-btn:hover { border-color: rgba(150, 210, 255, .75); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 0 24px rgba(47, 140, 255, .4); }
button:active { transform: scale(.97); }
button:disabled { opacity: .5; cursor: progress; }
button.m-quiet { background: transparent; box-shadow: none; }
button.m-danger { border-color: rgba(255, 107, 107, .45); }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

form.m-form { display: grid; gap: 12px; margin-top: 14px; }
.m-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
input, select, textarea {
  min-height: 44px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(0, 0, 0, .35); color: var(--text); font: inherit;
}
textarea { min-height: 80px; resize: vertical; }

.m-note { color: var(--muted); font-size: 13px; }
.m-msg { margin-top: 12px; padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.m-msg.ok { background: rgba(61, 220, 132, .1); border: 1px solid rgba(61, 220, 132, .35); }
.m-msg.err { background: rgba(255, 107, 107, .1); border: 1px solid rgba(255, 107, 107, .35); }

.m-history { margin: 0; padding: 0; list-style: none; }
.m-history li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.m-history li:last-child { border: 0; }
.m-history small { display: block; color: var(--muted); }

.m-clash { color: var(--bad); }
.m-tight { color: var(--warn); }
[hidden] { display: none !important; }

@media (max-width: 560px) {
  dl, .m-row { grid-template-columns: 1fr; }
  dt { margin-top: 6px; }
}

/* Breathing carbon on the buttons, matching the main site: dims low, then the blue chips shine */
button:not(.m-quiet), .m-btn:not(.m-quiet) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #05080c;
}
button:not(.m-quiet)::before, .m-btn:not(.m-quiet)::before {
  content: "";
  position: absolute;
  inset: -25%;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(0, 0, 0, .45)),
    url("/media/brand/carbon-alive.webp") 0 0 / 120px 120px repeat;
  animation: m-breath 3.2s cubic-bezier(.45, 0, .55, 1) infinite;
  will-change: transform, filter;
  pointer-events: none;
}
@keyframes m-breath {
  0%, 100% { transform: translate3d(-3%, 2%, 0) scale(1); }
  50% { transform: translate3d(3%, -2%, 0) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) { button::before, .m-btn::before { animation: none; } }
