

/* General Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

/* Base body styles */
body {
  background: linear-gradient(135deg, #ffffff, #e6f0ff); /* White-to-light-blue gradient */
  color: #ffffff; /* 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;
}





/* ================= GLASS FORM CONTAINER ================= */
.container {
  width: 400px;
  max-width: 90%;
  padding: 40px 30px;
  border-radius: 25px;
  position: relative;
  overflow: hidden;

  /* background image */
  background: url("photo.png") center / cover no-repeat;

  box-shadow: 0 8px 32px rgba(255, 0, 0, 0.3);
  color: #ffffff;

  display: none;
  flex-direction: column;
  text-align: center;

  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.3s ease;
}

/* glass layer */
.container::before {
  content: "";
  position: absolute;
  inset: 0;

  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);

  border: 1px solid rgba(255, 255, 255, 0.6);
  z-index: 0;
}

/* bring content above glass */
.container > * {
  position: relative;
  z-index: 1;
}

/* active state */
.container.active {
  display: flex;
}

.container:hover {
  transform: rotateY(2deg) rotateX(2deg);
}


/* ================= LOGO ================= */
.logo {
  display: flex;
  justify-content: center;
  margin-bottom: 25px;
}

.logo img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ff0000;
  box-shadow: 0 4px 20px rgba(255, 0, 0, 0.6);
}

/* ================= FORM ELEMENTS ================= */
form {
  display: flex;
  flex-direction: column;
}

label {
  margin: 10px 0 5px;
  font-weight: 600;
  color: #ff0000;
}

input {
  padding: 12px;
  border-radius: 15px;
  border: 1px solid #ff0000;
  outline: none;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.85);
  color: #ff0000;
  transition: all 0.3s ease;
}

input::placeholder {
  color: rgba(255, 0, 0, 0.6);
}

input:focus {
  border-color: #ff0000;
  box-shadow: 0 0 12px rgba(255, 0, 0, 0.5);
}

/* ================= BUTTON ================= */
button {
  margin-top: 20px;
  padding: 14px;
  background: linear-gradient(135deg, #ff0000, #cc0000);
  color: #ffffff;
  border: none;
  border-radius: 15px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 18px rgba(255, 0, 0, 0.5);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 0, 0, 0.7);
  background: linear-gradient(135deg, #cc0000, #ff0000);
}

/* ================= WELCOME TEXT ================= */
.welcome-text {
  margin-bottom: 25px;
}

.welcome-text h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 5px;
  color: #ffffff;
}

.welcome-text p {
  font-size: 14px;
  color: rgba(228, 228, 228, 0.8);
}

/* ================= TOGGLE TEXT ================= */
.toggle-text {
  margin-top: 15px;
  font-size: 14px;
  color: #ff0000;
  cursor: pointer;
}

/* ================= PHONE INPUT ================= */
.phone-input {
  display: flex;
  margin-top: 10px;
}

.phone-input .country-code {
  background: #ff0000;
  padding: 12px;
  border: 1px solid #ff0000;
  border-right: none;
  border-radius: 15px 0 0 15px;
  color: #ffffff;
  font-weight: bold;
  text-align: center;
}

.phone-input input {
  flex: 1;
  border-radius: 0 15px 15px 0;
  border: 1px solid #ff0000;
  padding: 12px;
  outline: none;
  background: rgba(255, 255, 255, 0.85);
  color: #ff0000;
}

.phone-input input:focus {
  border-color: #ff0000;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}


/* 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;                /* removed top margin */
  box-sizing: border-box;
  background: #ffffff;      /* white background */
  color: #000000;           /* black text */
}

/* Dashboard header */
.dashboard-header {
  position: fixed;          /* stick to viewport */
  top: 0;                   /* top of page */
  left: 50%;                /* center horizontally */
  transform: translateX(-50%);
  color: #ffffff;           /* white text */
  font-weight: bold;
  line-height: 1.3;
  font-size: 18px;
  margin: 0;
  padding: 12px 20px;
  z-index: 10000;           /* always on top */
  background: #ff0000;      /* red header */
  width: 100%;
  max-width: 600px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3); /* subtle red shadow */
}

/* Remove extra spacing in dashboard cards if used */
.dashboard-card h2.dashboard-header {
  margin: 0;
}


/* ===============================
   QUICK ACTIONS GRID (4 ALWAYS)
   =============================== */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* ALWAYS 4 columns */
  gap: 10px;
  width: 100%;
  margin: 10px 0;
  padding: 12px 8px;

  /* SILVER TO BLACK GRADIENT */
background: linear-gradient(135deg, #e5e7eb, #1f1f1f);


  border-radius: 16px;

  /* WAS BLUE SHADOW → NOW RED SHADOW */
  box-shadow: 0 6px 18px rgba(255, 0, 0, 0.25);
}

/* ===============================
   BUTTON STYLE
   =============================== */
.quick-actions-grid .qa-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  border-radius: 12px;
  font-weight: 600;
  font-size: 12px;

  /* TEXT = WHITE */
  color: #ffffff;

  /* WAS BLUE → NOW RED */
  background: linear-gradient(135deg, #ff0000, #cc0000);

  cursor: pointer;
  text-decoration: none;
}

/* ===============================
   ICON STYLE
   =============================== */
.quick-actions-grid .qa-btn i {
  font-size: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;

  /* ICON TEXT = WHITE */
  color: #ffffff;

  /* WAS BLUE → NOW DARK RED */
  background-color: #b30000;
}

/* ===============================
   TEXT STYLE
   =============================== */
.quick-actions-grid .qa-btn span {
  white-space: nowrap;
  color: #ffffff;
}

/* ===============================
   REMOVE LINK UNDERLINE
   =============================== */
.quick-actions-grid a {
  text-decoration: none;
}


/* ================= BALANCE FLYER ================= */

.balance-flyer {
  width: 100%;
  max-width: 400px;             /* nice card width */
  margin: 20px auto;            /* center and space from other elements */
  border-radius: 16px;           /* rounded corners */
  overflow: hidden;
  display: flex;                 
  justify-content: center;
  align-items: center;

  /* Box styling to make it stand out */
  background: #ff0000;              /* fallback color */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);  /* subtle shadow */
  border: 1px solid rgba(0,0,0,0.1);           /* soft border */
}

/* Flyer image */
.balance-flyer img {
  width: 100%;
  height: auto;                  /* maintain aspect ratio */
  max-width: 100%;
  display: block;

  object-fit: contain;           /* show full image */
  border-radius: 16px;           /* match container corners */
}



/* 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: #ff0000;  /* 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;
}


/* ================= FLYER CARD (EDGE TO EDGE) ================= */
.balance-flyer {
  width: 100vw;          /* touch left & right edges */
  height: 215px;         /* ATM card height */
  border-radius: 0;      /* no rounding so it touches edges */
  overflow: hidden;
  position: relative;
}


/* ================= SLIDER ================= */
.flyer-slider {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform 0.6s ease-in-out;
}

.flyer-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}


/* ===== BALANCE BAR – IMAGE + GLASS ===== */
.balance-bar {
  width: 100%;
  max-width: 400px;               /* match card width */
  height: 190px;
  border-radius: 22px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px auto;
  position: relative;
  overflow: hidden;

  /* GLASS LAYER ON TOP */
  background: rgba(255, 0, 0, 0.25);       /* red tint */
  backdrop-filter: blur(12px);             /* frosted glass */
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 0, 0, 0.4);
  box-shadow: 0 15px 35px rgba(255, 0, 0, 0.2); /* subtle glow */
  z-index: 1;
}

/* IMAGE BEHIND GLASS */
.balance-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("photo8.jpg") center / cover no-repeat;
  z-index: 0;                    /* behind the glass */
  filter: brightness(0.6);       /* darken for contrast */
}

/* TEXT & ICONS ABOVE GLASS */
.balance-text,
.balance-icon {
  position: relative;
  z-index: 2;                    /* above glass & image */
}

/* TEXT SIDE */
.balance-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* TITLE */
.balance-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.3px;
}

/* AMOUNT */
.balance-amount {
  font-size: 40px;
  font-weight: 800;
  color: #ffffff;                /* white for contrast on glass */
  margin-top: 10px;
}

/* ICON SIDE */
.balance-icon {
  font-size: 48px;
  color: #ffffff;
}

/* MOBILE ADJUSTMENTS */
@media (max-width: 450px) {
  .balance-bar {
    height: 170px;
    padding: 0 28px;
  }

  .balance-title {
    font-size: 16px;
  }

  .balance-amount {
    font-size: 32px;
  }

  .balance-icon {
    font-size: 40px;
  }
}


/* ================= BOTTOM NAV ================= */
.bottom-nav {
  position: fixed; /* fixed at bottom */
  bottom: 0;
  left: 0;
  width: 100%;

  /* SILVER TO BLACK GRADIENT */
  background: linear-gradient(135deg, #e5e7eb, #1f1f1f);

  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0;

  /* subtle shadow in dark tones */
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000; /* stays on top */
}

/* Individual nav items */
.bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;

  /* TEXT = WHITE */
  color: #ffffff;
  font-size: 12px;
  transition: color 0.2s ease;
}

/* RED ICONS */
.bottom-nav .nav-item img {
  width: 24px;
  height: 24px;
  margin-bottom: 3px;

  /* red glow / color */
  filter: drop-shadow(0 0 2px #ff0000) brightness(1.2) saturate(1.2);
}

/* Hover effect: keep text white for contrast */
.bottom-nav .nav-item:hover {
  color: #ffffff;
}


/* ===== PROFILE FIXED HEADER ===== */
.profile-header-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #ff0000; /* 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, 64, 255, 0.2); /* subtle 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; /* same as header height */
}


/* 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 background */
  color: #000000;      /* black text */
}

/* Profile Header Image - ATM card style */
.profile-header {
  width: 100%;
  height: 180px;             /* height of the "card" */
  margin-bottom: 20px;
  border-radius: 16px;       /* rounded corners like a card */
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,128,0,0.25); /* subtle green shadow */
  background: #ffffff;       /* white background */
}

.profile-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;          /* cover the div fully without stretching */
  display: block;
}

/* Title */
.profile-title {
  margin: 15px 0;
  font-size: 18px;
  font-weight: bold;
  color: #000000; /* black text */
  text-align: center;
}



/* ================= SETTINGS BOX ================= */

.settings-box {
  position: relative;
  padding: 16px;
  border-radius: 16px;
  margin-top: 15px;

  /* IMAGE BACKGROUND */
  background: url("photo3.jpg") center / cover no-repeat;

  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  overflow: hidden;
}

/* GLASS EFFECT OVERLAY */
.settings-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 0;
}

/* GRID – ALWAYS 3 COLUMNS */
.settings-list-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}


/* ================= SMALL CIRCULAR BUTTONS ================= */

.settings-item,
.logout-btn {
  width: 68px;                 /* 👈 CONTROL SIZE HERE */
  height: 68px;                /* 👈 CONTROL SIZE HERE */
  border-radius: 50%;
  background: #ff0000;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;

  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  text-align: center;

  cursor: pointer;
  box-shadow: 0 5px 12px rgba(0,0,0,0.35);
  transition: transform 0.2s ease, background 0.2s ease;

  justify-self: center;        /* center inside grid */
}

/* Hover / tap */
.settings-item:hover,
.logout-btn:hover {
  transform: scale(1.05);
  background: #ff0000;
}

/* Icons smaller */
.settings-item i,
.logout-btn i {
  font-size: 16px;
}

/* Different icon colors (based on position) */
.settings-item:nth-child(1) i { color: #22c55e; } /* green */
.settings-item:nth-child(2) i { color: #3b82f6; } /* blue */
.settings-item:nth-child(3) i { color: #facc15; } /* yellow */
.settings-item:nth-child(4) i { color: #a855f7; } /* purple */
.settings-item:nth-child(5) i { color: #06b6d4; } /* cyan */
.settings-item:nth-child(6) i { color: #ffffff; } /* logout */

/* ================= MOBILE SAFE ================= */
@media (max-width: 360px) {
  .settings-item,
  .logout-btn {
    font-size: 10px;
  }

  .settings-item i,
  .logout-btn i {
    font-size: 18px;
  }
}


/* CSS: hide by default */
#bottomNav {
  display: none;
}


/* ===== BANK PAGE ===== */
.bank-page {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 0 10px;
  display: none;

  /* white/silver page background */
  background: #e5e7eb;        
  border-radius: 12px;

  /* red shadow instead of blue */
  box-shadow: 0 4px 15px rgba(255,0,0,0.3),
              0 -2px 12px rgba(204,0,0,0.15);

  color: #000000;             
  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;

  /* RED GRADIENT instead of blue */
  background: linear-gradient(135deg, #ff0000, #cc0000, #990000);

  padding: 6px 10px; 
  box-shadow: 0 2px 6px rgba(255,0,0,0.2);
  height: 40px;
  font-size: 14px;
}

/* Header Title */
.bank-header h2 {
  font-size: 20px;
  color: #ffffff;  /* white text */
  flex-grow: 1;
  text-align: center;
  margin: 0;
}

/* Back Button */
.back-btn {
  background: #000000;        /* red button */
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 18px;
  color: #ffffff;             /* white text */
  cursor: pointer;

  /* red shadow instead of blue */
  box-shadow: 3px 3px 8px rgba(255,0,0,0.3),
              -2px -2px 6px rgba(204,0,0,0.15);

  transition: transform 0.2s, background 0.3s;
}

.back-btn:hover {
  transform: translateY(-2px);
  background: #cc0000;        /* lighter red hover */
}

/* Form Section */
.bank-form {
  display: flex;
  flex-direction: column;
  gap: 20px;

  /* white/silver form background */
  background: #e5e7eb;
  padding: 20px;
  border-radius: 12px;

  /* red inset shadow */
  box-shadow: 0 0 10px rgba(255,0,0,0.2);
  color: #000000;
}

/* Form Section Headers */
.form-section h3 {
  color: #ff0000;             /* red header */
  font-weight: bold;
  margin-bottom: 10px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #000000;             /* black labels */
}

/* Inputs & Selects */
select, input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ff0000; /* red border */
  margin-bottom: 10px;
  font-size: 15px;
  background: #ffffff;        /* white input */
  color: #000000;
  box-shadow: inset 2px 2px 5px rgba(255,0,0,0.2);
}

/* Update Button */
.update-bank-btn {
  padding: 15px;
  font-size: 16px;
  font-weight: bold;

  /* red gradient */
  background: linear-gradient(135deg, #ff0000, #cc0000, #990000);

  color: #ffffff;             /* white text */
  border: none;
  border-radius: 12px;

  /* red shadow */
  box-shadow: 5px 5px 15px rgba(255,0,0,0.4),
              -5px -5px 15px rgba(204,0,0,0.2);

  cursor: pointer;
  transition: transform 0.2s, background 0.3s;
}

.update-bank-btn:hover {
  transform: translateY(-3px);
  background: #cc0000;        /* lighter red hover */
}

/* Instructions Container */
.instructions {
  background: #e5e7eb;        /* silver background */
  padding: 20px;
  border-radius: 12px;

  /* red inset shadow */
  box-shadow: inset 2px 2px 5px rgba(255,0,0,0.2);

  color: #000000;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.instructions h3 {
  margin-top: 0;
  color: #ff0000;             /* red */
  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: #ffe5e5;        /* very light red */
  padding: 10px 15px;
  border-radius: 8px;
  border-left: 4px solid #ff0000; /* red highlight */
  line-height: 1.4;
  font-size: 15px;
  color: #000000;
}

/* Success Message */
.success-message {
  text-align: center;
  font-weight: bold;
  color: #ff0000;             /* red text */
  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 */
}


/* ===== FIXED RECHARGE HEADER – SILVER/BLACK/RED ===== */
.recharge-header-fixed {
  position: fixed;        
  top: 0;
  left: 50%;              
  transform: translateX(-50%);
  width: 100%;
  max-width: 400px;       
  background: rgba(0,0,0,0.6);   /* black glass background */
  backdrop-filter: blur(10px);    /* frosted effect */
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,0,0,0.6); /* red underline */
  z-index: 10000;         
  text-align: center;
  padding: 12px 20px;            
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  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 – DARK CARD ===== */
.recharge-page {
  width: 100%;
  max-width: 400px;
  margin: 60px auto 0;     
  padding: 15px;
  text-align: center;
  display: none;
  color: #ffffff;              /* white text */
  background: rgba(50,50,50,0.85); /* dark silver/black card */
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.5); /* subtle shadow */
}

/* Logo */
.recharge-logo img {
  width: 80px;
  height: 80px;
  border-radius: 12px; 
  margin-bottom: 20px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(255,0,0,0.5); /* red glow */
}

/* Header & Subheader */
.recharge-header {
  font-size: 22px;
  color: #ffffff;      
  margin-bottom: 5px;
  font-weight: bold;
}

.recharge-subheader {
  font-size: 16px;
  color: #ffffff;       
  margin-bottom: 20px;
}

/* ===== AMOUNT GRID ===== */
.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

/* Amount Button with Red Gradient & Glow */
.amount-option {
  background: linear-gradient(135deg, #ff0000, #cc0000); /* red gradient */
  padding: 12px 0;
  border-radius: 12px;
  font-weight: bold;
  color: #ffffff;
  text-align: center;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 12px rgba(255,0,0,0.3), 0 0 10px rgba(255,100,100,0.2);
  transition: all 0.3s;
}

.amount-option:hover,
.amount-option.active {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(255,0,0,0.5), 0 0 12px rgba(255,100,100,0.3);
}

/* ===== CUSTOM AMOUNT INPUT ===== */
.custom-amount input {
  width: 100%;
  padding: 12px 15px;
  font-size: 16px;
  margin-bottom: 20px;
  border-radius: 12px;
  border: 1px solid #ff0000;  /* red border */
  background: rgba(50,50,50,0.85); /* dark background */
  color: #ffffff;              /* white text */
}

/* ===== DEPOSIT BUTTON ===== */
.deposit-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #ff0000, #cc0000); /* red gradient */
  color: #ffffff;
  font-weight: bold;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 17px;
  box-shadow: 0 4px 12px rgba(255,0,0,0.3), 0 0 15px rgba(255,100,100,0.3);
  transition: all 0.3s;
}

.deposit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255,0,0,0.5), 0 0 18px rgba(255,100,100,0.4);
}



/* ===== RECHARGE CONFIRMATION PAGE ===== */
.recharge-confirmation-page {
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 20px 15px;
  display: none;
  overflow-y: auto;
  text-align: center;
  background: rgba(30,30,30,0.85);   /* dark glassy background */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;                     /* white text */
  box-sizing: border-box;
}

/* Account Details Card */
.account-details {
  background: rgba(255,0,0,0.25);     /* red glass overlay */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 25px;
  color: #ffffff;                     /* white text inside card */
  box-shadow: 0 4px 12px rgba(255,0,0,0.3); /* subtle red glow */
}

/* Detail Rows */
.detail-row {
  display: flex;
  align-items: center;
  font-weight: bold;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,0,0,0.3);  /* subtle red separator */
  position: relative;
}

.detail-row:last-child {
  border-bottom: none;
}

/* Copy Button */
.copy-btn {
  background: rgba(255,0,0,0.7);      /* red glass button */
  border: none;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  color: #ffffff;
  font-weight: bold;
  transition: 0.3s;
  
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.copy-btn:hover {
  box-shadow: 0 0 8px #ff0000, 0 0 12px #ff4d4d, 0 0 16px #ff9999; /* red glow on hover */
}

/* Confirm Payment Button */
.confirm-payment-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #ff0000, #cc0000); /* red gradient */
  color: #ffffff;
  font-weight: bold;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 17px;
  box-shadow: 0 4px 12px rgba(255,0,0,0.3), 0 0 15px rgba(255,100,100,0.3);
  transition: all 0.3s;
}

.confirm-payment-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255,0,0,0.5), 0 0 18px rgba(255,100,100,0.4);
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 450px) {
  .amount-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .deposit-btn, .amount-option {
    font-size: 15px;
    padding: 12px 0;
  }
  .recharge-confirmation-page {
    padding: 15px 10px;
  }
  .detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}


/* ===== WAITING PAGE ===== */
.waiting-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: rgba(30,30,30,0.85);       /* dark glassy background */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
  color: #ffffff;                         /* white text */
}

/* Countdown */
.countdown {
  font-size: 28px;
  font-weight: bold;
  color: #ff0000;                         /* red countdown text */
  margin-top: 15px;
}

/* Status Icon */
.status-icon {
  font-size: 70px;
  margin-bottom: 15px;
  color: #ff0000;                         /* red icon */
}

/* Refresh Warning */
.refresh-warning {
  margin-top: 15px;
  font-size: 13px;
  color: #ffffff;                         /* white warning text */
  font-weight: bold;
}

/* ===== RECHARGE / BACK BUTTON ===== */
.recharge-back-btn {
  position: absolute;
  top: 4px;
  left: 16px;
  z-index: 10001;
  background: rgba(255,0,0,0.7);          /* red glass button */
  color: #ffffff;                          /* white text */
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(255,0,0,0.3);
  transition: transform 0.2s, background 0.2s;
}

.recharge-back-btn:hover {
  transform: translateY(-2px);
  background: rgba(255,0,0,0.9);          /* darker red hover */
}

/* ===== LOGO STYLING ===== */
.recharge-logo img,
.withdraw-logo img,
.confirmation-logo img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 20px;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border: 2px solid #ff0000;              /* red border */
  box-shadow: 0 4px 12px rgba(255,0,0,0.3); /* red glow */
  background: rgba(255,255,255,0.9);       /* semi-transparent white behind logo */
}


/* ================= FULLSCREEN OVERLAY ================= */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  /* dark silver/black semi-transparent overlay */
  background: rgba(30, 30, 30, 0.85);

  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
  z-index: 9999;
  backdrop-filter: blur(6px);
}

/* ================= POPUP BOX ================= */
.popup-box {
  width: 100%;
  max-width: 420px;
  min-height: 400px;

  /* white/silver popup background */
  background: #e5e7eb;

  padding: 30px 25px;
  border-radius: 20px;
  text-align: center;
  position: relative;
  animation: popIn 0.3s ease;

  /* red text */
  color: #ff0000;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;

  /* red shadow */
  box-shadow:
    0 8px 20px rgba(0,0,0,0.3),
    0 0 15px rgba(255,0,0,0.4);
}

/* Mobile */
@media (max-width: 450px) {
  .popup-box {
    padding: 25px 20px;
    border-radius: 16px;
    min-height: 350px;
  }
}

/* ================= LOGO ================= */
.popup-logo img {
  width: 80px;
  height: 80px;
  margin-bottom: 12px;
  border-radius: 50%;
  object-fit: cover;

  /* silver ring */
  border: 3px solid #e5e7eb;
}

/* Welcome text */
.popup-welcome-text {
  font-size: 14px;
  color: #ff0000;                   /* red text */
  text-align: center;
  margin: 12px 0 20px;
  line-height: 1.5;
}

/* ================= TELEGRAM BUTTON ================= */
.telegram-btn {
  display: flex;
  justify-content: center;
  align-items: center;

  /* red button */
  background: #ff0000;
  color: #ffffff;
  padding: 15px 25px;
  border-radius: 14px;
  margin: 10px auto;
  text-decoration: none;

  font-weight: bold;
  font-size: 16px;
  width: 260px;
  height: 60px;

  /* red shadow */
  box-shadow:
    0 6px 20px rgba(0,0,0,0.3),
    0 0 15px rgba(255,0,0,0.4);

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Icon spacing */
.telegram-btn .tg-icon {
  margin-right: 12px;
  width: 30px;
  height: 30px;
}

/* Hover */
.telegram-btn:hover {
  transform: translateY(-3px);
  box-shadow:
    0 10px 25px rgba(0,0,0,0.4),
    0 0 20px rgba(255,0,0,0.5);
}

/* ================= CLOSE BUTTON ================= */
.popup-close {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 22px;
  cursor: pointer;

  /* white close button */
  color: #000000;
  font-weight: bold;
}

/* ================= ANIMATION ================= */
@keyframes popIn {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* ===== PRODUCT PAGE – SILVER BLACK GLASS ===== */
.product-page {
  width: 100%;
  padding: 20px;
  padding-bottom: 80px;
  padding-top: 65px;   /* space for fixed header */
  min-height: 100vh;
  color: #ffffff;       /* white text */

  /* Silver-black glass effect */
  background: rgba(50,50,50,0.85);  /* dark silver tint */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2); /* subtle outline */
  border-radius: 12px;

  display: none;        /* show when active */
}


/* ===== FIXED HEADER ===== */
.product-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #ff0000; /* 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: grid;
  grid-template-columns: 1fr; /* single column */
  gap: 20px;
  width: 100%;
  margin-top: 20px;

  /* space for bottom nav */
  padding-bottom: 120px;
}

/* ================= PRODUCT CARD (ATM STYLE) ================= */
.product-card {
  position: relative;

  /* silver → black gradient card background */
  background: linear-gradient(135deg, #e5e7eb, #1f1f1f);

  border-radius: 22px; /* ATM card curve */
  padding: 24px 20px 20px;

  /* default text white */
  color: #ffffff;

  /* subtle red/black shadow */
  box-shadow: 4px 6px 20px rgba(255,0,0,0.18);

  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 200px;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 8px 10px 28px rgba(255,0,0,0.28); /* stronger red shadow */
}

/* ================= PRODUCT LOGO (TOP LEFT SQUARE) ================= */
.product-logo {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 52px;
  height: 52px;
  border-radius: 8px;

  /* red logo background */
  background: #ff0000;

  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px; /* match container */
}

/* ================= PRODUCT TITLE ================= */
.product-card h3 {
  margin: 8px 0 12px;
  padding-left: 72px;
  font-size: 18px;

  /* keep title white */
  color: #ffffff;
}

/* ================= INFO GRID ================= */
.product-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 columns */
  grid-template-rows: auto auto;  /* 2 rows */
  gap: 10px;
  width: 100%;
  margin-top: 8px;
}

.info-box {
  padding: 12px;
  border-radius: 12px;

  /* red grid background */
  background: #ff0000;

  /* white text */
  color: #ffffff;

  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  min-height: 60px;
  text-align: center;
}

/* ================= INVEST BUTTON (FULL WIDTH BOTTOM) ================= */
.invest-btn {
  margin-top: 16px;           /* space between grid above and button */
  padding: 12px 0;            /* vertical padding, full width */
  font-size: 14px;
  font-weight: bold;

  /* red button */
  background: #ff0000;

  /* white text */
  color: #ffffff;

  border-radius: 12px;
  border: none;
  cursor: pointer;

  width: 100%;                /* full width */
  text-align: center;         /* center text */
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.invest-btn:hover {
  transform: translateY(-2px);

  /* red shadow hover */
  box-shadow: 0 6px 16px rgba(255,0,0,0.25);
}


/* ================= MOBILE RESPONSIVE ================= */
@media (max-width: 480px) {
  .product-card {
    padding: 20px 16px 16px;
    border-radius: 20px;
    min-height: 180px;
  }

  .product-logo {
    width: 46px;
    height: 46px;
  }

  .product-card h3 {
    font-size: 16px;
    padding-left: 66px;
  }

  .info-box {
    font-size: 13px;
    padding: 10px;
    min-height: 50px;
  }

  .invest-btn {
    padding: 8px 16px;
    font-size: 13px;
  }
}








/* ================= FLASH PRODUCT (UNIQUE DESIGN) ================= */
.flash-product {
  position: relative;
  background: linear-gradient(135deg, #000000, #ff0000);
  border-radius: 26px;
  padding: 28px 22px 24px;
  color: #ffffff;

  /* blinking / glowing effect */
  animation: pulseFlash 2s infinite;

  /* box style */
  border: 3px solid gold;
  box-shadow: 0 0 25px rgba(255,0,0,0.5);
  margin: 20px auto;
  max-width: 350px; /* optional: center it nicely */
}

/* FLASH BADGE + TIMER */
.flash-badge {
  position: absolute;
  top: -12px;
  right: -12px;
  background: gold;
  color: #000;
  font-size: 12px;
  font-weight: bold;
  padding: 6px 10px;
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);

  display: flex;
  align-items: center;
  gap: 6px; /* space between LIMITED and timer */
}

/* TITLE */
.flash-product h3 {
  font-size: 20px;
  margin-bottom: 16px;
  text-align: center;
  color: #fff;
  font-weight: bold;
}

/* DETAILS GRID */
.flash-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.flash-details div {
  background: rgba(0,0,0,0.5);
  border-radius: 12px;
  padding: 12px;
  font-weight: bold;
  text-align: center;
}

/* BUTTON */
.flash-btn {
  background: gold;
  color: #000;
  font-size: 15px;
  width: 100%;
  padding: 12px 0;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.flash-btn:hover {
  box-shadow: 0 0 20px gold;
  transform: translateY(-2px);
}

/* PULSING / BLINKING ANIMATION */
@keyframes pulseFlash {
  0% { box-shadow: 0 0 18px rgba(255,0,0,0.4); }
  50% { box-shadow: 0 0 30px rgba(255,0,0,0.8); }
  100% { box-shadow: 0 0 18px rgba(255,0,0,0.4); }
}

/* MOBILE RESPONSIVE */
@media (max-width: 480px) {
  .flash-product {
    padding: 20px 16px 16px;
    border-radius: 20px;
    max-width: 90%;
  }

  .flash-product h3 {
    font-size: 18px;
  }

  .flash-details div {
    font-size: 13px;
    padding: 10px;
  }

  .flash-btn {
    font-size: 14px;
    padding: 10px 0;
  }

  .flash-badge {
    font-size: 11px;
    padding: 4px 8px;
  }
}



/* Fixed My Team header - always visible */
.team-header {
  position: fixed;          /* fixes header to viewport */
  top: 0;                   /* stick to top */
  left: 0;                  /* full width from left */
  width: 100%;
  max-width: 950px;

  /* silver-black header */
  background: linear-gradient(135deg, #e5e7eb, #1f1f1f);

  z-index: 9999;            /* always on top */
  text-align: center;
  padding: 12px 20px;

  /* subtle shadow */
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  border-bottom: 2px solid #000000; /* black border */
}

/* Header title */
.team-header h2 {
  margin: 0;

  /* white text */
  color: #ffffff;

  font-size: 20px;
  font-weight: bold;
}

/* Back button fixed on header top-left */
.invite-back-btn {
  position: fixed;           /* fixed relative to viewport */
  top: 12px;                 /* same as header padding */
  left: 12px;                /* top-left corner */

  /* red button */
  background: #ff0000;

  /* white text */
  color: #ffffff;

  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;            /* above header */
  box-shadow: 2px 2px 6px rgba(0,0,0,0.3);
  transition: transform 0.2s, background 0.2s, color 0.2s;
}

.invite-back-btn:hover {
  background: #cc0000;       /* darker red hover */
  transform: translateY(-2px);
}

/* Add page padding so content doesn't go under header */
.invite-page {
  padding-top: 60px;          /* same height as header */
}


/* Back Button inside Team Header */
.team-header .back-btn {
  position: absolute;       /* position relative to header */
  top: 12px;                /* distance from top of header */
  left: 12px;               /* distance from left edge */

  /* silver-black glass */
  background: rgba(50,50,50,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);

  /* white text */
  color: #ffffff;

  border: none;
  padding: 8px 12px;        /* fits nicely in header */
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.3);
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.team-header .back-btn:hover {
  background: rgba(40,40,40,0.85); /* darker silver-black hover */
  transform: translateY(-2px);
  box-shadow: 3px 3px 10px rgba(0,0,0,0.4);
}



/* === INVITE & TEAM PAGES === */
.invite-page, .team-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 20px;
  min-height: 100vh;

  /* silver-black background */
  background: linear-gradient(135deg, #e5e7eb, #1f1f1f);

  /* default text white for contrast */
  color: #ffffff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow: hidden;
}

/* === Header === */
.invite-header {
  text-align: center;
  margin-bottom: 25px;
}

.invite-logo {
  width: 90px;
  height: 90px;
  border-radius: 50%;

  /* subtle red-black glow instead of blue-white */
  box-shadow: 0 6px 20px rgba(255,0,0,0.3), 0 0 15px rgba(0,0,0,0.3);
  margin-bottom: 12px;
  transition: transform 0.3s;
}

.invite-logo:hover {
  transform: scale(1.05);
}

/* === Container === */
.invite-container {
  width: 100%;
  max-width: 950px;

  /* silver-black container background */
  background: linear-gradient(135deg, #e5e7eb, #1f1f1f);

  border-radius: 18px;
  padding: 30px;

  /* subtle red shadow */
  box-shadow: 0 10px 30px rgba(255,0,0,0.2), 0 -5px 20px rgba(0,0,0,0.2);

  display: flex;
  flex-direction: column;
  align-items: center;
}

/* === Referral Box === */
.ref-box {
  display: flex;
  width: 100%;
  gap: 12px;
  margin-bottom: 25px;
  padding: 14px;

  /* silver-black outer box */
  background: linear-gradient(135deg, #e5e7eb, #1f1f1f);
  border-radius: 16px;

  box-shadow: inset 2px 2px 6px rgba(255,0,0,0.2), inset -2px -2px 6px rgba(0,0,0,0.1);
}

.ref-box input {
  flex: 1;
  padding: 12px;
  border-radius: 10px;

  /* red input background for contrast */
  background: #ff0000;

  /* white text */
  color: #ffffff;
  font-weight: 500;

  border: 1px solid #ff0000; /* red border */
  outline: none;
}

.ref-box button {
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: bold;
  border: none;

  /* red button */
  background: #ff0000;

  /* white text */
  color: #ffffff;

  cursor: pointer;
  transition: transform 0.2s, background 0.3s, color 0.3s;
}

.ref-box button:hover {
  transform: translateY(-2px) scale(1.03);

  /* darker red hover */
  background: #cc0000;
  color: #ffffff;
}

/* === Referral Levels Grid === */
.ref-levels {
  display: grid;
  width: 100%;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 5px;
}

.ref-card {
  /* red card background */
  background: #ff0000;

  padding: 20px;
  border-radius: 16px;
  text-align: center;
  font-weight: 600;

  /* white text */
  color: #ffffff;

  /* red-black shadow */
  box-shadow: 4px 4px 15px rgba(255,0,0,0.3), -4px -4px 10px rgba(0,0,0,0.2);

  transition: transform 0.2s, box-shadow 0.3s;
}

.ref-card:hover {
  transform: translateY(-2px) scale(1.03);

  box-shadow: 6px 6px 20px rgba(255,0,0,0.4), -5px -5px 15px rgba(0,0,0,0.25);
}

/* === Team Button === */
.team-btn {
  margin-top: 20px;
  padding: 16px 0;
  width: 100%;
  max-width: 360px;
  border-radius: 16px;
  border: none;
  font-weight: bold;

  /* silver-black glass */
  background: rgba(50,50,50,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);

  /* white text */
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.2s, background 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.team-btn:hover {
  transform: translateY(-2px) scale(1.03);
  background: rgba(40,40,40,0.85); /* darker silver-black hover */
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}

/* === Back Button === */
.back-btn {
  background: none;
  border: none;
  font-size: 16px;
  font-weight: bold;

  /* white text for contrast */
  color: #ffffff;
  margin-bottom: 20px;
  cursor: pointer;
  transition: transform 0.2s, color 0.3s;
}

.back-btn:hover {
  color: #ff0000; /* red hover */
  transform: translateX(-2px);
}



/* Grid container */
.team-card-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  margin: 0; 
}

/* Individual card */
.team-card {
  display: grid;
  grid-template-columns: 8px 1fr auto; /* left strip, number, commission */
  align-items: center;
  padding: 16px 16px 16px 12px;
  min-height: 70px;

  /* red card background */
  background: #ff0000;

  border-radius: 0;

  /* subtle red-black shadow */
  box-shadow: 0 6px 18px rgba(255,0,0,0.15);
  font-size: 15px;

  /* white text inside card */
  color: #ffffff;
}

/* Silver-black left 3D strip */
.team-card::before {
  content: "";
  display: block;
  width: 8px;

  /* silver-black gradient */
  background: linear-gradient(145deg, #e5e7eb, #1f1f1f);

  border-radius: 4px 0 0 4px;
  margin-right: 12px;
}

/* Number */
.card-number {
  font-weight: 600;
  color: #ffffff; /* white text */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Commission */
.card-commission {
  font-weight: 700;
  color: #ffffff; /* white text */
  margin-left: 12px;
  white-space: nowrap;
  font-size: 15px;
}

/* Empty state */
.empty-team {
  text-align: center;
  padding: 30px;

  /* white text */
  color: #ffffff;
  font-size: 15px;
}

/* === Responsive Adjustments === */
@media (max-width: 768px) {
  .ref-levels {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
  }
  .invite-container {
    padding: 20px;
  }
  .ref-box input {
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .invite-logo {
    width: 70px;
    height: 70px;
  }
  .team-btn {
    max-width: 100%;
  }
  .ref-levels {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}


/* Outer silver-black container */
.info-outer-box {
  background: linear-gradient(135deg, #e5e7eb, #1f1f1f); /* silver-black */
  padding: 16px;
  border-radius: 12px;
  margin-top: 20px;
}

/* Keep boxes side-by-side ALWAYS */
.info-inner-box {
  display: flex;
  gap: 12px;
}

/* Shared info box styles */
.info-box {
  background-color: #ff0000; /* red box */
  color: #ffffff;             /* white text */
  flex: 1;
  padding: 14px 10px;
  border-radius: 10px;
  text-align: center;
}

/* Title line */
.box-title {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  white-space: nowrap; /* prevents breaking on small screens */
}

/* Percentage line */
.box-value {
  font-size: 20px;
  font-weight: 700;
}

/* Letter spacing rules */
.level-1 .box-title {
  letter-spacing: 0.2em; /* 20% style */
}

.level-2 .box-title {
  letter-spacing: 0.02em; /* 2% style */
}

/* Referral Share Box */
.ref-share-box {
  width: 100%;
  max-width: 950px;

  /* silver-black background */
  background: linear-gradient(135deg, #e5e7eb, #1f1f1f);

  padding: 25px;
  border-radius: 18px;

  /* red-black shadows */
  box-shadow: 0 10px 25px rgba(255,0,0,0.2), 0 -5px 20px rgba(0,0,0,0.2);

  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 25px;
}

.ref-share-box h4 {
  margin-bottom: 20px;

  /* white text */
  color: #ffffff;

  font-weight: bold;
  text-align: center;
}

/* Grid Container */
.ref-share-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columns */
  gap: 12px;
  justify-items: center;
  align-items: center;
  width: 100%;
}

/* Share button styles */
.share-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  border-radius: 12px;

  /* red button */
  background: #ff0000;

  /* white icon/text */
  color: #ffffff;

  font-size: 24px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.3s;
}

/* Hover effect */
.share-btn:hover {
  transform: translateY(-3px) scale(1.1);

  /* darker red hover */
  background: #cc0000;

  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Brand colors override for social (optional, can keep red instead) */
.share-btn.facebook { background: #ff0000; color: #ffffff; }
.share-btn.twitter { background: #ff0000; color: #ffffff; }
.share-btn.whatsapp { background: #ff0000; color: #ffffff; }
.share-btn.telegram { background: #ff0000; color: #ffffff; }


/* ===== WITHDRAW PAGE STYLES ===== */
.withdraw-page {
  width: 100%;
  height: 100vh;
  padding: 15px;
  background: #ffffff; /* page background white */
  color: #000000;      /* default text black */
  overflow-y: auto;
  display: none;
}


/* ===== HEADER ===== */
.withdraw-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 15px 20px;
  background: rgba(30,30,30,0.85);       /* dark glassy black */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 0 0 8px 8px;
  color: #ffffff;
}

/* Back button inside header */
.withdraw-back-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255,0,0,0.7);         /* red glass button */
  color: #ffffff;
  border: none;
  font-size: 20px;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(255,0,0,0.3);
  transition: transform 0.2s, background 0.2s, color 0.2s;
}

.withdraw-back-btn:hover {
  background: rgba(255,0,0,0.9);         /* darker red hover */
  transform: translateY(-2px);
}

/* Header title */
.withdraw-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: bold;
  color: #ffffff;                        /* white text */
}

/* ===== LOGO ===== */
.withdraw-logo img {
  width: 100%;
  height: 200px;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid #ff0000;            /* red border */
  margin: -10px 0 0 0;
  box-shadow: 0 4px 12px rgba(255,0,0,0.3); /* subtle red glow */
  background: rgba(255,255,255,0.9);    /* semi-transparent white behind logo */
}

/* ===== BALANCE CARD ===== */
.withdraw-card {
  background: rgba(50,50,50,0.85);       /* dark silver/black */
  color: #ffffff;                        /* white text */
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  margin: 10px 0;
}

.withdraw-label {
  font-size: 14px;
  opacity: 0.9;
}

.withdraw-balance {
  font-size: 28px;
  font-weight: bold;
}

/* ===== BANK CARD ===== */
.bank-display-card {
  background: rgba(50,50,50,0.85);       /* dark silver/black card */
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3); /* subtle shadow */
  border-left: 4px solid #ff0000;        /* red accent */
  margin: 10px 0;
  color: #ffffff;                         /* white text */
}

.bank-name {
  font-size: 18px;
  font-weight: bold;
}

.bank-account-number,
.bank-account-name {
  font-size: 16px;
  margin: 5px 0;
  font-weight: 600;
}

/* ===== WITHDRAWAL FORM ===== */
.withdraw-form {
  margin-top: 20px;
}

.withdraw-form input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ff0000;             /* red border */
  border-radius: 10px;
  margin-top: 5px;
  font-size: 16px;
  background: rgba(255,255,255,0.9);     /* white semi-transparent */
  color: #000000;
}

.withdraw-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #ff0000, #cc0000); /* red gradient */
  color: #ffffff;
  padding: 14px;
  border: none;
  margin-top: 12px;
  font-size: 17px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s;
}

.withdraw-submit-btn:hover {
  opacity: 0.9;
}

/* Withdraw Info */
.withdraw-info {
  font-size: 13px;
  text-align: center;
  margin-top: 8px;
  color: #ffffff;
}

/* ===== INSTRUCTIONS BOX ===== */
.withdraw-instructions {
  background: rgba(50,50,50,0.85);        /* dark silver/black */
  color: #ffffff;
  border-left: 4px solid #ff0000;         /* red accent */
  padding: 15px 20px;
  margin-top: 20px;
  margin-bottom: 80px;
  border-radius: 8px;
  font-family: Arial, sans-serif;
}

.withdraw-instructions h3 {
  color: #ffffff;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.withdraw-instructions ol {
  padding-left: 20px;
  margin: 0;
}

.withdraw-instructions li {
  margin-bottom: 8px;
  line-height: 1.4;
  font-size: 0.95rem;
}

/* ===== FIXED HEADER ===== */
.withdraw-header-fixed {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 400px;
  background: rgba(30,30,30,0.85);        /* dark glass */
  border-bottom: 2px solid #ff0000;       /* red underline */
  z-index: 10000;
  text-align: center;
  padding: 15px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.withdraw-header-fixed .header-icon {
  font-size: 24px;
  color: #ffffff;
}

.withdraw-header-fixed h2 {
  margin: 0;
  color: #ffffff;
  font-size: 20px;
  font-weight: bold;
}

/* ===== TOP SPACING FOR LOGO UNDER FIXED HEADER ===== */
.withdraw-page .withdraw-logo {
  margin-top: 90px;
}

/* ===== MOBILE RESPONSIVE ===== */
@media screen and (max-width: 480px) {
  .withdraw-card {
    padding: 15px;
  }
  .withdraw-balance {
    font-size: 24px;
  }
}


/* 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 - ATM Style */
.record-card {
  width: 100vw;
  margin-bottom: 12px;
  padding: 15px 20px;
  background: #ffffff;               /* keep white card background */
  border-left: 6px solid #ff0000;    /* red accent border */
  border-radius: 15px;               /* curved edges */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 0.95rem;
  color: #ff0000;                    /* red text */
  box-shadow: 0 6px 12px rgba(0,0,0,0.15); /* subtle 3D effect */
  transition: transform 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

/* Card Hover Effect */
.record-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Card Content Text */
.record-transaction,
.record-amount,
.record-status,
.record-time {
  color: #ff0000;   /* red text */
  font-weight: bold;
  text-align: left;
  width: 100%;
}


/* Status Colors */
.status-success { color: #16a34a; }   /* green for success */
.status-pending { color: #f59e0b; }   /* amber for pending */
.status-failed  { color: #dc2626; }   /* red for failed */

/* Mobile adjustments */
@media (max-width: 480px) {
  .record-card {
    padding: 12px 15px;
  }
}

/* Records Page Back Button - top-left */
.records-back-btn {
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 10001;
  background: #ff0000;   /* white button */
  color: #ffffff;        /* blue text */
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
  transition: transform 0.2s, background 0.2s;
}

.records-back-btn:hover {
  transform: translateY(-2px);
  background: #e0e0ff; /* subtle hover */
}

/* Fixed Header */
.records-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: #ff0000;   /* white header */
  color: #ffffff;       /* blue text */
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  padding: 14px 0;
  z-index: 10000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}


/* ================= FULL PAGE ================= */
#myInvestmentPage {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  box-sizing: border-box;
  background: #ffffff;  /* white background */
  padding-top: 120px;   /* space for fixed header */
  margin: 0;
  width: 100vw;
}

/* ================= FIXED HEADER ================= */
.investment-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(30,30,30,0.85);    /* dark glassy black */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;                     /* white text */
  z-index: 1000;
  padding: 10px 0;
  text-align: center;
  border-bottom: 2px solid #c0c0c0;  /* silver underline */
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 500;
  font-size: 18px;
}

/* Logo */
#investmentLogo img {
  height: 60px;
  width: 60px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #c0c0c0;        /* silver border */
  margin-bottom: 8px;
  background: rgba(255,255,255,0.9); /* semi-transparent white behind logo */
}

/* Header Title */
.investment-header h2 {
  color: #ffffff;                     /* white text */
  margin: 0;
  font-size: 18px;
  font-weight: bold;
}

/* Back Button */
.investment-back-btn {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 1001;
  background: rgba(255,0,0,0.7);      /* red glass button */
  color: #ffffff;                     /* white text */
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(255,0,0,0.3);
  transition: transform 0.2s, background 0.2s;
}

.investment-back-btn:hover {
  transform: translateY(-2px);
  background: rgba(255,0,0,0.9);      /* darker red hover */
}


/* ================= INVESTMENT CARD ================= */
.investment-card {
  position: relative;
  background: rgba(50,50,50,0.85);  /* silver-black glass */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 24px 20px;
  color: #ffffff;                   /* white text */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 4px 6px 20px rgba(0,0,0,0.25); /* subtle dark shadow */
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  width: 100vw;
  margin: 12px 0;
  min-height: 180px;
}

.investment-card:hover {
  transform: translateY(-4px);
  box-shadow: 8px 10px 28px rgba(0,0,0,0.35);
}

/* CARD HEADER */
.investment-card-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 12px;
  gap: 4px;
}

.plan-name {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff; /* white header text */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-price {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff; /* white text */
}

/* 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: #ff0000; /* red boxes */
  color: #ffffff;      /* white text */
  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;
}

.value,
.countdown {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;  /* white text */
}

/* MOBILE RESPONSIVE */
@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;
  }
}

/* Logo at top right of the card */
.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 #ff0000; /* red border */
}


/* ================= CUSTOM ALERT ================= */
.custom-alert {
  position: fixed;
  top: 20px;
  right: 20px;

  background: linear-gradient(135deg, #ff0000, #cc0000); /* red gradient */
  color: #ffffff;                                      /* white text */

  padding: 15px 20px;
  border-radius: 14px;

  font-weight: bold;
  font-size: 16px;

  box-shadow: 
    0 6px 18px rgba(255,0,0,0.5),
    0 0 12px rgba(204,0,0,0.5),
    0 0 20px rgba(255,51,51,0.4); /* red glowing effect */

  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%;

  /* silver-black semi-transparent overlay */
  background: rgba(0,0,0,0.85); 
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;

  opacity: 1;
  transition: opacity 0.5s ease;
  animation: neonGlow 1.5s infinite alternate;
}

/* ================= ROLLING + BOUNCING NEON CIRCLE ================= */
.loader {
  width: 80px;
  height: 80px;

  /* red neon loader */
  border: 8px solid rgba(255, 0, 0, 0.2);   /* faint circle */
  border-top: 8px solid #ff0000;            /* bright red top */

  border-radius: 50%;

  /* spin + bounce */
  animation: spin 1s linear infinite, bounce 0.8s ease-in-out infinite;

  /* glowing red effect */
  box-shadow: 0 0 15px #ff0000, 0 0 30px #cc0000, 0 0 45px #990000;
}

/* ================= ANIMATIONS ================= */
@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes neonGlow {
  0%   { background: rgba(0,0,0,0.7); }
  50%  { background: rgba(0,0,0,0.85); }
  100% { background: rgba(0,0,0,0.95); }
}

/* ================= TYPING / WAVY DOTS ================= */
.loader-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;        /* space between dots */
}

.loader-dots span {
  width: 12px;
  height: 12px;
  background: #ff0000;  /* red dots */
  border-radius: 50%;
  display: inline-block;
  animation: wave 1.2s infinite ease-in-out;
}

/* stagger animation for each dot */
.loader-dots span:nth-child(1) { animation-delay: 0s; }
.loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.loader-dots span:nth-child(3) { animation-delay: 0.4s; }

/* wave animation */
@keyframes wave {
  0%, 60%, 100% { transform: translateY(0); }
  30%           { transform: translateY(-8px); }
}




/* Investment Ticker */
.investment-ticker {
  width: 100%;
  overflow: hidden;

  /* silver-black gradient */
  background: linear-gradient(135deg, #e5e7eb, #1f1f1f);

  padding: 10px 0;
  border-radius: 12px;
  margin: 20px 0;            /* space under ATM card image */
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.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;

  /* white text */
  color: #ffffff;
}

.ticker-content i {
  /* red icon */
  color: #ff0000; 
  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 BANNER ================= */
.reviews-ticker-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 20px 0;        /* spacing from other elements */
  border-radius: 12px;   /* rounded corners */
  overflow: hidden;      /* prevent image overflow */
  display: flex;
  justify-content: center;
  align-items: center;
}

.reviews-banner {
  width: 100%;
  height: auto;
  object-fit: contain;   /* show full image without cropping */
  display: block;
}





/* ================= IMAGE CARD ================= */

.image-card {
  width: 100%;
  max-width: 400px;
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  margin: 20px auto;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Background image */
.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Glass overlay content */
.glass-content {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 14px 16px;

  /* Glass effect */
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-top: 1px solid rgba(255, 255, 255, 0.4);
}

/* Text styling */
.glass-content h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: #000;
}

.glass-content p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #000;
}


