/* ===== Reset cơ bản ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
html, body { height: 100%; color: #222; }
a { color: inherit; text-decoration: none; }

/* ===== Container ===== */
.container { max-width: 1300px; margin: 0 auto; padding: 2rem; }
.section { padding: 3.2rem 0; }

/* ===== Header ===== */
.site-header {
  background: linear-gradient(180deg, #0f1724 0%, #0b1220 100%);
  color: #fff;
  padding-bottom: 2rem;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}
.brand { display: flex; align-items: center; gap: 0.75rem; }
.logo {
  width: 300px; 
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease; 
}
.logo:hover { transform: scale(1.05); }
.brand-text .brand-title { font-weight: 700; font-size: 1.1rem; }
.brand-sub { font-size: .90rem; color: #cbd5e1; }

/* ===== Nav ===== */
.main-nav { display: flex; gap: 1rem; align-items: center; }
.main-nav a {
  color: rgba(255,255,255,0.9);
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
}

/* ===== Tăng kích thước chữ Header ===== */

/* Tăng chữ trong các liên kết menu */
.main-nav a {
  font-size: 1.1rem;        /* tăng nhẹ, có thể đổi thành 1.1rem nếu muốn nổi bật hơn */
  font-weight: 500;
  letter-spacing: 0.2px;
}

/* Tăng kích thước chữ cho tên thương hiệu */
.brand-text .brand-title {
  font-size: 2rem;        /* từ 1.1 → 1.25rem */
  font-weight: 700;
}

/* Tăng kích thước chữ phần phụ thương hiệu */
.brand-sub {
  font-size: 1.2rem;           /* từ 0.9 → 1rem */
  color: #cbd5e1;
}

/* Tăng kích thước chữ trong nút CTA */
.cta-btn {
  font-size: 1.1rem;
  padding: 1rem 1.5rem;    /* nút cao hơn để chữ to vẫn cân đối */
  font-weight: 1000;
}

.cta-btn, .btn {
  padding: 0.6rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  border: 0;
}

.btn.primary, .cta-btn {
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: 10px 20px;
  background: linear-gradient(90deg, #007bff, #00bfff) !important;
  box-shadow: 0 0 15px rgba(0, 180, 255, 0.4);
  transition: all 0.3s ease;
}

.cta-btn:hover {
  background: linear-gradient(90deg, #00bfff, #007bff) !important;
  box-shadow: 0 0 25px rgba(0, 200, 255, 0.8);
  transform: scale(1.05);
}

.btn.primary:hover, .cta-btn:hover { background: #187bcd; }
.btn.ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
}
.mobile-toggle {
  display: none;
  background: transparent;
  color: #fff;
  border: 0;
  font-size: 1.4rem;
}

/* ===== Hero Section ===== */
.hero {
  display: flex;
  gap: 3rem;
  align-items: center;
  justify-content: space-between;
  padding: 5rem 0;              /* thêm khoảng không để chữ lớn không bị chật */
  color: #fff;
}

.hero-left {
  flex: 1;
}

.hero-right {
  flex: 1.2;
  text-align: right;
}

/* Tiêu đề chính */
.hero h1 {
  font-size: 3.4rem;              /* tăng từ 3rem → 4rem */
  font-weight: 900;             /* cực đậm để có sức hút */
  line-height: 1.2;             /* giữ độ cao hợp lý */
  margin-bottom: 1.2rem;
  color: #ffffff;
  letter-spacing: -0.5px;       /* tinh chỉnh khoảng cách chữ */
}

/* Đoạn mô tả ngắn */
.hero .lead {
  color: #cbd5e1;
  font-size: 1.5rem;            /* mô tả to rõ hơn */
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 90%;
  text-align: center;   /* Căn giữa chữ */
  margin-left: auto;    /* Cân giữa khối text */
  margin-right: auto;
}

/* Nút bấm */
.hero-ctas {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.hero-ctas .btn {
  font-size: 1.1rem;
  padding: 0.9rem 1.6rem;
  border-radius: 10px;
}

.hero-ctas .btn-primary {
  background: linear-gradient(90deg, #007bff, #00bfff);
  color: #fff;
  font-weight: 900; /* tăng độ đậm */
  font-size: 1.2rem; /* chữ to hơn chút */
  letter-spacing: 0.4px; /* giãn nhẹ cho dễ đọc */
  text-transform: uppercase; /* toàn chữ in hoa, cho mạnh mẽ */
  border: none;
  border-radius: 12px;
  padding: 1rem 2rem;
  box-shadow: 0 6px 20px rgba(0, 150, 255, 0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  font-family: 'Segoe UI Semibold', 'Roboto', sans-serif; /* font rõ nét hơn */
}

/* Căn giữa CHỈ tiêu đề h1, không ảnh hưởng p.lead, nút, hay danh sách */
.hero-left {
  text-align: left; /* đảm bảo các phần khác vẫn trái */
}

.hero-left h1 {
  text-align: center; /* căn giữa nội dung chữ */
  width: 100%;
  max-width: 900px; /* giúp dòng chữ ngắn lại cho đẹp */
  margin: 0 auto 1.2rem auto; /* canh giữa khối và thêm khoảng cách dưới */
  line-height: 1.15;
  display: block; /* giữ block bình thường */
}

/* ===== Nút Dùng thử miễn phí — cùng màu với Mua ngay ===== */
.hero-ctas .btn-trial {
  background: linear-gradient(90deg, #007bff, #00bfff);
  color: #fff;
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  border: none;
  border-radius: 12px;
  padding: 1rem 2rem;
  box-shadow: 0 6px 20px rgba(0, 150, 255, 0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  font-family: 'Segoe UI Semibold', 'Roboto', sans-serif;
}

/* Hiệu ứng sáng quét */
.hero-ctas .btn-trial::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.35);
  transform: skewX(-25deg);
  transition: left 0.5s ease;
}

.hero-ctas .btn-trial:hover::after {
  left: 125%;
}

.hero-ctas .btn-primary,
.hero-ctas .btn-trial {
  white-space: nowrap;      /* 🔒 Không cho chữ xuống dòng */
  min-width: 270px;         /* Giữ kích thước đồng đều */
}

/* Hover nổi bật hơn */
.hero-ctas .btn-trial:hover {
  background: linear-gradient(90deg, #00bfff, #007bff);
  box-shadow: 0 10px 30px rgba(0, 180, 255, 0.55);
  transform: translateY(-2px);
}

/* Hiệu ứng ánh sáng quét */
.hero-ctas .btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.35);
  transform: skewX(-25deg);
  transition: left 0.5s ease;
}

.hero-ctas .btn-primary:hover::after {
  left: 125%;
}

/* Hover nổi bật hơn */
.hero-ctas .btn-primary:hover {
  background: linear-gradient(90deg, #00bfff, #007bff);
  box-shadow: 0 10px 30px rgba(0, 180, 255, 0.6);
  transform: translateY(-2px);
}


/* Danh sách gạch đầu dòng */
.highlights {
  margin-top: 1.2rem;
  list-style: disc;
  padding-left: 1.4rem;
  color: #e6eef8;
  font-size: 1.15rem;
  line-height: 1.7;
}

/* Ghi chú đại lý */
.agency-note {
  margin-top: 14px;
  color: #e6eef8;
  font-size: 1.1rem;
}

/* Hình ảnh hero */
.hero-image {
  width: 100%;
  height: 600px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(2,6,23,0.7);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Đẩy hình sang phải, xa chữ hơn */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between; /* tạo khoảng cách 2 bên hợp lý */
  gap: 290px; /* tăng khoảng cách giữa chữ và hình */
}

/* Nếu vẫn thấy gần quá, tăng gap lên 100-120px */
.hero-right {
  flex-shrink: 0; /* không cho ảnh bị co lại */
}

.hero-right img {
  max-width: 400px; /* chỉnh kích thước ảnh vừa phải */
  height: auto;
  display: block;
}

.hero-image:hover {
  transform: scale(1.04);
  box-shadow: 0 20px 55px rgba(2,6,23,0.85);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Responsive ===== */
@media (max-width: 920px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 3rem 1rem;
  }
  .hero-right {
    text-align: center;
  }
  .hero h1 {
    font-size: 3rem;
  }
  .hero .lead {
    font-size: 1.3rem;
  }
  .hero-image {
    width: 80%;
    height: 380px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero .lead {
    font-size: 1.1rem;
  }
  .hero-image {
    width: 100%;
    height: 260px;
  }
}

/* ===== Features (Tính năng nổi bật) ===== */
#features {
  background: linear-gradient(180deg, #161d2e 0%, #0e1423 100%); /* cùng tông với 3 phần kia, sáng hơn nhẹ */
  color: #fff;
  padding: 6rem 0;
  width: 100%;
  margin: 0;
}

#features h2 {
  color: #ffffff;
  text-align: center;
  font-size: 2.9rem;
  margin-bottom: 4rem;
}

/* Mở rộng full, bỏ viền trắng 2 bên */
#features.section.container,
#features .container {
  background: transparent !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Lưới tính năng */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
  padding: 0 2rem;
}

/* Thẻ card nổi nhẹ, nền sáng hơn để dễ đọc */
.feature-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
  transition: all 0.35s ease;
}

.feature-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.feature-card img {
  width: 100%;
  height: 240px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 1.2rem;
  transition: transform 0.4s ease;
}

.feature-card:hover img {
  transform: scale(1.05);
}

.feature-card h3 {
  font-size: 1.6rem;
  color: #ffffff;
  margin-bottom: 1rem;
  font-weight: 700;
}

.feature-card p {
  font-size: 1.3rem;
  color: #e2e8f0; /* sáng hơn để đọc dễ */
  line-height: 1.7;
  max-width: 90%;
  margin: 0 auto;
}

/* ===== Before / After ===== */
.before-after {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}
.ba-column {
  flex: 1;
  background: #fff;
  padding: 0.8rem;
  border-radius: 8px;
  text-align: center;
}
.ba-column img { width: 100%; height: auto; border-radius: 6px; }

/* ===== Pricing ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
  margin-top: 1.5rem;
}

.price-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.8rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  color: #000;
  font-size: 1.1rem;
  transition: transform .3s ease, box-shadow .3s ease;
}

/* Hover đẹp */
.price-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.18);
}

/* Gói nổi bật */
.price-card.featured {
  border: 2px solid #1E90FF;
}

/* Giá hiển thị */
.price {
  font-size: 2rem;
  font-weight: 700;
  color: #000;
  margin: 0.4rem 0 0.8rem;
}

.price .per {
  font-size: 1rem;
  font-weight: 500;
  color: #444;
}

/* Danh sách quyền lợi */
.price-card ul {
  margin: 0 0 1.2rem 1.1rem;
  color: #222;
  line-height: 1.55;
}

/* Button */
.price-card .btn {
  display: inline-block;
  padding: 0.55rem 1.4rem;
  font-size: 1.5rem;
  border-radius: 8px;
  background-color: #1E90FF;
  color: white;
  font-weight: 600;
  transition: background .25s ease, transform .25s ease;
}

.price-card .btn:hover {
  background-color: #1175d8;
  transform: translateY(-2px);
}

/* ===== FAQ Section ===== */
#faq.section {
  background-color: #0f1325;
  padding: 6rem 1rem;
  text-align: center;
  color: #fff;
}

#faq h2 {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
}

/* Container */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

/* Từng item FAQ */
.faq-list details {
  background: #141830;
  border-radius: 12px;
  margin-bottom: 1rem;
  border: 1px solid #293046;
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.faq-list details:hover {
  background: #1b2140;
}

/* Câu hỏi */
.faq-list summary {
  font-size: 1.4rem;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Icon +/− */
.faq-list summary::after {
  content: "+";
  font-size: 1.6rem;
  font-weight: 700;
  margin-left: 6px;
}
.faq-list details[open] summary::after {
  content: "−";
}

/* Nội dung trả lời */
.faq-body {
  font-size: 1.15rem;
  line-height: 1.6;
  margin-top: 1rem;
  color: #dce3f1;
  animation: fadeIn 0.3s ease;
}

/* Hiệu ứng mở */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Contact Section ===== */
.contact-section {
  background-color: #0f1325;
  padding: 6rem 1rem;
  text-align: center;
  color: #fff;
}

.contact-section h2 {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
}

/* Lưới 2 cột */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 950px;
  margin: 0 auto;
}

/* Card thông tin và form */
.contact-card {
  background: #141830;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  border: 1px solid #293046;
  text-align: left;
}

/* Link */
.contact-card a {
  color: #72a8ff;
  text-decoration: none;
  font-weight: 500;
}
.contact-card a:hover {
  text-decoration: underline;
}

/* Form */
.form-card h3 {
  text-align: center;
  margin-bottom: 1.2rem;
  font-size: 1.4rem;
  color: #fff;
}

/* Inputs */
#contactForm label {
  font-size: 0.95rem;
  color: #cbd5e1;
  margin-bottom: 6px;
  display: block;
}

#contactForm input,
#contactForm textarea {
  width: 100%;
  background: #0f1325;
  border: 1px solid #293046;
  padding: 0.9rem;
  font-size: 1rem;
  border-radius: 10px;
  margin-bottom: 1.2rem;
  color: #fff;
  transition: border-color .3s ease;
}

#contactForm input:focus,
#contactForm textarea:focus {
  border-color: #4f8cff;
  outline: none;
}

/* Button */
#contactForm button {
  width: 100%;
  background: #4f8cff;
  padding: 0.9rem;
  border-radius: 10px;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, transform .2s ease;
}

#contactForm button:hover {
  background: #72a8ff;
  transform: translateY(-2px);
}

/* ===== Partners Section ===== */
.partners {
  padding: 4rem 0;
  text-align: center;
  background-color: #0B1026; /* đổi nền tối giống web */
}

.partners h2 {
  font-size: 3rem;
  margin-bottom: 1.6rem;
  color: #ffffff; /* đổi chữ sang trắng */
}

/* Logo list */
.partner-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 0 1rem;
}

/* Ảnh logo */
.partner-logos img {
  width: 400px; /* tăng kích thước hình (bạn có thể chỉnh lên 220, 250 tùy thích) */
  height: auto;
  filter: grayscale(100%);
  transition: transform .25s ease, filter .25s ease;
  background: #ffffff;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.08);
}

.partner-logos img:hover {
  filter: none;
  transform: translateY(-6px) scale(1.08); /* Phóng to nhẹ lúc hover */
}

/* ===== Responsive ===== */
@media (max-width:920px) {
  .features-grid { grid-template-columns: repeat(2,1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .hero { flex-direction: column; }
  .hero-right { text-align: center; }
}
@media (max-width:700px) {
  .features-grid { grid-template-columns: 1fr; }
  .mobile-toggle { display: block; }
  .main-nav { display: none; }
  .mobile-nav-open {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    padding: 1rem;
  }
  .header-inner { align-items: flex-start; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width:480px) {
  .partner-logos img { width: 100px; padding: 6px; }
  .partners { padding: 2rem 0; }
  .partners h2 { font-size: 1.4rem; }

  .hero-image { height: 260px; }
  .logo { width: 100px; margin-top: 8px; }
  
  h1 { font-size: 1.4rem; }
  .section { padding: 2rem 0; }
}

/* ===== Banner lớn dưới phần Hero ===== */
.hero-banner {
  width: 100%;
  margin: 0;
  padding: 0;
}

.hero-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ===== Features Auto Slider (Tính năng nổi bật chạy ngang) ===== */
.features-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 2rem;
}

.slider-track {
  display: flex;
  width: calc(300px * 10); /* số lượng thẻ feature-card */
  animation: scroll-left 40s linear infinite;
}

.feature-card {
  min-width: 500px;
  margin-right: 2.5rem;
  flex-shrink: 0;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Khi hover tạm dừng (nếu có JS hỗ trợ hoặc dùng CSS) */
.features-slider:hover .slider-track {
  animation-play-state: paused;
}

/* Popup QR */
.qr-popup {
  display: none; /* ẩn mặc định */
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.qr-popup-content {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  position: relative;
  max-width: 300px;
  width: 80%;
}

.qr-popup-content img {
  width: 100%;
  height: auto;
  margin-top: 10px;
}

.qr-close {
  position: absolute;
  top: 5px; right: 10px;
  font-size: 24px;
  cursor: pointer;
}

/* ===== Section: Preset mẫu màu ===== */
.preset-section {
  background-color: #0f1325;
  color: #fff;
  text-align: center;
  padding: 6rem 1rem;
}

.preset-section h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.preset-section .subtitle {
  color: #cbd5e1;
  font-size: 1.4rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.preset-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem; /* tăng khoảng cách giữa thẻ */
}

.preset-card {
  background: #141830;
  border-radius: 16px;
  padding: 1rem;
  width: 400px;  /* tăng kích thước card */
  transition: all 0.3s ease;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.preset-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.preset-card img {
  width: 100%;
  height: 600px; /* ảnh lớn hơn rõ rệt */
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 0.8rem;
  transition: transform 0.3s ease;
}

.preset-card:hover img {
  transform: scale(1.05);
}

.preset-card h4 {
  font-size: 1.1rem;
  margin-top: 0.4rem;
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .preset-card {
    width: 45%;
  }
}
@media (max-width: 500px) {
  .preset-card {
    width: 100%;
  }
  .preset-card img {
    height: 240px;
  }
}

/* ===== Why Choose MagiMir ===== */
.why-magimir {
  background: #0b0e20;
  color: #fff;
  text-align: center;
  padding: 4rem 1rem;
  position: relative;
}

.why-magimir::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(40,70,255,0.15), transparent 70%);
  z-index: 0;
}

.why-magimir .container {
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: 3.1rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
}

.section-title span {
  color: #1e90ff;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.why-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.8rem;
  border-radius: 16px;
  text-align: left;
  max-width: 340px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.why-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
text-align: center; /* Căn giữa icon trong khối */
}

.why-item h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.why-item p {
  font-size: 1.3rem;
  color: #cbd5e1;
  line-height: 1.6;
}

/* ===== Popup thông báo ===== */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popup-box {
  background: #111827;
  color: #fff;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  text-align: center;
  width: 90%;
  max-width: 380px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  animation: popIn 0.4s ease;
}

.popup-btn {
  background: #2563eb;
  color: white;
  border: none;
  margin-top: 1rem;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}
.popup-btn:hover {
  background: #1e40af;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

/* ===== Sửa nếp nhăn quần áo ===== */
.feature-section {
  padding: 100px 20px;
  background-color: #0f1325;
  text-align: center;
  color: #fff;
}

.feature-section h2 {
  font-size: 3.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
}

.section-subtitle {
  max-width: 800px;
  margin: 0 auto 40px;
  color: #cccccc;
  font-size: 1.3rem;
  line-height: 1.6;
}

.before-after {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.image-block {
  max-width: 520px;
  background: #141414;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.image-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6);
}

.image-block img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.caption {
  color: #aaa;
  margin-top: 10px;
  font-size: 0.95rem;
}

/* ===== Portfolio (Trước / Sau) ===== */
#portfolio {
  position: relative;
  color: #fff;
  padding: 6rem 0;
  text-align: center;
  z-index: 1;
}

/* NỀN FULL MÀN HÌNH, DÙ BÊN TRONG CÓ CONTAINER */
#portfolio::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #10182b 0%, #1a2235 100%);
  z-index: -1;
}

/* Tiêu đề */
#portfolio h2 {
  color: #ffffff;
  font-size: 3rem;
  margin-bottom: 2rem;
}

/* Căn giữa 2 ảnh, không quá to */
.before-after {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.ba-column {
  flex: 1 1 480px;
  max-width: 520px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
  transition: all 0.35s ease;
}

.ba-column img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
}

#pricing {
  background-color: #0B1026;
  color: #fff;
  padding: 6rem 0;
}

/* Giảm kích thước chữ trong Gói & Giá */
.price-card {
  font-size: 1.5rem;   /* Hoặc 0.9rem nếu muốn nhỏ hơn nữa */
  line-height: 1.5;
}

/* Giảm kích thước chữ cho từng dòng trong danh sách */
.price-card ul li {
  font-size: 1.5rem;
}

body {
  background-color: #0B1026; /* hoặc màu nền mà phần trên đang dùng */
}

/* ===== Styling riêng cho phần Gói & Giá ===== */
#pricing h2 {
  text-align: center;
}

#pricing h2 {
  font-size: 3rem;      /* to hơn */
  font-weight: 700;
  color: #ffffff;         /* trắng hoặc đổi màu tuỳ nền */
  margin-bottom: 0.4rem;
}

#pricing .muted {
  font-size: 1.5rem;      /* to hơn */
  color: #dcdcdc;         /* đổi màu sáng hơn */
  margin-bottom: 1.6rem;
  display: block;
  text-align: center;
}

#pricing .price-note small {
  font-size: 1.5rem;        /* to hơn dòng lưu ý */
  color: #e6e6e6;         /* trắng xám */
  text-align: center;
  display: block;
  margin-top: 1.6rem;
}

.partners {
  background-color: #10182b;
  color: #fff;
  padding: 5rem 0;
}

/* ===== Promo Footer ===== */
.promo-footer {
  background: linear-gradient(90deg, #8a42ff, #3a63ff);
  color: #fff;
  border-radius: 22px 22px 0 0; /* bo góc chỉ phía trên */
  padding: 10px 64px;
  display: flex;
  justify-content: center;
  font-family: "Poppins", sans-serif;
  box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.3);
  position: fixed;      /* 👈 cố định vị trí */
  bottom: 0;            /* 👈 dán sát mép dưới */
  left: 0;
  width: 100%;          /* 👈 kéo dài toàn màn hình */
  z-index: 1000;        /* 👈 luôn nằm trên các phần khác */
  overflow: hidden;
}


/* Hiệu ứng sáng nhẹ chạy qua nền */
.promo-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transform: skewX(-20deg);
  animation: shine 4s infinite linear;
}

@keyframes shine {
  0% { left: -60%; }
  100% { left: 160%; }
}

.promo-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1250px;
  z-index: 1;
  position: relative;
}

.promo-left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  min-width: 260px;
}

.promo-img {
  width: 100px;
  height: 100px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.promo-text h2 {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.promo-text .price {
  color: #00ffcc;
  font-weight: 800;
  font-size: 35px;
  text-shadow: 0 0 12px rgba(0, 255, 200, 0.8);
}

.promo-text {
  text-align: center; /* canh giữa toàn bộ nội dung chữ */
  flex: 1;
}

.promo-text p {
  font-size: 17px;
  opacity: 0.95;
  line-height: 1.7;
  max-width: 500px;
}

/* Cụm bên phải */
.promo-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
  position: relative;
}

.event-box {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  padding: 14px 22px;
  text-align: center;
  font-size: 15px;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, background 0.3s ease;
}

.event-box:hover {
  transform: translateY(-3px) scale(1.03);
  background: rgba(255, 255, 255, 0.25);
}

.event-title {
  font-weight: 700;
  display: block;
  font-size: 25px;
  margin-bottom: 6px;
}

.countdown {
  display: block;
  font-weight: 600;
  font-size: 30px;
  color: #ffeb9b;
}

.download-btn {
  background: linear-gradient(135deg, #ffe259, #ff9900);
  color: #000;
  font-weight: 800;
  padding: 18px 46px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 40px;
  letter-spacing: 0.4px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
  box-shadow: 0 10px 28px rgba(255, 180, 40, 0.55), inset 0 3px 5px rgba(255, 255, 255, 0.6);
}

.download-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.6);
  transform: skewX(-25deg);
  transition: left 0.6s ease;
}

.download-btn:hover::before {
  left: 130%;
}

.download-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 12px 35px rgba(255, 200, 80, 0.6), inset 0 3px 5px rgba(255, 255, 255, 0.6);
  opacity: 1;
}


/* 📱 Responsive tối ưu cho điện thoại */
@media (max-width: 768px) {
  .promo-footer {
    border-radius: 0;
    padding: 24px 20px;
  }

  .promo-content {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 20px;
  }

  .promo-left {
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
  }

  .promo-img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
  }

  .promo-text h2 {
    font-size: 18px;
    line-height: 1.3;
  }

  .promo-text .price {
    font-size: 21px;
    text-shadow: none;
  }

  .promo-text p {
    font-size: 13px;
    line-height: 1.5;
    max-width: 100%;
    opacity: 0.9;
  }

  .promo-right {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .event-box {
    padding: 10px 14px;
    font-size: 13px;
    border-radius: 10px;
    flex: 1;
    text-align: center;
  }

  .event-title {
    font-size: 13.5px;
    margin-bottom: 3px;
  }

  .countdown {
    font-size: 12.5px;
  }

  .download-btn {
    padding: 12px 20px;
    font-size: 14px;
    border-radius: 50px;
    flex: 1;
    text-align: center;
  }

  .download-btn span,
  .download-btn i {
    vertical-align: middle;
  }
}

/* ========================= */
/* 📱 Responsive: Mobile Fix */
/* ========================= */
@media (max-width: 768px) {
  /* Hero section */
  .hero {
    flex-direction: column;        /* Cho 2 phần xếp dọc */
    align-items: center;
    text-align: center;
    padding: 2.5rem 1rem;
    gap: 2rem;
  }

  .hero-left {
    flex: unset;
    width: 100%;
  }

  .hero-right {
    flex: unset;
    width: 100%;
    text-align: center;
  }

  .hero-image {
    width: 100%;
    max-width: 360px;
    height: auto;
    margin: 0 auto;
  }

  /* Tiêu đề và mô tả */
  .hero h1 {
    font-size: 2rem;
    line-height: 1.3;
  }

  .hero .lead {
    font-size: 1.1rem;
    max-width: 95%;
    margin: 0 auto 1.5rem;
  }

  /* Nút bấm */
  .hero-ctas {
    flex-direction: column;       /* Xếp nút dọc khi nhỏ */
    align-items: center;
    width: 100%;
    gap: 1rem;
  }

  .hero-ctas .btn,
  .hero-ctas .btn-buy {
    width: 90%;
    max-width: 320px;
    text-align: center;
  }

/* ===== Làm nổi bật nút "Dùng thử miễn phí" trên menu ===== */
.site-header .cta-btn {
  background: linear-gradient(90deg, #00b4ff, #007bff) !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none !important;
  border-radius: 999px;
  padding: 0.75rem 1.6rem !important;
  box-shadow: 0 0 15px rgba(0, 180, 255, 0.6) !important;
  transition: all 0.3s ease-in-out !important;
  opacity: 1 !important;
  filter: brightness(1.15);
  position: relative;
  z-index: 999;
}

/* Hover sáng hơn */
.site-header .cta-btn:hover {
  background: linear-gradient(90deg, #33ccff, #0099ff) !important;
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 200, 255, 0.9) !important;
  filter: brightness(1.3);
}

/* Hiệu ứng ánh sáng quét nhẹ */
.site-header .cta-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  transform: skewX(-25deg);
  transition: left 0.6s ease;
}

.site-header .cta-btn:hover::after {
  left: 130%;
}

@keyframes glowPulse {
  0% { box-shadow: 0 0 15px rgba(0, 180, 255, 0.4); }
  50% { box-shadow: 0 0 25px rgba(0, 200, 255, 0.9); }
  100% { box-shadow: 0 0 15px rgba(0, 180, 255, 0.4); }
}

.site-header .cta-btn {
  animation: glowPulse 2.5s infinite ease-in-out;
}

/* ===== HEADER CĂN GIỮA MOBILE ===== */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo {
  height: 40px;
}

.brand-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
}

/* Căn giữa khi màn hình nhỏ */
@media (max-width: 768px) {
  .header-inner {
    justify-content: center; /* Toàn bộ header căn giữa */
    flex-direction: column;  /* Logo + chữ xuống cùng 1 cột */
    text-align: center;
  }

  .brand {
    justify-content: center;
  }

  .main-nav {
    margin-top: 0.5rem;
  }

  .main-nav a {
    display: inline-block;
    margin: 0 0.5rem;
  }

  .brand-title {
    font-size: 1.2rem;
  }
}

/* ===== Căn giữa tiêu đề và giá của các gói ===== */
.price-card h3,
.price-card .price {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Tăng cỡ chữ Đối tác & Khách hàng trên điện thoại ===== */
@media (max-width: 768px) {
  .partners h2 {
    font-size: 2.8rem !important; /* to hơn, rõ ràng trên màn nhỏ */
    text-align: center;
  }
}

@media only screen and (max-width: 1280px) {
  html {
    zoom: 100%;
    width: 1280px;
    overflow-x: scroll;
  }
}


