
:root{
  --navy:#0b0f2a;
  --purple:#2d0a4f;
  --card: rgba(255,255,255,.10);
  --stroke: rgba(255,255,255,.14);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --btn: #7b3fe4;
  --btn2: rgba(255,255,255,.12);
  --danger: #ff6b6b;

  --o1: rgba(138, 43, 226, 0.55);
  --o3: rgba(75, 0, 130, 0.55);
  --o4: rgba(25, 25, 112, 0.55);
  --booked: rgba(160,160,160,0.55);
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 50% -10%, rgba(123,63,228,.35), transparent 60%),
              linear-gradient(180deg, var(--navy) 0%, var(--purple) 100%);
  background-attachment: fixed;
}

body::before{
  content:"";
  position:fixed; inset:0;
  background-image: url('bg-stars.jpg');
  background-size: cover;
  background-position:center;
  opacity:.18;
  pointer-events:none;
}

.header{
  padding:14px 18px;
  background: rgba(0,0,0,.25);
  border-bottom: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(8px);
  position:sticky; top:0; z-index: 10;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.header-left{
  display:flex;
  align-items:center;
  gap:12px;
}
.header-text{ display:flex; flex-direction:column; }
.logo-small{ width:44px; height:auto; }
.brand{ font-weight:800; font-size:20px; letter-spacing:.2px; }
.tag{ font-size:13px; color: var(--muted); margin-top:2px; }

.header-right{
  display:flex;
  align-items:center;
  gap:10px;
}
.whoami{ font-size:13px; color: var(--muted); }

.main{ padding: 18px; }

.splash{
  min-height: 55vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding: 18px 12px 6px;
  transition: all .25s ease;
}
.splash.signed-in{ min-height: 18vh; }
.splash-logo{
  width: min(560px, 92vw);
  height:auto;
  display:block;
  filter: drop-shadow(0 18px 36px rgba(0,0,0,.40));
}
.splash-sub{
  margin-top:10px;
  font-size: 16px;
  color: var(--muted);
}

.card{
  max-width: 980px;
  margin: 22px auto;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  box-shadow: 0 18px 46px rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
}

.auth-card{ max-width: 640px; }

.card-title{ margin:0 0 6px 0; font-size: 18px; }
.card-sub{ margin:0 0 14px 0; font-size: 14px; color: var(--muted); }

.row{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}
.row2{
  display:grid;
  gap:10px;
  grid-template-columns: repeat(3, minmax(0,1fr));
}

input[type="email"], input[type="datetime-local"], input[type="number"], input[type="text"], select{
  width:100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.22);
  color: var(--text);
  outline:none;
}
input::placeholder{ color: rgba(255,255,255,.55); }

button{
  padding: 12px 14px;
  border: none;
  border-radius: 12px;
  background: var(--btn);
  color: white;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(123,63,228,.35);
}

.btnSecondary{
  background: var(--btn2);
  box-shadow:none;
  border: 1px solid rgba(255,255,255,.18);
  font-weight: 700;
}

.msg{ margin-top: 12px; font-size: 14px; color: var(--muted); min-height: 18px; }
.hint{ margin-top: 10px; font-size: 12px; color: rgba(255,255,255,.62); }

.controls{ margin: 6px 0 10px 0; }
.filters{ display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.chk{ font-size: 14px; color: var(--text); display:flex; align-items:center; gap:8px; }
.chk input{ width: 16px; height:16px; }
.subtle{ color: var(--muted); }
.note{ margin-top:8px; font-size:12px; color: rgba(255,255,255,.65); }

.repeatRow{ display:flex; align-items:center; gap:8px; }

.sectionTitle{
  margin: 10px 0 10px 0;
  font-weight: 800;
  letter-spacing: .2px;
}

.field .lbl{
  font-size: 12px;
  color: rgba(255,255,255,.70);
  margin: 0 0 6px 2px;
}

.gridWrap{
  overflow:auto;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
}
#grid{
  min-width: 860px;
  display:grid;
  grid-template-columns: 110px repeat(3, 1fr);
}
.cell{
  padding: 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  border-right: 1px solid rgba(255,255,255,.08);
  font-size: 13px;
}
.head{
  font-weight: 800;
  background: rgba(0,0,0,.18);
  position: sticky;
  top: 0;
  z-index: 2;
}
.time{
  font-weight: 700;
  color: rgba(255,255,255,.80);
  background: rgba(0,0,0,.12);
  position: sticky;
  left: 0;
  z-index: 1;
}
.badge{
  display:inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
}
.booked{ background: var(--booked) !important; }
.o1{ background: var(--o1); }
.o3{ background: var(--o3); }
.o4{ background: var(--o4); }

#list{ display:flex; flex-direction:column; gap:10px; }
.item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.12);
}
.itemLeft{ display:flex; flex-direction:column; gap:4px; }
.itemTop{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.itemSmall{ font-size: 12px; color: rgba(255,255,255,.70); }
.linkBtn{
  background: transparent;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow:none;
  font-weight: 800;
}
.danger{
  border-color: rgba(255, 107, 107, .55);
  color: var(--danger);
}

.divider{
  margin: 18px 0;
  height: 1px;
  background: rgba(255,255,255,.12);
}

.staffList{ margin-top: 12px; display:flex; flex-direction:column; gap:8px; }
.staffRow{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.12);
}
.staffMeta{ font-size: 12px; color: rgba(255,255,255,.70); }

@media (max-width: 720px){
  .row2{ grid-template-columns: 1fr; }
  #grid{ min-width: 720px; }
}
