

/* General Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

/* Base body styles */
body {
  background: linear-gradient(135deg, #ffffff, #ffffff); /* White-to-light-blue gradient */
  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;
}




/* ================= PREMIUM GLASS FORM CONTAINER ================= */
.container {
  width: 400px;
  max-width: 90%;
  padding: 40px 30px;
  border-radius: 25px;

  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);

  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.25), 
    inset 0 2px 6px rgba(255,255,255,0.2);

  color: #001f4d;
  display: none;
  flex-direction: column;
  text-align: left; /* Align content to left */
  transform-style: preserve-3d;
  perspective: 1000px;
}

/* Show active form */
.container.active {
  display: flex;
}

/* ================= LOGO ================= */
.logo {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.logo img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(0, 31, 77, 0.8);
  box-shadow: 0 6px 25px rgba(0, 0, 50, 0.35), inset 0 2px 5px rgba(255,255,255,0.3);
}

/* ================= FORM ELEMENTS WITH LEFT LABELS ================= */
form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Wrap label and input in a flex row */
.form-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-row label {
  flex: 0 0 120px; /* fixed width for labels */
  font-weight: 600;
  color: #001f4d;
  text-align: left;
}

/* Inputs */
.form-row input {
  flex: 1;
  padding: 12px;
  border-radius: 15px;
  border: 1px solid rgba(0, 31, 77, 0.5);
  font-size: 16px;
  outline: none;
  background: rgba(255,255,255,0.25);
  color: #001f4d;
  box-shadow: inset 0 3px 6px rgba(0, 31, 77, 0.1);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.form-row input::placeholder {
  color: rgba(0, 31, 77, 0.6);
}

.form-row input:focus {
  border-color: #003366;
  box-shadow: 0 0 12px rgba(0, 51, 102, 0.4);
  background: rgba(255,255,255,0.35);
}

/* ================= BUTTON ================= */
button {
  margin-top: 20px;
  padding: 14px;
  border: none;
  border-radius: 15px;
  background: linear-gradient(135deg, #001f4d, #003366, #0055aa);
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 50, 0.35);
  transition: all 0.25s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 80, 0.45);
  background: linear-gradient(135deg, #003366, #001f4d, #0055aa);
}

/* ================= WELCOME TEXT ================= */
.welcome-text {
  margin-bottom: 25px;
}

.welcome-text h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 5px;
}

.welcome-text p {
  font-size: 14px;
  color: rgba(0, 31, 77, 0.8);
}

/* ================= TOGGLE TEXT ================= */
.toggle-text {
  margin-top: 15px;
  font-size: 14px;
  color: #001f4d;
  cursor: pointer;
}


/* ================= PREMIUM PHONE INPUT ================= */
.phone-input {
  display: flex;
  margin-top: 10px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 50, 0.15), inset 0 2px 4px rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Country code styling - glass capsule style */
.phone-input .country-code {
  flex: 0 0 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.25);
  border-right: 1px solid rgba(0,0,50,0.2);
  font-weight: bold;
  color: #001f4d;
  font-size: 14px;
  border-radius: 20px 0 0 20px;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.3), 0 2px 6px rgba(0,0,50,0.1);
  transition: all 0.3s ease;
}

/* Country code hover effect */
.phone-input .country-code:hover {
  background: rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 2px 6px rgba(255,255,255,0.4), 0 2px 8px rgba(0,0,50,0.15);
}

/* Phone input field styling */
.phone-input input {
  flex: 1;
  border: none;
  padding: 12px 14px;
  font-size: 16px;
  color: #001f4d;
  background: rgba(255,255,255,0.25);
  outline: none;
  border-radius: 0 20px 20px 0;
  box-shadow: inset 0 2px 6px rgba(0,0,50,0.1);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

/* Input focus effect */
.phone-input input:focus {
  background: rgba(255,255,255,0.35);
  border-color: rgba(0,64,255,0.4);
  box-shadow: 0 0 10px rgba(30,64,255,0.4), inset 0 2px 6px rgba(0,0,50,0.15);
}


/* 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: #ffffff;      /* white background */
  color: #1E3A8A;           /* deep blue text */
}

/* Dashboard header */
.dashboard-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: #1E3A8A;      /* deep blue header */
  color: #ffffff;
  font-weight: bold;
  line-height: 1.3;
  font-size: 18px;
  margin: 0;
  padding: 12px 20px;
  z-index: 10000;
  width: 100%;
  max-width: 600px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: space-between; /* world icon left, ENGLISH right */
  box-shadow: 0 4px 12px rgba(30,58,138,0.3); /* subtle blue shadow */
  border-radius: 0 0 12px 12px; /* optional rounded bottom */
}

/* Left icon */
.dashboard-icon-left {
  font-size: 20px;
  margin-left: 10px;
}

/* Header text centered */
.dashboard-header-text {
  flex: 1;                  /* takes remaining space */
  text-align: center;
}

/* Right language text */
.dashboard-language {
  font-size: 16px;
  margin-right: 10px;
  color: #ffffff;
}


/* Quick Actions Grid */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  margin: 10px 0;
  padding: 14px;
  background: #ffffff; /* white container */
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  box-sizing: border-box;
}

/* Buttons */
.quick-actions-grid .qa-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 0;
  border-radius: 14px;
  font-weight: 600;
  font-size: 13px;
  color: #ffffff;              /* white text */
  background: #1E3A8A;         /* SKY BLUE */
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  transition: all 0.2s ease;
}

/* Button hover */
.quick-actions-grid .qa-btn:hover {
  background: #1E3A8A;         /* deeper sky blue */
  transform: translateY(-2px);
}

/* Icon base */
.quick-actions-grid .qa-btn i {
  font-size: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  color: #ffffff;
}

/* Icon colors */
.qa-btn.recharge i {
  background: #ff6b6b; /* red */
}

.qa-btn.withdraw i {
  background: #4ade80; /* green */
}

.qa-btn.daily-gift i {
  background: #facc15; /* yellow */
}

/* Mobile responsiveness */
@media (max-width: 450px) {
  .quick-actions-grid {
    gap: 8px;
    padding: 10px;
  }

  .quick-actions-grid .qa-btn {
    font-size: 12px;
    padding: 12px 0;
  }

  .quick-actions-grid .qa-btn i {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
}


/* Flyer Banner at the top of balance */
.balance-flyer {
  width: 100%;            /* full width inside parent, no horizontal scroll */
  max-width: 100%;        /* prevent overflow */
  height: 180px;
  margin: 0 auto 12px;    /* center and bottom spacing */
  border-radius: 20px;    /* curved edges */
  overflow: hidden;       /* ensure image respects border-radius */
  position: relative;
  box-sizing: border-box; /* prevent padding/margin from causing overflow */
}

.carousel {
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  border-radius: 20px;      /* make image match container curve */
}

.carousel img.active {
  opacity: 1;
}


.slim-card {
  width: 100%;
  max-width: 400px;          /* limits card width on large screens */
  margin: 12px auto;         /* centers the card horizontally */
  padding: 20px 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1E3A8A, #1E3A8A); /* deep blue gradient */
  color: #ffffff;             
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.35); 
  font-family: sans-serif;
  box-sizing: border-box;
}

.card-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.card-text h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;             
}

.card-text p {
  margin: 8px 0 0 0;
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;             
}

.card-icon {
  font-size: 28px;
  line-height: 1;
  color: #38bdf8;             
}

/* Optional: Make it slightly smaller on very small screens */
@media (max-width: 360px) {
  .slim-card {
    padding: 16px 18px;
  }

  .card-text p {
    font-size: 18px;
  }

  .card-text h3 {
    font-size: 16px;
  }
}


.invite-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 300px;          /* match slim card width */
  margin: 12px auto;
  padding: 24px 0;           /* taller height */
  min-height: 140px;         /* ensure it stretches downward */
  border-radius: 12px;
  background-color: #ffffff; /* white background */
  text-decoration: none;
  color: #2563eb;            /* sky blue text */
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.15); /* subtle sky blue shadow */
  box-sizing: border-box;
  cursor: pointer;           
  position: relative;        
  text-align: center;
  overflow: hidden;
}

/* Prevent icon and text from blocking the click */
.invite-card .invite-icon,
.invite-card span {
  pointer-events: none;
}

.invite-card .invite-icon {
  width: 60px;               
  height: 60px;
  border-radius: 50%;
  background-color: #38bdf8;  /* sky blue circle */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;       
}

.invite-card .invite-icon i {
  color: #ffffff;             /* white icon inside circle */
  font-size: 24px;
}

/* Text below icon */
.invite-card span {
  font-size: 16px;            
  font-weight: 700;           
  color: #2563eb;              /* sky blue text */
}

/* Optional hover effect */
.invite-card:hover {
  box-shadow: 0 6px 16px rgba(56, 189, 248, 0.2);
  transform: translateY(-2px);
  transition: all 0.2s ease;
}

/* Mobile responsive */
@media (max-width: 450px) {
  .invite-card {
    max-width: 100%;
    padding: 20px 0;
    min-height: 120px;
  }
  .invite-card .invite-icon {
    width: 50px;
    height: 50px;
  }
  .invite-card .invite-icon i {
    font-size: 20px;
  }
  .invite-card span {
    font-size: 14px;
  }
}


/* Product Section Wrapper */
.product-section {
  margin-top: 20px; /* space between dashboard and products */
  padding: 0 10px;  /* optional side padding */
}

/* Products Header */
.products-header {
  margin-bottom: 12px;
}

.products-header h2 {
  font-size: 18px;
  font-weight: bold;
  color: #1E3A8A;  /* dark blue */
}


.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;
}





.icon-circle {
  background-color: #1E40AF;      /* dark blue circle */
  width: 60px;
  height: 60px;
  border-radius: 50%;             /* perfect circle */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;            /* space between circle and text */
}

.icon-circle i {
  color: #ffffff;                 /* human icon in white */
  font-size: 28px;
}

.card-title {
  font-size: 16px;
  color: #1E40AF;
  font-weight: 600;
  margin-bottom: 4px;
}

.card-subtitle {
  font-size: 14px;
  color: #1E40AF;
  font-weight: 400;
}



/* ===== BALANCE BAR – GLAZED WHITE CARD ===== */
.balance-bar {
  width: 100%;
  height: 140px;
  background: rgba(255, 255, 255, 0.85); /* glossier white */
  border-radius: 18px;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  box-shadow: 0 10px 25px rgba(30, 58, 138, 0.15); /* subtle blue glow */
  backdrop-filter: blur(10px);           /* glassy blur effect */
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Text side */
.balance-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* Title */
.balance-title {
  font-size: 16px;
  font-weight: 700;
  color: #1E3A8A;   /* deep blue text */
  letter-spacing: 0.3px;
}

/* Amount */
.balance-amount {
  font-size: 32px;
  font-weight: 800;
  color: #1E3A8A;   /* deep blue text */
  margin-top: 8px;
}

/* Icon side */
.balance-icon {
  font-size: 40px;
  color: #1E3A8A;   /* deep blue icon */
  position: relative;
  z-index: 1;
}

/* Mobile fine-tuning */
@media (max-width: 450px) {
  .balance-bar {
    height: 120px;
    padding: 0 20px;
  }

  .balance-title {
    font-size: 14px;
  }

  .balance-amount {
    font-size: 28px;
  }

  .balance-icon {
    font-size: 36px;
  }
}



.code-popup {
  display: none;          /* start hidden */
  position: absolute;
  top: 60%;               /* adjust vertical position */
  right: 20px;            /* near the icon */
  width: 180px;           /* fixed width */
  height: 100px;          /* fixed height */
  background: #111;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  z-index: 10;
  padding: 10px;

  display: flex;          /* flex layout */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}


.code-popup input {
  width: 90%;
  padding: 5px;
  border-radius: 4px;
  border: none;
  outline: none;
  font-size: 14px;
}

.code-popup button {
  padding: 5px 10px;
  border-radius: 4px;
  border: none;
  background: #007bff;
  color: white;
  cursor: pointer;
  font-size: 14px;
}

.close-popup {
  position: absolute;
  top: 5px;
  right: 7px;
  cursor: pointer;
  font-size: 16px;
  color: #fff;
}


.phone-input {
  display: flex;
  align-items: center;
}


.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #1E3A8A; /* deep blue background */
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0;
  box-shadow: 0 -2px 12px rgba(30,58,138,0.35); /* subtle blue shadow */
  z-index: 1000;
}

/* Individual nav items */
.bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #ffffff; /* white text */
  font-size: 12px;
  transition: opacity 0.2s ease;
}

.bottom-nav .nav-item img {
  width: 24px;
  height: 24px;
  margin-bottom: 3px;
  filter: brightness(0) invert(1); /* keep icons white */
}

/* Hover / active state */
.bottom-nav .nav-item:hover {
  opacity: 0.8; /* subtle fade */
}


/* ===== PROFILE FIXED HEADER ===== */
.profile-header-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #1E3A8A; /* deep blue 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(30, 58, 138, 0.35); /* deep blue 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;
}

/* Existing Profile Page Styling */
.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 page background */
  color: #1E3A8A;       /* deep blue 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(30, 58, 138, 0.25); /* deep blue 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: #1E3A8A;    /* deep blue title */
  text-align: center;
}



/* ===== ATM SLIM ACTION CARD ===== */
.atm-action-card {
  margin-top: 16px;
  width: 100%;
  padding: 0;
  background: #ffffff;
  border-radius: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;  /* two boxes */
  gap: 12px;                        /* space between boxes */
  box-shadow: 0 8px 20px rgba(244, 129, 32, 0.35);
}

/* ===== ATM BUTTONS ===== */
.atm-btn {
  background: #ffffff;
  padding: 16px 8px;
  text-decoration: none;
  color: #000000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
  border-radius: 12px;             /* rounded corners for each box */
  cursor: pointer;
  transition: none;                /* no hover effect */
  box-shadow: 0 2px 8px rgba(244, 129, 32, 0.18);
}

/* Icons */
.atm-btn i {
  font-size: 22px;
}

/* Left button icon – red */
.atm-btn.left-btn i {
  color: #e53935;
}

/* Right button icon – yellow */
.atm-btn.right-btn i {
  color: #fbc02d;
}


/* ===== SETTINGS BOX – WHITE & BLUE THEME ===== */
.settings-box {
  background: rgba(255, 255, 255, 0.95); /* clean white with slight glass effect */
  border-radius: 16px;
  padding: 15px;
  box-shadow: 0 4px 16px rgba(30, 58, 138, 0.12); /* subtle blue shadow */
  margin-top: 15px;
}

/* Vertical list layout */
.settings-list-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Each item */
.settings-item,
.logout-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 700;
  color: #1E3A8A;                   /* deep blue text */
  background: rgba(255, 255, 255, 0.9); /* slightly glossy white */
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.18); /* soft blue shadow */
  transition: background 0.2s ease, transform 0.2s ease;
}

/* Hover effect */
.settings-item:hover,
.logout-btn:hover {
  background: rgba(30, 58, 138, 0.05); /* subtle blue highlight */
  transform: translateY(-1px);
}

/* Icon */
.settings-item i,
.logout-btn i {
  font-size: 20px;
  color: #1E3A8A; /* deep blue icon */
}

/* Mobile responsive */
@media (max-width: 450px) {
  .settings-item,
  .logout-btn {
    padding: 12px 14px;
    font-size: 14px;
  }

  .settings-item i,
  .logout-btn i {
    font-size: 18px;
  }
}

/* CSS: hide by default */
#bottomNav {
  display: none;
}


/* ===== BANK PAGE – WHITE & BLUE ===== */
.bank-page {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 0 10px;
  display: none;
  background: #ffffff;        /* white page background */
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3),
              0 -2px 12px rgba(30, 144, 255, 0.15); /* blue shadows */
  color: #1E3A8A;            /* deep blue text */
  height: 100vh;
  overflow-y: auto;
  box-sizing: border-box;
  padding-top: 70px;
}

/* Slim Header */
.bank-header {
  display: flex;
  align-items: center;
  gap: 10px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  z-index: 100;
  background: linear-gradient(135deg, #1E3A8A, #1E90FF, #63B3ED); /* blue gradient */
  padding: 6px 10px;
  box-shadow: 0 2px 6px rgba(30,58,138,0.2);
  height: 40px;
  font-size: 14px;
}

/* Header Title */
.bank-header h2 {
  font-size: 20px;
  color: #ffffff;            /* white text for contrast */
  flex-grow: 1;
  text-align: center;
  margin: 0;
}

/* Back Button */
.back-btn {
  background: #1E3A8A;        /* deep blue */
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 18px;
  color: #ffffff;             /* white text */
  cursor: pointer;
  box-shadow: 3px 3px 8px rgba(30,58,138,0.3),
              -2px -2px 6px rgba(30,144,255,0.15);
  transition: transform 0.2s, background 0.3s;
}

.back-btn:hover {
  transform: translateY(-2px);
  background: #1E90FF;        /* lighter blue hover */
}

/* Form Section */
.bank-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(30,58,138,0.2);
  color: #1E3A8A;            /* deep blue text */
}

/* Form Section Headers */
.form-section h3 {
  color: #1E90FF;             /* sky blue header */
  font-weight: bold;
  margin-bottom: 10px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #1E3A8A;             /* deep blue labels */
}

/* Inputs & Selects */
select, input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #1E3A8A;  /* deep blue border */
  margin-bottom: 10px;
  font-size: 15px;
  background: #ffffff;
  color: #1E3A8A;             /* deep blue text */
  box-shadow: inset 2px 2px 5px rgba(30,58,138,0.1);
}

/* Update Button */
.update-bank-btn {
  padding: 15px;
  font-size: 16px;
  font-weight: bold;
  background: linear-gradient(135deg, #1E3A8A, #1E90FF, #63B3ED); /* blue gradient */
  color: #ffffff;
  border: none;
  border-radius: 12px;
  box-shadow: 5px 5px 15px rgba(30,58,138,0.4),
              -5px -5px 15px rgba(30,144,255,0.2);
  cursor: pointer;
  transition: transform 0.2s, background 0.3s;
}

.update-bank-btn:hover {
  transform: translateY(-3px);
  background: #1E90FF;        /* lighter blue hover */
}

/* Instructions Container */
.instructions {
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: inset 2px 2px 5px rgba(30,58,138,0.1);
  color: #1E3A8A;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.instructions h3 {
  margin-top: 0;
  color: #1E90FF;             /* sky blue */
  font-weight: bold;
  font-size: 18px;
}

.instructions ol {
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.instructions ol li {
  background: #E0EEFF;        /* very light blue */
  padding: 10px 15px;
  border-radius: 8px;
  border-left: 4px solid #1E90FF; /* blue highlight */
  line-height: 1.4;
  font-size: 15px;
  color: #1E3A8A;
}

/* Success Message */
.success-message {
  text-align: center;
  font-weight: bold;
  color: #1E3A8A;
  margin-top: 15px;
  font-size: 16px;
}

/* Mobile Responsive */
@media (max-width: 450px) {
  .bank-header h2 {
    font-size: 18px;
  }

  select, input {
    padding: 10px;
    font-size: 14px;
  }

  .update-bank-btn {
    padding: 12px;
    font-size: 15px;
  }

  .instructions {
    padding: 15px;
    gap: 12px;
  }

  .instructions ol li {
    padding: 8px 12px;
    font-size: 14px;
  }
}



/* Chip */
.card-chip {
  width: 40px;
  height: 30px;
  background: #ff0000; /* red chip */
  border-radius: 4px;
  margin-bottom: 20px;
}


.card-chip {
  width: 50px;
  height: 50px; /* make it square for perfect circle */
  background: #ffffff;
  border-radius: 50%; /* make it circular */
  display: inline-block;
  vertical-align: middle;
  cursor: pointer;
  box-shadow: 5px 5px 15px rgba(0,0,0,0.2), -5px -5px 15px rgba(255,255,255,0.7);
  transition: all 0.3s ease;
  overflow: hidden; /* ensures image inside doesn't overflow */
}

.card-chip img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* make profile image fit nicely */
  border-radius: 50%; /* ensure image is circular */
}

.daily-label {
  display: inline-block;
  margin-left: 12px;
  vertical-align: middle;
  font-weight: bold;
  color: #FFA500; /* keep daily label blue */
}



/* ===== THEME COLORS ===== */
:root {
  --primary-blue: #1E3A8A;
  --text-white: #ffffff;
}

/* ===== FIXED RECHARGE HEADER ===== */
.recharge-header-fixed {
  position: fixed;        
  top: 0;
  left: 50%;              
  transform: translateX(-50%);
  width: 100%;
  max-width: 400px;       
  background: var(--primary-blue);     
  z-index: 10000;         
  text-align: center;
  padding: 15px 20px;
  border-bottom: 2px solid var(--primary-blue); 
  box-shadow: 0 4px 12px rgba(30,58,138,0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.recharge-header-fixed .header-icon {
  font-size: 24px;       
  color: var(--text-white);  
}

.recharge-header-fixed h2 {
  margin: 0;
  color: var(--text-white);      
  font-size: 20px;
  font-weight: bold;
}

/* ===== PAGE CONTENT ===== */
.recharge-page {
  width: 100%;
  max-width: 400px;
  margin: 40px auto;
  padding: 15px;
  text-align: center;
  display: none;
  color: var(--primary-blue);       
  background: var(--text-white);  
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(30,58,138,0.2); 
}

/* Logo */
.recharge-logo img {
  width: 80px;
  height: 80px;
  border-radius: 12px; 
  margin-bottom: 20px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(30,58,138,0.3); 
}

/* Header & Subheader */
.recharge-header {
  font-size: 22px;
  color: var(--primary-blue);      
  margin-bottom: 5px;
  font-weight: bold;
}

.recharge-subheader {
  font-size: 16px;
  color: var(--primary-blue);       
  margin-bottom: 20px;
}

/* ===== AMOUNT GRID ===== */
.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

/* Amount Button with blue gradient & glow */
.amount-option {
  background: linear-gradient(135deg, var(--primary-blue), #1E90FF);
  padding: 12px 0;
  border-radius: 12px;
  font-weight: bold;
  color: var(--text-white);
  text-align: center;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 12px rgba(30,58,138,0.3);
  transition: all 0.3s;
}

.amount-option:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(30,58,138,0.5);
}

.amount-option.active {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(30,58,138,0.5);
}

/* ===== CUSTOM AMOUNT INPUT ===== */
.custom-amount input {
  width: 100%;
  padding: 12px 15px;
  font-size: 16px;
  margin-bottom: 20px;
  border-radius: 12px;
  border: 1px solid var(--primary-blue); 
  background: var(--text-white);        
  color: var(--primary-blue);           
}

/* ===== DEPOSIT BUTTON ===== */
.deposit-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--primary-blue), #1E90FF);
  color: var(--text-white);
  font-weight: bold;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 17px;
  box-shadow: 0 4px 12px rgba(30,58,138,0.3);
  transition: all 0.3s;
}

.deposit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(30,58,138,0.5);
}


/* ===== RECHARGE CONFIRMATION PAGE ===== */
.recharge-confirmation-page {
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 20px 15px;
  display: none;
  overflow-y: auto;
  text-align: center;
  background: var(--text-white);         
  color: #1E3A8A;               /* deep blue text */             
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

/* ===== Account Details Card ===== */
.account-details {
  background: var(--text-white);          
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 25px;
  color: #1E3A8A;                /* deep blue text */              
  box-shadow: 0 4px 12px rgba(30,58,138,0.1); 
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Detail Rows */
.detail-row {
  display: flex;
  flex-direction: row;          
  justify-content: space-between;  
  align-items: center;
  font-weight: bold;
  padding: 12px 0;
  border-bottom: 1px solid rgba(30,58,138,0.2);  /* subtle blue divider */
  color: #1E3A8A;                 /* deep blue text */
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row span:first-child {
  flex: 0 0 auto;
  margin-right: 8px;
}

.detail-row span:nth-child(2) {
  flex: 1;                  
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 8px;       
}

/* Copy button */
.copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1E3A8A;           /* deep blue icon/text */       
  font-size: 18px;         
  flex-shrink: 0;           
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 450px) {
  .detail-row {
    flex-wrap: nowrap;       
  }

  .detail-row span:nth-child(2) {
    padding-right: 8px;     
  }
}



/* ===== WAITING PAGE ===== */
.waiting-page {
  display: flex;
  flex-direction: column;    
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: #ffffff;
  text-align: center;
  color: #1E3A8A;
  font-family: 'Segoe UI', sans-serif;
  padding: 20px;
  position: relative; /* needed for absolute header */
}

/* Top Header - Monnify Checkout at Top, vertical */
.waiting-header {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;  /* logo above text */
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.monnify-icon {
  width: 100px;   /* slightly bigger for prominence */
  height: 100px;
}

.waiting-header-text {
  font-size: 32px;   /* slightly bigger */
  font-weight: 800;
  color: #1E3A8A;
  margin: 0;
  text-align: center;
  white-space: nowrap; 
}

/* Status Icon */
.status-icon {
  font-size: 140px;   /* bigger to match massive timer */
  margin-bottom: 20px;
  color: #1E3A8A;
  text-shadow: 0 0 20px #1E3A8A, 0 0 15px #1E90FF;
}

/* Countdown Timer - GIGANTIC */
.countdown {
  font-size: 250px;         /* massive, dominates page */
  font-weight: 900;
  color: #1E3A8A;
  margin-top: 30px;
  text-shadow:
    0 0 25px #1E3A8A,
    0 0 50px #1E90FF,
    0 0 75px #1E90FF,
    0 0 100px #1E90FF;
  line-height: 1;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .countdown {
    font-size: 180px;
  }
  .status-icon {
    font-size: 100px;
  }
  .waiting-header-text {
    font-size: 26px;
  }
  .monnify-icon {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 480px) {
  .countdown {
    font-size: 120px;
  }
  .status-icon {
    font-size: 70px;
  }
  .waiting-header-text {
    font-size: 22px;
  }
  .monnify-icon {
    width: 50px;
    height: 50px;
  }
}

/* Payment Verification Text */
#waitingTitle {
  font-size: 28px;
  font-weight: bold;
  margin-top: 10px;
}

/* Refresh Warning */
.refresh-warning {
  margin-top: 25px;
  font-size: 14px;
  color: #1E3A8A;
  font-weight: bold;
}




/* ===== RECHARGE / BACK BUTTON ===== */
.recharge-back-btn {
  position: absolute;
  top: 8px;
  left: 16px;
  z-index: 10001;
  background: #1E3A8A;           /* deep blue */
  color: #ffffff;                 /* white text */
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(30,58,138,0.3); /* subtle blue shadow */
  transition: all 0.3s ease;
}

.recharge-back-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(30,58,138,0.5); /* stronger blue shadow */
}

/* ===== FULL-WIDTH ATM CARD STYLE LOGO ===== */
.recharge-logo img,
.withdraw-logo img,
.confirmation-logo img {
  width: 100%;
  max-width: none;
  height: 110px;
  border-radius: 16px;
  margin-bottom: 20px;
  object-fit: cover;
  display: block;
  margin-left: 0;
  margin-right: 0;
  border: 2px solid #1E3A8A;   /* deep blue border */
  background: linear-gradient(135deg, #1E3A8A, #162a6f); /* deep blue gradient */
  box-shadow: 0 6px 18px rgba(30,58,138,0.4), 0 0 12px rgba(56,92,168,0.3); /* subtle blue glow */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform: perspective(400px) rotateX(2deg) rotateY(-2deg); /* slight 3D tilt */
}

/* Hover effect: lift and glow */
.recharge-logo img:hover,
.withdraw-logo img:hover,
.confirmation-logo img:hover {
  transform: perspective(400px) rotateX(0deg) rotateY(0deg) scale(1.05);
  box-shadow: 0 10px 25px rgba(30,58,138,0.5), 0 0 15px rgba(56,92,168,0.4); /* lighter blue glow */
}



/* ================= FULLSCREEN OVERLAY ================= */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 58, 138, 0.35); /* transparent deep blue overlay */
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
  z-index: 9999;
  backdrop-filter: blur(8px);
}

/* ================= POPUP BOX ================= */
.popup-box {
  width: 100%;
  max-width: 420px;
  background: #ffffff; /* white */
  padding: 30px 25px;
  border-radius: 20px;
  text-align: center;
  position: relative;
  animation: popIn 0.3s ease;
  color: #1E3A8A; /* deep blue text */
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Header */
.popup-title {
  font-size: 24px;
  font-weight: bold;
  color: #1E3A8A; /* deep blue */
}

/* Highlight colors */
.highlight-green { color: #1E3A8A; font-weight: bold; }
.highlight-orange { color: #1E3A8A; font-weight: bold; }

/* Logo */
.popup-logo img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #1E3A8A; /* deep blue border */
  margin: 0 auto;
}

/* Welcome text */
.popup-welcome-text {
  font-size: 15px;
  line-height: 1.5;
  color: #1E3A8A; /* deep blue text */
}

/* Referral commissions */
.popup-commissions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  color: #1E3A8A; /* deep blue */
}

/* Telegram buttons container */
.telegram-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Telegram button */
.telegram-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #1E3A8A, #162a6f); /* deep blue gradient */
  color: #fff;
  padding: 14px 20px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.telegram-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(30,58,138,0.6),
              0 0 20px rgba(56,92,168,0.6); /* lighter blue glow */
}

/* Telegram icon */
.tg-icon {
  width: 28px;
  height: 28px;
}


/* Close button */
.popup-close {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 22px;
  cursor: pointer;
  color: #000;
  font-weight: bold;
}

/* Animation */
@keyframes popIn {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* Responsive */
@media (max-width: 450px) {
  .popup-box { padding: 20px 18px; border-radius: 16px; }
  .popup-title { font-size: 22px; }
  .popup-welcome-text { font-size: 14px; }
}



/* ===== 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: #000000;      /* black text */
  display: none;       /* show when active */
}

/* ===== FIXED HEADER ===== */
.product-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #006400; /* deep green header */
  padding: 12px 0;
  z-index: 1000;
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  color: #000000;      /* black text */
  box-shadow: 0 3px 8px rgba(0,128,0,0.2); /* green shadow */
}

.product-header i {
  margin-right: 8px;
  color: #000000; /* black icon */
}


/* ================= PRODUCT GRID ================= */
.product-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: 100%;
  margin-top: 20px;
  padding-bottom: 120px;
}

/* ================= PRODUCT CARD (REAL BOX) ================= */
.product-card {
  width: 100%;
  background: #ffffff;
  border-radius: 0;
  box-shadow: 0 6px 18px rgba(30, 58, 138, 0.25); /* deep blue shadow */
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ================= ATM-SLIM LOGO STRIP ================= */
.product-logo {
  width: 100%;
  height: 150px;
  background: linear-gradient(135deg, #1E3A8A, #3B5CA8); /* deep blue gradient */
  overflow: hidden;
}

.product-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ================= PRODUCT INFO ================= */
.product-info {
  padding: 16px;
  background: #e0f2ff; /* light sky blue background */
}

.product-info h3 {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 700;
  color: #1E3A8A; /* deep blue text */
}

/* ================= PRODUCT INFO GRID ================= */
.product-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}

/* ================= INFO BOXES ================= */
.info-box {
  background: rgba(30, 58, 138, 0.12); /* soft transparent deep blue */
  padding: 10px 6px;
  font-size: 13px;
  font-weight: 700;
  color: #1E3A8A; /* deep blue text */
  text-align: center;
  min-height: 50px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ================= SLIM INVEST BUTTON ================= */
.invest-btn {
  margin: 12px 16px 16px;
  padding: 9px 0;
  width: calc(100% - 32px);
  background: linear-gradient(135deg, #1E3A8A, #3B5CA8); /* deep blue button */
  color: #ffffff;
  border: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.5px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

/* Button hover effect */
.invest-btn:hover {
  background: #162a6f; /* darker blue on hover */
  transform: translateY(-2px);
}

/* ================= MOBILE ================= */
@media (max-width: 480px) {
  .product-logo {
    height: 75px;
  }

  .product-info {
    padding: 14px;
  }

  .product-info h3 {
    font-size: 16px;
  }

  .invest-btn {
    margin: 12px 14px 16px;
    font-size: 14px;
  }
}



/* Invite Page */
#invitePage {
  display: none;
  min-height: 100vh;
  background-color: #ffffff; /* white background */
  padding-top: 70px; /* space for fixed header */
  font-family: sans-serif;
  position: relative;
  overflow-y: auto;
}

/* Fixed Header */
.invite-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: #1E3A8A; /* deep blue */
  display: flex;
  align-items: center;
  padding: 0 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  z-index: 1000;
  color: white;
}

/* Back Button */
.invite-header button {
  font-size: 24px;
  margin-right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: white;
}

/* Header Title */
.invite-header h1 {
  font-size: 20px;
  font-weight: 600;
  color: white;
}

/* Big Referral Card */
.referral-card {
  background-color: #e0f2ff; /* light sky blue */
  color: #1E3A8A; /* deep blue text */
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  margin: 16px;
}

.referral-card h2 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #1E3A8A; /* deep blue title */
}

.referral-card p {
  font-size: 16px;
  color: #1E3A8A; /* deep blue text */
}

/* Referral Link Box */
.ref-box-container {
  display: flex;
  align-items: center;
  background-color: #f0f7ff; /* very light blue */
  padding: 12px;
  border-radius: 12px;
  margin: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.ref-box-container input#refLink {
  flex: 1;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: white;
  margin-right: 8px;
  font-size: 14px;
}

.ref-box-container button {
  background-color: #1E3A8A; /* deep blue button */
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}

.ref-box-container button:hover {
  background-color: #162a6f; /* darker blue on hover */
}

/* Grid container for team cards */
.team-card-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

/* Individual card */
.team-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #e0f2ff; /* light sky blue */
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  font-family: Arial, sans-serif;
  transition: transform 0.2s, box-shadow 0.2s;
}

/* Hover effect */
.team-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* User number on the left */
.card-number {
  font-size: 1rem;
  color: #1E3A8A; /* deep blue */
  text-align: left;
  flex: 1;
}


/* Amount earned on the right */
.card-commission {
  font-weight: bold;
  color: #1E3A8A; /* deep blue */
  text-align: right;
  min-width: 80px; /* keeps some space from the number */
}

/* Social Share Box */
.social-share-box {
  background: #ffffff; /* white background */
  border-radius: 12px;
  padding: 16px;
  margin: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Wrapper for each button + text */
.social-btn-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px; /* small space between button and text */
}

/* Social Share Buttons */
.social-btn-wrapper a {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 24px;
  text-decoration: none;
}

/* Social Colors */
.social-btn-wrapper a.whatsapp { background: #25d366; } /* leave green as is */
.social-btn-wrapper a.telegram { background: #26a5e4; } /* leave telegram blue */
.social-btn-wrapper a.facebook { background: #1877f2; } /* leave facebook blue */

/* Text under each button */
.share-text {
  font-size: 12px;
  color: #1E3A8A; /* deep blue text */
  text-align: center;
}

/* Commission Box */
.commission-box {
  background: #ffffff; /* white background */
  border-radius: 12px;
  padding: 16px;
  margin: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.commission-box h3 {
  font-weight: 600;
  margin-bottom: 8px;
  color: #1E3A8A; /* deep blue title */
}

.commission-box .level {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  color: #1E3A8A; /* deep blue text */
}

.commission-box .level:last-child {
  margin-bottom: 0;
}

/* View Team Button */
.commission-box #viewTeamBtn {
  width: 100%;                  
  margin-top: 16px;             
  padding: 12px 0;
  background-color: #1E3A8A !important; /* deep blue button */
  color: white !important;               /* white text */
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.commission-box #viewTeamBtn:hover {
  background-color: #162a6f !important; /* darker blue on hover */
}


/* ===== Withdraw Page ===== */
.withdraw-page {
  width: 100%;
  max-width: 400px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 16px 16px 40px 16px;
  background: #ffffff;            /* white page background */
  color: #1E3A8A;                /* deep blue text */
  font-family: sans-serif;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

/* ===== Header ===== */
.withdraw-header-fixed {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #ffffff;            /* white header background */
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.withdraw-header-fixed h2 {
  font-size: 20px;
  font-weight: 700;
  margin-left: 12px;
  color: #1E3A8A;                /* deep blue title */
}

.header-left-btn {
  background: #1E3A8A;           /* deep blue button */
  color: #ffffff;                /* white icon/text */
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Push content below header ===== */
.withdraw-page .withdraw-section,
.withdraw-page .bank-section,
.withdraw-page .withdraw-info-section {
  margin-top: 80px;              /* space for header */
}

/* ===== Withdraw Section ===== */
.withdraw-section {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.withdraw-label {
  font-weight: 700;
  color: #1E3A8A;                /* deep blue label */
  font-size: 14px;
}

.withdraw-balance {
  font-size: 28px;
  font-weight: 800;
  color: #1E3A8A;                /* deep blue amount */
  padding: 12px;
  border-radius: 16px;
  background: #e0f2ff;           /* light blue background */
  box-shadow: 0 6px 18px rgba(30,58,138,0.2); /* subtle blue shadow */
  text-align: center;
}

#withdrawAmountInput {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #ccc;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
}

.withdraw-submit-btn {
  padding: 14px 0;
  background: #1E3A8A;           /* deep blue button */
  color: #ffffff;                /* white text */
  font-weight: 700;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  font-size: 16px;
  width: 100%;
}

.withdraw-submit-btn:hover {
  background: #162a6f;           /* darker blue hover */
}


/* ===== Bank Section ===== */
.bank-section {
  margin-top: 32px;
}

.bank-section h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1E3A8A; /* deep blue */
  margin-bottom: 12px;
}

/* Full-width Bank Card */
.bank-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #ffffff;             /* white background */
  border-radius: 12px;             /* subtle rounding */
  width: 100%;                     
  box-shadow: 0 2px 6px rgba(0,0,0,0.08); /* soft shadow */
  border: 1px solid #1E3A8A;      /* deep blue border */
  box-sizing: border-box;
}

.bank-icon {
  font-size: 32px;
  color: #1E3A8A;                  /* deep blue icon */
}

.bank-info p {
  margin: 2px 0;
  color: #1E3A8A;                  /* deep blue text */
}

/* ===== Withdrawal Info Section ===== */
.withdraw-info-section {
  margin-top: 32px;
}

.withdraw-info-section h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1E3A8A; /* deep blue */
  margin-bottom: 8px;
}

.withdraw-info-section p {
  font-size: 14px;
  color: #1E3A8A; /* deep blue */
  margin: 4px 0;
}

/* RECORDS PAGE */
.records-page {
  padding: 0;                
  font-family: Arial, sans-serif;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  scroll-behavior: smooth;
  box-sizing: border-box;
}

/* Individual Transaction Card */
.record-card {
  width: 100vw;
  margin-bottom: 12px;
  padding: 12px 15px;
  background: #e0f2ff;            /* light blue card background */
  border-left: 6px solid #1E3A8A; /* deep blue accent border */
  border-radius: 12px;            
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 0.95rem;
  color: #1E3A8A;                 /* deep blue text */
  box-shadow: 0 2px 4px rgba(0,0,0,0.1); 
  box-sizing: border-box;
}

/* Card Content Text */
.record-transaction {
  color: #1E3A8A; /* deep blue */
  font-weight: bold;
}

.record-amount,
.record-status,
.record-time {
  color: #1E3A8A; /* deep blue */
  font-weight: bold;
}

/* Status Colors */
.status-success { color: #1E3A8A; } /* deep blue for success */
.status-pending { color: #94a3b8; } /* gray-blue for pending */
.status-failed  { color: #ef4444; } /* red for failed (keep alert red) */

/* Mobile adjustments */
@media (max-width: 480px) {
  .record-card {
    padding: 10px 12px;
  }
}

/* Page wrapper */
.page {
  width: 100%;
  min-height: 100vh; 
  box-sizing: border-box;
  overflow-y: auto;
  background-color: #ffffff; /* white page background */
}


/* Records Page Back Button - top-left */
.records-back-btn {
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 10001;
  background: #1E3A8A;      /* deep blue button */
  color: #ffffff;            /* white text */
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: transform 0.2s, background 0.2s;
}

.records-back-btn:hover {
  transform: translateY(-2px);
  background: #162a6f;       /* darker blue on hover */
}

/* Fixed Header */
.records-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: #1E3A8A;      /* deep blue header */
  color: #ffffff;            /* white text */
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  padding: 14px 0;
  z-index: 10000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}



/* ================= FULL PAGE ================= */
#myInvestmentPage {
  display: flex;
  flex-direction: column;
  height: 100vh; /* full viewport height */
  background: #ffffff;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden; /* prevent body scroll */
}

/* ================= FIXED HEADER ================= */
.investment-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: #1E3A8A;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-bottom: 2px solid #c0c0c0;
  box-sizing: border-box;
}

/* Header Title */
.investment-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: bold;
  color: #ffffff;
}

/* Back Button */
.investment-back-btn {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  z-index: 10100;
  background: #1E3A8A;
  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);
  transition: transform 0.2s ease, background 0.2s ease;
}

.investment-back-btn:hover {
  transform: translateY(-50%) translateY(-1px);
  background: #162a6f;
}

/* ================= SCROLLABLE CONTENT ================= */
.investment-content {
  margin-top: 80px; /* same as header height */
  padding: 12px 0 24px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* ================= INVESTMENT LIST ================= */
.investment-list {
  display: flex;
  flex-direction: column;
  gap: 14px; /* spacing only when multiple cards */
}

/* ================= INVESTMENT CARD ================= */
.investment-card {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  padding: 24px 20px;
  color: #1E3A8A;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 4px 6px 20px rgba(30, 58, 138, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
  min-height: 180px;
}

/* ================= CARD HEADER ================= */
.investment-card-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #ffffff;
  border-radius: 12px 12px 0 0;
  padding: 12px 16px;
  border-bottom: 1px solid #cccccc;
}

.plan-name {
  font-size: 18px;
  font-weight: 700;
  color: #1E3A8A;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-price {
  font-size: 16px;
  font-weight: 600;
  color: #1E3A8A;
}

/* ================= GRID UNDER HEADER ================= */
.investment-card-body {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}

.income-grid {
  display: contents;
}

.income-item {
  background: rgba(30, 58, 138, 0.12);
  color: #1E3A8A;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  font-weight: bold;
  font-size: 14px;
  min-height: 60px;
}

.label {
  font-size: 12px;
  font-weight: 600;
  color: #1E3A8A;
}

.value,
.countdown {
  font-size: 15px;
  font-weight: 700;
  color: #1E3A8A;
}

/* ================= CARD LOGO ================= */
.card-logo {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 60px;
  height: 60px;
}

.card-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #1E3A8A;
}

/* ================= MOBILE ================= */
@media (max-width: 480px) {
  .investment-card {
    padding: 20px 16px;
    min-height: 140px;
  }

  .plan-name {
    font-size: 16px;
  }

  .plan-price {
    font-size: 14px;
  }

  .income-item {
    font-size: 13px;
    padding: 10px;
    min-height: 50px;
  }
}




/* ================= CUSTOM ALERT ================= */
.custom-alert {
  position: fixed;
  top: 20px;
  right: 20px;

  background: linear-gradient(135deg, #1E3A8A, #162a6f); /* deep blue gradient */
  color: #ffffff;                                         /* white text */

  padding: 15px 20px;
  border-radius: 14px;

  font-weight: bold;
  font-size: 16px;

  box-shadow: 
    0 6px 18px rgba(30, 58, 138, 0.5),   /* deep blue shadow */
    0 0 12px rgba(56, 92, 168, 0.5),     /* lighter blue glow */
    0 0 20px rgba(100, 140, 200, 0.4);   /* soft sky-blue glow */

  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 99999;
}


/* ================= FULLSCREEN LOADER ================= */
#pageLoader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 58, 138, 0.3); /* transparent deep blue overlay */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  opacity: 1;
  transition: opacity 0.5s ease;
}

/* ================= LOADER DOTS ================= */
.loader {
  display: flex;
  gap: 12px;
}

.loader div {
  width: 16px;
  height: 16px;
  background: #1E3A8A; /* deep blue */
  border-radius: 50%;
  animation: bounce 0.6s infinite alternate;
  box-shadow: 0 0 12px rgba(30, 58, 138, 0.7); /* blue glow */
}

.loader div:nth-child(2) {
  animation-delay: 0.2s;
}

.loader div:nth-child(3) {
  animation-delay: 0.4s;
}

/* ================= ANIMATION ================= */
@keyframes bounce {
  from {
    transform: translateY(0);
    opacity: 0.6;
  }
  to {
    transform: translateY(-15px);
    opacity: 1;
  }
}



/* 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: #f8f8f8;
  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;
  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: #006400;
}

/* Smooth scroll animation */
@keyframes scrollReviews {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}


/* Slim Green Glow Theme Toggle Button */
#christmasToggle {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  cursor: pointer;
  font-size: 20px;             /* slightly smaller font */
  font-weight: bold;

  /* Slim box style */
  padding: 6px 18px;           /* slimmer padding */
  border-radius: 10px;         /* slightly rounded */
  background: #006400;         /* deep green background */
  color: #ffffff;              /* white text */
  text-align: center;
  border: 2px solid #00FF00;  /* bright green border */
  
  /* Glow effect */
  box-shadow: 0 0 6px #006400,
              0 0 12px #00A000,
              0 0 18px #32CD32,
              0 0 24px #00FF00,
              0 0 30px #7CFC00,
              0 0 36px #ADFF2F;

  transition: all 0.3s ease-in-out;
  font-family: 'Arial', sans-serif;
}

/* Glow animation */
@keyframes greenGlow {
  0% {
    box-shadow: 0 0 6px #006400,
                0 0 12px #00A000,
                0 0 18px #32CD32,
                0 0 24px #00FF00,
                0 0 30px #7CFC00,
                0 0 36px #ADFF2F;
  }
  50% {
    box-shadow: 0 0 12px #006400,
                0 0 24px #00A000,
                0 0 36px #32CD32,
                0 0 48px #00FF00,
                0 0 60px #7CFC00,
                0 0 72px #ADFF2F;
  }
  100% {
    box-shadow: 0 0 6px #006400,
                0 0 12px #00A000,
                0 0 18px #32CD32,
                0 0 24px #00FF00,
                0 0 30px #7CFC00,
                0 0 36px #ADFF2F;
  }
}

/* Apply animation */
#christmasToggle {
  animation: greenGlow 2s infinite ease-in-out;
}



/* ===== Profile Quick Actions Box ===== */
.profile-quick-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;            
  padding: 16px;                 /* increase padding to make box taller */
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin: 20px auto;             /* center on page */
  width: 100%;
  max-width: 360px;              /* limit width on large screens */
  min-height: 120px;             /* make it more square */
  box-sizing: border-box;
  flex-wrap: wrap;               /* wrap buttons if screen too small */
}

/* Buttons inside profile box */
.profile-quick-actions .qa-btn {
  flex: 1 1 45%;                 /* allow wrapping and keep square-ish */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
  border-radius: 14px;
  font-weight: 600;
  font-size: 13px;
  background: #1E3A8A;           
  color: #ffffff;                  
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  margin: 6px 4px;               /* add spacing between buttons */
  transition: all 0.3s ease;
  min-width: 120px;              /* prevent buttons from being too narrow */
}

/* Icon styling */
.profile-quick-actions .qa-btn i {
  font-size: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  color: #fff;                     
}

/* Individual button icon colors */
.qa-btn.recharge i {
  background: #ff6b6b;            
}

.qa-btn.withdraw i {
  background: #4ade80;            
}

/* Hover effect for profile buttons */
.profile-quick-actions .qa-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  background: #162a6f;            
}

/* Mobile adjustments */
@media (max-width: 450px) {
  .profile-quick-actions {
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    max-width: 320px;            /* narrower for small screens */
    min-height: 120px;           /* maintain square-ish box */
  }

  .profile-quick-actions .qa-btn {
    flex: 1 1 45%;               /* wrap nicely if screen is narrow */
    font-size: 12px;
    padding: 10px 0;
    margin: 4px;
  }

  .profile-quick-actions .qa-btn i {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
}
