* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #000;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

.kb-app {
  min-height: 100vh;
  padding: 44px 16px;
  background:
    radial-gradient(circle at 18% 8%, rgba(229, 9, 20, .23), transparent 32%),
    radial-gradient(circle at 86% 18%, rgba(22, 119, 255, .17), transparent 34%),
    linear-gradient(135deg, #050505 0%, #111 48%, #050505 100%);
}

.kb-wrap {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.kb-header {
  text-align: center;
  margin-bottom: 26px;
}

.kicker {
  color: #ff2a2a;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 900;
  font-size: 13px;
  margin-bottom: 8px;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(255, 0, 0, .35);
}

.kb-header p {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255, 255, 255, .72);
  font-size: 17px;
  line-height: 1.5;
}

.top-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 22px;
}

.pill,
.primary,
.secondary {
  border-radius: 999px;
  padding: 13px 18px;
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
  background: rgba(0, 0, 0, .45);
  cursor: pointer;
  display: inline-block;
}

.pill.active,
.primary {
  border-color: #e50914;
  background: #e50914;
  box-shadow: 0 0 26px rgba(229, 9, 20, .32);
}

.card {
  background: linear-gradient(145deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .035));
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .5);
}

.grid.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}

label span,
.label-title {
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .03em;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .17);
  background: rgba(0, 0, 0, .55);
  color: #fff;
  border-radius: 14px;
  padding: 13px 14px;
  font-size: 16px;
  outline: none;
}

textarea {
  min-height: 104px;
  resize: vertical;
}

.note {
  color: rgba(255, 255, 255, .65);
  line-height: 1.4;
}

.slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin: 10px 0 20px;
}

.slot {
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(0, 0, 0, .5);
  color: #fff;
  border-radius: 14px;
  padding: 12px 10px;
  cursor: pointer;
  font-weight: 900;
  text-align: center;
}

.slot input {
  display: none;
}

.slot.choose:has(input:checked) {
  background: #e50914;
  border-color: #e50914;
  box-shadow: 0 0 18px rgba(229, 9, 20, .3);
}

.slot.blocked {
  opacity: .45;
  cursor: not-allowed;
  text-decoration: line-through;
}

.actions,
.mini-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.message {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(0, 0, 0, .48);
  border: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .78);
  line-height: 1.45;
}

.message.good {
  border-color: rgba(32, 199, 90, .45);
  color: #dfffe9;
}

.message.bad {
  border-color: rgba(255, 77, 77, .45);
  color: #ffe2e2;
}

.admin-login {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}

.admin-login label {
  margin-bottom: 0;
}

.appt-card {
  margin-top: 14px;
  background: rgba(0, 0, 0, .45);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  padding: 15px;
}

.appt-card h2 {
  margin: 0 0 10px;
  font-size: 19px;
}

.appt-card p {
  margin: 7px 0;
  color: rgba(255, 255, 255, .82);
}

.mini-actions form {
  margin: 0;
}

.mini-actions button {
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
  border-radius: 999px;
  padding: 8px 11px;
  cursor: pointer;
  font-weight: 900;
  background: rgba(0, 0, 0, .45);
}

.mini-actions .confirmed {
  background: rgba(32, 199, 90, .35);
}

.mini-actions .cancelled {
  background: rgba(255, 77, 77, .30);
}

.mini-actions .completed {
  background: rgba(22, 119, 255, .30);
}

@media (max-width: 760px) {
  .kb-app {
    padding: 34px 12px;
  }

  .card {
    padding: 18px;
    border-radius: 20px;
  }

  .grid.two,
  .admin-login {
    grid-template-columns: 1fr;
  }

  .primary,
  .secondary {
    width: 100%;
  }

  .kb-header p {
    font-size: 15px;
  }

  .slots {
    grid-template-columns: repeat(2, 1fr);
  }
}
