html {
  width: 100%;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100vh;

  font-family: "Segoe UI", Arial, sans-serif;
  background: #ffffff;

  overflow: auto;           /* 🔒 STOP ALL SCROLL */
  position: relative;
}


.page {
  height: 100vh;
  overflow: hidden;
  position: relative;
}

/* ================= AUTH CONTAINER ================= */
.auth-container {
  min-height: 100svh;          /* mobile-safe + desktop-safe */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ================= MOBILE TWEAK ================= */
@media (max-width: 480px) {
  .auth-container {
    padding-bottom: 20px;      /* small breathing room */
  }
}




/* ================= AUTH CONTAINER ================= */
.auth-container {
  min-height: 100svh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 12vh; /* brings form down */
}

/* ================= FORM VISIBILITY ================= */
.form {
  display: none;
  width: 100%;
}

.form.active {
  display: block;
}

/* ================= NEUMORPHIC FORM BOX ================= */
.form-box {
  width: 92%;
  max-width: 380px;
   
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;

  padding: 22px 20px;
  border-radius: 22px;

  background: #f4f6fb;

  box-shadow:
    12px 12px 24px rgba(0, 0, 0, 0.12),
    -12px -12px 24px rgba(255, 255, 255, 0.9);

  border: none;
}

/* ================= TITLES ================= */
h2 {
  margin: 0;
  text-align: center;

  font-size: 20px;
  font-weight: 700;

  color: #4a5cff; /* neumorphic blue */
}

.subtitle {
  text-align: center;
  font-size: 12px;
  color: #7b86ff;
}

/* ================= INPUT GRID ================= */
.form-box .input-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
 

}

/* ================= INPUTS ================= */
input {
  height: 44px;
  padding: 0 14px;

  border-radius: 14px;
  border: none;

  background: #f4f6fb;
  color: #5b6cff;
  font-size: 14px;

  box-shadow:
    inset 6px 6px 12px rgba(0, 0, 0, 0.12),
    inset -6px -6px 12px rgba(255, 255, 255, 0.9);
}

input::placeholder {
  color: #9aa4ff;
}

input:focus {
  outline: none;
  box-shadow:
    inset 4px 4px 8px rgba(0, 0, 0, 0.15),
    inset -4px -4px 8px rgba(255, 255, 255, 0.95);
}

/* ================= BUTTON ================= */
button {
  height: 46px;
  margin-top: 6px;

  border-radius: 16px;
  border: none;

  background: linear-gradient(135deg, #6a5cff, #8f4bff);
  color: #ffffff;

  font-size: 14px;
  font-weight: 700;
  cursor: pointer;

  box-shadow:
    0 10px 22px rgba(106, 92, 255, 0.45),
    inset 0 1px 0 rgba(255,255,255,0.35);

  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button:active {
  transform: scale(0.97);
  box-shadow:
    0 6px 14px rgba(106, 92, 255, 0.35);
}

/* ================= SWITCH ================= */
.switch {
  text-align: center;
  font-size: 11px;
  color: #7b86ff;
}

.switch span {
  color: #6a5cff;
  font-weight: 600;
  cursor: pointer;
}

/* ================= MOBILE ================= */
@media (max-width: 480px) {
  .auth-container {
    padding-top: 10vh;
  }

  .form-box {
    padding: 20px 16px;
  }
}


/* Top fixed header */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;

  background: #6a5cff; /* purple */
  color: #ffffff;

  padding: 8px 16px; /* slimmer height */
  text-align: center;
  font-weight: 600;

  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

/* Header title */
.top-header h1 {
  margin: 0;
  font-size: 15px; /* slimmer text */
  letter-spacing: 0.4px;
}



.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-header h1 {
  font-size: 20px;
  font-weight: 700;
}

.alert-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #7b2cff; /* purple – change if you want */
  color: #fff;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}



/* ================= PROFILE FIXED HEADER (TOP-TOP) ================= */
.profile-header {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  height: 48px; /* slim */

  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #6A0DAD; /* purple */
  color: #ffffff;

  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/* Header text */
.profile-header h1 {
  margin: 0;
  font-size: 15px; /* slimmer text */
  font-weight: 600;
  letter-spacing: 0.4px;
}



/* ================= ATM CARD ================= */
.atm-card {
  position: relative;

  background: #6A0DAD; /* neon purple */


  color: #ffffff;

  width: 100%;
  max-width: 500px;
  height: 220px;

  margin: 20px auto;
  padding: 35px;

  border-radius: 25px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;
  box-sizing: border-box;

  box-shadow:
    0 14px 32px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.2);
}

/* ================= ATM LOGO ================= */
.atm-logo {
  position: absolute;
  top: 16px;
  left: 16px;

  width: 48px;
  height: 48px;

  border-radius: 50%;
  object-fit: cover;

  border: 2px solid rgba(255,255,255,0.9);
  background: #ffffff;
}

/* ================= TEXT ================= */
.atm-text h2 {
  margin: 0 0 6px;
  font-size: 1.4rem;
  font-weight: 600;
  color: #ffffff;
}

.atm-text p {
  margin: 4px 0;
  font-size: 0.95rem;
  color: #ffffff;
}

/* ================= BALANCE ================= */
.balance-amount {
  margin-top: 8px;
  font-size: 2.2rem;
  font-weight: 900; /* bold balance */
  color: #ffffff;
}

/* Prevent overflow */
.atm-text h2,
.atm-text p,
.balance-amount {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ================= MOBILE ================= */
@media (max-width: 480px) {
  .atm-card {
    width: 95%;
    height: 180px;
    padding: 24px;
    margin: 15px auto;
  }

  .atm-logo {
    width: 40px;
    height: 40px;
  }

  .atm-text h2 {
    font-size: 1.2rem;
  }

  .balance-amount {
    font-size: 1.9rem;
  }
}



/* ================= VERTICAL SETTINGS GRID ================= */
.user-settings-buttons.vertical {
  display: flex;
  flex-direction: column;
  gap: 14px;

  margin: 20px 10px 30px;
  padding: 18px;

  background: #ffffff;     /* ✅ white grid */
  border-radius: 18px;

  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* ================= VERTICAL BUTTON ================= */
.settings-item {
  width: 100%;
  padding: 14px 16px;

  display: flex;
  align-items: center;
  gap: 14px;

  background: #ffffff;
  border: 1.5px solid #eee;
  border-radius: 14px;

  cursor: pointer;
  text-align: left;

  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Hover */
.settings-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* Active */
.settings-item:active {
  transform: scale(0.98);
}

/* ================= ICON ================= */
.settings-item i {
  width: 42px;
  height: 42px;
  min-width: 42px;

  border-radius: 50%;
  background: #f0d28a;           /* champagne gold */
  color: #3b2f2f;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 18px;
}

/* ================= TEXT ================= */
.settings-item span {
  font-size: 0.95rem;
  font-weight: 600;
  color: #000000;                /* ✅ black text */
}


.button {
  text-decoration: none;
  color: inherit; /* keeps your button text color */
  display: inline-flex; /* keeps layout nice */
  align-items: center;
  gap: 8px;
}



/* ================= PAGE HEADER (ABSOLUTE TOP) ================= */
.rewards-header {
  position: fixed;          /* LOCKS to screen top */
  top: 0;
  left: 0;

  width: 100%;
  height: 56px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 20px;
  font-weight: 700;

  color: #fff;
   background: linear-gradient(135deg, #5a3a1b, #c8a165); /* rich brown */

  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  z-index: 999;
}


/* ================= CLAIM BOX ================= */
.claim-form {
  display: flex;
  flex-direction: column;
  gap: 14px;

  max-width: 340px;
  margin: 0 auto;

  padding: 24px 20px;
  border-radius: 18px;

  background: rgba(139, 94, 60, 0.35); /* brown glass */
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border: 1px solid rgba(255, 215, 160, 0.45);

  box-shadow:
    0 10px 24px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,215,160,0.35);
}

/* ================= INPUT ================= */
#giftCodeInput {
  height: 44px;
  padding: 0 14px;

  border-radius: 12px;
  border: 1px solid rgba(255,215,160,0.5);

  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 15px;
}

#giftCodeInput::placeholder {
  color: rgba(255,255,255,0.75);
}

#giftCodeInput:focus {
  outline: none;
  border-color: #e6c27a;
  box-shadow: 0 0 8px rgba(230,194,122,0.6);
}

/* ================= CLAIM BUTTON ================= */
#claimGiftBtn {
  height: 46px;

  border: none;
  border-radius: 14px;

  background: linear-gradient(135deg, #f0d28a, #c8a165);
  color: #3b2a1a;

  font-size: 15px;
  font-weight: 700;
  cursor: pointer;

  box-shadow:
    0 6px 16px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.5);

  transition: 0.25s ease;
}

#claimGiftBtn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 10px 26px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.6);
}

/* ================= MESSAGE ================= */
#giftMessage {
  min-height: 18px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #f5e7d0;
}

/* ================= MOBILE ================= */
@media (max-width: 480px) {
  .claim-form {
    padding: 20px 16px;
  }

  .rewards-header {
    font-size: 20px;
  }
}




/* MOBILE RESPONSIVE */
@media (max-width: 480px) {
  .user-settings-buttons {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .user-settings-buttons .button {
    padding: 12px;
  }
  .user-settings-header h3 {
    font-size: 1em;
  }
}

/* ================= ABOUT SECTION (IMAGE) ================= */
.about-section {
  width: 100%;
  max-width: 500px;
  margin: 30px auto 40px;

  border-radius: 18px;
  overflow: hidden;

  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}

/* Image */
.about-section img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}


/* ================= BOTTOM NAV (WHITE + BLACK) ================= */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 65px;

  background: #ffffff;                 /* white */

  display: flex;
  justify-content: space-around;
  align-items: center;

  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 9999;

  border-top-left-radius: 18px;
  border-top-right-radius: 18px;

  transform: translateZ(0);
  backface-visibility: hidden;
}

/* ================= NAV ITEMS ================= */
.bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;

  color: #9e9e9e;                      /* ash text */
  font-size: 0.85em;
  font-weight: 600;

  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

/* HOVER (DESKTOP ONLY) */
@media (hover: hover) {
  .bottom-nav .nav-item:hover {
    transform: translateY(-2px) scale(1.05);
    color: #6f6f6f;                    /* darker ash */
  }
}

/* ================= ICON ================= */
.bottom-nav .nav-item .nav-icon {
  font-size: 1.5em;
  margin-bottom: 4px;
  color: #000000;                     /* black icon */
}

/* ================= ACTIVE STATE ================= */
.bottom-nav .nav-item.active {
  color: #000000;                     /* active text black */
}

.bottom-nav .nav-item.active .nav-icon {
  color: #000000;                     /* active icon black */
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

/* ================= MOBILE ================= */
@media (max-width: 480px) {
  .bottom-nav {
    height: 60px;
  }

  .bottom-nav .nav-item .nav-icon {
    font-size: 1.35em;
  }

  .bottom-nav .nav-item {
    font-size: 0.75em;
  }
}


/* ================= DASHBOARD ================= */
#dashboard {
  display: none;
  flex-direction: column;
  justify-content: flex-start;

  width: 100%;
  padding: 0;
  padding-bottom: 80px; /* space for bottom nav */

  overflow-y: auto;
  scroll-behavior: smooth;
  box-sizing: border-box;

  background: #ffffff;
  color: #ffffff;
}

/* ================= DASHBOARD PAGE ================= */
#dashboard .page {
  flex: 1;
  width: 100%;
  padding: 10px 20px 20px;
  margin: 0;
}

/* ================= FULL-WIDTH TOP IMAGE ================= */
#dashboard .home-image {
  width: calc(100% + 40px); /* cancel page padding */
  margin-left: -20px;

  margin-top: 0;
  position: relative;
  top: -40px; /* pull up under header */

  overflow: hidden;
}

#dashboard .home-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 0;
}

/* ================= MOBILE ================= */
@media (max-width: 480px) {
  #dashboard .home-image {
    top: -32px;
  }
}




/* ================= QUICK ACCESS (NO BOX) ================= */
#dashboard .quick-access {
  margin-top: -70px;     /* push closer to flyer */
  padding: 0;
  background: none;
}

/* ================= GRID ================= */
#dashboard .quick-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: 100%;
}

/* ================= BIG SQUARE BUTTON ================= */
#dashboard .quick-buttons .button {
  width: 100%;
  aspect-ratio: 1 / 1;      /* perfect square */

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;

  border-radius: 18px;      /* smooth curved edge */
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;

  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
  transition: transform 0.15s ease;
}

/* ================= ICON ================= */
#dashboard .quick-buttons .button .icon {
  font-size: 28px;
  color: #ffffff;
}

/* ================= SOLID COLORS (NO MIX) ================= */

/* 🔴 Withdraw */
#dashboard .quick-buttons .button.withdraw {
  background: #e53935;     /* red */
}

/* 🎁 Rewards Button */
#dashboard .quick-buttons .button.reward {
  background: linear-gradient(135deg, #6a0dad, #8f3cff);
}


/* 🟢 Deposit */
#dashboard .quick-buttons .button.deposit {
  background: #43a047;     /* green */
}

/* ================= TAP FEEDBACK ================= */
#dashboard .quick-buttons .button:active {
  transform: scale(0.94);
}

/* ================= MOBILE ================= */
@media (max-width: 480px) {
  #dashboard .quick-buttons {
    gap: 12px;
  }

  #dashboard .quick-buttons .button {
    font-size: 13px;
  }

  #dashboard .quick-buttons .button .icon {
    font-size: 26px;
  }
}



/* ================= INVITE ROW ================= */
.invite-row {
  display: flex;
  align-items: stretch;      /* 🔑 force same height */
  gap: 14px;
  margin-top: 14px;
}

/* ================= PURPLE INVITE CARD ================= */
.invite-card {
  flex: 1;                   /* fill remaining space */

  display: flex;
  align-items: center;
  gap: 14px;

  padding: 14px 18px;
  border-radius: 14px;

  background: linear-gradient(135deg, #6a0dad, #8f3cff);
  color: #ffffff;

  box-shadow: 0 6px 18px rgba(128, 0, 255, 0.35);
}

/* Icon box */
.invite-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);

  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* Text area */
.invite-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.invite-text .small-text {
  font-size: 12px;
  opacity: 0.85;
}

.invite-text .ref-code {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
}

/* ================= YELLOW INVITE BADGE ================= */
.invite-badge {
  max-width: 120px;
  width: 100%;
  aspect-ratio: 1 / 1;       /* 🔑 square defines height */

  border-radius: 18px;
  background: linear-gradient(135deg, #ffcc00, #ffb300);
  color: #000;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;

  font-weight: 800;
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);

  margin-left: auto;         /* push to right */
}

.invite-badge i {
  font-size: 28px;
}

.invite-badge span {
  font-size: 14px;
}





/* ================= HOME PRODUCTS ================= */
.home-products {
  margin-top: 18px;
  padding: 0;
}

/* ================= SECTION HEADER ================= */
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 16px;
}

/* Purple vertical line */
.section-header .line {
  width: 4px;
  height: 28px;
  background: #7b2cff; /* purple */
  border-radius: 4px;
}

/* Title */
.section-header h2 {
  font-size: 18px;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0;
}


/* ================= PRODUCT GRID ================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  width: 100%;
}

/* ================= PRODUCT CARD ================= */
.product-card {
  background: #ffffff;
  color: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* ================= LOGO ================= */
.product-logo img {
  width: 100%;
  height: 110px;
  object-fit: cover;
}

/* ================= INFO ================= */
.product-info {
  padding: 12px;
}

.product-info h3 {
  font-size: 14px;
  margin-bottom: 8px;
}

/* ================= INFO ROW ================= */
.info-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 4px;
}

/* ================= BUY BUTTON ================= */
.buy-btn {
  margin-top: 8px;
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: none;
  background: #6A0DAD;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 480px) {
  .section-header {
    margin: 20px 0 14px;
  }

  .section-header h2 {
    font-size: 16px;
  }
}


.page#productPage,
.page#myProductPage {
  padding-top: 70px;        /* header height + space */
  overflow-y: auto;
  scroll-behavior: smooth;
  padding-bottom: 100px;    /* space for bottom nav */
}



/* ================= FIXED STORE HEADER ================= */
.store-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;

  background: linear-gradient(135deg, #5a3a1b, #c8a165); /* champagne gold */

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 1000;
  box-shadow: 0 3px 12px rgba(0,0,0,0.25);
}

/* ================= STORE PAGE OFFSET ================= */
.page#productPage {
  padding-top: 70px;        /* space for fixed header */
  overflow-y: auto;
  scroll-behavior: smooth;
  padding-bottom: 20px;     /* space so bottom nav doesn’t block */
}

/* ================= STORE HEADER TEXT ================= */
.store-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

/* ================= OPTIONAL ICON ================= */
.store-header-icon {
  display: none;
}



/* ================= BANK PAGE ================= */
#bankPage {
  padding: 0;
  margin-top: -6px;
  height: 100vh;
  overflow: hidden;
}

/* ================= PAGE HEADER ================= */
.page-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;

  margin: 0;
  padding: 8px 0;

  background: #6A0DAD;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.page-header h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.3px;
}

/* ================= BANK BOX (NEUMORPHIC WHITE) ================= */
.bank-box {
  margin: 16px;
  padding: 26px 20px 30px;

  background: #f4f6fb;
  border-radius: 28px;

  box-shadow:
    14px 14px 28px rgba(0, 0, 0, 0.12),
    -14px -14px 28px rgba(255, 255, 255, 0.95);
}

/* ================= HEADER ================= */
.bank-header h2 {
  margin: 0 0 22px;
  text-align: center;

  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.4px;

  color: #6A0DAD;
}

/* ================= FORM ================= */
#bankForm {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ================= FORM GROUP ================= */
#bankForm .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ================= LABEL ================= */
#bankForm label {
  font-size: 13px;
  font-weight: 600;
  color: #6A0DAD;
}

/* ================= INPUT (NEUMORPHIC) ================= */
#bankForm input {
  padding: 15px 16px;
  border-radius: 16px;
  border: none;

  font-size: 15px;
  background: #f4f6fb;
  color: #6A0DAD;

  box-shadow:
    inset 6px 6px 12px rgba(0, 0, 0, 0.12),
    inset -6px -4px 12px rgba(255, 255, 255, 0.95);
}

#bankForm input::placeholder {
  color: rgba(106, 13, 173, 0.45);
}

#bankForm input:focus {
  outline: none;
  box-shadow:
    inset 4px 4px 8px rgba(0, 0, 0, 0.15),
    inset -4px -4px 8px rgba(255, 255, 255, 0.98);
}

/* ================= UPDATE BUTTON ================= */
#bankForm button {
  margin-top: 22px;
  padding: 16px;

  border-radius: 50px;
  border: none;

  background: #6A0DAD;
  color: #ffffff;

  font-size: 15px;
  font-weight: 700;
  cursor: pointer;

  box-shadow:
    0 10px 22px rgba(106, 13, 173, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#bankForm button:active {
  transform: scale(0.97);
  box-shadow:
    0 6px 14px rgba(106, 13, 173, 0.35);
}

/* ================= BODY LOCK ================= */
body.bank-locked {
  overflow: hidden;
}



/* Fullscreen overlay */
.page-loading {
  position: fixed;
  top:0;
  left:0;
  width:100vw;
  height:100vh;
  background: rgba(0,0,0,0.25);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Spinner (4 rolling dots) */
.spinner {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}

.spinner div {
  position: absolute;
  width: 16px;
  height: 16px;
  background: #ffffff; /* purple */
  border-radius: 50%;
  animation: spinner 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.spinner div:nth-child(1) { left: 8px; animation-delay: 0s; }
.spinner div:nth-child(2) { left: 8px; animation-delay: -0.4s; }
.spinner div:nth-child(3) { left: 32px; animation-delay: -0.8s; }
.spinner div:nth-child(4) { left: 56px; animation-delay: -1.2s; }

@keyframes spinner {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}


/* Rolling loader overlay */
.rolling-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

/* Spinner */
.rolling-loader::after {
  content: "";
  width: 60px;
  height: 60px;
  border: 6px solid #ededed;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* ---------------------------- */
/*       Deposit Header         */
/* ---------------------------- */
.deposit-header {
  display: flex;
  flex-direction: column;
  align-items: center;

  margin: 12px 20px 10px;
  padding: 10px 16px; /* slimmer */

  background: #6A0DAD; /* locked purple */
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Main header */
.deposit-header h2 {
  margin: 0;
  font-size: 16px; /* slimmer text */
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.3px;
}

/* Sub header */
.fund-balance {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  text-align: center;
}


/* ============================= */
/* AMOUNT CARD (PURPLE CONTAINER) */
/* ============================= */
.amount-card {
  margin: 12px 16px;
  padding: 16px 14px 18px;

  background: #ffffff; /* locked purple */
  border-radius: 20px;

  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}




/* ============================= */
/* AMOUNT GRID (COMPACT) */
/* ============================= */
.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;                 /* tighter spacing */
  margin: 6px 16px 10px;    /* pulled up */
}

/* ============================= */
/* AMOUNT ITEMS (PURPLE BUTTONS) */
/* ============================= */
.amount-item {
  background: #6A0DAD; /* locked purple */
  color: #ffffff;

  border-radius: 10px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  height: 44px;
  font-weight: 600;
  font-size: 13px;

  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.amount-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
}

/* Icon */
.amount-item i {
  font-size: 16px;
  margin-right: 6px;
}

/* Text */
.amount-item span {
  font-size: 13px;
}


/* ============================= */
/* CUSTOM AMOUNT INPUT (WHITE) */
/* ============================= */
.custom-amount {
  display: flex;
  justify-content: center;
  margin: 10px 0 8px;
}

.custom-amount input {
  width: 92%;
  padding: 12px 14px;
  font-size: 14px;

  border-radius: 12px;
  border: none;
  outline: none;

  background: #f4f6fb;
  color: #6A0DAD;

  box-shadow:
    inset 5px 5px 10px rgba(0, 0, 0, 0.12),
    inset -5px -5px 10px rgba(255, 255, 255, 0.95);
}

.custom-amount input::placeholder {
  color: rgba(106, 13, 173, 0.45);
}

.custom-amount input:focus {
  box-shadow:
    inset 3px 3px 6px rgba(0, 0, 0, 0.15),
    inset -3px -3px 6px rgba(255, 255, 255, 0.98);
}


/* ============================= */
/* PAY NOW BUTTON */
/* ============================= */
#payNowBtn {
  display: block;
  width: 92%;
  margin: 10px auto 6px;

  padding: 11px;
  background: #6A0DAD; /* locked purple */
  color: #ffffff;

  font-size: 14px;
  font-weight: 600;

  border: none;
  border-radius: 8px;
  cursor: pointer;

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#payNowBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(106, 13, 173, 0.45);
}


/* --- Deposit Account Section (white + light purple) --- */
.account-box {
  background: #ffffff; /* white */
  padding: 20px;
  margin: 15px;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.account-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 15px;
  background: #f3eaff; /* very light purple */
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(106, 13, 173, 0.15);
}

.account-item .label {
  font-size: 13px;
  color: rgba(106, 13, 173, 0.6); /* light purple text */
  margin: 0;
}

.account-item .value {
  font-size: 16px;
  font-weight: 600;
  color: #6A0DAD; /* locked purple */
  margin: 2px 0 0 0;
}

/* Copy button */
.copy-btn {
  background: #000000; /* black */
  color: #ffffff;
  border: none;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.copy-btn:hover {
  background: #111111; /* slightly lighter black */
  transform: translateY(-2px);
}


/* Confirm payment button — FULL WIDTH */
#confirmPaidBtn {
  margin: 20px 0;
  width: 100%;
  padding: 14px;

  background: #6A0DAD; /* locked purple */
  color: #ffffff;

  font-weight: 600;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  font-size: 16px;

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#confirmPaidBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(106, 13, 173, 0.45);
}



* {
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}


/* Add this at the bottom of your CSS */
body.modal-active #mainContent {
  filter: blur(6px);
  pointer-events: none; /* prevent clicks behind modal */
  user-select: none;
  transition: filter 0.25s ease;
}


/* Center Confirm Payment Button */
#openConfirmPaymentBtn {
  display: block;
  margin: 20px auto 0; /* top spacing 20px, auto horizontal centers it */
  padding: 12px 25px;
  background-color: #7e3ff2;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

#openConfirmPaymentBtn:hover {
  background-color: #7e3ff2;
  transform: translateY(-2px);
}

#openConfirmPaymentBtn:active {
  transform: translateY(0);
}


/* Payment Details Form Container */
.payment-details-form {
  background: #ffffff;            /* white */
  border-radius: 18px;
  padding: 20px;
  margin: 90px 15px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

/* Form group spacing */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Input headers */
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: #6A0DAD;                 /* purple */
}

/* Form Inputs */
.payment-details-form input {
  padding: 12px 14px;
  border-radius: 10px;
  border: none;
  outline: none;
  font-size: 15px;
  background: #ffffff;
  color: #000000;                 /* black text */
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.08);
}

/* Input focus */
.payment-details-form input:focus {
  box-shadow: 0 0 0 2px rgba(106, 13, 173, 0.45); /* purple focus */
}

/* Confirm Payment Button */
#confirmPaidBtn {
  margin: 20px 15px;
  width: calc(100% - 30px);
  padding: 14px;

  background: #6A0DAD;            /* purple */
  color: #ffffff;

  border: none;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  transition: all 0.25s ease;
}

#confirmPaidBtn:hover {
  transform: translateY(-2px);
}

#confirmPaidBtn:active {
  transform: translateY(0);
}


/* ================= PAGE WRAPPER ================= */
#paymentProcessingPage {
  min-height: 100vh;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

/* ================= STICKY HEADER ================= */
.deposit-header {
  position: sticky;
  top: 0;
  z-index: 10;

  background: #fff;
  padding: 16px 16px 14px;
  border-bottom: 1px solid #eee;
  text-align: center;
}

.deposit-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: #000;
  margin-bottom: 6px;
}

.deposit-header .instruction {
  font-size: 14px;
  color: #000000;
  margin-bottom: 12px;
}

/* ================= LOADER SECTION ================= */
.payment-circle {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;

  padding-top: 60px;   /* space below header */
}

/* ================= SPINNER ================= */
.loader {
  width: 90px;
  height: 90px;
  border: 8px solid #ececec;
  border-top: 8px solid #7e3ff2;
  border-radius: 50%;
  animation: spin 1.4s linear infinite;
  margin-bottom: 18px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ================= COUNTDOWN ================= */
.countdown {
  font-size: 26px;
  font-weight: 700;
  color: #000;
}

/* ================= INSTRUCTIONS (BELOW LOADER) ================= */
.payment-instructions {
  margin: 40px auto 0;
  padding: 0 20px;
  max-width: 360px;

  list-style: none;
  text-align: left;
}

.payment-instructions li {
  font-size: 14px;
  color: #000;
  font-weight: 600;
  margin-bottom: 10px;
  position: relative;
  padding-left: 16px;
}

.payment-instructions li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #7e3ff2;
  font-size: 18px;
  line-height: 1;
}

/* ================= RESULT SECTION ================= */
.payment-result {
  padding: 40px 20px;
  text-align: center;
}

#resultIcon {
  font-size: 56px;
  margin-bottom: 10px;
}

#resultText {
  font-size: 20px;
  font-weight: 700;
  color: #000;
}

/* ================= MOBILE SMALL SCREENS ================= */
@media (max-width: 360px) {
  .loader {
    width: 80px;
    height: 80px;
  }

  .countdown {
    font-size: 22px;
  }
}




.services-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(135deg, #5a3a1b, #c8a165); /* champagne gold */
  border-bottom: 2px solid #f0d28a; /* champagne gold accent */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.services-header h2 {
  color: #f0d28a;                   /* champagne gold */
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}

/* Push content below fixed header */
#contactPage {
  padding-top: 70px;
}

/* Contact Page Header Block — EDGE TO EDGE */
#contactPage .deposit-header {
  background: #f0d28a;          /* champagne gold */
  padding: 10px 12px;
  margin-top: -20px;            /* push it up */
  margin-left: -16px;           /* touch left edge */
  margin-right: -16px;          /* touch right edge */
  width: calc(100% + 32px);     /* force full width */
  text-align: center;
}

/* Title */
#contactPage .deposit-header h2 {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
}

/* Instruction text */
#contactPage .deposit-header .instruction {
  font-size: 14px;
  color: #ffffff;
  margin-bottom: 0;
}



/* Customer Image */
.contact-content .customer-image {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.contact-content .customer-image img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid #7e3ff2;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Contact Icons */
.contact-icons {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: #7e3ff2;
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}

.contact-icon:hover {
  transform: scale(1.1);
  background: #5b24b0;
}

/* Working Time */
.working-time {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #000;
  margin-bottom: 30px;
}

/* Mobile Responsive */
@media (max-width: 480px) {
  .contact-icons {
    gap: 20px;
  }
  .contact-icon {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
  #contactPage .deposit-header h2 {
    font-size: 18px;
  }
}


/* ============================= */
/* REFERRAL PAGE BACKGROUND */
/* ============================= */
#referralPage {
  min-height: 100vh;

 
  
  padding-top: 70px;   /* space for fixed header */
  box-sizing: border-box;
}

/* ============================= */
/* REAL FIXED TOP HEADER – PURPLE */
/* ============================= */
#referralPage .deposit-header {
  position: fixed;      /* 🔒 locked to screen top */
  top: 0;
  left: 0;
  width: 100%;

  z-index: 9999;

  text-align: center;
  padding: 14px 16px 12px;
  margin: 0;

  background: #6A0DAD;  /* purple */
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* ============================= */
/* TITLE */
/* ============================= */
#referralPage .deposit-header h2 {
  margin: 0;

  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
}

/* ============================= */
/* SUBTITLE */
/* ============================= */
#referralPage .deposit-header .instruction {
  margin-top: 4px;

  font-size: 13px;
  color: #000000;
}


/* ============================= */
/* REFERRAL CONTAINER */
/* ============================= */
.referral-box {
  width: 94%;
  max-width: 500px;
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ============================= */
/* RECTANGLE CARD */
/* ============================= */
.referral-rect {
  background: #000000;
  border-radius: 10px;
  padding: 14px 16px;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Header */
.rect-title {
  margin: 0 0 8px;

  font-size: 13px;
  font-weight: 600;
  color: #000000;
}

/* ============================= */
/* VALUE + COPY ROW */
/* ============================= */
.rect-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Text / Input */
.rect-value {
  flex: 1;

  font-size: 14px;
  font-weight: 600;
  color: #000000;

  background: transparent;
  border: none;
  outline: none;

  word-break: break-all;
}

/* ============================= */
/* COPY BUTTON */
/* ============================= */
.copy-btn {
  background: #1e40ff; /* blue */
  color: #ffffff;

  border: none;
  padding: 6px 14px;
  border-radius: 999px;

  font-size: 13px;
  font-weight: 600;
  cursor: pointer;

  transition: background 0.2s ease;
}

.copy-btn:hover {
  background: #1633cc;
}


/* Invite link should NOT look like a box */
.invite-link {
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;

  padding: 0;
  margin: 0;

  width: 100%;

  font-size: 14px;
  font-weight: 600;
  color: #000000;

  cursor: text;
}

.teams-title {
  text-align: left;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: #111827; /* deep modern dark */
  margin: 10px 0 6px 14px;
  font-family: "Poppins", "Inter", system-ui, sans-serif;
}


/* Invite code text – no box look */
.inviteCode {
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;

  padding: 0;
  margin: 0;

  font-size: 15px;
  font-weight: 700;
  color: #000000;

  letter-spacing: 1px; /* makes code look clean */
}



/* ===============================
   LEVEL BOXES (2 GRID ALWAYS)
=============================== */
.level-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 94%;
  max-width: 500px;
  margin: 15px auto;
}

/* ===============================
   NEUMORPHIC BOX BASE
=============================== */
.level-box {
  color: #fff;
  border-radius: 18px;
  padding: 18px 12px;
  text-align: center;
  box-shadow:
    6px 6px 12px rgba(0,0,0,0.25),
    -6px -6px 12px rgba(255,255,255,0.08);
}

/* ===============================
   INDIVIDUAL BOX COLORS
=============================== */
#level1Box {
  background: linear-gradient(145deg, #c1121f, #e63946); /* RED */
}

#level2Box {
  background: linear-gradient(145deg, #1d4ed8, #3b82f6); /* BLUE */
}

/* ===============================
   TEXT
=============================== */
.level-text {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* ===============================
   VIEW TEAM BUTTON (NEUMORPHIC)
=============================== */
.view-team-btn {
  background: #ffffff;
  color: #000000;
  border: none;
  padding: 9px 14px;
  border-radius: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow:
    inset 3px 3px 6px rgba(0,0,0,0.12),
    inset -3px -3px 6px rgba(255,255,255,0.9);
}

.view-team-btn:active {
  box-shadow:
    inset 1px 1px 3px rgba(0,0,0,0.25),
    inset -1px -1px 3px rgba(255,255,255,0.8);
}

/* ===============================
   PAGE SPACING
=============================== */
#referralPage {
  padding-top: 30px;
}




/* Team Page */
.team-list {
  width: 94%;
  max-width: 500px;
  margin: 10px auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.team-item {
  display: flex;
  justify-content: space-between;
  background: rgba(126, 63, 242, 0.1);
  padding: 10px;
  border-radius: 8px;
  font-family: monospace;
}

/* Mobile responsive */
@media (max-width: 480px) {
  .level-boxes {
    gap: 12px;
  }

  .level-box {
    padding: 12px;
  }

  .team-list {
    gap: 6px;
  }

  .team-item {
    padding: 8px;
  }
}

.back-btn {
  background: transparent;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  position: absolute;
  left: 15px;
  top: 15px;
  color: #000000;
}

.team-list {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 15px;
}

.team-item {
  display: flex;
  justify-content: space-between;
  background: #f0f0f5;
  padding: 12px 15px;
  border-radius: 8px;
  font-size: 14px;
}

@media (max-width: 480px) {
  .team-item {
    font-size: 13px;
    padding: 10px 12px;
  }
}

/* ============================= */
/* TOP PAGE HEADER – EDGE TO EDGE */
/* ============================= */
.deposit-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;

  height: 44px;              /* slimmer */
  background: #6A0DAD;       /* locked purple */

  display: flex;
  align-items: center;
  justify-content: center;

  margin: 0;
  padding: 0;
  border-radius: 0;

  box-sizing: border-box;
  z-index: 1000;
}

/* Header text */
.deposit-header h2 {
  margin: 0;
  padding: 0;

  color: #ffffff;
  font-weight: 600;
  font-size: 15px;           /* slimmer text */
  letter-spacing: 0.6px;
}


/* ============================= */
/* MAIN CONTENT CARD */
/* ============================= */
.withdraw-card {
  margin: 76px 15px 20px;
  background: #ffffff;            /* white card */
  border-radius: 20px;
  padding: 18px;

  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
}


/* ============================= */
/* CURRENT FUNDS BOX */
/* ============================= */
.withdraw-balance-box {
  background: linear-gradient(135deg, #6A0DAD, #8b3dff); /* purple */
  color: #ffffff;

  padding: 14px 16px;
  border-radius: 14px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 16px;
}

.withdraw-balance-box .balance-label {
  font-size: 0.9em;
  opacity: 0.9;
}

.withdraw-balance-box .balance-amount {
  font-size: 1.6em;
  font-weight: 700;
}


/* ============================= */
/* BANK BOX CONTAINER */
/* ============================= */
.withdraw-bank-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}


/* ============================= */
/* BANK CARD */
/* ============================= */
.withdraw-bank-box .bank-info {
  background: #6A0DAD;            /* purple card */
  color: #ffffff;

  border-radius: 14px;
  padding: 14px;

  display: flex;
  flex-direction: column;
  gap: 6px;

  font-weight: 600;
  position: relative;

  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Pointer */
.withdraw-bank-box .bank-info::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 20px;

  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #6A0DAD;
}

.withdraw-bank-box .bank-info span {
  font-size: 0.95em;
}

/* No bank text */
.withdraw-bank-box .no-bank {
  color: #6A0DAD;
  font-weight: 600;
}


/* ============================= */
/* WITHDRAW FORM */
/* ============================= */
.withdraw-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.withdraw-form input {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  outline: none;

  background: #ffffff;
  color: #000000;
}

.withdraw-form input:focus {
  border-color: #6A0DAD;
  box-shadow: 0 0 0 2px rgba(106, 13, 173, 0.15);
}

.withdraw-form button {
  padding: 12px;
  background: #6A0DAD;
  color: #ffffff;

  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.withdraw-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(106, 13, 173, 0.35);
}


/* ============================= */
/* MOBILE */
/* ============================= */
@media (max-width: 480px) {
  .withdraw-card {
    margin-left: 8px;
    margin-right: 8px;
  }
}



/* ============================= */
/* RECORD PAGE – ASH BACKGROUND */
/* ============================= */
#recordPage {
  background: #9a9a9a;      /* ash background */
  min-height: 100vh;
  padding-top: 48px;        /* space for fixed header */
  box-sizing: border-box;
}

/* ============================= */
/* RECORD PAGE HEADER – SLIM PURPLE */
/* ============================= */
#recordPage .deposit-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 48px;

  background: #6A0DAD;
  color: #ffffff;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;
  margin: 0;
  z-index: 1000;

  border-radius: 0;
  box-shadow: none;
}

/* Header title */
#recordPage .deposit-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: #ffffff;
}

/* Optional subtitle (hidden) */
#recordPage .deposit-header .instruction {
  display: none;
}

/* ============================= */
/* REMOVE LOGO */
/* ============================= */
#recordPage .record-logo {
  display: none;
}

/* ============================= */
/* RECORD LIST */
/* ============================= */
#recordPage .record-list {
  display: flex;
  flex-direction: column;
  gap: 15px;

  margin: 0;
  padding: 15px 12px 100px; /* bottom space for nav */
  box-sizing: border-box;
}

/* ============================= */
/* RECORD CARD – WHITE */
/* ============================= */
#recordPage .record-card {
  background: #ffffff;     /* white card */
  color: #000000;

  padding: 15px 20px;
  border-radius: 6px;      /* subtle clean edge */
  box-shadow: none;

  display: flex;
  flex-direction: column;
  gap: 5px;

  width: 100%;
  box-sizing: border-box;
}

/* Card text */
#recordPage .record-card p {
  margin: 0;
  font-size: 14px;
  color: #000000;
}

#recordPage .record-card .status {
  font-weight: 600;
  color: #000000;
}

#recordPage .record-card .amount {
  font-weight: 700;
  color: #000000;
}

/* ============================= */
/* MOBILE */
/* ============================= */
@media (max-width: 480px) {
  #recordPage .record-list {
    gap: 0; /* cards touch */
    padding-bottom: 100px;
  }

  #recordPage .record-card {
    padding: 12px 10px;
    border-radius: 0;
  }
}


.custom-notification {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) scale(0.5);
  display: flex;
  align-items: center;
  padding: 12px 18px;
  border-radius: 50px;
  background: #4caf50; /* green for success */
  color: #fff;
  font-weight: 600;
  gap: 10px;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 9999;
}

.custom-notification.error {
  background: #f44336; /* red for error */
}

.custom-notification .icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.custom-notification.show {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}



/* ===============================
   MY PRODUCTS PAGE (VERTICAL STACK FIX)
================================ */
#myProductPage {
  position: fixed;
  inset: 0;

  width: 100%;
  height: 100vh;

  background: #9a9a9a;
  z-index: 10001;

  overflow-y: auto;
  -webkit-overflow-scrolling: touch;

  padding-top: 70px;     /* header space */
  padding-bottom: 140px; /* last card visibility */
  box-sizing: border-box;
}


/* ===============================
   FIXED HEADER
================================ */
#myProductPage .product-header {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  height: 52px;               /* 👈 slimmer */

  background: #6A0DAD;        /* purple */
  color: #ffffff;             /* white text */

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 10002;
}

#myProductPage .product-header h2 {
  margin: 0;
  font-size: 16px;            /* 👈 slightly smaller for slim header */
  font-weight: 600;
  color: #ffffff;
}


/* ===============================
   BACK BUTTON
================================ */
.back-btn {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);

  background: rgba(0, 0, 0, 0.35);
  border: none;
  border-radius: 8px;

  padding: 6px 12px;
  font-size: 0.85em;
  font-weight: 600;

  color: #fff;
  cursor: pointer;

  display: flex;
  align-items: center;
  gap: 6px;

  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.back-btn:active {
  transform: translateY(-50%) scale(0.95);
}


/* ===============================
   PRODUCTS CONTAINER (VERTICAL)
================================ */
.my-product-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;

  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

/* ===============================
   PRODUCT CARD (NEUMORPHIC)
================================ */
.my-product-card {
  width: 100%;
  max-width: 360px;
  min-height: 220px;

  background: #ffffff;
  border-radius: 26px;
  padding: 20px;

  display: flex;
  flex-direction: column;
  gap: 14px;

  box-shadow:
    12px 12px 25px rgba(0, 0, 0, 0.12),
    -12px -12px 25px rgba(255, 255, 255, 0.9);

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.my-product-card:hover {
  transform: translateY(-4px);
  box-shadow:
    18px 18px 36px rgba(0, 0, 0, 0.15),
    -18px -18px 36px rgba(255, 255, 255, 1);
}

/* ===============================
   CARD TITLE
================================ */
.my-product-card .card-title {
  font-size: 1.1em;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #6b3df4; /* 💜 Purple */
}

/* ===============================
   INFO GRID (PILL STYLE)
================================ */
.atm-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.atm-box {
  background: #f2f2f2; /* ash base */
  border-radius: 999px; /* pill */

  padding: 10px 14px;

  display: flex;
  flex-direction: column;
  gap: 2px;

  /* ✅ KEEP THIS SHADOW */
  box-shadow:
    inset 3px 3px 6px rgba(0, 0, 0, 0.08),
    inset -3px -3px 6px rgba(255, 255, 255, 0.95);
}


.atm-box span {
  font-size: 0.65em;
  font-weight: 600;
  color: #7a6bbd;
}

.atm-box strong {
  font-size: 0.95em;
  font-weight: 800;
  color: #000;
}

.atm-wide {
  grid-column: span 2;
}

/* ===============================
   COUNTDOWN
================================ */
.my-product-card .countdown {
  margin-top: 4px;
  font-size: 0.95em;
  font-weight: 800;
  color: #6b3df4;
  text-align: center;
  letter-spacing: 1px;
}

/* ===============================
   EARNINGS
================================ */
.my-product-card .total-made {
  font-size: 0.85em;
  font-weight: 700;
  text-align: center;
  color: #333;
}

/* ===============================
   MOBILE POLISH
================================ */
@media (max-width: 480px) {
  .my-product-card {
    padding: 18px;
    border-radius: 22px;
  }

  .atm-box strong {
    font-size: 0.9em;
  }
}


/* ================= FLOATING TELEGRAM BUTTON (CIRCLE + GLOW) ================= */
.telegram-float {
  position: fixed;
  bottom: 90px;
  right: 16px;
  z-index: 9999;

  width: 58px;
  height: 58px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #6A0DAD;          /* 🔥 PURPLE */
  color: #ffffff;

  border-radius: 50%;
  text-decoration: none;

  box-shadow:
    0 0 0 rgba(255, 0, 0, 0.8), /* 🔴 red glow base */
    0 10px 25px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.4);

  animation: telegram-glow 1.8s infinite ease-in-out;
  transition: transform 0.2s ease;
}

/* Telegram Icon */
.telegram-float i {
  font-size: 26px;
}

/* Hover / Tap */
.telegram-float:hover {
  transform: scale(1.1);
  animation-play-state: paused;
}

/* ================= RED GLOW ANIMATION ================= */
@keyframes telegram-glow {
  0% {
    box-shadow:
      0 0 0 0 rgba(255, 0, 0, 0.6),
      0 10px 25px rgba(0,0,0,0.35),
      inset 0 1px 0 rgba(255,255,255,0.4);
  }

  70% {
    box-shadow:
      0 0 0 16px rgba(255, 0, 0, 0),
      0 10px 25px rgba(0,0,0,0.35),
      inset 0 1px 0 rgba(255,255,255,0.4);
  }

  100% {
    box-shadow:
      0 0 0 0 rgba(255, 0, 0, 0),
      0 10px 25px rgba(0,0,0,0.35),
      inset 0 1px 0 rgba(255,255,255,0.4);
  }
}




/* Dashboard header layout */
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

/* Glass pill button */
.invest-pill {
  padding: 10px 22px;
  border-radius: 999px;

  background: rgba(255, 254, 254, 0.985);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #6A0DAD;

  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;

  cursor: pointer;

  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.18),     /* outer 3D */
    inset 0 1px 1px rgba(255, 255, 255, 0.9), /* glass shine */
    inset 0 -1px 2px rgba(0, 0, 0, 0.08);

  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Press effect */
.invest-pill:active {
  transform: translateY(1px);
  box-shadow:
    0 6px 14px rgba(0, 0, 0, 0.2),
    inset 0 1px 2px rgba(0, 0, 0, 0.15);
}
