
/* ================= GENERAL RESET ================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
    --bg-black: #000000;
    --primary-purple: #A855F7;
    --text-white: #ffffff;
    --text-dim: #9CA3AF;
    --input-bg: #121212;
    --border-dark: #262626;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-black);
    font-family: 'Poppins', sans-serif;
    color: var(--text-white);
}

/* Hide all containers by default */
.container {
    display: none; 
}

/* Only show the one that has the active class */
.container.active {
    display: block !important;
}

.auth-wrapper {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

/* Top Banner - Content moved to the right */
.top-header-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center; /* Center vertically */
    justify-content: flex-end; /* Push text to the right */
}

.header-overlay {
    width: 50%; /* Only takes up half the width */
    padding-right: 30px;
    text-align: left;
    z-index: 5;
}

.main-title {
    font-size: 38px;
    font-weight: 800;
    margin: 0;
    color: #ffffff; /* Matching the blue from the image */
}

.sub-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

/* Tab Styles from the screenshot */
.tab-container {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
    padding-left: 5px;
}

.tab-item {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dim);
    cursor: pointer;
    position: relative;
    padding-bottom: 8px;
}

.tab-item.active {
    color: var(--text-white);
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px; /* Short underline like the image */
    height: 3px;
    background-color: var(--primary-purple);
    border-radius: 2px;
}

/* Form Body Styling */
.form-body {
    background-color: var(--bg-black);
    padding: 25px 20px;
    margin-top: -30px;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    position: relative;
    z-index: 10;
}

.container { display: none; flex-direction: column; }
.container.active { display: flex; }

.input-group { margin-bottom: 15px; }

.input-label {
    display: block;
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 8px;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    background-color: var(--input-bg);
    border: 1px solid var(--border-dark);
    border-radius: 15px;
    padding: 16px 20px;
    color: var(--text-white);
    font-size: 15px;
    outline: none;
}

input:focus {
    border-color: var(--primary-purple);
}

/* The Blue/Purple Button from screenshot */
.btn-purple {
    width: 100%;
    padding: 16px;
    background-color: #2563eb; /* Blue base like the image */
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-purple:active { transform: scale(0.98); }

.tab-item {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dim);
    cursor: pointer;
    position: relative;
    padding-bottom: 8px;
    transition: color 0.3s ease;
}

.tab-item.active {
    color: var(--text-white);
}

/* This creates the purple line under the active text */
.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25px; /* Adjust width to match your screenshot */
    height: 3px;
    background-color: var(--primary-purple);
    border-radius: 2px;
}


/* Add this to your existing CSS to fix the monkey eye position */
.password-wrapper {
    position: relative;
    width: 100%;
}

.toggle-password.noticed-monkey {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-style: normal;
    font-size: 18px;
    z-index: 5;
}

/* Ensure the input doesn't hide the eye */
.password-wrapper input {
    padding-right: 45px !important;
}

/* 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: Current Theme Dark Color */
  background-color: #0b0b0b; 
  /* Subtle dark gradient for depth instead of purple */
  background: radial-gradient(circle at bottom right, #1a1a1a 0%, #0b0b0b 100%);
  background-attachment: fixed; 
  
  color: #ffffff; /* Keeping text white for high contrast */
}


/* ================= DASHBOARD HEADER (SAMSUNG STYLE) ================= */
.dashboard-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  height: 60px; /* Slim height */
  background: #000000;
  /* Subtle vertical lines like the Samsung image */
  background-image: linear-gradient(to right, rgba(168, 85, 247, 0.05) 1px, transparent 1px);
  background-size: 20px 100%; 
  display: flex;
  align-items: center;
  justify-content: space-between; /* Pushes content to both ends */
  padding: 0 20px;
  z-index: 10000;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}

/* Brand Title Left */
.brand-title-header {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2px; /* Spaced out like Samsung logo */
  margin: 0;
}

.text-white {
  color: #FFFFFF;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.text-purple {
  color: #A855F7;
  text-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
}

/* Glowing Action Circle Right */
.header-action-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(168, 85, 247, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #A855F7;
  background: rgba(168, 85, 247, 0.05);
  box-shadow: inset 0 0 10px rgba(168, 85, 247, 0.2), 
              0 0 15px rgba(168, 85, 247, 0.2);
  font-size: 16px;
  cursor: pointer;
}

.header-action-circle:active {
  transform: scale(0.9);
  background: rgba(168, 85, 247, 0.2);
}

.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: #000000; /* Pure Theme Black */
  padding: 10px 15px;
  max-width: 500px;
  width: 100%;
  margin: 10px auto;
  box-sizing: border-box;
}

.quick-actions-title {
  color: #ffffff;
  font-size: 14px; /* Tiny title like reference */
  font-weight: 600;
  margin-bottom: 15px;
  opacity: 0.8;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* SQUIRCLE ICON BASE - Charcoal Black */
.action-icon {
  width: 52px; /* Smaller, not zoomed */
  height: 52px;
  background: #121212; /* Charcoal background */
  border-radius: 18px; /* Smooth Samsung-style squircle */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  font-size: 18px; /* Smaller icon */
  color: #A855F7; /* Your Purple */
  border: 1px solid rgba(168, 85, 247, 0.1); /* Subtle purple border */
  transition: all 0.2s ease;
}

/* Purple Glow effect on the icons */
.purple-glow i {
  filter: drop-shadow(0 0 4px rgba(168, 85, 247, 0.4));
}

/* TEXT STYLING - Tiny & White */
.action-btn span {
  font-size: 11px; /* Very tiny text like reference */
  font-weight: 500;
  color: #ffffff; 
  text-align: center;
  opacity: 0.9;
}

/* Tap Effect */
.action-btn:active .action-icon {
  transform: scale(0.92);
  background: #1a1a1a;
  border-color: #A855F7;
}

/* 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 */
}

.flyer-container {
  width: 100%;
  background-color: #000000;
  padding: 10px 0; /* Small gap from top */
}

.balance-flyer {
  width: 92vw; /* Not 100vw so it looks like a premium floating card */
  margin: 0 auto;
  height: 180px; /* Adjust height as needed */
  overflow: hidden;
  position: relative;
  border-radius: 20px;
  border: 1.5px solid rgba(168, 85, 247, 0.4); /* Purple glow border */
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}

.flyer-slider {
  display: flex;
  width: 300%; /* 3 images = 300% */
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); /* Smooth slide */
}

.flyer-card {
  width: 100.333%; /* Each image takes 1/3 of the 300% */
  height: 100%;
  object-fit: cover;
}

/* Subtle dark tint to make text pop if you add any */
.flyer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,0.7) 100%);
  pointer-events: none;
}

/* 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 */
.dashboard-wrapper {
  background-color: #000000;
  min-height: 100vh;
  padding: 15px;
  font-family: 'Poppins', sans-serif;
  color: white;
}

/* PROFILE HEADER - Cleaner */
.profile-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 5px;
}

.avatar-circle.purple-border {
  width: 50px;
  height: 50px;
  background: #121212;
  border: 1.5px solid #A855F7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 18px;
  color: #A855F7;
}

.online-indicator {
  width: 10px;
  height: 10px;
  background: #22c55e;
  border: 2px solid #000;
  border-radius: 50%;
  position: absolute;
  bottom: 1px;
  right: 1px;
}

.profile-info h2 {
  font-size: 16px;
  margin: 0;
  font-weight: 700;
  color: #ffffff;
}

.profile-info p {
  font-size: 11px;
  color: #666;
  margin: 0;
}

/* SLIM BALANCE CARD - Purple Gradient */
.balance-card.purple-gradient {
  background: linear-gradient(135deg, #1a1a1a 0%, #121212 50%, #2e1065 100%);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 24px;
  padding: 20px;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.balance-card .label {
  font-size: 11px;
  color: #888;
  letter-spacing: 0.5px;
  margin: 0;
}

.card-id-small {
  font-size: 10px;
  color: #444;
}

.balance-card .amount-display {
  font-size: 34px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

/* PRIMARY ACTIONS - Pill Style */
.primary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.action-btn-pill {
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.2s;
}

.purple-bg {
  background: #A855F7;
  color: #ffffff;
}

.charcoal-bg {
  background: #262626;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.05);
}

.action-btn-pill:active {
  transform: scale(0.96);
}

/* CONTAINER - Purple to Black Gradient */
.settings-container.purple-black-gradient {
  background: linear-gradient(180deg, #121212 0%, #000000 100%);
  border-radius: 30px;
  padding: 10px 5px;
  border: 1px solid rgba(168, 85, 247, 0.1);
  margin-top: 20px;
}

.settings-section {
  margin-bottom: 25px;
}

.section-title {
  font-size: 11px;
  font-weight: 700;
  color: #666;
  margin-bottom: 12px;
  padding-left: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.list-wrapper {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 20px;
  overflow: hidden;
  margin: 0 10px;
}

.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: background 0.2s;
}

.list-item:last-child {
  border-bottom: none;
}

.list-item:active {
  background: rgba(168, 85, 247, 0.05);
}

.list-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* PURPLE ICONS */
.list-icon-bg {
  width: 32px;
  height: 32px;
  background: rgba(168, 85, 247, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #A855F7; /* Your Purple */
}

.list-item span {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff; /* White text for clarity */
}

.arrow-icon {
  font-size: 12px;
  color: #444;
}

/* Logout Specifics */
.logout-bg {
  background: rgba(255, 77, 77, 0.1);
  color: #ff4d4d;
}

.logout-text {
  color: #ff4d4d !important;
}

/* ================= BOTTOM NAV CONTAINER ================= */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #0b0b0b; /* Your Theme Black */
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 12px 0 10px 0; 
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.8); 
  z-index: 1000;
  border-top: 1px solid rgba(255, 255, 255, 0.05); /* Very subtle top edge */
}

/* ================= NAV ITEMS ================= */
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  flex: 1;
  gap: 4px;
  transition: all 0.2s ease-in-out;
}

.nav-icon-wrapper {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ICON STYLE - White/Grey for inactive like image */
.nav-item i {
  font-size: 20px;
  color: #ffffff; /* White icons from 502105.jpg */
  opacity: 0.6;
  transition: all 0.3s ease;
}

/* TEXT STYLE */
.nav-item span {
  font-size: 12px; 
  font-weight: 500; 
  color: #ffffff; /* White text from 502105.jpg */
  opacity: 0.6;
  font-family: 'Poppins', sans-serif;
}

/* ACTIVE STATE - Gold highlights */
.nav-item.active i {
  color: #6D28D9; /* Your Theme Gold */
  opacity: 1;
  filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.3));
}

.nav-item.active span {
  color: #6D28D9; /* Your Theme Gold */
  opacity: 1;
  font-weight: 600;
}

/* Tap Effect */
.nav-item:active {
  transform: scale(0.92);
}


/* ===== PROFILE FIXED HEADER ===== */
.profile-header-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
 background: #0b0b0b; /* 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;
}


.brand-title-header {
  font-size: 32px; /* Large, bold presence */
  font-weight: 900;
  letter-spacing: -1px;
  text-align: center;
  margin: 20px 0;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
}

/* PILLAR - Black with a subtle light edge for visibility on dark background */
.text-black {
  color: #0b0b0b; 
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2); 
  text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.1);
}

/* STONE - Your Pure Gold */
.text-gold {
  color: #fbd61b;
  text-shadow: 0 0 10px rgba(251, 214, 27, 0.4);
}


:root {
    --samsung-black: #000000;
    --samsung-purple: #A855F7; /* Your Purple */
    --samsung-cyan: #00f2ff;
    --card-bg: rgba(13, 17, 23, 0.8);
}

.bank-page-container {
    background: var(--samsung-black);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    padding-bottom: 50px;
}

/* BACKGROUND GRID */
.grid-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(0, 242, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: 0;
}

.bank-header-premium {
    padding: 60px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 1;
    position: relative;
}

.header-main-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-icon-glow {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, var(--samsung-cyan), var(--samsung-purple));
    border-radius: 15px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: white;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
}

.header-title-group h2 { color: white; margin: 0; font-size: 22px; }
.header-title-group p { color: #8899a6; margin: 5px 0 0; font-size: 13px; }

/* INPUT CARD */
.input-card-premium {
    background: var(--card-bg);
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 25px;
    padding: 30px 20px;
    margin: 10px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    backdrop-filter: blur(10px);
}

.samsung-label {
    color: white;
    font-size: 12px;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    opacity: 0.8;
}

.funds-field {
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 12px !important;
    height: 55px !important;
    color: rgb(0, 0, 0) !important;
    padding: 0 15px !important;
    width: 100%;
}

.funds-field:focus {
    border-color: var(--samsung-cyan) !important;
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.2);
}

/* THE GLOWING BUTTON */
.funds-action-btn {
    background: linear-gradient(90deg, var(--samsung-cyan), var(--samsung-purple)) !important;
    border: none !important;
    height: 60px !important;
    border-radius: 18px !important;
    color: black !important;
    font-weight: 800 !important;
    font-size: 15px !important;
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.5) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.bank-back-btn {
    width: 45px; height: 45px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(0, 242, 255, 0.3);
    border-radius: 12px;
    color: var(--samsung-cyan);
    font-size: 18px;
}

/* ===== METHOD SELECTION STYLES (PILLAR STONE THEME) ===== */
.method-card {
  background: #0D0D0D; /* Changed from navy to Deep Charcoal */
  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: #A855F7; /* Changed to Brand Purple */
  background: rgba(168, 85, 247, 0.05); /* Subtle Purple tint */
}

.method-icon {
  width: 50px;
  height: 50px;
  background: #A855F7; /* Changed to Brand Purple */
  color: #FFFFFF; /* White Icon Color */
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-right: 15px;
}

.method-icon.manual {
  background: #A855F7; /* Consistent Purple for manual */
}

.method-info h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #FFFFFF; /* White text for readability */
}

.method-info p {
  margin: 4px 0 0;
  font-size: 12px;
  opacity: 0.6;
  color: #FFFFFF; /* White text */
}

.method-check {
  margin-left: auto;
  font-size: 18px;
  color: #A855F7; /* Changed to Purple Checkmark */
}

.payment-method-page {
  font-family: 'Inter', sans-serif;
  background-color: #000000; /* Pure Black */
  height: 100vh;
  width: 100vw;
  color: #FFFFFF; /* White text */
  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;
}

/* Slimmed-Down Premium Input */
input {
  width: 100%;
  background: #f5f5f5; 
  border: 1.2px solid #2d343f;
  /* Reduced padding from 16px to 10px 14px */
  padding: 10px 14px; 
  /* Sharper corners for a more modern feel */
  border-radius: 8px;
  color: #1a1a1a; /* Changed to dark since background is light #f5f5f5 */
  font-size: 0.9rem; /* Smaller font */
  margin-top: 5px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
  outline: none;
}

/* The "Glow" Effect when typing */
input:focus {
  background: #ffffff;
  border-color: #9d56ff;
  box-shadow: 0 0 8px rgba(157, 86, 255, 0.15); 
}

/* Placeholder color */
input::placeholder {
  color: #8a8a8a;
  font-size: 0.85rem;
}

.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: #000000;
  /* CHANGE: Use min-height instead of fixed height */
  min-height: 100vh; 
  width: 100%;
  color: white;
  margin: 0;
  /* CHANGE: Allow scrolling */
  overflow-y: auto; 
  position: relative;
  box-sizing: border-box;
  /* Prevent horizontal scroll if something is too wide */
  overflow-x: hidden; 
}

/* ===== CONTAINER ===== */
.recharge-page-container {
  /* CHANGE: Add top padding so content doesn't hide under the fixed header (60px) */
  /* CHANGE: Add bottom padding so content doesn't hide under the fixed footer (~80px) */
  padding: 70px 15px 100px 15px; 
  width: 100%;
  box-sizing: border-box;
  background: #000000;
  min-height: 100vh;
}

/* ===== FIXED HEADER ===== */
.recharge-header-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: #000000;
  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: #9d56ff; /* Blue back arrow */
  font-size: 20px;
  cursor: pointer;
}


/* ===== THE CARD - Samsung Style ===== */
.recharge-card {
  background: transparent; /* Clean transparent look like screenshot */
  padding: 10px 5px;
  margin-bottom: 25px;
}

.section-label {
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  color: #888; /* Muted subtitle style */
}

.section-label.centered {
  margin-top: 30px;
  font-size: 12px;
  text-transform: uppercase;
  color: #666;
}

/* ===== GRID SYSTEM - 3 Columns ===== */
.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 10px;
}

.amount-option {
  background: #0D0D0D; /* Dark Charcoal */
  border: 1px solid #1A1A1A;
  padding: 15px 5px;
  border-radius: 12px; /* Smooth Samsung corners */
  text-align: center;
  color: #888; 
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Selected state - Purple Gradient */
.amount-option.selected {
  background: linear-gradient(135deg, #A855F7, #6D28D9); /* Brand Purple */
  color: #FFFFFF;
  border: none;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

/* ===== CUSTOM INPUT ===== */
.custom-amount-wrapper {
  background: #0D0D0D;
  border-radius: 14px;
  display: flex;
  align-items: center;
  padding: 15px 20px;
  border: 1px solid #A855F7; /* Purple glow border */
  margin-top: 10px;
}

.currency-icon {
  color: #A855F7; /* Purple Icon */
  font-size: 18px;
  font-weight: 800;
  margin-right: 12px;
}

#customAmount {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  outline: none;
  width: 100%;
}

#customAmount::placeholder {
  color: #444;
}

/* ===== RECHARGE BUTTON - Blue to Purple Gradient ===== */
.deposit-btn {
  width: 100%;
  /* Gradient matching the bottom confirm button in screenshot */
  background: linear-gradient(90deg, #38BDF8, #A855F7); 
  color: #FFFFFF;
  border: none;
  padding: 18px;
  border-radius: 30px; /* Fully rounded pill shape */
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(56, 189, 248, 0.2);
  margin-top: 20px;
}

.deposit-btn:active {
  transform: scale(0.96);
  opacity: 0.9;
}

/* BALANCE SECTION */
.balance-section {
  text-align: center;
  padding: 30px 0;
}
.balance-amount {
  font-size: 32px;
  font-weight: 800;
  color: #A855F7; /* Brand Purple */
}
.balance-limits {
  font-size: 12px;
  color: #444;
  margin-top: 5px;
}

/* CHANNEL CARDS */
.section-label-small {
  font-size: 11px;
  color: #555;
  margin: 25px 0 10px 5px;
  font-weight: 600;
}
.channel-card {
  background: #0D0D0D;
  border: 1px solid #1A1A1A;
  border-radius: 16px;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.channel-card.active {
  border: 1.5px solid #A855F7; /* Purple Active border */
}
.channel-left { display: flex; align-items: center; gap: 15px; }
.channel-icon {
  background: #1A1A1A;
  width: 35px;
  height: 35px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.channel-check { color: #A855F7; font-size: 18px; }

/* RULES BOX */
.rules-box {
  background: rgba(26, 26, 26, 0.5);
  border-radius: 15px;
  padding: 20px;
  margin-top: 25px;
}
.rules-title { color: #777; font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.rules-box ul { padding: 0; list-style: none; }
.rules-box li { color: #555; font-size: 11px; margin-bottom: 6px; line-height: 1.4; }

/* FOOTER BUTTON */
.footer-btn-wrapper {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  background: #000;
  box-sizing: border-box;
}
.deposit-btn {
  width: 100%;
  background: linear-gradient(90deg, #38BDF8, #A855F7); /* Correct Blue-to-Purple Gradient */
  color: #FFFFFF;
  border: none;
  padding: 16px;
  border-radius: 35px;
  font-size: 16px;
  font-weight: 800;
}

.fintech-toast {
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  font-family: Inter, sans-serif;
}


/* 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.92); 
  backdrop-filter: blur(8px); 
  z-index: 99999;
}

/* BALANCED MODAL BOX */
.mx-unique-modal {
  width: 90%;
  max-width: 360px; /* Slightly wider */
  background: #121212; /* Charcoal */
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Extended Header Section */
.modal-top-section {
  background: linear-gradient(135deg, #A855F7, #6b21a8);
  padding: 45px 20px 55px 20px; /* More height here */
  text-align: center;
  position: relative;
}

.modal-close-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 20px;
  cursor: pointer;
}

.modal-logo-circle {
  width: 75px; /* Slightly bigger logo */
  height: 75px;
  background: #000000;
  border-radius: 50%;
  margin: 0 auto 15px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.modal-logo-circle img {
  width: 75%;
  object-fit: contain;
}

.mx-modal-title {
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  margin: 0;
}

.mx-modal-subtitle {
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  margin-top: 8px;
}

/* Feature Grid - More Spaced */
.modal-body-content {
  padding: 25px 20px; /* Added more padding to push length */
  margin-top: -30px; 
}

.modal-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.feature-box {
  background: #1a1a1a; 
  border: 1px solid rgba(255,255,255,0.03);
  padding: 18px 10px; /* Taller boxes */
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-box i { font-size: 22px; margin-bottom: 8px; }
.feature-title { color: #fff; font-size: 12px; font-weight: 700; }
.feature-sub { color: #888; font-size: 10px; margin-top: 4px; }

/* Withdrawal Info Bar */
.modal-info-bar {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 18px;
  padding: 15px;
  margin-bottom: 20px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #aaa;
}

.purple-text { color: #A855F7 !important; }
.white-text { color: #ffffff !important; font-weight: 700; }

/* Telegram Button */
.mx-telegram-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #0088cc;
  color: #fff;
  padding: 15px;
  border-radius: 15px; /* Less round, more modern */
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
}

.modal-footer-text {
  font-size: 11px;
  color: #555;
  margin-top: 15px;
  text-align: center;
}

#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 */
}

:root {
  --bg-dark: #000000;
  --card-bg: #0b0b0b;
  --accent-purple: #A855F7; /* Brand Purple */
  --text-muted: #6b7280;
}

.premium-card {
  background: var(--card-bg);
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid rgba(168, 85, 247, 0.2); /* Purple border */
  font-family: 'Inter', sans-serif;
  width: 100%;
  max-width: 420px;
  position: relative;
}

/* HEADER IMAGE & BADGES */
.s20-header-image {
  position: relative;
  height: 200px;
  background: #111;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.badge-top-right {
  position: absolute;
  top: 15px; right: 15px;
  background: rgba(13, 33, 40, 0.9);
  color: #00FFCC;
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid #005a4a;
}

.countdown-badge {
  position: absolute;
  bottom: 15px; left: 15px;
  background: linear-gradient(90deg, #38BDF8, var(--accent-purple)); /* S20 Glow */
  padding: 6px 15px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 800;
  color: white;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
}

/* CONTENT AREA */
.s20-content-area {
  padding: 20px;
  background: radial-gradient(circle at top, #0a161d 0%, #000000 100%);
}

.plan-title-main {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.stats-grid-middle, .stats-grid-bottom {
  display: flex;
  justify-content: space-around;
  text-align: center;
  padding: 10px 0;
}

.grid-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.label { font-size: 10px; color: var(--text-muted); font-weight: 600; }
.value { font-size: 16px; font-weight: 800; }

.vertical-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
  height: 30px;
}

.diagonal-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  margin: 10px 0;
  position: relative;
}

/* DATE INFO ROW */
.date-info-row {
  margin-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 15px;
}

.date-item {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 8px;
}

.date-item span:first-child { color: var(--text-muted); }
.date-val { font-weight: 600; letter-spacing: 0.5px; }
.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: #0b0b0b;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #7c22d6;

  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: #0b0b0b;
  color: #001f3f;

  z-index: 1000;              /* stays above invite content */
  border-bottom: 1px solid #0b0b0b;
  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 #0b0b0b;
  background: #0b0b0b;
  color: #7c22d6;

  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: #000000;      /* Pure Black */
  --accent-purple: #A855F7; /* Brand Purple */
  --card-bg: #111111;      /* Deep Grey for contrast */
  --text-main: #FFFFFF;
}

.referral-container {
  background-color: var(--bg-dark);
  padding: 20px;
  min-height: 100vh;
  font-family: 'Poppins', sans-serif;
}

/* HEADER CARD */
.refer-header-card {
  padding: 20px 10px;
  color: var(--text-main);
}

.refer-header-card h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.refer-header-card p {
  color: #888;
  font-size: 14px;
}

/* PREMIUM INVITE BOX */
.premium-invite-box {
  background: linear-gradient(145deg, #7c22d6 0%, #000000 100%); /* Purple Gradient */
  border-radius: 25px;
  padding: 30px 25px;
  margin-bottom: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.2);
}

.invite-section {
  width: 100%;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  margin-bottom: 15px;
}

/* BIG CODE DISPLAY */
.big-display-text {
  font-size: 32px;
  font-weight: 700;
  color: #FFFFFF;
  text-align: center;
  letter-spacing: 2px;
  margin: 10px 0;
}

.mini-copy-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  padding: 6px 15px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(5px);
}

.divider-line {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 25px 0;
}

.link-input-display {
  background: transparent;
  border: none;
  width: 100%;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  outline: none;
}

/* HOW IT WORKS */
.how-it-works-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 20px;
}

.how-header {
  color: var(--accent-purple);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.step-number {
  border: 1px solid var(--accent-purple);
  color: var(--accent-purple);
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.step-content h4 { color: #fff; margin: 0; font-size: 14px; }
.step-content p { color: #888; font-size: 12px; margin-top: 4px; }

/* ================= 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, #000 0%, #000 100%);
  color: white;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  
  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: #0b0b0b;
backdrop-filter: blur(12px);         /* The Glass Blur */
-webkit-backdrop-filter: blur(12px); /* Support for Safari */

/* Glass Definition */
border: 1px solid rgba(0, 0, 0, 0.3); 
box-shadow: 0 8px 32px rgba(3, 3, 3, 0.05); /* Very subtle purple tint in shadow */
  /* Icon color is now Purple */
  color: #A855F7; 
  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 */
}

:root {
  --bg-dark: #000000;
  --accent-purple: #A855F7; /* Your Purple */
  --card-bg: #0d1117;
  --text-muted: #8899a6;
}

.team-page-wrapper {
  display: flex;
  background: var(--bg-dark);
  min-height: 100vh;
  padding: 20px 10px;
  font-family: 'Inter', sans-serif;
}

/* SIDEBAR */
.stats-sidebar {
  width: 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-right: 1px solid rgba(255,255,255,0.1);
  padding-right: 10px;
}

.mini-stat-box {
  text-align: center;
  background: rgba(255,255,255,0.02);
  padding: 15px 5px;
  border-radius: 12px;
  border: 1px solid rgba(168, 85, 247, 0.1);
}

.icon-glow {
  width: 40px; height: 40px;
  background: #00f2ff;
  border-radius: 10px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px #00f2ff;
  color: #000;
}

.mini-stat-box .label { font-size: 8px; color: var(--text-muted); display: block; }
.mini-stat-box .value { font-size: 14px; font-weight: 800; color: #fff; }

/* MAIN CONTENT */
.team-main-content {
  flex: 1;
  padding-left: 20px;
}

.page-title {
  color: #fff;
  font-size: 22px;
  margin-bottom: 30px;
  border-bottom: 2px solid rgba(255,255,255,0.1);
  padding-bottom: 10px;
}

.level-card-premium {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 25px;
  margin-bottom: 20px;
  display: flex;
  gap: 20px;
  border: 1px solid rgba(255,255,255,0.05);
  position: relative;
  cursor: pointer;
}

.level-indicator {
  width: 50px; height: 50px;
  background: #00f2ff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: #000;
  box-shadow: 0 0 20px #00f2ff;
}

.level-info h3 { font-size: 18px; color: #fff; margin: 0; }
.level-info p { font-size: 12px; color: var(--text-muted); margin: 5px 0; }
.commission-left { color: #00f2ff; font-size: 24px; font-weight: 800; }

/* TIMELINE LINE */
.level-card-premium::before {
  content: "";
  position: absolute;
  left: -25px; top: 0;
  width: 2px; height: 100%;
  background: linear-gradient(to bottom, var(--accent-purple), transparent);
}

.team-scroll-area {
  margin-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
}



/* ================= WITHDRAW PAGE ================= */
.withdraw-page {
  width: 100%;
  background: #0b0b0b;
  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: 90px;
  background: #0b0b0b;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  border-bottom: 1px solid #0b0b0b;
}

.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 #0b0b0b;
  background: #0b0b0b;
  color: #A855F7;
  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;
}


:root {
  --bg-dark: #000000;      /* Pure Black */
  --card-bg: #0d0d0d;      /* Slightly lighter black for cards */
  --input-bg: #1a1a1a;     /* Dark grey for inputs */
  --accent-purple: #A855F7; /* Your Purple */
  --text-main: #ffffff;
  --text-muted: #888888;
}

/* ================= NEW GLASS HEADER STYLE ================= */
.header-premium-glass {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
  border-radius: 0 0 30px 30px;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  margin-top: -60px; /* Counteracts container padding */
}

.glass-content {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px); /* Premium Blur */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

/* ================= RESTORED ORIGINAL CLASSES WITH NEW COLORS ================= */
.recharge-container {
  background-color: var(--bg-dark);
  padding: 60px 15px 30px;
  min-height: 100vh;
  font-family: 'Poppins', sans-serif;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.withdrawal-card-box, .bank-warning-card, .withdraw-card {
  background-color: var(--card-bg);
  border-radius: 20px;
  padding: 20px;
  border: 1px solid rgba(168, 85, 247, 0.1); /* Subtle Purple Border */
}

.withdraw-input-box {
  display: flex;
  align-items: center;
  background: var(--input-bg);
  border-radius: 12px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.withdraw-input-box input {
  background: transparent;
  border: none;
  outline: none;
  font-size: 20px;
  width: 100%;
  color: var(--text-main);
}

.currency, .withdraw-title, .info-icon {
  color: var(--accent-purple) !important;
}

.info-icon {
  border: 1px solid var(--accent-purple);
  background: rgba(168, 85, 247, 0.1);
}

.withdraw-submit-btn {
  width: 100%;
  background: var(--accent-purple); /* Purple Button */
  color: #fff;
  border: none;
  padding: 18px;
  border-radius: 15px;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.bank-title-blue {
  color: var(--text-main);
  font-weight: 600;
}

.bank-detail-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}


/* ================= WITHDRAWAL RULES STYLING ================= */
.withdraw-card {
    background-color: #0D0D0D; /* Dark Charcoal */
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(168, 85, 247, 0.1); /* Subtle Purple glow */
    margin-top: 10px;
    margin-bottom: 100px; /* Space for the sticky button */
}

.withdraw-title {
    color: #A855F7; /* Brand Purple */
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.withdraw-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 18px;
}

.withdraw-item:last-child {
    margin-bottom: 0;
}

/* The Numbered Circle Icon */
.info-icon {
    background: rgba(168, 85, 247, 0.1); /* Very light purple tint */
    color: #A855F7; /* Purple Text */
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
    border: 1.5px solid #A855F7;
}

/* The Rule Text */
.withdraw-item span {
    color: #888888; /* Muted White/Grey */
    font-size: 13px;
    line-height: 1.6;
}

.withdraw-item b {
    color: #FFFFFF; /* Bold text in White */
    font-weight: 600;
}

/* ================= 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: #0b0b0b; /* Clean white background */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  border-bottom: 1px solid #0b0b0b;
  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 #0b0b0b; /* Subtle border like the image */
  background: #0b0b0b;
  color: #A855F7;
  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: #A855F7;
}


#recordsContainer {
  padding: 15px;
  background-color: #000000; /* Pure Black */
  min-height: 100vh;
}

/* ================= RECORD CARD ================= */
.record-card {
  width: 100%;
  padding: 20px;
  background: #0D0D0D; /* Slightly lighter than background */
  border-radius: 24px; /* More rounded for premium feel */
  margin-bottom: 15px;
  box-sizing: border-box;
  border: 1px solid rgba(168, 85, 247, 0.15); /* Purple border tint */
  display: flex;
  flex-direction: column; /* Stacked layout like reference */
  gap: 12px;
}

/* TOP ROW (Labels) */
.record-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.record-transaction {
  font-size: 13px;
  color: #888; /* Muted label */
  font-weight: 500;
}

/* MIDDLE ROW (Amount Display) */
.record-middle-row {
  display: flex;
  justify-content: flex-end;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Clean divider */
  padding-bottom: 10px;
}

.record-amount {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.5px;
}

.amount-minus { color: #ffffff; } /* White for minus */
.amount-plus { color: #A855F7; } /* Purple for plus */

/* BOTTOM ROW (Status & Time) */
.record-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.record-time {
  font-size: 11px;
  color: #444;
  font-family: monospace;
}

/* ================= STATUS PILL ================= */
.record-status {
  font-size: 10px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.status-success {
  border: 1.5px solid #22c55e;
  color: #22c55e;
}

.status-failed {
  border: 1.5px solid #ff4d4d;
  color: #ff4d4d;
}

.status-pending {
  border: 1.5px solid #A855F7;
  color: #A855F7;
}

/* ================= FILTER (PREMIUM DARK THEME) ================= */
.records-filter {
  display: flex;
  gap: 12px; /* Balanced spacing like the screenshot */
  padding: 20px 15px;
  overflow-x: auto;
  justify-content: flex-start; /* Better for mobile scrolling */
  background-color: #000000; /* Pure Black background */
  border-bottom: 1px solid rgba(168, 85, 247, 0.1); /* Subtle Purple border */
}

.filter-btn {
  border: none;
  padding: 10px 24px; /* Pill shape padding */
  background: #1A1A1A; /* Subtle dark gray for inactive buttons */
  border-radius: 12px; /* Smooth rounded corners */
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: #888; /* Muted gray for inactive text */
  white-space: nowrap;
  transition: all 0.3s ease;
  outline: none;
  flex-shrink: 0;
}

/* Active State - Solid Purple Background */
.filter-btn.active {
  background: #A855F7 !important; /* Your Brand Purple */
  color: #FFFFFF !important; /* White text on active */
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3); /* Purple glow */
}

.filter-btn:active {
  transform: scale(0.92);
}

/* Hide scrollbar */
.records-filter::-webkit-scrollbar {
  display: none;
}
.records-filter {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 480px) {
  .record-card { 
    padding: 20px; 
    border-radius: 24px; /* Matches the Samsung card feel */
  }
}
/* ================= 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;
}

/* --- PRODUCT LIST CONTAINER --- */
#dynamicProductList {
  display: flex !important;
  flex-direction: column !important;
  gap: 15px !important;
  padding: 15px !important;
  background: #000000; /* Pure black background */
  padding-bottom: 120px !important;
}

/* THE SLIM CHARCOAL CARD */
.mx-product-card {
  background: #121212; /* Charcoal Black */
  border-radius: 16px !important;
  padding: 12px 16px !important; /* Slim & Tight */
  border: 1px solid rgba(168, 85, 247, 0.2); /* Subtle Purple Border */
  position: relative;
  overflow: hidden;
}

/* Header Styling */
.mx-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.mx-brand-logo {
  width: 35px;
  height: 35px;
  background: #1a1a1a;
  border-radius: 8px;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.mx-plan-name {
  font-size: 13px; /* Tiny text */
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: 0.5px;
}

.mx-roi-tag {
  font-size: 9px;
  color: #3b82f6; /* Neon Blue */
  text-transform: uppercase;
  font-weight: 700;
}

/* Slim Info Box */
.mx-main-info-box {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.mx-info-label {
  font-size: 9px; /* Tiny caps */
  color: #94a3b8;
  font-weight: 700;
  margin-bottom: 2px;
}

.mx-info-value {
  font-size: 16px;
  font-weight: 800;
  color: #FFFFFF;
}

.purple-text { color: #A855F7 !important; }
.blue-text { color: #3b82f6 !important; }

/* Stats Row */
.mx-stats-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 4px;
}

.mx-stat-label {
  font-size: 10px;
  color: #64748b;
}

.mx-stat-val {
  font-size: 10px;
  font-weight: 700;
  color: #FFFFFF;
}

/* The Slim Purple Button */
.mx-invest-btn {
  width: 100%;
  background: linear-gradient(135deg, #A855F7, #7e22ce) !important;
  color: #ffffff !important;
  border: none;
  padding: 8px !important; /* Very slim */
  border-radius: 50px !important; /* Pill shape */
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.text-right { text-align: right; }

/* 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;
}


/* 1. Force the input text to stay white and background to stay dark/transparent */
input, select, textarea {
    color: #FFFFFF !important;
    background-color: rgba(255, 255, 255, 0.05) !important; /* Subtle dark glass look */
    border: 1px solid rgba(168, 85, 247, 0.3); /* Soft Purple border */
    outline: none !important;
}

/* 2. Remove the "White Layer" that appears when the browser autofills or focuses */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-text-fill-color: #FFFFFF !important;
    -webkit-box-shadow: 0 0 0 1000px #000000 inset !important; /* Matches your Black background */
    transition: background-color 5000s ease-in-out 0s;
}

/* 3. Remove the white hover effect and keep it Purple */
input:focus {
    border-color: #A855F7 !important; /* Glowing Purple focus */
    background-color: rgba(0, 0, 0, 0.9) !important;
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.4);
}

/* 4. Fix Placeholder color so it's not too bright */
::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* ================= 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 (SAMSUNG STYLE) ================= */
.empty-state-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px; 
  margin: 20px;
  text-align: center;
  
  /* Deep Black Background */
  background: #000000;
  border-radius: 24px; 
  border: 1px solid rgba(168, 85, 247, 0.1); /* Subtle Purple border */
  
  box-sizing: border-box;
}

.empty-icon-circle {
  width: 85px;
  height: 85px;
  /* Soft Glass effect with Purple glow */
  background: rgba(168, 85, 247, 0.05);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.1);
}

.empty-icon-circle i {
  font-size: 32px;
  color: #A855F7; /* Your Purple */
}

.empty-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF; /* Pure White */
  font-family: 'Poppins', sans-serif;
}

.empty-subtitle {
  margin: 12px 0 30px 0;
  font-size: 14px;
  color: #888; /* Muted text for hierarchy */
  font-weight: 400;
  line-height: 1.6;
  max-width: 250px;
}

/* THE BUTTON - Premium Purple Glow */
.browse-plans-btn {
  background: #A855F7; 
  color: #FFFFFF;
  border: none;
  width: 100%; 
  max-width: 260px;
  padding: 18px;
  border-radius: 50px; /* Capsule shape like the screenshot */
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
  transition: all 0.3s ease;
}

.browse-plans-btn:hover {
  background: #9333ea;
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5);
  transform: translateY(-2px);
}

.browse-plans-btn:active {
  transform: scale(0.96);
}

/* FULLSCREEN PURE BLACK OVERLAY */
#pageLoader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000000; /* Pure Black */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

/* FLOATING GLASS CARD */
.loader-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  padding: 30px 40px;
  border-radius: 24px;
  border: 1px solid rgba(168, 85, 247, 0.2); /* Subtle Purple border */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* THE SAMSUNG SPINNER */
.spinner-container {
  position: relative;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.spinner {
  width: 100%;
  height: 100%;
  border: 4px solid rgba(168, 85, 247, 0.1); /* Faded Purple ring */
  border-top: 4px solid #A855F7; /* Solid Purple head */
  border-radius: 50%;
  animation: spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Central Dot */
.spinner-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #A855F7;
  border-radius: 50%;
  box-shadow: 0 0 10px #A855F7;
}

/* TEXT STYLE */
.loader-card p {
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF; /* Pure White */
  margin: 0;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.5px;
}

/* SMOOTH ANIMATION */
@keyframes spin {
  from { transform: rotate(0deg); }
  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 */
  }
}




/* Toast Container - Positioned to the Top Right */
#toast-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: auto;
    max-width: 320px;
    pointer-events: none;
}

/* Individual Toast Styling - Black & Gold Theme */
.modern-toast {
    pointer-events: auto;
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    background: #000000; /* Pure Black Background */
    color: #ffffff;      /* White text for readability */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4); /* Stronger shadow for black bg */
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    
    /* Default Gold Border */
    border: 1px solid rgba(255, 215, 0, 0.2); /* Subtle gold outline */
    border-left: 5px solid #A855F7;           /* Solid Gold Accent */
    
    /* Animation */
    transform: translateX(120%); 
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.35);
}

.modern-toast.show {
    transform: translateX(0);
    opacity: 1;
}

/* Gold Accents for Icons */
.toast-icon {
    font-size: 18px;
    color: #A855F7; /* Makes every icon Gold */
}

/* High Visibility Status Borders (Optional: Keeping specific Gold/Red/Yellow hues) */
.toast-success { border-left-color: #A855F7; } /* Gold for Success */
.toast-error { border-left-color: #ff4d4d; }   /* Keeping Red for Errors for safety */
.toast-warning { border-left-color: #A855F7; } /* Amber Gold for Warnings */