/* dùng để css cho trang chính khi người dùng chưa đăng nhập */
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #222;
  background: url("assets/icons/img/anh_index_html.jpg") center center/cover
    no-repeat fixed;
  min-height: 100vh;
}

header {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  position: sticky;
  top: 0;
  z-index: 99999;
  overflow: visible;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 32px;
  position: relative;
  overflow: visible;
}

.logo {
  font-size: 2rem;
  font-weight: bold;
  color: #ff7e9b;
  letter-spacing: 1px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  text-decoration: none;
  color: #333;
  font-size: 1.05rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links li a:hover {
  color: #ff7e9b;
}

.nav-actions {
  display: flex;
  gap: 12px;
}

.try-btn,
.login-btn {
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
}

.try-btn {
  background: none;
  color: #ff7e9b;
  border: 2px solid #ff7e9b;
}

.try-btn:hover {
  background: #ff7e9b;
  color: #fff;
}

.login-btn {
  background: #ff7e9b;
  color: #fff;
  border: none;
}

.login-btn:hover {
  background: #ff4e7e;
}

.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: inherit; /* hoặc để lại url nếu muốn dùng ảnh khác */
  filter: brightness(0.85) blur(1px);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  color: #dddada;
  text-align: left;
  padding: 60px 32px 60px 0;
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 18px;
  color: #131212;
  line-height: 1.1;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 32px;
  color: #ada9a9;
}

.hero-buttons {
  display: flex;
  gap: 18px;
}

.btn {
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  border: 2px solid #ff7e9b;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.btn.primary {
  background: #ff7e9b;
  color: #fff;
  border: none;
}

.btn.primary:hover {
  background: #ff4e7e;
}

.btn.secondary {
  background: #fff;
  color: #ff7e9b;
}

.btn.secondary:hover {
  background: #ffe3ec;
}

/* --- Testimonial Section --- */
.testimonial-section {
  position: relative;
  /* background: #faf8fd; */ /* Đã bỏ */
  padding: 48px 0 56px 0;
  margin-top: 32px;
  z-index: 1;
  overflow: hidden;
}

.testimonial-blur-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  backdrop-filter: blur(6px) brightness(0.95);
  -webkit-backdrop-filter: blur(6px) brightness(0.95);
  background: rgba(255, 255, 255, 0.3);
  border-radius: 0.5em;
}

.testimonial-title,
.testimonial-list {
  position: relative;
  z-index: 1;
}

.testimonial-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 36px;
  color: #1a1818;
}
.testimonial-list {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.testimonial-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  padding: 28px 32px 22px 32px;
  max-width: 350px;
  min-width: 280px;
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  transition: box-shadow 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.13);
}
.testimonial-user {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 4px;
}
.testimonial-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f2f2f2;
  object-fit: cover;
}
.testimonial-name {
  font-weight: 700;
  font-size: 1.08rem;
  color: #222;
}
.testimonial-location {
  font-size: 0.98rem;
  color: #888;
}
.testimonial-content {
  font-size: 1.05rem;
  color: #444;
  margin-bottom: 8px;
}
.testimonial-stars {
  color: #ff7e9b;
  font-size: 1.2rem;
  letter-spacing: 2px;
  margin-top: 4px;
}

/* --- Thank You Section --- */
.thankyou-section {
  width: 100%;
  padding: 40px 0 48px 0;

  display: flex;
  justify-content: center;
  align-items: center;
}
.thankyou-content {
  max-width: 600px;
  text-align: center;
  margin: 0 auto;
}
.thankyou-title {
  font-size: 2rem;
  font-weight: 700;
  color: #ff7e9b;
  margin-bottom: 16px;
}
.thankyou-desc {
  font-size: 1.15rem;
  color: #d4d0d0;
  line-height: 1.6;
}

/* --- Footer --- */
.footer {
  background: #ffe9f0;
  padding: 40px 0 0 0;
  font-size: 1rem;
  color: #222;
  margin-top: 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  flex-wrap: wrap;
}

.footer-col {
  flex: 1 1 220px;
  min-width: 180px;
  margin-bottom: 24px;
}

.footer-brand {
  flex: 2 1 320px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ff7e9b;
  margin-bottom: 8px;
}

.footer-desc {
  margin-bottom: 18px;
  color: #444;
}

.footer-title {
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: #222;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: #ff7e9b;
}

.footer-social a {
  display: inline-block;
  margin-right: 12px;
}

.footer-social img {
  width: 26px;
  height: 26px;
  filter: grayscale(0.2);
  transition: filter 0.2s;
}

.footer-social img:hover {
  filter: grayscale(0) drop-shadow(0 0 2px #ff7e9b);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f5c7d6;
  margin-top: 18px;
  padding: 18px 32px 10px 32px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.98rem;
  flex-wrap: wrap;
}

.footer-payment img {
  width: 28px;
  height: 18px;
  margin-left: 8px;
  vertical-align: middle;
}

/* --- Modal Styles --- */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: white;
  width: 90%;
  max-width: 500px;
  margin: auto;
  border-radius: 20px;
  position: relative;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal.show .modal-content {
  transform: translateY(0);
}

.modal-header {
  padding: 15px;
  text-align: right;
}

.close-modal {
  width: 24px;
  height: 24px;
  cursor: pointer;
  transition: transform 0.2s;
}

.close-modal:hover {
  transform: rotate(90deg);
}

.modal-body {
  padding: 20px 40px 40px;
  text-align: center;
}

.modal-icon {
  margin-bottom: 20px;
}

.heart-icon {
  width: 80px;
  height: 80px;
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.1);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.1);
  }
  70% {
    transform: scale(1);
  }
}

.modal-body h3 {
  color: #ff7e9b;
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.modal-body p {
  color: #666;
  margin-bottom: 25px;
  line-height: 1.5;
}

.modal-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.modal-buttons .btn {
  padding: 12px 25px;
  font-size: 1rem;
}

/* --- Auth Modal --- */
.auth-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s;
}
.auth-modal.show {
  display: flex;
}
.auth-modal-content {
  background: #fff;
  border-radius: 18px;
  max-width: 370px;
  width: 95vw;
  padding: 32px 28px 18px 28px;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  animation: fadeInScale 0.3s;
}
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.auth-tabs {
  display: flex;
  border-bottom: 2px solid #ffe3ec;
  margin-bottom: 18px;
}
.auth-tab {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 8px 0;
  cursor: pointer;
  color: #888;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.auth-tab.active {
  color: #ff7e9b;
  border-bottom: 2px solid #ff7e9b;
}
.auth-form label {
  font-size: 1rem;
  color: #222;
  margin-bottom: 4px;
  display: block;
  margin-top: 10px;
}
.auth-input {
  display: flex;
  align-items: center;
  border: 1.5px solid #eee;
  border-radius: 8px;
  padding: 6px 12px;
  margin-bottom: 10px;
  background: #fafbfc;
}
.auth-input input {
  border: none;
  outline: none;
  background: transparent;
  flex: 1;
  font-size: 1rem;
  padding: 8px 0 8px 8px;
}
.auth-icon img {
  width: 20px;
  opacity: 0.7;
}
.auth-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.98rem;
}
.auth-link {
  color: #ff7e9b;
  text-decoration: none;
  font-size: 0.98rem;
}
.auth-btn {
  width: 100%;
  background: #ff7e9b;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 0;
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 8px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: background 0.2s;
}
.auth-btn:hover {
  background: #ff4e7e;
}
.auth-or {
  text-align: center;
  color: #aaa;
  margin: 10px 0 8px 0;
  font-size: 0.98rem;
}
.auth-social {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 8px;
}
.auth-social img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f5f5f5;
  padding: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s;
}
.auth-social img:hover {
  box-shadow: 0 2px 8px #ff7e9b44;
}
.auth-close {
  position: absolute;
  top: 10px;
  right: 18px;
  font-size: 1.7rem;
  color: #bbb;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 2;
}
.auth-close:hover {
  color: #ff7e9b;
}

.auth-error {
  color: #ff4e7e;
  font-size: 0.97rem;
  margin: 2px 0 6px 2px;
  min-height: 18px;
  line-height: 1.3;
  font-weight: 500;
}

/* --- Forgot Password Modal --- */
.forgot-modal {
  display: none;
  position: fixed;
  z-index: 2100;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  justify-content: center;
  align-items: center;
}
.forgot-modal.show {
  display: flex;
}
.forgot-modal-content {
  background: #fff;
  border-radius: 16px;
  max-width: 350px;
  width: 95vw;
  padding: 32px 24px 24px 24px;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  text-align: center;
}
.forgot-close {
  position: absolute;
  top: 10px;
  right: 18px;
  font-size: 1.5rem;
  color: #bbb;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 2;
}
.forgot-close:hover {
  color: #ff7e9b;
}
.forgot-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1.5px solid #eee;
  margin: 12px 0 6px 0;
  font-size: 1rem;
  background: #fafbfc;
}
.forgot-btn {
  width: 100%;
  background: #ff7e9b;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 0;
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.forgot-btn:hover {
  background: #ff4e7e;
}
.forgot-error {
  color: #ff4e7e;
  font-size: 0.97rem;
  min-height: 18px;
  margin-bottom: 2px;
}
.forgot-result {
  color: #222;
  font-size: 1.08rem;
  margin-top: 12px;
  font-weight: 600;
}

/* --- Goodbye Modal Specifics (inherits from .modal) --- */
#goodbyeModal .modal-body h3 {
  color: #6a6a6a; /* Màu sắc nhẹ nhàng hơn cho lời tạm biệt */
}

#goodbyeModal .modal-icon img {
  animation: none; /* Bỏ animation heartbeat nếu không muốn */
  transform: scale(1); /* Đảm bảo kích thước bình thường */
}

/* --- How-to-use Section (for index.html) --- */
.how-to-use-section {
  padding: 48px 0;
  background: #fcfcfc;
  text-align: center;
}

.how-to-use-title-index {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 36px;
  color: #222;
}

.how-to-use-steps-index {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.step-card-index {
  background: #fff;
  border-radius: 12px;
  padding: 25px 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.step-card-index:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.step-number-index {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #ff7e9b;
  color: #fff;
  font-size: 1.8rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(255, 126, 155, 0.4);
}

.step-title-index {
  font-size: 1.25rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 10px;
}

.step-desc-index {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .how-to-use-steps-index {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .how-to-use-steps-index {
    grid-template-columns: 1fr;
  }
  .how-to-use-title-index {
    font-size: 1.8rem;
  }
}
