
/* ================= GENERAL RESET ================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


/* --- Root Colors --- */
:root {
  --bg-dark: #000000;
  /* Updated gradient to have a subtle purple center glow instead of red */
  --bg-gradient: radial-gradient(circle at center, #110033 0%, #000000 100%);
  --accent-purple: #4b00e0; 
  --text-white: #ffffff;
  --text-dim: #9ca3af;
  --line-color: #374151;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: var(--bg-gradient);
  background-attachment: fixed;
  font-family: 'Poppins', sans-serif;
  color: var(--text-white);
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  width: 90%;
  max-width: 400px;
  margin: 20px auto;
  display: none;
  flex-direction: column;
}

.container.active { 
  display: flex; 
}

/* Logo & Text Styling */
.logo-area {
  text-align: center;
  margin-bottom: 40px;
}

.site-logo {
  width: 90px;
  height: 90px;
  object-fit: cover; 
  border-radius: 50%;     
  margin-bottom: 15px;
  /* Optional: Purple glow for the logo to match buttons */
  box-shadow: 0 0 20px rgba(75, 0, 224, 0.2);
}

.main-title {
  font-size: 26px;
  font-weight: 500;
  margin: 0;
}

.sub-title {
  color: var(--text-dim);
  font-size: 14px;
  margin-top: 5px;
}

/* Underline Input Styling */
.input-group {
  margin-bottom: 30px;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  background: transparent !important;
  border: none !important;
  border-bottom: 1.5px solid var(--line-color) !important;
  padding: 10px 0 !important;
  color: #ffffff !important;
  font-size: 16px;
  outline: none;
  box-sizing: border-box;
}

/* Focus color updated to Purple */
input:focus {
  border-bottom-color: var(--accent-purple) !important;
}

input::placeholder {
  color: #4b5563;
}

/* The Updated Button Style */
.btn-red {
  width: 100%;
  padding: 16px;
  background: #4b00e0 !important; /* Forced Electric Purple */
  color: white !important;
  border: none !important;
  border-radius: 50px !important;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 15px;
  transition: transform 0.2s, opacity 0.2s;
  /* Adding a purple shadow for depth */
  box-shadow: 0 4px 15px rgba(75, 0, 224, 0.4);
}

.btn-red:active {
  transform: scale(0.97);
  opacity: 0.9;
}

/* Bottom Registration/Login Switch */
.toggle-section {
  text-align: center;
  margin-top: 50px;
}

.toggle-section p {
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 12px;
}

.outline-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid #334155;
  color: white;
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}


/* 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;
  
  /* UPDATED: Deep Electric Purple Radial Gradient */
  background: radial-gradient(circle at center, #110033 0%, #000000 100%);
  background-attachment: fixed; 
  
  color: #ffffff;
}


/* ================= DASHBOARD HEADER (DARK THEME) ================= */
.dashboard-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  height: 50px; /* Slightly taller for the profile feel */
  background: #1e293b; /* Deep Navy/Black from your image */
  display: flex;
  align-items: center;
  padding: 0 20px;
  z-index: 10000;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Circular Avatar Styling */
.header-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #201f1f; /* Dark red border glow */
  overflow: hidden;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-avatar img {
  width: 50%;
  height: 50%;
  object-fit: contain;
}

/* Text Styling */
.header-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.welcome-text {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
}

.user-phone {
  margin: 2px 0 0 0;
  font-size: 15px;
  color: #94a3b8; /* Muted grey for the phone number */
  font-weight: 400;
  letter-spacing: 0.5px;
}
/* Push main content down */
body {
  padding-top: 65px;
}

.main-container {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 25px 15px;

  max-width: 500px;
  width: calc(100% - 30px); /* 👈 ensures side spacing */
  margin: 20px auto;

  border: 1px solid rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
}
/* 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;
}

/* SQUIRCLE ICON BASE */
.action-icon {
  width: 60px; 
  height: 60px;
  border-radius: 18px; /* Squircle shape */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* INDIVIDUAL ICON COLORS MATCHING THE IMAGE */
.icon-recharge {
  background: #5c1a1a; /* Dark Red */
  color: #ff5e5e; 
}

.icon-withdraw {
  background: #1a3a2a; /* Dark Green */
  color: #4ade80; 
}

.icon-team {
  background: #4a2d1a; /* Dark Orange/Brown */
  color: #fb923c; 
}

.icon-checkin {
  background: #2d1a4a; /* Dark Purple */
  color: #a855f7; 
}

/* TEXT STYLING */
.action-btn span {
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8; /* Muted grey/blue text */
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

/* Hover/Active Effect */
.action-btn:active .action-icon {
  transform: scale(0.92);
}


/* 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 */
}


/* Updated container to be full width */
.flyer-container {
  width: 100%;
  margin: 0;
  padding: 0;
  background-color: transparent; /* Removed white background */
  box-shadow: none;             /* Removed shadow for edge-to-edge look */
}

.balance-flyer {
  width: 100vw;       /* Viewport width: 100% of the screen width */
  height: auto;
  overflow: hidden;
  position: relative;
  margin: 0;
}

.flyer-slider {
  display: flex;
  width: 100%;
}

.flyer-card {
  width: 100%;        /* Forces image to stretch to screen edges */
  height: auto;
  display: block;
  border-radius: 0;   /* Removed rounded corners for the edge-to-edge look */
}

/* 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 */
}

/* WRAPPER */
.fintech-wrapper {
  padding: 15px;
  display: flex;
  justify-content: center;
}

/* CARD */
.fintech-card {
  width: 100%;
  max-width: 600px; /* Limits width on desktop */
  min-height: 220px;
  border-radius: 24px;
  position: relative;
  /* Applying your requested purple color into a gradient */
  background: linear-gradient(135deg, #4b00e0 0%, #300091 100%);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

/* OVERLAY/CONTAINER */
.card-overlay {
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* PROFILE SECTION */
.profile-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.profile-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-meta .phone-display {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.5px;
}

.joined-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  margin: 4px 0 0 0;
}

/* THE NESTED BALANCE CARD */
.balance-inner-card {
  background: rgba(255, 255, 255, 0.1); /* Glass effect */
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 18px 20px;
  backdrop-filter: blur(5px);
}

.label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin: 0 0 8px 0;
}

.amount-display {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
}

.currency {
  margin-right: 4px;
}

/* MOBILE RESPONSIVE */
@media (max-width: 360px) {
  .amount-display {
    font-size: 1.5rem;
  }
  .fintech-card {
    min-height: 200px;
  }
}


/* Container */
.kins-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;

  /* SPACING: 30px top and bottom, auto for left and right */
  margin: 10px auto; 
  
  /* MATCHING THE DASHBOARD WIDTH */
  max-width: 600px; 
  padding: 0 15px; 
  box-sizing: border-box; 
}

/* Small Vertical Item */
.kins-item {
  background-color: #111418; /* Dark tile background */
  border-radius: 15px;
  padding: 12px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Smaller Icon Box */
.kins-box {
  width: 42px;  /* Reduced size */
  height: 42px; /* Reduced size */
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  font-size: 16px; /* Smaller icon */
  color: white;
}

/* Small Labels */
.kins-text {
  color: #ffffff;
  font-size: 12px; /* Small text */
  font-weight: 500;
}

/* Colors */
.kins-green {
  background-color: #22c55e;
}

.kins-red {
  background-color: #4b00e0;
}

.kins-purple {
  background-color: #a855f7;
}

/* Interaction */
.kins-item:active {
  transform: scale(0.92);
  background-color: #1a1f26;
}


/* ================= BOTTOM NAV CONTAINER ================= */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #111111; /* Dark black background from image */
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 0 8px 0; 
  box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.5); 
  z-index: 1000;
  border-top: 1px solid #222; /* Very subtle border */
}

/* ================= NAV ITEMS ================= */
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  flex: 1;
  gap: 5px;
  transition: all 0.3s ease;
}

.nav-icon-wrapper {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ICON STYLE */
.nav-item i {
  font-size: 22px;
  color: #999999; /* Grey for inactive */
  transition: color 0.3s ease;
}

/* TEXT STYLE */
.nav-item span {
  font-size: 13px; 
  font-weight: 500; 
  color: #666666; /* Muted grey for inactive text */
  font-family: Arial, sans-serif;
}

/* ACTIVE STATE - Yellow/Gold style from screenshot */
.nav-item.active i {
  color: #4b00e0; /* Bright yellow icon */
}

.nav-item.active span {
  color: #4b00e0; /* Bright yellow text */
  font-weight: 700;
}

/* Simple tap effect */
.nav-item:active {
  transform: scale(0.9);
  opacity: 0.8;
}

/* ===== PROFILE FIXED HEADER ===== */
.profile-header-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
 background: #4b00e0; /* classic burnt red */

  padding: 10px 0;
  text-align: center;
  font-size: 12px;
  color: #ffffff; /* gold text */
  font-weight: bold;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* subtle gold shadow */
}


/* 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: #000000; /* white background */
  color: #000000;      /* black text */
 
}
/* Title */
.profile-title {
  margin: 15px 0;
  font-size: 18px;
  font-weight: bold;
  color: #6a11cb;
  text-align: center;
}

/* Container Background */
.tom-list-container {
  background-color: #000000; /* Deep midnight background */
  padding: 6px;
  font-family: 'Inter', -apple-system, sans-serif;
}

/* Section Box */
.tom-section-box {
  background-color: #161b22; /* Specific Navy Card color */
  border-radius: 16px;
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

/* Header Text (Transactions, etc) */
.tom-section-header {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  color: #f0f6fc;
  font-weight: 600;
  font-size: 16px;
}

.tom-header-icon {
  margin-right: 12px;
  color: #4b00e0; /* Salmon Accent */
  font-size: 16px;
}

/* Individual Row */
.tom-list-row {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  border-top: 1px solid rgba(255, 255, 255, 0.05); /* Separator line */
  transition: 0.2s ease;
}

.tom-list-row:active {
  background-color: rgba(255, 255, 255, 0.04);
}

/* Icons and Text */
.tom-icon {
  width: 24px;
  margin-right: 14px;
  color: #4b00e0;
  font-size: 16px;
  text-align: center;
}

.tom-text {
  flex-grow: 1;
  color: #8b949e; /* Muted gray text */
  font-size: 15px;
}

.tom-chevron {
  color: #484f58;
  font-size: 12px;
}

/* Link Styling */
.tom-link {
  text-decoration: none;
  display: block;
}

/* Logout Specific Color */
.tom-logout-row .tom-text {
  color: #4b00e0;
  font-weight: 500;
}
/* ================= BANK PAGE ================= */

.bank-page {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 0 12px;
  display: none;

  background: #000000;
  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: 40px; /* space for fixed header */
}

.fintech-toast-offset {
  margin-top: 70px; /* adjust based on your header height */
}
.bank-details-header {
  /* Swapped Soft Pink for Soft Lavender/Purple gradient */
  background: linear-gradient(180deg, #000000 0%, #000000 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: #ffffff; 
  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: #111111; /* Dark black background from image */

  border-bottom: 1px solid #f0f0f0;
  z-index: 1000;        /* stay above content */
}


.bank-back-btn {
  background: transparent;
  border: none;
  font-size: 16px;
  color: #ffffff;
  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 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #0b0e11; /* Deeper black for app feel */
}

/* ================= FUNDS DARK UI ================= */
.funds-wrapper {
    max-width: 480px;
    margin: 20px auto;
    font-family: 'Inter', -apple-system, sans-serif;
    padding: 15px;
}

.funds-form-body {
    background: #1c2127; /* Dark grayish-blue from the image */
    padding: 35px 20px;
    border-radius: 28px; /* Extra rounded corners */
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.funds-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Label styling: Soft gray, uppercase */
.funds-label {
    font-size: 12px;
    font-weight: 700;
    color: #8b949e;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-left: 4px;
}

/* Inputs & Selects - Matching the dark inset look */
.funds-field {
    width: 100% !important;
    height: 58px !important;
    padding: 0 20px !important;
    border: 1px solid #2d333b !important;
    border-radius: 16px !important;
    font-size: 16px !important;
    color: #ffffff !important;
    background: #111418 !important; /* Inset dark background */
    outline: none !important;
    transition: border-color 0.3s ease;
}

.funds-field:focus {
    border-color: #4b00e0 !important; /* Lime green highlight */
}

/* Placeholder Styling */
.funds-field::placeholder {
    color: #484f58;
}

/* Custom Dropdown Arrow */
.funds-select-box {
    position: relative;
}

.funds-select-box::after {
    content: '▾';
    font-size: 12px;
    color: #8b949e;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

select.funds-field {
    appearance: none;
    cursor: pointer;
}

/* THE LIME GREEN ACTION BUTTON */
.funds-action-btn {
    width: 100%;
    height: 62px;
    background: #4b00e0; /* The exact green from GMI */
    color: #ffffff;
    border: none;
    border-radius: 20px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    margin-top: 10px;
    transition: transform 0.1s ease, opacity 0.2s ease;
}

.funds-action-btn:hover {
    opacity: 0.9;
}

.funds-action-btn:active {
    transform: scale(0.96);
}

/* Muted notice text */
.funds-notice {
    text-align: center;
    color: #f1f1f1;
    font-size: 13px;
    margin-top: 20px;
    line-height: 1.5;
}

/* 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;
}




/* ===== METHOD SELECTION STYLES ===== */
.method-card {
  background: #1c2333;
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.method-card.active-method {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
}

.method-icon {
  width: 50px;
  height: 50px;
  background: #3b82f6;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-right: 15px;
}

.method-icon.manual {
  background: #6366f1; /* Different color for manual */
}

.method-info h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.method-info p {
  margin: 4px 0 0;
  font-size: 12px;
  opacity: 0.6;
}

.method-check {
  margin-left: auto;
  font-size: 18px;
  color: #3b82f6;
}

.payment-method-page {
  font-family: 'Inter', sans-serif;
  background-color: #0f141e;
  height: 100vh;
  width: 100vw;
  color: white;
  position: fixed; /* Overlay everything */
  top: 0;
  left: 0;
  z-index: 2000;
}


/* Container Background */
#manualDetailsPage {
  background-color: #0b0e14;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  /* FIX: Allow scrolling and prevent content from getting stuck */
  overflow-y: auto; 
  display: block; 
}

/* Header Styling */
.recharge-header-fixed {
  display: flex;
  align-items: center;
  padding: 20px;
  background: transparent;
}

.recharge-header-fixed h2 {
  flex-grow: 1;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
}

.recharge-page-container {
  padding: 0 20px 100px 20px; /* Added 100px at the bottom */
  text-align: center;
  /* FIX: Ensure container expands with content */
  height: auto; 
}

/* Section Labels (Bank Name, Account Number, etc) */
.section-label, .bank-info-row span, label {
  color: #8a8d91;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: block;
}

/* Bold Values */
.bank-info-row strong {
  font-size: 1.4rem;
  display: block;
  margin-bottom: 25px;
  color: #ffffff;
}

/* The "Card" layout in the screenshot is very subtle */
.recharge-card {
  background: #161a21;
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 20px;
  position: relative;
}


/* Premium Input Styling */
input {
  width: 100%;
  /* Slightly lighter than the background to create depth */
  background: #f5f5f5; 
  /* A semi-bright border that defines the shape */
  border: 1.5px solid #2d343f;
  padding: 16px;
  border-radius: 12px;
  color: #ffffff;
  font-size: 1rem;
  margin-top: 8px;
  margin-bottom: 15px;
  transition: all 0.3s ease; /* Smooth transition for the glow */
  outline: none;
}

/* The "Glow" Effect when typing */
input:focus {
  background: #cacdd2;
  border-color: #9d56ff; /* Your theme purple */
  /* Adds a subtle outer glow */
  box-shadow: 0 0 12px rgba(157, 86, 255, 0.2); 
}

/* Placeholder color to keep it readable but distinct */
input::placeholder {
  color: #5f6671;
  font-size: 0.9rem;
}


.deposit-btn {
  background-color: #9d56ff;
  color: white;
  border: none;
  width: 100%;
  padding: 18px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: bold;
  text-transform: uppercase;
  margin: 30px 0; /* Added more vertical margin */
  cursor: pointer;
  /* Optional: Add a shadow to make it pop against the dark bg */
  box-shadow: 0 4px 15px rgba(157, 86, 255, 0.3);
}

/* Small Copy Buttons next to text (Matches the purple icon in your image) */
.copy-btn-v2 {
  background: #2a2e35;
  color: #9d56ff;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  float: right;
  margin-top: -50px; /* Positions it next to the strong text */
}


.recharge-page {
  font-family: 'Inter', sans-serif;
  background-color: #0f141e;
  height: 100vh; /* Force it to be exactly the height of the screen */
  width: 100vw;
  color: white;
  margin: 0;
  
  overflow: hidden; /* Prevent internal scrolling */
  position: relative;
  box-sizing: border-box;
  /* Removed transform and left: 50% to keep header fixed */
}

/* ===== FIXED HEADER ===== */
.recharge-header-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: #121826;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.recharge-header-fixed h2 {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.recharge-back-btn-v2 {
  position: absolute;
  left: 15px;
  background: transparent;
  border: none;
  color: #3b82f6; /* Blue back arrow */
  font-size: 20px;
  cursor: pointer;
}

/* ===== CONTAINER ===== */
.recharge-page-container {
  padding: 40px 15px 30px;
  width: 100%;
  margin: 0;
}
/* ===== THE CARD ===== */
.recharge-card {
  background: #1c2333; /* Lighter dark for the card */
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 25px;
}

.section-label {
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 20px;
  color: #ffffff;
}

.section-label.centered {
  margin-top: 25px;
}

/* ===== GRID SYSTEM ===== */
.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns like image */
  gap: 12px;
}

.amount-option {
  background: rgba(59, 130, 246, 0.05); /* Very subtle blue tint */
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 15px 5px;
  border-radius: 8px;
  text-align: center;
  color: #3b82f6; /* Blue text from image */
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.amount-option:active {
  background: #3b82f6;
  color: white;
}

/* ===== CUSTOM INPUT ===== */
.custom-amount-wrapper {
  background: #283046;
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 12px 15px;
  border: 1px solid #3b4252;
}

.currency-icon {
  color: #3b82f6;
  font-weight: bold;
  margin-right: 10px;
}

#customAmount {
  background: transparent;
  border: none;
  color: white;
  font-size: 16px;
  outline: none;
  width: 100%;
}

#customAmount::placeholder {
  color: #676d7d;
}

/* ===== RECHARGE BUTTON ===== */
.deposit-btn {
  width: 100%;
  background: linear-gradient(to right, #2c0091, #1a0055); /* Deep purple/blue gradient */
  color: white;
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.deposit-btn:active {
  transform: scale(0.98);
}


.fintech-toast {
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  font-family: Inter, sans-serif;
}


/* OVERLAY - MAXIMUM DARKNESS */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  
  /* Increased from 0.7 to 0.95 for almost total black */
  background: rgba(0, 0, 0, 0.95); 
  
  /* Increased blur from 5px to 15px for heavy frost effect */
  backdrop-filter: blur(15px); 
  -webkit-backdrop-filter: blur(15px); 
  
  z-index: 9999;
}

/* MODAL BOX */
.mx-unique-modal {
  width: 85%;
  max-width: 360px;
  background: #111111;
  border-radius: 15px; /* Softer corners like the image */
  padding: 25px 20px;
  text-align: center; /* Centered like the screenshot */
  font-family: Arial, sans-serif;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* HEADER SECTION */
.mx-modal-title {
  font-size: 22px;
  font-weight: 800;
  color: #4b00e0; /* Red "Platform notification" style */
  margin: 0 0 15px 0;
}

/* DESCRIPTION TEXT */
.mx-popup-description {
  font-size: 14px;
  color: #e0e0e0;
  line-height: 1.4;
  margin-bottom: 20px;
}

/* BENEFIT LIST - Centered list with numbers */
.mx-unique-modal .mx-benefit-list {
  text-align: left; /* List content is left-aligned */
  margin-bottom: 20px;
  counter-reset: item;
}

.mx-unique-modal .mx-benefit-item {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 14px;
  color: #ffffff;
}

/* Numbered List Style to match image */
.mx-unique-modal .mx-benefit-item::before {
  counter-increment: item;
  content: counter(item) ". ";
  font-weight: bold;
}

/* BUTTON GROUP */
.mx-button-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

/* Silver Gradient Buttons for Telegram */
.mx-unique-modal .mx-telegram-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, #4b00e0 0%, #4b00e0 100%);
  color: #fff;
  padding: 12px 5px;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  font-size: 13px;
}

/* Long Black Button */
.mx-btn-off {
  width: 100%;
  background: #000;
  color: #ea382e;
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

#welcomePopup {
  display: none; /* Changed from none to flex for visibility during testing */
}

/* 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 */
}


.premium-card {
  background: linear-gradient(145deg, #020617, #020617);
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 20px;
  color: #fff;
  border: 1px solid rgba(13, 138, 95, 0.2);
  box-shadow: 0 0 20px rgba(13, 138, 95, 0.08);
  width: 100%;
  max-width: 500px;
}

/* HEADER */
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 15px;
}

.plan-icon-box {
  background: rgba(13, 138, 95, 0.15);
  width: 45px;
  height: 45px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0d8a5f;
  font-size: 18px;
}

.title-group {
  flex: 1;
}

.plan-title {
  font-size: 12px;
  color: #6b7280;
  font-weight: 600;
}

.plan-price {
  font-size: 20px;
  margin: 2px 0 0;
}

.active-tag {
  background: rgba(0, 255, 120, 0.1);
  color: #00ff88;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: bold;
}

/* TIMER */
.timer-box {
  background: rgba(0, 255, 120, 0.05);
  border: 1px solid rgba(0, 255, 120, 0.15);
  padding: 14px;
  border-radius: 14px;
  text-align: center;
  margin-bottom: 15px;
}

.timer-label {
  font-size: 11px;
  color: #00ff88;
  letter-spacing: 1px;
}

.countdown {
  font-family: monospace;
  font-size: 22px;
  margin-top: 5px;
  color: #00ff88;
  letter-spacing: 2px;
}

/* GRID */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.stat-box {
  background: rgba(255,255,255,0.02);
  padding: 10px;
  border-radius: 12px;
}

.stat-label {
  font-size: 10px;
  color: #6b7280;
}

.stat-value {
  font-size: 14px;
  font-weight: bold;
  margin-top: 3px;
}

/* DETAILS */
.details-list {
  margin-top: 12px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #6b7280;
  padding: 5px 0;
}

.detail-item span:last-child {
  color: #fff;
}

/* PROGRESS */
.progress-bar-bg {
  height: 5px;
  background: #111827;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 5px;
}

.progress-fill {
  height: 100%;
  background: #00ff88;
}

/* MOBILE FIX */
@media (max-width: 480px) {
  .premium-card {
    padding: 15px;
  }

  .plan-price {
    font-size: 18px;
  }

  .countdown {
    font-size: 18px;
  }
}



.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: #1e293b;
  color: #001f3f;

  z-index: 1000;              /* stays above invite content */
  border-bottom: 1px solid #1e293b;
  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: #ffffff;
}


/* ================= 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 #1e293b;
  background: #1e293b;
  color: #ffffff;

  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 {
  --bg-dark: #0f172a;
  --card-bg: #1e293b;
  --input-bg: #0f172a;
  --accent-red: #4b00e0 ;
  --text-main: #ffffff;
  --text-muted: #94a3b8;
}

.referral-container {
  max-width: 450px;
  margin: 0 auto;
  padding: 20px;
  background-color: #0b0f1a; /* Very dark background */
  min-height: 100vh;
  font-family: 'Poppins', sans-serif;
}

/* Common Card Style */
.referral-card, .how-it-works-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-label {
  color: var(--text-main);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 15px;
}

/* Copy Input UI */
.copy-input-wrapper {
  display: flex;
  background: var(--input-bg);
  border-radius: 12px;
  overflow: hidden;
  height: 60px;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.1);
}

.code-display, .link-display {
  flex: 1;
  padding: 0 20px;
  color: #4b00e0 ; /* Light pinkish red for the code */
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 2px;
  background: transparent;
  border: none;
  outline: none;
  display: flex;
  align-items: center;
}

.link-display {
  font-size: 14px;
  letter-spacing: 0;
  color: var(--text-muted);
}

.copy-icon-btn {
  background: var(--accent-red);
  color: white;
  border: none;
  width: 60px;
  height: 100%;
  font-size: 20px;
  cursor: pointer;
}

/* How It Works Section */
.how-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.how-header i { color: var(--accent-red); font-size: 18px; }

.step-item {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.step-number {
  background: var(--accent-red);
  color: var(--text-main);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  border: 1px solid var(--accent-red);
}

.step-content h4 {
  margin: 0;
  color: var(--text-main);
  font-size: 16px;
}

.step-content p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.4;
}


/* --- 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: #121b1e; /* 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, #121b1e 0%, #121b1e 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: #ffffff;
}

/* ================= 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: #121b1e;
  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: #161d31;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  border-bottom: 1px solid #161d31;
}

.withdraw-header-fixed h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff; /* 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 #161d31;
  background: #161d31;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}


.history-btn {
  position: absolute;
  right: 15px; /* push to right */
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}


/* ================= GLOBAL ================= */
* {
  box-sizing: border-box;
}

:root {
  --bg-dark: #0a0e14;
  --accent-blue: #3b82f6;
  --text-gray: #8a8d91;
}

/* ================= MAIN CONTAINER ================= */
.recharge-container {
  background-color: #0b0e14;
  padding: 70px 15px 30px; /* reduced spacing */
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  display: flex;
  flex-direction: column;
  gap: 15px; /* controls all spacing */
}

/* Keep everything aligned nicely */
.recharge-container > * {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

/* ================= MAIN CARD ================= */
.withdrawal-card-box {
  background-color: #161d31;
  border-radius: 12px;
  padding: 20px;
}

/* INPUT */
.withdraw-input-box {
  display: flex;
  align-items: center;
  background: #283046;
  border-radius: 8px;
  padding: 12px 15px;
  border: 1px solid #3b4253;
}

.withdraw-input-box input {
  background: transparent;
  border: none;
  outline: none;
  font-size: 18px;
  width: 100%;
  color: #d0d2d6;
}

.currency {
  font-size: 18px;
  margin-left: 10px;
  color: var(--accent-blue);
}

.icon-input {
  color: var(--accent-blue);
  margin-right: 10px;
}

/* BALANCE */
.balance-box {
  margin-top: 12px;
  font-size: 14px;
  color: #b4b7bd;
  display: flex;
  justify-content: space-between;
}

#withdrawBalance {
  color: var(--accent-blue);
  font-weight: 600;
}

.withdraw-max {
  color: var(--accent-blue);
  font-size: 13px;
  cursor: pointer;
}

/* BUTTON */
.withdraw-submit-btn {
  width: 100%;
  background: #3e10b5;
  color: #fff;
  border: none;
  padding: 15px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.withdraw-submit-btn:active {
  opacity: 0.85;
}


.transaction-info-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #0a0e14; /* 👈 remove card feel */
  padding: 10px 0; /* tighter, natural spacing */
  border-radius: 0; /* 👈 remove curve */
  border: none; /* just in case */
}

.info-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.circle-icon {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: 2px solid #1a2332;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--accent-blue);
  font-weight: bold;
  font-size: 1rem;
}

.circle-icon svg {
  width: 24px;
  height: 24px;
}

.mini-max {
  font-size: 0.75rem;
}

.label {
  color: var(--text-gray);
  font-size: 0.85rem;
}

/* ================= BANK CARD ================= */
.bank-warning-card {
  background-color: #161d31;
  border-radius: 12px;
  padding: 18px;
}

.bank-title-blue {
  text-align: center;
  color: var(--accent-blue);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.bank-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #283046;
}

.bank-detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  color: #676d7d;
  font-size: 13px;
}

.detail-value {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-align: right;
}

/* ================= GUIDELINES ================= */
.withdraw-card {
  background-color: #161d31;
  border-radius: 12px;
  padding: 18px;
}

.withdraw-title {
  color: var(--accent-blue);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.withdraw-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  margin-bottom: 10px;
  color: #d0d2d6;
  line-height: 1.4;
}

.info-icon {
  background: var(--accent-blue);
  color: white;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  flex-shrink: 0;
  margin-top: 2px;
}
/* ================= RECORDS PAGE ================= */
.records-page {
  width: 100vw;
  padding-top: 60px;
  margin: 0;
  font-family: Arial, sans-serif;
  height: 100vh;
  overflow-y: auto;
  background: #0d1117;
  box-sizing: border-box;
}

/* ===============================================
   RECORDS PAGE SPACING
   =============================================== */
.records-page {
  padding-top: 0px;
}


/* Specific Purple color for the Registration Bonus Icon */
.icon-bonus {
  background: rgba(168, 85, 247, 0.1);
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.2);
}

/* ================= CLEAN FIXED HEADER ================= */
.records-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: #0d1117; /* Clean white background */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  border-bottom: 1px solid #0d1117;
  font-family: 'Poppins', sans-serif;
}

/* Header title */
.records-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff; /* 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 #0d1117; /* Subtle border like the image */
  background: #0d1117;
  color: #ffffff;
  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;
}


#recordsContainer {
  padding: 10px 0;
}


#recordsContainer {
  padding: 15px;
  background-color: #0d1117; /* Dark background like the screenshot */
  min-height: 100vh;
}

/* ================= RECORD CARD ================= */
.record-card {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 18px;
  background: #161b22; /* Card background color */
  border-radius: 12px; /* Rounded corners for the card */
  margin-bottom: 12px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ================= ICON SECTION ================= */
.record-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 50%; /* Circular icons as seen in screenshot */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  margin-right: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Colors based on screenshot */
.icon-withdrawal, .icon-minus { 
  background: transparent; 
  color: #ffffff; 
  border: 1px solid rgba(255,255,255,0.2);
}

/* ================= CONTENT SECTION ================= */
.record-middle {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.record-transaction {
  font-weight: 600;
  font-size: 15px;
  color: #ffffff;
  margin-bottom: 4px;
}

.record-time {
  font-size: 12px;
  color: #8b949e; /* Muted gray */
}

.record-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.record-amount {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
}

/* Withdrawal Red/Pink Color from image */
.amount-minus { color: #f85149; } 
.amount-plus { color: #3fb950; }

/* ================= STATUS PILL ================= */
.record-status {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.05); /* Dark pill bg */
}

/* Status: Confirmed / Success */
.status-success {
  color: #3fb950;
  background: rgba(63, 185, 80, 0.1);
}

.status-success::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: #3fb950;
  border-radius: 50%;
  display: inline-block;
}

/* Status: Pending */
.status-pending {
  color: #d29922;
  background: rgba(210, 153, 34, 0.1);
}

/* Status: Failed */
.status-failed {
  color: #f85149;
  background: rgba(248, 81, 73, 0.1);
}


/* ================= FILTER (DARK THEME) ================= */
.records-filter {
  display: flex;
  gap: 25px; /* Slightly wider gap for a cleaner look */
  padding: 15px 10px;
  overflow-x: auto;
  justify-content: center;
  background-color: #0d1117; /* Matches the dark background */
  border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Subtle dark border */
}

.filter-btn {
  border: none;
  padding: 8px 0;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  color: #8b949e; /* Muted gray for inactive text */
  white-space: nowrap;
  transition: all 0.2s ease;
  position: relative;
  outline: none;
}

/* Active Text State - Bright Blue and Bold */
.filter-btn.active {
  color: #2D6BEF; /* Your brand blue */
  font-weight: 700;
}

/* Bottom line for active text */
.filter-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #2D6BEF;
  border-radius: 10px 10px 0 0; /* Slightly rounded top for the line */
}

.filter-btn:active {
  transform: scale(0.95);
  opacity: 0.8;
}

/* Hide scrollbar for cleaner look while keeping functionality */
.records-filter::-webkit-scrollbar {
  display: none;
}
.records-filter {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* ================= 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;
}

}


/* ================= PAGE WRAPPER ================= */
.investment-page {
  background: #040404;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  /* Crucial: Forces content to start at the top, not center */
  justify-content: flex-start !important; 
  align-items: stretch; 
  overflow-y: auto;
  box-sizing: border-box;
  margin: 0;
  padding: 0; /* Removed the 75px padding from here */
}

/* ================= FIXED HEADER ================= */
.investment-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: #040404;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08); 
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.investment-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #fefefe;
  font-family: 'Poppins', sans-serif;
}

/* Back Button */
.investment-back-btn {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #ffffff; 
  cursor: pointer;
}

/* ================= SUB-HEADER (SNAPS TO TOP) ================= */
.investment-sub-header {
  /* 60px for header height + 20px extra breathing room = 80px */
  padding: 80px 20px 15px 20px; 
  background: #040404;
  width: 100%;
  box-sizing: border-box;
}

.investment-sub-header h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
}

.investment-sub-header p {
  margin: 5px 0 0 0;
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.4;
}

/* ================= CARD WRAPPER ================= */
.card-wrapper {
  padding: 10px 16px 40px 16px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  box-sizing: border-box;
}

/* Container adjustment for single column */
#dynamicProductList {
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
  padding: 15px !important;
  /* ADD THIS LINE BELOW */
  padding-bottom: 100px !important; /* This creates extra space at the very b
  background: #0b0e11; /* Deep dark background */
}

/* THE CARD */
.mx-product-card {
  background: linear-gradient(145deg, #161b22, #0d1117);
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 24px !important;
  padding: 20px !important;
  display: flex !important;
  flex-direction: column !important;
  font-family: 'Inter', sans-serif;
  position: relative;
  overflow: hidden;
}

/* Header: Name and Logo */
.mx-plan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.mx-plan-name {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.mx-brand-logo {
  width: 45px;
  height: 45px;
}

.mx-card-logo {
  width: 100%;
  filter: drop-shadow(0 0 5px #000000); /* Green glow from image */
}

/* Badges (The small dark boxes) */
.mx-stats-badge-row {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
}

.mx-badge {
  background: #21262d;
  padding: 8px 15px;
  border-radius: 8px;
  min-width: 80px;
  text-align: center;
}

/* Income Grid */
.mx-income-grid {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.mx-info-row {
  font-size: 12px;
  color: #8b949e; /* Muted text */
  margin-top: 4px;
}

.mx-price-red {
  color: #ffffff !important;
  font-weight: 600;
  font-size: 18px;
}

/* Footer: Price and Button */
.mx-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.mx-main-price {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff; /* Bright green price */
}

/* Investment Button */
.mx-add-to-portfolio-btn {
  background: #4b00e0 !important; /* The blue from the screenshot */
  color: #ffffff !important;
  border: none !important;
  padding: 12px 25px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
  transition: all 0.3s ease;
}

.mx-add-to-portfolio-btn:active {
  transform: scale(0.96);
}
/* This targets the <a> tag wrapping your settings item */
a.settings-link-wrapper {
    text-decoration: none !important; /* Forces the underline to disappear */
    color: inherit !important;        /* Forces the text to stay your app's color */
    display: block;                   /* Makes the whole row clickable */
    -webkit-tap-highlight-color: transparent; /* Removes the gray box on mobile tap */
}

/* Optional: Add a slight hover or active effect so the user knows it's a button */
a.settings-link-wrapper:active {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

/* ================= 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 (PRODUCT STYLE) ================= */
.empty-state-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  
  padding: 40px 20px; 
  margin: 15px;
  text-align: center;
  
  /* Card Design: 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;
  
  width: auto; 
  max-width: 100%; 
  box-sizing: border-box;
}

.empty-icon-circle {
  width: 70px; /* Slightly larger for product focus */
  height: 70px;
  background: #f8f9fa; /* Clean grey/white tint */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.empty-icon-circle i {
  font-size: 28px;
  color: #121b1e; /* Bold dark 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: #777;
  font-weight: 400;
  line-height: 1.5;
  max-width: 280px; /* Keeps text centered and readable */
}

/* THE BUTTON - Full width button */
.browse-plans-btn {
  background: #000000; 
  color: #ffffff;
  border: none;
  width: 100%; 
  max-width: 300px; /* Adjusted for better card balance */
  padding: 16px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.browse-plans-btn:active {
  transform: scale(0.97);
}


/* FULLSCREEN LIGHT OVERLAY */
#pageLoader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff; /* clean white like most apps */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* CENTER BOX */
.loader-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* SPINNER */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e5e7eb;   /* light gray */
  border-top: 4px solid #3b82f6; /* blue */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* TEXT */
.loader-box p {
  font-size: 14px;
  color: #555;
  margin: 0;
  font-family: 'Inter', sans-serif;
}

/* ANIMATION */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


/* 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: #d29922;
}

.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 */
  }
}



