@font-face {
  font-family: "Averta Std CY";
  src: url("../fonts/AvertaStdCY-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Averta Std CY";
  src: url("../fonts/AvertaStdCY-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Averta Std CY", "Inter", "Segoe UI", Arial, sans-serif;
}

body {
  background-color: #f4f7fe;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

@media (min-width: 481px) {
  body {
    align-items: center;
  }
}

.phone-container {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  min-height: 100vh;
  height: auto;
  background-color: #f7faff;
  background-image:
    /* Top-right vibrant blue & violet/pink flare */
    radial-gradient(ellipse 260px 220px at 95% 8%, rgba(75, 110, 222, 0.65) 0%, rgba(143, 144, 221, 0.45) 40%, rgba(244, 180, 210, 0.25) 70%, transparent 100%),
    /* Mid-left soft luminous cyan / sky-blue aura */
    radial-gradient(circle 200px at 8% 28%, rgba(188, 232, 253, 0.75) 0%, rgba(188, 232, 253, 0.2) 60%, transparent 100%),
    /* Soft ambient top-left glow */
    radial-gradient(circle 220px at 15% 5%, rgba(210, 240, 255, 0.6) 0%, transparent 80%),
    /* Smooth base tint */
    linear-gradient(180deg, #edf4fe 0%, #ffffff 40%, #f4f8fe 100%);
  background-repeat: no-repeat;
}

/* Top Header Styling */
.header {
  padding: clamp(12px, 2.5vh, 20px) 16px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: clamp(2px, 1vh, 8px);
}

.cloud-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cloud-container img {
  width: clamp(84px, 22vw, 116px);
  max-width: 120px;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(0, 86, 237, 0.12));
}

/* Main Content Section */
.content {
  padding: clamp(36px, 8vh, 90px) clamp(18px, 5vw, 28px) clamp(12px, 2.5vh, 20px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 0;
  flex-shrink: 0;
}

.title {
  font-weight: 700;
  font-size: clamp(20px, 5.2vw, 26px);
  letter-spacing: 0.2px;
  vertical-align: middle;
  text-transform: uppercase;
  margin-bottom: clamp(6px, 1.2vh, 10px);
  line-height: 1.25;
  width: 100%;
  max-width: 360px;
}

.welcome-text {
  font-size: clamp(12px, 3.4vw, 13.5px);
  text-align: center;
  color: #192d39;
  padding: 0 4px;
  margin-bottom: clamp(14px, 2.5vh, 22px);
  max-width: 330px;
  line-height: 1.45;
}

/* Connection Info Card */
.info-card {
  width: 100%;
  max-width: 354px;
  background: #f8faff;
  border: 1px solid rgba(20, 30, 210, 0.08);
  border-radius: 14px;
  padding: clamp(10px, 2.8vw, 14px) clamp(12px, 3.5vw, 16px);
  display: flex;
  align-items: center;
  text-align: left;
  box-shadow: 0px 4px 14px rgba(20, 30, 210, 0.06);
  position: relative;
  overflow: hidden;
}

.pattern-dot {
  position: absolute;
  top: 0px;
  right: 0px;
  height: 100%;
  width: auto;
  pointer-events: none;
  opacity: 0.5;
}

.icon-pin {
  width: clamp(40px, 11vw, 48px);
  height: clamp(40px, 11vw, 48px);
  background: #ebf4ff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: clamp(10px, 3vw, 14px);
  flex-shrink: 0;
}

.icon-pin img {
  width: clamp(20px, 5.5vw, 24px);
  height: clamp(20px, 5.5vw, 24px);
  display: block;
}

.info-details {
  flex: 1;
  min-width: 0;
}

.info-details label {
  font-size: 10.5px;
  font-weight: 500;
  color: #141ed2;
  display: block;
  margin-bottom: 2px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.info-details .ssid {
  font-size: clamp(15px, 4.2vw, 17px);
  font-weight: 700;
  color: #141ed2;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  line-height: 1.25;
}

.info-details .location {
  font-size: clamp(11.5px, 3.2vw, 12.5px);
  color: #55697a;
  margin-top: 1px;
}

/* Connect Button */
.btn-connect {
  position: relative;
  overflow: hidden;
  background: #141ed2;
  color: #ecf5fa;
  border: none;
  width: 100%;
  max-width: 354px;
  padding: 13px 20px;
  border-radius: 14px;
  font-size: clamp(14.5px, 4vw, 16px);
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(20, 30, 210, 0.32);
  transition: background 0.25s ease, transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease, filter 0.15s ease;
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: clamp(48px, 6vh, 52px);
  height: auto;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn-connect:hover {
  background: #0033bb;
  box-shadow: 0 6px 22px rgba(20, 30, 210, 0.44);
  transform: translateY(-1px);
}

.btn-connect:active,
.btn-connect.btn-pressed {
  transform: scale(0.96) translateY(1px) !important;
  box-shadow: 0 2px 8px rgba(20, 30, 210, 0.4) !important;
  filter: brightness(0.92);
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.08s ease;
}



.btn-connect.is-loading {
  background: #0e16a8;
  opacity: 0.96;
  cursor: wait;
  pointer-events: none;
  gap: 10px;
  box-shadow: 0 4px 18px rgba(14, 22, 168, 0.4);
}

.btn-loading-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  animation: btnContentFadeIn 0.22s ease-out forwards;
}

@keyframes btnContentFadeIn {
  from {
    opacity: 0;
    transform: translateY(3px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: btnSpin 0.75s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}

@keyframes btnSpin {
  to {
    transform: rotate(360deg);
  }
}

.terms-link {
  display: inline-block;
  margin-top: clamp(8px, 1.8vh, 12px);
  margin-bottom: clamp(12px, 2.5vh, 20px);
  color: #0044ee;
  font-size: clamp(12px, 3.2vw, 13px);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}

.terms-link:hover {
  opacity: 0.8;
}

/* End-User Structural Banner Slider Elements Container Blocks */
.footer-image-container {
  width: 100%;
  margin-top: clamp(12px, 4.5vh, 48px);
  overflow: hidden;
  padding-bottom: clamp(8px, 1.8vh, 14px);
  flex-shrink: 0;
}

#runtime-injection-point {
  width: 100%;
}

.slider-wrapper {
  width: 100%;
  height: 145px;
  position: relative;
  background: transparent;
  overflow: hidden;
  flex-shrink: 0;
}

/* Trường hợp chỉ có 1 slide duy nhất */
.slider-wrapper.is-single {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 clamp(14px, 4.5vw, 20px);
}

.slider-wrapper.is-single .single-slide-banner {
  width: 100%;
  max-width: 354px;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  background-color: #e8eef8;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.slider-wrapper.is-single .single-slide-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.slider-wrapper.is-single .single-slide-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.slider-track {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.slider-track.notransition,
.slider-track.notransition .slider-slide {
  transition: none !important;
}

.slider-slide {
  flex: 0 0 68%;
  height: 100%;
  overflow: hidden;
  border-radius: 14px;
  background-color: #e8eef8;
  opacity: 0.6;
  transform: scale(0.85);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.7s ease,
    box-shadow 0.7s ease;
  will-change: transform, opacity;
}

.slider-slide.active {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
}

.slider-slide.previous,
.slider-slide.next {
  opacity: 0.6;
  transform: scale(0.85);
}

.slider-slide.hidden {
  opacity: 0;
  transform: scale(0.85);
}

.slider-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

/* Success Modal & Dark Overlay Backdrop */
.modal-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(30, 35, 45, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

@media (max-width: 480px) {
  .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
  }
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background-color: #ffffff;
  border-radius: 22px;
  padding: clamp(24px, 6vw, 32px) clamp(18px, 5vw, 24px) clamp(22px, 5vw, 28px);
  width: 100%;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-icon-success {
  width: clamp(68px, 18vw, 84px);
  height: clamp(68px, 18vw, 84px);
  border-radius: 50%;
  background-color: #eaf7ec;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(20px, 4vh, 32px);
}

.modal-icon-success svg {
  width: clamp(40px, 11vw, 50px);
  height: clamp(40px, 11vw, 50px);
  display: block;
}

.modal-title {
  font-size: clamp(17px, 4.5vw, 19px);
  font-weight: 700;
  color: #12284a;
  margin-bottom: 8px;
  letter-spacing: 0.2px;
  line-height: 1.3;
}

.modal-desc {
  font-size: clamp(13px, 3.5vw, 14px);
  color: #707789;
  line-height: 1.5;
  margin-bottom: clamp(16px, 3.5vh, 22px);
}

.modal-desc .highlight-code {
  color: #004ecc;
  font-weight: 600;
}

.modal-desc .highlight-rate {
  color: #b02a8f;
  font-weight: 600;
}

.modal-countdown {
  background-color: #EBF4FF;
  border: none;
  border-radius: 20px;
  padding: 4px 26px;
  color: #141ED2;
  font-weight: 300;
  font-size: 18px;
  min-width: 58px;
  box-shadow: 0 1px 3px rgba(26, 86, 219, 0.08);
}

.connect-btn-container {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  padding: 10px 16px max(24px, env(safe-area-inset-bottom));
  width: 100%;
}

.section-divider {
  width: calc(100% - 32px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(25, 45, 57, 0.12), transparent);
  margin: 10px auto 16px;
}

/* Card Promotions */
.card-container {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 3.5vw, 18px);
  padding: 6px 0 16px;
  flex-shrink: 0;
}

.card {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border-radius: 18px;
  padding: clamp(14px, 4vw, 18px) clamp(14px, 4.5vw, 20px);
  box-shadow: 0 10px 30px -4px rgba(20, 30, 210, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

#storeCard,
#branchCard,
#branchCard1 {
  display: none;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px -4px rgba(20, 30, 210, 0.15), 0 6px 18px rgba(0, 0, 0, 0.06);
}

.card-content-wrapper {
  display: flex;
  align-items: center;
  gap: clamp(10px, 3vw, 14px);
  margin-bottom: 8px;
}

.card-image {
  width: clamp(44px, 12vw, 56px);
  height: clamp(44px, 12vw, 56px);
  background-color: #EBF4FF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-image img {
  width: clamp(22px, 6vw, 28px);
  height: clamp(22px, 6vw, 28px);
  display: block;
  object-fit: contain;
}

.card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.card-title {
  font-weight: 600;
  font-size: clamp(14px, 4vw, 16px);
  color: #192D39;
  margin-bottom: 2px;
  line-height: 1.3;
}

.card-desc {
  font-weight: 400;
  font-size: clamp(12px, 3.5vw, 13.5px);
  letter-spacing: 0.15px;
  color: #192D39;
  line-height: 1.45;
  padding-right: 42px;
}

.card-desc strong {
  font-weight: 700;
  color: #141ED2;
}

.card-desc span {
  color: #1FB266;
  font-weight: 700;
}

.card-btn {
  text-decoration: none;
  color: #ffffff;
  background-color: #141ED2;
  border-radius: 9999px;
  padding: 5px 14px;
  font-size: clamp(12px, 3.4vw, 13px);
  font-weight: 600;
  margin-left: auto;
  margin-right: 0;
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  transition: opacity 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(20, 30, 210, 0.2);
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.card-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(20, 30, 210, 0.32);
}

.card-btn:active {
  transform: scale(0.93) translateY(1px);
  box-shadow: 0 1px 4px rgba(20, 30, 210, 0.25);
}