
/* ================= 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 updated to Green --- */
:root {
  --smart-green: #0056D2; 
  --text-dark: #1a1f36;
  --text-gray: #697386;
  --input-border: #e3e8ee;
}

.auth-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #f7f8f9; /* Lighter background */
}

.container {
  width: 90%;
  max-width: 400px;
  padding: 40px 30px;
  background: #ffffff;
  border-radius: 15px; /* Softer rounded corners per image */
  box-shadow: 0 15px 35px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
  display: none;
  flex-direction: column;
}

.container.active { display: flex; }

.main-title {
  color: var(--text-dark);
  font-size: 32px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 5px;
}

.sub-title {
  text-align: center;
  color: var(--text-gray);
  font-size: 16px;
  margin-bottom: 30px;
}

/* --- Labels & Inputs --- */
.input-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  text-align: left;
}

.input-group {
  position: relative;
  margin-bottom: 20px;
}

.input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #a3acb9; /* Gray icons from screenshot */
  font-size: 16px;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 12px 15px 12px 45px;
  background: #ffffff;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

input::placeholder {
  color: #cfd7df;
}

input:focus {
  border-color: var(--smart-green);
}

/* --- Remember Me / Terms --- */
.terms-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--text-gray);
}

.terms-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--smart-green);
}

/* --- Green Button --- */
.btn-green {
  width: 100%;
  padding: 14px;
  background: var(--smart-green);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 15px;
}

.btn-outline {
  width: 100%;
  padding: 14px;
  background: transparent;
  color: var(--text-dark);
  border: 1px solid var(--input-border);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.toggle-text {
  text-align: center;
  font-size: 14px;
  color: var(--text-gray);
  margin-top: 15px;
}

.toggle-text a {
  color: var(--smart-green);
  text-decoration: none;
  font-weight: 600;
}

.divider-text {
  text-align: center;
  color: var(--text-gray);
  font-size: 12px;
  margin: 15px 0;
  position: relative;
}

.divider-text::before, .divider-text::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background: var(--input-border);
}
.divider-text::before { left: 0; }
.divider-text::after { right: 0; }

/* 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: #2d3ede; /* Your Purple theme */
  font-family: 'Inter', sans-serif;
}
.header-title {
    color: #000000 !important;
}

/* Right side (The yellow notification dot) */
.header-right {
  display: flex;
  align-items: center;
}

.notification-dot {
  width: 12px;
  height: 12px;
  background-color: #000000; /* Golden/Orange dot from image */
  border-radius: 50%;
}

/* Push main content down so it's not hidden under fixed header */
body {
  padding-top: 60px;
}


/* THE WHITE OUTER BOX */
.main-container {
  background: #ffffff;
  border-radius: 15px;
  padding: 20px 10px;
  margin: 20px auto;
  max-width: 500px; /* Constrained width so it's not too wide */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* Subtle shadow for depth */
}

/* GRID LAYOUT */
.action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
}

/* THE INDIVIDUAL BUTTONS */
.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.action-btn:active {
  transform: scale(0.95);
}

/* SMALLER CIRCULAR ICON (Reduced from 70px to 50px) */
.action-icon {
  width: 50px; 
  height: 50px;
  background: #E9F2FF; 
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  color: #0056D2; 
  font-size: 20px; /* Slightly smaller icon size */
}

/* TEXT STYLING */
.action-btn span {
  font-size: 13px; /* Reduced font size to match smaller icons */
  font-weight: 600;
  color: #333; /* Darker grey/blue for better readability on white */
  text-align: center;
  font-family: sans-serif;
}


/* CONTAINER & HEADER */
.features-section {
  padding: 20px;
  background: transparent;
  font-family: sans-serif;
}

.features-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.features-header h2 {
  font-size: 20px;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0;
}

.view-all-link {
  color: #2D6BEF; /* Matching Syncox Blue */
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
}

/* HORIZONTAL SCROLLING WRAPPER */
.features-scroll-container {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px;
  /* Hide scrollbar for Chrome/Safari */
  scrollbar-width: none; 
}

.features-scroll-container::-webkit-scrollbar {
  display: none;
}

/* THE CARDS - Optimized for Mobile */
.feature-card {
  flex: 1 1 calc(33.33% - 10px); /* Adjusts to fit 3 cards per row */
  max-width: calc(33.33% - 10px); 
  background: #ffffff;
  border-radius: 15px; /* Slightly smaller radius for mobile */
  padding: 15px 5px;   /* Reduced padding to save space */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  border: 1px solid #f0f0f0;
  box-sizing: border-box;
  margin: 5px; /* Adds breathing room between cards */
}

.feature-title {
  font-size: 18px; /* Scaled down from 22px for mobile */
  font-weight: 800;
  color: #1a1a1a; 
  margin-bottom: 2px;
  text-align: center;
}

/* The 100% Blue Highlight */
.highlight-text {
  color: #2D6BEF !important;
}

.feature-subtitle {
  font-size: 11px; /* Scaled down from 14px */
  font-weight: 600;
  color: #99a1b7; 
  text-align: center;
  white-space: nowrap; /* Prevents text from wrapping ugly */
}

/* 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 */
}


.fintech-dashboard {
  width: 100%;
  max-width: 400px; /* Slightly slimmer */
  padding: 16px;
  margin: 0 auto;
}

/* ATM STYLE CARD */
.user-profile-card {
  width: 100%;
  background: linear-gradient(135deg, #2D6BEF, #1a4fbb); 
  border-radius: 20px; /* Slightly tighter corners for ATM feel */
  padding: 20px;
  box-sizing: border-box;
  color: white;
  box-shadow: 0 10px 25px rgba(45, 107, 239, 0.25);
  position: relative;
  overflow: hidden;
}

/* TOP ROW */
.header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.avatar-box {
  width: 45px; /* Reduced from 75px */
  height: 45px;
  background: rgba(255, 255, 255, 0.2);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  overflow: hidden;
}

.avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.welcome-text {
  font-size: 11px;
  opacity: 0.8;
  display: block;
}

.phone-display {
  font-size: 16px; /* Reduced from 24px */
  font-weight: 600;
  margin: 0;
}

/* BALANCE SECTION */
.balance-section {
  margin-bottom: 25px;
  padding-left: 5px;
}

.balance-section .label {
  font-size: 12px;
  opacity: 0.8;
  margin-bottom: 4px;
  display: block;
}

.balance-section .amount-row {
  font-size: 28px; /* Reduced zoom */
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ACTION ROW INSIDE CARD */
.action-row {
  display: flex;
  gap: 10px; /* Space between the two colored buttons */
  margin-top: 10px;
}

.btn-action {
  flex: 1;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 12px 5px;
  border-radius: 12px; /* Individual rounded corners for each button */
  transition: all 0.2s ease;
  color: white;
}

/* TOP UP: Lighter, vibrant blue (Glass effect) */
#depositBtn {
  background: rgba(255, 255, 255, 0.2); 
  border: 1px solid rgba(255, 255, 255, 0.3);
}


/* ===== SKY BLUE WITHDRAW BUTTON ===== */
#withdrawBtn {
  background-color: #ffffff !important; /* Sky Blue */
color: #000000 !important;           /* Black text/icon */
 }

/* Hover/Active states for feel */
.btn-action:active {
  transform: scale(0.98);
  opacity: 0.9;
}

.btn-action i {
  font-size: 15px;
}


/* You can remove the .divider class from your HTML now */
/* ================= 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: #2d3ede; /* Active icon turns purple */
  transform: scale(1.05); /* Very slight scale, not too much */
}

.nav-item.active span {
  color: #2d3ede; /* 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: #2D6BEF; /* 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: 30px; /* 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 */
 
}
/* Title */
.profile-title {
  margin: 15px 0;
  font-size: 18px;
  font-weight: bold;
  color: #6a11cb;
  text-align: center;
}



.settings-container {
  padding: 15px;
  max-width: 500px;
  margin: 0 auto;
  font-family: 'Inter', sans-serif;
}

/* THE GROUPED WHITE CARDS */
.settings-group {
  background: #ffffff;
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid #edf2f7;
}

/* GROUP HEADERS */
.group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #1a202c;
  padding: 18px 20px;
  margin: 0;
  border-bottom: 1px solid #f1f5f9;
}

/* ICONS IN HEADERS */
.group-title i {
  color: #2D6BEF; /* Syncox Blue */
  font-size: 18px;
}

/* INDIVIDUAL LIST ITEMS */
.settings-item {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  text-decoration: none;
  background: #ffffff;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid #f1f5f9;
}

.settings-item:last-child {
  border-bottom: none;
}

.settings-item:active {
  background: #f8fafc;
}

/* TEXT LABEL */
.item-label {
  flex-grow: 1;
  font-size: 15px;
  font-weight: 500;
  color: #4a5568;
}

/* RIGHT CHEVRON */
.arrow {
  color: #cbd5e0;
  font-size: 14px;
}

/* LOGOUT SPECIAL STYLING */
.logout-btn .item-label {
  color: #E53E3E; /* Soft red for logout */
}

.logout-icon {
  color: #E53E3E !important;
}



/* ================= 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: #2D6BEF; 
  font-size: 24px;
  padding-top: 2px;
}

.header-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.header-title {
  /* Bold Purple text */
  color: #000000; 
  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: 15px 15px;    /* smaller padding for a slimmer header */
  background: #fdfdfd;
  border-bottom: 1px solid #f0f0f0;
  z-index: 1000;        /* stay above content */
}


.bank-back-btn {
  background: transparent;
  border: none;
  font-size: 16px;
  color: #000000;
  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: #000000;
  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: #2D6BEF !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: #2D6BEF; /* 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 #2D6BEF, 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: #47b106;
    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, #000000 0%, #5f6061 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: #2D6BEF; /* Using Purple instead of Black/Red */
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}



/* PAGE */
.recharge-page {
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  height: 100vh; /* use fixed height */
  background: #ffffff;
  font-family: 'Inter', sans-serif;
  position: relative;
  display: block;
  overflow: hidden; /* prevent internal scroll */
}

/* CONTENT CONTAINER */
.recharge-page-container {
  padding: 80px 15px 40px;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden; /* stop content scroll */
}


/* ================= HEADER - Updated to Blue ================= */
.recharge-header-fixed {
  position: fixed;
  top: 0;
  width: 100%;
  max-width: 450px;
  height: 60px;
  background-color: #3b71db; /* Exact Blue from Image */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  z-index: 1000;
  box-sizing: border-box;
}

.recharge-header-fixed h2 {
  color: #ffffff;
  font-size: 20px;
  font-weight: 500;
  margin: 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.recharge-back-btn-v2 {
  background: transparent;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

.records-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: white;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none;
}


/* ================= CONTAINER & INPUT ================= */
.recharge-page-container {
  padding: 80px 15px 20px;
  background-color: #f5f5f5;
  height: 100%;        /* not min-height */
  overflow: hidden;    /* stop scroll */
  box-sizing: border-box;
}

.recharge-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.custom-amount-wrapper {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #e0e0e0;
  padding: 5px 15px;
}

.currency-symbol {
  font-size: 20px;
  font-weight: bold;
  color: #3b71db;
  margin-right: 10px;
}

#customAmount {
  flex: 1;
  border: none;
  padding: 12px 0;
  font-size: 16px;
  outline: none;
  color: #333;
}

/* ================= AMOUNT GRID ================= */
.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 25px;
}

.amount-option {
  background: #ffffff;
  border: 1px solid #adc6f3; /* Light blue border */
  padding: 15px 0;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  color: #3b71db;
  text-align: center;
  transition: all 0.2s;
}

.amount-option.active {
  background: #3b71db;
  color: white;
}

/* ================= BUTTON ================= */
.deposit-btn-1 {
  width: 100%;
  padding: 15px;
  background: #3b71db !important;
  color: rgb(255, 255, 255);
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
}

/* ================= INSTRUCTIONS ================= */
.instructions-container {
  margin-top: 25px;
  background: white;
  padding: 20px;
  border-radius: 12px;
}

.instruction-text {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
  line-height: 1.4;
}

.instruction-text strong {
  color: #333;
}


/* 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.6); 
  z-index: 9999;
}

/* MODAL BOX - Matches the SmartRise Card style */
.mx-unique-modal {
  width: 90%;
  max-width: 400px;
  background: #fff;
  border-radius: 12px; /* Less rounded, more modern card feel */
  padding: 25px;
  text-align: left; /* Aligned left like the image */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* CLOSE ICON - Top right X */
.mx-unique-modal .mx-popup-close {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  line-height: 1;
}

/* HEADER SECTION */
.mx-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.mx-modal-header i {
  font-size: 24px;
  color: #333;
}

.mx-modal-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1f36;
  margin: 0;
}

/* DESCRIPTION TEXT */
.mx-popup-description {
  font-size: 15px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* BENEFIT LIST - Clean list with green checks */
.mx-unique-modal .mx-benefit-list {
  margin-bottom: 25px;
}

.mx-unique-modal .mx-benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.mx-unique-modal .mx-check-icon {
  color: #3b71db; /* SmartRise Green */
  font-size: 18px;
}

.mx-unique-modal .mx-benefit-text {
  font-size: 15px;
  font-weight: 500;
  color: #333;
}

.mx-unique-modal .mx-benefit-text strong {
  font-weight: 700;
}

/* BUTTON GROUP - Two green buttons side-by-side */
.mx-button-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mx-unique-modal .mx-telegram-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #3b71db; /* Green background */
  color: #fff;
  padding: 12px 5px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 13px;
  transition: opacity 0.2s;
}

.mx-unique-modal .mx-telegram-btn:active {
  opacity: 0.8;
}

#welcomePopup {
  display: none; /* Controlled by JS */
}


/* 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: 15px;
  padding: 15px;
  background: #E9EDF2; /* Light grey/blue background like the screenshot */
}

/* ================= THE CARD ================= */
.mx-product-card {
  background: #ffffff;
  border-radius: 15px; /* Softer corners */
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e0e0e0;
  position: relative;
}

/* HEADER ROW - Name on Left, Price on Right */
.mx-card-header-row {
  display: flex !important;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.mx-plan-name {
  font-size: 20px;
  font-weight: 800;
  color: #2D6BEF; /* Main blue */
}

.mx-price-text {
  font-size: 20px;
  font-weight: 800;
  color: #2D6BEF;
}

/* ICON BOX (The Blue Box on the right) */
.mx-brand-logo {
  width: 50px;
  height: 50px;
  background: #E9F2FF; 
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2D6BEF;
  font-size: 24px;
}

/* STATS ROWS - Aligning Icons and Text */
.mx-stats-container {
  margin-bottom: 20px;
}

.mx-info-row {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

.mx-info-label {
  font-size: 15px;
  color: #666;
  font-weight: 500;
}

.mx-info-value {
  font-size: 15px;
  color: #2D6BEF; /* Blue values */
  font-weight: 700;
}

/* ICONS IN STATS */
.mx-info-row i {
  color: #2D6BEF;
  width: 20px;
  font-size: 14px;
}

/* ================= THE BLUE BUTTON ================= */
.mx-add-to-portfolio-btn {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: none;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff !important;
  background: #2D6BEF; /* Solid blue button */
  cursor: pointer;
  transition: opacity 0.2s;
}

.mx-add-to-portfolio-btn:active {
  transform: scale(0.98);
  background: #1a56d1;
}


.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: #1a56d1;
}


/* ================= 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;
}



body {
  margin: 0;
  background-color: var(--dark-navy);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.referral-container {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}

.header-banner {
  padding: 40px 20px;
  display: flex;
  align-items: center;
  color: rgb(0, 0, 0);
  gap: 15px;
}

.icon-circle {
  background: rgba(255, 255, 255, 0.2);
  padding: 15px;
  border-radius: 50%;
  border: 2px solid #e3b07e;
}

.header-text h1 { margin: 0; font-size: 22px; }
.header-text p { margin: 5px 0 0; font-size: 13px; opacity: 0.8; }

.white-card-container {
  background: white;
  border-radius: 30px 30px 0 0;
  padding: 20px;
  min-height: 80vh;
}

.build-team-bar {
  background: #1a56d1;
  color: white;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  font-size: 14px;
  margin-bottom: 30px;
}

.qr-section {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-bottom: 20px;
}

.satellite-icon { font-size: 50px; opacity: 0.3; }

.label-text {
  text-align: center;
  color: #666;
  margin-bottom: 5px;
}

.invite-code {
  text-align: center;
  color: var(--text-blue);
  font-size: 32px;
  margin: 0 0 20px 0;
  font-weight: 800;
}

.link-box {
  background: var(--link-bg);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.link-input {
  width: 100%;
  border: none;
  background: transparent;
  color: #333;
  font-size: 14px;
  text-align: center;
}

.copy-btn {
  background: var(--dark-navy);
  color: white;
  border: none;
  width: 100%;
  padding: 15px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
}

.commission-footer {
  text-align: center;
  font-size: 13px;
  color: #444;
  margin-top: 20px;
}

/* --- 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, #f4f4f4 0%, #ffffff 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: #2D6BEF;
}

/* ================= 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: #000000; 
  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 #000000;
  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: #000000;
  background: #fdfbff;
}

/* Remove divider on last */
.level-tab-item:last-child {
  border-right: none;
}

/* Active tab */
.level-tab-item.active {
 background: #2D6BEF;
  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: #fcfdfe;
  font-family: 'Inter', sans-serif;
  display: flex;
  flex-direction: column;
  height: 100vh;
  margin: 0;
  box-sizing: border-box;
  overflow: hidden; /* Prevent double scrollbars */
}

/* FIXED HEADER STICKY */
.withdraw-header-fixed {
  width: 100%;
  height: 60px;
  background: #2d6bef;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  box-sizing: border-box;
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.withdraw-header-fixed h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.withdraw-back-btn-v2 {
  background: transparent;
  color: #fff;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

.history-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* SCROLLABLE CONTAINER */
.recharge-container {
  padding: 15px;
  margin-top: 60px; /* Space for the fixed header */
  flex: 1;
  overflow-y: auto; 
  -webkit-overflow-scrolling: touch; /* Smooth scroll for iOS */
}

/* CARDS & ELEMENTS */
.balance-card {
  background: #2d6bef;
  border-radius: 14px;
  padding: 22px;
  color: white;
  margin-bottom: 20px;
  text-align: center;
}

.withdrawal-card-box {
  background: #ffffff;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  border: 1px solid #f1f1f1;
}

.withdraw-input-box {
  display: flex;
  align-items: center;
  background: #f9f9f9;
  border-radius: 10px;
  padding: 14px;
  border: 1px solid #e0e0e0;
}

.withdraw-input-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 16px;
  width: 100%;
  margin-left: 8px;
  font-weight: 600;
}

#addAccountBtn {
  background: #2d6bef;
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-weight: 700;
  width: 100%;
  margin-top: 10px;
}

.withdraw-submit-btn {
  width: 100%;
  background: #2d6bef;
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  margin-top: 15px;
  cursor: pointer;
}


/* ================= 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: #2D6BEF; /* 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 ================= */
.record-card {
  width: 90%; /* leave space from edges */
  min-height: 100px; /* slightly taller */
  margin: 10px auto; /* centered with spacing */
  padding: 16px 20px;
  background: #ffffff; /* white card */
  color: #000000; /* default black text */
  border-radius: 22px; 
  border: 1px solid rgba(0,0,0,0.05); 
  display: flex;
  align-items: center;
  gap: 18px;
  box-sizing: border-box;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.record-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* ================= ICON CONTAINER ================= */
.record-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  /* Swapped grey/red for soft purple glass feel */
  background: rgba(106, 17, 203, 0.1); 
  color: #2D6BEF; 
}

/* Icon colors - Unified to Purple and Blue */
.icon-deposit, .icon-commission { color: #2D6BEF; }
.icon-withdrawal { color: #2575fc; }
.icon-bonus { color: #2D6BEF; }

/* ================= CONTENT ================= */
.record-middle {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.record-transaction {
  font-weight: 700;
  font-size: 17px;
  /* Swapped Red for Brand Purple */
  color: #2D6BEF; 
}

.record-time {
  font-size: 13px;
  color: #888888; 
}

.record-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.record-amount {
  font-weight: 800;
  font-size: 17px;
  color: #1a1a1a; 
}

/* ================= STATUS (TEXT ONLY - NO PILLS) ================= */
.record-status {
  font-weight: 700;
  font-size: 13px;
  padding: 0; /* Removed padding */
  border-radius: 0; /* Removed curves */
  background: transparent !important; /* Removed pill background */
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Text-specific status colors */
.status-success { color: #10b981; } 
.status-pending { color: #f39c12; } 
.status-declined, .status-failed { color: #ff4d4d; }

.status-success::before { content: '●'; font-size: 8px; }

/* ================= FILTER (TEXT ONLY - NO PILLS) ================= */
.records-filter {
  display: flex;
  gap: 20px; /* Wider gap for text-only links */
  padding: 15px 0;
  overflow-x: auto;
  justify-content: center;
  border-bottom: 1px solid #f0f0f0;
}

.filter-btn {
  border: none;
  padding: 5px 0; /* No pill padding */
  background: transparent; /* No background */
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: #999; /* Muted for inactive */
  white-space: nowrap;
  transition: all 0.2s ease;
  position: relative;
}

/* Active Text State - Purple and Bold */
.filter-btn.active {
  color: #2D6BEF;
  font-weight: 800;
}

/* Optional: small bottom line for active text instead of a pill */
.filter-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #2D6BEF;
  border-radius: 2px;
}

.filter-btn:active {
  transform: scale(0.95);
}

/* ================= 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: #2D6BEF;
  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: #2D6BEF;
  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(0,0,0,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: #001f3f;
}

/* ================= 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;
}

/* ===== CARD ===== */
.premium-card {
  width: 94%;
  margin: 15px auto;
  border-radius: 25px;
  padding: 20px;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  font-family: 'Inter', sans-serif;
  box-sizing: border-box;
}

/* ===== HEADER SECTION ===== */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-icon {
  color: #2d6bef; /* Your Blue */
  font-size: 20px;
}

.plan-title {
  font-size: 20px;
  font-weight: 800;
  color: #2d6bef;
}

.status-badge {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===== BODY LAYOUT ===== */
.card-body {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.body-left {
  flex: 0 0 100px;
}

.plan-image-placeholder {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #2d6bef, #1a237e);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 40px;
}

.body-right {
  flex: 1;
}

/* ===== ROWS & LABELS ===== */
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.info-label {
  font-size: 13px;
  color: #888;
  display: flex;
  align-items: center;
  gap: 6px;
}

.info-label i {
  width: 14px;
  text-align: center;
}

.info-value {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

/* ===== SPECIAL COLORS ===== */
.price-text {
  color: #2d6bef; /* Blue instead of red */
  font-weight: 700;
}

.income-text {
  color: #35b46b; /* Success green */
}

.countdown-text {
  color: #555;
}

.warning-text {
  color: #f57c00; /* Orange for remaining days */
}

/* MOBILE ADJUSTMENT */
@media (max-width: 400px) {
  .body-left {
    flex: 0 0 80px;
  }
  .plan-image-placeholder {
    width: 80px;
    height: 80px;
    font-size: 30px;
  }
  .info-label, .info-value {
    font-size: 12px;
  }
}
/* ================= 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 (ATM CARD STYLE) ================= */
.empty-state-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  
  /* Pushes it up the page */
  padding: 40px 20px; 
  margin: 15px;
  text-align: center;
  
  /* Card Design: Makes it stretch like an ATM card */
  background: #ffffff;
  border-radius: 16px; 
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
  
  /* Stretch settings */
  width: auto; 
  max-width: 100%; 
  box-sizing: border-box;
}

.empty-icon-circle {
  width: 60px;
  height: 60px;
  background: #fff5f5; /* Light tint to match your red button */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.empty-icon-circle i {
  font-size: 24px;
  color: #2d6bef; /* Matching your Dark Red theme */
}

.empty-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  font-family: 'Poppins', sans-serif;
}

.empty-subtitle {
  margin: 6px 0 20px 0;
  font-size: 13px;
  color: #666;
  font-weight: 400;
  line-height: 1.4;
}

/* THE BUTTON - Stretched to match card feel */
.browse-plans-btn {
  background: #2d6bef; 
  color: #ffffff;
  border: none;
  width: 100%; /* Makes button stretch the width of the card */
  max-width: 250px; /* Prevents it from being TOO wide on tablets */
  padding: 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(139, 0, 0, 0.2);
}

.browse-plans-btn:active {
  transform: scale(0.98);
}

/* ================= FULLSCREEN OVERLAY ================= */
#pageLoader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #333333; /* Exact dark grey background from image */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

/* ================= DOTTED WHITE SPINNER ================= */
.syncox-loader {
  width: 50px;
  height: 50px;
  display: grid;
  border-radius: 50%;
  /* Creates the dotted effect using a mask */
  -webkit-mask: radial-gradient(farthest-side,#0000 40%,#000 41%);
  background:
    conic-gradient(from 0deg, #ffffff 0deg, rgba(255,255,255,0) 360deg),
    radial-gradient(farthest-side, #ffffff 98%, #0000) top/12% 12% no-repeat,
    conic-gradient(from 0deg, #0000 0deg, #ffffff 0deg) content-box;
  animation: syncox-spin 1s infinite steps(8); /* Steps(8) gives it that "ticking" dot look */
}

/* Alternate simpler CSS for the dotted look */
.dotted-spinner {
   width: 45px;
   aspect-ratio: 1;
   border-radius: 50%;
   padding: 3px;
   background: 
     radial-gradient(farthest-side,#ffffff 95%,#0000) 50% 0/12% 12% no-repeat,
     radial-gradient(farthest-side,#ffffff 95%,#0000) 50% 100%/12% 12% no-repeat,
     radial-gradient(farthest-side,#ffffff 95%,#0000) 100% 50%/12% 12% no-repeat,
     radial-gradient(farthest-side,#ffffff 95%,#0000) 0 50%/12% 12% no-repeat,
     radial-gradient(farthest-side,#ffffff 95%,#0000) 85.36% 14.64%/12% 12% no-repeat,
     radial-gradient(farthest-side,#ffffff 95%,#0000) 85.36% 85.36%/12% 12% no-repeat,
     radial-gradient(farthest-side,#ffffff 95%,#0000) 14.64% 85.36%/12% 12% no-repeat,
     radial-gradient(farthest-side,#ffffff 95%,#0000) 14.64% 14.64%/12% 12% no-repeat;
   animation: syncox-spin 1s infinite linear;
}

@keyframes syncox-spin {
  to { transform: rotate(1turn); }
}


/* 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%); }
}



/* 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 */
  }
}