body{
    font-family: "Poppins", sans-serif;
    font-weight: 300; 
    font-style: normal;
    background-image: url('./general_bg.png');
    background-repeat: no-repeat;
    background-size: cover;
    
}
.total_amount{
  font-family: "Sora", sans-serif;
  font-optical-sizing: auto;
}

.font-sora{
  font-family: "Sora", sans-serif;
  font-optical-sizing: auto;
}

.text-gradient {
  background: linear-gradient(90deg, #6C61EC 0%, #F896D8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: "Sora", sans-serif;
  font-optical-sizing: auto;
}

.input {
  width: 100%;
  height: 42px;
  border-radius: 10px;
  border: 1px solid #E0E0E1;
  padding: 0 12px;
  outline: none;
  font-size: 14px;
  background: #fff;
}
.input:focus {
  border-color: rgba(107, 99, 230, 0.55);
  box-shadow: 0 0 0 4px rgba(107, 99, 230, 0.12);
}

.eye-btn {
  position: absolute;
  inset-block: 0;
  right: 10px;
  display: grid;
  place-items: center;
  color: #94a3b8;
}
.eye-btn:hover {
  color: #64748b;
}

.code-btn {
  height: 42px;
  min-width: 98px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
}
.code-btn:focus {
  outline: none;
  border-color: rgba(107, 99, 230, 0.55);
  box-shadow: 0 0 0 4px rgba(107, 99, 230, 0.12);
}

.code-menu {
  position: absolute;
  margin-top: 8px;
  width: 260px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.12);
  padding: 6px;
  z-index: 50;
}
.code-item {
  padding: 10px 10px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
}
.code-item:hover {
  background: rgba(107, 99, 230, 0.10);
}


.store-badge {
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

footer{
    background-image: url('./footer_bg.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-color: transparent;
}

.footer-panel {
  padding: 40px 20px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  max-width: 72rem;
  width: 100%;
  margin: auto
}

/* Desktop nav links */
.nav-link {
  color: rgba(255,255,255,0.9);
  font-size: 14px;
}
.nav-link:hover {
  color: #fff;
}

/* Burger button */
.burger-btn {
  width: 30px;
  height: 22px;
  position: relative;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
}
.burger-btn span {
  display: block;
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 3px;
  transition: all 0.35s ease;
}

/* Burger → Close animation */
.burger-btn.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.burger-btn.active span:nth-child(2) {
  opacity: 0;
}
.burger-btn.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* Mobile Menu Container */
.mobile-menu {
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  transform: translateY(-15px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s ease;
  box-shadow: 0px 9px 4px 0px #0000001A;
  z-index: 99;
}

/* Open state */
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Overlay behind mobile menu */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45); /* dark bluish */
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: -1;
}

/* Overlay visible */
.menu-overlay.show {
  opacity: 1;
  pointer-events: auto;
  z-index: 40;
}




.profile-sheet-panel {
  transform: translateY(110%);
  transition: transform 0.28s ease;
}

#profileSheet.show .profile-sheet-panel {
  transform: translateY(0);
}

/* Desktop dropdown open state helper */
.profile-dropdown-open {
  opacity: 1 !important;
  transform: scale(1) !important;
  pointer-events: auto !important;
}


.package_container{
  border: 1px solid var(--neutral-200, #C1C1C3);
  box-shadow: 0px 4px 10px 0px #0608101A;
  background: white;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 20px;
  width: 100%;
  position: relative;
}

.package_container.selected {
  box-shadow: 0 0 0 3px rgba(108, 97, 236, 0.22), 0 10px 30px rgba(0,0,0,0.06);
}

.package_container.selected::before {
  content: "";
  position: absolute;
  inset: -5px; /* border thickness */
  border-radius: 14px; /* radius + border */
  background: linear-gradient(90deg, #6C61EC 0%, #F896D8 100%);
  z-index: -1;
}


#profileOverlay{
  opacity: 0
}

@media (max-width:768px) {
  #profileOverlay{
    opacity: 1;
  }
  .intlOverlay.menu-overlay.active{
    opacity: 1;
    z-index: 1;
  } 
  #summarySheet .intlOverlay.menu-overlay.active{
    opacity: 1;
    z-index: 1;
    top: -50vh;
    left: -1px;
    right: -1px;
  } 
}

.summary-sheet-panel, .promo-sheet-panel {
  transform: translateY(110%);
  transition: transform 0.28s ease;
}

#summarySheet.show .summary-sheet-panel, #promoSheetMobileModal.show .promo-sheet-panel {
  transform: translateY(0);
}

#promoOverlayMobileModal.menu-overlay.show{
  z-index: 81;
}

.input-error {
  border-color: #dc2626 !important;
}

.otp-input {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 1px solid #D0D5DD;
  text-align: center;
  font-size: 16px;
  color: #928FA6;
  outline: none;
}
.otp-input:focus {
  border-color: #94a3b8; /* slate-400 */
  box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.25);
}

@media (max-width:480px) {
  .otp-input{
    width: 48px;
    height: 48px;
    border-radius: 6px;
  }
}

@media (max-width:385px) {
  .otp-input{
    width: 35px;
    height: 35px;
    border-radius: 5px;
  }
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.spinner {
  margin-left: 5px;
  width: 25px;
  height: 25px;
  border: 5px solid #e5e7eb;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: inline-block;
}

.hidden {
  display: none;
}

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

button:disabled,
button.disabled {
  background-color: #d1d5db;
  color: #9ca3af;
  cursor: not-allowed;
  opacity: 0.9;
  box-shadow: none;
  pointer-events: none;
}

/* hover / active 都不生效 */
button:disabled:hover,
button.disabled:hover,
button:disabled:active,
button.disabled:active {
  filter: none;
}

input[type=checkbox]:checked, input[type=radio]:checked, .dark [type=checkbox]:checked, .dark [type=radio]:checked {
  background-color: #6C61EC !important;
  color: #6C61EC !important;
  border-color: #6C61EC !important;
}