/* ================= GENERAL RESET ================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

/* Premium Apex Wealth Theme setup */
:root {
  --bg-main: #0a101d; /* Very deep mild blue */
  --bg-gradient: linear-gradient(135deg, #0a101d 0%, #1f1a04 100%); /* Mild deep gold to blue */
  --bg-canvas: #0a101d;
  --bg-surface: #0e1526; 
  --bg-top-block: #0e1526;
  --bg-card: #131b2e; 
  --text-main: #ffffff; 
  --text-muted: #9fa7b5; 
  
  --accent: #d4af37; /* Mild deep gold */
  --accent-cyan: #c4a137; 
  --accent-blue-deep: #0a101d; 
  --accent-glow: rgba(212, 175, 55, 0.15);
  
  --border-subtle: #2a2211; 
  --border-line: #1c2233;
  --silver: #cbd5e1;
  --silver-dark: #64748b;
  --accent-muted: #8c7322;
  
  /* Gradients */
  --primary-gradient: linear-gradient(135deg, #0a101d 0%, #d4af37 100%);
  --button-hover-gradient: linear-gradient(135deg, #131b2e 0%, #e6be3c 100%);
  --card-gradient: linear-gradient(180deg, #131b2e 0%, #0e1526 100%);
  --text-gradient: linear-gradient(135deg, #ffffff 0%, #fae6a0 100%);
}

/* Logo Badge Styles */
.brand-logo-badge {
  width: 50px;
  height: 50px;
  background-color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(64, 180, 255, 0.25);
  border: 2px solid var(--accent-cyan);
  overflow: hidden;
  padding: 4px;
  flex-shrink: 0;
}

.brand-logo-badge.mini {
  width: 32px;
  height: 32px;
  border-width: 1.5px;
  padding: 2px;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

/* Global Setup */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body,
.dashboard,
.profile-page,
.bank-page,
.recharge-page,
.product-page,
.invite-page,
.records-page,
.withdraw-page {
  background: var(--bg-gradient) !important;
  color: var(--text-main) !important;
}

body {
  font-family: "Inter", sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Base Visibility Logic */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@400;500;600&display=swap');

.honda-auth-container {
    display: none;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: radial-gradient(circle at 20% 20%, #14274d 0%, #0a1530 55%, #060c1e 100%);
    font-family: 'Inter', sans-serif;
}

.honda-auth-container.active {
    display: flex;
}

.fieldmark-card {
    width: 100%;
    max-width: 420px;
    padding: 44px 36px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(20,39,77,0.9) 0%, rgba(10,21,48,0.95) 100%);
    border: 1px solid rgba(212,175,55,0.35);
    box-shadow:
        0 20px 60px rgba(0,0,0,0.5),
        0 0 0 1px rgba(255,255,255,0.02) inset,
        0 1px 0 rgba(212,175,55,0.15) inset;
    position: relative;
    overflow: hidden;
}

.fieldmark-card::before {
    content: '';
    position: absolute;
    top: 0; left: -60%;
    width: 40%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(212,175,55,0.08), transparent);
    transform: skewX(-20deg);
    animation: sheen 6s ease-in-out infinite;
}

@keyframes sheen {
    0%, 100% { left: -60%; }
    50% { left: 120%; }
}

.fieldmark-header {
    text-align: center;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.fieldmark-title {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    color: #F8F7F4;
    margin-bottom: 18px;
    letter-spacing: 0.3px;
}

.fieldmark-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.brand-logo-badge {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(145deg, #E8C468, #B8860B);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 3px rgba(212,175,55,0.15), 0 4px 12px rgba(212,175,55,0.3);
    overflow: hidden;
}

.brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.fieldmark-logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    font-weight: 600;
    background: linear-gradient(90deg, #E8C468, #D4AF37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}

.fieldmark-form {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fieldmark-input-group label {
    display: block;
    font-size: 12.5px;
    font-weight: 500;
    color: #B9C2D6;
    margin-bottom: 8px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.fieldmark-field-box {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(212,175,55,0.25);
    border-radius: 10px;
    padding: 0 14px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.fieldmark-field-box:focus-within {
    border-color: #D4AF37;
    background: rgba(212,175,55,0.06);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.12);
}

.fieldmark-field-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 13px 0;
    font-size: 14.5px;
    color: #F8F7F4;
    font-family: 'Inter', sans-serif;
}

.fieldmark-field-box input::placeholder {
    color: #6B7690;
}

.fieldmark-field-box .toggle-password {
    color: #9AA6C0;
    cursor: pointer;
    font-size: 14px;
    padding-left: 10px;
    transition: color 0.2s ease;
}

.fieldmark-field-box .toggle-password:hover {
    color: #D4AF37;
}

.fieldmark-btn-submit {
    margin-top: 6px;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #E8C468 0%, #C9A44C 50%, #B8860B 100%);
    color: #0A1530;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: 0.4px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(212,175,55,0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.fieldmark-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(212,175,55,0.35);
    filter: brightness(1.05);
}

.fieldmark-btn-submit:active {
    transform: translateY(0);
}

.fieldmark-switch-action {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-top: 26px;
    font-size: 13.5px;
    color: #8B96B3;
}

.fieldmark-link-btn {
    background: none;
    border: none;
    color: #D4AF37;
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
    margin-left: 4px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.fieldmark-link-btn:hover {
    color: #E8C468;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .fieldmark-card { padding: 32px 24px; }
    .fieldmark-title { font-size: 22px; }
}

/* Dashboard container */
.dashboard {
  width: 100%;
  max-width: 400px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  margin: 0;
  box-sizing: border-box;

  /* UPDATED: Deep Midnight Sky Radial Gradient */
  background: radial-gradient(circle at top, #061530 0%, #020813 100%);
  background-attachment: fixed;

  color: #ffffff;
}

/* ================= DASHBOARD HEADER (ELECTRIC THEME) ================= */
.dashboard-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  height: 70px;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  z-index: 10000;
  box-sizing: border-box;
  border-bottom: 1px solid var(--border-subtle);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Square-ish Avatar Styling */
.header-avatar {
  width: 50px;
  height: 50px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.header-avatar img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

/* Electric Vision Text */
.welcome-text {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  font-size: 18px;
  letter-spacing: 2px;
  font-weight: 700;
}

.text-white {
  color: #ffffff;
}
.text-cyan {
  color: #f5f5f5;
  text-shadow: none;
}

/* Right Side Action Buttons */
.header-actions {
  display: flex;
  gap: 10px;
}

.action-btn {
  width: 45px;
  height: 45px;
  background: transparent;
  border: 1.5px solid var(--border-subtle);
  border-radius: 12px;
  color: var(--text-main);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s;
}

.action-btn:hover {
  border-color: var(--text-main);
  background: #121212;
}

.action-btn i {
  filter: none;
}

.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;
}

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&display=swap');

/* unified root properties applied */

/* Base structural wrapper sitting natively on your purple/black background */
.main-container {
    width: 100%;
    padding: 24px 16px;
    box-sizing: border-box;
}

/* FORCE SINGLE LINE GRID ROW AS SHOWN IN SCREENSHOT */
.action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

/* THE PREMIUM STRUCTURAL FLAT BUTTON CARDS */
.action-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 8px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(10px);
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.25s ease, background 0.25s ease;
}

.action-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, currentColor 0%, transparent 65%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.action-card:active {
    transform: scale(0.94);
}

.action-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255,255,255,0.14);
    background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015));
}

.action-card:hover::before {
    opacity: 0.08;
}

/* COMPACT VECTOR ICONS (Not too big, exactly matches sample layout) */
.action-icon {
    font-size: 19px;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.action-card:hover .action-icon {
    transform: scale(1.08) rotate(-4deg);
}

/* Precise Color Layouts from Screenshot Mapped to Dark Canvas */
.icon-cyan {
  color: cyan;
}
.icon-green {
  color: green;
}
.icon-orange {
  color: orange;
}
.icon-purple {
  color: purple;
}

/* CRISP BALANCED TYPOGRAPHY (No giant text weights) */
.action-text {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  letter-spacing: -0.01em;
}

.text-cyan {
  color: #f5f5f5;
}
.text-green {
  color: #f5f5f5;
}
.text-orange {
  color: #f5f5f5;
}
.text-purple {
  color: #f5f5f5;
}

/* Desktop scaling optimization without widening the small grid row */
@media (min-width: 576px) {
  .main-container {
    padding: 24px 16px;
  }
  .action-grid {
    gap: 12px;
  }
  .action-text {
    font-size: 14px;
  }
}

/* HEADER INFO (Icon + Title) */
.card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.card-header i {
  font-size: 22px;
}

/* Dynamic Text/Icon Coloring matching the top gradients */
.card-recharge .card-header {
  color: #ff944d;
}
.card-withdraw .card-header {
  color: #4ade80;
}
.card-team .card-header {
  color: #79a6ff;
}
.card-checkin .card-header {
  color: #c084fc;
}

.card-header span {
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-align: center;
}

/* THE FUTURISTIC ANGLED BUTTONS */
.tech-btn-wrapper {
  width: 100%;
  padding: 0 4px;
  box-sizing: border-box;
}

.tech-btn {
  width: 100%;
  border: none;
  padding: 8px 0;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #ffffff;
  cursor: pointer;

  /* Creates the signature cyber-cut tech corners */
  clip-path: polygon(
    10px 0%,
    calc(100% - 10px) 0%,
    100% 30%,
    100% 70%,
    calc(100% - 10px) 100%,
    10px 100%,
    0% 70%,
    0% 30%
  );

  transition: filter 0.2s ease;
}

/* Button Gradients matched to look outstanding against the cards */
.card-recharge .tech-btn {
  background: linear-gradient(90deg, #ff416c, #ff4b2b);
}
.card-withdraw .tech-btn {
  background: linear-gradient(90deg, #00b4db, #0083b0);
}
.card-team .tech-btn {
  background: linear-gradient(90deg, #7f00ff, #e100ff);
}
.card-checkin .tech-btn {
  background: linear-gradient(90deg, #11998e, #38ef7d);
}

.tech-btn:hover {
  filter: brightness(1.2);
}

/* 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 */
}

/* ===== NAVBAR ===== */
.apex-navbar {
  width: 100%;
  height: 60px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo-img {
  height: 32px;
  width: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--accent);
}
.nav-brand-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-menu-icon {
  font-size: 20px;
  color: var(--text-main);
  cursor: pointer;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 59, 59, 0.12);
  border: 1px solid rgba(141, 255, 59, 0.3);
  color: green;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: green;
  box-shadow: 0 0 0 rgba(59, 255, 105, 0.6);
  animation: live-pulse 1.5s infinite;
}

@keyframes live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.6);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(255, 59, 59, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 59, 59, 0);
  }
}

/* ===== FLYER CONTAINER ===== */
.flyer-container {
  width: 100%;
  margin-top: 20px;
  padding: 0 16px;
  box-sizing: border-box;
}

/* ===== STRUCTURE CARD ===== */
.balance-flyer {
  width: 100%;
  max-width: 380px; 
  height: auto; /* Fits the image exactly */
  margin: 0 auto;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1.5px solid var(--border-subtle);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  background-color: var(--bg-card);
  display: flex; /* Removes phantom bottom margin from images */
}

.fixed-flyer {
  width: 100%;
  height: auto;
  display: block;
}

/* 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 */
}

/* ================= PREMIUM GOLD AND BLUE GROUNDED NAV ================= */
.bottom-nav {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 440px;
  background: linear-gradient(180deg, rgba(20, 39, 77, 0.95) 0%, rgba(10, 21, 48, 0.98) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 24px;
  z-index: 9999;
  box-sizing: border-box;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(212, 175, 55, 0.15);
  padding-bottom: 0;
}

.nav-pill-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  height: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  justify-items: center;
  box-sizing: border-box;
}

/* ================= NAV ITEMS GRID INTERFACES ================= */
.nav-item {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  gap: 4px;
  color: #8B96B3; /* inactive blue-grey */
  transition: color 0.15s ease, transform 0.1s ease;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

/* Vector Framework Wrap Scaling */
.nav-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 28px;
  border-radius: 14px;
  transition: background-color 0.2s ease, color 0.2s ease, filter 0.2s ease;
}

.nav-icon-wrapper svg,
.nav-icon-wrapper i {
  font-size: 20px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Component Navigation Text Labels */
.nav-label-text {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.15s ease, text-shadow 0.2s ease;
}

/* ================= THE GOLD ACTIVE MATRIX ================= */
.nav-item.active {
  color: #D4AF37; 
}

.nav-item.active .nav-icon-wrapper {
  background: transparent;
  color: #D4AF37;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.5));
}

.nav-item.active .nav-label-text {
  color: #E8C468; 
  font-weight: 700;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* Clean UI Haptic Pressure Indicator */
.nav-item:active {
  transform: scale(0.93);
}

/* ================= THE FIX: AUTOMATIC SCROLL SPACING OFFSET ================= */
.profile-scroll-container {
  padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)) !important;
}

/* Global fall-back: If you have other pages using this navigation track, 
  this class can be added to their main containers to keep items from getting blocked.
*/
.nav-spacer-fix {
  padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)) !important;
}

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

/* unified root properties applied */

body {
  background-color: var(--bg-main);
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
  color: var(--text-main);
}

.profile-page {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  box-sizing: border-box;
  background-color: var(--bg-main);
}

/* ===== DISTINCT UPPER DASHBOARD SECTION BLOCK ===== */
.profile-page {
    min-height: 100vh;
    background: radial-gradient(circle at 20% 0%, #14274d 0%, #0a1530 55%, #060c1e 100%);
    font-family: 'Inter', sans-serif;
    padding: 24px 18px 40px;
}

.dashboard-top-section {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.profile-brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo-badge.mini {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(212,175,55,0.35);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.1);
    flex-shrink: 0;
}

.brand-logo-badge.mini .brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(90deg, #E8C468, #D4AF37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.4px;
}

.honda-user-meta h2 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: #F8F7F4;
    margin: 0 0 4px;
}

.honda-user-meta p {
    font-size: 13px;
    color: #8B96B3;
    margin: 0;
}

.honda-main-card {
    position: relative;
    padding: 24px 22px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(20,39,77,0.9) 0%, rgba(10,21,48,0.95) 100%);
    border: 1px solid rgba(212,175,55,0.3);
    box-shadow:
        0 20px 50px rgba(0,0,0,0.45),
        0 1px 0 rgba(212,175,55,0.15) inset;
    overflow: hidden;
}

.honda-main-card::before {
    content: '';
    position: absolute;
    top: -60px; right: -40px;
    width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(212,175,55,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.honda-label {
    position: relative;
    z-index: 1;
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #B9C2D6;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.honda-amount-row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.honda-amount-row span:first-child {
    font-size: 20px;
    font-weight: 600;
    color: #E8C468;
}

.honda-amount-row span:first-child::before {
    content: '';
}

#balanceAmount {
    font-family: 'Playfair Display', serif;
    font-size: 34px;
    font-weight: 700;
    color: #F8F7F4;
    letter-spacing: 0.3px;
}
/* ===== STREAM TIMELINE CONTAINER ===== */
.profile-scroll-container {
  padding: 20px 16px 40px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-sizing: border-box;
}

/* ===== RE-ENGINEERED BUTTON INTERFACE ===== */
.honda-action-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  margin-top: -8px;
}

.honda-btn-primary,
.honda-btn-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 16px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(64, 180, 255, 0.2);
}

.honda-btn-primary {
  background: linear-gradient(135deg, rgba(64, 180, 255, 0.2), rgba(0, 90, 156, 0.4));
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.honda-btn-outline {
  background: rgba(8, 22, 47, 0.6);
  color: var(--accent-cyan);
}

.honda-btn-primary:hover,
.honda-btn-outline:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(64, 180, 255, 0.15);
  border-color: rgba(64, 180, 255, 0.5);
}

.honda-btn-primary:active,
.honda-btn-outline:active {
  transform: scale(0.97);
}

.btn-icon {
  width: 16px;
  height: 16px;
}

/* ===== HIGH DENSITY LIST SECTIONS ===== */
.settings-group-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.settings-group-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  padding-left: 2px;
}

.settings-list-box {
  background: rgba(8, 22, 47, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.settings-item-link {
  text-decoration: none;
  color: inherit;
}

.settings-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: background 0.2s ease, padding-left 0.2s ease;
}

.settings-item-row:last-child {
  border-bottom: none;
}

.settings-item-row:hover {
  background: rgba(64, 180, 255, 0.05);
  padding-left: 24px;
}

.item-left-side {
  display: flex;
  align-items: center;
  gap: 12px;
}

.item-left-side i {
  font-size: 15px;
  width: 20px;
  text-align: center;
}

.icon-cyan {
  color: var(--accent-cyan);
}
.icon-red {
  color: #ff4d4d;
}
.text-red {
  color: #ff4d4d !important;
}

.item-left-side span {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.chevron-indicator {
  font-size: 11px;
  color: #3b475c;
}

.indicator-red {
  color: rgba(255, 77, 77, 0.3) !important;
}

/* Responsiveness Rules for Wider Desktop Displays */
@media (min-width: 576px) {
  .dashboard-top-section {
    padding: 32px 24px 40px 24px;
  }
  .profile-scroll-container {
    padding: 24px 24px 40px 24px;
    gap: 28px;
  }
}

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

/* Strict Integration of Your Brand Theme Colors */
/* unified root properties applied */

/* Global Styling Setup Overrides */
.bank-page {
  background-color: var(--bg-canvas);
  min-height: 100vh;
  width: 100%;
  font-family: "Inter", sans-serif;
  color: var(--text-main);
  box-sizing: border-box;
}

/* ==========================================================================
   HEADER ARTIFACTS
   ========================================================================== */
.bank-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  background-color: var(--bg-canvas); /* Flat seamless top sweep */
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
}

.bank-back-btn {
  background: transparent;
  border: none;
  font-size: 18px;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: background 0.2s ease;
  z-index: 2;
}

.bank-back-btn:active {
  background: var(--border-subtle);
}

.bank-header h2 {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.01em;
  z-index: 1;
}

/* ==========================================================================
   CONTAINER AND INTERACTION FORM LAYOUTS
   ========================================================================== */
.honda-bank-container {
  width: 100%;
  max-width: 400px; /* Locked to clean compact desktop/mobile container limits */
  margin: 0 auto;
  padding: 80px 16px 40px 16px; /* 80px top shifts down content clean from fixed top header bar */
  box-sizing: border-box;
}

.honda-bank-form {
  width: 100%;
  background-color: var(
    --bg-card
  ); /* Charcoal card base exactly from picture */
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px; /* Elegant tight spacing layouts */
  box-sizing: border-box;
}

.honda-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.honda-input-label {
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Form inputs & selection controls styled cleanly to match your brand style */
.honda-bank-form input,
.honda-bank-form select {
  background-color: var(
    --bg-canvas
  ); /* Inner input area drops to dark backdrop */
  border: 1.5px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text-main);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.2s ease;
  -webkit-appearance: none; /* Disables default old mobile styles */
  appearance: none;
}

.honda-bank-form input:focus,
.honda-bank-form select:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-glow);
}

/* Specific styling overrides for read-only dynamic verification lookups */
.honda-bank-form input[readonly] {
  background-color: rgba(33, 38, 45, 0.3);
  color: var(--text-muted);
  border-style: dashed; /* Visual hint for automated API fields */
  cursor: not-allowed;
}

/* Placeholders mapped precisely to screenshot tone */
.honda-bank-form input::placeholder {
  color: #484f58;
}

/* Custom dropdown chevron arrow geometry */
.honda-select-wrapper {
  position: relative;
  width: 100%;
}

.honda-select-wrapper::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

/* Centered verification notice style directly above submit action */
.honda-verification-notice {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin: 4px 0;
  font-weight: 400;
}

/* ==========================================================================
   PRIMARY ACTION SUBMIT CONTROLS
   ========================================================================== */
.honda-submit-btn {
  width: 100%;
  background-color: var(--accent-cyan);
  color: #000000;
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.honda-submit-btn:hover {
  background-color: #00d2ff;
  transform: translateY(-1px);
}

.honda-submit-btn:active {
  transform: translateY(0);
}

/* ==========================================================================
   IMPORTANT PRIVACY/SECURITY INFO CARD AT BOTTOM
   ========================================================================== */
.honda-notice-card {
  background-color: rgba(22, 27, 34, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 14px;
  margin-top: 10px;
  box-sizing: border-box;
}

.notice-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.notice-circle {
  width: 15px;
  height: 15px;
  border: 1.5px solid var(--text-muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
}

.notice-content {
  color: #57606a;
  font-size: 11px;
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   RESPONSIVENESS DESKTOP OPTIMIZATIONS
   ========================================================================== */
@media (min-width: 576px) {
  .honda-bank-container {
    padding-top: 100px;
  }
  .honda-bank-form {
    padding: 32px 24px;
  }
}

.recharge-header-fixed {
  display: flex;
  align-items: center;
  padding: 20px;
  gap: 15px;
}

.recharge-header-fixed h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  color: #ffffff;
}

.recharge-page-container {
  padding: 0 16px 20px 16px;
  max-width: 500px;
  margin: 0 auto;
}

/* Base Card Elements */
.payment-card {
  background: #1c2333;
  border-radius: 24px;
  padding: 20px;
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.card-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Individual Data Row Panels */
.info-row {
  background: #0f141e;
  border: 1px solid rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  padding: 14px 18px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.info-col {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.info-label {
  color: #6b7280;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.6px;
}

.info-value {
  color: #3b82f6;
  font-weight: 700;
  font-size: 1.05rem;
}

/* Dynamic Rounded Copy Buttons */
.copy-icon-btn {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Banner Indicator Display */
.amount-banner {
  background: #0f141e;
  color: #ffffff;
  border-radius: 16px;
  padding: 16px;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  margin: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.amount-banner span {
  font-size: 1.2rem;
  color: #3b82f6;
}

/* Styled Alert Sub-Box Notification Box */
.warning-alert-box-amber {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.alert-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.alert-item i {
  color: #fbbf24;
  font-size: 0.9rem;
  margin-top: 3px;
}

.alert-item p {
  color: #fde68a;
  font-size: 0.82rem;
  font-weight: 500;
  margin: 0;
  line-height: 1.4;
}

/* Input Styles */
.input-label {
  display: block;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  color: #9ca3af;
  margin: 16px 0 6px 2px;
}

.payment-input {
  width: 100%;
  background: #0f141e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px;
  border-radius: 14px;
  outline: none;
  font-size: 0.9rem;
  color: #ffffff;
  box-sizing: border-box;
}

.payment-input:focus {
  border-color: #3b82f6;
}

.expiry-text {
  color: #6b7280;
  font-size: 0.78rem;
  margin-top: 20px;
  text-align: center;
  line-height: 1.4;
}

/* Luxury Interactive UI Buttons */
.primary-gradient-btn {
  background: var(--primary-gradient);
  color: #ffffff;
  border: none;
  width: 100%;
  padding: 16px;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 700;
  margin-top: 20px;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.change-amount-btn {
  background: transparent;
  color: #ffffff;
  border: 2px solid #1c2333;
  width: 100%;
  padding: 14px;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 700;
  margin-top: 12px;
  cursor: pointer;
}

/* Bottom Technical Help Info Wrapper Box */
.help-box {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 18px;
  margin-top: 25px;
}

.help-box h4 {
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.help-box p {
  color: #6b7280;
  font-size: 0.78rem;
  line-height: 1.5;
  margin: 0;
}

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

/* High-Contrast Luxury Component System Variables */
/* unified root properties applied */

/* 1. REMOVE 'min-height: 100vh' so the page can expand naturally */
.recharge-page {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-main);
  /* Change min-height to height: auto to allow scrolling */
  height: auto;
  min-height: 100%;
  width: 100%;
  color: var(--text-main);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  /* Ensure the body itself doesn't lock scroll */
  overflow-y: auto;
}

.recharge-page-container {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;

  /* Use padding to create the space, not height constraints */
  padding: 85px 16px 80px 16px;

  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 20px;

  /* THIS IS THE CHANGE: Use height: auto instead of 100vh */
  height: auto;
  /* This ensures it can grow, but doesn't force a height that clips content */
  min-height: calc(100vh - 165px);
}

/* ===== EXTREMELY CLEAN FIXED HEADER SWEEP ===== */
.recharge-header-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 65px;
  background-color: var(--bg-main);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  box-sizing: border-box;
  z-index: 1000;
}

.recharge-header-fixed h2 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.01em;
  margin: 0;
}

.recharge-back-btn-v2,
.recharge-history-btn {
  background: transparent;
  border: none;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 8px;
  transition: opacity 0.2s;
}

.recharge-back-btn-v2:active,
.recharge-history-btn:active {
  opacity: 0.5;
}

/* ===== NATIVE AVAILABLE BALANCE CARD ===== */
.balance-display-card {
  width: 100%;
  background: transparent; /* No floating cards, flat directly onto canvas background */
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.balance-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.balance-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

/* ===== THE INPUT CONTAINER BLOCK ===== */
.recharge-card {
  width: 100%;
  background-color: var(--bg-card); /* Charcoal black container base layer */
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 24px 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.recharge-card .section-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 12px;
  text-align: left;
}

.recharge-card .label-note {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
}

.recharge-card .section-label.centered {
  margin-top: 24px;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--text-muted);
}

/* ===== CUSTOM TEXT AMOUNT FIELD BOX ===== */
.custom-amount-wrapper {
  background-color: var(
    --bg-main
  ); /* Flips inward to dark canvas for maximum input contrast */
  border: 1.5px solid var(--border-subtle);
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 16px;
  transition: all 0.2s ease;
}

.custom-amount-wrapper:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-glow);
}

.currency-icon {
  color: var(--accent-cyan);
  font-size: 18px;
  font-weight: 700;
  margin-right: 12px;
}

#customAmount {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 16px;
  font-family: inherit;
  font-weight: 500;
  outline: none;
  width: 100%;
}

#customAmount::placeholder {
  color: #484f58;
}

/* ===== BALANCED GRID GRID SYSTEM ===== */
.amount-grid {
  display: grid;
  grid-template-columns: repeat(
    3,
    1fr
  ); /* Exactly 3 columns side by side perfectly proportioned */
  gap: 10px;
  width: 100%;
}

.amount-option {
  background-color: var(--bg-main); /* Native charcoal option frame backdrops */
  border: 1px solid var(--border-subtle);
  padding: 14px 4px;
  border-radius: 10px;
  text-align: center;
  color: var(--text-main);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.amount-option:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.amount-option:active {
  background-color: var(--accent-cyan);
  color: #000000;
  transform: scale(0.95);
}

/* ===== FLAT EXTREMELY VIBRANT ACTION BUTTON ===== */
.deposit-btn {
  width: 100%;
  background: var(--primary-gradient);
  color: #ffffff;
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 28px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.deposit-btn:hover {
  background: var(--button-hover-gradient);
}

.deposit-btn:active {
  transform: scale(0.97);
}

/* ===== IMPORTANT OPERATIONAL RULES INFO BLOCK ===== */
.info-guidelines-box {
  width: 100%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 20px 16px;
  box-sizing: border-box;
}

.info-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.info-icon {
  width: 16px;
  height: 16px;
  background-color: var(--accent-cyan);
  color: #000000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  margin-top: 2px;
  flex-shrink: 0;
}

.info-list p {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

/* High-resolution desktop media query system optimizer */
@media (min-width: 576px) {
  .recharge-page-container {
    gap: 24px;
  }
  .recharge-card {
    padding: 28px 24px;
  }
  .amount-grid {
    gap: 12px;
  }
}

.fintech-toast {
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  font-family: Inter, sans-serif;
}

/* ===== BOTTOM SHEET MODAL CANVAS OVERLAY ===== */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6,12,30,0.75);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    animation: overlayFade 0.35s ease;
}

@keyframes overlayFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.mx-unique-modal {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px 32px 32px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(20,39,77,0.97) 0%, rgba(8,16,38,0.98) 100%);
    border: 1px solid rgba(212,175,55,0.35);
    box-shadow:
        0 25px 70px rgba(0,0,0,0.55),
        0 0 0 1px rgba(255,255,255,0.02) inset,
        0 1px 0 rgba(212,175,55,0.15) inset;
    text-align: center;
    font-family: 'Inter', sans-serif;
    animation: modalRise 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.mx-unique-modal::before {
    content: '';
    position: absolute;
    top: -80px; left: 50%;
    transform: translateX(-50%);
    width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(212,175,55,0.18) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

@keyframes modalRise {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.mx-close-x-btn {
    position: absolute;
    top: 16px; right: 16px;
    width: 32px; height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(212,175,55,0.25);
    border-radius: 50%;
    color: #B9C2D6;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 2;
}

.mx-close-x-btn svg { width: 14px; height: 14px; }

.mx-close-x-btn:hover {
    background: rgba(212,175,55,0.15);
    border-color: #D4AF37;
    color: #E8C468;
    transform: rotate(90deg);
}

.mx-modal-brand-token {
    position: relative;
    z-index: 1;
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: linear-gradient(145deg, #E8C468, #B8860B);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 4px rgba(212,175,55,0.12), 0 8px 24px rgba(212,175,55,0.35);
    overflow: hidden;
    animation: tokenPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}

.mx-modal-brand-token img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

@keyframes tokenPop {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

.mx-modal-title {
    position: relative;
    z-index: 1;
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: #F8F7F4;
    margin-bottom: 26px;
    letter-spacing: 0.3px;
    animation: revealUp 0.5s ease 0.2s both;
}

.mx-benefit-list {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
    margin-bottom: 18px;
}

.mx-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 13px 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(212,175,55,0.15);
    border-radius: 12px;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
    animation: revealUp 0.5s ease both;
}

.mx-benefit-item:nth-child(1) { animation-delay: 0.28s; }
.mx-benefit-item:nth-child(2) { animation-delay: 0.36s; }
.mx-benefit-item:nth-child(3) { animation-delay: 0.44s; }
.mx-benefit-item:nth-child(4) { animation-delay: 0.52s; }

.mx-benefit-item:hover {
    border-color: rgba(212,175,55,0.4);
    background: rgba(212,175,55,0.05);
    transform: translateX(3px);
}

@keyframes revealUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.mx-item-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(212,175,55,0.2), rgba(212,175,55,0.06));
    border: 1px solid rgba(212,175,55,0.3);
    color: #E8C468;
}

.mx-item-icon svg { width: 17px; height: 17px; }

.mx-item-icon.icon-sparkle { color: #E8C468; }
.mx-item-icon.icon-gift { color: #6FA8DC; }
.mx-item-icon.icon-coin { color: #E8C468; }
.mx-item-icon.icon-users { color: #6FA8DC; }

.mx-benefit-text {
    font-size: 13.5px;
    line-height: 1.5;
    color: #C7CEE0;
}

.mx-benefit-text strong {
    color: #F8F7F4;
    font-weight: 700;
}

.mx-popup-sub-notice {
    position: relative;
    z-index: 1;
    font-size: 11.5px;
    color: #6B7690;
    font-style: italic;
    margin-bottom: 24px;
    animation: revealUp 0.5s ease 0.58s both;
}

.mx-button-group {
    position: relative;
    z-index: 1;
    animation: revealUp 0.5s ease 0.64s both;
}

.mx-telegram-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2AABEE 0%, #1E88C7 100%);
    border: 1px solid rgba(212,175,55,0.3);
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(42,171,238,0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.mx-telegram-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(42,171,238,0.4);
    filter: brightness(1.08);
}

.mx-tg-svg { width: 20px; height: 20px; flex-shrink: 0; }

@media (max-width: 480px) {
    .mx-unique-modal { padding: 32px 22px 24px; }
    .mx-modal-title { font-size: 20px; }
}

#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 */
}

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

.premium-card {
  font-family: "Inter", sans-serif;
  background: linear-gradient(160deg, #0a0f1a 0%, #050810 100%);
  border-radius: 22px;
  padding: 20px;
  margin-bottom: 20px;
  color: #fff;
  border: 1px solid rgba(0, 255, 136, 0.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  width: 100%;
  max-width: 500px;
}

/* HEADER */
.header-main {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.plan-icon-box {
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.2);
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00ff88;
  font-size: 18px;
  flex-shrink: 0;
}

.title-group {
  flex: 1;
  min-width: 0;
}

.plan-title {
  font-size: 11px;
  color: #7d8590;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.plan-price {
  font-size: 21px;
  font-weight: 800;
  margin: 3px 0 0;
  color: #ffffff;
}

.active-tag {
  background: rgba(0, 255, 136, 0.12);
  border: 1px solid rgba(0, 255, 136, 0.25);
  color: #00ff88;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

/* TIMER */
.timer-box {
  background: rgba(0, 255, 136, 0.04);
  border: 1px solid rgba(0, 255, 136, 0.15);
  padding: 16px;
  border-radius: 16px;
  text-align: center;
  margin-bottom: 16px;
}

.timer-label {
  font-size: 10px;
  color: #00ff88;
  letter-spacing: 1.2px;
  font-weight: 700;
  text-transform: uppercase;
}

.countdown {
  font-family: "Inter", monospace;
  font-size: 24px;
  font-weight: 700;
  margin-top: 6px;
  color: #ffffff;
  letter-spacing: 2px;
}

/* GRID */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px;
  border-radius: 13px;
}

.stat-label {
  font-size: 10px;
  color: #7d8590;
  font-weight: 500;
}

.stat-value {
  font-size: 15px;
  font-weight: 700;
  margin-top: 4px;
  color: #ffffff;
}

/* DETAILS */
.details-list {
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 10px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #7d8590;
  padding: 7px 0;
}

.detail-item span:last-child {
  color: #ffffff;
  font-weight: 600;
}

/* PROGRESS */
.progress-bar-bg {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 6px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00ff88, #00cc6a);
  border-radius: 10px;
}

/* MOBILE FIX */
@media (max-width: 480px) {
  .premium-card {
    padding: 16px;
    border-radius: 18px;
  }

  .plan-price {
    font-size: 18px;
  }

  .countdown {
    font-size: 20px;
  }

  .stats-grid {
    gap: 8px;
  }
}

/* Strict Integration of Your Colors */
/* unified root properties applied */

/* Master Fixed Overlay Settings */
.invite-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 999;
  background-color: var(--bg-main); /* Strict alignment to black theme */
  font-family: "Inter", sans-serif;
  color: var(--text-main);
  display: none; /* Regulated via active classes */
  flex-direction: column;
  padding-top: 65px; /* Perfect breathing margin for the header */
  box-sizing: border-box;
}

/* ================= CLEAN FIXED INVITE HEADER ================= */
.invite-header-fixed-v2 {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 450px; /* Aligns perfectly down the grid on desktops */
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  background-color: var(--bg-main);
  z-index: 1000;
  border-bottom: 1px solid var(--border-subtle);
  box-sizing: border-box;
}

.invite-header-fixed-v2 h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

/* ================= MINIMAL BACK TOGGLE SWITCH ================= */
.invite-back-btn-v2 {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  padding: 8px;
}

.invite-back-btn-v2:active {
  color: var(--accent-cyan);
}

/* ================= SCROLL CONTAINER STREAM ================= */
.referral-container {
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  padding: 24px 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 28px; /* Clean dynamic separation spacing */
}

/* Structural Header Sections block */
.section-block-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.section-block-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

/* Core Element Info Boxes sitting flat on canvas background */
.referral-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
}

.card-label {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 14px;
  margin: 0;
}

/* Rebuilt Premium Action Copy Utility */
.copy-input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

/* Code layout mapping */
.code-display {
  color: var(--text-main);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 1px;
  font-family: monospace;
  padding: 4px 0;
}

/* Link element styling */
.link-display {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-muted);
  font-size: 14px;
  font-family: inherit;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  padding: 6px 0;
}

/* Wide flat premium buttons to replicate screenshot behavior */
.copy-action-btn {
  width: 100%;
  background: var(--primary-gradient);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.copy-action-btn:hover {
  background: var(--button-hover-gradient);
  transform: translateY(-1px);
}

.copy-action-btn:active {
  transform: translateY(1px);
}

/* ================= EARNINGS STRUCTURE COMPONENT ROW ================= */
.earnings-tier-row {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

.tier-badge-indicator {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}

.accent-gold {
  background: linear-gradient(135deg, #ffd700, #b8860b);
  color: #000000;
}

.accent-silver {
  background: linear-gradient(135deg, #e2e8f0, #94a3b8);
  color: #000000;
}

.tier-info-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0; /* Prevents text clipping breakout layout bugs */
}

.tier-info-text h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.tier-info-text p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Capsule metric badge styling */
.tier-value-pill {
  background-color: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: var(--accent-cyan);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* ================= THE HOW IT WORKS LOGISTIC SHEET ================= */
.how-it-works-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-sizing: border-box;
  width: 100%;
}

.how-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.how-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.how-header i {
  color: var(--accent-cyan);
  font-size: 16px;
}

.step-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.step-check-icon {
  color: var(--accent-cyan);
  font-size: 15px;
  display: flex;
  align-items: center;
  padding-top: 2px;
}

.step-content p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.highlight-cyan {
  color: var(--accent-cyan);
  font-weight: 600;
}

/* Flawless Desktop Responsiveness Layout */
@media (min-width: 576px) {
  .copy-input-wrapper {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background-color: #161b22;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 6px 8px 6px 16px;
    height: 56px;
    gap: 16px;
  }

  .code-display,
  .link-display {
    padding: 0;
  }

  .copy-action-btn {
    width: auto;
    padding: 0 20px;
    height: 100%;
    white-space: nowrap;
  }
}

/* --- TEAM SECTION --- */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.title-group h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

.detail-btn {
  /* Light Purple Button */
  background: #f3e8ff;
  color: var(--purple-accent);
  border: none;
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* --- MEMBER CARDS --- */
.member-card {
  background: white;
  border-radius: 20px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: var(--card-shadow);
  margin-bottom: 12px;
  position: relative;
  border: 1px solid #fafafa;
}

.level-indicator {
  font-size: 36px;
  font-weight: 900;
  color: #121b1e; /* Purple for L1 */
  min-width: 40px;
}

.level-indicator.level-2 {
  color: #2575fc;
} /* Blue for L2 */
.level-indicator.level-3 {
  color: #a855f7;
} /* Light Purple for L3 */

.member-stats {
  flex-grow: 1;
}

.level-badge {
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
}

/* Updated badge colors for Purple/Blue/Lavender theme */
.blue-badge {
  background: #f3e8ff;
  color: #6a11cb;
}
.green-badge {
  background: #eef2ff;
  color: #2575fc;
}
.orange-badge {
  background: #faf5ff;
  color: #a855f7;
}

.stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.commission-info {
  text-align: right;
}

.commission-info .label {
  display: block;
  font-size: 10px;
  color: #aaa;
  font-weight: 600;
}

.commission-info .amount {
  font-weight: 800;
  font-size: 14px;
}

/* Text colors to match the icons/badges */
.blue-text {
  color: #6a11cb;
}
.green-text {
  color: #2575fc;
}
.orange-text {
  color: #a855f7;
}

/* Responsive adjustments */
@media (max-width: 380px) {
  .stats-grid span {
    width: 100%;
  }
  .level-indicator {
    font-size: 28px;
  }
}

/* ================= CLEAN FIXED TEAM HEADER ================= */
.team-header-main {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  /* Swapped Red for Brand Purple Gradient */
  background: linear-gradient(135deg, #050b18 0%, #050b18 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: #050b18;
  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: #ffffff;
  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 */
}

/* Container Background - Dark Navy */
#earningsPage {
  background-color: #050b18;
  color: #ffffff;
  font-family: "Inter", sans-serif;
  min-height: 100vh;
  padding-top: 20px;
}

.recharge-page-container {
  padding: 15px;
  max-width: 500px;
  margin: 0 auto;
}

/* | TIER SYSTEM Header */
.tier-system-title {
  color: #00d4ff;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 25px;
  border-left: 3px solid #00d4ff;
  padding-left: 10px;
}

/* The Main Tier Cards (Team 1 & Team 2) */
.tier-card-main {
  background: linear-gradient(145deg, #0a101e, #121826);
  border: 1px solid #1c2333;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 20px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.tier-card-main:active {
  transform: scale(0.98);
}

.tier-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.tier-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
}

.tier-title i {
  color: #3b82f6; /* Blue icon */
  font-size: 1.1rem;
}

/* Blue Tier Pill */
.tier-badge {
  background: rgba(30, 58, 138, 0.5);
  color: #00d4ff;
  padding: 3px 14px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  border: 1px solid rgba(0, 212, 255, 0.2);
}

/* Grid for the 3 Stats (Members, Invest, Commission) */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.stat-box {
  background: #050b18; /* Inner dark box */
  border: 1px solid #1c2333;
  border-radius: 12px;
  padding: 15px 5px;
  text-align: center;
}

.stat-value {
  color: #00d4ff;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 5px;
}

.stat-label {
  color: #64748b;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

/* Team Benefits Description Box (Yellow Theme) */
.benefits-container {
  background: rgba(251, 191, 36, 0.03);
  border: 1px solid rgba(251, 191, 36, 0.15);
  border-radius: 20px;
  padding: 20px;
  margin-top: 30px;
}

.benefits-title {
  color: #fbbf24;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #8a8d91;
  font-size: 0.85rem;
  margin-bottom: 12px;
  line-height: 1.5;
}

.benefit-item i {
  color: #00d4ff; /* Cyan bullet point icon */
  font-size: 0.7rem;
  margin-top: 4px;
}

/* User List Detail View (Hidden by default) */
#detailView {
  padding-bottom: 40px;
}

.user-list-card {
  background: #121826;
  border: 1px solid #1c2333;
  border-radius: 12px;
  padding: 12px 15px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ================= WITHDRAW PAGE ================= */
.withdraw-page {
  width: 100%;
  background: #050b18; /* The deep dark blue/black from the image */
  font-family:
    "Inter",
    -apple-system,
    sans-serif;
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  color: #ffffff;
}

/* ================= CLEAN HEADER ================= */
.withdraw-header-fixed {
  width: 100%;
  height: 60px;
  background: #050b18;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  border-bottom: 1px solid #050b18;
}

.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 #050b18;
  background: #050b18;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.history-btn {
  position: absolute;
  right: 15px; /* push to right */
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* ================= GLOBAL ================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #050b18; /* Deep Honda Dark Blue */
  font-family: "Inter", sans-serif;
}

.recharge-container {
  padding: 20px 15px 50px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ================= 1. BALANCE CARD (GOLD) ================= */
.balance-card-ev {
  background: linear-gradient(180deg, #0f1d33 0%, #070e1b 100%);
  border: 1px solid #1c2e4a;
  border-radius: 20px;
  padding: 40px 20px;
  text-align: center;
  position: relative;
}

.satellite-icon {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 20px;
  height: 20px;
}

.balance-label-ev {
  color: #8a94a6;
  font-size: 11px;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 10px;
}

#withdrawBalance {
  color: #fbbf24; /* Honda Gold */
  font-size: 38px;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.2);
}

/* ================= 2. INPUT CARD ================= */
.input-card-ev {
  background: #0d1626;
  border: 1px solid #1c2e4a;
  border-radius: 20px;
  padding: 20px;
}

.card-header-ev {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

.min-text-ev {
  color: #536077;
  font-size: 11px;
  margin: 15px 0 10px;
}

.withdraw-input-box-ev {
  background: #070e1b;
  border: 1px solid #1c2e4a;
  border-radius: 12px;
  padding: 15px;
  display: flex;
  align-items: center;
}

.currency-neon {
  color: #00d4ff;
  font-weight: bold;
  margin-right: 12px;
  font-size: 18px;
}

#withdrawAmountInput {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  width: 100%;
  font-size: 16px;
}

.max-btn-link {
  color: #00d4ff;
  font-size: 12px;
  text-align: right;
  margin-top: 12px;
  cursor: pointer;
}

/* ================= 3. BANK GRID ================= */
.bank-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.bank-sub-card {
  background: #0d1626;
  border: 1px solid #1c2e4a;
  border-radius: 15px;
  padding: 15px;
}

.sub-card-label {
  color: #536077;
  font-size: 10px;
  margin-bottom: 8px;
}

.sub-card-value {
  color: #ffffff;
  font-size: 13px;
  font-weight: bold;
  line-height: 1.4;
}

/* ================= 4. MAIN BUTTON ================= */
#withdrawSubmitBtn {
  background: var(--primary-gradient);
  color: #ffffff;
  width: 100%;
  padding: 18px;
  border-radius: 35px;
  border: none;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  box-shadow: 0 4px 15px var(--accent-glow);
  cursor: pointer;
}

/* ================= 5. RULES CARD ================= */
.rules-card-ev {
  background: #0d1626;
  border: 1px solid #1c2e4a;
  border-radius: 20px;
  padding: 20px;
}

.rules-title-ev {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 20px;
  color: #ffffff;
}

.rule-item-ev {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
  font-size: 13px;
  color: #8a94a6;
  line-height: 1.5;
}

.rule-num {
  background: #00d4ff;
  color: #000000;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
  flex-shrink: 0;
}

.warning-text {
  color: #fbbf24;
  font-weight: 600;
}

.add-bank-btn {
  background: var(--primary-gradient);
  color: #ffffff;
  border: none;
  padding: 12px;
  width: 100%;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 10px var(--accent-glow);
}
/* ================= 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;
}

/* ================= BANK EMPTY STATE (Honda EV Style) ================= */
.bank-empty {
  background: #0d1626; /* Matches the inner card color */
  border: 2px dashed #1c2e4a; /* Dashed border to show it's an "empty slot" */
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
}

.bank-icon {
  font-size: 40px;
  margin-bottom: 5px;
  filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.3)); /* Slight neon glow */
}

.bank-empty h4 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.bank-empty p {
  color: #536077; /* Muted grey-blue text */
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
  max-width: 80%;
}

#addAccountBtn {
  margin-top: 10px;
  background: var(--primary-gradient);
  color: #ffffff;
  border: none;
  padding: 12px 25px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--accent-glow);
  transition: transform 0.2s ease;
}

#addAccountBtn:active {
  transform: scale(0.95);
  opacity: 0.9;
}

/* ===============================================
   RECORDS PAGE SPACING
   =============================================== */
.records-page {
  padding-top: 0px;
}

/* Specific Purple color for the Registration Bonus Icon */
.icon-bonus {
  background: rgba(168, 85, 247, 0.1);
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.2);
}

/* ================= CLEAN FIXED HEADER ================= */
.records-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: #0d1117; /* Clean white background */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  border-bottom: 1px solid #0d1117;
  font-family: "Poppins", sans-serif;
}

/* Header title */
.records-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff; /* Dark Navy for high contrast */
  letter-spacing: 0.5px;
}

/* ================= CIRCULAR BACK BUTTON ================= */
.records-back-btn {
  position: absolute;
  left: 15px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #0d1117; /* Subtle border like the image */
  background: #0d1117;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); /* Soft shadow for depth */
  transition: transform 0.1s ease;
  outline: none;
  font-size: 16px;
}

.records-back-btn:active {
  transform: scale(0.95);
  background: #f9f9f9;
}

#recordsContainer {
  padding: 10px 0;
}

#recordsContainer {
  padding: 15px;
  background-color: #0d1117; /* Dark background like the screenshot */
  min-height: 100vh;
}

/* ================= RECORD CARD ================= */
.record-card {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 18px;
  background: #161b22; /* Card background color */
  border-radius: 12px; /* Rounded corners for the card */
  margin-bottom: 12px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ================= ICON SECTION ================= */
.record-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 50%; /* Circular icons as seen in screenshot */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  margin-right: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Colors based on screenshot */
.icon-withdrawal,
.icon-minus {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ================= CONTENT SECTION ================= */
.record-middle {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.record-transaction {
  font-weight: 600;
  font-size: 15px;
  color: #ffffff;
  margin-bottom: 4px;
}

.record-time {
  font-size: 12px;
  color: #8b949e; /* Muted gray */
}

.record-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.record-amount {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
}

/* Withdrawal Red/Pink Color from image */
.amount-minus {
  color: #f85149;
}
.amount-plus {
  color: #3fb950;
}

/* ================= STATUS PILL ================= */
.record-status {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.05); /* Dark pill bg */
}

/* Status: Confirmed / Success */
.status-success {
  color: #3fb950;
  background: rgba(63, 185, 80, 0.1);
}

.status-success::before {
  content: "";
  width: 6px;
  height: 6px;
  background-color: #3fb950;
  border-radius: 50%;
  display: inline-block;
}

/* Status: Pending */
.status-pending {
  color: #d29922;
  background: rgba(210, 153, 34, 0.1);
}

/* Status: Failed */
.status-failed {
  color: #f85149;
  background: rgba(248, 81, 73, 0.1);
}

/* ================= FILTER (DARK THEME) ================= */
.records-filter {
  display: flex;
  gap: 25px; /* Slightly wider gap for a cleaner look */
  padding: 15px 10px;
  overflow-x: auto;
  justify-content: center;
  background-color: #0d1117; /* Matches the dark background */
  border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Subtle dark border */
}

.filter-btn {
  border: none;
  padding: 8px 0;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  color: #8b949e; /* Muted gray for inactive text */
  white-space: nowrap;
  transition: all 0.2s ease;
  position: relative;
  outline: none;
}

/* Active Text State - Bright Blue and Bold */
.filter-btn.active {
  color: var(--accent-cyan);
  font-weight: 700;
}

/* Bottom line for active text */
.filter-btn.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-cyan);
  border-radius: 10px 10px 0 0; /* Slightly rounded top for the line */
}

.filter-btn:active {
  transform: scale(0.95);
  opacity: 0.8;
}

/* Hide scrollbar for cleaner look while keeping functionality */
.records-filter::-webkit-scrollbar {
  display: none;
}
.records-filter {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

/* ================= RESPONSIVE ================= */
@media (max-width: 480px) {
  .record-card {
    padding: 14px;
    min-height: 90px;
  }
  .record-transaction {
    font-size: 16px;
  }
}

/* ================= MODAL OVERLAY ================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

/* ================= MODAL CARD ================= */
.modal-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 24px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}

/* ================= HEADER ================= */
.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.sheet-title {
  font-size: 22px;
  font-weight: 700;
  color: #000000;
}

.close-sheet {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
}

/* ================= INNER CARD ================= */
.slim-card {
  background: #f7f7f7;
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 25px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* ================= PRODUCT ROW ================= */
.product-main-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.check-icon-container {
  width: 48px;
  height: 48px;
  background: #2d6bef;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.check-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: white;
  color: #000000;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ================= PRODUCT DETAILS ================= */
.product-details strong {
  font-size: 17px;
  font-weight: 700;
  display: block;
  color: #111;
}

.product-details p {
  font-size: 14px;
  color: #444;
  margin-top: 3px;
}

/* ================= DIVIDER ================= */
.divider-line {
  height: 1px;
  background: #e5e5e5;
  margin: 14px 0;
}

/* ================= BALANCE ================= */
.account-balance-row {
  font-size: 14px;
  color: #333;
  font-weight: 600;
}

/* ================= PURCHASE BUTTON ================= */
.purchase-btn {
  background: #2d6bef;
  color: white;
  border: none;
  border-radius: 40px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: block;
  margin: auto;
  box-shadow: 0 6px 15px rgba(47, 72, 236, 0.4);
  transition: transform 0.15s ease;
}

.purchase-btn:active {
  transform: scale(0.95);
}

/* ================= MOBILE ================= */
@media (max-width: 480px) {
  .modal-card {
    padding: 20px;
  }

  .sheet-title {
    font-size: 20px;
  }

  .product-details strong {
    font-size: 16px;
  }

  .product-details p,
  .account-balance-row {
    font-size: 13px;
  }

  .purchase-btn {
    font-size: 14px;
    padding: 10px 22px;
  }
}

/* ================= PAGE WRAPPER ================= */
.investment-page {
  background: #050b18; /* Deep dark background */
  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: #050b18;
  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: #050b18;
  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;
}

/* Section Title styling sitting flat on your dark canvas background */
.product-section-title {
  font-family: "Inter", sans-serif;
  font-size: 20px; /* Compact, crisp, and clean—no giant text weights */
  font-weight: 700;
  color: var(--text-main); /* Sharp white text color */
  letter-spacing: -0.02em;
  margin-bottom: 20px; /* Spacing above your dynamic list cards */
  padding-left: 16px; /* Perfectly aligned with your mobile/desktop stream padding */
  text-align: left; /* Left-aligned exactly like the image */
}

/* Optional desktop adjustment to prevent it shifting out of bounds */
@media (min-width: 576px) {
  .product-section-title {
    max-width: 440px;
    margin: 0 auto 24px auto; /* Centers flawlessly with the list on desktop */
    padding-left: 16px;
  }
}

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

/* Integration of your exact palette */
/* unified root properties applied */

/* Container adjustment for single stream layout across mobile/desktop */
#dynamicProductList {
  display: flex !important;
  flex-direction: column !important;
  gap: 24px !important;
  padding: 16px !important;
  padding-bottom: 100px !important;
  background: var(
    --bg-main
  ) !important; /* Managed by your primary background */
  width: 100%;
  max-width: 400px; /* Aligns with login/signup and dashboard flow specifications */
  margin: 0 auto;
  box-sizing: border-box;
}

/* THE UPGRADED CARD COMPONENT */

.mx-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  padding: 4px;
}

.mx-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: linear-gradient(160deg, #0f2818 0%, #081810 60%, #050d09 100%);
  border: 1px solid rgba(0,255,163,0.15);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.02) inset;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.25s ease;
}

.mx-product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,255,163,0.3);
}

.mx-product-card:active {
  transform: scale(0.97);
}

/* Image slot - unique per card */
.mx-card-image {
  position: relative;
  width: 100%;
  height: 150px;
  background-size: cover;
  background-position: center;
  background-color: #0a1a11;
}

.mx-hot-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #00FFA3;
  color: #04140E;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(0,255,163,0.5);
}

.mx-card-body {
  padding: 16px 16px 18px;
}

.mx-plastered-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.brand-logo-badge.mini {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(0,255,163,0.35);
  flex-shrink: 0;
}

.brand-logo-badge.mini .brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mx-brand-text {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #7FA396;
  text-transform: uppercase;
}

.mx-plan-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: #00FFA3;
}

.mx-plan-title {
  font-size: 18px;
  font-weight: 800;
  color: #F2F5F3;
  margin: 4px 0 4px;
}

.mx-unit-price {
  font-size: 12px;
  color: #6F8B7F;
  margin: 0 0 12px;
}

.mx-unit-price s {
  color: #00FFA3;
}

.mx-stat-row {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.mx-stat-box {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(0,255,163,0.1);
  border-radius: 10px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mx-stat-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #6F8B7F;
}

.mx-stat-value {
  font-size: 12px;
  font-weight: 700;
  color: #E4E9E7;
}

.mx-data-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.mx-highlight-row {
  margin-bottom: 4px;
}

.mx-info-label {
  font-size: 12px;
  color: #6F8B7F;
  font-weight: 500;
}

.mx-info-value {
  font-size: 13px;
  color: #E4E9E7;
  font-weight: 700;
}

.mx-green-glow {
  color: #00FFA3;
  text-shadow: 0 0 12px rgba(0,255,163,0.5);
}

.mx-footer-row {
  margin-top: 10px;
}

.mx-add-to-portfolio-btn {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 999px;
  background: #00FFA3;
  color: #04140E;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,255,163,0.3);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.mx-add-to-portfolio-btn:hover {
  filter: brightness(1.08);
}

.mx-add-to-portfolio-btn:active {
  transform: scale(0.96);
}

@media (max-width: 480px) {
  .mx-products-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .mx-card-image { height: 110px; }
  .mx-plan-title { font-size: 15px; }
}

/* This targets the <a> tag wrapping your settings item */
a.settings-link-wrapper {
  text-decoration: none !important; /* Forces the underline to disappear */
  color: inherit !important; /* Forces the text to stay your app's color */
  display: block; /* Makes the whole row clickable */
  -webkit-tap-highlight-color: transparent; /* Removes the gray box on mobile tap */
}

/* Optional: Add a slight hover or active effect so the user knows it's a button */
a.settings-link-wrapper:active {
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 8px;
}

.custom-alert {
  position: fixed !important;
  top: 20px !important;
  left: 50% !important;
  transform: translate(-50%, -150%) !important;
  background: linear-gradient(90deg, rgba(8, 22, 47, 0.95), rgba(4, 16, 38, 0.98)) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  padding: 16px 32px;
  border-radius: 50px;
  border: 1px solid rgba(64, 180, 255, 0.3);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  max-width: 90%;
  width: max-content;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(64, 180, 255, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 999999;
}

.custom-alert.show {
  opacity: 1;
  transform: translate(-50%, 0) !important;
  animation: alertPop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes alertPop {
  0% {
    transform: translate(-50%, -150%);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

/* ================= WELCOME POPUP MODAL ================= */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 8, 19, 0.85);
  backdrop-filter: blur(8px);
  display: none; /* toggled to flex via JS */
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 24px;
}

.mx-unique-modal {
  background: linear-gradient(145deg, rgba(8, 22, 47, 0.95), rgba(4, 16, 38, 0.98));
  border: 1px solid rgba(64, 180, 255, 0.2);
  border-radius: 24px;
  padding: 32px 24px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  text-align: center;
  animation: modalScaleUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalScaleUp {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.mx-close-x-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s ease;
}

.mx-close-x-btn:hover {
  color: var(--accent-cyan);
}

.mx-modal-brand-token {
  margin-bottom: 20px;
}

.mx-modal-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 24px;
}

.mx-benefit-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  margin-bottom: 24px;
}

.mx-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
}

.mx-item-icon {
  width: 24px;
  height: 24px;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.mx-benefit-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.mx-benefit-text strong {
  color: var(--text-main);
}

.mx-popup-sub-notice {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.mx-button-group {
  width: 100%;
}

.mx-telegram-btn {
  background: #0088cc;
  color: #fff;
  text-decoration: none;
  padding: 16px 24px;
  border-radius: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mx-telegram-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 136, 204, 0.4);
}

.mx-tg-svg {
  width: 20px;
  height: 20px;
}

/* ================= EMPTY STATE UI (PRODUCT STYLE) ================= */
.empty-state-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 40px 20px;
  margin: 15px;
  text-align: center;

  /* Card Design: Stretch like an ATM card */
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;

  width: auto;
  max-width: 100%;
  box-sizing: border-box;
}

.empty-icon-circle {
  width: 70px; /* Slightly larger for product focus */
  height: 70px;
  background: #f8f9fa; /* Clean grey/white tint */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.empty-icon-circle i {
  font-size: 28px;
  color: #121b1e; /* Bold dark icon */
}

.empty-title {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  color: #1a1a1a;
  font-family: "Poppins", sans-serif;
}

.empty-subtitle {
  margin: 8px 0 25px 0;
  font-size: 14px;
  color: #777;
  font-weight: 400;
  line-height: 1.5;
  max-width: 280px; /* Keeps text centered and readable */
}

/* THE BUTTON - Full width button */
.browse-plans-btn {
  background: #000000;
  color: #ffffff;
  border: none;
  width: 100%;
  max-width: 300px; /* Adjusted for better card balance */
  padding: 16px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.browse-plans-btn:active {
  transform: scale(0.97);
}

/* FULLSCREEN DARK OVERLAY */
/* ===== NEW PREMIUM LOADER ===== */
#pageLoader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-gradient);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.premium-loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
}

.premium-spinner {
  width: 100px;
  height: 100px;
  border: 4px solid var(--border-line);
  border-top: 4px solid var(--accent);
  border-radius: 50%;
  animation: premiumSpin 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  position: absolute;
  top: -15px;
}

@keyframes premiumSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.premium-loader-logo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
  z-index: 2;
  background: var(--bg-surface);
}

.premium-loader-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.premium-loader-text {
  margin-top: 60px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: pulseText 1.5s ease-in-out infinite alternate;
}

@keyframes pulseText {
  0% { opacity: 0.6; text-shadow: 0 0 5px transparent; }
  100% { opacity: 1; text-shadow: 0 0 15px var(--accent-glow); }
}

/* 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: linear-gradient(135deg, #1e96c8 0%, #37aee2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 10px 25px rgba(30, 150, 200, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease,
    filter 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

/* ===== FLOATING WHATSAPP ICON ===== */
.floating-whatsapp {
  position: fixed;
  bottom: 90px; /* Above the bottom nav */
  left: 16px; /* Placed on the left to avoid overlap with Telegram on profile */
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  z-index: 1000;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  text-decoration: none;
}

.floating-whatsapp:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
  color: #ffffff;
}

.floating-whatsapp:active {
  transform: scale(0.95);
}

.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: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10001;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: auto;
  max-width: 380px;
  pointer-events: none;
}

/* Individual Toast Styling - One UI Dynamic Bar */
.modern-toast {
  pointer-events: auto;
  width: max-content;
  max-width: 100%;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: #ffffff;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1px;
  display: flex;
  align-items: center;
  gap: 10px;

  border: none;

  /* Animation - scale/fade like Dynamic Island, not slide */
  transform: scale(0.7) translateY(-10px);
  opacity: 0;
  transform-origin: top center;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.3s ease;
}

.modern-toast.show {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Icon sits in its own soft circle, One UI style */
.toast-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.08);
}

/* Status accent colors live on the icon badge, not a border */
.toast-success .toast-icon {
  background: rgba(168, 85, 247, 0.18);
  color: #c084fc;
}
.toast-error .toast-icon {
  background: rgba(255, 77, 77, 0.18);
  color: #ff6b6b;
}
.toast-warning .toast-icon {
  background: rgba(255, 193, 7, 0.18);
  color: #ffc107;
}