
*{box-sizing:border-box}
body{
 margin:0;
 background:#0b0f19;
 color:#eaeaf0;
 font-family:Inter,Arial,sans-serif;
}
.header{
 display:flex;
 justify-content:center;
 padding:14px;
 border-bottom:1px solid #1f2433;
}
.logo{font-size:18px;font-weight:600}
.logo span{color:#00f2ea}
.wrap{max-width:480px;margin:28px auto;padding:0 12px;text-align:center}
h1{font-size:22px;margin-bottom:6px}
.sub{font-size:13px;color:#9aa4bf;margin-bottom:18px}
.card{
 background:#151a2b;
 border:1px solid #1f2433;
 border-radius:14px;
 padding:14px;
 box-shadow:0 12px 24px rgba(0,0,0,.4);
}
.input-wrap{display:flex;justify-content:center;gap:6px}
.input-wrap input{
 width:240px;padding:10px;border-radius:10px;border:1px solid #2a2f45;
 background:#0b0f19;color:#fff;font-size:13px
}
.input-wrap button{
 padding:10px 14px;border-radius:10px;border:none;
 background:#4f7cff;color:#fff;font-size:13px;cursor:pointer
}
.loading{margin-top:10px;font-size:13px;color:#9aa4bf}
.hidden{display:none}
.preview-wrap{display:flex;justify-content:center;margin:12px 0}
.preview{width:180px;border-radius:12px}
.btn-download{
 display:block;width:180px;margin:0 auto;padding:10px;border-radius:10px;
 border:none;background:#00f2ea;color:#000;font-size:13px;cursor:pointer
}
.faq{margin-top:32px;text-align:left}
.faq h2{font-size:18px;margin-bottom:12px}
.qa{margin-bottom:10px}
.qa p{margin:4px 0 0;color:#cfcfcf;font-size:13px}
.toast{
 position:fixed;bottom:20px;left:50%;transform:translateX(-50%);
 background:#1f2937;padding:10px 14px;border-radius:10px;
 font-size:13px;box-shadow:0 10px 30px rgba(0,0,0,.4)
}
@media(min-width:768px){
 .wrap{max-width:560px}
 .preview{width:220px}
 .btn-download{width:220px}
}
.tool-select {
  margin: 10px 0 15px;
  text-align: center;
}
.tool-select select {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
}
/* ===============================
   MP4 / MP3 = SAME SIZE + INLINE
   =============================== */

/* wrapper chứa 2 nút tải */
.download-actions,
.download-row,
.actions,
.btn-group {
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

/* ép 2 nút bằng nhau tuyệt đối */
.download-actions button,
.download-row button,
.actions button,
.btn-group button {
  flex: 0 0 140px;       /* CÙNG ĐỘ RỘNG */
  height: 44px;         /* CÙNG CHIỀU CAO */
  line-height: 44px;
  padding: 0;
  font-size: 15px;
  border-radius: 10px;
}

/* ===============================
   PREVIEW SIZE = 1/2 HIỆN TẠI
   =============================== */

.preview-wrap {
  display: flex;
  justify-content: center;
}

.preview,
.preview video {
  width: 100% !important;
  max-width: 240px !important;  /* 🔥 thu nhỏ còn ~1/2 */
  border-radius: 14px;
}

/* mobile vẫn giữ ngang */
@media (max-width: 480px) {
  .download-actions button,
  .download-row button,
  .actions button,
  .btn-group button {
    flex: 0 0 120px;
    height: 42px;
  }

  .preview,
  .preview video {
    max-width: 220px !important;
  }
}

/* ===============================
   MP4 / MP3 – closer spacing
   =============================== */

.download-actions,
.download-row,
.actions,
.btn-group {
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 8px !important;     /* 🔥 GIẢM KHOẢNG CÁCH */
  margin-top: 10px !important;
}

/* đảm bảo không có margin riêng lẻ */
.download-actions button,
.download-row button,
.actions button,
.btn-group button {
  margin: 0 !important;
}
/* ===============================
   HOW TO DOWNLOAD – NO BOX STYLE
   =============================== */

.howto-wrap {
  margin: 60px auto 40px;
  max-width: 1100px;
  padding: 0 20px;
  text-align: center;
}

.howto-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 50px;
  background: linear-gradient(90deg, #ff4ecd, #8f5bff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* layout 4 bước */
.howto-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px; /* 🔥 thoáng hơn */
}

/* mỗi bước – KHÔNG box */
.howto-step {
  background: none !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
}

/* số tròn */
.step-num {
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff4ecd, #8f5bff);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* tiêu đề */
.howto-step h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

/* mô tả */
.howto-step p {
  font-size: 14px;
  color: #cfd3ff;
  line-height: 1.6;
}

/* responsive */
@media (max-width: 900px) {
  .howto-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
}

@media (max-width: 520px) {
  .howto-steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .howto-title {
    font-size: 26px;
  }
}
.howto-step p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* ===============================
   CENTER HOW-TO SECTION FIX
   =============================== */

/* ép toàn bộ section nằm chính giữa */
.howto-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 60px auto 40px auto !important;
  padding-left: 20px;
  padding-right: 20px;
  text-align: center;
}

/* grid 4 bước center tuyệt đối */
.howto-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-content: center;
  align-items: start;
  margin: 0 auto;              /* 🔥 center grid */
  max-width: 1000px;           /* 🔥 giữ cân */
}

/* mỗi step không bị lệch */
.howto-step {
  justify-self: center;        /* 🔥 center từng cột */
  text-align: center;
}

/* responsive vẫn center */
@media (max-width: 900px) {
  .howto-steps {
    grid-template-columns: repeat(2, 1fr);
    max-width: 720px;
  }
}

@media (max-width: 520px) {
  .howto-steps {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
}



/* ===============================
   HOW TO – WIDER COLUMNS + WRAP TEXT
   =============================== */

/* làm mỗi bước rộng hơn */
.howto-steps {
  grid-template-columns: repeat(4, minmax(220px, 1fr)) !important;
  gap: 36px !important;              /* giãn khoảng cách cột */
  max-width: 1200px !important;      /* mở rộng toàn khối */
}

/* đảm bảo từng step đủ rộng */
.howto-step {
  max-width: 260px;                  /* 🔥 rộng hơn trước */
  justify-self: center;
}

/* mô tả: CHO XUỐNG DÒNG TỰ NHIÊN */
.howto-step p {
  white-space: normal !important;    /* 🔥 cho wrap */
  overflow: visible !important;
  text-overflow: unset !important;
  line-height: 1.5;
}

/* responsive vẫn ổn */
@media (max-width: 1100px) {
  .howto-steps {
    grid-template-columns: repeat(2, minmax(240px, 1fr)) !important;
    max-width: 760px !important;
  }
}

@media (max-width: 520px) {
  .howto-steps {
    grid-template-columns: 1fr !important;
    max-width: 360px !important;
  }

  .howto-step {
    max-width: 100%;
  }
}


/* ===============================
   FEATURES SECTION – FINAL
   =============================== */

.features-wrap {
  max-width: 1400px;          /* 🔥 rộng hơn */
  margin: 80px auto 60px;
  padding: 0 20px;
  text-align: center;
}

.features-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(90deg, #ff4ecd, #8f5bff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.features-desc {
  max-width: 760px;
  margin: 0 auto 44px;
  font-size: 15px;
  color: #b9c0ff;
  line-height: 1.6;
}

/* GRID RỘNG – CARD THẤP */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(340px, 1fr));
  gap: 22px;
}

/* CARD */
.feature-item {
  background: #0f1220;
  border-radius: 16px;
  padding: 18px 26px;         /* 🔽 thấp hơn */
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.35);
}

/* ICON */
.feature-icon {
  font-size: 34px;            /* nhỏ gọn */
  margin-bottom: 8px;
}

/* TITLE */
.feature-item h3 {
  font-size: 16px;
  margin-bottom: 6px;
  font-weight: 600;
}

/* DESC */
.feature-item p {
  font-size: 14px;
  color: #cfd3ff;
  line-height: 1.45;          /* gọn chiều cao */
  margin: 0;
}

/* ===== Responsive ===== */

@media (max-width: 1100px) {
  .features-grid {
    grid-template-columns: repeat(2, minmax(300px, 1fr));
  }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .features-title {
    font-size: 26px;
  }
}
/* ===============================
   FEATURES SECTION – CENTER FIX
   =============================== */

/* center toàn bộ section */
.features-wrap {
  width: 100%;
  max-width: 1400px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px;
  padding-right: 20px;
  text-align: center;
}

/* center grid bên trong */
.features-grid {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 1200px;               /* giữ cân đối */
  justify-content: center;
}

/* đảm bảo từng card không bị lệch */
.feature-item {
  justify-self: center;
}

/* ===============================
   CONTENT CREATORS SECTION
   =============================== */

.creators-wrap {
  max-width: 1200px;
  margin: 80px auto 60px;
  padding: 0 20px;
  text-align: center;
}

.creators-title {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(90deg, #ff4ecd, #8f5bff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.creators-desc {
  max-width: 720px;
  margin: 0 auto 40px;
  font-size: 15px;
  color: #b9c0ff;
}

.creators-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 24px;
}

.creator-item {
  background: #0f1220;
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05);
}

.creator-item h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.creator-item p {
  font-size: 14px;
  color: #cfd3ff;
  line-height: 1.5;
  margin: 0;
}

/* responsive */
@media (max-width: 900px) {
  .creators-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .creators-grid {
    grid-template-columns: 1fr;
  }
}

/* ===============================
   3 STEPS SOURCE SECTION
   =============================== */

.source-wrap {
  max-width: 1100px;
  margin: 80px auto 80px;
  padding: 0 20px;
  text-align: center;
}

.source-title {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(90deg, #ff4ecd, #8f5bff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.source-desc {
  max-width: 680px;
  margin: 0 auto 40px;
  font-size: 15px;
  color: #b9c0ff;
}

.source-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 32px;
}

.source-step {
  background: none;
  padding: 0;
}

.source-num {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff4ecd, #8f5bff);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.source-step h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.source-step p {
  font-size: 14px;
  color: #cfd3ff;
  line-height: 1.5;
  margin: 0;
}

/* responsive */
@media (max-width: 900px) {
  .source-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .source-steps {
    grid-template-columns: 1fr;
  }
}

/* ===============================
   CENTER FIX – CONTENT CREATORS
   =============================== */

.creators-wrap {
  width: 100%;
  max-width: 1200px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px;
  padding-right: 20px;
  text-align: center;
}

.creators-grid {
  margin-left: auto !important;
  margin-right: auto !important;
  justify-content: center;
}

.creator-item {
  justify-self: center;
}

/* ===============================
   CENTER FIX – 3 STEPS SOURCE
   =============================== */

.source-wrap {
  width: 100%;
  max-width: 1100px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px;
  padding-right: 20px;
  text-align: center;
}

.source-steps {
  margin-left: auto !important;
  margin-right: auto !important;
  justify-content: center;
}

.source-step {
  justify-self: center;
}


/* ===============================
   FAQ SECTION
   =============================== */

.faq-wrap {
  max-width: 1100px;
  margin: 80px auto 80px;
  padding: 0 20px;
  text-align: center;
}

.faq-title {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(90deg, #ff4ecd, #8f5bff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.faq-desc {
  max-width: 720px;
  margin: 0 auto 40px;
  font-size: 15px;
  color: #b9c0ff;
}

/* danh sách câu hỏi */
.faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

/* từng item */
.faq-item {
  background: #0f1220;
  border-radius: 14px;
  padding: 18px 22px;
  text-align: left;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05);
}

.faq-item h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.faq-item p {
  font-size: 14px;
  color: #cfd3ff;
  line-height: 1.6;
  margin: 0;
}

/* responsive */
@media (max-width: 520px) {
  .faq-title {
    font-size: 26px;
  }

  .faq-item {
    padding: 16px 18px;
  }
}
/* ===============================
   FAQ – CENTER + COMPACT FIX
   =============================== */

.faq-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 80px auto 80px auto !important;
  padding-left: 20px;
  padding-right: 20px;
  text-align: center;
}

/* danh sách FAQ center */
.faq-list {
  max-width: 900px;
  margin-left: auto !important;
  margin-right: auto !important;
  display: grid;
  gap: 14px;               /* 🔽 thấp hơn */
}

/* mỗi câu hỏi gọn hơn */
.faq-item {
  padding: 14px 20px;      /* 🔽 giảm chiều cao */
  border-radius: 14px;
  text-align: left;
}

/* tiêu đề câu hỏi */
.faq-item h3 {
  font-size: 15px;
  margin-bottom: 4px;      /* 🔽 gọn */
  line-height: 1.4;
}

/* nội dung trả lời */
.faq-item p {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

/* mobile */
@media (max-width: 520px) {
  .faq-item {
    padding: 14px 16px;
  }
}


/* ===============================
   FAQ – 2x2 GRID LAYOUT
   =============================== */

.faq-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 80px auto 80px;
  padding: 0 20px;
  text-align: center;
}

.faq-title {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(90deg, #ff4ecd, #8f5bff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.faq-desc {
  max-width: 720px;
  margin: 0 auto 40px;
  font-size: 15px;
  color: #b9c0ff;
}

/* grid 2x2 */
.faq-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 24px;
}

/* từng khung */
.faq-item {
  background: #0f1220;
  border-radius: 16px;
  padding: 18px 22px;
  text-align: left;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05);
}

/* tiêu đề */
.faq-item h3 {
  font-size: 15px;
  margin-bottom: 6px;
  line-height: 1.4;
}

/* nội dung */
.faq-item p {
  font-size: 14px;
  color: #cfd3ff;
  line-height: 1.5;
  margin: 0;
}

/* responsive */
@media (max-width: 900px) {
  .faq-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
  }
}

/* ===============================
   FIX: 3 CARDS SAME ROW (CREATORS)
   =============================== */

/* container chuẩn */
.creators-wrap {
  width: 100%;
  max-width: 1400px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px;
  padding-right: 20px;
  text-align: center;
}

/* GRID 3 CỘT – ÉP LẠI */
.creators-grid {
  width: 100%;
  max-width: 1200px;
  margin-left: auto !important;
  margin-right: auto !important;

  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important; /* 🔥 3 CỘT */
  gap: 22px;
}

/* card không full width */
.creator-item {
  width: 100% !important;
  max-width: none !important;
}

/* responsive đúng */
@media (max-width: 1100px) {
  .creators-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .creators-grid {
    grid-template-columns: 1fr !important;
  }
}
/* ===============================
   MAKE CREATORS WIDER (FINAL FIX)
   =============================== */

/* container ngoài – GIỮ NGUYÊN */
.creators-wrap {
  width: 100%;
  max-width: 1600px !important;   /* 🔥 RỘNG HƠN TRƯỚC */
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px;
  padding-right: 20px;
}

/* grid bên trong – RỘNG RA */
.creators-grid {
  width: 100% !important;
  max-width: 1400px !important;   /* 🔥 RỘNG HƠN features */
  margin-left: auto !important;
  margin-right: auto !important;

  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px;
}

/* card không bị bó */
.creator-item {
  width: 100% !important;
  max-width: none !important;
}


/* =========================================================
   GLOBAL RESET & VARIABLES
========================================================= */
:root {
  --bg: #0b0f14;
  --card: #121826;
  --border: #1f2937;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --primary: #3b82f6;
  --success: #22c55e;
  --danger: #ef4444;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: radial-gradient(circle at top, #0f172a 0%, #020617 60%);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

/* =========================================================
   CONTAINER
========================================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================================
   SECTION
========================================================= */
.section {
  padding: 64px 0;
}

.section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 48px;
}

/* =========================================================
   🔑 FEATURE GRID (DÙNG CHUNG CHO 6 KHUNG + 3 KHUNG)
========================================================= */
.feature-grid {
  max-width: 1200px;      /* QUAN TRỌNG: đồng bộ chiều ngang */
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* =========================================================
   FEATURE CARD
========================================================= */
.feature-card {
  background: linear-gradient(
    180deg,
    rgba(18, 24, 38, 0.9),
    rgba(2, 6, 23, 0.95)
  );
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 22px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
}

.feature-icon {
  font-size: 34px;
  margin-bottom: 14px;
}

.feature-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.feature-desc {
  font-size: 14px;
  color: var(--muted);
}

/* =========================================================
   DOWNLOAD / TOOL CARD (GIỮ TƯƠNG THÍCH UI CŨ)
========================================================= */
.tool-card {
  max-width: 720px;
  margin: 40px auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.tool-input {
  display: flex;
  gap: 12px;
}

.tool-input input {
  flex: 1;
  padding: 14px 16px;
  border-radius: 10px;
  background: #0f172a;
  border: 1px solid var(--border);
  color: var(--text);
  outline: none;
}

.tool-input input::placeholder {
  color: var(--muted);
}

.tool-input button {
  padding: 14px 22px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.tool-input button:hover {
  opacity: 0.9;
}

/* =========================================================
   PREVIEW
========================================================= */
.tool-preview {
  margin-top: 24px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.35s ease;
}

.tool-preview.active {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   DOWNLOAD BUTTONS
========================================================= */
.download-btn {
  display: block;
  width: 100%;
  padding: 14px;
  margin-top: 12px;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
}

.download-btn.mp4 {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.download-btn.mp3 {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 992px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .tool-input {
    flex-direction: column;
  }
}
/* =====================================================
   FAQ SECTION – VDOWN.CLICK (FULL CSS – ISOLATED)
   ===================================================== */

/* =====================================================
   FAQ SECTION – VDOWN.CLICK
   FULL CSS – ISOLATED – FINAL
   ===================================================== */

/* ===== WRAPPER ===== */
.faq-wrap {
    max-width: 1080px;          /* BẰNG container 3-card phía trên */
    margin: 100px auto 80px;
    padding: 0 16px;
}

/* ===== TITLE ===== */
.faq-title {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 44px;
    color: #e879f9;             /* tím hồng đồng bộ UI */
}

/* ===== GRID – DESKTOP 4x2 ===== */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 CỘT */
    gap: 16px;                              /* nhỏ hơn section 3-card */
}

/* ===== CARD ===== */
.faq-card {
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.06),
        rgba(255,255,255,0.025)
    );
    border-radius: 16px;
    padding: 25px 20px;

    height: 130px;               /* KHÓA CHIỀU CAO – KHÔNG CỘT DÀI */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    gap: 8px;

    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.06),
        0 14px 36px rgba(0,0,0,0.45);

    transition: transform .25s ease, box-shadow .25s ease;
}

/* ===== ICON ===== */
.faq-card .faq-icon,
.faq-card .why-icon {
    font-size: 22px;
    line-height: 1;
    margin-bottom: 6px;
}

/* ===== TITLE INSIDE CARD ===== */
.faq-card h3 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: #f9fafb;
    margin: 0;

    /* TỐI ĐA 2 DÒNG */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== DESCRIPTION ===== */
.faq-card p {
    font-size: 14px;
    line-height: 1.55;
    color: #cbd5e1;
    margin: 0;

    /* TỐI ĐA 3 DÒNG */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== HOVER ===== */
.faq-card:hover {
    transform: translateY(-4px);
    box-shadow:
        inset 0 0 0 1px rgba(232,121,249,0.4),
        0 20px 46px rgba(0,0,0,0.55);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

/* TABLET – 2 CỘT */
@media (max-width: 1024px) {
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* MOBILE – 1 CỘT */
@media (max-width: 640px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .faq-card {
        height: auto;           /* mobile cho đọc thoải mái */
        padding: 18px;
    }
}




/* =====================================================
   DOWNLOAD BUTTONS – FORCE CLOSE TOGETHER
   ===================================================== */

/* wrapper: bỏ gap hoàn toàn */
.download-actions {
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0 !important;                 /* ❌ không dùng gap */
  margin-top: 10px !important;
}

/* nút cơ bản */
.download-actions .btn-download {
  width: 132px !important;
  height: 42px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}

/* ÉP DÍNH NHAU */
.download-actions .btn-download.mp4 {
  margin-right: 3px !important;     /* 🔥 then chốt */
  z-index: 2;
}

/* MP3 nằm sát */
.download-actions .btn-download.mp3 {
  z-index: 1;
}

/* màu sắc */
.download-actions .btn-download.mp4 {
  background: linear-gradient(135deg, #00f2ea, #3b82f6);
  color: #020617;
}

.download-actions .btn-download.mp3 {
  background: #f8fafc;
  color: #020617;
}

/* mobile */
@media (max-width: 480px) {
  .download-actions .btn-download {
    width: 120px !important;
    height: 40px !important;
    font-size: 13.5px !important;
  }

  .download-actions .btn-download.mp4 {
    margin-right: -5px !important;
  }
}
/* ========== LANGUAGE DROPDOWN UI ========== */
.lang-switch {
    position: fixed;
    top: 14px;
    right: 18px;
    z-index: 9999;
}
.lang-switch select {
    appearance: none;
    padding: 6px 30px 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(0,0,0,.15);
    background: #fff;
    cursor: pointer;
}
.lang-switch::after {
    content: "▾";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #666;
}
@media (prefers-color-scheme: dark) {
    .lang-switch select {
        background:#111;
        color:#eee;
        border-color:rgba(255,255,255,.2);
    }
}