.book-item.is-course-coming-soon,
.book-card.is-course-coming-soon {
  position: relative;
}

.book-item.is-course-coming-soon .book-cover,
.book-card.is-course-coming-soon img {
  filter: saturate(0.58) brightness(0.94) drop-shadow(0 14px 14px rgba(24, 37, 57, 0.12));
}

.book-item.is-course-coming-soon:hover .book-cover {
  transform: translateY(-3px);
  filter: saturate(0.62) brightness(0.96) drop-shadow(0 17px 16px rgba(24, 37, 57, 0.14));
}

.book-card.is-course-coming-soon {
  border-color: rgba(242, 151, 48, 0.34);
  background: linear-gradient(180deg, #ffffff, #fffaf4);
}

.book-card.is-course-coming-soon:hover {
  transform: translateY(-2px);
  border-color: rgba(242, 151, 48, 0.56);
  box-shadow: 0 10px 24px rgba(61, 70, 81, 0.08);
}

.course-status-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  color: #9b5413;
  background: rgba(255, 237, 211, 0.96);
  box-shadow: 0 6px 16px rgba(104, 63, 21, 0.14);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.course-status-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 7px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #a25a17;
  background: #fff3e4;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.book-card .course-status-note {
  display: flex;
  width: fit-content;
  margin: 10px auto 0;
}

.course-coming-soon-modal[hidden] {
  display: none;
}

.course-coming-soon-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
}

.course-coming-soon-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(15, 37, 55, 0.58);
  cursor: default;
}

.course-coming-soon-dialog {
  position: relative;
  width: min(420px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid rgba(17, 157, 188, 0.18);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 37, 55, 0.24);
}

.course-coming-soon-accent {
  height: 5px;
  background: linear-gradient(90deg, #16a4c4, #2482bc);
}

.course-coming-soon-content {
  padding: 30px 30px 28px;
  text-align: center;
}

.course-coming-soon-clock {
  position: relative;
  display: block;
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  border-radius: 16px;
  color: #119dbc;
  background: #eaf8fb;
}

.course-coming-soon-clock::before {
  position: absolute;
  top: 13px;
  left: 13px;
  width: 26px;
  height: 26px;
  border: 2px solid currentColor;
  border-radius: 50%;
  content: "";
}

.course-coming-soon-clock::after {
  position: absolute;
  top: 20px;
  left: 25px;
  width: 7px;
  height: 8px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  content: "";
}

.course-coming-soon-title {
  margin: 0;
  color: #253746;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
}

.course-coming-soon-description {
  margin: 10px 0 0;
  color: #6a7884;
  font-size: 14px;
  line-height: 1.8;
}

.course-coming-soon-name {
  color: #119dbc;
  font-weight: 700;
}

.course-coming-soon-confirm {
  min-width: 116px;
  margin-top: 24px;
  padding: 10px 24px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #16a4c4;
  box-shadow: 0 8px 20px rgba(22, 164, 196, 0.2);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.course-coming-soon-confirm:hover {
  background: #128fae;
}

.course-coming-soon-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  color: #71808c;
  background: #f0f4f6;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.course-coming-soon-empty {
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 28px;
  border: 1px dashed rgba(17, 157, 188, 0.34);
  border-radius: 12px;
  color: #60717d;
  background: linear-gradient(135deg, #f8fcfd, #f4f8fb);
  text-align: center;
}

.course-coming-soon-empty strong {
  display: block;
  margin-bottom: 7px;
  color: #2c4252;
  font-size: 17px;
}

.course-page-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 220, 174, 0.72);
  border-radius: 999px;
  color: #8c4d12;
  background: rgba(255, 235, 207, 0.94);
  font-size: 12px;
  font-weight: 700;
}

.course-page-status-badge[hidden] {
  display: none;
}

body.course-coming-soon-page .course-cover {
  filter: saturate(0.7) brightness(0.97) drop-shadow(0 16px 20px rgba(15, 35, 65, 0.18));
}

body.course-coming-soon-page #start-learning-btn {
  color: #8f5016;
  background: #fff0db;
}

@media (max-width: 640px) {
  .course-status-badge {
    top: 8px;
    right: 8px;
  }

  .course-coming-soon-content {
    padding: 28px 22px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .book-item.is-course-coming-soon .book-cover,
  .book-card.is-course-coming-soon {
    transition: none;
  }
}
