/* /styles.css */
:root {
  --bg: #0b0b0d;
  --card: #ffffff;
  --paper: #fbf4e6;
  --beige: #f2d59a;
  --ink: #121318;
  --muted: #6a6f7a;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);

  --accent: #1bb6e2;
  --accent2: #f2a313;
  --radius: 18px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(27,182,226,0.18), transparent 60%),
    radial-gradient(900px 600px at 20% 0%, rgba(242,163,19,0.18), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: "Cairo", "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.hidden { display: none !important; }
.muted { color: var(--muted); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #fff;
}

.brand__logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  padding: 6px;
}

.brand__title { font-weight: 800; }
.brand__subtitle { font-size: 12px; opacity: 0.8; margin-top: -2px; }

.topbar__actions { display: flex; gap: 10px; align-items: center; }

.ghost-link {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
}
.ghost-link:hover { background: rgba(255,255,255,0.06); }

.lang { display: flex; gap: 8px; }
.pill {
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}
.pill.is-active {
  background: linear-gradient(135deg, rgba(27,182,226,0.25), rgba(242,163,19,0.25));
  border-color: rgba(255,255,255,0.24);
}

.container {
  max-width: 1120px;
  margin: 26px auto 60px;
  padding: 0 16px;
}

.card {
  display: grid;
  grid-template-columns: 420px 1fr;
  min-height: 620px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card--fullwidth {
  grid-template-columns: 1fr;
}

.card--fullwidth .card__left {
  display: none;
}

.card__left {
  background: linear-gradient(180deg, rgba(242,213,154,1), rgba(242,213,154,0.86));
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.imageWrap {
  background: rgba(255,255,255,0.7);
  border-radius: 18px;
  padding: 14px;
  border: 1px solid rgba(18, 19, 24, 0.10);
  display: grid;
  place-items: center;
  height: 420px;
}

.imageWrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
}

.progress {
  background: rgba(255,255,255,0.58);
  border: 1px solid rgba(18, 19, 24, 0.10);
  border-radius: 16px;
  padding: 12px 12px 10px;
}

.progress__bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(18, 19, 24, 0.10);
  overflow: hidden;
}
.progress__fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  transition: width 240ms ease;
}
.progress__meta {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-weight: 700;
}

.card__right {
  background: var(--paper);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
}

.sheetHeader {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(18, 19, 24, 0.18);
}

.sheetHeader__logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(18,19,24,0.10);
  border-radius: 16px;
  padding: 8px;
}

.qTitle {
  font-size: 30px;
  font-weight: 800;
  color: #165b7a;
  line-height: 1.2;
}

.qHint { margin-top: 3px; }
.qBody { padding: 18px 0; flex: 1; }

.field { margin-bottom: 14px; }
.label { display: block; font-weight: 800; margin-bottom: 8px; }

.input, .select, .textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(18,19,24,0.14);
  background: rgba(255,255,255,0.8);
  outline: none;
  font-size: 15px;
}

.textarea { min-height: 110px; resize: vertical; }

.choices { display: grid; gap: 10px; }
.choice {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(18,19,24,0.14);
  background: rgba(255,255,255,0.82);
  border-radius: 14px;
  padding: 12px 12px;
  cursor: pointer;
}
.choice input { margin: 0; }

.availabilityForm {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.availabilityIntro {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 700;
}

.availabilityTabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(255,255,255,0.58);
  border: 1px solid rgba(18,19,24,0.10);
}

.availabilityTab {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.availabilityTab.is-active {
  background: rgba(255,255,255,0.92);
  color: #0f3f55;
  box-shadow: 0 8px 18px rgba(15, 63, 85, 0.10);
}

.availabilityGridWrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(18,19,24,0.12);
  border-radius: 16px;
  background: rgba(255,255,255,0.68);
}

.availabilityGrid {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  table-layout: fixed;
}

.availabilityGrid th,
.availabilityGrid td {
  border-bottom: 1px solid rgba(18,19,24,0.08);
  border-inline-end: 1px solid rgba(18,19,24,0.07);
  padding: 6px;
  text-align: center;
  vertical-align: middle;
}

.availabilityGrid th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(251,244,230,0.96);
  color: #0f3f55;
  font-size: 12px;
  font-weight: 900;
}

.availabilityGrid__time,
.availabilityTime,
.availabilityPeriodName {
  position: sticky;
  inset-inline-start: 0;
  z-index: 2;
  background: rgba(251,244,230,0.98);
}

.availabilityPeriodRow td {
  background: rgba(242,163,19,0.12);
}

.availabilityPeriodName {
  color: #0f3f55;
  font-size: 13px;
  font-weight: 900;
  text-align: start;
}

.availabilityTime {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.availabilityCell,
.availabilityAll {
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(18,19,24,0.12);
  border-radius: 8px;
  background: rgba(255,255,255,0.76);
  cursor: pointer;
  color: #0f3f55;
  font-weight: 900;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.availabilityAll {
  min-height: 28px;
  font-size: 11px;
}

.availabilityCell.is-selected,
.availabilityAll.is-selected {
  background: #b5d4f4;
  border-color: #185fa5;
  color: #0c447c;
}

.availabilityCell:active,
.availabilityAll:active {
  transform: scale(0.96);
}

.availabilityPeriodMeta {
  display: none;
}

.availabilityCounter {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(18,19,24,0.10);
}

.availabilityCounter__number {
  color: #0f3f55;
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
}

.availabilityCounter__label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.availabilityCounter__status {
  display: grid;
  gap: 3px;
  text-align: end;
  font-weight: 900;
}

.availabilityCounter__status.is-ok strong { color: #2a7d3f; }
.availabilityCounter__status.is-low strong { color: #9f6210; }
.availabilityCounter__status span { color: var(--muted); font-size: 12px; }

.emptyState {
  border: 1px dashed rgba(18,19,24,0.18);
  background: rgba(255,255,255,0.62);
  border-radius: 14px;
  padding: 14px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.5;
}

.interviewCalendar {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.calendarHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(18,19,24,0.10);
  background: rgba(255,255,255,0.68);
  border-radius: 16px;
}

.calendarHeader strong {
  color: #0f3f55;
  font-size: 18px;
  line-height: 1.35;
}

.calendarEyebrow {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.calendarDays {
  display: grid;
  grid-template-columns: repeat(5, minmax(92px, 1fr));
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}

.calendarDay {
  min-height: 92px;
  border: 1px solid rgba(18,19,24,0.12);
  background: rgba(255,255,255,0.78);
  border-radius: 14px;
  padding: 10px;
  cursor: pointer;
  color: #0f3f55;
  display: grid;
  align-content: center;
  gap: 4px;
  text-align: center;
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.calendarDay:hover {
  border-color: rgba(27, 182, 226, 0.38);
  box-shadow: 0 10px 22px rgba(15, 63, 85, 0.10);
}

.calendarDay.is-selected {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(230,247,252,0.96));
  border-color: rgba(27, 182, 226, 0.92);
  box-shadow: 0 12px 28px rgba(27, 182, 226, 0.16);
}

.calendarDay span,
.calendarDay em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.calendarDay strong {
  font-size: 16px;
  line-height: 1.25;
}

.slotPanel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(18,19,24,0.10);
  background: rgba(255,255,255,0.62);
  border-radius: 16px;
}

.slotPanel__title {
  color: #0f3f55;
  font-weight: 900;
}

.slotCards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.slotCard {
  border: 1px solid rgba(18,19,24,0.12);
  background: rgba(255,255,255,0.82);
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 5px;
  text-align: start;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  min-height: 112px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.slotCard:hover {
  border-color: rgba(242, 163, 19, 0.55);
  box-shadow: 0 10px 24px rgba(15, 63, 85, 0.10);
}

.slotCard.is-selected {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,246,226,0.98));
  border-color: rgba(242, 163, 19, 0.90);
  box-shadow: 0 12px 26px rgba(242, 163, 19, 0.16);
}

.slotCard__time {
  color: #0f3f55;
  font-size: 18px;
  font-weight: 900;
}

.slotCard__coach {
  font-weight: 900;
  overflow-wrap: anywhere;
}

.slotCard__meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.selectedSlot {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(42, 142, 72, 0.22);
  background: rgba(42, 142, 72, 0.10);
}

.selectedSlot span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.selectedSlot strong {
  color: #1d6a35;
  line-height: 1.45;
}

.scheduleBooking {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.scheduleBooking__notice {
  border: 1px solid rgba(27, 182, 226, 0.22);
  background: linear-gradient(135deg, rgba(27, 182, 226, 0.12), rgba(242, 163, 19, 0.12));
  color: #0f3f55;
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 800;
  line-height: 1.5;
}

.scheduleCards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.scheduleCard {
  position: relative;
  display: grid;
  gap: 12px;
  min-width: 0;
  min-height: 162px;
  padding: 14px;
  border: 1px solid rgba(18,19,24,0.12);
  background: rgba(255,255,255,0.84);
  border-radius: 16px;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.scheduleCard:hover {
  border-color: rgba(27, 182, 226, 0.42);
  box-shadow: 0 10px 24px rgba(15, 63, 85, 0.10);
}

.scheduleCard.is-selected {
  border-color: rgba(27, 182, 226, 0.95);
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(230,247,252,0.94));
  box-shadow: 0 12px 28px rgba(27, 182, 226, 0.18);
}

.scheduleCard input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.scheduleCard__check {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(18,19,24,0.16);
  color: transparent;
  background: rgba(255,255,255,0.85);
  font-weight: 900;
}

.scheduleCard.is-selected .scheduleCard__check {
  color: #0b0b0d;
  border-color: rgba(242, 163, 19, 0.85);
  background: var(--accent2);
}

.scheduleCard__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 34px;
  min-width: 0;
}

.scheduleCard__top strong {
  color: #0f3f55;
  font-size: 17px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.scheduleBadge {
  flex: 0 0 auto;
  margin-inline-end: 30px;
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(42, 142, 72, 0.12);
  border: 1px solid rgba(42, 142, 72, 0.22);
  color: #1d6a35;
  font-size: 12px;
  font-weight: 900;
}

.scheduleCard__grid {
  display: grid;
  grid-template-columns: minmax(92px, auto) minmax(0, 1fr);
  gap: 7px 12px;
  align-items: baseline;
  min-width: 0;
}

.scheduleCard__grid span {
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}

.scheduleCard__grid strong {
  min-width: 0;
  color: #101217;
  overflow-wrap: anywhere;
}

.selectedSchedule,
.bookingSummary {
  border: 1px solid rgba(242, 163, 19, 0.35);
  background: rgba(255,255,255,0.78);
  border-radius: 16px;
  padding: 14px;
}

.selectedSchedule__title,
.bookingSummary__title {
  color: #0f3f55;
  font-weight: 900;
  margin-bottom: 8px;
}

.selectedSchedule__body {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}

.selectedSchedule__body > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.bookingSummary {
  margin-top: 8px;
}

.bookingSummary__grid {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px 12px;
  align-items: baseline;
}

.bookingSummary__grid span {
  color: var(--muted);
  font-weight: 800;
}

.bookingSummary__grid strong {
  overflow-wrap: anywhere;
}

.scheduleState {
  display: grid;
  gap: 10px;
  align-items: center;
  justify-items: center;
  text-align: center;
  border: 1px dashed rgba(18,19,24,0.18);
  border-radius: 16px;
  background: rgba(255,255,255,0.68);
  padding: 24px 16px;
  color: #0f3f55;
}

.scheduleState small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.scheduleState__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(27, 182, 226, 0.14);
  color: #0f3f55;
  font-weight: 900;
}

.scheduleState--error .scheduleState__icon {
  background: rgba(190, 43, 43, 0.12);
  color: #9f1d1d;
}

.scheduleSpinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(27, 182, 226, 0.20);
  border-top-color: var(--accent);
  animation: spin 800ms linear infinite;
}

.scheduleRetry {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  color: #0b0b0d;
  font-weight: 900;
  cursor: pointer;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(18, 19, 24, 0.18);
}

.btn {
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 900;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn--primary {
  color: #0b0b0d;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
}

.btn--ghost {
  color: var(--ink);
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(18,19,24,0.14);
}

.thanksTitle { font-size: 42px; margin: 0; color: #165b7a; }
.thanksText { font-size: 16px; margin-top: 8px; }

.scoreBox {
  margin: 18px 0;
  border-radius: 18px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(18,19,24,0.10);
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.scoreBox__big { font-size: 42px; font-weight: 900; color: #165b7a; }
.scoreBox__meta { font-weight: 900; display: flex; gap: 10px; align-items: center; }

/* Dashboard */
.panel {
  background: rgba(255,255,255,0.92);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel__head {
  padding: 18px 18px 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  border-bottom: 1px solid rgba(18,19,24,0.10);
  background: linear-gradient(135deg, rgba(242,163,19,0.10), rgba(27,182,226,0.10));
}

.panel__title { margin: 0; font-size: 28px; font-weight: 900; color: #0f3f55; }
.panel__tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.tableWrap { overflow: auto; }
.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}
.table th, .table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(18,19,24,0.08);
  text-align: start;
  white-space: nowrap;
}
.table thead th {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.98);
  z-index: 1;
  font-weight: 900;
  color: #0f3f55;
}

.badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid rgba(18,19,24,0.12);
  background: rgba(255,255,255,0.75);
}

.modal {
  border: 0;
  border-radius: 18px;
  width: min(980px, 96vw);
  box-shadow: var(--shadow);
  padding: 0;
}
.modal::backdrop { background: rgba(0,0,0,0.62); }

.modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(18,19,24,0.10);
  background: rgba(255,255,255,0.96);
}
.modal__title { font-weight: 900; font-size: 18px; }
.modal__body { padding: 14px; background: rgba(255,255,255,0.96); }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.box {
  border: 1px solid rgba(18,19,24,0.10);
  background: rgba(255,255,255,0.76);
  border-radius: 16px;
  padding: 12px;
}
.box__title { font-weight: 900; margin-bottom: 10px; color: #0f3f55; }

.kvList { display: grid; gap: 10px; }
.kv { border: 1px dashed rgba(18,19,24,0.16); border-radius: 14px; padding: 10px; }
.kv__k { font-weight: 900; margin-bottom: 6px; color: #0f3f55; }
.kv__v { color: #101217; }

/* ========================= */
/* Monthly Calendar (mcal)    */
/* ========================= */

.mcal {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.mcal__header {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(27, 182, 226, 0.10), rgba(242, 163, 19, 0.10));
  border: 1px solid rgba(18, 19, 24, 0.08);
}

.mcal__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(18, 19, 24, 0.08);
  flex-shrink: 0;
}

.mcal__title {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  color: #0f3f55;
  line-height: 1.3;
}

.mcal__desc {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-line;
}

.mcal__calendar {
  border: 1px solid rgba(18, 19, 24, 0.10);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  overflow: hidden;
}

.mcal__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(18, 19, 24, 0.08);
  background: rgba(255, 255, 255, 0.60);
}

.mcal__nav-btn {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(18, 19, 24, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
  color: #0f3f55;
  display: grid;
  place-items: center;
  transition: background 120ms ease, border-color 120ms ease;
}

.mcal__nav-btn:hover {
  background: rgba(27, 182, 226, 0.12);
  border-color: rgba(27, 182, 226, 0.32);
}

.mcal__monthname {
  font-weight: 900;
  font-size: 17px;
  color: #0f3f55;
}

.mcal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  padding: 8px;
}

.mcal__dayheader {
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  color: var(--muted);
  padding: 8px 4px;
}

.mcal__cell {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 12px;
  margin: 2px;
  transition: background 140ms ease, box-shadow 140ms ease, transform 140ms ease;
  user-select: none;
}

.mcal__cell--empty {
  background: transparent;
}

.mcal__cell--gray {
  background: rgba(18, 19, 24, 0.04);
  opacity: 0.45;
}

.mcal__cell--red {
  background: rgba(200, 50, 50, 0.08);
}

.mcal__cell--red .mcal__daynum {
  color: rgba(160, 50, 50, 0.55);
}

.mcal__cell--yellow {
  background: rgba(242, 163, 19, 0.12);
  border: 1px solid rgba(242, 163, 19, 0.22);
}

.mcal__cell--green {
  background: rgba(42, 142, 72, 0.10);
  border: 1px solid rgba(42, 142, 72, 0.18);
}

.mcal__cell--clickable {
  cursor: pointer;
}

.mcal__cell--clickable:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(15, 63, 85, 0.12);
  z-index: 1;
}

.mcal__cell--selected {
  background: linear-gradient(135deg, rgba(27, 182, 226, 0.22), rgba(242, 163, 19, 0.22)) !important;
  border: 2px solid rgba(27, 182, 226, 0.85) !important;
  box-shadow: 0 6px 18px rgba(27, 182, 226, 0.18);
  transform: scale(1.06);
  z-index: 2;
}

.mcal__daynum {
  font-size: 15px;
  font-weight: 900;
  color: #0f3f55;
  line-height: 1;
}

.mcal__dots {
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 1px 5px;
  line-height: 1.3;
}

.mcal__cell--green .mcal__dots { color: #1d6a35; }
.mcal__cell--yellow .mcal__dots { color: #9f6210; }

.mcal__legend {
  display: flex;
  gap: 14px;
  justify-content: center;
  padding: 10px 12px 14px;
  flex-wrap: wrap;
}

.mcal__legend-item {
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}

.mcal__legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mcal__legend-dot--green { background: rgba(42, 142, 72, 0.65); }
.mcal__legend-dot--yellow { background: rgba(242, 163, 19, 0.65); }
.mcal__legend-dot--red { background: rgba(200, 50, 50, 0.45); }
.mcal__legend-dot--gray { background: rgba(18, 19, 24, 0.18); }

.mcal__daydetail {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(18, 19, 24, 0.10);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.mcal__daydetail-title {
  font-size: 17px;
  font-weight: 900;
  color: #0f3f55;
}

.mcal__timegroup {
  display: grid;
  gap: 8px;
}

.mcal__timegroup-label {
  font-size: 13px;
  font-weight: 900;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 4px;
  border-bottom: 1px dashed rgba(18, 19, 24, 0.10);
}

.mcal__timeslots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.mcal__slot {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(18, 19, 24, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  text-align: start;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.mcal__slot:hover {
  border-color: rgba(242, 163, 19, 0.50);
  box-shadow: 0 8px 20px rgba(15, 63, 85, 0.08);
}

.mcal__slot--selected {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 246, 226, 0.98));
  border-color: rgba(242, 163, 19, 0.90);
  box-shadow: 0 10px 24px rgba(242, 163, 19, 0.14);
}

.mcal__slot-time {
  font-size: 17px;
  font-weight: 900;
  color: #0f3f55;
}

.mcal__slot-coach {
  font-weight: 800;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.mcal__slot-badge {
  display: inline-block;
  width: max-content;
  font-size: 11px;
  font-weight: 900;
  color: #1d6a35;
  background: rgba(42, 142, 72, 0.10);
  border: 1px solid rgba(42, 142, 72, 0.18);
  border-radius: 999px;
  padding: 2px 8px;
}

.mcal__unavailable {
  padding: 14px;
  border: 1px dashed rgba(200, 50, 50, 0.28);
  border-radius: 14px;
  background: rgba(200, 50, 50, 0.06);
  color: #9f1d1d;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 960px) {
  .card { grid-template-columns: 1fr; }
  .imageWrap { height: 280px; }
  .grid2 { grid-template-columns: 1fr; }
  .scheduleCards { grid-template-columns: 1fr; }
  .slotCards { grid-template-columns: 1fr; }
  .mcal__timeslots { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .container { padding: 0 10px; margin-top: 16px; }
  .card__right { padding: 18px 16px; }
  .qTitle { font-size: 24px; }
  .availabilityTabs { grid-template-columns: 1fr; }
  .availabilityGrid { min-width: 620px; }
  .availabilityGrid th,
  .availabilityGrid td { padding: 5px; }
  .availabilityCell { min-height: 38px; }
  .availabilityCounter {
    align-items: flex-start;
    flex-direction: column;
  }
  .availabilityCounter__status { text-align: start; }
  .scheduleCard { min-height: 0; padding: 13px; }
  .scheduleCard__top {
    display: grid;
    gap: 8px;
    padding-inline-end: 34px;
  }
  .scheduleBadge {
    width: max-content;
    margin-inline-end: 0;
  }
  .scheduleCard__grid,
  .bookingSummary__grid {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .mcal__grid { padding: 4px; }
  .mcal__cell { border-radius: 8px; margin: 1px; }
  .mcal__daynum { font-size: 13px; }
  .mcal__dots { font-size: 9px; }
  .mcal__timeslots { grid-template-columns: 1fr; }
  .mcal__header { padding: 14px 12px; }
  .mcal__title { font-size: 17px; }
  .btn { min-height: 46px; }
}
