:root {
  --brand: #2563eb;
  --bg: #06070d; --bg-2: #0b0e18;
  --card: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.015));
  --card-solid: #10131d;
  --line: rgba(255,255,255,.11); --line-strong: rgba(255,255,255,.22);
  --ink: #eef1f8; --muted: #93a0b8; --dim: #6b7890;
  --good: #3ee08f; --bad: #ff5d6c; --warn: #ffb547;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.5; min-height: 100vh; }
body:before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(640px 480px at 10% -10%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 60%),
              radial-gradient(700px 520px at 95% 5%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 60%), var(--bg); }
a { color: color-mix(in srgb, var(--brand) 55%, white); }
.brand-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 24px; background: rgba(6,7,13,.75); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); box-shadow: inset 0 -2px 0 var(--brand); color: var(--ink); }
.brand-bar h1 { margin: 0; font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; }
.brand-bar h1 span { font-weight: 400; color: var(--muted); }
.brand-bar a { color: var(--muted); text-decoration: none; }
.brand-bar a:hover { color: var(--ink); }
.brand-bar nav a { margin-left: 16px; font-size: .9rem; }
.powered-by, .plan-badge { font-size: .78rem; border: 1px solid var(--line-strong); padding: 4px 10px; border-radius: 999px; color: var(--muted); text-decoration: none; }
.plan-badge { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 50%, transparent); background: color-mix(in srgb, var(--brand) 12%, transparent); font-weight: 600; }

.booking-shell { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; padding: 24px; max-width: 1100px; margin: 0 auto; }
.details { grid-column: 1 / -1; }
.picker, .slots, .details, .card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
h2 { font-size: .8rem; color: var(--muted); margin: 0 0 10px; text-transform: uppercase; letter-spacing: .08em; }
h3 { font-size: 1.05rem; margin: 0 0 8px; }
select, input[type=text], input[type=email], input[type=password], input[type=number], input[type=time], input[type=tel], input[type=color], input[type=file] { width: 100%; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 9px; margin-bottom: 12px; font: inherit; background: rgba(255,255,255,.04); color: var(--ink); }
select option { background: var(--card-solid); color: var(--ink); }
input:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
input::placeholder { color: var(--dim); }
input[type=color] { height: 42px; padding: 2px; }
label { display: block; font-size: .8rem; font-weight: 600; margin-bottom: 5px; color: var(--muted); }
button, .btn { background: var(--brand); color: white; border: none; padding: 9px 16px; border-radius: 9px; cursor: pointer; font-weight: 700; font: inherit; font-weight: 700; text-decoration: none; display: inline-block; transition: transform .15s, opacity .15s; }
button:hover, .btn:hover { opacity: .92; transform: translateY(-1px); }
button.ghost, .btn.ghost { background: rgba(255,255,255,.06); color: var(--ink); border: 1px solid var(--line-strong); }
button.danger { background: rgba(255,93,108,.14); color: var(--bad); border: 1px solid rgba(255,93,108,.35); }
button.small { padding: 5px 10px; font-size: .8rem; }

.slot-btn { display: inline-block; margin: 4px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 9px; background: rgba(255,255,255,.04); color: var(--ink); cursor: pointer; font-weight: 500; }
.slot-btn:hover { border-color: var(--brand); }
.slot-btn.selected { background: var(--brand); color: white; border-color: var(--brand); }
.hint { color: var(--muted); }
#result.ok { color: var(--good); font-weight: 600; }
#result.error { color: var(--bad); font-weight: 600; }
.notice { padding: 12px 14px; border-radius: 12px; background: rgba(255,181,71,.1); border: 1px solid rgba(255,181,71,.35); color: #ffd28a; margin: 16px 24px 0; }
.flash { padding: 12px 14px; border-radius: 12px; background: rgba(62,224,143,.1); border: 1px solid rgba(62,224,143,.35); color: var(--good); margin-bottom: 16px; }

.admin-shell { max-width: 1100px; margin: 0 auto; padding: 24px; display: grid; gap: 18px; }
.stat-row { display: flex; gap: 16px; flex-wrap: wrap; }
.stat-tile { flex: 1; min-width: 140px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; text-align: center; }
.stat-value { display: block; font-size: 1.8rem; font-weight: 700; color: var(--brand); }
.stat-label { color: var(--muted); font-size: .82rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; align-items: end; }
.grid-form label { margin-bottom: 5px; }
.grid-form input, .grid-form select { margin-bottom: 0; }
.grid-form button { height: 40px; }

table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: .9rem; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
th { color: var(--muted); font-weight: 600; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; }
.status-pill { padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 600; }
.status-confirmed { background: rgba(47,230,255,.14); color: #7eeeff; }
.status-completed { background: rgba(62,224,143,.14); color: var(--good); }
.status-no_show { background: rgba(255,93,108,.14); color: var(--bad); }
.status-cancelled { background: rgba(255,255,255,.08); color: var(--muted); }
.inline-form { display: inline-flex; gap: 6px; align-items: center; }
.inline-form select, .inline-form input { margin-bottom: 0; width: auto; }
.staff-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-top: 12px; background: rgba(255,255,255,.025); }
.staff-card h3 { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.chips label { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; margin: 0 12px 8px 0; color: var(--ink); }
.chips input { width: auto; margin: 0; accent-color: var(--brand); }
.hours-list { list-style: none; padding: 0; margin: 8px 0; }
.hours-list li { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
code { background: rgba(255,255,255,.07); padding: 2px 6px; border-radius: 6px; font-size: .84em; word-break: break-all; color: #cdeaff; }
.muted { color: var(--muted); font-size: .9rem; }
.plan-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.biz-list { display: grid; gap: 12px; }
.biz-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: rgba(255,255,255,.025); }
.center { max-width: 560px; margin: 48px auto; padding: 0 20px; }
@media (max-width: 800px) { .booking-shell, .two-col { grid-template-columns: 1fr; } .brand-bar { padding: 14px 16px; } .admin-shell { padding: 16px; } }

/* FullCalendar on the dark theme */
.fc { --fc-border-color: rgba(255,255,255,.12); --fc-page-bg-color: transparent; --fc-neutral-bg-color: rgba(255,255,255,.04);
      --fc-today-bg-color: color-mix(in srgb, var(--brand) 18%, transparent); --fc-button-bg-color: var(--brand); --fc-button-border-color: var(--brand);
      --fc-button-hover-bg-color: var(--brand); --fc-button-hover-border-color: var(--brand); --fc-button-active-bg-color: var(--brand);
      --fc-button-active-border-color: var(--brand); color: var(--ink); }
.fc .fc-toolbar-title { font-size: 1.1rem; }
.fc .fc-col-header-cell-cushion, .fc .fc-daygrid-day-number { color: var(--muted); text-decoration: none; }
.fc .fc-day-disabled { background: rgba(0,0,0,.25); }
.fc .fc-daygrid-day:not(.fc-day-disabled) { cursor: pointer; }
.fc .fc-daygrid-day.selected { background: color-mix(in srgb, var(--brand) 32%, transparent); }
.fc .fc-daygrid-day.selected .fc-daygrid-day-number { color: var(--ink); font-weight: 700; }
