/* ==========================================================================
   1. HỆ THỐNG BIẾN & THIẾT LẬP NỀN TẢNG
   ========================================================================== */
:root {
  --bg-navy: #050b18;          
  --blue-primary: #3b66f5;     
  --blue-gradient: linear-gradient(135deg, #2b4cff, #627bff);
  --text-light: #ffffff;
  --text-gray-dark: #8c9baf;
  
  --bg-white: #f8fafc;
  --card-white: #ffffff;
  --text-dark: #0f172a;
  --text-gray-light: #64748b;
  --border-color: #e2e8f0;
  
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 10px;
  
  --shadow-mockup: 0 30px 60px rgba(0, 0, 0, 0.45);
  --shadow-bento: 0 10px 25px rgba(15, 23, 42, 0.05);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { 
  font-size: 16px; 
  scroll-behavior: smooth; 
}

body { 
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 
  background: var(--bg-white); 
  color: var(--text-dark); 
  line-height: 1.6; 
  overflow-x: hidden; 
  -webkit-font-smoothing: antialiased;
}

.container { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 24px; 
}

img { 
  max-width: 100%; 
  display: block; 
}

/* ==========================================================================
   2. HIỆU ỨNG CHUYỂN ĐỘNG (ANIMATIONS)
   ========================================================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-25px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float1 { 
  0%, 100% { transform: translateY(0); } 
  50% { transform: translateY(-12px); } 
}

@keyframes float2 { 
  0%, 100% { transform: translateX(-50%) translateY(0); } 
  50% { transform: translateX(-50%) translateY(-15px); } 
}

@keyframes float3 { 
  0%, 100% { transform: translateY(0); } 
  50% { transform: translateY(-8px); } 
}

@keyframes scanLine { 
  0% { top: 0; opacity: 0; } 
  50% { opacity: 1; } 
  100% { top: 100%; opacity: 0; } 
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(59, 102, 245, 0.5); }
  70% { box-shadow: 0 0 0 14px rgba(59, 102, 245, 0); }
  100% { box-shadow: 0 0 0 0 rgba(59, 102, 245, 0); }
}

@keyframes spin { 
  100% { transform: rotate(360deg); } 
}

@keyframes scrollLogo {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 15px)); }
}

.fade-in-up { animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
.fade-in-down { animation: fadeInDown 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
.float-anim-1 { animation: float1 6s ease-in-out infinite; }
.float-anim-2 { animation: float2 5s ease-in-out infinite; }
.float-anim-3 { animation: float3 7s ease-in-out infinite; }
.pulse-btn { animation: pulseGlow 2.2s infinite; }

/* ==========================================================================
   3. THANH ĐIỀU HƯỚNG (HEADER)
   ========================================================================== */
.header { 
  background: var(--bg-navy); 
  padding: 22px 0; 
  border-bottom: 1px solid rgba(255, 255, 255, 0.05); 
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-wrap { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
}

.logo { 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  color: #ffffff; 
  font-size: 1.2rem; 
  font-weight: 800; 
  text-decoration: none; 
}

.nav-menu { 
  display: flex; 
  gap: 30px; 
}

.nav-menu a { 
  color: #8c9baf; 
  text-decoration: none; 
  font-size: 0.92rem; 
  font-weight: 500; 
  transition: var(--transition); 
}

.nav-menu a:hover { 
  color: #ffffff; 
}

.nav-auth { 
  display: flex; 
  align-items: center; 
  gap: 20px; 
}

.login-btn { 
  color: #ffffff; 
  text-decoration: none; 
  font-size: 0.9rem; 
  font-weight: 500; 
}

.nav-cta { 
  background: var(--blue-primary); 
  color: #ffffff; 
  text-decoration: none; 
  padding: 9px 24px; 
  border-radius: 99px; 
  font-weight: 600; 
  font-size: 0.9rem; 
  transition: var(--transition); 
}

.nav-cta:hover { 
  transform: scale(1.05); 
}

/* ==========================================================================
   4. HERO SECTION (DARK NAVY MOCKUP CLUSTER)
   ========================================================================== */
.hero { 
  position: relative; 
  background-color: var(--bg-navy); 
  padding: 50px 0 160px; 
  overflow: hidden; 
  text-align: center; 
}

.bg-watermark { 
  position: absolute; 
  top: -10%; 
  left: 50%; 
  transform: translateX(-50%); 
  font-size: 18vw; 
  font-weight: 900; 
  color: rgba(255, 255, 255, 0.03); 
  white-space: nowrap; 
  pointer-events: none; 
}

.hero-text-content { 
  position: relative; 
  z-index: 10; 
  margin-bottom: 50px; 
}

.hero-tag { 
  display: inline-block; 
  background: rgba(255, 255, 255, 0.08); 
  border: 1px solid rgba(255, 255, 255, 0.12); 
  color: #a5b4cb; 
  padding: 6px 20px; 
  border-radius: 99px; 
  font-size: 0.85rem; 
  margin-bottom: 22px; 
}

.hero h1 { 
  color: #ffffff; 
  font-size: clamp(2.3rem, 4vw, 3.6rem); 
  font-weight: 800; 
  line-height: 1.2; 
  margin-bottom: 20px; 
}

.hero h1 span { 
  color: #ffffff; 
}

.emoji { 
  font-size: 2.2rem; 
  vertical-align: middle; 
}

.hero-desc { 
  color: #8c9baf; 
  font-size: 1.05rem; 
  max-width: 620px; 
  margin: 0 auto 35px; 
  line-height: 1.65; 
}

.btn-primary { 
  display: inline-flex; 
  align-items: center; 
  gap: 8px; 
  background: var(--blue-primary); 
  color: #ffffff; 
  padding: 14px 32px; 
  border-radius: 99px; 
  font-weight: 700; 
  text-decoration: none; 
  border: none; 
  cursor: pointer; 
  transition: var(--transition); 
}

.btn-primary:hover { 
  transform: translateY(-2px); 
}

/* KHỐI 3 THẺ NỔI 3D */
.hero-mockup-cluster { 
  position: relative; 
  width: 100%; 
  max-width: 900px; 
  height: 420px; 
  margin: 0 auto; 
  z-index: 5; 
}

.mockup-card { 
  position: absolute; 
  border-radius: var(--radius-xl); 
  box-shadow: var(--shadow-mockup); 
  padding: 24px; 
  text-align: left; 
}

/* Thẻ Giữa chứa chân dung quét radar */
.card-center { 
  width: 340px; 
  height: 420px; 
  background: #ffffff; 
  top: 0; 
  left: 50%; 
  transform: translateX(-50%); 
  z-index: 3; 
  display: flex; 
  flex-direction: column; 
}

.c-title-center { 
  text-align: center; 
  font-size: 0.82rem; 
  color: #64748b; 
  font-weight: 700; 
  margin-bottom: 10px; 
}

.card-center h3 { 
  font-size: 1.2rem; 
  text-align: center; 
  line-height: 1.35; 
  color: #0f172a; 
  margin-bottom: 18px; 
}

.center-avatar-wrapper { 
  position: relative; 
  width: 135px; 
  height: 135px; 
  margin: 0 auto 18px; 
  border-radius: 50%; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
}

.radar-ring { 
  position: absolute; 
  inset: -8px; 
  border-radius: 50%; 
  border: 2px dashed #3b66f5; 
  animation: spin 10s linear infinite; 
  opacity: 0.35; 
}

.center-photo { 
  width: 100%; 
  height: 100%; 
  border-radius: 50%; 
  object-fit: cover; 
  border: 4px solid #ffffff; 
  box-shadow: 0 8px 20px rgba(59, 102, 245, 0.2); 
  position: relative; 
  z-index: 2; 
}

.scan-line { 
  position: absolute; 
  left: 0; 
  width: 100%; 
  height: 2px; 
  background: #3b66f5; 
  z-index: 3; 
  box-shadow: 0 0 8px #3b66f5; 
  animation: scanLine 2.2s linear infinite; 
}

.center-footer-img { 
  background: #f8fafc; 
  padding: 14px 18px; 
  border-radius: 12px; 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  margin-top: auto; 
}

.center-footer-img span { 
  font-size: 0.8rem; 
  font-weight: 700; 
}

.center-footer-img small { 
  display: block; 
  font-weight: 400; 
  color: #64748b; 
  margin-top: 2px; 
}

.c-btn-circle { 
  width: 34px; 
  height: 34px; 
  border-radius: 50%; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-weight: bold; 
}

/* Thẻ Trái (ROAS) */
.card-left { 
  width: 280px; 
  height: 320px; 
  background: #ffffff; 
  top: 50px; 
  left: calc(50% - 380px); 
  z-index: 2; 
}

.c-head { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  margin-bottom: 12px; 
}

.c-title { 
  font-size: 0.85rem; 
  color: #64748b; 
  font-weight: 600; 
}

.c-badge { 
  background: #e0e7ff; 
  color: #3b66f5; 
  padding: 4px 8px; 
  border-radius: 6px; 
  font-size: 0.7rem; 
  font-weight: 700; 
}

.c-number { 
  display: block; 
  font-size: 2.2rem; 
  font-weight: 800; 
  color: #0f172a; 
  margin-bottom: 20px; 
}

.c-number span { 
  font-size: 0.9rem; 
  font-weight: 500; 
}

.c-progress { 
  background: #f1f5f9; 
  padding: 12px; 
  border-radius: 12px; 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  margin-bottom: 18px; 
}

.c-progress .p-icon { 
  background: #ffffff; 
  padding: 6px; 
  border-radius: 50%; 
}

.c-progress .p-text { 
  font-size: 0.82rem; 
  font-weight: 700; 
  line-height: 1.2; 
  flex-grow: 1; 
}

.skeleton-bars .bar { 
  height: 28px; 
  background: #e2e8f0; 
  border-radius: 8px; 
  margin-bottom: 8px; 
}

.skeleton-bars .bar-1 { width: 100%; }
.skeleton-bars .bar-2 { width: 70%; }

/* Thẻ Phải (Best Campaign) */
.card-right { 
  width: 280px; 
  height: 320px; 
  background: var(--blue-gradient); 
  color: #ffffff; 
  top: 50px; 
  right: calc(50% - 380px); 
  z-index: 2; 
  border: 1px solid rgba(255, 255, 255, 0.2); 
}

.text-white { color: rgba(255, 255, 255, 0.85); }
.c-route { font-size: 1.4rem; font-weight: 800; margin: 18px 0 5px; }
.c-price { display: block; font-size: 1.7rem; margin-bottom: 5px; }
.c-saving { font-size: 0.78rem; color: rgba(255, 255, 255, 0.8); margin-bottom: 25px; }
.dotted-path { font-size: 1.1rem; letter-spacing: 2px; color: rgba(255, 255, 255, 0.5); }

/* Thẻ Tag bay lơ lửng */
.floating-tag { 
  position: absolute; 
  font-size: 0.75rem; 
  font-weight: 700; 
  color: #0f172a; 
  background: #ffffff; 
  padding: 6px 14px; 
  border-radius: 99px; 
  z-index: 10; 
  display: flex; 
  align-items: center; 
}

.floating-tag .line { width: 40px; height: 1px; background: rgba(255, 255, 255, 0.4); margin-left: 10px; }
.floating-tag .line-right { margin-left: 0; margin-right: 10px; }
.tag-website { top: 200px; left: -100px; animation: float3 5s infinite reverse; }
.tag-ui { top: 260px; left: -80px; animation: float1 6s infinite; }
.tag-booking { top: 220px; right: -90px; }

/* ==========================================================================
   5. BENTO GRID DỊCH VỤ (LIGHT MODE)
   ========================================================================== */
.features-section { 
  padding: 90px 0; 
  background: var(--bg-white); 
}

.section-header { 
  text-align: center; 
  margin-bottom: 50px; 
}

.badge-pill { 
  color: #3b66f5; 
  background: #e0e7ff; 
  padding: 6px 16px; 
  border-radius: 99px; 
  font-size: 0.82rem; 
  font-weight: 800; 
  display: inline-block; 
  margin-bottom: 12px; 
}

.section-header h2 { 
  font-size: 2.1rem; 
  color: #0f172a; 
  margin-bottom: 8px; 
  line-height: 1.3; 
}

.section-header p { 
  color: #64748b; 
  font-size: 0.95rem; 
}

.bento-grid { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 20px; 
}

.bento-item { 
  background: var(--card-white); 
  border: 1px solid var(--border-color); 
  border-radius: var(--radius-lg); 
  padding: 28px 22px; 
  display: flex; 
  flex-direction: column; 
  transition: var(--transition); 
}

.hover-scale:hover { 
  transform: translateY(-6px); 
  box-shadow: var(--shadow-bento); 
}

.bento-primary { 
  background: #1a33c2; 
  color: #ffffff; 
  border: none; 
}

.bento-primary h3, .bento-primary p { color: #ffffff; }
.bento-primary p { opacity: 0.82; }
.bento-primary .b-link { color: #ffffff; }
.bento-primary .b-icon { background: rgba(255, 255, 255, 0.12); color: #ffffff; border: none; }

.b-icon { 
  width: 44px; 
  height: 44px; 
  border-radius: 10px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-size: 1.4rem; 
  margin-bottom: 18px; 
}

.light-icon { background: #f8fafc; border: 1px solid #e2e8f0; }
.bento-item h3 { font-size: 1.05rem; margin-bottom: 10px; }
.bento-item p { font-size: 0.86rem; color: #64748b; line-height: 1.6; margin-bottom: 20px; flex-grow: 1; }
.b-link { font-size: 0.85rem; font-weight: 700; color: #0f172a; text-decoration: none; }
.b-link:hover { color: #3b66f5; }

.bento-profile { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
  margin-bottom: 18px; 
  background: rgba(255, 255, 255, 0.1); 
  padding: 8px; 
  border-radius: 8px; 
}

.bento-profile img { 
  width: 30px; 
  height: 30px; 
  border-radius: 50%; 
  object-fit: cover; 
}

.bento-profile strong { display: block; font-size: 0.78rem; line-height: 1; }
.bento-profile span { font-size: 0.68rem; opacity: 0.7; }

/* ==========================================================================
   6. BÀI VIẾT & CASE STUDY
   ========================================================================== */
.articles-section { 
  padding: 85px 0; 
  background: #eef2f6; 
  border-top: 1px solid var(--border-color); 
}

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

.post-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-bento);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.post-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #e2e8f0;
  overflow: hidden;
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-meta {
  font-size: 0.8rem;
  color: var(--text-gray-light);
  margin-bottom: 8px;
}

.post-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 14px;
}

.post-title a {
  text-decoration: none;
  color: var(--text-dark);
}

.post-title a:hover {
  color: var(--blue-primary);
}

.read-more {
  text-decoration: none;
  color: var(--blue-primary);
  font-weight: 700;
  font-size: 0.88rem;
  margin-top: auto;
}

/* ==========================================================================
   7. FORM LIÊN HỆ TƯ VẤN
   ========================================================================== */
.contact-section { 
  padding: 90px 0; 
  background: var(--bg-white); 
}

.contact-card {
  max-width: 720px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.06);
  border: 1px solid var(--border-color);
  text-align: center;
}

.contact-card h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.contact-card p {
  color: var(--text-gray-light);
  font-size: 0.98rem;
  margin-bottom: 30px;
}

.contact-form {
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: inherit;
  background: #f8fafc;
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue-primary);
  background: #ffffff;
}

.btn-block {
  width: 100%;
  justify-content: center;
  margin-top: 16px;
  padding: 15px;
  font-size: 1rem;
}

/* ==========================================================================
   8. DẢI BĂNG CHUYỀN 10 LOGO KHÁCH HÀNG (SCROLLING MARQUEE)
   ========================================================================== */
.clients-section {
  padding: 60px 0 90px;
  background: var(--bg-white);
  border-top: 1px solid var(--border-color);
  overflow: hidden;
}

.client-title {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 800;
  color: #64748b;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.logo-marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
}

.logo-marquee::before,
.logo-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.logo-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-white) 0%, transparent 100%);
}

.logo-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-white) 0%, transparent 100%);
}

.marquee-track {
  display: flex;
  gap: 30px;
  align-items: center;
  animation: scrollLogo 28s linear infinite;
  white-space: nowrap;
}

.marquee-track:hover {
  animation-play-state: paused;
}

/* Ô bọc từng logo */
.client-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 70px;
  min-width: 160px;
  padding: 10px 18px;
  flex-shrink: 0; 
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: var(--transition);
  cursor: pointer;
}

/* Định chuẩn ảnh logo để không bị kéo giãn hay vỡ khung */
.client-logo img {
  max-height: 44px;
  max-width: 125px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.75;
  transition: all 0.3s ease;
}

.client-logo:hover {
  border-color: #3b66f5;
  box-shadow: 0 8px 18px rgba(59, 102, 245, 0.12);
  transform: translateY(-2px);
}

.client-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* ==========================================================================
   9. FOOTER & TỐI ƯU GIAO DIỆN DI ĐỘNG (RESPONSIVE)
   ========================================================================== */
.footer {
  padding: 30px 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
  color: #64748b;
  font-size: 0.88rem;
}

@media (max-width: 1100px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .card-left { left: 0; }
  .card-right { right: 0; }
}

@media (max-width: 768px) {
  .nav-menu, .login-btn { display: none; }
  .hero { padding-bottom: 50px; }
  .bg-watermark { display: none; }
  .hero h1 { font-size: 2rem; }
  .hero-mockup-cluster { height: auto; display: flex; flex-direction: column; gap: 18px; align-items: center; }
  .mockup-card { position: static; transform: none !important; width: 100%; max-width: 340px; animation: none; }
  .floating-tag { display: none; }
  .bento-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-card { padding: 32px 20px; }
  .logo-marquee::before, .logo-marquee::after { width: 40px; }
  .client-logo { min-width: 130px; height: 55px; }
  .client-logo img { max-height: 35px; max-width: 100px; }
}
/* ==========================================================================
   10. STYLE TRANG PHÁP LÝ & FOOTER MỚI
   ========================================================================== */
.legal-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 48px 42px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-bento);
}

.legal-card h1 {
  font-size: 2.2rem;
  color: var(--text-dark);
  margin: 12px 0 6px;
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--text-gray-light);
  margin-bottom: 35px;
}

.legal-section {
  margin-bottom: 28px;
}

.legal-section h2 {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.legal-section p {
  color: #334155;
  line-height: 1.75;
  font-size: 0.98rem;
}

/* FOOTER NÂNG CẤP */
.footer {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 0;
  text-align: left;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 45px;
}

.footer-brand .logo {
  color: var(--text-dark);
  margin-bottom: 14px;
}

.footer-bio {
  color: var(--text-gray-light);
  font-size: 0.92rem;
  line-height: 1.65;
  max-width: 380px;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 18px;
}

.footer-links-list {
  list-style: none;
}

.footer-links-list li {
  margin-bottom: 12px;
}

.footer-links-list a {
  color: var(--text-gray-light);
  text-decoration: none;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.footer-links-list a:hover {
  color: var(--blue-primary);
  transform: translateX(3px);
}

.social-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  color: var(--text-dark);
}

.zalo-link:hover .social-badge { background: #0068ff; color: #fff; }
.fb-link:hover .social-badge { background: #1877f2; color: #fff; }
.tiktok-link:hover .social-badge { background: #000000; color: #fff; }

.footer-bottom {
  border-top: 1px solid #f1f5f9;
  padding: 22px 0;
  background: #f8fafc;
}

.footer-bottom-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-gray-light);
}

.security-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #10b981;
}

.sec-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom-wrap {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
/* ==========================================================================
   11. SẢN PHẨM AFFILIATE (SHOPEE / TIKTOK SHOP)
   ========================================================================== */
.affiliate-section {
  padding: 85px 0;
  background: #f8fafc; /* Nền sáng sạch sẽ nổi bật thẻ sản phẩm */
}

/* Lưới sản phẩm: 4 cột trên PC */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
  transition: all 0.3s ease;
}

/* Thẻ sản phẩm */
.product-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

/* Ẩn sản phẩm khi quá 10 cái */
.hidden-item {
  display: none !important;
}

/* Tag Mua với giá tốt (Hiệu ứng nhịp đập) */
.p-badge-hot {
  position: absolute;
  top: 10px;
  left: -4px;
  background: linear-gradient(90deg, #ef4444, #f97316);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 0 8px 8px 0;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4);
  animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Vùng ảnh */
.p-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f1f5f9;
  overflow: hidden;
}

.p-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .p-thumb img {
  transform: scale(1.05);
}

/* Thông tin sản phẩm */
.p-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.p-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.5;
  margin-bottom: 16px;
  /* Giới hạn 2 dòng chữ, nếu dài tự thành dấu ... */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Nút mua TikTok Shop */
.btn-buy-tiktok {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  color: #ffffff;
  text-decoration: none;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: background 0.2s;
}

.btn-buy-tiktok:hover {
  background: #222222;
}

/* Nút Xem Thêm */
.show-more-wrap {
  text-align: center;
  margin-top: 20px;
}

.btn-show-more {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 12px 30px;
  border-radius: 99px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-show-more:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

.btn-show-more span {
  font-size: 0.7rem;
  margin-left: 6px;
}

/* TỐI ƯU CỰC KỲ CHI TIẾT CHO MOBILE */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  /* Tối ưu UI giống hệt Shopee: Chia 2 cột trên điện thoại */
  .product-grid { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 12px; /* Thu hẹp khoảng cách cho mobile */
  }
  
  .p-info {
    padding: 12px 10px;
  }
  
  .p-title {
    font-size: 0.85rem; /* Thu nhỏ chữ tiêu đề để vừa khung */
    margin-bottom: 12px;
  }
  
  .btn-buy-tiktok {
    padding: 8px;
    font-size: 0.8rem;
  }

  .p-badge-hot {
    font-size: 0.65rem;
    padding: 4px 8px;
    top: 6px;
  }
}