html {
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;

  font-family: "Segoe UI", Arial, sans-serif;
  background: #8b5e3c;

  overflow-x: hidden;
  overflow-y: auto;

  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: none;
  touch-action: pan-y;

  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: center;
}

/* ================= FORM VISIBILITY ================= */
.form {
  display: none;
  width: 100%;
}

.form.active {
  display: block;
}

/* ================= COMPACT CARD BOX ================= */
.form-box {
  display: grid;
  margin: 0 auto;
  gap: 10px;

  width: 92%;
  max-width: 360px;

  padding: 18px 16px;
  border-radius: 18px;

  background: rgba(139, 94, 60, 0.35);
  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);
}

/* ================= TITLES ================= */
h2 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin: 0;
}

.subtitle {
  font-size: 12px;
  color: #f5e7d0;
  text-align: center;
  margin-bottom: 6px;
}

/* ================= INPUTS ================= */
input {
  height: 42px;
  padding: 0 12px;

  border-radius: 10px;
  font-size: 14px;

  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,215,160,0.5);

  color: #fff;
}

input::placeholder {
  color: rgba(255,255,255,0.7);
}

input:focus {
  outline: none;
  border-color: #e6c27a;
  box-shadow: 0 0 6px rgba(230,194,122,0.5);
}

/* ================= BUTTON ================= */
button {
  height: 44px;
  margin-top: 4px;

  border-radius: 12px;
  border: none;

  background: linear-gradient(135deg, #f0d28a, #c8a165);
  color: #3b2a1a;

  font-size: 14px;
  font-weight: 700;
  cursor: pointer;

  box-shadow:
    0 6px 14px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.5);
}

/* ================= SWITCH ================= */
.switch {
  text-align: center;
  font-size: 11px;
  margin-top: 6px;
  color: #f5e7d0;
}

.switch span {
  color: #f0d28a;
  font-weight: 600;
  cursor: pointer;
}

/* ================= MOBILE FIX ================= */
@media (max-width: 480px) {
  #signupForm .form-box {
    max-height: 75svh;
    overflow-y: auto;
  }
}





/* Top fixed header */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #c8a165;   /* light brown */
  color: #ffffff;
  padding: 14px 16px;
  text-align: center;
  font-weight: 600;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Header title */
.top-header h1 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.5px;
}



/* ================= PROFILE FIXED HEADER (TOP-TOP) ================= */
.profile-header {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  height: 64px;

  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #5a3a1b; /* rich brown */
  color: #ffffff;

  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

/* Header text */
.profile-header h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
}



/* ================= ATM CARD ================= */
.atm-card {
  position: relative; /* for absolute logo */

  background: linear-gradient(135deg, #5a3a1b, #8b5e3c); /* rich brown */
  color: #ffffff;

  width: 100%;
  max-width: 500px;
  height: 220px;

  margin: 20px auto; /* ✅ CENTER horizontally */
  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.45),
    inset 0 1px 0 rgba(255,255,255,0.15);
}

/* ================= ATM LOGO ================= */
.atm-logo {
  position: absolute;
  top: 16px;
  left: 16px;

  width: 48px;
  height: 48px;

  border-radius: 50%;
  object-fit: cover;

  border: 2px solid #f0d28a; /* champagne gold */
  background: #ffffff;
}

/* ================= TEXT ================= */
.atm-text h2 {
  margin: 0 0 6px;
  font-size: 1.4rem;
  font-weight: 700;
  color: #f0d28a; /* champagne gold */
}

.atm-text p {
  margin: 4px 0;
  font-size: 0.95rem;
  color: #ffffff;
}

.balance-amount {
  margin-top: 6px;
  font-size: 2.1rem;
  font-weight: 800;
  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; /* keep centered */
  }

  .atm-logo {
    width: 40px;
    height: 40px;
  }

  .atm-text h2 {
    font-size: 1.2rem;
  }

  .balance-amount {
    font-size: 1.8rem;
  }
}



/* ================= USER SETTINGS HEADER ================= */
.user-settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 40px 10px 15px;
}

.user-settings-header h3 {
  font-size: 1.2em;
  color: #5a3a1b; /* brown */
  font-weight: 700;
  margin: 0;
}

/* ================= BUTTON GRID (4 COLUMNS) ================= */
.user-settings-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* ✅ 4 grid */
  gap: 18px;

  margin: 20px 10px 30px;
  padding: 18px;

  background: #5a3a1b; /* brown box */
  border-radius: 18px;

  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

/* ================= CIRCLE BUTTON ================= */
.user-settings-buttons .button {
  width: 72px;
  height: 72px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  margin: 0 auto;

  background: linear-gradient(135deg, #f0d28a, #c8a165); /* champagne gold */
  color: #ffffff;

  border-radius: 50%;
  cursor: pointer;
  text-align: center;

  box-shadow:
    0 6px 16px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.45);

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover */
.user-settings-buttons .button:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow:
    0 10px 22px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.55);
}

/* ================= ICON ================= */
.user-settings-buttons .icon {
  font-size: 20px;
  margin-bottom: 4px;
  color: #ffffff;
}

/* ================= LABEL ================= */
.user-settings-buttons span {
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
}

/* ================= MOBILE FIX ================= */
@media (max-width: 480px) {
  .user-settings-buttons {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }

  .user-settings-buttons .button {
    width: 64px;
    height: 64px;
  }

  .user-settings-buttons span {
    font-size: 10px;
  }
}


/* Gift Button */
.gift-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* ICON = CIRCLE */
.gift-btn i {
  width: 44px;
  height: 44px;
  min-width: 44px;
  aspect-ratio: 1 / 1;
  background: #f0d28a;        /* champagne gold */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #3b2f2f;
  line-height: 1;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* TEXT OUTSIDE */
.gift-btn span {
  font-size: 0.95rem;
  font-weight: 600;
  color: #3b2f2f;
  white-space: nowrap;
}

/* Hover */
.gift-btn:hover i {
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

/* Click */
.gift-btn:active i {
  transform: scale(0.95);
}


/* ================= 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 (CHAMPAGNE + BROWN) ================= */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 65px;

  /* Champagne gold background */
  background: linear-gradient(135deg, #f0d28a, #c8a165);

  display: flex;
  justify-content: space-around;
  align-items: center;

  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.35);
  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: #5a3a1b; /* brown */
  font-size: 0.85em;
  font-weight: 600;

  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

@media (hover: hover) {
  .bottom-nav .nav-item:hover {
    transform: translateY(-2px) scale(1.05);
    color: #3b2412; /* darker brown */
  }
}

/* ICON */
.bottom-nav .nav-item .nav-icon {
  font-size: 1.5em;
  margin-bottom: 4px;
}

/* ================= ACTIVE STATE ================= */
.bottom-nav .nav-item.active {
  color: #3b2412;
}

.bottom-nav .nav-item.active .nav-icon {
  filter: drop-shadow(0 2px 6px rgba(90, 58, 27, 0.6));
}

/* ================= 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: #8b5e3c;
  color: #ffffff;
}

/* ================= DASHBOARD PAGE ================= */
#dashboard .page {
  flex: 1;
  width: 100%;
  padding: 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: -60px; /* 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: -50px;
  }
}

/* ================= QUICK ACCESS BOX ================= */
#dashboard .quick-access {
  margin-top: -30px;

  width: calc(100% + 40px);
  margin-left: -20px;

  padding: 18px 16px 20px;

  background: #5a3a1b;
  border-radius: 18px 18px 0 0;

  box-shadow:
    0 10px 28px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.08);

  text-align: left;
}

/* ================= TITLE ================= */
#dashboard .quick-access h3 {
  margin: 0 0 14px 4px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
}

/* ================= QUICK BUTTON GRID ================= */
#dashboard .quick-buttons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;

  width: 100%;
  max-width: 360px;
  margin: 0 auto;

  justify-items: center;
}

/* ================= CIRCLE BUTTON ================= */
#dashboard .quick-buttons .button {
  width: 68px;
  height: 68px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  background: linear-gradient(135deg, #f0d28a, #c8a165);

  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  text-align: center;

  cursor: pointer;

  box-shadow:
    0 6px 16px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.5);

  transition: transform 0.2s ease;
}

#dashboard .quick-buttons .button:hover {
  transform: translateY(-2px) scale(1.05);
}

/* ================= ICON ================= */
#dashboard .quick-buttons .icon {
  font-size: 18px;
  margin-bottom: 4px;
  color: #ffffff;
}

/* ================= INTRO SECTION ================= */
#dashboard .intro-section {
  width: calc(100% + 40px);
  margin-left: -20px;
  margin-top: 32px;

  padding: 22px 20px 130px;

  position: relative;
  overflow: hidden;

  background-image: url("photo.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  border-radius: 20px 20px 0 0;

  box-shadow:
    0 10px 24px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.25);
}

/* ================= DARK OVERLAY ================= */
#dashboard .intro-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 20px 20px 0 0;
  z-index: 0;
}

/* ================= TEXT LAYER ================= */
#dashboard .intro-section * {
  position: relative;
  z-index: 1;
}

/* ================= INTRO HEADER ================= */
#dashboard .intro-section h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #f0d28a;
}

/* ================= INTRO PARAGRAPHS ================= */
#dashboard .intro-section p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 12px;
  color: #ffffff;
}


.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;
}


.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  justify-items: center;

  margin-top: -40px;      /* 🔥 FORCE IT UP */
  padding-bottom: 100px;
}


/* ================= PRODUCT CARD (BOX STYLE) ================= */
.product-card {
  background: #5a3a1b; /* burnt brown */
  border-radius: 18px;
  padding: 14px;

  width: 100%;
  max-width: 340px;      /* 🔥 prevents rectangle stretch */
  min-height: 250px;     /* 🔥 box feel */

  display: flex;
  align-items: center;
  gap: 14px;

  box-shadow: 0 8px 22px rgba(0,0,0,0.35);
}



/* ================= IMAGE (FIXED & VISIBLE) ================= */
.product-logo {
  width: 80px;
  height: 80px;
  min-width: 80px;     /* 🔥 important */
  min-height: 80px;    /* 🔥 important */

  border-radius: 14px;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255,255,255,0.08); /* fallback bg */
}

.product-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;      /* 🔥 important */
}


/* ================= INFO ================= */
.product-info {
  flex: 1;
}

/* TITLE */
.product-info h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #f0d28a;
}

/* INFO ROWS */
.info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  font-size: 12.5px;
  margin-bottom: 5px;
  color: #f7e8c8;
}

.info-row span:last-child {
  text-align: right;
  font-weight: 700;
}

/* BUTTON */
.buy-btn {
  margin-top: 6px;
  padding: 6px 12px;

  background: linear-gradient(135deg, #f0d28a, #c8a165);
  color: #5a3a1b;

  border: none;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
}




/* ================= BANK PAGE ================= */
#bankPage {
  padding: 0;
  margin-top: -6px;
}


/* ================= PAGE HEADER ================= */
.page-header {
  position: fixed;        /* stronger than sticky */
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;

  margin: 0;
  padding: 16px 0;

  background: linear-gradient(160deg, #5a3a1b, #8a623a);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

.page-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #f0d28a;
  letter-spacing: 0.4px;
}



/* ================= BANK BOX (3D, NOT EDGE-TO-EDGE) ================= */
.bank-box {
  margin: 14px 16px;              /* space from edges */
  padding: 22px 18px 28px;

  background: linear-gradient(160deg, #5c3a20, #8a623a);
  border-radius: 26px;            /* curved on all sides */

  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.35),
    inset 0 2px 0 rgba(255, 255, 255, 0.18),
    inset 0 -2px 0 rgba(0, 0, 0, 0.25);
}

/* ================= HEADER ================= */
.bank-header h2 {
  margin: 0 0 20px;
  text-align: center;

  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.4px;

  color: #f0d28a;
}

/* ================= 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: #f6e7c8;
}

/* ================= INPUT ================= */
#bankForm input {
  padding: 15px 16px;
  border-radius: 16px;
  border: none;

  font-size: 15px;
  background: #ffffff;
  color: #5c3a20;

  box-shadow:
    0 6px 14px rgba(0, 0, 0, 0.18),
    inset 0 1px 2px rgba(0, 0, 0, 0.08);
}

#bankForm input:focus {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(240, 210, 138, 0.85),
    0 8px 18px rgba(0, 0, 0, 0.25);
}

/* ================= UPDATE BUTTON ================= */
#bankForm button {
  margin-top: 20px;
  padding: 16px;

  border-radius: 50px;
  border: none;

  background: linear-gradient(160deg, #f0d28a, #d6b36a);
  color: #5c3a20;

  font-size: 15px;
  font-weight: 700;
  cursor: pointer;

  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);

  transition: all 0.25s ease;
}

#bankForm button:hover {
  transform: translateY(-3px);
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}



/* 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: 18px 16px;

  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* Main header */
.deposit-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #000000;
  letter-spacing: 0.4px;
}

/* Sub header */
.fund-balance {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #000000;
  text-align: center;
}

/* ============================= */
/* AMOUNT CARD (BROWN CONTAINER) */
/* ============================= */
.amount-card {
  margin: 12px 16px;
  padding: 16px 14px 18px;

  background: linear-gradient(160deg, #5c3a20, #8a623a);
  border-radius: 20px;

  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}



/* ============================= */
/* 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 (SMALL BUTTONS) */
/* ============================= */
.amount-item {
  background: linear-gradient(145deg, #6b4527, #c9a45c); /* brown → champagne */
  color: #ffffff;

  border-radius: 10px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  height: 44px;             /* 👈 small button height */
  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.22);
}

.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 */
/* ============================= */
.custom-amount {
  display: flex;
  justify-content: center;
  margin: 10px 0 8px;
}

.custom-amount input {
  width: 92%;
  padding: 11px 14px;
  font-size: 14px;

  border-radius: 10px;
  border: 1.5px solid #c9a45c;
  outline: none;

  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.08);
}

.custom-amount input:focus {
  border-color: #8a623a;
  box-shadow: 0 0 8px rgba(201, 164, 92, 0.45);
}


/* ============================= */
/* PAY NOW BUTTON */
/* ============================= */
#payNowBtn {
  display: block;
  width: 92%;
  margin: 10px auto 6px;

  padding: 11px;
  background: #5c3a20;
  color: #ffffff;

  font-size: 14px;
  font-weight: 600;

  border: none;
  border-radius: 8px;
  cursor: pointer;

  transition: background 0.2s ease, transform 0.2s ease;
}

#payNowBtn:hover {
  background: #7a4b28;
  transform: translateY(-2px);
}


/* --- Deposit Account Section (champagne gold + brown) --- */
.account-box {
  background: #7a4b28;
  padding: 20px;
  margin: 15px;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(75, 42, 20, 0.15);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.account-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 15px;
  background: #c9a45c; /* light champagne */
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(75, 42, 20, 0.08);
}

.account-item .label {
  font-size: 13px;
  color: #8a6a3d; /* soft brown */
  margin: 0;
}

.account-item .value {
  font-size: 16px;
  font-weight: 600;
  color: #4b2a14; /* deep brown */
  margin: 2px 0 0 0;
}

/* Copy button */
.copy-btn {
  background: linear-gradient(145deg, #d4af37, #b8962e); /* champagne gold */
  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: linear-gradient(145deg, #b8962e, #8a623a); /* gold → brown */
  transform: translateY(-2px);
}


/* Confirm payment button — FULL WIDTH */
#confirmPaidBtn {
  margin: 20px 0;
  width: 100%;
  padding: 14px;
  background: linear-gradient(145deg, #c9a45c, #8a623a); /* champagne → brown */
  color: #ffffff;
  font-weight: 600;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s;
}

#confirmPaidBtn:hover {
  transform: translateY(-2px);
}



* {
  -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: #5c3a20;            /* rich brown */
  border-radius: 18px;            /* smooth curved edges */
  padding: 20px;
  margin: 90px 15px 20px;         /* space from edges + header */
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

/* Form group spacing */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Input headers */
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: #e6c27a;                 /* champagne gold text */
}

/* Form Inputs */
.payment-details-form input {
  padding: 12px 14px;
  border-radius: 10px;
  border: none;
  outline: none;
  font-size: 15px;
  background: #ffffff;
  color: #4b2a14;                 /* deep brown text */
}

/* Input focus */
.payment-details-form input:focus {
  box-shadow: 0 0 0 2px rgba(201, 164, 92, 0.5);
}

/* Confirm Payment Button */
#confirmPaidBtn {
  margin: 20px 15px;              /* space from edges */
  width: calc(100% - 30px);
  padding: 14px;
  background: linear-gradient(145deg, #c9a45c, #8a623a); /* champagne → brown */
  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);
}




/* Payment Circle Loader */
.payment-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 50px 0;
}

.loader {
  border: 10px solid #f3f3f3;
  border-top: 10px solid #7e3ff2;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  animation: spin 2s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.countdown {
  font-size: 24px;
  font-weight: 600;
  color: #333;
}

/* Payment Result */
.payment-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
}

#resultIcon {
  font-size: 60px;
  margin-bottom: 15px;
}

#resultText {
  font-size: 22px;
  font-weight: 600;
}

/* Payment Instructions */
.payment-instructions {
  margin: 10px 0 20px 0;
  padding-left: 20px;
  color: #555;
  font-size: 14px;
  line-height: 1.5;
}

.payment-instructions li {
  margin-bottom: 5px;
}


.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;
  }
}



/* REAL FIXED TOP HEADER */
#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: linear-gradient(135deg, #5a3a1b, #c8a165); /* champagne gold */
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

/* Title */
#referralPage .deposit-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

/* Subtitle */
#referralPage .deposit-header .instruction {
  font-size: 13px;
  color: #000000;
  margin-top: 4px;
}

/* Invite Box */
.referral-box {
  background: #6b4226; /* brown */
  border-radius: 14px;
  padding: 16px;
  width: 94%;
  max-width: 500px;
  margin: 0 auto;
}

/* Side by Side */
.referral-items {
  display: flex;
  gap: 10px;
}

/* Invite Item */
.referral-item {
  width: 50%;
  background: rgba(255, 255, 255, 0.15);
  padding: 12px;
  border-radius: 12px;
  text-align: center;

  display: flex;
  flex-direction: column;
  gap: 8px;
}

.referral-item .label {
  font-size: 13px;
  color: #fff;
}

.referral-item .value,
.referral-item input {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  word-break: break-word;
}

/* Copy Button */
.copy-btn {
  background: linear-gradient(135deg, #f7e7b4, #d4af37);
  color: #5b3a1e;
  border: none;
  padding: 7px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

/* Level Boxes */
.level-boxes {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 94%;
  max-width: 500px;
  margin: 15px auto;
}

.level-box {
  background: #6b4226;
  color: #fff;
  border-radius: 14px;
  padding: 15px;
  text-align: center;
}

.level-text {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

.view-team-btn {
  background: linear-gradient(135deg, #f7e7b4, #d4af37);
  color: #5b3a1e;
  border: none;
  padding: 9px 14px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
}

#referralPage {
  padding-top: 30px; /* same height as header */
}


/* Hide real link but keep layout height */
.hidden-link {
  position: relative;
  width: 100%;
  min-height: 50px;        /* forces same height */
  display: flex;
  align-items: center;
  justify-content: center;
}

.hidden-link input {
  position: absolute;
  opacity: 0;
  pointer-events: none;   /* prevents focus jump */
}

.fake-text {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  line-height: 1;
}



/* 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;                 /* force right edge */
  width: 100%;

  height: 56px;
  background: linear-gradient(135deg, #5a3a1b, #c8a165); /* champagne gold */

  display: flex;
  align-items: center;
  justify-content: center;

  margin: 0;                /* remove gaps */
  padding: 0;               /* no inner push */
  border-radius: 0;         /* square edges */

  box-sizing: border-box;
  z-index: 1000;
}

/* Header text */
.deposit-header h2 {
  margin: 0;
  padding: 0;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 1px;
}


/* ============================= */
/* MAIN CONTENT CARD */
/* ============================= */
.withdraw-card {
  margin: 76px 15px 20px;   /* space below fixed header */
  background: #5c3a20;      /* brown card */
  border-radius: 20px;
  padding: 18px;

  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}


/* ============================= */
/* CURRENT FUNDS BOX */
/* ============================= */
.withdraw-balance-box {
  background: linear-gradient(135deg, #6b4527, #c9a45c);
  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: #6b4527;
  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.35);
}

/* Champagne 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 #6b4527;
}

.withdraw-bank-box .bank-info span {
  font-size: 0.95em;
}

/* No bank text */
.withdraw-bank-box .no-bank {
  color: #e6c27a; /* champagne gold */
  font-weight: 600;
}


/* ============================= */
/* WITHDRAW FORM */
/* ============================= */
.withdraw-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.withdraw-form input {
  padding: 12px;
  border-radius: 10px;
  border: none;
  outline: none;
}

.withdraw-form button {
  padding: 12px;
  background: linear-gradient(135deg, #c9a45c, #8a623a);
  color: #ffffff;

  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}


/* ============================= */
/* MOBILE */
/* ============================= */
@media (max-width: 480px) {
  .withdraw-card {
    margin-left: 8px;
    margin-right: 8px;
  }
}


/* Record Page Header — FIXED & SQUARE */
#recordPage .deposit-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
 background: linear-gradient(135deg, #5a3a1b, #c8a165); /* champagne gold */
  color: #ffffff;               /* champagne gold */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  z-index: 1000;

  /* 🔒 FORCE SQUARE SHAPE */
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: hidden;
}

/* History title */
#recordPage .deposit-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
}


/* Header subtitle */
#recordPage .deposit-header .instruction {
  font-size: 14px;
  margin: 0;
  color: #ffffff;
  opacity: 0.9;
}

/* REMOVE LOGO IMAGE COMPLETELY */
#recordPage .record-logo {
  display: none;
}

/* Record List */
#recordPage .record-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-bottom: 100px; /* leave space for nav bar */
  margin: 0;
}


/* Record Card */
.record-card {
  background: #5a3a1b;        /* champagne gold */
  color: #ffffff;             /* white text */
  padding: 15px 20px;
  border-radius: 0;           /* square edges */
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  box-sizing: border-box;
}

/* Text */
.record-card p {
  margin: 0;
  font-size: 14px;
  color: #ffffff;
}

.record-card .status {
  font-weight: 600;
  color: #ffffff;
}

.record-card .amount {
  font-weight: bold;
  color: #ffffff;
}

/* Mobile */
@media (max-width: 480px) {
  #recordPage .record-list {
    gap: 0;                   /* cards touch each other */
    padding-bottom: 100px;
  }

  .record-card {
    padding: 12px 10px;
  }
}


.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 (FINAL FIX)
================================ */
#myProductPage {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  height: 100vh;

  background: #9a9a9a;
  z-index: 10001;              /* 🔥 above loader & pages */


  overflow-y: auto;
  padding-top: 70px;
  padding-bottom: 120px;
  box-sizing: border-box;
}

/* ===============================
   FIXED HEADER (BROWN)
================================ */
#myProductPage .product-header {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  height: 70px;

  background: #6b4226;
  color: #ffffff;

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 10002;
}

#myProductPage .product-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

/* ===============================
   PRODUCT HEADER
================================ */
.product-header {
  position: relative;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===============================
   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 GRID (CENTERED)
================================ */
.my-product-grid {
  display: flex;
  justify-content: center;
  padding: 20px;
}

/* ===============================
   ATM PRODUCT CARD
================================ */
.my-product-card {
  width: 100%;
  max-width: 340px;
  min-height: 210px;

  background: linear-gradient(
    145deg,
    #7a4a2b,
    #4e2d1a
  );

  border-radius: 20px;
  padding: 18px;

  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;

  box-shadow:
    0 18px 40px rgba(0,0,0,0.55),
    inset 0 1px 2px rgba(255,255,255,0.18);

  transform: perspective(900px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.my-product-card:hover {
  transform: perspective(900px) translateY(-6px) rotateX(4deg);
  box-shadow:
    0 28px 60px rgba(0,0,0,0.65);
}

/* ===============================
   CARD TITLE
================================ */
.my-product-card .card-title {
  font-size: 1.15em;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #f7e7b4;
}

/* ===============================
   ATM INFO GRID
================================ */
.atm-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.atm-box {
  background: linear-gradient(
    135deg,
    #f7e7b4,
    #d4af37
  );

  border-radius: 10px;
  padding: 8px 10px;

  color: #000;
  display: flex;
  flex-direction: column;
  gap: 2px;

  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.6),
    0 4px 10px rgba(0,0,0,0.25);
}

.atm-box span {
  font-size: 0.65em;
  font-weight: 600;
  opacity: 0.8;
}

.atm-box strong {
  font-size: 0.9em;
  font-weight: 800;
}

/* full-width box */
.atm-wide {
  grid-column: span 2;
}

/* ===============================
   COUNTDOWN & EARNED
================================ */
.my-product-card .countdown {
  margin-top: 6px;
  font-size: 0.9em;
  font-weight: 800;
  color: #ffffff;
}

.my-product-card .total-made {
  font-size: 0.85em;
  font-weight: 700;
  color: #f7e7b4;
}

/* ===============================
   MOBILE REFINEMENT
================================ */
@media (max-width: 480px) {
  .my-product-card {
    padding: 16px;
  }

  .atm-box strong {
    font-size: 0.85em;
  }
}


/* ================= FLOATING TELEGRAM BUTTON (CIRCLE + GLOW) ================= */
.telegram-float {
  position: fixed;
  bottom: 90px;              /* above bottom nav */
  right: 16px;
  z-index: 9999;

  width: 58px;
  height: 58px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(135deg, #f0d28a, #c8a165); /* champagne gold */
  color: #ffffff;

  border-radius: 50%;
  text-decoration: none;

  box-shadow:
    0 0 0 rgba(240, 210, 138, 0.8),
    0 10px 25px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.5);

  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;
}

/* ================= GLOW ANIMATION ================= */
@keyframes telegram-glow {
  0% {
    box-shadow:
      0 0 0 0 rgba(240, 210, 138, 0.6),
      0 10px 25px rgba(0,0,0,0.35),
      inset 0 1px 0 rgba(255,255,255,0.5);
  }

  70% {
    box-shadow:
      0 0 0 16px rgba(240, 210, 138, 0),
      0 10px 25px rgba(0,0,0,0.35),
      inset 0 1px 0 rgba(255,255,255,0.5);
  }

  100% {
    box-shadow:
      0 0 0 0 rgba(240, 210, 138, 0),
      0 10px 25px rgba(0,0,0,0.35),
      inset 0 1px 0 rgba(255,255,255,0.5);
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}


.bottom-nav {
  display: none;
}
