:root {
  color-scheme: dark;
  --bg: #08111f;
  --panel: #0e1d30;
  --line: #233650;
  --ink: #f7f9fc;
  --muted: #9aaec6;
  --accent: #8b5cf6;
  --mint: #36d5b2;
  --orange: #ff9a5c;
  --red: #ff7474;
  font:
    16px/1.5 Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    linear-gradient(160deg, rgba(7, 17, 31, 0.90), rgba(9, 24, 39, 0.96)),
    radial-gradient(circle at 85% -10%, rgba(98, 70, 190, 0.32), transparent 32rem),
    url("/background.webp");
  background-size: cover, cover, 620px auto;
  background-attachment: fixed;
  color: var(--ink);
}
button,
input {
  font: inherit;
}
header {
  width: min(100% - 32px, 980px);
  margin: auto;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}
.mark {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 14px;
  background: linear-gradient(145deg, #7250ff, #a579ff);
  font-weight: 900;
  font-size: 23px;
}
.brand span:last-child {
  display: grid;
}
.brand small {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--muted);
}
main {
  width: min(100% - 30px, 780px);
  margin: 20px auto 70px;
}
.login-card {
  width: min(100%, 480px);
  margin: 8vh auto 0;
  background: linear-gradient(180deg, #102139, #0c1a2c);
  border: 1px solid var(--line);
  padding: clamp(24px, 6vw, 40px);
  border-radius: 28px;
  box-shadow: 0 35px 90px #0009;
}
.icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 19px;
  background: #281d57;
  color: #ae96ff;
  font-size: 27px;
}
.eyebrow {
  margin: 18px 0 7px;
  color: #a990ff;
  font-weight: 900;
  letter-spacing: 0.18em;
  font-size: 11px;
}
.login-card h1,
.welcome h1 {
  font-size: clamp(30px, 7vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  margin: 0;
}
.muted {
  color: var(--muted);
}
form {
  display: grid;
  gap: 15px;
  margin-top: 26px;
}
label {
  font-size: 13px;
  font-weight: 800;
  display: grid;
  gap: 7px;
}
input {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid #2b415c;
  background: #071522;
  color: #fff;
  padding: 13px 15px;
  outline: none;
}
input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #8b5cf62c;
}
.primary,
.ghost {
  border: 0;
  border-radius: 14px;
  min-height: 50px;
  padding: 0 18px;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}
.primary {
  background: linear-gradient(135deg, #7653ff, #9e72ff);
  box-shadow: 0 15px 36px #7653ff35;
}
.ghost {
  background: #13253a;
  border: 1px solid #29405a;
}
.error {
  padding: 11px 13px;
  border-radius: 12px;
  background: #411d29;
  color: #ffb9b9;
  font-size: 13px;
}
.hidden {
  display: none !important;
}
.install-sheet {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: end center;
  padding: 18px;
}
.install-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: #02060db8;
  backdrop-filter: blur(8px);
}
.install-card {
  position: relative;
  width: min(100%, 480px);
  padding: 28px;
  border: 1px solid #334861;
  border-radius: 25px;
  background: linear-gradient(180deg, #13263c, #0b192a);
  box-shadow: 0 28px 80px #000b;
}
.install-card h2 {
  margin: 6px 36px 8px 0;
  font-size: 25px;
  line-height: 1.12;
}
.install-card > p:not(.eyebrow) {
  color: var(--muted);
}
.install-close {
  position: absolute;
  right: 17px;
  top: 14px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}
.install-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 17px;
  background: #2d215c;
  color: #b8a7ff;
  font-size: 28px;
  font-weight: 900;
}
.welcome {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0;
}
.welcome .eyebrow {
  margin-top: 0;
}
.welcome p:last-child {
  margin: 7px 0 0;
}
.date-row {
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  gap: 9px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 9px;
}
.date-row button {
  border: 0;
  border-radius: 12px;
  background: #172a41;
  color: #fff;
  font-size: 27px;
}
.date-row input {
  text-align: center;
  border: 0;
  background: transparent;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 13px 0;
}
.metrics > div {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 15px;
}
.metrics small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.metrics strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
}
.sync {
  text-align: right;
  color: #7bdcc4;
  font-size: 11px;
  margin: 10px 2px;
}
.agenda {
  display: grid;
  gap: 11px;
}
.booking {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  background: linear-gradient(180deg, #102139, #0d1b2d);
  border: 1px solid var(--line);
  border-radius: 19px;
  padding: 16px;
  box-shadow: 0 14px 35px #0003;
}
.time {
  display: grid;
  place-items: center;
  align-self: start;
  background: #091524;
  border-radius: 14px;
  min-height: 58px;
  font-size: 19px;
  font-weight: 900;
  color: var(--mint);
}
.booking-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 9px;
}
.booking h2 {
  font-size: 18px;
  margin: 0;
}
.booking p {
  margin: 3px 0;
  color: var(--muted);
  font-size: 14px;
}
.badge {
  padding: 5px 8px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
  background: #17314b;
  color: #bdd0e8;
}
.badge.confirmed,
.badge.completed {
  background: #123a31;
  color: #8cebd4;
}
.badge.in_service {
  background: #44331e;
  color: #ffc381;
}
.badge.cancelled,
.badge.no_show {
  background: #432129;
  color: #ffb2b2;
}
.payment {
  display: inline-flex;
  margin-top: 7px;
  color: #8de6d0;
  font-size: 12px;
  font-weight: 800;
}
.actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 13px;
}
.actions button {
  border: 1px solid #304760;
  border-radius: 11px;
  background: #14283e;
  color: #fff;
  min-height: 42px;
  font-weight: 800;
  font-size: 12px;
}
.actions .main {
  background: #6848e8;
  border-color: #7959f4;
}
.actions .danger {
  color: #ffaaa5;
}
.empty {
  padding: 45px 20px;
  text-align: center;
  border: 1px dashed #2b405a;
  border-radius: 20px;
  color: var(--muted);
}
footer {
  text-align: center;
  color: #71859d;
  font-size: 12px;
  padding: 25px;
}
@media (max-width: 560px) {
  .login-card {
    margin-top: 3vh;
  }
  .welcome {
    align-items: center;
  }
  .welcome h1 {
    font-size: 34px;
  }
  .metrics > div {
    padding: 12px;
  }
  .metrics strong {
    font-size: 18px;
  }
  .booking {
    grid-template-columns: 59px 1fr;
    padding: 13px;
    gap: 11px;
  }
  .time {
    font-size: 16px;
    min-height: 51px;
  }
  .actions {
    grid-template-columns: 1fr;
  }
  .booking-head {
    display: grid;
  }
  .badge {
    width: max-content;
  }
}
