

/* General Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

/* Base body styles */
body {
  background: #f2f2f2; /* light ash */
  color: #000000; /* deep blue text */
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding-top: 20px;
  font-family: 'Poppins', sans-serif;
  transition: background 0.3s, color 0.3s;
}

/* ================= FULL PAGE CONTAINER ================= */
.container {
  width: 100vw;
  height: 100vh;
  padding: 40px 28px;

  position: fixed;
  top: 0;
  left: 0;

  background: #eef0f4; /* soft neomorphic background */
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.container.active {
  display: flex;
}

/* ================= FORM CARD ================= */
.container form {
  width: 100%;
  max-width: 380px;
  padding: 30px 26px;
  border-radius: 22px;

  background: #ffffff;

  box-shadow:
    12px 12px 24px rgba(0, 0, 0, 0.08),
   -12px -12px 24px rgba(255, 255, 255, 0.9);

  display: flex;
  flex-direction: column;
  /* Slightly lift the form */

  transform: translateY(-5px); /* adjust: -12px to -24px */
}



/* ================= LOGO ================= */
.logo {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.logo img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;

  background: #ffffff;
  padding: 6px;

  box-shadow:
    6px 6px 14px rgba(0, 0, 0, 0.12),
   -6px -6px 14px rgba(255, 255, 255, 0.9);
}

/* ================= WELCOME TEXT ================= */
.welcome-text {
  text-align: center;
  margin-bottom: 22px;
}

.welcome-text h2 {
  font-size: 22px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 6px;
}

.welcome-text p {
  font-size: 14px;
  color: #6b7280;
}

/* ================= LABELS ================= */
label {
  margin: 12px 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: #6a0dad; /* purple accent */
}

/* ================= INPUTS (NEOMORPHIC) ================= */
input {
  height: 42px;
  padding: 8px 14px;
  border-radius: 14px;

  background: #f4f6fa;
  color: #000000;
  font-size: 14px;

  border: none;
  outline: none;

  box-shadow:
    inset 4px 4px 8px rgba(0, 0, 0, 0.08),
    inset -4px -4px 8px rgba(255, 255, 255, 0.9);

  transition: box-shadow 0.25s ease;
}

input::placeholder {
  color: #9ca3af;
}

/* Focus = raised */
input:focus {
  box-shadow:
    6px 6px 14px rgba(0, 0, 0, 0.12),
   -6px -6px 14px rgba(255, 255, 255, 0.95);
}

/* ================= PHONE INPUT ================= */
.phone-input {
  display: flex;
}

.phone-input input {
  flex: 1;
}

/* ================= BUTTON (NEOMORPHIC PURPLE) ================= */
button {
  margin-top: 22px;
  height: 44px;

  border-radius: 16px;
  border: none;

  background: linear-gradient(145deg, #7b1fff, #6a0dad);
  color: #ffffff;

  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.4px;
  cursor: pointer;

  box-shadow:
    6px 6px 14px rgba(106, 13, 173, 0.45),
   -4px -4px 10px rgba(255, 255, 255, 0.4);

  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button:active {
  transform: translateY(1px);
  box-shadow:
    inset 4px 4px 10px rgba(0, 0, 0, 0.25),
    inset -4px -4px 10px rgba(255, 255, 255, 0.4);
}

/* ================= TOGGLE TEXT ================= */
.toggle-text {
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
  color: #6a0dad;
}

/* Dashboard container */
.dashboard {
  width: 100%;
  max-width: 400px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  margin: 0;
  box-sizing: border-box;
  background: #f2f2f2;
  color: #000000;
}


/* Dashboard header */
.dashboard-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);

  width: 100%;
  max-width: 600px;

  padding: 12px 20px;
  margin: 0;

  text-align: center;
  font-size: 18px;
  font-weight: bold;
  color: #ffffff;

  background: #000000; /* 🔮 neon purple */
  box-shadow: 0 4px 14px rgba(106, 13, 173, 0.45);

  z-index: 10000;
}


/* Remove extra spacing in dashboard cards if used */
.dashboard-card h2.dashboard-header {
  margin: 0;
}


/* ===============================
   QUICK ACTIONS GRID (WITH BOX)
   =============================== */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  width: 100%;

  margin-top: 24px;
  margin-bottom: 10px;

  padding: 14px 10px;
  background: #f2f2f2;        /* light ash */
  border-radius: 0;
  box-shadow: none;
}

/* ===============================
   BUTTON STYLE (CLEAN)
   =============================== */
.quick-actions-grid .qa-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 0;
  background: transparent;
  border-radius: 0;

  cursor: pointer;
  text-decoration: none;
  color: #ffffff;            /* white text */
  font-weight: 600;
  font-size: 12px;
}

/* ===============================
   ICON STYLE (SMALL CIRCLE)
   =============================== */
.quick-actions-grid .qa-btn i {
  font-size: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 6px;
  background: #6A0DAD;        /* purple */
  color: #ffffff;            /* white icon */
}

/* ===============================
   TEXT STYLE
   =============================== */
.quick-actions-grid .qa-btn span {
  white-space: nowrap;
  color: #000000;            /* white text */
}

/* ===============================
   REMOVE LINK UNDERLINE
   =============================== */
.quick-actions-grid a {
  text-decoration: none;
}


/* Flyer Banner at the top of balance */
.balance-flyer {
  width: 100%;
  margin-bottom: 12px; /* space between flyer and balance bar */
  border-radius: 12px;
  overflow: hidden;    /* rounded corners on image */
}

.balance-flyer img {
  width: 100%;
  height: auto;        /* maintain aspect ratio */
  display: block;
  object-fit: cover;   /* fill width nicely */
}


/* Product Section Wrapper */
.product-section {
  margin-top: 20px;
  padding: 0 10px;
}

/* Products Header */
.products-header {
  margin-bottom: 12px;
  text-align: left;          /* LEFT aligned */
}

/* Header Text */
.products-header h2 {
  font-size: 18px;
  font-weight: bold;
  color: #6A0DAD;   /* purple */
}



.welcome-card {
  background-color: #1E3A8A; /* SONY-style blue */
  color: white;
  border-radius: 12px;       
  padding: 30px;             
  margin: 0;                 /* remove side margins */
  width: 100%;               /* full width of container/screen */
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}


.welcome-content {
  display: flex;
  flex-direction: column;   /* stack vertically */
  align-items: flex-start;  /* all left aligned */
}

.welcome-text {
  font-size: 16px;           
  font-weight: 300;          
  margin: 0;                 
}

.user-number {
  font-size: 20px;           
  font-weight: 700;          
  margin: 4px 0 0 0;         /* small space below header */
  letter-spacing: 1px;
}


/* Full flyer display – tight fit */
.dashboard-logo {
  width: 100%;
  margin: 0;
  padding-bottom: 70px; /* small space for bottom nav */
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

/* Image fills width and flows naturally */
.dashboard-logo img {
  width: 100%;
  height: auto;
  object-fit: unset;
  display: block;
}


/* ===== SLIM BALANCE CARD ===== */
.balance-bar-slim-card {
  width: 100%;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  background: #ad3f3f;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  font-family: Arial, Helvetica, sans-serif;
  margin-bottom: 20px;
}

/* Title (LEFT) */
.balance-title-slim {
  font-size: 18px;
  font-weight: 600;
  color: #000;
}

/* Optional purple accent inside title */
.balance-title-slim span {
  color: #6a0dad;
}

/* Amount (RIGHT) */
.balance-amount-slim {
  margin-left: auto;        /* push to right */
  font-size: 20px;
  font-weight: 700;
  color: #6a0dad;           /* purple amount */
  text-align: right;
}


/* ================= BOTTOM NAV ================= */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #f2f2f2; /* light ash background */
  display: none; /* hidden by default */
  justify-content: space-around;
  align-items: center;
  padding: 8px 0;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

/* ================= NAV ITEMS ================= */
.bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  font-size: 12px;
  color: #6a0dad; /* 💜 purple text */
  transition: color 0.2s ease, transform 0.2s ease;
}

/* ================= ICONS ================= */
.bottom-nav .nav-item svg {
  width: 24px;
  height: 24px;
  margin-bottom: 3px;
  fill: #6a0dad; /* 💜 purple icons */
  transition: fill 0.2s ease;
}

/* ================= HOVER ================= */
.bottom-nav .nav-item:hover {
  color: #5a0bb5;
}

.bottom-nav .nav-item:hover svg {
  fill: #5a0bb5;
}

/* ================= ACTIVE STATE ================= */
.bottom-nav .nav-item.active {
  color: #6a0dad;
  font-weight: 600;
}

.bottom-nav .nav-item.active svg {
  fill: #6a0dad;
}


/* ===== PROFILE FIXED HEADER ===== */
.profile-header-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #000000; /* black background */
  padding: 10px 0;
  text-align: center;
  font-size: 12px;
  color: #ffffff; /* white text */
  font-weight: bold;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* subtle black shadow */
}

.profile-header-bar i {
  margin-right: 8px;
  color: #ffffff; /* white icon */
}

/* Push content down so it doesn’t go under header */
.profile-content {
  padding-top: 60px; /* same as header height */
}

/* ===== PROFILE PAGE ===== */
.profile-page {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  display: none;
  padding: 0 10px 80px 10px;
  height: calc(100vh - 0px);
  overflow-y: auto;
  box-sizing: border-box;
  background: #ffffff; /* white background */
  color: #000000;      /* black text */
}

/* Profile Header Image - ATM card style */
.profile-header {
  width: 100%;
  height: 180px;
  margin-bottom: 20px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,128,0,0.25); /* subtle green shadow */
  background: #ffffff;
}

.profile-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Title */
.profile-title {
  margin: 15px 0;
  font-size: 18px;
  font-weight: bold;
  color: #000000;
  text-align: center;
}


/* ===== SETTINGS BOX (NEUMORPHIC) ===== */
.settings-box {
  background: #f4f4f4;
  border-radius: 18px;
  padding: 16px;
  box-shadow:
    8px 8px 16px rgba(0, 0, 0, 0.08),
    -8px -8px 16px rgba(255, 255, 255, 0.9);
  margin-top: 15px;
}

/* Vertical layout for settings items */
.settings-list-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Each item box */
.settings-item,
.logout-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: 14px;
  font-weight: 600;
  color: #6a0dad;                 /* 💜 purple text */
  background: #f4f4f4;
  cursor: pointer;

  /* Neumorphic raised effect */
  box-shadow:
    6px 6px 12px rgba(0, 0, 0, 0.08),
    -6px -6px 12px rgba(255, 255, 255, 0.85);

  transition: box-shadow 0.2s ease;
}

/* Icon inside each item */
.settings-item i,
.logout-btn i {
  font-size: 20px;
  color: #6a0dad;                 /* 💜 purple icons */
}

/* Optional press effect (tap, not hover) */
.settings-item:active,
.logout-btn:active {
  box-shadow:
    inset 4px 4px 8px rgba(0, 0, 0, 0.1),
    inset -4px -4px 8px rgba(255, 255, 255, 0.9);
}

/* Mobile responsive */
@media (max-width: 450px) {
  .settings-item,
  .logout-btn {
    padding: 12px 12px;
    font-size: 14px;
  }

  .settings-item i,
  .logout-btn i {
    font-size: 18px;
  }
}



/* ================= BANK PAGE (NEUMORPHIC PURPLE & WHITE) ================= */
.bank-page {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 70px 12px 20px;
  display: none;

  background: #f4f5f8; /* soft white */
  color: #000000;

  height: 100vh;
  overflow-y: auto;
  box-sizing: border-box;
}

/* ================= FIXED HEADER ================= */
.bank-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 400px;
  height: 55px;

  display: flex;
  align-items: center;
  gap: 10px;

  background: #e4e3e3;
  z-index: 1000;

  box-shadow:
    4px 4px 10px rgba(0,0,0,0.08),
    -4px -4px 10px rgba(255,255,255,0.9);
}

/* Header Title */
.bank-header h2 {
  flex-grow: 1;
  text-align: center;
  margin: 0;
  font-size: 20px;
  font-weight: bold;
  color: #6A0DAD; /* purple */
}

/* Back Button */
.back-btn {
  background: #f4f5f8;
  border: none;
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 18px;
  color: #6A0DAD;
  cursor: pointer;

  box-shadow:
    3px 3px 6px rgba(0,0,0,0.1),
    -3px -3px 6px rgba(255,255,255,0.9);

  transition: all 0.2s ease;
}

.back-btn:hover {
  box-shadow:
    inset 3px 3px 6px rgba(0,0,0,0.12),
    inset -3px -3px 6px rgba(255,255,255,0.8);
}

/* ================= FORM CARD ================= */
.bank-form {
  background: #f4f5f8;
  padding: 20px;
  border-radius: 18px;

  box-shadow:
    6px 6px 14px rgba(0,0,0,0.12),
    -6px -6px 14px rgba(255,255,255,0.95);

  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Section Headers */
.form-section h3 {
  margin: 0 0 10px;
  font-size: 16px;
  color: #000000;
  font-weight: bold;
}

/* Labels */
label {
  font-size: 14px;
  font-weight: bold;
  color: #000000;   /* black text */
  margin-bottom: 6px;
  display: block;
}


.withdraw-form label,
.bank-form label,
label[for="accountNumber"] {
  color: #6A0DAD !important;  /* neon purple */
}

/* ================= INPUTS ================= */
select,
input {
  width: 100%;
  padding: 14px 14px;
  border-radius: 14px;
  border: none;
  font-size: 15px;

  background: #f4f5f8;
  color: #000000;

  box-shadow:
    inset 4px 4px 8px rgba(0,0,0,0.12),
    inset -4px -4px 8px rgba(255,255,255,0.9);

  outline: none;
}

input::placeholder {
  color: #999999;
}

/* ================= UPDATE BUTTON ================= */
.update-bank-btn {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: bold;

  background: #6A0DAD;
  color: #ffffff;

  border: none;
  border-radius: 18px;
  cursor: pointer;

  box-shadow:
    0 6px 14px rgba(106,13,173,0.4),
    inset 0 0 6px rgba(255,255,255,0.3);

  transition: all 0.25s ease;
}

.update-bank-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 10px 22px rgba(106,13,173,0.5),
    inset 0 0 8px rgba(255,255,255,0.35);
}

/* ================= SUCCESS MESSAGE ================= */
.success-message {
  text-align: center;
  margin-top: 15px;
  font-weight: bold;
  color: #6A0DAD;
  font-size: 15px;
}

/* ================= MOBILE ================= */
@media (max-width: 450px) {
  .bank-header h2 {
    font-size: 18px;
  }

  select,
  input {
    font-size: 14px;
    padding: 13px;
  }

  .update-bank-btn {
    font-size: 15px;
    padding: 14px;
  }
}



/* ===== FIXED RECHARGE HEADER ===== */
.recharge-header-fixed {
  position: fixed;        
  top: 0;
  left: 50%;              
  transform: translateX(-50%);
  width: 100%;
  max-width: 400px;       

  background: #000000;           /* BLACK HEADER */
  z-index: 10000;         
  text-align: center;
  padding: 12px 20px;      

  border-bottom: 1px solid #1f1f1f; /* subtle dark line */
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.recharge-header-fixed .header-icon {
  font-size: 24px;       
  color: #ffffff;        /* WHITE ICON */
}

.recharge-header-fixed h2 {
  margin: 0;
  color: #ffffff;        /* WHITE TEXT */
  font-size: 20px;
  font-weight: 500;      
}


/* ===== PAGE CONTENT (NEUMORPHIC) ===== */
.recharge-page {
  width: 100%;
  max-width: 400px;
  margin: 60px auto 0;
  padding: 18px;

  text-align: center;
  display: none;

  background: #f7f7f7;              /* soft white */
  color: #6A0DAD;                   /* purple text */

  border-radius: 20px;

  /* NEUMORPHIC DEPTH */
  box-shadow:
    10px 10px 24px rgba(0, 0, 0, 0.12),
    -10px -10px 24px rgba(255, 255, 255, 0.95);

  box-sizing: border-box;
}


/* ===== SUBHEADER ===== */
.recharge-subheader {
  font-size: 16px;
  color: #6A0DAD;  /* PURPLE TEXT */
  margin-bottom: 15px;
}


/* ===== AMOUNT GRID (NEUMORPHIC) ===== */
.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

/* ===== AMOUNT OPTION ===== */
.amount-option {
  background: #f7f7f7;                 /* soft white */
  padding: 12px 0;

  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  cursor: pointer;

  color: #6A0DAD;                      /* PURPLE TEXT */

  border: none;

  /* NEUMORPHIC SHADOW */
  box-shadow:
    6px 6px 14px rgba(0, 0, 0, 0.12),
    -6px -6px 14px rgba(255, 255, 255, 0.9);

  transition: all 0.25s ease;
}

/* HOVER */
.amount-option:hover {
  box-shadow:
    4px 4px 10px rgba(0, 0, 0, 0.18),
    -4px -4px 10px rgba(255, 255, 255, 0.9);
}

/* ACTIVE (PRESSED / NEON PURPLE) */
.amount-option.active {
  color: #ffffff;
  background: #6A0DAD;

  box-shadow:
    inset 4px 4px 8px rgba(0, 0, 0, 0.25),
    inset -4px -4px 8px rgba(255, 255, 255, 0.15),
    0 0 14px rgba(106, 13, 173, 0.7);  /* NEON GLOW */
}

/* ===== CUSTOM AMOUNT INPUT (NEUMORPHIC) ===== */
.custom-amount input {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  margin-bottom: 18px;

  border-radius: 16px;
  border: none;

  background: #f7f7f7;
  color: #6A0DAD;
  caret-color: #6A0DAD;

  box-shadow:
    inset 6px 6px 10px rgba(0, 0, 0, 0.12),
    inset -6px -6px 10px rgba(255, 255, 255, 0.9);
}

/* PLACEHOLDER */
.custom-amount input::placeholder {
  color: #9b6bd8;
}

/* ===== DEPOSIT BUTTON (NEON PURPLE) ===== */
.deposit-btn {
  width: 100%;
  padding: 16px;

  background: #6A0DAD;                /* PURPLE */
  color: #ffffff;

  font-weight: bold;
  font-size: 17px;

  border: none;
  border-radius: 18px;
  cursor: pointer;

  box-shadow:
    0 10px 25px rgba(106, 13, 173, 0.6),
    inset 0 2px 0 rgba(255, 255, 255, 0.25);

  transition: all 0.3s ease;
}

/* BUTTON HOVER */
.deposit-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 30px rgba(106, 13, 173, 0.8),
    inset 0 2px 0 rgba(255, 255, 255, 0.3);
}



/* ===== RECHARGE CONFIRMATION PAGE (NEUMORPHIC) ===== */
.recharge-confirmation-page {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 100px 16px 24px;   /* space for header */
  display: none;
  overflow-y: auto;

  text-align: center;

  background: #f7f7f7;        /* soft white */
  color: #6A0DAD;             /* purple text */

  box-sizing: border-box;
}

/* ================= CONFIRMATION HEADER ================= */
.confirmation-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;

  background: #f7f7f7;
  color: #6A0DAD;

  padding: 10px 16px;
  z-index: 10000;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;

  /* neumorphic header */
  box-shadow:
    6px 6px 14px rgba(0, 0, 0, 0.12),
    -6px -6px 14px rgba(255, 255, 255, 0.95);
}

/* Header Title */
.confirmation-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #6A0DAD;
}

/* Selected Amount */
.confirmation-header .selected-amount {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #9b5cff;            /* brighter purple */
}

/* ================= ACCOUNT DETAILS CARD ================= */
.account-details {
  background: #f7f7f7;
  padding: 20px;
  margin-bottom: 28px;

  border-radius: 18px;
  color: #6A0DAD;

  /* neumorphic card */
  box-shadow:
    10px 10px 22px rgba(0, 0, 0, 0.12),
    -10px -10px 22px rgba(255, 255, 255, 0.95);
}

/* ================= DETAIL ROW ================= */
.detail-row {
  position: relative;

  display: flex;
  align-items: center;

  padding: 14px 0;
  font-weight: 600;

  border-bottom: 1px solid rgba(106, 13, 173, 0.15);
}

.detail-row:last-child {
  border-bottom: none;
}

/* ================= COPY BUTTON (NEUMORPHIC) ================= */
.copy-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);

  background: #f7f7f7;
  color: #6A0DAD;

  border: none;
  padding: 6px 10px;
  border-radius: 10px;

  font-weight: 700;
  cursor: pointer;

  box-shadow:
    4px 4px 8px rgba(0, 0, 0, 0.15),
    -4px -4px 8px rgba(255, 255, 255, 0.9);

  transition: all 0.2s ease;
}

.copy-btn:active {
  box-shadow:
    inset 4px 4px 8px rgba(0, 0, 0, 0.2),
    inset -4px -4px 8px rgba(255, 255, 255, 0.8);
}

/* ================= CONFIRM PAYMENT BUTTON ================= */
.confirm-payment-btn {
  width: 100%;
  padding: 16px;

  background: #6A0DAD;
  color: #ffffff;

  font-weight: 700;
  font-size: 17px;

  border: none;
  border-radius: 20px;
  cursor: pointer;

  box-shadow:
    0 10px 25px rgba(106, 13, 173, 0.6),
    inset 0 2px 0 rgba(255, 255, 255, 0.25);

  transition: all 0.3s ease;
}

.confirm-payment-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 30px rgba(106, 13, 173, 0.8),
    inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

/* ================= MOBILE ================= */
@media (max-width: 450px) {
  .recharge-confirmation-page {
    padding: 110px 12px 24px;
  }

  .confirmation-header h2 {
    font-size: 16px;
  }

  .confirmation-header .selected-amount {
    font-size: 15px;
  }

  .detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}



/* ===== RECHARGE / BACK BUTTON ===== */
.recharge-back-btn {
  position: fixed;           /* fixed so it stays at top */
  top: 8px;                  /* slightly below top edge */
  left: 16px;
  z-index: 10001;
  background: #000000;       /* black button */
  color: #ffffff;            /* white text */
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0,0,0,0.25);
  transition: transform 0.2s;
}

/* Hover effect (just lift, no color change) */
.recharge-back-btn:hover {
  transform: translateY(-2px);
}


/* ===== LOGO STYLING FOR RECHARGE & WITHDRAW PAGES ===== */
.recharge-logo img,
.withdraw-logo img,
.confirmation-logo img {
  width: 80px;                /* size */
  height: 80px;               /* size */
  border-radius: 50%;         /* round */
  margin-bottom: 20px;        /* spacing below */
  object-fit: cover;          /* maintain aspect ratio */
  display: block;
  margin-left: auto;
  margin-right: auto;         /* center horizontally */
  border: 2px solid #1e40ff; /* blue border */
  box-shadow: 0 4px 12px rgba(30,64,255,0.25); /* subtle blue glow */
  background: #ffffff;        /* white background behind logo */
}


.payment-form {
  background: #f5f5f5;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.payment-form h3 {
  margin-bottom: 12px;
  color: #1faa59; /* green text */
  font-weight: 600;
}

.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
  color: #1faa59; /* green labels */
}

.form-group input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: #ffffff; /* white input */
  color: #222;
  font-size: 14px;
}

.form-group input::placeholder {
  color: #999;
}

.form-group input:focus {
  outline: none;
  border-color: #1faa59;
  box-shadow: 0 0 0 2px rgba(31, 170, 89, 0.15);
}




/* ================= FULLSCREEN OVERLAY ================= */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 0;
  z-index: 9999;
  backdrop-filter: blur(6px);
  background: rgba(0, 0, 0, 0.5);
}

/* ================= POPUP BOX ================= */
.popup-box {
  width: 90%;
  max-width: 700px;
  min-height: 40vh;              /* tall popup */
  background: rgba(255, 255, 255, 0.95);
  padding: 20px;
  border-radius: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;   /* content starts from top */
  align-items: center;
  animation: popIn 0.3s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3),
              0 0 12px rgba(30,64,255,0.2);
  overflow: hidden;
  text-align: center;
}

/* ================= CLOSE BUTTON ================= */
.popup-close {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 24px;
  cursor: pointer;
  color: #ffffff;
  font-weight: bold;
}

/* ================= IMAGE CONTAINER ================= */
.popup-logo {
  width: 100%;
  flex-grow: 1;                  /* container grows to fill popup height */
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

/* ================= IMAGE ================= */
.popup-logo img {
  width: 100%;
  height: 100%;                  /* fills the container completely */
  object-fit: cover;             /* cover without distortion */
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

/* ================= TELEGRAM BUTTON ================= */
.telegram-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #1e40ff;
  color: #fff;
  padding: 14px 25px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  width: 240px;
  height: 50px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.25),
              0 0 10px rgba(30,64,255,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;               /* prevents shrinking */
  margin-bottom: 10px;
}

/* Icon inside button */
.telegram-btn .tg-icon {
  margin-right: 12px;
  width: 28px;
  height: 28px;
}

/* Hover effect */
.telegram-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.35),
              0 0 15px rgba(30,64,255,0.3);
}

/* ================= ANIMATION ================= */
@keyframes popIn {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* ================= MOBILE ADJUSTMENTS ================= */
@media (max-width: 450px) {
  .popup-box {
    width: 95%;
    max-width: 350px;
    min-height: 55vh;
    padding: 15px;
  }

  .popup-logo {
    margin-bottom: 15px;
  }

  .popup-logo img {
    height: 100%;                /* fill mobile popup height */
  }

  .telegram-btn {
    width: 300px;
    height: 35px;
    font-size: 15px;
    padding: 20px 20px;
  }

  .telegram-btn .tg-icon {
    width: 24px;
    height: 24px;
  }
}



/* ===== PRODUCT PAGE ===== */
.product-page {
  width: 100%;
  padding: 20px;
  padding-bottom: 80px;
  padding-top: 65px; /* space for fixed header */
  background: #ffffff; /* white background */
  min-height: 100vh;
  color: #ffffff;      /* white text */
  display: none;       /* show when active */
}

/* ===== FIXED HEADER ===== */
.product-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #1e40ff; /* blue header */
  padding: 12px 0;
  z-index: 1000;
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  color: #ffffff;      /* white text */
  box-shadow: 0 3px 8px rgba(30, 64, 255, 0.2); /* subtle blue shadow */
}

.product-header i {
  margin-right: 8px;
  color: #ffffff; /* white icon */
}

/* ===============================
   PRODUCT GRID
   =============================== */
.product-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: 20px;
  padding-bottom: 120px;
}

/* ===============================
   PRODUCT CARD
   =============================== */
.product-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  width: 100%;
  background: #ffffff;
  color: #000000;

  padding: 12px;
  border-radius: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);

  position: relative;
  min-height: 220px; /* ensures spacing */
}

/* ===============================
   PRODUCT LOGO (TOP LEFT)
   =============================== */
.product-logo {
  order: 1;                 /* FORCE TOP */
  width: 100%;

  display: flex;
  justify-content: flex-start;  /* LEFT */
  align-items: flex-start;

  margin-bottom: 10px;
}

.product-logo img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 0;
}


/* ===============================
   PRODUCT INFO (MIDDLE)
   =============================== */
.product-info-left {
  order: 2; /* MIDDLE */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.product-info-left h3 {
  font-size: 14px;
  font-weight: bold;
  margin: 0 0 6px 0;
  color: #000000;
}

.info-box {
  font-size: 12px;
  font-weight: 600;
  color: #000000;
  margin: 2px 0;
}

.info-box span {
  color: #6A0DAD; /* purple numbers */
  font-weight: bold;
}

/* ===============================
   BUY BUTTON (BOTTOM)
   =============================== */
.invest-btn {
  order: 3; /* FORCE BOTTOM */
  margin-top: auto;

  width: 100%;
  padding: 8px 0;

  background: #6A0DAD;
  color: #ffffff;

  font-weight: bold;
  font-size: 13px;

  border: none;
  border-radius: 0;
  cursor: pointer;
}

/* ===============================
   PRICE (TOP RIGHT)
   =============================== */
.product-price {
  position: absolute;
  top: 10px;
  right: 10px;

  font-size: 13px;
  font-weight: bold;
  color: #000000;
}

/* ===============================
   MOBILE: 2 GRID
   =============================== */
@media (max-width: 480px) {
  .product-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-card {
    padding: 10px;
    min-height: 200px;
  }

  .product-logo img {
    width: 50px;
    height: 50px;
  }

  .product-info-left h3 {
    font-size: 13px;
  }

  .info-box {
    font-size: 11px;
  }

  .invest-btn {
    font-size: 12px;
    padding: 7px 0;
  }
}



/* ================= INVITE PAGE (NEUMORPHIC) ================= */
.invite-page {
  width: 100%;
  min-height: 100vh;
  background: #f4f6fb; /* soft off-white */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* ================= FIXED HEADER ================= */
.invite-header-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;

  background: linear-gradient(145deg, #e8fff0, #ffffff); /* green → white */
  color: #6A0DAD; /* purple text */

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 14px 0;
  z-index: 1000;

  box-shadow:
    6px 6px 12px rgba(0, 0, 0, 0.08),
   -6px -6px 12px rgba(255, 255, 255, 0.9);
}

/* Header Title */
.invite-header-fixed h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #6A0DAD;
}

/* Back Button */
.invite-back-btn {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);

  background: #f4f6fb;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;

  color: #6A0DAD;
  font-size: 18px;
  cursor: pointer;

  box-shadow:
    inset 2px 2px 4px rgba(255, 255, 255, 0.8),
    inset -2px -2px 4px rgba(0, 0, 0, 0.08);
}

/* ================= CONTENT OFFSET ================= */
.invite-top-boxes,
.level-card {
  margin-top: 80px;
}

/* ================= TOP BOXES ================= */
.invite-top-boxes {
  display: flex;
  gap: 12px;
  padding: 12px;
}

/* ================= INVITE BOX ================= */
.invite-box {
  flex: 1;
  background: #f4f6fb;
  border-radius: 16px;
  padding: 16px;

  display: flex;
  align-items: center;
  gap: 12px;

  min-height: 100px;

  box-shadow:
    8px 8px 16px rgba(0, 0, 0, 0.08),
   -8px -8px 16px rgba(255, 255, 255, 0.95);

  color: #6A0DAD;
}

/* Left (copy btn holder) */
.box-left {
  flex-shrink: 0;
}

/* Content */
.box-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Label */
.box-label {
  font-size: 14px;
  color: #000000; /* black */
  margin-bottom: 6px;
}

/* Value */
.box-value {
  font-size: 18px;
  font-weight: 700;
  color: #6A0DAD; /* purple */
  word-break: break-word;
}

/* ================= COPY BUTTON ================= */
.copy-btn {
  background: #f4f6fb;
  color: #6A0DAD;
  border: none;
  border-radius: 20px;
  padding: 6px 14px;
  font-weight: 700;
  cursor: pointer;

  box-shadow:
    4px 4px 8px rgba(0, 0, 0, 0.1),
   -4px -4px 8px rgba(255, 255, 255, 0.9);

  transition: transform 0.2s;
}

.copy-btn:hover {
  transform: translateY(-1px);
}

/* ================= LEVEL CARD ================= */
.level-card {
  margin: 16px 12px;
  background: #f4f6fb;
  border-radius: 18px;
  padding: 16px;

  display: flex;
  flex-direction: column;
  gap: 12px;

  box-shadow:
    10px 10px 20px rgba(0, 0, 0, 0.08),
   -10px -10px 20px rgba(255, 255, 255, 0.95);
}

/* ================= LEVEL ITEM ================= */
.level-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Level Icon */
.level-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: inset 1px 1px 3px rgba(255,255,255,0.6),
              inset -1px -1px 3px rgba(0,0,0,0.2);
}

.level1 .level-icon { background: #f59e0b; }
.level2 .level-icon { background: #22c55e; }

/* Level Text */
.level-text {
  font-size: 16px;
  font-weight: 700;
  color: #000000;
}

/* ================= MOBILE ================= */
@media (max-width: 480px) {
  .invite-top-boxes {
    flex-direction: column;
  }

  .invite-header-fixed h2 {
    font-size: 18px;
  }
}

#inviteCode,
#inviteCode * {
  color: #000 !important;
  text-shadow: none !important;
  -webkit-text-fill-color: #000 !important;
}



#inviteCode {
  color: #000 !important;
}


/* ================= TEAM PAGE ================= */

/* Team Page Container */
.team-page {
  width: 100%;
  min-height: 100vh;
  background: #f9f9f9; /* light grey background for page */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding: 0 20px; /* add horizontal padding */
  margin: 0;
  box-sizing: border-box;
}

/* Fixed Header */
.team-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #000000; /* black header */
  color: #ffffff;      /* white text */
  text-align: center;
  padding: 15px 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Header Title */
.team-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: bold;
}

/* Back Button in Header */
.team-header .back-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ffffff; /* white button */
  color: #000000;      /* black text */
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 1px 1px 6px rgba(0,0,0,0.2);
  transition: transform 0.2s, background 0.2s;
}

.team-header .back-btn:hover {
  transform: translateY(-2px);
  background: #f0f0f0;
}

/* Spacer below header to prevent content overlap */
.team-page > div[style*="height: 60px"] {
  height: 70px; /* adjust to header height + padding */
}


/* Level Buttons Container (NO BOX) */
#levelButtons {
  display: flex;
  justify-content: space-between;
  margin: 5px auto 20px; /* ⬆️ pushed upward */
  padding: 0;
  background: transparent;
  box-shadow: none;
  max-width: 500px;
  flex-wrap: nowrap;

  will-change: transform;
  transform: translateZ(0);
}

/* Level Buttons – Neumorphic */
.level-btn {
  width: 48%;
  padding: 14px 0;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(106, 13, 173, 0.25);
  border-radius: 14px;
  background: #f2f2f2;
  color: #000;
  text-align: center;

  box-shadow:
    6px 6px 12px rgba(0,0,0,0.15),
   -6px -6px 12px rgba(255,255,255,0.9);

  transition: none; /* ❌ no hover animation */
}

/* Active / Press only (optional, keep tactile feel) */
.level-btn:active {
  box-shadow:
    inset 4px 4px 8px rgba(0,0,0,0.15),
    inset -4px -4px 8px rgba(255,255,255,0.8);
}



/* Team List */
#teamList {
  margin: 20px auto; /* auto margin centers content */
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 500px; /* prevent stretching on large screens */
}

/* ================= TEAM / TRANSACTION CARD ================= */
.team-card {
  width: 100%;
  min-height: 110px;                 /* 👈 KEY: CARD BODY HEIGHT */
  background: #f2f2f2;               /* ASH BACKGROUND */

  padding: 20px 18px;                /* slightly deeper */
  border-radius: 18px;               /* more ATM-like curve */

  display: flex;
  justify-content: space-between;
  align-items: center;

  font-size: 15px;
  font-weight: 500;
  color: #6A0DAD;                    /* PURPLE TEXT */

  /* REAL CARD DEPTH */
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.18),
    0 3px 0 rgba(255, 255, 255, 0.95) inset,
    0 -2px 0 rgba(0, 0, 0, 0.06) inset;

  margin-bottom: 14px;
}

/* ================= LEFT / RIGHT TEXT ================= */
.team-card .left,
.team-card .right {
  display: flex;
  flex-direction: column;
}

/* ================= PRIMARY TEXT ================= */
.team-card .primary-text {
  font-weight: 700;
  font-size: 16px;
  color: #6A0DAD;
}

/* ================= SECONDARY TEXT ================= */
.team-card .secondary-text {
  font-size: 13px;
  color: #8b5fc2;
  margin-top: 6px;
}

/* ================= AMOUNT / STATUS ================= */
.team-card .amount {
  font-weight: 700;
  font-size: 16px;
  color: #6A0DAD;
  text-align: right;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 480px) {
  .team-card {
    min-height: 100px;
    padding: 18px 16px;
    font-size: 14px;
  }

  .team-card .primary-text {
    font-size: 15px;
  }

  .team-card .amount {
    font-size: 15px;
  }
}


/* ================= WITHDRAW PAGE (NEUMORPHIC PURPLE) ================= */

/* Page Container */
.withdraw-page {
  width: 100%;
  height: 100vh;
  background: #f2f3f7; /* soft ash-white */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/* ================= FIXED HEADER ================= */
.withdraw-header-fixed {
  width: 100%;
  background: #f2f3f7;
  color: #6A0DAD; /* purple text */
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  padding: 16px 0;
  z-index: 1000;

  /* neumorphic header */
  box-shadow:
    6px 6px 12px rgba(0,0,0,0.12),
   -6px -6px 12px rgba(255,255,255,0.9);
}

/* Header Title */
.withdraw-header-fixed h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #6A0DAD;
}

/* Back Button */
.withdraw-back-btn {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: #f2f3f7;
  border: none;
  color: #000000;
  font-size: 20px;
  cursor: pointer;
  border-radius: 50%;
  padding: 6px 10px;

  box-shadow:
    inset 2px 2px 5px rgba(0,0,0,0.15),
    inset -2px -2px 5px rgba(255,255,255,0.9);
}

/* ================= BALANCE CARD ================= */
.withdraw-card {
  width: 100%;
  background: #f2f3f7;
  margin-top: 80px; /* push below header */
  padding: 16px;
  border-radius: 16px 16px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;

  box-shadow:
    inset 4px 4px 8px rgba(0,0,0,0.08),
    inset -4px -4px 8px rgba(255,255,255,0.9);
}

/* Balance label */
.withdraw-label {
  font-size: 15px;
  color: #000000;
}

/* Balance amount */
.withdraw-balance {
  font-size: 19px;
  font-weight: 700;
  color: #6A0DAD;
}

/* ================= BANK CARD ================= */
.bank-display-card {
  width: 100%;
  background: #f2f3f7;
  padding: 16px;
  border-radius: 0 0 16px 16px;
  margin-bottom: 12px;

  box-shadow:
    inset 4px 4px 8px rgba(0,0,0,0.08),
    inset -4px -4px 8px rgba(255,255,255,0.9);
}

.bank-name,
.bank-account-number,
.bank-account-name {
  margin: 6px 0;
  font-size: 15px;
  color: #000000;
}

/* ================= WITHDRAW FORM ================= */
.withdraw-form {
  width: 100%;
  padding: 12px 12px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-grow: 1;
}

/* Form Label */
.withdraw-form label {
  align-self: flex-start;
  margin: 6px 0;
  font-weight: 600;
  color: #000000;
}

/* Amount Input */
#withdrawAmountInput {
  width: 100%;
  background: #f2f3f7;
  color: #000000;
  border: none;
  padding: 16px 18px;
  font-size: 16px;
  border-radius: 14px;
  margin-bottom: auto;

  box-shadow:
    inset 4px 4px 8px rgba(0,0,0,0.15),
    inset -4px -4px 8px rgba(255,255,255,0.9);
}

#withdrawAmountInput::placeholder {
  color: #777777;
}

/* ================= SUBMIT BUTTON ================= */
.withdraw-submit-btn {
  width: 92%;
  max-width: 420px;
  background: #6A0DAD;
  color: #ffffff;
  border: none;
  padding: 14px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  margin-top: 12px;

  box-shadow:
    0 6px 16px rgba(106,13,173,0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.withdraw-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 10px 24px rgba(106,13,173,0.6);
}

/* ================= SUCCESS MESSAGE ================= */
.withdraw-success {
  text-align: center;
  margin-top: 14px;
  color: #6A0DAD;
  font-weight: 600;
  font-size: 14px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 480px) {
  .withdraw-header-fixed h2 {
    font-size: 18px;
  }

  #withdrawAmountInput {
    font-size: 15px;
    padding: 14px 14px;
  }

  .withdraw-submit-btn {
    font-size: 16px;
    padding: 12px;
  }
}



/* ================= RECORDS PAGE ================= */
.records-page {
  width: 100vw;
  padding-top: 60px;           /* space for fixed header */
  margin: 0;
  font-family: Arial, sans-serif;
  height: 100vh;
  overflow-y: auto;
  background: #f5f5f5;
  box-sizing: border-box;
}


/* ================= FIXED HEADER ================= */
.records-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;

  background: #000000;   /* purple */
  color: #ffffff;        /* white text */

  font-size: 18px;
  font-weight: bold;

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 10000;
}

/* ================= BACK BUTTON (INSIDE HEADER) ================= */
.records-back-btn {
  position: absolute;
  top: 6px;          /* PUSH UP */
  right: 12px;       /* MOVE TO RIGHT */
  background: none;
  border: none;
  color: #000000;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
}


/* ================= RECORD CARD (ATM STYLE) ================= */
.record-card {
  width: 100%;
  min-height: 110px;                 /* CARD BODY */
  margin: 0 0 14px 0;

  padding: 20px 18px;
  background: #f2f2f2;               /* ASH BACKGROUND */
  color: #6A0DAD;                    /* PURPLE TEXT */

  border-radius: 18px;               /* ATM CURVE */
  display: flex;
  flex-direction: column;
  gap: 6px;

  font-size: 14px;
  box-sizing: border-box;

  /* REAL ATM 3D DEPTH */
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.18),
    0 3px 0 rgba(255, 255, 255, 0.95) inset,
    0 -2px 0 rgba(0, 0, 0, 0.06) inset;
}

/* ================= CARD TEXT ================= */
.record-transaction {
  font-weight: 700;
  font-size: 15px;
  color: #6A0DAD;
}

.record-amount {
  font-weight: 700;
  font-size: 16px;
  color: #6A0DAD;
}

.record-status {
  font-weight: 600;
  font-size: 13px;
}

.record-time {
  font-size: 12px;
  color: #8b5fc2;                    /* SOFT PURPLE */
}

/* ================= STATUS COLORS ================= */
.status-success { color: #16a34a; }  /* green */
.status-pending { color: #ca8a04; }  /* amber */
.status-failed  { color: #dc2626; }  /* red */

/* ================= MOBILE ================= */
@media (max-width: 480px) {
  .record-card {
    min-height: 100px;
    padding: 18px 16px;
  }

  .record-transaction {
    font-size: 14px;
  }

  .record-amount {
    font-size: 15px;
  }

  .records-back-btn { top: 60px; font-size: 14px; }
}




/* ================= FULL PAGE ================= */
#myInvestmentPage {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  box-sizing: border-box;
  background: #f2f1f1;        /* white background */
  padding-top: 100px;         /* reduced from 120px to push cards up */
  margin: 0;
  width: 100vw;
}

/* ================= FIXED HEADER ================= */
.investment-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;               /* fixed height */
  background: #000000;        /* black header */
  color: #ffffff;
  z-index: 1000;
  display: flex;
  align-items: center;        /* vertically center content */
  justify-content: center;    /* center title */
  border-bottom: 2px solid #c0c0c0;
  padding: 0 10px;            /* horizontal padding */
  font-weight: 500;
  font-size: 18px;
}

.investment-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
  color: #ffffff;
  text-align: center;
  flex: 1;                     /* keeps title centered */
}

/* Back Button */
.investment-back-btn {
  position: absolute;          /* relative to header */
  top: 10px;
  left: 10px;
  background: #333333;
  color: #ffffff;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
  font-size: 16px;
}

.investment-back-btn:hover {
  background: #555555;
}


/* ===============================
   INVESTMENT LIST (GRID – MATCH PRODUCT)
   =============================== */
.investment-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;

  width: 100%;
  margin-top: 20px;
  padding-bottom: 120px;
}

/* ===============================
   INVESTMENT CARD (BOX STYLE)
   =============================== */
.investment-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  background: #ffffff;
  color: #000000;

  padding: 12px;
  border-radius: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);

  position: relative;
  min-height: 220px;
}

/* ===============================
   LOGO (TOP LEFT)
   =============================== */
.investment-right {
  order: 1;

  display: flex;
  justify-content: flex-start;
  align-items: flex-start;

  margin-bottom: 10px;
}

.investment-right .product-logo {
  width: 60px;
  height: 60px;
}

.investment-right .product-logo img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 0;
}

/* ===============================
   PRICE (TOP RIGHT)
   =============================== */
.investment-right .product-price {
  position: absolute;
  top: 10px;
  right: 10px;

  font-size: 13px;
  font-weight: bold;
  color: #000000;
}

/* ===============================
   INFO (MIDDLE)
   =============================== */
.investment-info-left {
  order: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.investment-info-left h3 {
  font-size: 14px;
  font-weight: bold;
  margin: 0 0 6px 0;
}

.investment-info-left .info-box {
  font-size: 12px;
  font-weight: 600;
  margin: 2px 0;
  color: #000000;
}

.investment-info-left .info-box span {
  color: #6A0DAD; /* purple numbers */
  font-weight: bold;
}

/* ===============================
   INVEST BUTTON (BOTTOM)
   =============================== */
.investment-info-left .invest-btn {
  order: 3;
  margin-top: auto;

  width: 100%;
  padding: 8px 0;

  background: #6A0DAD;
  color: #ffffff;

  font-weight: bold;
  font-size: 13px;

  border: none;
  border-radius: 0;
  cursor: pointer;
}

/* ===============================
   SMALL DEVICES FALLBACK
   =============================== */
@media (max-width: 360px) {
  .investment-list {
    grid-template-columns: 1fr;
  }
}


/* ================= CUSTOM ALERT ================= */
.custom-alert {
  position: fixed;
  top: 16px;
  right: 16px;

  background: #000000;        /* solid black */
  color: #ffffff;             /* white text */

  padding: 14px 18px;
  border-radius: 8px;         /* subtle rounding */

  font-weight: 500;
  font-size: 15px;

  box-shadow: 0 6px 16px rgba(0,0,0,0.4); /* soft shadow */

  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 99999;
}



/* ================= FULLSCREEN LOADER (PURPLE 3D NEON) ================= */
#pageLoader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000000; /* deep black */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  opacity: 1;
  transition: opacity 0.5s ease;
}

/* ================= NEON PURPLE SPINNER ================= */
.loader {
  width: 48px;
  height: 48px;
  border-radius: 50%;

  /* 3D ring */
  border: 5px solid rgba(106, 13, 173, 0.2);
  border-top: 5px solid #6A0DAD;

  animation: spin 1s linear infinite;

  /* neon glow */
  box-shadow:
    0 0 8px rgba(106,13,173,0.8),
    0 0 18px rgba(106,13,173,0.6),
    0 0 32px rgba(138,43,226,0.7),
    inset 0 0 6px rgba(255,255,255,0.3);
}

/* ================= ANIMATION ================= */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}


/* Investment Ticker */
.investment-ticker {
  width: 100%;
  overflow: hidden;
  background-color: #f3f4f6;  /* light gray */
  padding: 10px 0;
  border-radius: 12px;
  margin: 20px 0;            /* space under the ATM card image */
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.ticker-content {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;         /* start offscreen to the right */
  animation: ticker 15s linear infinite;
}

.ticker-content span {
  margin-right: 50px;
  font-size: 14px;
  color: #111827;
}

.ticker-content i {
  color: #EF4444; /* red megaphone icon */
  margin-right: 6px;
}

/* Keyframes for horizontal scrolling */
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}




/* Header Image */
.product-header-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}


/* Reviews Ticker Wrapper - fills remaining viewport height */
.reviews-ticker-wrapper {
  width: 100%;
  height: calc(100vh - 250px); /* adjust based on your header/image height */
  overflow: hidden;
  border-radius: 12px;
  background: #ffffff; /* blue background */
  padding: 10px;
  box-sizing: border-box;
}

/* Ticker container */
.reviews-ticker {
  display: flex;
  flex-direction: column;
  gap: 15px;
  animation: scrollReviews 300s linear infinite; /* very slow scroll */
}

/* Each review item */
.review-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  background: #ffffff; /* white card background */
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  min-height: 80px; /* make each review taller */
}

/* User logo / icon */
.review-item .user-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0; /* keeps image from shrinking */
}

/* Review text */
.review-item .review-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.6;
  color: #1e40ff; /* blue text */
}

/* Smooth scroll animation */
@keyframes scrollReviews {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}



/* Full-width black box around dashboard image */
.dashboard-image-box-full {
    width: 100%;                 /* full width of parent container */
    background-color: #6A0DAD;   /* black box (you can change to green) */
    padding: 15px;               /* space inside box for image */
    border-radius: 16px;         /* rounded corners */
    box-sizing: border-box;
    text-align: center;          /* center image */
    margin: 20px 0;              /* vertical spacing only, no horizontal shift */
    overflow: hidden;            /* prevent any overflow */
}

/* Dashboard image inside the box */
.dashboard-image {
    max-width: 100%;             /* fit inside green box */
    height: auto;
    border-radius: 12px;         /* slightly rounded corners */
    display: inline-block;       /* center properly */
}




/* ===== PAYMENT TYPE ===== */
.payment-type {
  margin: 15px 0;
  text-align: left;
  width: 100%;
  position: relative;
  font-family: sans-serif;
}

.payment-type label {
  display: block;
  margin-bottom: 6px;
  color: #f4b400; /* green label */
  font-weight: 600;
  font-size: 14px;
}

/* The clickable box */
.payment-box {
  width: 100%;
  background: #ffffff;          /* white box */
  color: #000000;               /* green text */
  border: 1px solid #c0c0c0;   /* silver edge */
  border-radius: 12px;
  padding: 12px 15px;
  cursor: pointer;
  position: relative;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
}

.payment-box:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.payment-box .arrow {
  font-size: 14px;
}



/* Options list hidden by default */
.payment-options {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 48px; /* below the box */
  width: 100%;
  background: #ffffff;
  border: 1px solid #c0c0c0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: none; /* hidden initially */
  z-index: 100;
}

.payment-options li {
  padding: 10px 15px;
  cursor: pointer;
  color: #000000;
  font-weight: 500;
  transition: background 0.2s;
}

.payment-options li:hover {
  background: rgba(15,157,88,0.1); /* light green hover */
}


/* Selected Amount Display */
.selected-amount {
  font-weight: bold;
  color: #000000;   /* black */
  font-size: 20px;
  margin-top: 8px;
  text-align: center;
}



#paymentCountdown {
  margin-top: 14px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #ff0707; /* green */
}


#paymentStatusMessage {
  margin-top: 16px;
  padding: 14px;
  border-radius: 10px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  display: none;
}


.status-pending {
  background: #f0fff6;
  color: #1faa59;
}

.status-approved {
  background: #e6fff1;
  color: #1faa59;
}

.status-declined {
  background: #ffecec;
  color: #d62828;
}

.status-timeout {
  background: #fff6e5;
  color: #c77700;
}


/* ================= PROTECTED UI ================= */
#dashboard,
#bottomNav {
  display: none;
}



#bottomNav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 2000;
}

#bottomNav.open {
  transform: translateY(0);
}



/* ================= LOCKED STATE ================= */
body.locked {
  overflow: hidden;
}

/* Blur ONLY the app content */
body.locked #appWrapper {
  filter: blur(16px);
  pointer-events: none;
  user-select: none;
}

/* ================= CONTINUE BUTTON ================= */
#navToggle {
  position: fixed;
  bottom: 120px;                 /* ⬇️ moved down */
  left: 50%;
  transform: translateX(-50%);   /* centered horizontally */

  padding: 16px 38px;
  border-radius: 999px;

  background: linear-gradient(135deg, #8b2cff, #6a0dad);
  color: #ffffff;

  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.4px;

  border: none;
  cursor: pointer;

  z-index: 99999;
  display: none;
  pointer-events: auto;

  /* 💜 3D + glow */
  box-shadow:
    0 0 0 rgba(138, 43, 226, 0.6),
    0 18px 45px rgba(106, 13, 173, 0.65),
    inset 0 1px 2px rgba(255, 255, 255, 0.35);

  animation: glowPulse 1.8s infinite ease-in-out;
}

/* Show only when logged in */
body.logged-in #navToggle {
  display: block;
}

/* ================= GLOW ANIMATION ================= */
@keyframes glowPulse {
  0% {
    box-shadow:
      0 0 0 rgba(138, 43, 226, 0.3),
      0 18px 45px rgba(106, 13, 173, 0.6),
      inset 0 1px 2px rgba(255, 255, 255, 0.35);
    transform: translateX(-50%) scale(1);
  }
  50% {
    box-shadow:
      0 0 30px rgba(138, 43, 226, 0.9),
      0 22px 55px rgba(106, 13, 173, 0.85),
      inset 0 1px 2px rgba(255, 255, 255, 0.45);
    transform: translateX(-50%) scale(1.05);
  }
  100% {
    box-shadow:
      0 0 0 rgba(138, 43, 226, 0.3),
      0 18px 45px rgba(106, 13, 173, 0.6),
      inset 0 1px 2px rgba(255, 255, 255, 0.35);
    transform: translateX(-50%) scale(1);
  }
}
