
/* ================= GENERAL RESET ================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}




/* Make body a flex container to center forms */
body {
  display: flex;
  justify-content: center;       /* horizontal centering */
  align-items: center;           /* vertical centering */
  min-height: 100vh;             /* take full viewport height */
  margin: 0;
  padding: 0;
  background: #f8f9fa; 
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}


/* --- Root Colors --- */
:root {
  --vestra-purple: #8A2BE2;
  --vestra-gradient: linear-gradient(135deg, #4B0082, #8A2BE2);
  --input-bg: #f8f9fc;
  --text-dark: #2d3436;
  --text-gray: #636e72;
}

.auth-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #fcfcfc;
}

.container {
  width: 90%;
  max-width: 420px;
  padding: 35px 25px;
  background: #ffffff;
  border-radius: 40px; /* Super rounded like screenshot */
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
  display: none;
  flex-direction: column;
}

.container.active { display: flex; }

/* --- Logo Section --- */
.logo-placeholder {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden; /* VERY IMPORTANT */
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Make image fill and become round */
.logo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* fills circle nicely */
  border-radius: 50%;
}

.main-title {
  color: var(--vestra-purple); /* Switched to Purple */
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 25px;
}

/* --- Input Groups --- */
.input-group {
  position: relative;
  margin-bottom: 15px;
}

.input-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #8A2BE2; /* Icon red as per screenshot */
  font-size: 18px;
}

.toggle-password {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #8A2BE2;
  cursor: pointer;
  font-size: 16px;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 18px 50px;
  background: var(--input-bg);
  border: 1px solid #f1f2f6;
  border-radius: 20px; /* Pill shape */
  font-size: 14px;
  font-weight: 500;
  outline: none;
  transition: 0.3s;
}

/* Red/Purple focus ring from screenshot */
input:focus {
  background: #fff;
  border-color: #8A2BE2;
  box-shadow: 0 0 0 4px rgba(138, 43, 226, 0.1);
}

/* --- Terms and Checkbox --- */
.terms-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 15px 5px;
}

.terms-row label {
  font-size: 12px;
  color: var(--text-gray);
  line-height: 1.4;
}

.terms-row span {
  color: var(--vestra-purple);
  font-weight: 700;
}

/* --- Vestra Purple Button --- */
.btn-purple {
  width: 100%;
  padding: 18px;
  background: var(--vestra-gradient);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
  box-shadow: 0 10px 30px rgba(138, 43, 226, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-purple:active {
  transform: scale(0.96);
}

.toggle-text {
  text-align: center;
  margin-top: 25px;
  font-size: 14px;
  color: var(--text-gray);
}

.toggle-text a {
  color: var(--vestra-purple);
  text-decoration: none;
  font-weight: 700;
}


/* 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;
  color: #f8f9fa;
}


/* Dashboard header */
.dashboard-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px; /* Adjust based on your app width */
  height: 60px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  z-index: 10000;
  border-bottom: 1px solid #f0f0f0; /* Subtle bottom line */
  box-sizing: border-box;
}

/* Left side container (Logo + Title) */
.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Square Logo like the image */
.header-logo {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
  background: #2575fc; /* Placeholder background color */
}

/* Bold Title */
.header-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #6a11cb; /* Your Purple theme */
  font-family: 'Inter', sans-serif;
}

/* Right side (The yellow notification dot) */
.header-right {
  display: flex;
  align-items: center;
}

.notification-dot {
  width: 12px;
  height: 12px;
  background-color: #ffb74d; /* Golden/Orange dot from image */
  border-radius: 50%;
}

/* Push main content down so it's not hidden under fixed header */
body {
  padding-top: 60px;
}


/* CONTAINER - No background or shadow to stay "on the page" */
.action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  width: 100%;
  max-width: 500px;
  margin: 20px auto;
  padding: 10px 0;
  background: transparent; /* No container look */
}

/* THE INDIVIDUAL BUTTONS */
.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s;
}

.action-btn:active {
  transform: scale(0.92);
}

/* CIRCULAR ICON BACKGROUND (Soft Purple) */
.action-icon {
  width: 65px;
  height: 65px;
  background: #f3e8ff; /* Very light purple background */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  color: #6a11cb; /* Deep Purple Icon */
  font-size: 22px;
}

/* TEXT STYLING (Dark Grey/Blue) */
.action-btn span {
  font-size: 14px;
  font-weight: 700;
  color: #344767; /* Dark slate text to match the image style */
  text-align: center;
}



/* INVESTMENT PLANS SECTION */
.mx-investment-section {
  width: 94%;
  max-width: 500px;
  margin: 20px auto;
  box-sizing: border-box;
}

.mx-section-header {
  display: flex !important;      /* Force flexbox */
  flex-direction: row !important; /* Force horizontal alignment */
  justify-content: space-between; /* Title left, Button right */
  align-items: center;            /* Vertical center */
  margin-bottom: 20px;
  width: 100%;
}

/* SECTION TITLE STYLING */
.mx-section-header .mx-section-title {
  margin: 0;
  padding: 0;
  font-size: 22px; 
  font-weight: 800;
  color: #6a11cb; 
  letter-spacing: -0.5px;
  white-space: nowrap; /* Prevents title from wrapping to two lines */
}

/* PILL BUTTON STYLING */
.mx-section-header .mx-view-order-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #6a11cb; 
  color: #ffffff !important;
  text-decoration: none !important;
  padding: 8px 20px;
  border-radius: 50px; 
  font-size: 14px;
  font-weight: 700;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 4px 12px rgba(106, 17, 203, 0.2);
  white-space: nowrap; /* Keeps button text on one line */
  border: none;
}

.mx-view-order-btn i {
  font-size: 16px;
  line-height: 1; /* Ensures icon doesn't push button height */
}




/* White container around the flyer */
.flyer-container {
  background-color: #ffffff;      /* white background */
  padding: 16px;               /* space around flyer */
  border-radius: 16px;         /* rounded corners */
  box-shadow: 0 4px 15px rgba(0,0,0,0.15); /* subtle shadow */
  max-width: 600px;            /* optional: limit width */
  margin: 20px auto;           /* center container with some vertical margin */
}

/* Flyer Banner - full width inside container */
.balance-flyer {
  width: 100%;       /* fill the container width */
  height: auto;
  overflow: hidden;
  border-radius: 12px; /* match container rounded corners slightly */
  position: relative;
  margin: 0;
}

/* Slider wrapper */
.flyer-slider {
  display: flex;
  width: 100%;
  height: auto;
  transition: transform 0.6s ease-in-out;
}

/* Each image in the slider */
.flyer-card {
  width: 100%;
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
  border-radius: 12px; /* match container */
}


/* Products Header */
.products-header {
  margin-bottom: 12px;
  text-align: left; /* align text to left */
}

.products-header h2 {
  display: inline-block;        
  padding: 6px 16px;            
  font-size: 18px;
  font-weight: bold;
  color: #D4AF37;               /* white text */
  background: #d01e1e;          /* sky blue background */
  border-radius: 50px;          
  font-family: 'Arial Black', 'Helvetica', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;    
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); /* subtle black shadow */
}





.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;
}


.record-id {
  font-weight: 700;           /* Makes it bold */
  font-family: 'Courier New', Courier, monospace; /* Monospace for numbers */
  color: #000000;                /* Slightly darker for readability */
  background: #f0f0f0;        /* Light grey background badge */
  padding: 2px 6px;           /* Space inside the badge */
  border-radius: 4px;         /* Rounded corners */
  display: inline-block;      /* Keeps the background tight to the text */
  margin-top: 4px;            /* Space from the time above */
  font-size: 11px;            /* Keeps it small but clear */
  letter-spacing: 0.5px;      /* Spacing between numbers */
  user-select: all;           /* Allows user to select full ID with one tap */
}



/* GLOBAL RESET: This ensures padding doesn't break your width */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.fintech-dashboard {
  width: 100%;
  max-width: 450px;
  padding: 16px;
  margin: 0 auto; 
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 3D Black & Purple Top Card */
.user-profile-card {
  width: 100%;
  /* Swapped Red for Deep Purple Gradient */
  background: linear-gradient(135deg, #000000 0%, #1a0033 40%, #4c0bb1 100%);
  border-radius: 24px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.2),
    0 10px 20px rgba(76, 11, 177, 0.1),
    0 20px 40px rgba(0, 0, 0, 0.3);
    
  transition: transform 0.3s ease;
}

.avatar-container {
  position: relative;
  flex-shrink: 0;
}

.avatar-box {
  width: 60px;
  height: 60px;
  /* Avatar background now matches the theme */
  background: linear-gradient(180deg, #6a11cb 0%, #2575fc 100%);
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.status-indicator {
  width: 14px;
  height: 14px;
  background: #2dce89; /* Keep green for "online" status */
  border: 2px solid #000; 
  border-radius: 50%;
  position: absolute;
  bottom: -2px;
  right: -2px;
}

.user-info-text {
  flex: 1;
  overflow: hidden;
}

.phone-display {
  font-size: clamp(16px, 5vw, 20px); 
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden; 
  text-overflow: ellipsis;
}

.id-badge {
  background: rgba(255, 255, 255, 0.1); 
  padding: 4px 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #bbbbbb;
  text-transform: uppercase;
}

/* Deep Purple Balance Card */
.balance-card {
  width: 100%;
  /* Reversed gradient for depth */
  background: linear-gradient(135deg, #4c0bb1 0%, #1a0033 40%, #000000 100%);
  border-radius: 28px;
  padding: clamp(15px, 6vw, 25px); 
  color: white;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.label {
  font-size: 11px;
  letter-spacing: 1.2px;
  opacity: 0.8;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.amount-row {
  font-size: clamp(24px, 8vw, 36px); 
  font-weight: 800;
  margin: 10px 0 25px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
}

/* Buttons Styling */
.action-row {
  display: flex;
  gap: 12px;
  width: 100%;
}

.btn {
  flex: 1;
  border: none;
  border-radius: 14px;
  padding: 14px 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-topup {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
}

.btn-withdraw {
  /* Swapped Red for Premium Purple/Blue */
  background: linear-gradient(90deg, #6a11cb, #2575fc);
  color: white;
  box-shadow: 0 4px 15px rgba(106, 17, 203, 0.3);
}

/* Fix for very small phones */
@media (max-width: 340px) {
  .fintech-dashboard { padding: 10px; }
  .amount-row { font-size: 22px; }
  .action-row { gap: 8px; }
  .btn { font-size: 12px; padding: 12px 5px; }
}



/* ================= BOTTOM NAV CONTAINER ================= */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  display: flex;
  justify-content: space-around;
  align-items: center;
  /* Reduced padding for a slimmer, more premium feel */
  padding: 8px 0 6px 0; 
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03); 
  z-index: 1000;
  border-top: 1px solid #f0f0f0; 
}

/* ================= NAV ITEMS ================= */
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  flex: 1;
  gap: 3px; /* Tighter gap between icon and text */
}

.nav-icon-wrapper {
  /* Reduced wrapper size */
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* SVG ICON STYLE - Reduced from 28px to 22px */
.nav-item svg {
  width: 22px;
  height: 22px;
  fill: #999999; /* Grey for inactive icons looks cleaner */
  transition: all 0.2s ease;
}

/* TEXT STYLE - Reduced from 15px to 11px */
.nav-item span {
  font-size: 11px; 
  font-weight: 600; 
  color: #999999; /* Grey for inactive text */
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.2px;
}

/* ACTIVE STATE - Now uses your Brand Purple */
.nav-item.active svg {
  fill: #6a11cb; /* Active icon turns purple */
  transform: scale(1.05); /* Very slight scale, not too much */
}

.nav-item.active span {
  color: #6a11cb; /* Active text turns purple */
  font-weight: 700;
}

.nav-item:active {
  opacity: 0.6;
}

/* ===== PROFILE FIXED HEADER ===== */
.profile-header-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
 background: #2f0260; /* classic burnt red */

  padding: 10px 0;
  text-align: center;
  font-size: 12px;
  color: #f1f1f1; /* gold text */
  font-weight: bold;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* subtle gold shadow */
}

.profile-header-bar i {
  margin-right: 8px;
  color: #000000; /* gold icon */
}

/* Push content down so it doesn’t go under header */
.profile-content {
  padding-top: 60px; /* same as header height */
}

/* ===== PROFILE PAGE ===== */
.profile-page {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  display: none;
  padding: 0 10px 80px 10px;
  height: calc(100vh - 0px);
  overflow-y: auto;
  box-sizing: border-box;
  background: #ffffff; /* white background */
  color: #000000;      /* black text */
}

/* Profile Header Image - ATM card style */
.profile-header {
  width: 100%;
  height: 180px;
  margin-bottom: 20px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,128,0,0.25); /* subtle green shadow */
  background: #ffffff;
}

.profile-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Title */
.profile-title {
  margin: 15px 0;
  font-size: 18px;
  font-weight: bold;
  color: #6a11cb;
  text-align: center;
}


/* Container: The white card */
.settings-container {
  background: #ffffff;
  font-family: 'Inter', sans-serif;
  max-width: 450px;
  margin: 20px auto;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
  padding-bottom: 10px;
}

/* Group Headers: Swapped Red for Brand Purple */
.group-title {
  font-size: 14px; /* Standard settings headers are usually smaller but bold */
  font-weight: 800;
  color: #6a11cb; 
  padding: 25px 20px 10px;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Individual Rows */
.settings-item {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  text-decoration: none;
  border-bottom: 1px solid #f8f8f8; 
  cursor: pointer;
  transition: background 0.2s;
}

.settings-item:active {
  background: #f9f9f9;
}

/* Base Icon Box - Removed Glass Red, Added Dynamic Colors */
.icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px; /* Modern rounded square looks better for solid colors */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
  color: #ffffff;
  font-size: 16px;
}

/* --- SPECIFIC ICON COLORS --- */
.icon-box.green {
  background: #27ae60;
  box-shadow: 0 4px 10px rgba(39, 174, 96, 0.2);
}

.icon-box.orange {
  background: #f39c12;
  box-shadow: 0 4px 10px rgba(243, 156, 18, 0.2);
}

.icon-box.purple {
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(106, 17, 203, 0.2);
}

.icon-box.blue {
  background: #2575fc;
  box-shadow: 0 4px 10px rgba(37, 117, 252, 0.2);
}

.icon-box.red {
  background: #e74c3c;
  box-shadow: 0 4px 10px rgba(231, 76, 60, 0.2);
}

/* Text Label */
.item-label {
  flex-grow: 1;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

/* Logout Styling - Brand Purple instead of Red */
.logout-btn .item-label {
  color: #6a11cb; 
}
.logout-btn .icon-box {
  background: rgba(106, 17, 203, 0.1); /* Light purple tint */
}
.logout-btn .icon-box i {
  color: #6a11cb;
}

/* Right Chevron Arrow */
.arrow {
  color: #d1d1d1;
  font-size: 12px;
}



/* ================= BANK PAGE ================= */

.bank-page {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 0 12px;
  display: none;

  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(30, 64, 255, 0.12);

  color: #000000;
  height: 100vh;
  overflow-y: auto;
  box-sizing: border-box;
  padding-top: 70px; /* space for fixed header */
}


.bank-details-header {
  /* Swapped Soft Pink for Soft Lavender/Purple gradient */
  background: linear-gradient(180deg, #f3e8ff 0%, #ffffff 100%);
  
  /* Layout */
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px 25px;
  border-radius: 25px;
  
  /* Border & Shadow - Subtle purple tint */
  border: 1px solid rgba(106, 17, 203, 0.1);
  box-shadow: 0 4px 15px rgba(106, 17, 203, 0.05);
  max-width: 500px;
  margin: 20px auto;
}

.icon-box {
  /* Primary Purple for the icon */
  color: #6a11cb; 
  font-size: 24px;
  padding-top: 2px;
}

.header-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.header-title {
  /* Bold Purple text */
  color: #6a11cb; 
  font-family: 'Inter', sans-serif, Arial;
  font-size: 20px;
  font-weight: 800;
  margin: 0;
}

.header-subtitle {
  color: #7f8c8d; /* Kept muted gray for readability */
  font-family: 'Inter', sans-serif, Arial;
  font-size: 14px;
  font-weight: 500;
  margin: 0;
  line-height: 1.4;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
  .bank-details-header {
    margin: 10px;
    padding: 15px;
  }
  .header-title {
    font-size: 18px;
  }
  .header-subtitle {
    font-size: 13px;
  }
}


.bank-header {
  position: fixed;      /* Fix header at top */
  top: 0;               /* stick to top */
  left: 0;              /* full width */
  width: 100%;          /* span entire page */
  display: flex;
  align-items: center;
  padding: 8px 15px;    /* smaller padding for a slimmer header */
  background: #6a11cb;
  border-bottom: 1px solid #f0f0f0;
  z-index: 1000;        /* stay above content */
}


.bank-back-btn {
  background: transparent;
  border: none;
  font-size: 16px;
  color: #fffbfb;
  cursor: pointer;
  display: flex;
  align-items: center;
  z-index: 2;                  /* button on top of h2 */
}

.bank-header h2 {
  position: absolute;           /* center regardless of button */
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  z-index: 1;
}



/* RESET (prevents overrides) */
* {
    box-sizing: border-box;
}




/* Container */
.bank-form-container {
    max-width: 360px;
    margin: 20px auto;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

/* Card */
.bank-form-card {
    background: #ffffff;
    padding: 18px;
    border-radius: 16px;

    /* Refined 3D card feel with Purple-tinted shadow */
    box-shadow: 
        0 12px 30px rgba(106, 17, 203, 0.05),
        0 5px 12px rgba(0,0,0,0.05);

    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Input Group */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

/* FORCE labels to stay left */
.input-group label {
    display: block !important;
    width: 100% !important;
    text-align: left !important;
    margin: 0 !important;
    padding: 0 0 2px 4px !important; /* Added slight padding for better alignment */

    font-size: 13px;
    font-weight: 700;
    color: #444; /* Slightly softer than pure black */
}

/* Inputs (FORCE SAME SIZE) */
.gamex-input,
select.gamex-input {
    width: 100% !important;
    height: 48px !important; /* Slightly taller for a more premium feel */
    padding: 0 15px !important;

    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important; /* More rounded to match card aesthetics */

    font-size: 14px !important;
    color: #1a1a1a !important;
    background: #fdfdfd !important;

    outline: none !important;

    /* subtle depth */
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);

    transition: all 0.3s ease;
}

/* Focus - Swapped Red for Purple */
.gamex-input:focus {
    border-color: #6a11cb !important;
    box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.1) !important;
    background: #ffffff !important;
}

/* Placeholder */
.gamex-input::placeholder {
    color: #cbd5e0;
}

/* Dropdown */
.select-wrapper {
    position: relative;
    width: 100%;
}

.select-wrapper::after {
    content: '▼';
    font-size: 10px;
    color: #6a11cb; /* Purple arrow */
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

select.gamex-input {
    appearance: none;
}

/* Button - Swapped Red Gradient for Purple/Blue */
.update-bank-btn {
    width: 100%;
    height: 50px;

    /* Premium Purple Gradient */
    background: linear-gradient(to right, #6a11cb, #2575fc);
    color: #fff;

    border: none;
    border-radius: 12px;

    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;

    /* 3D shadow effect in Purple */
    box-shadow: 0 4px 0 #4c0bb1, 0 6px 15px rgba(106, 17, 203, 0.3);
    transition: all 0.2s ease;
}

.update-bank-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #4c0bb1;
}

/* Success Message Placeholder */
#bankSuccess {
    color: #6a11cb;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    margin-top: 5px;
}



/* Premium Purple Style Card (No Red) */
.bank-display-card {
    /* Swapped Red Gradient for your Signature Purple */
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    border-radius: 24px;
    padding: 25px;
    color: white;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
    /* Swapped Red shadow for a Purple glow */
    box-shadow: 0 15px 35px rgba(106, 17, 203, 0.25);
    border: 1px solid rgba(255,255,255,0.15);
}

/* Subtle glass decoration in corner */
.bank-display-card::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1); /* Slightly more visible for contrast */
    border-radius: 50%;
    bottom: -50px;
    right: -50px;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.bank-logo-circle {
    width: 45px;
    height: 45px;
    /* Frosted glass effect for the logo container */
    background: rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    backdrop-filter: blur(5px);
}

.bank-meta h3 {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.bank-meta span {
    font-size: 11px;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.8);
}

.card-number {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    /* Kept the courier font for that authentic bank card feel */
    font-family: 'Courier New', Courier, monospace; 
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card-footer .label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.7);
}

.card-footer h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
}

/* Form section title - Changed to match the Purple brand */
.form-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #6a11cb; /* Using Purple instead of Black/Red */
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}


/* ================= GLOBAL & LAYOUT ================= */
.recharge-page {
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  min-height: 100vh;
  background: #ffffff;
  font-family: 'Inter', sans-serif;
  position: relative;
  display: block; 
}

.recharge-page-container {
  padding: 80px 15px 40px; 
  display: flex;
  flex-direction: column;
}

/* ================= HEADER - Swapped Blue for Purple ================= */
.recharge-header-fixed {
  position: fixed;
  top: 0;
  width: 100%;
  max-width: 450px;
  height: 60px;
  /* Premium Purple Gradient */
  background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%); 
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(106, 17, 203, 0.2);
}

.recharge-header-fixed h2 {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700; /* Made slightly bolder */
  margin: 0;
}

.recharge-back-btn-v2 {
  position: absolute;
  left: 15px;
  background: transparent;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

.history-icon {
  position: absolute;
  right: 15px;
  color: white;
  font-size: 18px;
  opacity: 0.9;
}

/* ================= LABELS & INPUT ================= */
.recharge-main-label {
  font-size: 16px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 15px;
  text-align: left;
}

.min-tag {
  font-size: 14px;
  font-weight: 600;
  color: #6a11cb; /* Purple accent for the minimum tag */
}

.section-label {
  font-size: 14px;
  color: #666;
  font-weight: 600;
  text-align: left;
  margin: 20px 0 10px;
}

.custom-amount-wrapper {
  display: flex;
  /* Soft Lavender Background */
  background: #f3e8ff; 
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
  border: 1px solid rgba(106, 17, 203, 0.1);
}

.input-icon-bg {
  padding: 15px;
  display: flex;
  align-items: center;
  color: #6a11cb; /* Purple icon */
  font-weight: 800;
}

#customAmount {
  flex: 1;
  background: transparent;
  border: none;
  padding: 15px;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  outline: none;
}

/* ================= AMOUNT GRID ================= */
.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns looks cleaner on small screens */
  gap: 10px;
  margin-bottom: 25px;
}

.amount-option {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 14px 2px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #444;
  text-align: center;
  transition: all 0.2s ease;
}

/* Active State - Purple Border and Background */
.amount-option.active {
  background: #f3e8ff;
  border: 2px solid #6a11cb;
  color: #6a11cb;
}

/* ================= DEPOSIT BUTTON ================= */
.deposit-btn {
  width: 100%;
  padding: 18px;
  /* Deep Purple/Navy for high-contrast action */
  background: #1a1a2e; 
  color: white;
  border: none;
  border-radius: 15px;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 30px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(26, 26, 46, 0.2);
  transition: transform 0.2s ease;
}

.deposit-btn:active {
  transform: scale(0.97);
}

/* ================= RULES SECTION ================= */
.info-rules-container {
  text-align: left;
  background: #fafafa;
  padding: 20px;
  border-radius: 15px;
  border-left: 4px solid #6a11cb;
}

.rule-item {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 12px;
}

.rule-item strong {
  font-weight: 800;
  color: #1a1a1a;
}

/* OVERLAY */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.4); 
  z-index: 9999;
  backdrop-filter: blur(2px);
}

/* MODAL BOX - Reduced padding and max-width */
.mx-unique-modal {
  width: 88%;
  max-width: 340px; /* Reduced from 380px */
  background: #fff;
  border-radius: 24px; /* Slightly tighter curves */
  padding: 30px 20px 20px 20px; /* Reduced padding from 40px/30px */
  text-align: center;
  font-family: 'Inter', sans-serif;
  position: relative;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* CLOSE ICON */
.mx-unique-modal .mx-popup-close {
  position: absolute;
  right: 15px;
  top: 15px;
  font-size: 16px;
  color: #ccc;
  cursor: pointer;
}

/* LOGO SECTION - Shrunken for space */
.mx-unique-modal .mx-logo-container {
  width: 60px; /* Reduced from 80px */
  height: 60px;
  margin: 0 auto 10px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border: 1px solid #eee;
}

.mx-unique-modal .mx-popup-logo {
  width: 45px; /* Reduced from 60px */
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
}

/* TITLE - Reduced margin */
.mx-unique-modal .mx-modal-title {
  font-size: 20px; /* Reduced from 24px */
  font-weight: 800;
  margin-bottom: 15px; /* Reduced from 25px */
  color: #6a11cb; 
}

/* BENEFIT LIST - Tighter vertical spacing */
.mx-unique-modal .mx-benefit-list {
  text-align: left;
  margin-bottom: 20px;
}

.mx-unique-modal .mx-benefit-item {
  display: flex;
  gap: 12px;
  margin-bottom: 12px; /* Reduced from 20px */
  align-items: center; /* Centered instead of flex-start for compactness */
}

/* ICON BOXES - Reduced size */
.mx-unique-modal .mx-icon-box {
  width: 36px; /* Reduced from 45px */
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px; /* Reduced font size */
  background: #f3e8ff; 
  color: #7c3aed; 
}

.mx-unique-modal .mx-benefit-name {
  display: block;
  font-weight: 700;
  font-size: 14px; /* Reduced from 15px */
  color: #333;
}

.mx-unique-modal .mx-benefit-desc {
  font-size: 12px; /* Reduced from 13px */
  color: #777;
  line-height: 1.3;
  margin: 0;
}

#welcomePopup {

  display: none; /* Changed for preview, keep 'none' if using JS to trigger */

}

/* TELEGRAM BUTTON */
.mx-unique-modal .mx-telegram-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #6a11cb 0%, #9d50bb 100%);
  color: #fff;
  padding: 12px; /* Reduced from 14px */
  border-radius: 15px; /* Changed from pill 30px to rounded 15px */
  font-weight: 700;
  text-decoration: none;
  font-size: 14px; /* Reduced from 16px */
  transition: transform 0.2s;
  border: none;
}

.mx-unique-modal .mx-footer-note {
  margin-top: 12px;
  font-size: 10px; /* Reduced from 11px */
  color: #aaa;
  line-height: 1.3;
}

/* DAILY LOADER OVERLAY */
.daily-loader{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.55);
  display:none;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  z-index:9999;
}

/* 3D SPINNER */
.spinner-3d{
  width:60px;
  height:60px;
  border:6px solid rgba(255,255,255,0.2);
  border-top:6px solid #00c2ff;
  border-radius:50%;
  animation:spin3d 1s linear infinite;
  margin-bottom:15px;
}

@keyframes spin3d{
  0%{transform:rotate(0deg);}
  100%{transform:rotate(360deg);}
}

.daily-loader p{
  color:white;
  font-weight:600;
  font-size:16px;
}


/* ===== PRODUCT PAGE ===== */
.product-page {
  width: 100%;
  padding: 20px;
  padding-bottom: 80px;
  padding-top: 65px; /* space for fixed header */
  background: #ffffff; /* white background */
  min-height: 100vh;
  color: #ffffff;      /* white text */
  display: none;       /* show when active */
}

/* ===== FIXED HEADER ===== */
.product-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #1e40ff; /* blue header */
  padding: 12px 0;
  z-index: 1000;
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  color: #ffffff;      /* white text */
  box-shadow: 0 3px 8px rgba(30, 64, 255, 0.2); /* subtle blue shadow */
}

.product-header i {
  margin-right: 8px;
  color: #ffffff; /* white icon */
}


/* ================= PRODUCT LIST CONTAINER ================= */
.product-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 15px;
  padding-bottom: 100px;
  background: #fdfdfd;
}

/* ================= THE CARD ================= */
.mx-product-card {
  background: #f2f2f2;
  border-radius: 28px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #f0f0f0;
  margin-bottom: 20px;
}

/* LOGO & HEADER - Keeps image and text on same line */
.mx-card-header-row {
  display: flex !important;
  flex-direction: row !important;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}

.mx-brand-logo {
  width: 70px;
  height: 70px;
  background: #1a1a2e; 
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.mx-header-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mx-plan-name {
  font-size: 18px;
  font-weight: 800;
  color: #1a1a1a;
}

.mx-price-text {
  font-size: 22px;
  font-weight: 900;
  color: #6a11cb; /* Purple Theme */
}

/* AVAILABLE BADGE */
.mx-available-badge {
  background: #186c03c9; /* Changed from green to purple to stay on brand */
  color: white;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 10px;
  width: fit-content;
  margin-top: 4px;
}

/* STATS ROWS */
.mx-stats-container {
  margin-bottom: 25px;
}

.mx-info-row {
  display: flex !important;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #fafafa;
}

.mx-info-label {
  font-size: 14px;
  color: #999;
  font-weight: 600;
}

.mx-info-value {
  font-size: 15px;
  color: #222;
  font-weight: 700;
}

/* Specific purple text for Daily Income */
.mx-purple-text {
  color: #6a11cb !important;
  font-weight: 800;
}

.mx-bold-text {
  color: #000;
  font-weight: 900;
}

/* ================= PURPLE GRADIENT BUTTON ================= */
.mx-add-to-portfolio-btn {
  width: 100%;
  padding: 16px;
  border-radius: 30px;
  border: none;
  font-size: 17px;
  font-weight: 800;
  color: #ffffff !important;
  background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%); 
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(106, 17, 203, 0.25);
  transition: all 0.3s ease;
}

.mx-add-to-portfolio-btn:active {
  transform: scale(0.96);
}

.invite-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow-y: auto;       /* 🔥 allow vertical scroll */
  -webkit-overflow-scrolling: touch; /* smooth scrolling on mobile */
  z-index: 999;

  background: #faf3f3;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #D4AF37;

  display: none;
  flex-direction: column;
  padding-top: 60px;
}


/* ================= CLEAN FIXED INVITE HEADER ================= */
.invite-header-fixed-v2 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0 16px;
  background: #ffffff;
  color: #001f3f;

  z-index: 1000;              /* stays above invite content */
  border-bottom: 1px solid #f0f0f0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);

  font-family: 'Poppins', sans-serif;
}


/* Header title */
.invite-header-fixed-v2 h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #6a11cb;
}


/* ================= CIRCULAR BACK BUTTON ================= */
.invite-back-btn-v2 {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);

  width: 40px;
  height: 40px;
  border-radius: 50%;

  border: 1px solid #eee;
  background: #ffffff;
  color: #333;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: all 0.2s ease;

  z-index: 1100;
  outline: none;
}


/* Press effect */
.invite-back-btn-v2:active {
  transform: translateY(-50%) scale(0.95);
  background: #f9f9f9;
}



:root {
  /* Swapped Red for Purple */
  --purple-accent: #6a11cb; 
  --purple-hover: #2575fc;
  --bg-gray: #fcfcfc;
  --card-shadow: 0 8px 24px rgba(106, 17, 203, 0.08); /* Tinted shadow */
  --text-main: #333;
  --text-muted: #777;
}

.referral-container {
  max-width: 450px;
  margin: 0 auto;
  padding: 16px;
  background-color: var(--bg-gray);
  font-family: 'Inter', sans-serif;
}

/* --- TOP INVITE CARD --- */
.main-invite-card {
  background: white;
  border-radius: 24px;
  padding: 24px;
  text-align: center;
  box-shadow: var(--card-shadow);
  margin-bottom: 24px;
  border: 1px solid #f3e8ff;
}

.invite-tag {
  /* Soft Lavender instead of Light Red */
  background: #f3e8ff;
  color: var(--purple-accent);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
}

.invite-code {
  font-size: 32px;
  color: var(--purple-accent);
  font-weight: 800;
  margin: 15px 0;
  letter-spacing: 1px;
}

.link-box {
  background: #f8f9fa;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 20px;
}

.link-input {
  width: 100%;
  border: none;
  background: transparent;
  color: #666;
  font-size: 13px;
  text-align: center;
  outline: none;
}

.copy-btn {
  /* Purple Gradient Button */
  background: linear-gradient(135deg, var(--purple-accent) 0%, var(--purple-hover) 100%);
  color: white;
  border: none;
  width: 100%;
  padding: 16px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(106, 17, 203, 0.2);
}

/* --- TEAM SECTION --- */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.title-group h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

.detail-btn {
  /* Light Purple Button */
  background: #f3e8ff;
  color: var(--purple-accent);
  border: none;
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* --- MEMBER CARDS --- */
.member-card {
  background: white;
  border-radius: 20px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: var(--card-shadow);
  margin-bottom: 12px;
  position: relative;
  border: 1px solid #fafafa;
}

.level-indicator {
  font-size: 36px;
  font-weight: 900;
  color: #6a11cb; /* Purple for L1 */
  min-width: 40px;
}

.level-indicator.level-2 { color: #2575fc; } /* Blue for L2 */
.level-indicator.level-3 { color: #a855f7; } /* Light Purple for L3 */

.member-stats {
  flex-grow: 1;
}

.level-badge {
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
}

/* Updated badge colors for Purple/Blue/Lavender theme */
.blue-badge { background: #f3e8ff; color: #6a11cb; }
.green-badge { background: #eef2ff; color: #2575fc; }
.orange-badge { background: #faf5ff; color: #a855f7; }

.stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.commission-info {
  text-align: right;
}

.commission-info .label {
  display: block;
  font-size: 10px;
  color: #aaa;
  font-weight: 600;
}

.commission-info .amount {
  font-weight: 800;
  font-size: 14px;
}

/* Text colors to match the icons/badges */
.blue-text { color: #6a11cb; }
.green-text { color: #2575fc; }
.orange-text { color: #a855f7; }

/* Responsive adjustments */
@media (max-width: 380px) {
  .stats-grid span { width: 100%; }
  .level-indicator { font-size: 28px; }
}


/* ================= CLEAN FIXED TEAM HEADER ================= */
.team-header-main {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  /* Swapped Red for Brand Purple Gradient */
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: white;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 2px 10px rgba(106, 17, 203, 0.2);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 18px;
}

/* Header text */
.team-header-main span {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: white;
}

/* ================= CIRCULAR BACK BUTTON ================= */
.back-btn-white {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px; /* Slightly smaller for a tighter look */
  height: 36px;
  border-radius: 50%;
  border: none;
  /* Premium Glassmorphism Effect */
background: rgba(255, 255, 255, 0.7); /* Translucent White */
backdrop-filter: blur(12px);         /* The Glass Blur */
-webkit-backdrop-filter: blur(12px); /* Support for Safari */

/* Glass Definition */
border: 1px solid rgba(255, 255, 255, 0.3); 
box-shadow: 0 8px 32px rgba(106, 17, 203, 0.05); /* Very subtle purple tint in shadow */
  /* Icon color is now Purple */
  color: #6a11cb; 
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: all 0.2s ease;
  outline: none;
  z-index: 1100;
}

/* Press effect */
.back-btn-white:active {
  transform: translateY(-50%) scale(0.92);
  background: #f3e8ff; /* Soft purple tint on press */
}

/* ================= PAGE CONTENT ================= */
#earningsPage {
  padding-top: 60px;
}

.team-content {
  padding: 20px;
}

/* ================= LEVEL TABS ================= */
.level-tabs-container {
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  display: flex;
  background: white;
  /* Swapped Red bottom border for Purple */
  border-bottom: 2px solid #6a11cb;
  z-index: 999;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Each button */
.level-tab-item {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: 0 !important;
  border-right: 1px solid #f0f0f0;
  background: white;
  color: #666;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

/* Active State for Tabs (if you use an .active class) */
.level-tab-item.active {
  color: #6a11cb;
  background: #fdfbff;
}

/* Remove divider on last */
.level-tab-item:last-child {
  border-right: none;
}

/* Active tab */
.level-tab-item.active {
 background: #6a11cb;
  color: white;
}


/* ================= LABELS ROW (under tabs with space) ================= */
.list-labels-row {
  position: fixed;
  top: 130px; /* was 110px → added 10px breathing space */
  left: 0;
  width: 100%;
  display: flex;
  padding: 10px 20px;
  background-color: #d1d5db;
  color: #4b5563;
  font-size: 13px;
  font-weight: 600;
  z-index: 998;
}

.list-labels-row span {
  flex: 1;
}

.list-labels-row span:last-child {
  text-align: center;
}


/* ================= TEAM USER CARD ================= */
.user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #10b981; /* green card */
  color: white;
  padding: 12px 16px;
  margin: 8px 16px;           /* space between cards */
  border-radius: 8px;          /* subtle corner */
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  position: relative;
}

/* Profile icon on the left inside a white circle */
.user-row::before {
  content: "\f007"; /* Font Awesome user icon */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #10b981;               /* icon same green as card border */
  background: white;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-right: 12px;
}

/* Stack values under labels */
.user-row span {
  flex: 1;
  display: flex;
  flex-direction: column; /* number under label if you want label span later */
}

/* Align left and right columns */
.user-row span:first-child {
  text-align: left;
}

.user-row span:last-child {
  text-align: right;
  font-weight: 600;
}


/* ================= SCROLLABLE TEAM LIST ================= */
#teamList {
  position: absolute;
  top: 180px; /* shifted down to match labels */
  left: 0;
  width: 100%;
  bottom: 0;
  overflow-y: auto;
  background: #fff;
  padding-bottom: 20px;
}



.team-empty-state {
  position: fixed;       /* full page positioning */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #999;
  font-family: 'Poppins', sans-serif;
  text-align: center;
  z-index: 10;
}

.team-empty-state .empty-icon-box {
  font-size: 48px;
  margin-bottom: 12px;
  color: #d1d5db;
}

.team-empty-state p {
  font-size: 14px;
  margin: 0;
}

/* ================= WITHDRAW PAGE ================= */
.withdraw-page {
  width: 100%;
  background: #f9f9f9;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  /* remove height & overflow */
}


/* ================= CLEAN HEADER ================= */
.withdraw-header-fixed {
  width: 100%;
  height: 60px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  border-bottom: 1px solid #f0f0f0;
}

.withdraw-header-fixed h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #001f3f; /* Dark Navy */
  font-family: 'Poppins', sans-serif;
}

.withdraw-back-btn-v2 {
  position: absolute;
  left: 15px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #eee;
  background: #ffffff;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}


/* ================= PAGE CONTAINER ================= */
.recharge-container {
  background-color: #f4f7f6; 
  padding: 20px;
  padding-top: 80px; /* Space for fixed header */
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
}


/* MAIN CARD */
.withdrawal-card-box{
  background: linear-gradient(145deg, #ffffff, #f8f8f8);
  border-radius:16px;
  padding:20px;
  margin-bottom:18px;
  box-shadow:0 10px 25px rgba(106, 17, 203, 0.08); /* Purple tinted shadow */
}

/* TITLE */
.withdraw-title-main{
  font-size:18px;
  font-weight:700;
  margin-bottom:15px;
  color:#0a0a0a;
}

/* AMOUNT INPUT */
.withdraw-input-box{
  display:flex;
  align-items:center;
  background:#ffffff;
  border-radius:12px;
  padding:15px;
  font-size:22px;
  border:1px solid rgba(106, 17, 203, 0.1); /* Purple border */
}

.withdraw-input-box input{
  border:none;
  outline:none;
  font-size:22px;
  width:100%;
  color:#000;
}

.currency{
  font-size:22px;
  margin-right:8px;
  color:#6a11cb; /* Purple accent */
}

/* BALANCE */
.balance-box{
  margin-top:15px;
  display:flex;
  justify-content:space-between;
  background:#ffffff;
  padding:14px;
  border-radius:10px;
  font-size:14px;
  box-shadow:0 4px 12px rgba(0,0,0,0.06);
}

.balance-box span:last-child{
  color:#2575fc; /* Electric Blue balance */
  font-weight:700;
}

/* WITHDRAW MAX */
.withdraw-max{
  display:inline-block;
  margin-top:10px;
  color:#6a11cb; /* Purple underline */
  font-size:14px;
  text-decoration:underline;
  cursor:pointer;
}

/* BANK CARD */
.bank-warning-card{
  /* Soft Purple/Lavender background instead of light red */
  background: linear-gradient(135deg, #f3e8ff, #fdfbff); 
  border-radius:16px;
  padding:22px;
  text-align:center;
  margin-bottom:20px;
  border:1px solid rgba(106, 17, 203, 0.15);
  box-shadow:0 6px 20px rgba(106, 17, 203, 0.08);
}

.bank-icon{
  font-size:28px;
  margin-bottom:10px;
  color:#6a11cb; /* Purple icon */
}

.bank-empty h4{
  font-size:18px;
  margin-bottom:6px;
  color:#6a11cb; /* Purple text */
}

.bank-empty p{
  font-size:14px;
  color:#6a11cb;
  margin-bottom:15px;
  opacity: 0.8;
}

#addAccountBtn{
  /* Premium Purple to Blue Gradient */
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color:#fff;
  border:none;
  padding:14px;
  width:100%;
  border-radius:12px;
  font-size:15px;
  font-weight:600;
  cursor:pointer;
  box-shadow:0 6px 18px rgba(106, 17, 203, 0.25);
}

#addAccountBtn:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 22px rgba(106, 17, 203, 0.35);
}

/* BANK DETAILS */
.bank-display-area{
  display:none;
  background:#1c1c1e; /* Kept Dark Mode for card data contrast */
  color:#fff;
  padding:12px;
  border-radius:10px;
  margin-bottom:10px;
}

/* GUIDELINES */
.withdraw-card{
  background:#f7f7f7;
  border-radius:16px;
  padding:18px;
  margin-bottom:20px;
}

.withdraw-title{
  font-size:16px;
  font-weight:700;
  margin-bottom:12px;
  color:#0a0a0a;
}

.withdraw-item{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:14px;
  margin-bottom:10px;
  color:#333;
}

.dot{
  width:8px;
  height:8px;
  background:#6a11cb; /* Purple dot */
  border-radius:50%;
}

/* SUBMIT BUTTON */
.withdraw-submit-btn{
  width:100%;
  /* Solid Purple/Navy feel for the main submit */
  background: linear-gradient(135deg, #1a1a2e, #6a11cb); 
  color:#fff;
  border:none;
  padding:16px;
  border-radius:12px;
  font-size:16px;
  font-weight:600;
  cursor:pointer;
  box-shadow:0 6px 18px rgba(106, 17, 203, 0.3);
  transition: all 0.2s ease;
}

.withdraw-submit-btn:hover{
  transform: translateY(-2px);
  box-shadow:0 8px 22px rgba(106, 17, 203, 0.4);
}

/* ================= RECORDS PAGE ================= */
.records-page {
  width: 100vw;
  padding-top: 60px;
  margin: 0;
  font-family: Arial, sans-serif;
  height: 100vh;
  overflow-y: auto;
  background: #f2f4f8;
  box-sizing: border-box;
}

/* ===============================================
   RECORDS PAGE SPACING
   =============================================== */
.records-page {
  padding-top: 64px;
}


/* ================= CLEAN FIXED HEADER ================= */
.records-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: #ffffff; /* Clean white background */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  border-bottom: 1px solid #f0f0f0;
  font-family: 'Poppins', sans-serif;
}

/* Header title */
.records-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #6a11cb; /* Dark Navy for high contrast */
  letter-spacing: 0.5px;
}

/* ================= CIRCULAR BACK BUTTON ================= */
.records-back-btn {
  position: absolute;
  left: 15px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #eee; /* Subtle border like the image */
  background: #ffffff;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Soft shadow for depth */
  transition: transform 0.1s ease;
  outline: none;
  font-size: 16px;
}

.records-back-btn:active {
  transform: scale(0.95);
  background: #f9f9f9;
}

.record-card {
  width: 94%;
  margin: 12px auto;
  padding: 16px;
  background: #ffffff; /* White card as requested */
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* The Blue Square Icon Box from your image */
.record-icon-box {
  width: 45px;
  height: 45px;
  background: #6a11cb; /* Deep blue background */
  border: 1.5px solid #3b82f6; /* Lighter blue border */
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b82f6; /* Blue icon color */
  font-size: 18px;
  flex-shrink: 0;
}

.record-middle {
  flex-grow: 1;
  margin-left: 15px;
}

.record-transaction {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.record-time {
  font-size: 12px;
  color: #64748b;
  font-family: monospace;
}

.record-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.record-amount {
  font-size: 16px;
  font-weight: 800;
  color: #6a11cb; /* Blue amount text like image */
  margin-bottom: 4px;
}

/* Status text under the amount */
.record-status-subtext {
  font-size: 12px;
  color: #94a3b8;
  text-transform: capitalize;
}

/* Status Colors if you still want them colored */
.status-success { color: #10b981; }
.status-pending { color: #94a3b8; }
.status-failed { color: #ef4444; }


.records-filter {
  display: flex;
  gap: 10px; /* Tighter gap for pills */
  padding: 20px;
  overflow-x: auto;
  justify-content: flex-start; /* Standard for scrollable pill filters */
}

.filter-btn {
  border: 1px solid #6a11cb; /* Subtle border for inactive buttons */
  padding: 10px 24px; /* Pill padding */
  background: #ffffff; /* Darker grey background */
  border-radius: 50px; /* Creates the pill shape */
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: #6a11cb; /* Muted text color */
  white-space: nowrap;
  transition: all 0.2s ease;
}

/* Active Pill State - Green Border and Text */
.filter-btn.active {
  border: 1.5px solid #6a11cb; /* Bright lime/green border */
  color: #6a11cb; /* Matching text color */
  background: transparent; /* Matches image style */
}

.filter-btn:hover:not(.active) {
  background: #21262d;
  border-color: #8b949e;
}

.filter-btn:active {
  transform: scale(0.96);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 480px) {
  .record-card { padding: 14px; min-height: 90px; }
  .record-transaction { font-size: 16px; }
}


/* ================= MODAL OVERLAY ================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

/* ================= MODAL CARD ================= */
.modal-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 24px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
}

/* ================= HEADER ================= */
.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.sheet-title {
  font-size: 22px;
  font-weight: 700;
  color: #000000;
}

.close-sheet {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
}

/* ================= INNER CARD ================= */
.slim-card {
  background: #f7f7f7;
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 25px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* ================= PRODUCT ROW ================= */
.product-main-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.check-icon-container {
  width: 48px;
  height: 48px;
  background: #6a11cb;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.check-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: white;
  color: #000000;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ================= PRODUCT DETAILS ================= */
.product-details strong {
  font-size: 17px;
  font-weight: 700;
  display: block;
  color: #111;
}

.product-details p {
  font-size: 14px;
  color: #444;
  margin-top: 3px;
}

/* ================= DIVIDER ================= */
.divider-line {
  height: 1px;
  background: #e5e5e5;
  margin: 14px 0;
}

/* ================= BALANCE ================= */
.account-balance-row {
  font-size: 14px;
  color: #333;
  font-weight: 600;
}

/* ================= PURCHASE BUTTON ================= */
.purchase-btn {
  background: #6a11cb;
  color: white;
  border: none;
  border-radius: 40px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: block;
  margin: auto;
  box-shadow: 0 6px 15px rgba(47,72,236,0.4);
  transition: transform 0.15s ease;
}

.purchase-btn:active {
  transform: scale(0.95);
}

/* ================= MOBILE ================= */
@media (max-width:480px){

.modal-card{
padding:20px;
}

.sheet-title{
font-size:20px;
}

.product-details strong{
font-size:16px;
}

.product-details p,
.account-balance-row{
font-size:13px;
}

.purchase-btn{
font-size:14px;
padding:10px 22px;
}

}

/* ===============================================
   INVESTMENT PAGE SPACING & SCROLL
   =============================================== */
.investment-page {
  padding-top: 64px;       /* existing spacing */
  padding-bottom: 32px;    /* some breathing space at bottom */
  display: flex;
  flex-direction: column;   /* stack cards vertically */
  align-items: center;      /* center cards horizontally */
  min-height: 100vh;        /* at least full viewport height */
  overflow-y: auto;         /* allow vertical scrolling */
  box-sizing: border-box;
}

/* ================= CLEAN FIXED INVESTMENT HEADER ================= */
.investment-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  border-bottom: 1px solid #f0f0f0;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.05);
  font-family: 'Poppins', sans-serif;
}

/* Header Title */
.investment-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #8A2BE2;
}

/* ================= CIRCULAR BACK BUTTON ================= */
.investment-back-btn {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #eee;
  background: #ffffff;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
  outline: none;
}

/* Press effect */
.investment-back-btn:active {
  transform: translateY(-50%) scale(0.95);
  background: #f9f9f9;
}



/* ================= CUSTOM ALERT ================= */
.custom-alert {
  position: fixed !important;

  top: 50% !important;
  left: 50% !important;

  transform: translate(-50%, -50%) !important;

  background: rgba(0, 0, 0, 0.85);
  color: #fff;

  padding: 14px 24px;
  border-radius: 12px;

  font-size: 15px;
  text-align: center;

  max-width: 90%;
  width: max-content;

  box-shadow: 0 8px 20px rgba(0,0,0,0.5);

  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;

  z-index: 999999; /* higher than EVERYTHING */
}

.custom-alert.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) !important;
}
.custom-alert {
  right: auto;
  margin: 0;
}

.custom-alert.show {
  animation: alertPop 0.3s ease;
}

@keyframes alertPop {
  0% {
    transform: translate(-50%, -60%) scale(0.8);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

/* ================= EMPTY STATE UI ================= */
.empty-state-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  background: transparent;
}

.empty-icon-circle {
  width: 70px;
  height: 70px;
  background: #f8f9fa; /* Very light grey circle */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.empty-icon-circle i {
  font-size: 28px;
  color: #cccccc; /* Muted grey icon */
}

.empty-title {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  color: #1a1a1a;
  font-family: 'Poppins', sans-serif;
}

.empty-subtitle {
  margin: 8px 0 25px 0;
  font-size: 14px;
  color: #888;
  font-weight: 400;
}

/* THE GREEN BUTTON */
.browse-plans-btn {
  background: #8A2BE2; /* Premium Emerald Green */
  color: #ffffff;
  border: none;
  padding: 12px 35px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 179, 134, 0.15);
}

.browse-plans-btn:active {
  transform: scale(0.96);
}


.premium-card {
  width: calc(100% - 16px); /* forces equal spacing */
  margin: 10px auto;        /* centers it properly */
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  box-sizing: border-box;
}
/* ===== IMAGE HEADER ===== */
.card-image-header {
  position: relative;
  width: 100%; /* full width */
  margin: 0;
  border-radius: 0; /* flush edges */
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
}

.card-image-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay Text */
.image-overlay-text {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  text-align: center;
  color: #c488ff;
  font-size: 26px;
  font-weight: 800;
  font-style: italic;
  text-shadow: 0 0 10px rgba(196, 136, 255, 0.8);
}

/* ===== CONTENT AREA ===== */
.card-content {
  padding: 18px 18px;
}

/* Info Rows */
.info-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  align-items: center;
}

.info-label {
  color: #99a1b3;
  font-size: 14px;
  font-weight: 500;
}

.info-value {
  color: #1a1a1b;
  font-size: 16px;
  font-weight: 800;
}

.total-income-value {
  color: #2ecc71;
  font-size: 18px;
  font-weight: 800;
}

/* ===== DAILY STATS ===== */
.stats-grid {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding-bottom: 18px;
}

.stat-label {
  display: block;
  color: #bdc3c7;
  font-size: 12px;
  margin-bottom: 4px;
}

.stat-value {
  color: #2c3e50;
  font-size: 15px;
  font-weight: 800;
}

.text-right {
  text-align: right;
}

/* ===== ACTION SECTION ===== */
.running-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, #9b59b6 0%, #8A2BE2 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  cursor: default;
}

.countdown-text {
  width: 100%;
  text-align: center;
  color: #e74c3c;
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
}

/* REMOVE ANY WIDTH LIMIT FROM PARENT */
.card-wrapper {
  width: 100%;
  max-width: none;
  padding: 0;   /* remove side padding */
  margin: 0;    /* remove centering */
}

/* ALSO CHECK BODY / MAIN CONTAINER */
body {
  margin: 0;
  padding: 0;
}

/* ================= FULLSCREEN OVERLAY ================= */
#pageLoader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dimmed background like the image */
  backdrop-filter: blur(4px);    /* Optional: adds a modern frosted look */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  font-family: 'Inter', sans-serif;
}

/* ================= THE LOADER CARD ================= */
.loader-card {
  background: #1a1a1a; /* Dark gray/black card */
  padding: 40px 30px;
  border-radius: 28px;
  text-align: center;
  width: 85%;
  max-width: 320px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ================= PURPLE CIRCLE SPINNER ================= */
.spinner-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.purple-spinner {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  /* Using a gradient for the "loading" effect */
  background: conic-gradient(from 0deg, transparent 30%, #8A2BE2); 
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #fff 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #fff 0);
  animation: spin 1s linear infinite;
}

/* ================= TEXT STYLES ================= */
.loader-title {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  margin: 10px 0 5px 0;
}

.loader-subtitle {
  color: #aaaaaa;
  font-size: 14px;
  margin: 0;
}

/* ================= SPIN ANIMATION ================= */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}




/* Glassmorphism Fintech Loader */
.glass-popup-border {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px !important;
}

.fintech-loader-container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.shimmer-card {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FFD700, #FFA500); /* Gold/Orange Gradient */
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    animation: pulse 1.5s infinite ease-in-out;
}

.logo-pulse {
    font-size: 30px;
    font-weight: bold;
    color: #fff;
}

.progress-bar-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-top: 25px;
    overflow: hidden;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(to right, #00c6ff, #0072ff);
    animation: fillProgress 3s linear infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes fillProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}


/* Header Image */
.product-header-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}


/* Reviews Ticker Wrapper - fills remaining viewport height */
.reviews-ticker-wrapper {
  width: 100%;
  height: calc(100vh - 250px); /* adjust based on your header/image height */
  overflow: hidden;
  border-radius: 12px;
  background: #ffffff; /* blue background */
  padding: 10px;
  box-sizing: border-box;
}

/* Ticker container */
.reviews-ticker {
  display: flex;
  flex-direction: column;
  gap: 15px;
  animation: scrollReviews 300s linear infinite; /* very slow scroll */
}

/* Each review item */
.review-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  background: #ffffff; /* white card background */
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  min-height: 80px; /* make each review taller */
}

/* User logo / icon */
.review-item .user-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0; /* keeps image from shrinking */
}

/* Review text */
.review-item .review-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.6;
  color: #79a2e5; /* blue text */
}

/* Smooth scroll animation */
@keyframes scrollReviews {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}


/* Custom Fintech Error Styling */
.fintech-error-popup {
    border-radius: 25px !important;
    border: 1px solid rgba(255, 75, 43, 0.2); /* Subtle red glow border */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

.fintech-error-button {
    width: 100%;
    padding: 12px 0 !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #ff416c, #ff4b2b) !important; /* Luxury Red Gradient */
    border: none !important;
}

/* Make the error icon look more subtle */
.swal2-icon.swal2-error {
    border-color: #ff4b2b !important;
}
.swal2-icon.swal2-error [class^='swal2-x-mark-line'] {
    background-color: #ff4b2b !important;
}



/* Success Glow */
.swal2-icon.swal2-success {
    border-color: #00ff88 !important;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.swal2-success-ring {
    border: .25em solid rgba(0, 255, 136, .3) !important;
}

/* Premium Error Popup */
.premium-error-border {
    border-radius: 30px !important;
    border: 1px solid rgba(236, 201, 75, 0.3) !important; /* Gold border */
}

.premium-confirm-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important; /* Purple/Blue Luxury Gradient */
    border-radius: 12px !important;
    padding: 12px 30px !important;
    box-shadow: 0 4px 15px rgba(118, 75, 162, 0.3);
}

/* Full-width black box around dashboard image */
.dashboard-image-box-full {
    width: 100%;                 /* full width of parent container */
    background-color: #000000;   /* black box (you can change to green) */
    padding: 15px;               /* space inside box for image */
    border-radius: 16px;         /* rounded corners */
    box-sizing: border-box;
    text-align: center;          /* center image */
    margin: 20px 0;              /* vertical spacing only, no horizontal shift */
    overflow: hidden;            /* prevent any overflow */
}

/* Dashboard image inside the box */
.dashboard-image {
    max-width: 100%;             /* fit inside green box */
    height: auto;
    border-radius: 12px;         /* slightly rounded corners */
    display: inline-block;       /* center properly */
}




/* ===== PAYMENT TYPE ===== */
.payment-type {
  margin: 15px 0;
  text-align: left;
  width: 100%;
  position: relative;
  font-family: sans-serif;
}

.payment-type label {
  display: block;
  margin-bottom: 6px;
  color: #f4b400; /* green label */
  font-weight: 600;
  font-size: 14px;
}

/* The clickable box */
.payment-box {
  width: 100%;
  background: #ffffff;          /* white box */
  color: #000000;               /* green text */
  border: 1px solid #c0c0c0;   /* silver edge */
  border-radius: 12px;
  padding: 12px 15px;
  cursor: pointer;
  position: relative;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
}

.payment-box:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.payment-box .arrow {
  font-size: 14px;
}



/* Options list hidden by default */
.payment-options {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 48px; /* below the box */
  width: 100%;
  background: #ffffff;
  border: 1px solid #c0c0c0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: none; /* hidden initially */
  z-index: 100;
}

.payment-options li {
  padding: 10px 15px;
  cursor: pointer;
  color: #000000;
  font-weight: 500;
  transition: background 0.2s;
}

.payment-options li:hover {
  background: rgba(15,157,88,0.1); /* light green hover */
}


/* Selected Amount Display */
.selected-amount {
  font-weight: bold;
  color: #000000;   /* black */
  font-size: 20px;
  margin-top: 8px;
  text-align: center;
}



#paymentCountdown {
  margin-top: 14px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #ff0707; /* green */
}


#paymentStatusMessage {
  margin-top: 16px;
  padding: 14px;
  border-radius: 10px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  display: none;
}


.status-pending {
  background: #f0fff6;
  color: #1faa59;
}

.status-approved {
  background: #e6fff1;
  color: #1faa59;
}

.status-declined {
  background: #ffecec;
  color: #d62828;
}

.status-timeout {
  background: #fff6e5;
  color: #c77700;
}


/* ================= PROTECTED UI ================= */
#dashboard,
#bottomNav {
  display: none;
}


/* ================= FLOATING NAV CONTROL (BLACK + GOLD) ================= */
#navToggle {
  position: fixed;
  bottom: 90px; /* sits above bottom nav */
  right: 20px;

  width: 64px;
  height: 44px;
  border-radius: 999px;

  background: rgba(0, 0, 0, 0.9); /* black semi-transparent */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  color: #D4AF37;  /* gold text/icon */
  font-size: 22px;

  border: 1px solid rgba(212,175,55,0.35); /* subtle gold border */
  cursor: pointer;

  z-index: 2001;
  display: none; /* auth decides */

  box-shadow: 0 8px 18px rgba(212,175,55,0.25); /* subtle gold shadow */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Show toggle ONLY when logged in */
body.logged-in #navToggle {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hover / press feedback */
#navToggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(212,175,55,0.35); /* stronger gold glow */
}

#navToggle:active {
  transform: scale(0.95);
}


/* ================= BOTTOM NAV ================= */

/* Hidden forever by default */
#bottomNav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 2000;
}

/* Visible ONLY when toggled */
#bottomNav.open {
  transform: translateY(0);
}


/* ================= FLOATING TELEGRAM (PROFILE PAGE) ================= */
.profile-page .telegram-float-profile {
  position: fixed;
  bottom: 90px;              /* above bottom nav */
  right: 16px;               /* move to right */
  z-index: 9999;

  width: 56px;
  height: 56px;
  border-radius: 50%;

  background: #0088cc;       /* Telegram blue */
  color: #ffffff;            /* white icon/text */

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 26px;
  text-decoration: none;

  box-shadow: 0 8px 20px rgba(0,136,204,0.35);  /* subtle blue shadow */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover / tap */
.profile-page .telegram-float-profile:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 28px rgba(0,136,204,0.45); /* stronger blue shadow */
}

/* Mobile safe */
@media (max-width: 480px) {
  .profile-page .telegram-float-profile {
    bottom: 100px;
    right: 12px;            /* adjust right for mobile */
  }
}