/* ---------- Base ---------- */
body {
  margin: 0;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background-color: #fff;
  color: #111;
  line-height: 1.6;
}

/* ---------- Header ---------- */
.sticky-header {
  position: sticky;
  top: 0;
  background: white;
  border-bottom: 1px solid #eee;
  padding: 1.2rem 0;
  text-align: center;
  z-index: 10;
}

.sticky-header h1 {
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.5px;
  text-transform: lowercase;
}

.auth-account {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #333;
}

.auth-account__name {
  font-weight: 500;
}

.auth-account__signout {
  border: none;
  background: #111;
  color: #fff;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.auth-account__signout:hover:not(:disabled) {
  background: #333;
}

.auth-account__signout:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- Reviews Section ---------- */
.reviews {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 90%;
  max-width: 1200px;
  margin: 4rem auto 8rem;
  gap: 8rem;
}

.review {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 2rem;
}

.review:nth-child(even) {
  flex-direction: row-reverse;
}

.review-img {
  width: 45%;
  border-radius: 10px;
  height: auto;
  object-fit: cover;
}

.review-text {
  width: 45%;
}

.review-text h3 {
  margin: 0.5rem 0;
  font-weight: 500;
}

.stars {
  font-size: 1.3rem;
  color: #f1c40f;
  margin: 0;
}

.quote {
  font-style: italic;
  color: #333;
  margin-top: 5px;
}

/* ---------- Sticky Footer ---------- */
.sticky-footer {
  position: sticky;
  bottom: 0;
  background: white;
  border-top: 1px solid #eee;
  text-align: center;
  padding: 1rem 0;
}

.pricing-btn {
  background: #111;
  color: white;
  padding: 0.9rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: background 0.2s ease;
}

.pricing-btn:hover {
  background: #333;
}

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
  .review {
    flex-direction: column !important;
    text-align: center;
  }
  .review-img, .review-text {
    width: 100%;
  }
}

/* ---------- About Section ---------- */
.about {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  width: 90%;
  max-width: 1200px;
  margin: 6rem auto 8rem;
}

.about-img {
  width: 40%;
  max-width: 400px;
  border-radius: 8px;
  height: auto;
  object-fit: cover;
}

.about-text {
  width: 50%;
}

.about-text h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.about-text p {
  margin-bottom: 1rem;
  color: #333;
  line-height: 1.7;
}

/* Responsive layout */
@media (max-width: 800px) {
  .about {
    flex-direction: column;
    text-align: center;
  }

  .about-img,
  .about-text {
    width: 100%;
  }

  .about-text h2 {
    margin-top: 2rem;
  }
}

/* ---------- Bundles Section ---------- */
.bundle-section,
.pricing {
  text-align: center;
}

.pricing table {
  margin-left: auto;
  margin-right: auto;
  width: fit-content; /* or set to 100% or a specific width as you prefer */
  display: table;
}

.normal-footer {
  text-align: center;
}

/*footer of bundles section*/
html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

.off-screen-menu.active {
  right: 0;
}

body.no-background::before,
body.no-background::after {
  display: none;
}

/* ----------- book now ------------*/
.book-now {
  text-align:center;
}

/* Hamburger icon styles */
.hamburger {
  position: absolute;
  top: 1.2rem;
  left: 1rem;
  cursor: pointer;
  z-index: 20;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background-color: #111;
  margin: 5px 0;
  transition: all 0.3s ease;
}

.off-screen-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(420px, 82%);
  height: 100%;
  background: linear-gradient(160deg, rgba(17, 24, 39, 0.95), rgba(15, 23, 42, 0.85));
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: 3.5rem 2.5rem 2.75rem;
  gap: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: right 0.3s ease-in-out, opacity 0.3s ease-in-out;
  z-index: 15;
  backdrop-filter: blur(6px);
}

.off-screen-menu.active {
  right: 0;
  opacity: 1;
  pointer-events: auto;
  box-shadow: -30px 0 60px rgba(15, 23, 42, 0.45);
}

.off-screen-menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-decoration: none;
  color: #f8fafc;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 0.85rem 1.6rem;
  margin: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.35);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease,
    box-shadow 0.2s ease;
}

.off-screen-menu a:hover,
.off-screen-menu a:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  color: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.4);
}

.off-screen-menu a:focus-visible {
  outline: 3px solid rgba(248, 250, 252, 0.9);
  outline-offset: 3px;
}

.off-screen-menu .auth-link {
  width: 100%;
  text-align: center;
}

.off-screen-menu .auth-link--primary {
  background: linear-gradient(140deg, #1f2937, #0f172a);
  color: #e2e8f0;
  border: none;
  font-weight: 600;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.35);
}

.off-screen-menu .auth-link--primary:hover,
.off-screen-menu .auth-link--primary:focus-visible {
  background: linear-gradient(140deg, #334155, #1e293b);
  color: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.4);
  outline: 2px solid rgba(148, 163, 184, 0.65);
  outline-offset: 3px;
}

/* ---------- Book now page ---------- */
/* Header */
.site-header {
  background: white;
  border-bottom: 1px solid #eee;
  text-align: center;
  padding: 1.2rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header h1 {
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
  text-transform: lowercase;
  margin: 0;
}

/* Main layout */
.book-page {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 70px); /* full viewport minus header */
}

.book-option {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  overflow: hidden;
  perspective: 800px; /* for 3D tilt effect */
}

/* Background images (temporary until JS replaces them) */
.book-option:nth-child(1) {
  background: url("images/Picture1.jpg") center/cover no-repeat;
}

.book-option:nth-child(2) {
  background: url("images/Picture2.jpg") center/cover no-repeat;
}

.book-option .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease;
}

.book-option h2 {
  position: relative;
  font-size: 2.2rem;
  font-weight: 500;
  text-align: center;
  letter-spacing: 2px;
  z-index: 2;
  transition: transform 0.2s ease, text-shadow 0.3s ease;
}

/* Slight darken when hovering */
.book-option:hover .overlay {
  background: rgba(0, 0, 0, 0.4);
}

.book-option .background {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 0.15s ease-out, background-position 0.15s ease-out;
  z-index: 0;
}

/* ---------- Animation Styles ---------- */
@keyframes slideFadeInLeft {
  0% {
    opacity: 0;
    transform: translateX(-40px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.about-img,
.about-text,
.review-img,
.review-text {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s ease-out;
}

.visible .about-img,
.visible .review-img {
  animation: slideFadeInLeft 0.8s ease-out forwards;
}

.visible .about-text,
.visible .review-text {
  animation: slideFadeInLeft 0.8s ease-out forwards;
  animation-delay: 0.2s; /* text slides slightly after image */
}

/* ---------- Background decorations ---------- */
/* Background images */
body::before,
body::after {
  content: "";
  position: fixed;
  background-repeat: no-repeat;
  background-size: cover; /* fill their boxes proportionally */
  z-index: 0;
  pointer-events: none;
}

/* Bottom-left image */
body::before {
  background-image: url("images/2.jpg");
  bottom: 0;
  left: 0;
  width: 38vw;  /* wider */
  height: 38vw;
  opacity: 0.5; /* lighter */
}

/* Top-right image */
body::after {
  background-image: url("images/1.jpg");
  top: 0;
  right: 0;
  width: 48vw;  /* wider too */
  height: 48vw;
  opacity: 0.8; /* darker */
}

/* Keep content above backgrounds */
header, main, footer {
  position: relative;
  z-index: 1;
}

/* ---------- Calendar page ---------- */
.calendar-page {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 1.5rem;
}

.calendar-container {
  width: min(900px, 100%);
  background: #ffffff;
  border: 1px solid #f3f3f3;
  border-radius: 18px;
  padding: 2.5rem 2rem 2rem;
  box-shadow: 0 18px 45px rgba(17, 17, 17, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.calendar-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 500;
  text-transform: lowercase;
  letter-spacing: 1.5px;
}

.calendar-subtitle {
  margin: 0;
  color: #555;
  font-size: 0.95rem;
}

.calendar-body {
  border: 1px solid #f3f3f3;
  border-radius: 16px;
  padding: 1.5rem;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.5rem;
}

.calendar-weekday {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: #888;
  text-align: center;
}

.calendar-day {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  border: 1px solid transparent;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 500;
  color: #222;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.calendar-day:hover {
  transform: scale(1.05);
  border-color: #f3f3f3;
  box-shadow: 0 10px 20px rgba(17, 17, 17, 0.08);
}

.calendar-day.selected {
  transform: scale(1.08);
  border-color: #111;
  box-shadow: 0 14px 30px rgba(17, 17, 17, 0.12);
}

.calendar-day.disabled {
  cursor: not-allowed;
  color: #bbb;
  border-color: transparent;
  background: #f7f7f7;
  box-shadow: none;
}

.calendar-day.disabled:hover {
  transform: none;
}

.calendar-helper {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
}

.calendar-footer {
  padding: 1.5rem;
  border-top: 1px solid #f3f3f3;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: center;
}

.select-time-button {
  padding: 0.9rem 3rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 999px;
  border: none;
  background: #111;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.select-time-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.select-time-button:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(17, 17, 17, 0.18);
}

@media (max-width: 700px) {
  .calendar-container {
    padding: 2rem 1.2rem 1.5rem;
  }

  .calendar-body {
    padding: 1.2rem;
  }

  .calendar-day {
    font-size: 0.95rem;
  }
}

/* ---------- Select Time page ---------- */
.select-time-page {
  display: flex;
  justify-content: center;
  padding: 3.5rem 1.5rem 4rem;
}

.select-time-container {
  width: min(960px, 100%);
  background: #ffffff;
  border: 1px solid #f3f3f3;
  border-radius: 22px;
  padding: 2.75rem 2.5rem;
  box-shadow: 0 20px 55px rgba(17, 17, 17, 0.06);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.select-time-title {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 500;
  text-transform: lowercase;
  letter-spacing: 1.5px;
}

.select-time-helper {
  margin: 0;
  font-size: 1rem;
  color: #555;
}

.select-time-list {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  max-height: 65vh;
  overflow-y: auto;
  padding: 3rem 1.5rem 3rem 0.5rem;
  scroll-snap-type: y proximity;
  overscroll-behavior: contain;
  scroll-padding-top: 40%;
  scroll-padding-bottom: 40%;
}


.select-time-list:focus-visible {
  outline: 2px solid #111;
  outline-offset: 4px;
}

.select-time-list::-webkit-scrollbar {
  width: 8px;
}

.select-time-list::-webkit-scrollbar-track {
  background: transparent;
}

.select-time-list::-webkit-scrollbar-thumb {
  background: #d7d7d7;
  border-radius: 999px;
}

.select-time-list--empty {
  max-height: none;
  padding: 0;
}

.date-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(200px, 0.7fr) 1fr;
  gap: 2rem;
  padding: 2.2rem 2.4rem;
  border-radius: 20px;
  border: 1px solid #f3f3f3;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(17, 17, 17, 0.06);
  transform: scale(0.95);
  opacity: 0.8;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
  scroll-snap-align: center;
}

.date-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 25px 45px rgba(17, 17, 17, 0.08);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.date-card.focused {
  transform: scale(1.05);
  opacity: 1;
  box-shadow: 0 28px 60px rgba(17, 17, 17, 0.14);
}

.date-card.focused::after {
  opacity: 1;
}

.date-card.focused .date-card__weekday,
.date-card.focused .date-card__full {
  font-weight: 700;
}

.date-card.locked {
  opacity: 0.55;
}

.date-card__date {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: sticky;
  top: 50%;
  transform: translateY(-50%);
  align-self: flex-start;
}

.date-card__weekday {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #777;
}

.date-card__full {
  font-size: 1.4rem;
  font-weight: 500;
  color: #111;
}

.date-card__status {
  font-size: 0.85rem;
  color: #888;
}

.date-card.locked .date-card__status {
  color: #aaa;
}

.date-card__times {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.time-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  background: #f7f7f7;
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.05);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.time-option input {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid #bfbfbf;
  display: grid;
  place-items: center;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  background: #ffffff;
}

.time-option input::after {
  content: "";
  width: 6px;
  height: 12px;
  border: solid transparent;
  border-width: 0 2px 2px 0;
  display: block;
  transform: rotate(45deg);
}

.time-option input:checked {
  background: #111;
  border-color: #111;
}

.time-option input:checked::after {
  border-color: #ffffff;
}

.time-option input:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.time-option span {
  font-size: 0.95rem;
  font-weight: 500;
  color: #222;
}

.time-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(17, 17, 17, 0.1);
}

.date-card.locked .time-option {
  cursor: not-allowed;
  box-shadow: 0 8px 18px rgba(17, 17, 17, 0.04);
}

.date-card.locked .time-option:hover {
  transform: none;
}

.date-card.locked .time-option input {
  border-color: #d7d7d7;
  background: #f9f9f9;
}

.select-time-empty {
  margin: 0;
  font-size: 0.95rem;
  color: #777;
}

.select-time-empty a {
  color: #111;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.select-time-empty a:hover {
  border-color: #111;
}

.select-time-next {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
}

.select-time-next__button {
  padding: 0.9rem 3rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 999px;
  border: none;
  background: #111;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  text-decoration: none;
}

.select-time-next__button:hover,
.select-time-next__button:focus-visible {
  background: #222;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.12);
}

.select-time-next__button:focus-visible {
  outline: 3px solid rgba(17, 17, 17, 0.25);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .date-card {
    grid-template-columns: minmax(160px, 1fr) 1.2fr;
    padding: 2rem 2rem;
  }
}

@media (max-width: 700px) {
  .select-time-container {
    padding: 2.2rem 1.5rem;
  }

  .date-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.8rem 1.6rem;
  }

  .date-card__date {
    position: static;
    align-items: flex-start;
    transform: none;
  }

  .date-card__times {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}

/* ---------- Select Subjects page ---------- */
.subjects-page {
  display: flex;
  justify-content: center;
  padding: 3.5rem 1.5rem 4rem;
}

.subjects-container {
  width: min(900px, 100%);
  background: #ffffff;
  border: 1px solid #f3f3f3;
  border-radius: 22px;
  padding: 2.75rem 2.5rem;
  box-shadow: 0 20px 55px rgba(17, 17, 17, 0.06);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.subjects-title {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 500;
  text-transform: lowercase;
  letter-spacing: 1.5px;
}

.subjects-helper {
  margin: 0;
  font-size: 1rem;
  color: #555;
}

.subjects-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-height: 65vh;
  overflow-y: auto;
  padding: 3rem 1.5rem 3rem 0.5rem;
  scroll-snap-type: y mandatory;
  scroll-padding-top: 40%;
  scroll-padding-bottom: 40%;
}

.subjects-list:focus-visible {
  outline: 2px solid #111;
  outline-offset: 4px;
}

.subjects-list::-webkit-scrollbar {
  width: 8px;
}

.subjects-list::-webkit-scrollbar-track {
  background: transparent;
}

.subjects-list::-webkit-scrollbar-thumb {
  background: #d7d7d7;
  border-radius: 999px;
}

.subjects-list--empty {
  max-height: none;
  padding: 0;
}

.subjects-empty {
  margin: 0;
  font-size: 0.95rem;
  color: #777;
}

.subjects-empty a {
  color: #111;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.subjects-empty a:hover {
  border-color: #111;
}

.subject-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2.4rem 2.6rem;
  border-radius: 22px;
  border: 1px solid #f3f3f3;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(17, 17, 17, 0.06);
  transform: scale(0.92);
  opacity: 0.8;
  transition: transform 0.28s ease, box-shadow 0.28s ease, opacity 0.28s ease;
  scroll-snap-align: center;
}

.subject-card.focused {
  transform: scale(1.05);
  opacity: 1;
  box-shadow: 0 28px 60px rgba(17, 17, 17, 0.14);
}

.subject-card--complete {
  border-color: #111;
}

.subject-card__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}

.subject-card__sequence {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #888;
}

.subject-card__date {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  color: #111;
}

.subject-card__time {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: #444;
}

.subject-card__prompt {
  margin: 0;
  text-align: center;
  color: #666;
}

.subject-card--complete .subject-card__prompt {
  color: #2f8f46;
}

.subject-card__options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

.subject-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.15rem;
  border-radius: 14px;
  background: #f7f7f7;
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  cursor: pointer;
}

.subject-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(17, 17, 17, 0.1);
}

.subject-option input {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #bfbfbf;
  display: grid;
  place-items: center;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  background: #ffffff;
}

.subject-option input::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  transition: background-color 0.2s ease;
}

.subject-option input:checked {
  background: #111;
  border-color: #111;
}

.subject-option input:checked::after {
  background: #ffffff;
}

.subject-option input:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.subject-option span {
  font-size: 0.95rem;
  font-weight: 500;
  color: #222;
  white-space: nowrap;
}

.subjects-footer {
  padding: 1.5rem;
  border-top: 1px solid #f3f3f3;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  justify-content: center;
}

.subjects-checkout {
  padding: 0.9rem 3rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 999px;
  border: none;
  background: #111;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.subjects-checkout:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}

.subjects-checkout:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(17, 17, 17, 0.18);
}

@media (max-width: 900px) {
  .subjects-container {
    padding: 2.4rem 2rem;
  }

  .subject-card {
    padding: 2.2rem 2.2rem;
  }
}

@media (max-width: 700px) {
  .subjects-container {
    padding: 2.2rem 1.5rem;
  }

  .subjects-list {
    padding: 2.5rem 0.5rem 2.5rem 0.5rem;
  }

  .subject-card {
    padding: 2rem 1.6rem;
  }

  .subject-option {
    width: 100%;
    justify-content: center;
  }

  .subject-option span {
    white-space: normal;
    text-align: center;
  }
}


/* ---------- Authentication Pages ---------- */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
}

.auth-card {
  width: min(460px, 100%);
  background: #ffffff;
  border: 1px solid #f1f1f1;
  border-radius: 18px;
  padding: 2.5rem 2.25rem;
  box-shadow: 0 20px 40px rgba(17, 17, 17, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.auth-title {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: lowercase;
}

.auth-intro {
  margin: 0;
  color: #555;
  line-height: 1.6;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.auth-field label {
  font-weight: 600;
  letter-spacing: 0.4px;
}

.auth-field input,
.auth-field select {
  border: 1px solid #dcdcdc;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-field input:focus-visible,
.auth-field select:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
  border-color: #111;
  box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.12);
}

.auth-hint {
  margin: 0;
  font-size: 0.85rem;
  color: #777;
}

.auth-submit {
  border: none;
  border-radius: 999px;
  background: #111;
  color: #fff;
  padding: 0.95rem 1.2rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-submit:hover,
.auth-submit:focus-visible {
  background: #333;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(17, 17, 17, 0.2);
}

.auth-switch {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
}

.auth-switch a {
  color: #111;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.auth-switch a:hover,
.auth-switch a:focus-visible {
  border-color: #111;
}

@media (max-width: 600px) {
  .auth-card {
    padding: 2rem 1.75rem;
  }
}

/* ---------- Checkout ---------- */
.checkout-page {
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem 6rem;
  background: linear-gradient(180deg, #fafafa 0%, #ffffff 60%);
}

.checkout-panel {
  width: min(920px, 100%);
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.12);
  padding: clamp(2rem, 5vw, 3rem);
  display: grid;
  gap: 2.5rem;
}

.checkout-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checkout-title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.checkout-intro {
  margin: 0;
  color: #4b5563;
}

.checkout-summary {
  background: #f9fafb;
  border-radius: 18px;
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
}

.checkout-summary__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.checkout-summary__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.checkout-summary__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.checkout-summary__details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.checkout-summary__subject {
  font-weight: 600;
}

.checkout-summary__datetime {
  color: #6b7280;
  font-size: 0.95rem;
}

.checkout-summary__price {
  font-weight: 600;
}

.checkout-summary__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 600;
}

.checkout-payment {
  display: grid;
  gap: 1.5rem;
}

.checkout-payment__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.checkout-embed {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  min-height: 420px;
  background: #fff;
}

.checkout-status {
  margin: 0;
  color: #4b5563;
}

.checkout-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #9ca3af;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.checkout-divider::before,
.checkout-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.4), rgba(148, 163, 184, 0));
}

.checkout-divider::after {
  background: linear-gradient(90deg, rgba(148, 163, 184, 0), rgba(148, 163, 184, 0.4));
}

.checkout-redirect {
  border: none;
  background: #111827;
  color: #fff;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.checkout-redirect:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(30, 64, 175, 0.3);
}

.checkout-redirect:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .checkout-panel {
    border-radius: 16px;
    padding: 1.75rem;
  }

  .checkout-summary {
    padding: 1.25rem;
  }
}

/* ---------- Checkout Result ---------- */
.checkout-result {
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  background: linear-gradient(135deg, #f1f5f9 0%, #ffffff 60%);
}

.checkout-result__panel {
  background: #fff;
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.14);
  display: grid;
  gap: 1rem;
  width: min(520px, 100%);
}

.checkout-result__panel h2 {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 2.2rem);
  font-weight: 700;
}

.checkout-result__panel p {
  margin: 0;
  color: #4b5563;
}

.checkout-result__cta {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  background: #111827;
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.checkout-result__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(30, 64, 175, 0.3);
}

.checkout-result__link {
  color: #1f2937;
  text-decoration: underline;
  font-weight: 500;
}

/* ---------- Admin Dashboard ---------- */
.admin-page {
  min-height: calc(100vh - 160px);
  display: flex;
  justify-content: center;
  padding: 4rem 1.5rem 6rem;
  background: #f8fafc;
}

.admin-panel {
  width: min(1100px, 100%);
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.12);
  padding: clamp(2rem, 4vw, 3rem);
  display: grid;
  gap: 1.5rem;
}

.admin-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
}

.admin-intro {
  margin: 0;
  color: #4b5563;
}

.admin-loading,
.admin-error,
.admin-empty {
  margin: 0;
  font-size: 0.95rem;
}

.admin-error {
  color: #dc2626;
}

.admin-empty {
  color: #6b7280;
}

.admin-table-wrapper {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.admin-table th,
.admin-table td {
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

.admin-table th {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.admin-table td {
  font-size: 0.95rem;
  color: #1f2937;
}

.admin-table tbody tr:hover {
  background: rgba(226, 232, 240, 0.3);
}

.admin-table select {
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  font-weight: 500;
  background: #fff;
  cursor: pointer;
}

@media (max-width: 768px) {
  .admin-page {
    padding: 3rem 1rem 5rem;
  }

  .admin-panel {
    border-radius: 18px;
  }
}
