:root {
  --primary: #0ea5e9; /* Xanh dương tươi */
  --primary-600: #0284c7;
  --accent: #ffb703; /* Điểm nhấn vàng */
  --cta: #ef4444; /* Đỏ cho CTA phụ */
  --ink: #0f172a; /* Màu chữ chính */
  --muted: #64748b; /* Màu chữ phụ */
  --bg: #f8fafc; /* Nền sáng */
  --card: #ffffff; /* Nền thẻ */
  --radius: 18px;
  --shadow: 0 12px 30px rgba(2, 132, 199, 0.15);
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
}

html.no-scroll {
  overflow: hidden;
}

body {
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}
a {
  color: inherit;
  text-decoration: none;
}

/* Header / Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(
      1200px 600px at 10% -10%,
      rgba(14, 165, 233, 0.35),
      transparent 60%
    ),
    radial-gradient(
      1000px 600px at 90% 0%,
      rgba(14, 165, 233, 0.25),
      transparent 60%
    ),
    linear-gradient(135deg, #e0f2fe 0%, #ffffff 65%);
}
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 28px);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--primary), var(--primary-600));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  box-shadow: var(--shadow);
}
.brand h1 {
  font-size: 20px;
  margin: 0;
  font-weight: 800;
  color: var(--primary-600);
}
.nav .cta {
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--primary-600));
  color: #fff;
  box-shadow: var(--shadow);
  border: none;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.nav .ctas {
  display: flex;
  gap: 16px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
  padding: 28px 0 52px;
}
.title {
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.1;
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.subtitle {
  color: var(--muted);
  font-size: clamp(16px, 2.5vw, 18px);
  margin-bottom: 20px;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 22px;
}
.badge {
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #0b3b57;
  border-radius: 999px;
  padding: 8px 14px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 600;
  box-shadow: var(--shadow);
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  padding: 14px 20px;
  border-radius: 14px;
  font-weight: 800;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  transition: 0.2s;
  box-shadow: var(--shadow);
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-600));
  color: #fff;
}
.btn-primary:hover {
  transform: translateY(-2px);
}
.btn-ghost {
  background: #fff;
  border: 1px solid #e2e8f0;
  color: var(--primary-600);
}
.btn-ghost:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* SIM card mock */
.sim {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 24px;
  background: linear-gradient(145deg, #0ea5e9 0%, #1fb6ff 55%, #7dd3fc 100%);
  padding: 22px;
  box-shadow: var(--shadow);
  isolation: isolate;
}
.sim::after {
  content: "5G";
  position: absolute;
  right: 16px;
  top: 16px;
  font-weight: 800;
  color: #ffffffcc;
  background: #00000022;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  backdrop-filter: blur(4px);
}
.chip {
  width: 90px;
  height: 66px;
  border-radius: 12px;
  background: #f4d35e;
  border: 6px solid #fff;
  box-shadow: inset 0 0 0 2px #0000001a;
  position: relative;
}
.chip:before,
.chip:after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 8px;
  border: 3px solid #ffffffa6;
}
.sim-bottom {
  position: absolute;
  left: 22px;
  bottom: 20px;
  color: #fff;
  font-weight: 700;
  opacity: 0.95;
}

/* Sections */
.section {
  padding: 56px 0;
}
.section h2 {
  font-size: clamp(22px, 3.5vw, 32px);
  margin: 0 0 18px;
  font-weight: 800;
}
.lead {
  color: var(--muted);
  margin: 0 0 26px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  border: 1px solid #e2e8f0;
}
.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #e0f2fe, #fff);
  color: var(--primary-600);
}
.card h3 {
  margin: 6px 0 6px;
  font-size: 18px;
}
.card p {
  margin: 0;
  color: var(--muted);
}

/* Compare */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}
.table {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid #e2e8f0;
  overflow: hidden;
}
.table header {
  padding: 16px 18px;
  font-weight: 800;
  background: linear-gradient(135deg, #f0f9ff, #fff);
  color: #0b3b57;
}
.row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid #eef2f7;
}
.row b {
  color: #0b3b57;
}

/* Steps */
.steps {
  counter-reset: step;
}
.step {
  position: relative;
  padding: 18px;
  padding-left: 62px;
  margin: 18px 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.step:before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}

/* Testimonials */
.testi {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 8px;
}
.bubble {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.stars {
  color: #f59e0b;
  font-size: 18px;
  letter-spacing: 2px;
}

/* FAQ */
details {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: var(--shadow);
}
details + details {
  margin-top: 12px;
}
summary {
  font-weight: 700;
  cursor: pointer;
  color: #0b3b57;
}
details p {
  color: var(--muted);
  margin: 10px 0 0;
}

/* Sticky CTA Footer */
.sticky {
  position: sticky;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  border-top: 1px solid #e2e8f0;
}
.sticky .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px auto;
}
.countdown {
  margin-bottom: 12px;
  margin-top: 24px;
}
.countdown-label {
  font-size: 14px;
  color: #f97316;
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;
}
.countdown-timer {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.time-unit {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  text-align: center;
  min-width: 50px;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}
.time-unit span {
  display: block;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}
.time-unit small {
  font-size: 10px;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Desktop scaling - 1.3x larger */
@media (min-width: 768px) {
  .countdown-label {
    font-size: 18px;
    margin-bottom: 10px;
  }
  .countdown-timer {
    gap: 16px;
  }
  .time-unit {
    padding: 10px 16px;
    border-radius: 10px;
    min-width: 65px;
  }
  .time-unit span {
    font-size: 23px;
  }
  .time-unit small {
    font-size: 13px;
  }
}
.price {
  font-weight: 900;
  font-size: 20px;
  color: #ef4444;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.price .original {
  font-size: 16px;
  color: var(--muted);
  text-decoration: line-through;
  font-weight: 600;
}
.note {
  color: var(--muted);
  font-size: 14px;
}

.sticky .order-button {
  text-wrap: nowrap;
  padding: 12px 18px;
}

/* Footer */
footer {
  padding: 32px 0;
  color: #94a3b8;
  text-align: center;
}

/* Floating Contact Buttons */
.floating-contacts {
  position: fixed;
  right: 20px;
  bottom: 150px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
  transition: bottom 0.4s ease;
}

.floating-contacts.bottom-reached {
  bottom: 250px; /* Đẩy cao hơn trên mobile khi cuộn hết trang */
}

.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  animation: bounce 2s infinite;
}

.floating-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.floating-btn svg {
  width: 24px;
  height: 24px;
  color: white;
}

.floating-phone {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.floating-zalo {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
}

.floating-zalo span {
  color: white;
  font-weight: 600;
  font-size: 16px;
}

.floating-messenger img {
  width: 100%;
  height: 100%;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* CTA animations */
@keyframes cta-pulse {
  0% {
    box-shadow: var(--shadow), 0 0 0 0 rgba(14, 165, 233, 0);
    transform: translateY(0) scale(1);
  }
  50% {
    box-shadow: var(--shadow), 0 0 0 10px rgba(14, 165, 233, 0.12);
    transform: translateY(-1px) scale(1.02);
  }
  100% {
    box-shadow: var(--shadow), 0 0 0 0 rgba(14, 165, 233, 0);
    transform: translateY(0) scale(1);
  }
}

@keyframes gradient-pan {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Hide on desktop screens */
@media (min-width: 768px) {
  .floating-contacts {
    display: none;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
  .compare {
    grid-template-columns: 1fr;
  }
  .testi {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 620px) {
  .grid-3,
  .testi {
    grid-template-columns: 1fr;
  }
  .nav .cta {
    display: none;
  }
}

.order-dialog {
  position: fixed;
  width: 100vw;
  height: 100vh;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  visibility: hidden;
  opacity: 0;
  transition: 0.2s;
  z-index: 2000;
}
.order-dialog.active {
  visibility: visible;
  opacity: 1;
}
.order-dialog .dialog {
  background: #fff;
  border-radius: var(--radius);
  max-width: 400px;
  width: 100%;
  padding: 24px;
  box-shadow: var(--shadow);
  position: relative;
}
.order-dialog .dialog h2 {
  margin: 0 0 12px;
  font-size: 24px;
}
.order-dialog .dialog p {
  margin: 0 0 18px;
  color: var(--muted);
}
.order-dialog .dialog .close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #f1f5f9;
  display: grid;
  place-items: center;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
}
.order-dialog .dialog .close:hover {
  background: #e2e8f0;
  color: var(--ink);
}
.order-dialog .dialog form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.order-dialog .dialog form label {
  font-weight: 600;
}
.order-dialog .dialog form input,
.order-dialog .dialog form select {
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 16px;
}
.order-dialog .dialog form input:focus,
.order-dialog .dialog form select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.3);
}
.order-dialog .dialog form button {
  margin-top: 12px;
  padding: 14px 20px;
  border-radius: 14px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-600));
  color: #fff;
  box-shadow: var(--shadow);
  border: none;
  cursor: pointer;
  font-size: 14px;
  text-align: center;
}

.order-dialog .dialog form button:hover {
  transform: translateY(-2px);
}

.order-dialog .dialog form button:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

.order-button {
  cursor: pointer;
  position: relative;
  background-size: 200% 200%;
  animation: cta-pulse 0.5s ease-out infinite, gradient-pan 10s linear infinite;
}

.order-button:hover {
  animation-play-state: paused;
}

.order-button:focus-visible {
  outline: none;
  box-shadow: var(--shadow), 0 0 0 4px rgba(14, 165, 233, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .order-button {
    animation: none !important;
  }
}

.error-message {
  margin-top: 0px;
  font-size: 14px;
}