/* Theme */
:root{
  --bg:#0a1022; --card:#0b1328; --stroke:#223159; --ink:#eaf1ff; --muted:#9fb5ffb3; --accent:#2b5cff;
}
*{box-sizing:border-box}
section{max-width:1150px;margin:28px auto;padding:16px 16px}
.card{background:var(--card);border:1px solid var(--stroke);border-radius:16px;box-shadow:0 10px 24px rgba(0,0,0,.22)}

/* Ambient blobs */
.bg-blobs{position:fixed;inset:0;pointer-events:none;z-index:-1}
.blob{position:absolute;filter:blur(80px);opacity:.32}
.blob.b1{width:360px;height:360px;border-radius:50%;background:#2b5cff;left:2%;top:10%}
.blob.b2{width:320px;height:320px;border-radius:50%;background:#10b981;right:6%;top:40%}

/* HERO */
.hero{position:relative;max-width:1150px;margin:0 auto}
.hero-carousel{position:relative;height:56vh;min-height:420px;border-radius:20px;overflow:hidden;border:1px solid var(--stroke)}
.carousel-slide{
  position:absolute; inset:0; background-size:cover; background-position:center;
  opacity:0; transform:scale(1.03); transition:opacity .6s ease, transform .8s ease; z-index:0;
}
.carousel-slide::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(6,10,22,.35) 0%, rgba(6,10,22,.78) 100%);
  pointer-events:none; z-index:0;
}
.carousel-slide.active{opacity:1; transform:scale(1)}
.carousel-text{
  position:absolute; left:5%; bottom:8%; max-width:640px; color:#fff;
  text-shadow:0 6px 18px rgba(0,0,0,.45); z-index:1; /* above overlay */
}
.carousel-text h1{margin:0 0 8px;font-size:2.2rem}
.carousel-text p{margin:0;color:#e7ecff}

.carousel-nav{
  position:absolute; top:50%; transform:translateY(-50%);
  background:rgba(255,255,255,.08); color:#fff; border:1px solid rgba(255,255,255,.18);
  width:42px;height:42px;border-radius:50%; cursor:pointer; backdrop-filter:blur(6px); z-index:2;
}
.carousel-nav:hover{background:rgba(255,255,255,.14)}
.carousel-nav.prev{left:14px} .carousel-nav.next{right:14px}

/* Discount */
.discount-banner{padding:16px;text-align:center}
.discount-banner h3{margin:0 0 6px}
.discount-banner p{margin:0;color:var(--muted)}

/* Features */
.features-grid{max-width:1150px;margin:28px auto;padding:0 16px;display:grid;gap:18px;grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.feature-card{padding:20px;text-align:left;text-decoration:none;color:var(--ink);border-radius:16px;border:1px solid var(--stroke);background:linear-gradient(180deg, rgba(16,24,48,.76), rgba(13,19,40,.76));transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease}
.feature-card:hover{transform:translateY(-3px);border-color:var(--accent);box-shadow:0 12px 26px rgba(0,0,0,.32)}
.feature-card i{display:inline-grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#111a34;border:1px solid var(--stroke);margin-bottom:10px;color:#aac5ff}
.feature-card h3{margin:4px 0 6px}
.feature-card p{margin:0;color:var(--muted)}

/* Why Us */
.why-us-section h2, .pricing-section h2, .testimonials-section h2, .faq-section h2, .contact-section h2, .newsletter-section h2 {margin-top:-20px; padding:20px}
.reasons-grid{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}
.reason-card{padding:18px;border-radius:16px;border:1px solid var(--stroke);background:linear-gradient(180deg, rgba(16,24,48,.72), rgba(13,19,40,.72))}
.reason-card i{color:#a3baff;margin-bottom:8px}
.reason-card h4{margin:0 0 6px}
.reason-card p{margin:0;color:var(--muted)}

/* Pricing */
.pricing-grid{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}
.pricing-card{padding:18px;border-radius:16px;border:1px solid var(--stroke);background:linear-gradient(180deg, rgba(16,24,48,.72), rgba(13,19,40,.72))}
.pricing-card h3{margin:0 0 6px}
.pricing-card p{margin:0;color:var(--muted)}

/* Testimonials */
.testimonial-grid{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.testimonial{padding:18px;border-radius:16px;border:1px solid var(--stroke);background:linear-gradient(180deg, rgba(16,24,48,.72), rgba(13,19,40,.72))}
.testimonial p{margin:0 0 8px}
.testimonial h4{margin:0;color:#cfe2ff}

/* FAQ */
.faq{max-width:820px;margin:0 auto}
.faq-question{
  width:100%; text-align:left; padding:14px 16px; margin:10px 0 0;
  border-radius:12px; border:1px solid var(--stroke); background:#0b1328; color:var(--ink); cursor:pointer;
}
.faq-question.open{border-color:var(--accent)}
.faq-answer{max-height:0; overflow:hidden; transition:max-height .25s ease; padding:0 4px 0 8px; color:var(--muted)}

/* Newsletter */
.newsletter-section{max-width:820px;margin:28px auto;padding:18px;border-radius:16px}
.newsletter-form{display:flex;gap:10px;flex-wrap:wrap}
.newsletter-form input{
  flex:1; min-width:240px; padding:10px 12px; border-radius:12px; border:1px solid var(--stroke); background:#0b1328; color:var(--ink)
}
.btn-primary{background:var(--accent); border:1px solid var(--accent); color:#fff; padding:10px 14px; border-radius:12px; cursor:pointer}

/* Contact + Footer */
.contact-section iframe{box-shadow:0 10px 24px rgba(0,0,0,.22)}
.site-footer{max-width:1150px;margin:30px auto 40px;padding:0 16px;text-align:center;color:var(--muted)}
.progress{
  position:absolute; left:50%; bottom:18px; transform:translateX(-50%);
  display:flex; gap:8px; z-index:5;
  padding:6px 10px; border-radius:14px; background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.18); backdrop-filter:blur(10px);
}
.progress span{ width:46px; height:4px; background:rgba(255,255,255,.18); border-radius:999px; overflow:hidden; }
.progress span i{ display:block; height:100%; width:0%; background:#e7ecf3; border-radius:inherit; }

.promo-fab{
  position: fixed; right: 18px; bottom: 18px; z-index: 9999;
  width: 280px; padding: 14px 14px 16px; border-radius: 16px;
  background: rgba(14,22,40,.76);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 12px 32px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
  color: #e7ecf3;
}
.promo-fab h4{ margin: 0 0 6px; letter-spacing:.5px; }
.promo-fab p{ margin: 0 0 10px; opacity:.9; }
.promo-countdown{
  display:flex; align-items:center; gap:8px; margin: 8px 0 12px;
  font-weight:600;
}
.promo-countdown .t{
  min-width: 36px; padding: 6px 8px; text-align:center; border-radius: 10px;
  background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.18);
  font-variant-numeric: tabular-nums;
}
.promo-countdown small{ opacity:.7; margin-right:4px }
.promo-cta{ width:100%; border-radius:12px; }
.promo-close{
  position:absolute; top:6px; right:8px; width:30px; height:30px;
  border-radius:50%; border:0; background:transparent; color:#cdd5e1;
  font-size:18px; cursor:pointer;
}
.promo-close:hover{ background: rgba(255,255,255,.08); }
.promo-badge{
  position:absolute; left:12px; top:-10px; font-size:11px; letter-spacing:.8px;
  text-transform:uppercase; padding:3px 8px; border-radius:999px;
  color:#09101d; background:#f7dd74; border:1px solid #f2d657;
  box-shadow: 0 2px 0 rgba(0,0,0,.2);
}

/* small screens: make it snug */
@media (max-width: 480px){
  .promo-fab{ width: 86vw; right: 7vw; bottom: 14px; }
}
.bg-blobs .blob{ position:fixed; inset:auto; width:40vw; height:40vw; filter:blur(60px); opacity:.12; border-radius:50%; z-index:-1; }
.bg-blobs .b1{ background:#7dd3fc; left:-10vw; top:10vh; }
.bg-blobs .b2{ background:#c4b5fd; right:-12vw; bottom:0; }
/* a single centered container width for all sections */
:root{
  --container: min(1200px, calc(100% - 48px));
}

/* center specific sections */
.discount-banner,
.features-grid,
.why-us-section,
.pricing-section,
.testimonials-section,
#faq,
.newsletter-section,
.contact-section {
  width: var(--container);
  margin-inline: auto;   /* centers left/right */
}

/* optional: nicer padding on the banner */
.discount-banner.card{
  padding: 14px 20px;
}
/* Promo box additions */
.promo-actions{ display:flex; gap:8px; margin-top:8px; flex-wrap:wrap }
.promo-toggle{ background:transparent; border:1px solid var(--hair, rgba(255,255,255,.2)); color:inherit; padding:8px 10px; border-radius:10px; cursor:pointer }
.promo-list{ margin-top:10px; border-top:1px solid var(--hair, rgba(255,255,255,.12)); padding-top:10px; max-height:320px; overflow:auto }
.coupon-row{ border:1px solid var(--hair, rgba(255,255,255,.12)); border-radius:10px; padding:10px; margin-bottom:8px; background:var(--panel, rgba(255,255,255,.03)) }
.cr-main{ display:flex; align-items:center; gap:8px; justify-content:space-between; }
.cr-code{ font-weight:700; letter-spacing:.3px }
.cr-discount{ opacity:.9 }
.badge{ display:inline-flex; padding:3px 8px; border-radius:999px; font-size:12px; border:1px solid currentColor }
.b-ok{ color:#E6F0FF } .b-soon{ color:#ffd47a } .b-warn{ color:#ffb27a } .b-dang{ color:#ff8c8c } .b-dim{ color:#9aa6bf }
.cr-sub{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-top:6px; justify-content:space-between }
.cr-timer{ font-variant-numeric: tabular-nums; opacity:.9 }
.cr-btns{ display:flex; gap:8px }
.cr-copy{ border:1px solid var(--hair, rgba(255,255,255,.2)); background:transparent; color:inherit; padding:6px 10px; border-radius:8px; cursor:pointer }
