.review-top-icon-btn.is-on {
  color: #e24c6f;
  border-color: rgba(255, 107, 129, 0.28);
  background: rgba(255, 255, 255, 0.96);
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  transition: 0.2s;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.btn-icon:hover {
  background: #f0f0f0;
  color: #ff6b81;
  border-color: #ff6b81;
}

.btn-del-icon:hover {
  background: #ffebee;
  color: #d32f2f;
  border-color: #ef9a9a;
}

.toast {
  visibility: hidden;
  min-width: 250px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 50px;
  padding: 16px 24px;
  position: fixed;
  z-index: 12000;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  font-size: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition:
    opacity 0.4s,
    bottom 0.4s;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.toast.show {
  visibility: visible;
  opacity: 1;
  bottom: 50px;
}

.home-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 13000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 192, 203, 0.22), transparent 35%),
    radial-gradient(circle at 88% 12%, rgba(255, 218, 193, 0.22), transparent 35%),
    rgba(24, 24, 34, 0.55);
  backdrop-filter: blur(9px);
}

.home-popup-overlay.show {
  display: flex;
}

.home-popup-card {
  width: min(90vw, 520px);
  border-radius: 28px;
  background: linear-gradient(180deg, #fffdfd 0%, #fff6f9 100%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.3),
    0 10px 25px rgba(255, 107, 129, 0.3);
  padding: 22px 16px 18px;
  position: relative;
  max-height: 84dvh;
  overflow-y: auto;
  animation: homePopupIn 0.26s ease;
  text-align: center;
}

@keyframes homePopupIn {
  from {
    transform: translateY(10px) scale(0.97);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.home-popup-close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #ffd6de;
  background: #fff;
  color: #d84f64;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.home-popup-view {
  position: relative;
  padding-top: 2px;
}

.home-popup-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.74rem;
  font-weight: 900;
  color: #b3264f;
  background: #ffe8ee;
}

.home-popup-view .home-popup-kicker {
  position: absolute;
  left: 0;
  top: 0;
}

.home-popup-title {
  font-family: "Jua", "Pretendard", sans-serif;
  font-size: clamp(1.2rem, 2.9vw, 1.7rem);
  color: #2d2020;
  margin: 0 0 10px 0;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
  text-align: center;
  display: block;
  padding-left: 64px;
  padding-right: 64px;
}

.home-popup-message {
  font-size: 0.98rem;
  color: #4c4c59;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 2px 2px 0;
  margin-bottom: 12px;
  text-align: center;
}

.home-popup-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  justify-content: center;
}

.home-popup-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid rgba(181, 62, 101, 0.28);
  background: linear-gradient(180deg, #ffffff, #fff7fb);
  color: #a83b5e;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 13px;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 16px rgba(188, 32, 75, 0.12);
  transition: 0.2s ease;
}

.home-popup-link:hover {
  background: linear-gradient(180deg, #fff8fb, #fff1f6);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(188, 32, 75, 0.17);
}

.home-popup-image-wrap {
  display: none;
  margin: 10px 0 12px;
}

.home-popup-image {
  width: 100%;
  max-height: 270px;
  object-fit: contain;
  border-radius: 14px;
  border: none;
  box-shadow: none;
  background: transparent;
  display: block;
}

.home-popup-footer {
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.home-popup-close-today {
  border: 1px solid #ffd6de;
  border-radius: 12px;
  background: #fff;
  color: #a24b61;
  font-weight: 700;
  padding: 10px 13px;
  cursor: pointer;
}

.home-popup-ok {
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff6b81, #ff8a80);
  color: #fff;
  font-weight: 800;
  padding: 10px 14px;
  cursor: pointer;
}

.home-popup-view.hide {
  display: none;
}

.home-popup-edit {
  display: none;
  text-align: left;
}

.home-popup-edit.show {
  display: block;
}

.home-popup-edit-headline {
  position: relative;
  min-height: 30px;
  margin-bottom: 10px;
}

.home-popup-edit-headline .home-popup-kicker {
  position: absolute;
  left: 0;
  top: 0;
}

.home-popup-edit-headline .home-popup-title {
  margin: 0;
  text-align: center;
  padding-left: 64px;
  padding-right: 64px;
}

.home-popup-edit .form-group {
  margin-bottom: 12px;
}

.home-popup-edit .form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 1.05rem;
  color: #d32f2f;
  font-family: "Jua", "Pretendard", sans-serif;
}

.home-popup-edit .form-input,
.home-popup-edit .form-textarea {
  width: 100%;
  border: 2px solid #ffcdd2;
  border-radius: 12px;
  padding: 12px;
  font-family: "Pretendard", sans-serif;
  font-size: 0.98rem;
  background: #fff;
  color: #3e4659;
  min-width: 0;
  transition: 0.2s;
}

.home-popup-edit .form-input:focus,
.home-popup-edit .form-textarea:focus {
  border-color: #e53935;
  outline: none;
  background: #fff0f3;
}

.home-popup-edit .form-textarea {
  min-height: 180px;
  resize: vertical;
  line-height: 1.5;
  white-space: pre-wrap;
}

.home-popup-edit-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.home-popup-edit-link-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.home-popup-edit-link-row .form-input {
  margin: 0;
}

.home-popup-edit .btn-link-add {
  width: 100%;
  padding: 10px;
  border: 1px dashed #f1b7c1;
  background: #fff8fa;
  color: #b44b5d;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  margin-top: 5px;
  font-weight: 700;
}

.home-popup-footer-edit {
  display: none;
}

.home-popup-footer-edit.show {
  display: flex;
}

.home-popup-footer-view.hide {
  display: none;
}

@media (max-width: 900px) {
  .home-popup-overlay {
    padding: 14px;
  }

  .home-popup-card {
    width: 96%;
    border-radius: 22px;
    padding: 18px 12px 14px;
  }

  .home-popup-message {
    font-size: 0.93rem;
    padding: 2px 0;
  }

  .home-popup-link {
    font-size: 0.78rem;
    padding: 7px 10px;
  }

  .home-popup-footer {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .home-popup-close-today,
  .home-popup-ok {
    width: 100%;
  }

  .home-popup-view .home-popup-title {
    font-size: 1.34rem;
  }

  .home-popup-title {
    padding-left: 48px;
    padding-right: 48px;
  }

  .home-popup-footer-view {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .home-popup-footer-view .home-popup-close-today,
  .home-popup-footer-view .home-popup-ok {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
  }

  .home-popup-edit-link-row {
    flex-direction: column;
  }

  .home-popup-edit-link-row .btn-icon {
    width: 100%;
    height: 36px;
  }
}
