
/* ================= GENERAL RESET ================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


/* ================= AUTH CONTAINERS ================= */
* {
  box-sizing: border-box;
}

body {
  background-color: #222b3e;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  font-family: 'Inter', sans-serif;
}

/* ================= MAIN CARD ================= */
#signupContainer,
#loginContainer {
  width: 92%;
  max-width: 380px;
  padding: 25px 20px; /* 🔥 reduced height */
  background: #1e293b;
  border-radius: 20px;
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.35);
  display: none;
  flex-direction: column;
  animation: fadeIn 0.4s ease-out;
}

#signupContainer.active,
#loginContainer.active {
  display: flex;
}

/* ================= LOGO ================= */
.logo-placeholder {
  height: 35px;
  margin: 0 auto 20px auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-placeholder img {
  max-height: 100%;
  object-fit: contain;
}

/* ================= TEXT ================= */
.welcome-text h2 {
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 5px;
  text-align: center;
}

.welcome-text p {
  color: #94a3b8;
  font-size: 14px;
  margin-bottom: 20px;
  text-align: center;
}

/* ================= FORM ================= */
label {
  font-size: 13px;
  font-weight: 500;
  color: #cbd5e1;
  margin-bottom: 6px;
  display: block;
}

.input-group {
  position: relative;
  margin-bottom: 15px; /* 🔥 tighter spacing */
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  display: flex;
  align-items: center;
  font-size: 14px;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 13px 14px 13px 40px;
  background: #334155;
  border: 1px solid #475569;
  border-radius: 10px;
  font-size: 14px;
  color: #ffffff;
  outline: none;
  transition: all 0.2s;
}

input::placeholder {
  color: #94a3b8;
}

input:focus {
  border-color: #22c55e;
  background: #1e293b;
}

/* ================= BUTTON ================= */
.btn-main {
  width: 100%;
  padding: 14px;
  background: #4b00e0;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.3s, transform 0.2s;
}

.btn-main:hover {
  background: #047857;
}

.btn-main:active {
  transform: scale(0.98);
}

/* ================= FOOTER ================= */
.toggle-text {
  text-align: center;
  margin-top: 15px;
  font-size: 13px;
  color: #94a3b8;
}

.toggle-text a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
}

/* ================= ANIMATION ================= */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(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;
}


/* General Reset */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #0f172a; /* Your requested color */
  color: white;
}

/* 1. The Fixed Header */
.dashboard-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #0f172a; 
  padding: 20px;
  box-sizing: border-box;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 2. Top row: Logo, Name, Info icon */
.header-top {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-box {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-text {
  flex-grow: 1;
}

.brand-name {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.brand-subtext {
  margin: 0;
  font-size: 14px;
  opacity: 0.7;
}

.info-icon {
  width: 35px;
  height: 35px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: italic;
}

/* 3. The Welcome Card (Glass effect) */
.welcome-card {
  background: rgba(255, 255, 255, 0.05); /* Subtle glass look */
  padding: 25px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.welcome-title {
  margin: 0;
  font-size: 22px;
  margin-bottom: 8px;
}

.welcome-subtitle {
  margin: 0;
  font-size: 16px;
  opacity: 0.8;
}

/* 4. THE PADDING FIX */
/* This ensures your scrollable content starts below the header */
.content-wrapper {
  padding-top: 220px; /* Adjust this value based on header height */
  padding-left: 20px;
  padding-right: 20px;
}

/* ================= ACTION GRID CONTAINER ================= */
.action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  width: 92%;
  max-width: 450px; /* Limits size so it's not "too zoomed" on big screens */
  margin: 20px auto;
  background-color: #2a2228; /* Dark muted background from image */
  padding: 25px 15px;
  border-radius: 24px;
  box-sizing: border-box;
}

/* THE INDIVIDUAL BUTTONS */
.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.1s ease;
}

.action-btn:active {
  transform: scale(0.92);
}

/* THE ICON BOXES (Rounded Squares) */
.icon-box {
  width: 55px;
  height: 55px;
  border-radius: 16px; /* Smooth rounded corners */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  font-size: 22px;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
}

/* TEXT STYLING */
.action-btn span {
  font-size: 12px; /* Smaller font for mobile elegance */
  font-weight: 500;
  color: #b5aeb4; /* Muted greyish text from image */
  text-align: center;
  white-space: nowrap;
}

/* COLOR MATCHING FROM IMAGE */
.recharge-bg {
  background: linear-gradient(145deg, #7a1d23, #4a1014); /* Deep Red */
  color: #ff6b75; 
}

.withdraw-bg {
  background: linear-gradient(145deg, #1d4d3a, #0e2b20); /* Dark Green */
  color: #4ade80;
}

.team-bg {
  background: linear-gradient(145deg, #6b3e1d, #3d2311); /* Bronze/Brown */
  color: #fbbf24;
}

.checkin-bg {
  background: linear-gradient(145deg, #4c1d6b, #2a103d); /* Deep Purple */
  color: #a855f7;
}

/* Mobile Tweak: Ensures it stays small on tiny screens */
@media (max-width: 360px) {
  .icon-box {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }
  .action-btn span {
    font-size: 11px;
  }
}
/* ================= INVESTMENT PLANS SECTION ================= */
.investment-section {
  width: 94%;
  max-width: 500px;
  margin: 20px auto;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.section-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #000000;
}


/* Remove default spacing from the page */
body, html {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* Prevents unwanted horizontal scrolling */
}

/* 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 */
}

/* Product Section Wrapper */
.product-section {
  margin-top: 20px;
  padding: 0 10px;
}

/* 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: #000000;          /* 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 */
}


/* ================= BOTTOM NAV CONTAINER ================= */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #0f172a; 
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 6px 0; /* Reduced vertical padding */
  z-index: 1000;
  border-top: 1px solid #1e293b; 
}

/* ================= NAV ITEMS ================= */
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  flex: 1;
  gap: 2px; /* Tighter gap between icon and text */
  transition: all 0.2s ease;
  padding: 4px 0; /* Reduced padding */
}

.nav-icon-wrapper {
  width: 48px;  /* Reduced from 60px */
  height: 28px; /* Reduced from 36px */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px; /* Pill-shaped highlight */
}

/* SVG ICON STYLE */
.nav-item svg {
  width: 20px;  /* Reduced from 24px */
  height: 20px; /* Reduced from 24px */
  fill: #94a3b8;
}

/* TEXT STYLE */
.nav-item span {
  font-size: 11px; /* Smaller, cleaner font size */
  font-weight: 500;
  color: #94a3b8;
  font-family: 'Inter', sans-serif;
}

/* ACTIVE STATE */
.nav-item.active .nav-icon-wrapper {
  background: #1e293b; 
}

.nav-item.active svg {
  fill: #f8fafc; 
}

.nav-item.active span {
  color: #f8fafc;
  font-weight: 600;
}

/* ===== PROFILE FIXED HEADER ===== */
.profile-header-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
 background: #283046; /* classic burnt red */

  padding: 10px 0;
  text-align: center;
  font-size: 12px;
  color: #f1f1f1; /* gold text */
  font-weight: bold;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* subtle gold shadow */
}

.profile-header-bar i {
  margin-right: 8px;
  color: #000000; /* gold icon */
}

/* Push content down so it doesn’t go under header */
.profile-content {
  padding-top: 60px; /* same as header height */
}

/* ===== PROFILE PAGE ===== */
.profile-page {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  display: none;
  padding: 0 10px 80px 10px;
  height: calc(100vh - 0px);
  overflow-y: auto;
  box-sizing: border-box;
  background: #0b1120; /* white background */
  color: #000000;      /* black text */
}

/* Profile Header Image - ATM card style */
.profile-header {
  width: 100%;
  height: 180px;
  margin-bottom: 20px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,128,0,0.25); /* subtle green shadow */
  background: #ffffff;
}

.profile-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Title */
.profile-title {
  margin: 15px 0;
  font-size: 18px;
  font-weight: bold;
  color: #190101;
  text-align: center;
}

/* GLOBAL RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

.fintech-dashboard {
  width: 100%;
  max-width: 450px;
  padding: 16px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Profile Card */
.user-profile-card {
  width: 100%;
  background: #161d31; /* Darker navy card */
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.avatar-box {
  width: 70px;
  height: 70px;
  background: #283046;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

#balanceAmount {
  color: #3b82f6;      /* Vistacrest Blue */
  font-weight: 700;
}
.avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-display {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.id-badge {
  font-size: 14px;
  color: #7367f0; /* Purple accent color */
  margin-top: 4px;
}

/* Balance Card */
.balance-card {
  width: 100%;
  background: #161d31;
  border-radius: 16px;
  padding: 20px;
}

.label {
  font-size: 13px;
  color: #b4b7bd;
}

.amount-row {
  font-size: 28px;
  font-weight: 700;
  margin: 10px 0 20px 0;
}

.action-row {
  display: flex;
  gap: 12px;
}

.btn {
  flex: 1;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-weight: 600;
  cursor: pointer;
}

.btn-topup {
  background: #7367f0; /* Purple button */
  color: white;
}

.btn-withdraw {
  background: #283046; /* Subtle dark button */
  color: #7367f0;
  border: 1px solid #7367f0;
}

body {
  background-color: #0b0e14;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
}

/* Make it almost full width */
.settings-container {
  max-width: 100%;
  margin: 0;
  padding: 0 10px; /* very small side gap */
}

/* Card */
.settings-group {
  background-color: #12182b;
  border-radius: 14px;
  margin-bottom: 14px; /* tighter spacing */
  overflow: hidden;
}

/* Header */
.group-header {
  display: flex;
  align-items: center;
  padding: 14px 16px; /* reduced */
  border-bottom: 1px solid #1f2940;
}

.group-header i {
  margin-right: 12px;
  color: #ea5455;
  font-size: 16px;
}

.group-header span {
  font-weight: 600;
  font-size: 16px;
  color: #ffffff;
}

/* Items */
.settings-item {
  display: flex;
  align-items: center;
  padding: 14px 16px; /* slimmer */
  cursor: pointer;
  transition: background 0.2s ease;
}

.settings-item:not(:last-child) {
  border-bottom: 1px solid #1f2940;
}

.settings-item:hover {
  background-color: #18213a;
}

/* Icons */
.icon-box {
  width: 28px;
  display: flex;
  justify-content: center;
  color: #3b82f6;
  margin-right: 12px;
  font-size: 16px;
}

/* Text */
.item-label {
  flex-grow: 1;
  font-size: 15px;
  color: #c7c9d1;
}

/* Arrow */
.arrow {
  color: #5c6377;
  font-size: 13px;
}

/* Logout */
.logout-text {
  color: #ea5455;
}



/* ================= BANK PAGE (MATCHING IMAGE) ================= */

.bank-page {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  display: none;
  background: #0f172a; /* Dark background from image */
  color: #ffffff;
  height: 100vh;
  overflow-y: auto;
  box-sizing: border-box;
  padding-top: 60px;
}

.bank-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 15px;
  background: #1e293b; /* Match body color */
  z-index: 1000;
}

.bank-back-btn {
  background: transparent;
  border: none;
  font-size: 20px;
  color: #3b82f6; /* Blue back arrow */
  cursor: pointer;
  display: flex;
  align-items: center;
  z-index: 2;
}

.bank-header h2 {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  z-index: 1;
}

/* Container & Card */
.bank-form-container {
    padding: 20px;
}

.bank-form-card {
    background: #1e293b; /* Slightly lighter dark for the card */
    padding: 25px 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px;
}

/* Input Group */
.input-group {
    position: relative;
    width: 100%;
}

/* Icon styling inside inputs */
.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6366f1; /* Purple icon color */
    font-size: 18px;
}

/* Inputs & Select */
.gamex-input,
select.gamex-input {
    width: 100% !important;
    height: 55px !important;
    padding: 0 15px 0 45px !important; /* Extra padding left for icon */
    border: 1px solid #334155 !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    color: #cbd5e1 !important;
    background: #0f172a !important; /* Darker input background */
    outline: none !important;
    appearance: none;
}

/* Specific styling for the Select to look like the image */
.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '\f078'; /* FontAwesome Chevron Down */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 12px;
    color: #64748b;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Hide the icon for the select dropdown specifically if you want it to match image */
.select-wrapper .gamex-input {
    padding-left: 15px !important;
}

/* Button - Solid Purple */
.update-bank-btn {
    width: 100%;
    height: 55px;
    background: #4338ca; /* Deep Purple */
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s ease;
}

.update-bank-btn:hover {
    background: #4f46e5;
}

.success-message {
    text-align: center;
    color: #10b981;
    font-size: 14px;
    margin-top: 10px;
}


/* ===== GLOBAL SETTINGS ===== */
.recharge-page {
  font-family: 'Inter', sans-serif;
  background-color: #0f141e; /* Deep dark background */
  min-height: 100vh;
  color: white;
  margin: 0;
  padding: 0;
}

.recharge-page {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  left: 50%;
  transform: translateX(-50%);
}

/* ===== 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: 80px 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);
}

/* 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.7);
  z-index: 9999;
  backdrop-filter: blur(5px);
}

/* For demo purposes, change display to flex to see it */
#welcomePopup {
  display: flex; 
}

/* MODAL BOX */
.popup-box {
  width: 90%;
  max-width: 400px;
  background: #ffffff;
  border-radius: 24px;
  padding: 40px 24px;
  text-align: center;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  position: relative;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* CLOSE ICON */
.popup-close {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 24px;
  color: #ccc;
  cursor: pointer;
  font-weight: 300;
}

/* LOGO & BRAND */
.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 35px;
}

#welcomePopup{
display:none;
}


.popup-icon {
  font-size: 40px;
  color: #283046; /* Deep Green */
}

.brand-name {
  font-size: 38px;
  font-weight: 700;
  color: #4b00e0; /* Deep Green */
  letter-spacing: -1px;
}

/* MODAL BODY LIST */
.modal-body {
  text-align: left;
  display: inline-block;
  margin-bottom: 25px;
}

.info-item {
  color: #555;
  font-size: 16px;
  margin-bottom: 12px;
  font-weight: 400;
}

.telegram-hint {
  color: #222;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 20px;
}

/* TELEGRAM BUTTON (GREEN) */
.telegram-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #3b82f6; /* Bright Green */
  color: #fff;
  padding: 14px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.telegram-btn:hover {
  background: #3b82f6;
}

.telegram-btn i {
  font-size: 20px;
}

/* 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 */
}


/* Container Background */
.product-list {
  background: #f4f6f9;
  padding: 0px;
  padding-bottom: 90px;
}


.premium-card {
  background: #222b3e;
  border-radius: 25px;
  padding: 20px;
  margin-bottom: 20px;
  color: #fff;
  border: 1px solid #2a3539;
}

/* Header Section */
.header-main {
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
  margin-bottom: 20px;
}

.plan-icon-box {
  background: #4b00e0;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.title-group .plan-title {
  display: block;
  font-size: 14px;
  color: #697386;
  font-weight: bold;
}

.title-group .plan-price {
  margin: 0;
  font-size: 22px;
}

.active-tag {
  position: absolute;
  right: 0;
  background: rgba(13, 138, 95, 0.1);
  color: #4b00e0;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
}

/* Progress Bar */
.cycle-section {
  margin-bottom: 20px;
}

.cycle-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #697386;
  font-weight: bold;
  margin-bottom: 8px;
}

.progress-bar-bg {
  height: 6px;
  background: #1a2428;
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #4b00e0;
  border-radius: 10px;
}

/* Stats Boxes */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.stat-box {
  padding: 12px 8px;
  border-radius: 12px;
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 9px;
  font-weight: bold;
  margin-bottom: 5px;
}

.stat-value {
  font-size: 12px;
  font-weight: bold;
}

.daily { background: rgba(13, 138, 95, 0.1); color: #0d8a5f; }
.accrued { background: rgba(255, 193, 7, 0.05); color: #ffc107; }
.total { background: rgba(105, 115, 134, 0.1); color: #fff; }

/* Details List */
.detail-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 13px;
  color: #697386;
}

.detail-item span:last-child {
  color: #fff;
  font-weight: 500;
}

.highlight-text {
  color: #fff !important;
  font-weight: bold !important;
}

/* Timer Section */
.timer-box {
  background: rgba(255, 193, 7, 0.05);
  padding: 15px;
  border-radius: 15px;
  width: fit-content;
  margin-top: 15px;
}

.timer-label {
  display: block;
  font-size: 10px;
  color: #ffc107;
  font-weight: bold;
  margin-bottom: 8px;
}

.countdown {
  font-family: monospace;
  font-size: 18px;
  color: #fff;
  font-weight: bold;
}




.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 #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: #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 #ffffff;
  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: #000000;
}



/* ================= REFERRAL PAGE (MATCHING IMAGE) ================= */

.cards-container {
  background-color: #0f172a; /* Deep navy background */
  padding: 20px 15px;
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
}

/* --- TOP TOOL CARD (Invite Section) --- */
.referral-wrapper {
  background: #1e293b; /* Slate card background */
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 25px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.main-title {
  display: none; /* Removed to match the clean image look */
}

.tool-card {
  margin-bottom: 20px;
}

.field-label {
  display: block;
  font-size: 14px;
  color: #94a3b8; /* Muted label color */
  margin-bottom: 8px;
  font-weight: 500;
}

/* Input boxes in the image */
.input-display {
  background: #2d3748; /* Darker input well */
  border-radius: 12px;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.text-value {
  color: #3b82f6; /* Blue text color from image */
  font-weight: 600;
  font-size: 16px;
  background: transparent;
  border: none;
  width: 80%;
  outline: none;
}

/* Copy Icon styling */
.icon-red {
  color: #3b82f6;
  font-size: 18px;
  cursor: pointer;
  opacity: 0.8;
}

/* --- TEAM CARDS (The Purple Header Cards) --- */
.structure-card, .how-it-works-card {
  background: #1e293b;
  border-radius: 24px;
  overflow: hidden; /* Important for the header gradient */
  margin-bottom: 20px;
  border: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  padding: 0; /* Let inner content handle padding */
}

/* Purple Header matching image */
.section-title {
  background: linear-gradient(90deg, #310aae 0%, #1e0576 100%);
  color: white;
  margin: 0;
  padding: 15px 20px;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::before {
  content: '\f0c0'; /* FontAwesome Users icon */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

/* Card Body */
.referral-box {
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.pct {
  font-size: 32px;
  font-weight: 800;
  color: #3b82f6; /* Bright blue percentage */
  display: block;
}

.comm-text {
  color: #94a3b8;
  font-size: 14px;
  font-weight: 500;
}

.view-team-link {
  margin-top: 15px;
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- HIDE ORIGINAL ELEMENTS NOT IN IMAGE --- */
.level-circle, .referral-info p, .action-btn-red {
  display: none;
}


/* ================= DARK THEME 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;
  background: #0f172a;       /* Dark navy background from image */
  color: white;
  z-index: 1000;
  font-family: 'Poppins', sans-serif;
}

/* Header text */
.team-header-main span {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
}

/* ================= CLEAN BACK BUTTON ================= */
.back-btn-white {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;    /* Removed the circular white background */
  border: none;
  color: #2563eb;             /* Blue back arrow color from image */
  font-size: 22px;
  cursor: pointer;
  z-index: 1100;
}

/* ================= LEVEL TABS (THEMED) ================= */
.level-tabs-container {
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  display: flex;
  padding: 10px 15px;         /* Added padding for spacing */
  background: #0f172a;        /* Match header background */
  gap: 10px;                  /* Space between the two buttons */
  z-index: 999;
  box-sizing: border-box;
}

/* Each button - Rectangular with purple border */
.level-tab-item {
  flex: 1;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #2e1065;   /* Dark purple border */
  border-radius: 4px;         /* Very slight curve like the image */
  background: #1e293b;        /* Lighter dark blue for inactive */
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Active tab - Matches the glowing border look */
.level-tab-item.active {
  border: 1.5px solid #4f46e5; /* Brighter purple/blue border for active */
  background: #1e293b;        /* Keeps background consistent */
  color: #ffffff;
}

/* PAGE CONTENT ADJUSTMENT */
#earningsPage {
  padding-top: 130px; /* Adjusted to account for header + tabs */
  background-color: #0f172a;
  min-height: 100vh;
}


/* ================= 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 (MATCHING IMAGE) ================= */
.user-row {
  display: flex;
  align-items: center;
  background-color: #1e293b; /* Dark slate/navy background */
  color: #ffffff;
  padding: 15px 18px;
  margin: 10px 16px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  font-family: 'Poppins', sans-serif;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Blue Profile Icon on the left */
.user-icon-container {
  margin-right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-icon-container i {
  color: #3b82f6; /* Blue icon color from image */
  font-size: 20px;
}

/* Info container (Left Side) */
.user-info-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-number {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
}

.user-label {
  font-size: 13px;
  color: #94a3b8; /* Muted gray for "Account Holder" */
}

/* Earnings container (Right Side) */
.user-earnings-side {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-amount {
  font-size: 16px;
  font-weight: 700;
  color: #3b82f6; /* Matching blue currency color */
}

.deposit-label {
  font-size: 11px;
  color: #94a3b8;
  text-transform: capitalize;
}

/* Removed the ::before from your old code to use real FontAwesome icons */
.user-row::before {
  display: none;
}


/* ================= SCROLLABLE TEAM LIST (FIXED) ================= */
#teamList {
  position: absolute;
  top: 180px; 
  left: 0;
  width: 100%;
  bottom: 0;
  overflow-y: auto;
  /* CHANGE: Removed #fff and used transparent so #0f172a shows */
  background: transparent; 
  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 #f0f0f0;
}

.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 #000000;
  background: #3b82f6;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Apply globally to prevent layout breaking */
* {
  box-sizing: border-box;
}
.recharge-container {
  background-color: #0b0e14; 
  padding: 90px 20px 90px; /* 👈 TOP padding added */
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  display: flex;
  flex-direction: column;
}
/* MAIN CARD (Amount Input Area) */
.withdrawal-card-box {
  background-color: #161d31;
  border-radius: 12px;
  padding: 24px 20px;
  margin-bottom: 20px;
}

.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: #3b82f6;
  order: 2;
}

.icon-input {
  color: #3b82f6;
  margin-right: 10px;
}

/* BALANCE & MAX LINK */
.balance-box {
  margin-top: 15px;
  font-size: 14px;
  color: #b4b7bd;
  display: flex;
  justify-content: space-between;
}

#withdrawBalance {
  color: #3b82f6;
  font-weight: 600;
}

.withdraw-max {
  color: #3b82f6;
  text-decoration: none;
  font-size: 13px;
  cursor: pointer;
}

/* SUBMIT BUTTON */
.withdraw-submit-btn {
  width: 100%;
  background: #3e10b5; 
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 25px;
  transition: opacity 0.2s;
}

.withdraw-submit-btn:active {
  opacity: 0.8; /* Simple click feedback */
}

/* BANK CARD */
.bank-warning-card {
  background-color: #161d31;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.bank-title-blue {
  text-align: center;
  color: #3b82f6;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bank-detail-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  border-bottom: 1px solid #283046;
  padding-bottom: 10px;
}

.bank-detail-row:last-child {
  border-bottom: none; /* Clean look for the last row */
}

.detail-label {
  color: #676d7d;
  font-size: 14px;
}

.detail-value {
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  text-align: right;
}

/* GUIDELINES */
.withdraw-card {
  background-color: #161d31;
  border-radius: 12px;
  padding: 20px;
}

.withdraw-title {
  color: #3b82f6;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 15px;
}

.withdraw-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  margin-bottom: 12px;
  color: #d0d2d6;
  line-height: 1.4;
}

.info-icon {
  background: #3b82f6;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
  margin-top: 1px;
}
/* ================= RECORDS PAGE ================= */
.records-page {
  width: 100vw;
  padding-top: 60px;
  margin: 0;
  font-family: Arial, sans-serif;
  height: 100vh;
  overflow-y: auto;
  background: #232a39;
  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: #161d31; /* 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: #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 #000000; /* Subtle border like the image */
  background: #161d31;
  color: #000000;
  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 (VISTACREST STYLE) ================= */
.record-card {
  width: 95%;
  margin: 10px auto;
  padding: 18px;
  background: #1e2637; /* Dark background from screenshot */
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

.record-left-flex {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* The Blue Icon Box */
.record-icon-box {
  width: 42px;
  height: 42px;
  background: rgba(59, 130, 246, 0.1);
  border: 1.5px solid #2563eb;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
}

.record-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.record-title {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff; /* White text for title */
}

.record-time {
  font-size: 13px;
  color: #8c97ab; /* Muted date color */
}

.record-right-val {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.record-amount {
  font-weight: 700;
  font-size: 16px;
  color: #3b82f6; /* Blue amount as seen in screenshot */
}

.record-status-text {
  font-size: 12px;
  color: #8c97ab; /* "Completed" text color */
}


  .status-success {
  background-color: #e8f5e9; /* Light green */
  color: #4caf50;
}

.status-failed {
  background-color: #ffebee; /* Light red */
  color: #ef5350;
}

.status-pending {
  background-color: #fff3e0; /* Light orange */
  color: #ff9800;
}


/* The main white container */
.record-header-card {
  background: #4b00e0;
  border-radius: 20px;
  padding: 15px 20px;
  margin: 10px auto;
  width: 90%;
  display: flex;
  justify-content: space-between; /* Pushes total left, buttons right */
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  box-sizing: border-box;
}

.total-section {
  display: flex;
  flex-direction: column;
}

.total-label {
  font-size: 13px;
  color: #7f8c8d;
  margin-bottom: 2px;
}

.total-value {
  font-size: 22px;
  font-weight: 700;
  color: #000;
}

/* Filter Pills Container */
.records-filter {
  display: flex;
  gap: 8px;
}

.filter-btn {
  border: none;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: transparent; /* Default is transparent */
  color: #333;
  transition: all 0.2s ease;
}

/* Active Pill Style from Screenshot */
.filter-btn.active {
  background: #fff3e6; /* Light peach/orange background */
  color: #d35400; /* Darker orange text */
}


.swal2-container {
    z-index: 99999 !important;
}
/* ================= 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: #000000;
  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: #000000;
  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: #B30000;
  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: 75px;       /* existing spacing */
  padding-bottom: 32px;    /* some breathing space at bottom */
  display: flex;
 
  flex-direction: column;   /* stack cards vertically */
  justify-content: flex-start;
  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: #222b3e;
  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: #ffffff;
}

/* ================= 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 #0a0a0a;
  background: #222b3e;
  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;
  outline: none;
}

/* Press effect */
.investment-back-btn:active {
  transform: translateY(-50%) scale(0.95);
  background: #f9f9f9;
}

/* Unique Namespace: Vista Investment Card */
.vista-card {
  background: #222b3e;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 20px;
  color: #ffffff;
  position: relative;
  font-family: 'Inter', sans-serif;
}

.vista-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.vista-plan-name {
  font-size: 22px;
  font-weight: 700;
}

.vista-buy-btn {
  background: #4b00e0;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.2s;
}

.vista-buy-btn:active {
  transform: scale(0.95);
}

.vista-total-info {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.vista-total-label {
  font-size: 11px;
  color: #adb5bd;
  text-transform: uppercase;
}

.vista-total-amount {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.vista-body {
  display: flex;
  gap: 15px;
  align-items: center;
}

.vista-img-box {
  width: 80px;
  height: 80px;
  background: #2d3748;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}

.vista-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vista-stats-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: #2d3748;
  border-radius: 12px;
  padding: 10px 5px;
  text-align: center;
}

.vista-stat-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vista-stat-label {
  font-size: 10px;
  color: #6c7ae0;
  font-weight: 600;
  text-transform: uppercase;
}

.vista-stat-value {
  font-size: 12px;
  font-weight: 700;
  background: #1a202c;
  padding: 8px 2px;
  border-radius: 8px;
  margin: 0 4px;
  color: #ffffff;
}




/* ================= CUSTOM ALERT ================= */
.custom-alert {
  position: fixed !important;

  top: 50% !important;
  left: 50% !important;

  transform: translate(-50%, -50%) !important;

  background: rgba(0, 0, 0, 0.85);
  color: #fff;

  padding: 14px 24px;
  border-radius: 12px;

  font-size: 15px;
  text-align: center;

  max-width: 90%;
  width: max-content;

  box-shadow: 0 8px 20px rgba(0,0,0,0.5);

  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;

  z-index: 999999; /* higher than EVERYTHING */
}

.custom-alert.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) !important;
}
.custom-alert {
  right: auto;
  margin: 0;
}

.custom-alert.show {
  animation: alertPop 0.3s ease;
}

@keyframes alertPop {
  0% {
    transform: translate(-50%, -60%) scale(0.8);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}





/* ================= EMPTY STATE UI ================= */
.empty-state-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  background: transparent;
}

.empty-icon-circle {
  width: 70px;
  height: 70px;
  background: #f8f9fa; /* Very light grey circle */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.empty-icon-circle i {
  font-size: 28px;
  color: #cccccc; /* Muted grey icon */
}

.empty-title {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  color: #1a1a1a;
  font-family: 'Poppins', sans-serif;
}

.empty-subtitle {
  margin: 8px 0 25px 0;
  font-size: 14px;
  color: #888;
  font-weight: 400;
}

/* THE GREEN BUTTON */
.browse-plans-btn {
  background: #8B0000; /* Premium Emerald Green */
  color: #ffffff;
  border: none;
  padding: 12px 35px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 179, 134, 0.15);
}

.browse-plans-btn:active {
  transform: scale(0.96);
}


/* ================= FULLSCREEN LOADER ================= */
#pageLoader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

/* CENTER STACK */
.loader-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

/* ================= DOT LOADER ================= */
.dot-loader {
  display: flex;
  gap: 10px;
}

.dot-loader span {
  width: 15px;
  height: 15px;
  background: #3b82f6; /* 🔵 blue */
  box-shadow: 
    0 0 10px #3b82f6,
    0 0 20px #3b82f6,
    0 0 30px #3b82f6;
  border-radius: 50%;
  display: inline-block;
  animation: wave 1.2s infinite ease-in-out;
}

/* Only 3 dots */
.dot-loader span:nth-child(1) { animation-delay: 0s; }
.dot-loader span:nth-child(2) { animation-delay: 0.2s; }
.dot-loader span:nth-child(3) { animation-delay: 0.4s; }

/* ================= TEXT ================= */
.loader-text {
  color: #3b82f6;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  opacity: 0.9;
}

/* ================= ANIMATION ================= */
@keyframes wave {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.6;
  }
  30% {
    transform: translateY(-15px);
    opacity: 1;
  }
}


/* 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 */
  }
}