* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: sans-serif;
}
body::-webkit-scrollbar {
  display: none;
}
html,
body {
  overflow-x: clip;
  width: 100%;
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: #ffffff;
  border-bottom: 1px solid #e4e4e8;
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  font-weight: 800;
  color: #3d3579;
}

.logo img {
  height: 45px;
  display: block;
  scale: 1.6;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin-bottom: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  color: #8a8aa3;
  transition: color 0.2s ease;
  font-family: sans-serif;
}

.nav-links a.active {
  color: #3d3579;
}

.nav-links a:hover {
  color: #3d3579;
}

.login-btn {
  background: #3d3579;
  color: #ffffff;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.login-btn:hover {
  background: #2c265c;
}

@media (max-width: 700px) {
  .navbar {
    flex-direction: row;
    gap: 16px;
    padding: 16px;
    padding-left: 45px;
    padding-right: 25px;
  }
  .nav-links {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }
}

.hamburger-btn {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: #1f2333;
  cursor: pointer;
  width: 34px;
  height: 34px;
}

/* Backdrop — no more display:none, use visibility+opacity so it can transition */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2000; /* higher than your navbar's z-index */
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.35s ease,
    visibility 0s linear 0.35s;
}

.mobile-menu-overlay.show {
  visibility: visible;
  opacity: 1;
  transition:
    opacity 0.35s ease,
    visibility 0s linear 0s;
}

/* Panel — always rendered, just pushed off-screen */
.mobile-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 65%;
  max-width: 340px;
  background: #ffffff;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  padding: 20px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2001; /* sits above the backdrop too */
}

.mobile-menu-overlay.show .mobile-menu-panel {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}

.mobile-menu-logo {
  height: 60px;
  object-fit: contain;
}

.mobile-menu-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 15px;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-menu-close:hover {
  background: #fff;

  box-shadow: 0 0 10px rgba(37, 37, 37, 0.485);
  transition: 0.3s all ease;
  transform: rotate(90deg);
}
.mobile-menu-links {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.mobile-menu-links li {
  margin-bottom: 12px;
}

.mobile-menu-links a {
  display: block;
  background: #e1e1e142;
  color: #1f2333;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  padding: 14px 16px;
  border-radius: 10px;
}

.mobile-menu-links a.active {
  background: #ece9fb;
  color: #1e00ff;
}

.mobile-menu-socials {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.mobile-menu-socials a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #e1e1e142;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 16px;
}
.mobile-menu-links a:hover {
  box-shadow: 0 0 8px 3px rgb(180 180 180 / 55%);
  transition: 0.3s all ease;
  transform: scale(1.03);
  color: #160787;
}

@media (max-width: 700px) {
  .nav-links,
  .login-btn {
    display: none;
  }
  .hamburger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* ///////////////////////////////////////////////////////////////////// */
.hero_image {
  display: none;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  height: 100%;
  width: 100%;
}

.content-column {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  gap: 11px;
}

@media (max-width: 587px) {
  .content-column {
    margin-top: -17px;
  }
}
.hero_image {
  display: none;

  overflow: hidden;
}

@media (max-width: 987px) {
  .hero_image {
    display: flex;
  }

  .hero_image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
  }
}

/* .main-panel no longer needs margin tricks for the hero image */
.main-panel {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
}

.main-panel a {
  text-decoration: none;
}
/* /////////////////////////////////////////////////////////// */
.app-shell {
  display: flex;
  gap: 20px;
  padding: 24px;
  align-items: flex-start;
  background-color: #f0f2f5;
  padding-bottom: 105px;
}

/* Sidebar */
.sidebar {
  background: #fff;
  border-radius: 16px;
  padding: 16px 21px;
  width: 260px;
  flex-shrink: 0;
  position: sticky;
  top: 107px;
}

.sidebar .nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 14px;
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 6px;
  border-left: 4px solid transparent;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
  width: 100%;
}

.nav-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

@media (max-width: 700px) {
  .nav-item a {
    flex-direction: column;
    gap: 4px;
  }
}
.sidebar .nav-item:hover {
  scale: 1.04;
  transition: 0.3s all ease;
  box-shadow: 0 0 11px 2px #ebebeb;
}

.sidebar .nav-item.active {
  background: #f1eefb;
  border-left: 4px solid #433e7e;
}

.sidebar .nav-item img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.sidebar .nav-item span {
  font-weight: 700;
  font-size: 15px;
  color: #4b4f5d;
}

.sidebar .nav-item.active span {
  color: #433e7e;
}

/* Main content */
.main-panel {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  flex: 1;
  min-width: 0;
}
.main-panel:hover {
  box-shadow: 0 0 10px 3px #dddcdc;
  transition: 0.3s all ease;
}

.main-panel h2 {
  color: #433e7e;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 23px;
  font-family: sans-serif;
}

.main-panel p.subtitle {
  color: #787878;
  margin-bottom: 28px;
  font-size: 13.5px;
}

.service-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 22px 16px;
  text-align: center;
  position: relative;
  height: 100%;
  cursor: pointer;
  border: 1px solid #eeeeee;
  box-shadow: 0 5px 15px rgb(180, 175, 250);
  transition: 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 0 0 0 rgb(255, 255, 255);
  background: rgb(203 200 255 / 26%);
  transform: translateY(-3px);
}

.service-card img.icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.service-card .card-title {
  font-weight: 700;
  font-size: 15px;
  color: #1f2333;
  margin: 0;
}

.badge-coming-soon {
  position: absolute;
  top: 9%;
  left: 70%;
  transform: translateX(-50%);
  background: #c81e2c;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.badge-offer {
  position: absolute;
  top: 7%;
  left: 80%;
  transform: translateX(-50%);
  background: #3e3a7a;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 3px 8px;
  border-bottom-left-radius: 10px;
  white-space: nowrap;
}

.service-card.disabled {
  cursor: not-allowed;
}

.service-card.disabled:hover {
  box-shadow: 0 5px 15px rgb(180, 175, 250);
  background: rgba(255, 255, 255, 0);
  transform: translateY(0px);
}
.seemore {
  color: #433e7e;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
}
.seemore a {
  text-decoration: none;
  color: #433e7e;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
}

/* Right promo panel */
.promo-panel {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  width: 340px;
  flex-shrink: 0;
  align-self: stretch;
}

.promo-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 1200px) {
  .promo-panel {
    display: none;
  }
}

@media (max-width: 900px) {
  .app-shell {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
  }
  .sidebar .nav-list {
    display: flex;
    overflow-x: auto;
    gap: 8px;
  }
  .sidebar .nav-item {
    flex-direction: column;
    text-align: center;
    min-width: 100px;
  }
}

@media (max-width: 700px) {
  .service-card {
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: 0px 0px 0px rgb(180 175 250 / 0%);
    transition: 0.3s ease;
  }
  .service-card:hover {
    box-shadow: 0px 0px 0px rgb(255 255 255 / 0%);
    background: rgba(255, 255, 255, 0);
    transform: translateY(0px);
  }
  .service-card.disabled:hover {
    box-shadow: 0px 0px 0px rgb(255 255 255 / 0%) !important;
    background: rgba(255, 255, 255, 0) !important;
    transform: translateY(0px) !important;
  }
  .service-card img {
    width: 82px !important;
    height: 70px !important;
    object-fit: contain;
    /* padding: 10px 10px; */
    background: #f0f7ff;
    border-radius: 22px;
  }
  .badge-coming-soon {
    top: 2%;
    left: 54%;
    transform: translateX(-50%);
    background: #c81e2c;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1px;
    padding: 2px 6px;
    border-radius: 6px;
    white-space: nowrap;
  }
  .popular_brand_gifts {
    display: none;
  }
}

/* ----------------------------Footer------------------------------------------------------ */
.site-footer {
  background: #ffffff;
  padding: 56px 0 40px;
}

.footer-heading {
  color: #251b77;
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 22px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 16px;
}

.footer-links a {
  color: #1f2333;
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
}

.app-download-imgs {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.app-download-imgs img.qr-code {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.store-badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.connect-heading {
  color: #251b77;
  font-size: 18px;
  margin: 28px 0 14px;
  font-weight: 400;
}

.app-download-img {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
.playstore {
  height: 60px;
  object-fit: contain;
}
.appstore {
  height: 70px;
  object-fit: contain;
}

.social-icons {
  display: flex;
  gap: 14px;
}

.social-icons a {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;

  color: #070707;
  border-radius: 6px;
  font-size: 18px;
  text-decoration: none;
  transition: 0.4s ease;
}

.social-icons a:hover {
  color: #40368e;
}

.footer-bottom {
  background: #3c3475;
  color: #ffffff;
  padding: 18px 150px;
}

.footer-bottom p {
  margin: 0;
  font-weight: 700;
  font-size: 15px;
}

.payment-icons {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.payment-icon-container {
  background-color: #ffffff;
}
.footer-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 25px;
}

.footer-container {
  margin: 0 auto;
  padding: 0 15px;
}

.payment-icons img {
  height: 38px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 4px;
  padding: 3px 6px;
}

@media (max-width: 767px) {
  .payment-icons {
    justify-content: center;
    margin-top: 14px;
  }
  .footer-bottom .row {
    text-align: center;
  }
  .site-footer {
    display: none;
  }
  .footer-bottom {
    display: none;
  }
  .footer-heading {
    margin-top: 24px;
  }
}

/* ------------------Auth-overlay------------------------------------------- */
/* ===== Auth overlay ===== */
.auth-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 40, 0.35);
  z-index: 2050;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.auth-overlay.show {
  display: flex;
}
.page-content {
  transition: filter 0.3s ease;
}

.blurred {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
}

.auth-modal {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  width: 100%;
  max-width: 940px;
  max-height: 92vh;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  position: relative;
  animation: modalPop 0.5s ease;
}

@keyframes modalPop {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Left form side */
.auth-left {
  flex: 1;
  padding: 40px 44px;
}

.auth-tabs {
  display: flex;
  justify-content: space-around;
  border-bottom: 1px solid #eee;
  margin-bottom: 26px;
}

.auth-tab {
  background: none;
  border: none;
  padding: 0 0 14px;
  font-size: 17px;
  font-weight: 700;
  color: #9aa0ac;
  cursor: pointer;
  position: relative;
}

.auth-tab.active {
  color: #4b3fa7;
}

.auth-tab.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: -59px;
  right: 0;
  height: 3px;
  background: #4b3fa7;
  border-radius: 3px;
  width: 183px;
}

.auth-form h4 {
  font-weight: 600;
  color: #1f2333;
  margin-bottom: 22px;
}

.auth-form label {
  font-weight: 700;
  font-size: 14px;
  color: #1f2333;
  margin-bottom: 8px;
  display: block;
}

.input-group-custom {
  display: flex;
  align-items: center;
  background: #f5f6fa;
  border-radius: 10px;
  padding: 4px 14px;
  margin-bottom: 10px;
  border: 1px solid #eef0f5;
}

.input-group-custom .prefix {
  font-weight: 700;
  color: #1f2333;
  margin-right: 8px;
}

.input-group-custom i {
  color: #9aa0ac;
  margin-right: 10px;
}

.input-group-custom input {
  border: none;
  background: transparent;
  outline: none;
  flex: 1;
  padding: 12px 0;
  font-size: 15px;
}

.forgot-link {
  display: block;
  text-align: right;
  font-size: 14px;
  color: #6b7280;
  text-decoration: none;
  margin-bottom: 22px;
}

.forgot-link:hover {
  color: #4b3fa7;
}

.btn-auth-submit {
  width: 100%;
  background: #3d3579;
  color: #fff;
  border: none;
  padding: 15px;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(61, 53, 121, 0.25);
  transition: background 0.2s ease;
}

.btn-auth-submit:hover {
  background: #2c265c;
}

.switch-auth {
  text-align: center;
  margin-top: 26px;
  font-size: 14px;
  color: #6b7280;
}

.switch-auth a {
  color: #4b3fa7;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

/* Right promo side */
.auth-right {
  flex: 1;
  background: linear-gradient(
    181deg,
    #8c83d0 0%,
    rgb(232 230 241 / 72%) 60%,
    rgba(60, 52, 117, 0.64) 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 36px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.auth-right::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  top: -40px;
  left: -40px;
}
.auth-right::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  bottom: -80px;
  right: -80px;
}
.egpay-logo {
  margin-top: 8px;
}
.auth-right h3 {
  font-size: 28px;
  font-weight: 700;
  color: #1f2333;
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
}

.auth-right p.tagline {
  color: #4a5578;
  margin-top: 6px;
  font-weight: 500;
}

.wallet-float-img {
  width: 310px;

  margin-top: 30px;
  animation: floatWallet 4s ease-in-out infinite;
}

@keyframes floatWallet {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-18px);
  }
}

.close-modal-btn {
  position: absolute;
  top: 12px;
  right: 13px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  border: none;
  font-size: 31px;
  color: #1f2333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  padding-top: 1px;
  transition:
    transform 0.3s ease,
    border 0.3s ease,
    box-shadow 0.3s ease;
  transform: rotate(0deg);
}

.close-modal-btn:hover {
  background: #fff;

  box-shadow: 0 0 10px rgba(37, 37, 37, 0.485);
  transition: 0.3s all ease;
  transform: rotate(90deg);
}

.sparkle:nth-of-type(1) {
  top: 60px;
  left: 30px;
  animation-delay: 0s;
}

.sparkle:nth-of-type(2) {
  top: 40px;
  right: 50px;
  animation-delay: 0.5s;
  font-size: 14px;
}

.sparkle:nth-of-type(3) {
  bottom: 70px;
  left: 20px;
  animation-delay: 1s;
  font-size: 16px;
}
.sparkle:nth-of-type(4) {
  bottom: 50px;
  right: 30px;
  animation-delay: 1.5s;
}

.sparkle {
  position: absolute;
  z-index: 2;
  font-size: 20px;
  animation: sparkleAnim 2s ease-in-out infinite;
}
@keyframes sparkleAnim {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.5);
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 850px) {
  .auth-modal {
    flex-direction: column;
    max-height: 94vh;
    margin: 0 16px;
  }
  .auth-right {
    display: none;
  }

  .wallet-float-img {
    width: 160px;
    margin-top: 16px;
  }
  .auth-left {
    padding: 28px 24px;
  }
}

@media (max-width: 500px) {
  .navbar-custom {
    padding: 14px 18px;
  }
  .navbar-custom .nav-links {
    display: none;
  }
}

/* Extra breakpoint for phones — tightens spacing so nothing overflows */
@media (max-width: 480px) {
  .auth-overlay {
    padding: 10px;
  }

  .auth-modal {
    max-width: 100%;
    width: 100%;
    border-radius: 14px;
    max-height: 96vh;
    margin: 0;
  }

  .auth-left {
    padding: 26px 20px;
  }

  .auth-right {
    padding: 20px;
  }

  .auth-tabs {
    gap: 20px;
  }

  .input-group-custom {
    padding: 4px 10px;
  }

  .input-group-custom input {
    font-size: 14px;
  }

  .btn-auth-submit {
    padding: 13px;
    font-size: 14px;
  }

  .wallet-float-img {
    width: 120px;
    margin-top: 12px;
  }

  .close-modal-btn {
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    font-size: 16px;
  }
}
/* ----------------------------------------------------- */
.mobile-bottom-nav {
  display: none; /* hidden on larger screens */
  position: fixed;
  bottom: -1px;
  left: 0;
  right: 0;
  background: #3d3579;
  z-index: 1000;
  padding: 20px 0 18px;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  color: #c9c5e6;
  flex: 1;
  font-size: 11px;
  font-weight: 600;
}

.bottom-nav-item i {
  font-size: 18px;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
  color: #ffffff;
}

/* Only visible on screens under 700px */
@media (max-width: 700px) {
  .mobile-bottom-nav {
    display: flex;
  }

  /* Prevent page content from being hidden behind the fixed bar */
  body {
    padding-bottom: 62px;
  }
}

/* ------------------------------------------------------ */
@media (max-width: 700px) {
  .app-shell {
    flex-direction: row;
    padding: 8px;
    gap: 8px;
    padding-left: 0px;
    /* removed align-items: stretch */
  }

  .sidebar {
    width: 78px;
    flex-shrink: 0;
    padding: 13px 4px;
    position: sticky;
    top: 75px;
    align-self: flex-start;
    overflow-x: visible;
    height: calc(100vh - 78px - 70px);
    margin-top: -14px;
    border-radius: 0px;
  }

  .sidebar .nav-list {
    display: flex;
    flex-direction: column;
    overflow-x: visible;
    gap: 4px;
    height: 100%;
    justify-content: space-between;
  }

  .sidebar .nav-item {
    flex-direction: column;
    text-align: center;
    min-width: 0;
    padding: 10px 4px;
    gap: 4px;
    border-left: none;
    border-radius: 10px;
  }

  .sidebar .nav-item.active {
    border-left: none;
    background: #f1eefb;
    border-left: 4px solid #433e7e;
  }

  .sidebar .nav-item:hover {
    box-shadow: 0 0 8px 2px #eaeaea;
    transition: 0.1s all ease;
    transform: scale(1.01);
  }

  .sidebar .nav-item img {
    width: 35px;
    height: 35px;
  }

  .sidebar .nav-item span {
    font-size: 10px;
    line-height: 1.2;
  }

  .main-panel {
    padding: 16px;
  }
}
