* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px; 
}

body {
  font-family: "Alibaba PuHuiTi", Arial, sans-serif;
  background-color: #000e1f;
  color: #ffffff;
  min-height: 100vh;
  font-size: 1rem;
  background: url("./images/background.jpg") no-repeat;
  background-size: 100% 100%;
}

.navbar {
  background-color: #000e1f;
  height: 5rem; 
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.3);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 120rem; 
  height: 100%;
  margin: 0 auto;
  padding: 0 20rem; 
  background-color: #000e1f;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem; 
}

.logo-icon {
  width: 3.75rem; 
  &.logo-icon2 {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
  }
}

.logo-text {
  font-size: 1rem; 
  font-weight: 700;
  color: #ffffff;
}

.main-title {
  font-size: 2rem; 
  font-weight: 700;
  text-align: center;
}

.coin-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 15.5rem; 
  height: 3.75rem; 
  background-color: #192558;
  border-radius: 0 0 1rem 1rem;
  margin-top: 1.25rem; 
}

.coin-wrapper {
  display: flex;
  align-items: center;
}

.coin-icon {
  width: 6.875rem; 
  height: 2.3125rem; 
  border-radius: 1rem 0 1rem 0;
  margin-right: 0.625rem;
}

.coin-text {
  color: #c8f7ff;
  font-size: 1rem;
  font-weight: 400;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.875rem; 
}

.search-box {
  display: flex;
  align-items: center;
  width: 17.9375rem; 
  height: 2.125rem; 
  background-color: #192134;
  border: 0.0625rem solid rgba(255, 255, 255, 0.5); 
  border-radius: 2.4375rem; 
  padding: 0 0.9375rem; 
}

.search-icon {
  width: 0.75rem; 

  position: relative;
}

.search-box input {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
  margin-left: 0.625rem;
  outline: none;
  width: 100%;
}

.login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 6.25rem;
  height: 2.125rem;
  border-radius: 2.4375rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.login-icon {
  position: absolute;
  width: 100%;
}

.login-btn span {
  color: white;
  font-size: 1rem;
  font-weight: 400;
  position: relative;
  z-index: 2;
  margin-left: 0.625rem;
}

.signup-btn {
  background: linear-gradient(154deg, #00a7d5 0%, #2b54f9 100%);
  color: white;
  border: none;
  border-radius: 0.25rem;
  padding: 0.625rem 1.25rem;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.signup-btn:hover {
  transform: translateY(-0.125rem);
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.2);
}
.main-content {
  display: block;
  /* display: none; */
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 10rem;
}
.container-already-login {
  display: none;
  /* display: flex; */
  flex-direction: column;
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 10rem;
}


.banner {
  margin-top: 4.0625rem; 
  width: 100%;
  position: relative;
  overflow: hidden;
  &.banner2 {
    margin-top: 0;
    margin-bottom: 2rem;
  }
}

.banner-content {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  .topup-container {
    height: 90%;
    position: absolute;
    left: 1rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.8125rem;
    .topup-image {
      height: 90%;
    }
    .topup-info {
      height: 100%;
      margin-top: 1rem;
      align-items: center;
      justify-content: center;
      p {
        display: inline-block;
        margin-top: 0.625rem;
        font-size: 0.8rem; 
        font-weight: 400;
        padding: 0.5rem;
        border-radius: 0.625rem;
        background-color: #1178ff;
      }
    }
  }
}

.banner-image {
  width: 100%;
  object-fit: cover;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.banner-text {
  position: absolute;
  top: 2.875rem; 
  left: 29.3125rem; 
  display: flex;
  gap: 0.8125rem; 
}

.topup-text,
.promo-text,
.rivo-text {
  font-size: 1.5rem; 
  font-weight: 400;
  text-transform: uppercase;
  text-align: center;
}

.topup-text,
.rivo-text {
  color: white;
}

.promo-text {
  background: linear-gradient(119deg, #ffff00 4%, #fff005 42%, #ff9d00 95%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


.hot-section {
  margin-top: 3.75rem; 
}

.hot-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;   
  margin-bottom: 1.875rem; 
}

.section-title {
  font-size: 2rem; 
  font-weight: 700;
}
.hot-content {
  background-color: transparent;
}
.hot-badge {
  position: absolute;
  width: 7.0625rem;
  top: -1.5rem;
  right: -3rem;
  z-index: 2;
}
.agency-name {
  display: block;
  width: 100%;
  text-align: left;
  background-color: #192558;
  border-bottom-left-radius: 0.75rem;
  border-bottom-right-radius: 0.75rem;
  padding: 1rem; 
  transform: translateY(-0.3rem);
}

.agency-card {
  width: 15.5rem;
  position: relative;
  cursor: pointer;
  background-color: transparent;
}

.agency-image {
  
  width: 100%;
}

.agency-info h3 {
  position: absolute;
  top: 13.875rem; 
  left: 5.5625rem; 
  font-size: 1rem;
  font-weight: 400;
  color: #c8f7ff;
}


@media (max-width: 75rem) {
  /* 1200px / 16px = 75rem */
  .nav-container {
    padding: 0 3.125rem; 
  }

  .main-content {
    padding: 0 3.125rem;
  }

  .banner {
    width: 100%;
  }

  .nav-center {
    flex-grow: 1;
    text-align: center;
    margin-right: 7.5rem; 
  }
}

@media (max-width: 62rem) {
  /* 992px */
  html {
    font-size: 14px;
  }

  .nav-container {
    flex-wrap: wrap;
    padding: 0 1.25rem; /* 20px */
  }

  .nav-center {
    order: 3;
    width: 100%;
    margin: 0.625rem 0; /* 10px */
    text-align: center;
  }

  .main-content {
    padding: 0 1.25rem;
  }

  .coin-card {
    margin: 0.625rem auto;
    width: fit-content;
  }
}

@media (max-width: 48rem) {
  /* 768px */
  html {
    font-size: 12px;
  }

  .navbar {
    height: auto;
    padding: 0.625rem 0;
  }

  .nav-container {
    flex-direction: column;
    padding: 0.625rem;
  }

  .logo,
  .nav-right {
    width: 100%;
    justify-content: center;
    margin: 0.625rem 0;
  }

  .nav-center {
    margin: 0.625rem 0;
  }

  .main-content {
    padding: 0 0.625rem;
  }

  .banner {
    margin-top: 1.25rem; /* 20px */
  }

  .hot-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem; /* 20px */
  }
}

/* 注册弹窗样式 */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(0.3125rem);
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

.modal-content {
  background-color: #222222;
  margin: 10% auto;
  padding: 1.5rem;
  border-radius: 0.75rem;
  width: 30.625rem; 
  /* height: 90%; */
  position: relative;
  &.login-content {
    height: auto;
  }
}
.form-container {
  width: 100%;
  /* height: 70%; */
  overflow-y: auto;
}
.close {
  color: #aaa;
  float: right;
  font-size: 1.75rem;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

.close:hover,
.close:focus {
  color: white;
  text-decoration: none;
}

.modal-content h2 {
  color: white;
  font-size: 1rem; 
  text-align: center;
  margin-bottom: 1.5rem;
}
.modal-content p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem; 
  text-align: center;
  margin-bottom: 1.5rem;
}

.required-info {
  color: white;
  font-size: 1.125rem; 
  text-align: center;
  margin-bottom: 2rem;
  opacity: 0.8;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  color: white;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  background-color: #000000;
  border: 0.0625rem solid #313131;
  border-radius: 0.25rem;
  color: white;
  font-size: 1rem;
}

.form-group input:focus {
  outline: none;
  border-color: #4b9fff;
}

.whatsapp-input {
  display: flex;
  align-items: center;
}

.whatsapp-input span {
  background-color: #000000;
  padding: 0.75rem;
  border: 0.0625rem solid #313131;
  border-right: none;
  border-radius: 0.25rem 0 0 0.25rem;
  color: rgba(255, 255, 255, 0.5);
}

.whatsapp-input input {
  border-radius: 0 0.25rem 0.25rem 0;
  margin-left: 0;
}

.form-footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}

.login-link {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
}

.login-link a {
  color: white;
  text-decoration: none;
  margin-left: 0.5rem;
}

.create-account-btn {
  width: 100%;
  background: linear-gradient(154deg, #00a7d5 0%, #2b54f9 100%);
  color: white;
  border: none;
  border-radius: 0.25rem;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.create-account-btn:hover {
  transform: translateY(-0.125rem);
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.2);
}

@media (max-width: 48rem) {
  .modal-content {
    width: 90%;
    margin: 10% auto;
  }

  .form-footer {
    flex-direction: column;
    gap: 1rem;
  }

  .login-link {
    order: 2;
  }

  .create-account-btn {
    order: 1;
    width: 100%;
  }
}

.container-already-login {
  max-width: 85rem;
  margin: 0 auto;
  padding: 2rem;
  color: white;
}

.recharge-header h2 {
  font-size: 2rem;
  text-align: left;
  margin-bottom: 2rem;
  color: white;
}

.recharge-sections {
  display: flex;

  gap: 2rem;
}

.recharge-amount-section,
.user-info-section,
.payment-section {
  /* background-color: #0b1017; */
  /* border: 1px solid #353c45; */
  /* border-radius: 10px; */
  /* padding: 1.5rem; */
}
.user-info-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.topup-form-container,
.payment-section {
  background-color: #0b1017;
  border: 1px solid #353c45;
  border-radius: 10px;
  padding: 1.5rem;
}
.recharge-amount-section {
  height: 34rem;
  overflow-y: auto;
  &::-webkit-scrollbar {
    display: none;
  }
}

.recharge-amount-section h3,
.user-info-section h3,
.payment-section h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: white;
}

.coin-packages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.coin-package {
  width: 13.2rem;
  height: 10rem;
  background-color: #0b1017;
  border: 1px solid #353c45;
  border-radius: 10px;
  padding: 1rem;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.coin-package:hover {
  border-color: #4b9fff;
  transform: translateY(0.125rem);
}

.coin-package.selected {
  border-color: #4b9fff;
  box-shadow: 0 0 0 2px #4b9fff;
}

.coin-package img {
  width: 1.5rem;
  /* height: auto; */
  /* border-radius: 10px; */
}

.coin-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.coin-value {
  font-size: 1.25rem;
  font-weight: bold;
  color: white;
  opacity: 0.8;
}

.bonus {
  font-size: 1rem;
  color: #ffd35b;
  opacity: 0.8;
  margin: 0.5rem 0;
}

.price {
  font-size: 1rem;
  color: white;
  opacity: 0.8;
}

.input-group {
  margin-bottom: 1.5rem;
}

.input-group label {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.input-group input {
  width: 100%;
  padding: 0.75rem;
  background-color: #000000;
  border: 0.0625rem solid #313131;
  border-radius: 0.25rem;
  color: white;
  font-size: 1rem;
}

.input-group input:focus {
  outline: none;
  border-color: #4b9fff;
}

.optional {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

.whatsapp-input-container {
  display: flex;
  align-items: center;
}

.country-code {
  background-color: #000000;
  padding: 0.75rem;
  border: 0.0625rem solid #313131;
  border-right: none;
  border-radius: 0.25rem 0 0 0.25rem;
  color: rgba(255, 255, 255, 0.5);
}

.whatsapp-input-container input {
  border-radius: 0 0.25rem 0.25rem 0;
  margin-left: 0;
}

.payment-methods {
  width: 100%;
  height: 3rem;
  /* background-color: #986526; */
  border: 1px solid #3AA6FF;
  border-radius: 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0 0.75rem;
  justify-content: space-between;
  img{
    height: 1.5rem;
    object-fit: cover;
    border-radius: 2px;
  }
}

.payment-method {
  background-color: #0b1017;
  border: 1px solid #353c45;
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
}

.payment-method img {
  max-width: 100%;
  height: auto;
}

.total-amount {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.total-amount span:first-child {
  font-size: 1.25rem;
  color: white;
}

.amount {
  font-size: 1.5rem;
  color: #86f7ff;
  font-weight: bold;
}

.terms {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  /* text-align: center; */
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.buy-now-btn,
.payment-confirm-btn {
  height: 100%;
  background: linear-gradient(154deg, #00a7d5 0%, #2b54f9 100%);
  color: white;
  border: none;
  border-radius: 0.25rem;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.return-btn {
  background-color: #414551;
  color: white;
  border: none;
  border-radius: 0.25rem;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.buy-now-btn:hover,
.payment-confirm-btn:hover,
.return-btn:hover {
  transform: translateY(-0.125rem);
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.2);
}

/* .coin-package.selected {
  border-color: #4B9FFF;
  box-shadow: 0 0 0 2px #4B9FFF;
} */

.coin-package.active {
  background: url("./images/Group 133@2x.png") no-repeat;
  background-size: 110% 110%;
  background-position: center;
}

.topup-confirm {
  position: relative;
  bottom: -2rem;
  width: 100%;
  /* height: 8rem; */
  left: 50%;
  transform: translateX(-50%);
  /* margin-top: 3rem; */
  background-color: #192b56;
  display: none;
  /* display: flex; */
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: 2% 20%;
  .confirm-container {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    .confirm-text-container {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      justify-content: center;
      gap: 0.5rem;
    }
  }
}
.payment-content {
  margin: 10% auto;
  width: 90%;
  position: relative;
  h2 {
    margin-bottom: 2rem;
  }
  /* top: -30%; */
}
.payment-content .payment-info {
  width: 100%;
  height: 18rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: url("./images/Group 134@2x.png") no-repeat;
  background-size: 100% 100%;
  background-position: center;
  gap: 0rem;
  padding: 2rem;
  box-sizing: border-box;
  .payment-info-avatar {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    img {
      width: 4rem;
      height: 4rem;
      border-radius: 50%;
    }
  }
  .payment-info-label {
    display: inline-block;
    width: 15rem;
    font-size: 1rem;
    color: white;
    font-weight: bold;
  }
}

.return-btn,
.payment-confirm-btn {
  transform: scale(0.8);
}

.form-footer2 {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

@media (min-width: 76rem) {
  .payment-content .payment-info {
    height: 30rem;
    gap: 2rem;
  }
}

@media (max-width: 76rem) {
  .coin-package {
    width: 100%;
  }
  .recharge-sections {
    flex-direction: column;
  }
  .payment-section {
    margin-top: 2rem;
  }

  .coin-packages {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 47rem) {
  .coin-package {
    width: 100%;
  }

  .container-already-login {
    padding: 1rem;
  }
  
  .recharge-sections {
    flex-direction: column;
  }
  .coin-packages {
    grid-template-columns: repeat(2, 1fr);
  }

  .topup-info {
    display: flex;
    flex-direction: row;
    gap: 0.8125rem;
    margin-top: 0 !important;
    p {
      margin-top: 0 !important;
    }
  }
  .recharge-amount-section,
  .user-info-section,
  .payment-section {
    padding: 1rem;
  }
}
