/* ================= 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 Northstar Midnight Sky Theme setup */
:root {
  --bg-main: #020813; /* Very deep midnight sky blue */
  --bg-canvas: #020813;
  --bg-surface: #041026; /* Slightly lighter deep blue for header bars and blocks */
  --bg-top-block: #041026;
  --bg-card: #08162f; /* Rich navy blue for cards and container panels */
  --text-main: #ffffff; /* Crisp white for readable headers */
  --text-muted: #8fa0b5; /* Soft slate grey-blue for text notes */
  
  --accent: #40b4ff; /* Vibrant sky blue from the logo star */
  --accent-cyan: #40b4ff; /* Sky blue branding accent color */
  --accent-blue-deep: #005a9c; /* Deep royal blue from logo text */
  --accent-glow: rgba(64, 180, 255, 0.15);
  
  --border-subtle: #132644; /* Clean deep blue framing lines */
  --border-line: #132644;
  --silver: #cbd5e1;
  --silver-dark: #64748b;
  --accent-muted: #005a9c;
  
  /* Gradients based on the logo */
  --primary-gradient: linear-gradient(135deg, #40b4ff 0%, #005a9c 100%);
  --button-hover-gradient: linear-gradient(135deg, #5fc3ff 0%, #0072c6 100%);
  --card-gradient: linear-gradient(180deg, #08162f 0%, #041026 100%);
  --text-gradient: linear-gradient(135deg, #ffffff 0%, #a1d6ff 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-color: var(--bg-main) !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 */
.honda-auth-container {
  display: none !important;
  width: 100%;
  max-width: 400px; /* Restricts width on desktop so it looks clean */
  padding: 40px 24px;
  flex-direction: column;
}

.honda-auth-container.active {
  display: flex !important;
}

/* REMOVED THE CONTAINER BOX COMPLETELY 
   The elements now sit directly flat on the page canvas 
*/
.fieldmark-card {
  width: 100%;
  background: rgba(8, 22, 47, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 32px 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  box-sizing: border-box;
}

/* Header & Text Sizing Architecture */
.fieldmark-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 40px;
}

.fieldmark-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

/* Rebuilt "Plastered" Brand Logo from Screenshot */
.fieldmark-logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.honda-auth-container {
  display: none;
}

.honda-auth-container.active {
  display: block;
}
.fieldmark-logo-shape {
  width: 32px;
  height: 38px;
  background-color: var(--accent-cyan);
  /* Replicating the screenshot shape geometry */
  clip-path: polygon(0% 25%, 100% 0%, 100% 75%, 50% 100%, 50% 50%, 0% 50%);
  opacity: 0.95;
}

.fieldmark-logo-text {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--text-main);
}

/* Structural Form Elements */
.fieldmark-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.fieldmark-input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fieldmark-input-group label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main); /* Labels stand out directly on the black canvas */
}

/* Clean, Flat Input Fields to Match the Screenshot Structure */
.fieldmark-field-box {
  background-color: rgba(2, 8, 19, 0.6);
  border: 1.5px solid var(--border-subtle);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
}

.fieldmark-field-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.fieldmark-field-box input {
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  color: var(--text-main);
  font-size: 16px;
  font-family: inherit;
}

.fieldmark-field-box input::placeholder {
  color: #6f6f6f;
}

.toggle-password {
  position: absolute;
  right: 16px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease;
  font-size: 16px;
}

.toggle-password:hover {
  color: var(--accent-cyan);
}

.fieldmark-btn-submit {
  width: 100%;
  background: var(--primary-gradient);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  padding: 16px;
  cursor: pointer;
  margin-top: 12px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.fieldmark-btn-submit:hover {
  background: var(--button-hover-gradient);
  transform: translateY(-1px);
}

.fieldmark-btn-submit:active {
  transform: translateY(0);
}

/* Subtle Switch Block at the very bottom */
.fieldmark-switch-action {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 32px;
  font-size: 15px;
  color: var(--text-muted);
}

.fieldmark-link-btn {
  background: transparent;
  border: none;
  color: var(--accent-cyan);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.fieldmark-link-btn:hover {
  text-decoration: underline;
}

/* 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");

/* unified root properties applied */

/* Base structural wrapper sitting natively on your purple/black background */
.main-container {
  width: 100%;
  max-width: 400px; /* Locked to standard compact mobile flow width */
  margin: 0 auto;
  padding: 16px;
  box-sizing: border-box;
  background: transparent; /* No heavy external background container boxes */
}

/* FORCE SINGLE LINE GRID ROW AS SHOWN IN SCREENSHOT */
.action-grid {
  display: grid;
  grid-template-columns: repeat(
    4,
    1fr
  ); /* Exactly 4 slots in a single clean horizontal line */
  gap: 10px; /* Seamless spacing, not too big */
  width: 100%;
}

/* THE PREMIUM STRUCTURAL FLAT BUTTON CARDS */
.action-card {
  background-color: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  aspect-ratio: 1 / 1.35;
  padding: 12px 6px;
  box-sizing: border-box;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.action-card:hover {
  border-color: var(--text-main);
  box-shadow: 0 0 12px var(--accent-glow);
  transform: translateY(-2px);
}

.action-card:active {
  transform: scale(0.95);
}

/* COMPACT VECTOR ICONS (Not too big, exactly matches sample layout) */
.action-icon {
  width: 26px;
  height: 26px;
  transition: transform 0.2s ease;
}

.action-card:hover .action-icon {
  transform: scale(1.08);
}

/* Precise Color Layouts from Screenshot Mapped to Dark Canvas */
.icon-cyan {
  color: #f5f5f5;
}
.icon-green {
  color: #f5f5f5;
}
.icon-orange {
  color: #f5f5f5;
}
.icon-purple {
  color: #f5f5f5;
}

/* 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 */
}

/* ===== FLYER CONTAINER ===== */
.flyer-container {
  width: 100%;
  background: #000000;
  margin-top: 20px;
  padding: 0 16px;
  box-sizing: border-box;
}

/* ===== STRUCTURE CARD (The "Fieldmark" Look) ===== */
.balance-flyer {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1.5px solid rgba(64, 180, 255, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  aspect-ratio: 9 / 10;
  background-color: var(--bg-card);
}

.flyer-slider {
  display: flex;
  width: 200%; /* Changed from 300% to 200% for 2 cards */
  height: 100%;
  animation: slideShow 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes slideShow {
  0%, 40% { transform: translateX(0); }           /* Card 1 visible */
  45%, 85% { transform: translateX(-50%); }       /* Card 2 visible */
  90%, 100% { transform: translateX(0); }         /* Back to Card 1 */
}

.flyer-card {
  width: 50%; /* Changed from 33.3333% to 50% for 2 cards */
  height: 100%;
  object-fit: cover;
  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 ELECTRIC THEME GROUNDED NAV ================= */
.bottom-nav {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 440px;
  background: rgba(8, 22, 47, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(64, 180, 255, 0.15);
  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(255, 255, 255, 0.05);
  padding-bottom: 0;
}

.nav-pill-container {
  width: 100%;
  max-width: 480px; /* Perfect containment profile for high-density rendering screens */
  margin: 0 auto;
  height: 64px;
  display: grid;
  grid-template-columns: repeat(
    4,
    1fr
  ); /* Balanced structural columns allocation */
  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: #64748b; /* Clean inactive silver slate tone */
  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; /* Matches layout pill profile from screen track references */
  transition:
    background-color 0.2s ease,
    color 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;
}

/* ================= THE ELECTRIC CYAN ACTIVE MATRIX ================= */
.nav-item.active {
  color: #00f0ff; /* Glowing Electric Cyan focal reference */
}

.nav-item.active .nav-icon-wrapper {
  background: transparent;
  color: #00f0ff;
}

.nav-item.active .nav-label-text {
  color: #00f0ff; /* Active label text matches indicator color */
  font-weight: 700;
}

/* 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);
}

/* ===== ANIMATED PREMIUM PROFILE CARD REDESIGN ===== */

.profile-page {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  box-sizing: border-box;
  background-color: var(--bg-main);
  overflow-x: hidden;
}

/* ===== HEADER WITH STAGGERED ANIMATION ===== */
.dashboard-top-section {
  background-color: var(--bg-top-block);
  padding: 28px 16px 24px 16px;
  border-bottom: 1px solid var(--border-line);
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Branding */
.profile-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeInLeft 0.8s ease-out 0.1s both;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-15px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.logo-geometric-shape {
  width: 22px;
  height: 26px;
  background-color: var(--accent-cyan);
  clip-path: polygon(0% 25%, 100% 0%, 100% 75%, 50% 100%, 50% 50%, 0% 50%);
  flex-shrink: 0;
  animation: rotate 6s linear infinite;
  transform-origin: center;
}

@keyframes rotate {
  0%, 100% { transform: rotateZ(0deg); }
  50% { transform: rotateZ(5deg); }
}

.logo-text {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--text-main);
  text-transform: uppercase;
}

/* User Meta - Fade in staggered */
.honda-user-meta {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.honda-user-meta h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  letter-spacing: -0.5px;
}

.honda-user-meta p {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-weight: 600;
}

/* ===== MAIN ANIMATED CARD ===== */
.honda-main-card {
  background: linear-gradient(135deg, rgba(8, 22, 47, 0.92) 0%, rgba(4, 16, 38, 0.96) 100%);
  border: 1px solid rgba(64, 180, 255, 0.12);
  border-radius: 20px;
  padding: 32px 24px;
  margin: 20px 16px;
  width: calc(100% - 32px);
  box-sizing: border-box;
  text-align: left;
  position: relative;
  overflow: hidden;
  animation: scaleInUp 0.7s ease-out 0.3s both;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

@keyframes scaleInUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Animated background shimmer */
.honda-main-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(64, 180, 255, 0.1),
    transparent
  );
  animation: shimmer 3s infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

/* Gloss overlay */
.honda-main-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 20%, rgba(64, 180, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

/* Label with fade-in */
.honda-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  animation: fadeInLabel 1s ease-out 0.5s both;
}

@keyframes fadeInLabel {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Amount row with number animation */
.honda-amount-row {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  letter-spacing: -1px;
  position: relative;
  z-index: 2;
  animation: slideInAmount 0.8s ease-out 0.6s both;
}

@keyframes slideInAmount {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Pulse effect on amount */
.honda-amount-row:hover {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    text-shadow: 0 0 0 rgba(64, 180, 255, 0.3);
  }
  50% {
    text-shadow: 0 0 20px rgba(64, 180, 255, 0.5);
  }
}

/* Status indicator with bounce */
.balance-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 8px 12px;
  background-color: rgba(64, 180, 255, 0.08);
  border-radius: 8px;
  animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.7s both;
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.status-text {
  font-size: 10px;
  color: var(--accent-cyan);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Sub-info with fade */
.amount-subtext {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 12px;
  animation: fadeInLabel 1s ease-out 0.8s both;
}

/* Quick stat pills */
.quick-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(64, 180, 255, 0.1);
}

.stat-pill {
  padding: 12px;
  background-color: rgba(64, 180, 255, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(64, 180, 255, 0.08);
  text-align: center;
  animation: fadeInUp 0.8s ease-out 0.9s both;
  transition: all 0.3s ease;
}

.stat-pill:hover {
  background-color: rgba(64, 180, 255, 0.1);
  border-color: rgba(64, 180, 255, 0.15);
  transform: translateY(-2px);
}

.stat-label {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.stat-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-top: 4px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 380px) {
  .honda-main-card {
    padding: 24px 16px;
  }

  .honda-amount-row {
    font-size: 28px;
  }

  .quick-stats {
    grid-template-columns: 1fr;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .logo-geometric-shape,
  .honda-main-card,
  .profile-brand-logo,
  .honda-user-meta,
  .honda-label,
  .honda-amount-row,
  .balance-status,
  .status-dot,
  .amount-subtext,
  .stat-pill {
    animation: none !important;
    transition: none !important;
  }
}

/* ===== 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;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end; /* Snaps perfectly to base screen track like image */
  background: rgba(0, 0, 0, 0.85); /* Deep dark overlay tint */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
}

/* ===== HIGH END SHEET CONTAINER - ELECTRIC DARK MODE ===== */
.mx-unique-modal {
  width: 100%;
  max-width: 430px;
  background: #121824; /* True premium charcoal block background */
  border-top: 2px solid #1f293d; /* Subtle divider border */
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  padding: 36px 24px 20px 24px;
  text-align: center;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  position: relative;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
  animation: slideUpContent 0.3s cubic-bezier(0.1, 0.76, 0.55, 0.94) forwards;
}

@keyframes slideUpContent {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* Absolute Corner Close Button */
.mx-close-x-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #000000; /* Embedded contrast element */
  border: 1px solid #1f293d;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8b949e;
  cursor: pointer;
}

.mx-close-x-btn svg {
  width: 14px;
  height: 14px;
}

/* ===== BRAND FLOATING INSIGNIA TOKEN ===== */
.mx-modal-brand-token {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #121824;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  margin: -72px auto 16px auto; /* Floats top center segment perfectly */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid #00f0ff; /* Electric cyan token highlight edge */
}

.mx-token-shape {
  width: 12px;
  height: 15px;
  background-color: #00f0ff; /* Clean branding token center match */
  clip-path: polygon(0% 25%, 100% 0%, 100% 75%, 50% 100%, 50% 50%, 0% 50%);
  margin-bottom: 2px;
}

.mx-token-text {
  font-size: 7px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.2px;
}

/* ===== COMPONENT HEADER FONTS ===== */
.mx-modal-title {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff; /* Sharp white header typography */
  margin: 0 0 24px 0;
  letter-spacing: -0.02em;
}

/* ===== GRID STREAM ROW ALIGNMENT ===== */
.mx-benefit-list {
  text-align: left;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mx-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

/* Icons adjusted to uniform Electric Cyan theme accents */
.mx-item-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  color: #00f0ff; /* Pure electric cyan theme alignment */
}

.mx-item-icon svg {
  width: 18px;
  height: 18px;
}

.mx-benefit-text {
  font-size: 14px;
  color: #8b949e; /* Clean readable muted silver grey */
  line-height: 1.45;
  font-weight: 500;
}

.mx-benefit-text strong {
  color: #00f0ff; /* Highlights pop up in glowing cyan text */
  font-weight: 600;
}

/* Subscript Footnotes */
.mx-popup-sub-notice {
  font-size: 12.5px;
  color: #8b949e;
  text-align: left;
  margin: 0 0 24px 0;
  padding-left: 34px;
  font-style: italic;
}

/* ===== PREMIUM INTERFACE CTA ACTION RULES ===== */
.mx-button-group {
  width: 100%;
  margin-bottom: 16px;
}

.mx-telegram-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #2f74ff; /* Flat royal blue layout profile matching main app CTA */
  color: #ffffff;
  width: 100%;
  padding: 15px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
  box-sizing: border-box;
  box-shadow: 0 4px 12px rgba(47, 116, 255, 0.3);
  transition: opacity 0.15s ease;
}

.mx-telegram-btn:active {
  opacity: 0.9;
}

.mx-tg-svg {
  width: 18px;
  height: 18px;
}

/* Muted Reminder Toggle Option button */
.mx-btn-off {
  width: auto;
  background: none;
  color: #ff4d4d; /* Distinct system accent focus action toggle */
  padding: 8px 16px;
  border: none;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: opacity 0.1s ease;
}

.mx-btn-off:active {
  opacity: 0.7;
}

#welcomePopup {
  display: none; /* Changed from none to flex for visibility during testing */
}

/* DAILY LOADER OVERLAY */
.daily-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 9999;
}

/* 3D SPINNER */
.spinner-3d {
  width: 60px;
  height: 60px;
  border: 6px solid rgba(255, 255, 255, 0.2);
  border-top: 6px solid #00c2ff;
  border-radius: 50%;
  animation: spin3d 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin3d {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.daily-loader p {
  color: white;
  font-weight: 600;
  font-size: 16px;
}

/* ===== PRODUCT PAGE ===== */
.product-page {
  width: 100%;
  padding: 20px;
  padding-bottom: 80px;
  padding-top: 65px; /* space for fixed header */
  background: #ffffff; /* white background */
  min-height: 100vh;
  color: #ffffff; /* white text */
  display: none; /* show when active */
}

/* ===== FIXED HEADER ===== */
.product-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #1e40ff; /* blue header */
  padding: 12px 0;
  z-index: 1000;
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  color: #ffffff; /* white text */
  box-shadow: 0 3px 8px rgba(30, 64, 255, 0.2); /* subtle blue shadow */
}

.product-header i {
  margin-right: 8px;
  color: #ffffff; /* white icon */
}

.premium-card {
  background: linear-gradient(145deg, #020617, #020617);
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 20px;
  color: #fff;
  border: 1px solid rgba(13, 138, 95, 0.2);
  box-shadow: 0 0 20px rgba(13, 138, 95, 0.08);
  width: 100%;
  max-width: 500px;
}

/* HEADER */
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 15px;
}

.plan-icon-box {
  background: rgba(13, 138, 95, 0.15);
  width: 45px;
  height: 45px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0d8a5f;
  font-size: 18px;
}

.title-group {
  flex: 1;
}

.plan-title {
  font-size: 12px;
  color: #6b7280;
  font-weight: 600;
}

.plan-price {
  font-size: 20px;
  margin: 2px 0 0;
}

.active-tag {
  background: rgba(0, 255, 120, 0.1);
  color: #00ff88;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: bold;
}

/* TIMER */
.timer-box {
  background: rgba(0, 255, 120, 0.05);
  border: 1px solid rgba(0, 255, 120, 0.15);
  padding: 14px;
  border-radius: 14px;
  text-align: center;
  margin-bottom: 15px;
}

.timer-label {
  font-size: 11px;
  color: #00ff88;
  letter-spacing: 1px;
}

.countdown {
  font-family: monospace;
  font-size: 22px;
  margin-top: 5px;
  color: #00ff88;
  letter-spacing: 2px;
}

/* GRID */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.02);
  padding: 10px;
  border-radius: 12px;
}

.stat-label {
  font-size: 10px;
  color: #6b7280;
}

.stat-value {
  font-size: 14px;
  font-weight: bold;
  margin-top: 3px;
}

/* DETAILS */
.details-list {
  margin-top: 12px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #6b7280;
  padding: 5px 0;
}

.detail-item span:last-child {
  color: #fff;
}

/* PROGRESS */
.progress-bar-bg {
  height: 5px;
  background: #111827;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 5px;
}

.progress-fill {
  height: 100%;
  background: #00ff88;
}

/* MOBILE FIX */
@media (max-width: 480px) {
  .premium-card {
    padding: 15px;
  }

  .plan-price {
    font-size: 18px;
  }

  .countdown {
    font-size: 18px;
  }
}

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

/* 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-product-card {
  background: linear-gradient(145deg, rgba(8, 22, 47, 0.9), rgba(4, 16, 38, 0.95)) !important;
  border: 1px solid rgba(64, 180, 255, 0.15) !important;
  border-radius: 20px !important;
  padding: 24px !important;
  display: flex !important;
  flex-direction: column !important;
  font-family: "Inter", sans-serif !important;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.05) !important;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.mx-product-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 40px rgba(64, 180, 255, 0.15), inset 0 1px 0 rgba(255,255,255,0.1) !important;
  border-color: rgba(64, 180, 255, 0.4) !important;
}

/* THE PLASTERED VECTOR BRANDING LOGO (Recreated perfectly via pure code) */
.mx-plastered-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 12px 0 32px 0; /* Space out branding directly from data grid lines */
  opacity: 0.85; /* Softened slightly so it looks seamlessly integrated/plastered */
}

.mx-brand-shape {
  width: 24px;
  height: 28px;
  background-color: var(--accent-cyan);
  /* The geometric structure from screenshot */
  clip-path: polygon(0% 25%, 100% 0%, 100% 75%, 50% 100%, 50% 50%, 0% 50%);
}

.mx-brand-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-main);
}

/* RAW DATA SHEET ROW DESIGN */
.mx-data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-line); /* Clean horizontal division precisely like screenshot */
  font-size: 15px;
}

/* Header line styles override */
.mx-main-header {
  border-bottom: none !important;
  padding-bottom: 8px;
}

.mx-plan-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

.mx-main-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-cyan); /* Styled cleanly with your premium asset color */
}

/* Info Labels & Muted Values styling */
.mx-info-label {
  color: var(--text-muted);
  font-weight: 400;
}

.mx-info-value {
  color: var(--text-main);
  font-weight: 500;
}

/* Total Gross Earnings highlighting rule */
.mx-highlight-row {
  border-bottom: none !important; /* Clears row border line before action button */
  padding-bottom: 20px;
}

.mx-green-glow {
  color: #10b981; /* High-end Fintech Emerald return indicator */
  font-weight: 600;
}

/* Action Trigger Elements */
.mx-footer-row {
  width: 100%;
  margin-top: 8px;
}

/* Premium Investment Action Button */
.mx-add-to-portfolio-btn {
  width: 100% !important;
  background: var(--primary-gradient) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 16px !important;
  border-radius: 10px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px var(--accent-glow) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.mx-add-to-portfolio-btn:hover {
  background: var(--button-hover-gradient) !important;
  box-shadow: 0 6px 20px rgba(64, 180, 255, 0.35) !important;
  transform: translateY(-1px);
}

.mx-add-to-portfolio-btn:active {
  transform: translateY(1px) !important;
}

/* Desktop Responsiveness Scaling */
@media (min-width: 576px) {
  #dynamicProductList {
    max-width: 440px;
    gap: 28px !important;
  }
}

/* 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 */
#pageLoader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000000; /* Pure black background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  font-family: "Orbitron", sans-serif; /* Recommended for techno look */
}

.cyber-container {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(
    circle,
    rgba(0, 212, 255, 0.05) 0%,
    transparent 70%
  );
}

/* Corner Frames */
.corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid #00d4ff;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}
.top-left {
  top: 0;
  left: 0;
  border-right: none;
  border-bottom: none;
  border-radius: 5px 0 0 0;
}
.top-right {
  top: 0;
  right: 0;
  border-left: none;
  border-bottom: none;
  border-radius: 0 5px 0 0;
}
.bottom-left {
  bottom: 0;
  left: 0;
  border-right: none;
  border-top: none;
  border-radius: 0 0 0 5px;
}
.bottom-right {
  bottom: 0;
  right: 0;
  border-left: none;
  border-top: none;
  border-radius: 0 0 5px 0;
}

/* Circular Neon Ring */
.neon-ring {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  border: 2px solid rgba(0, 212, 255, 0.1);
  border-radius: 50%;
}

.ring-spinner {
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-top: 3px solid #00d4ff;
  border-radius: 50%;
  animation: spin-neon 1s linear infinite;
  filter: drop-shadow(0 0 8px #00d4ff);
}

/* Text Styling */
.processing-title {
  color: #00d4ff;
  font-size: 18px;
  letter-spacing: 3px;
  text-align: center;
  margin: 10px 0;
  text-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
  animation: flicker 2s infinite;
}

.loading-subtitle {
  color: #ffffff;
  font-size: 14px;
  letter-spacing: 2px;
  text-align: center;
  opacity: 0.8;
}

/* Bottom Scanning Bar */
.scan-line-wrapper {
  width: 120px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  margin: 20px auto 0;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.scan-line {
  width: 40%;
  height: 100%;
  background: #00d4ff;
  box-shadow: 0 0 10px #00d4ff;
  position: absolute;
  animation: scan-move 1.5s ease-in-out infinite;
}

/* ANIMATIONS */
@keyframes spin-neon {
  to {
    transform: rotate(360deg);
  }
}

@keyframes scan-move {
  0% {
    left: -40%;
  }
  100% {
    left: 100%;
  }
}

@keyframes flicker {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Header Image */
.product-header-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}

/* Reviews Ticker Wrapper - fills remaining viewport height */
.reviews-ticker-wrapper {
  width: 100%;
  height: calc(100vh - 250px); /* adjust based on your header/image height */
  overflow: hidden;
  border-radius: 12px;
  background: #ffffff; /* blue background */
  padding: 10px;
  box-sizing: border-box;
}

/* Ticker container */
.reviews-ticker {
  display: flex;
  flex-direction: column;
  gap: 15px;
  animation: scrollReviews 300s linear infinite; /* very slow scroll */
}

/* Each review item */
.review-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  background: #ffffff; /* white card background */
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  min-height: 80px; /* make each review taller */
}

/* User logo / icon */
.review-item .user-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0; /* keeps image from shrinking */
}

/* Review text */
.review-item .review-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.6;
  color: #79a2e5; /* blue text */
}

/* Smooth scroll animation */
@keyframes scrollReviews {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

/* Full-width black box around dashboard image */
.dashboard-image-box-full {
  width: 100%; /* full width of parent container */
  background-color: #000000; /* black box (you can change to green) */
  padding: 15px; /* space inside box for image */
  border-radius: 16px; /* rounded corners */
  box-sizing: border-box;
  text-align: center; /* center image */
  margin: 20px 0; /* vertical spacing only, no horizontal shift */
  overflow: hidden; /* prevent any overflow */
}

/* Dashboard image inside the box */
.dashboard-image {
  max-width: 100%; /* fit inside green box */
  height: auto;
  border-radius: 12px; /* slightly rounded corners */
  display: inline-block; /* center properly */
}

/* ===== PAYMENT TYPE ===== */
.payment-type {
  margin: 15px 0;
  text-align: left;
  width: 100%;
  position: relative;
  font-family: sans-serif;
}

.payment-type label {
  display: block;
  margin-bottom: 6px;
  color: #f4b400; /* green label */
  font-weight: 600;
  font-size: 14px;
}

/* The clickable box */
.payment-box {
  width: 100%;
  background: #ffffff; /* white box */
  color: #000000; /* green text */
  border: 1px solid #c0c0c0; /* silver edge */
  border-radius: 12px;
  padding: 12px 15px;
  cursor: pointer;
  position: relative;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
}

.payment-box:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.payment-box .arrow {
  font-size: 14px;
}

/* Options list hidden by default */
.payment-options {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 48px; /* below the box */
  width: 100%;
  background: #ffffff;
  border: 1px solid #c0c0c0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: none; /* hidden initially */
  z-index: 100;
}

.payment-options li {
  padding: 10px 15px;
  cursor: pointer;
  color: #000000;
  font-weight: 500;
  transition: background 0.2s;
}

.payment-options li:hover {
  background: rgba(15, 157, 88, 0.1); /* light green hover */
}

/* Selected Amount Display */
.selected-amount {
  font-weight: bold;
  color: #000000; /* black */
  font-size: 20px;
  margin-top: 8px;
  text-align: center;
}

#paymentCountdown {
  margin-top: 14px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #ff0707; /* green */
}

#paymentStatusMessage {
  margin-top: 16px;
  padding: 14px;
  border-radius: 10px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  display: none;
}

.status-pending {
  background: #f0fff6;
  color: #d29922;
}

.status-approved {
  background: #e6fff1;
  color: #1faa59;
}

.status-declined {
  background: #ffecec;
  color: #d62828;
}

.status-timeout {
  background: #fff6e5;
  color: #c77700;
}

/* ================= PROTECTED UI ================= */
#dashboard,
#bottomNav {
  display: none;
}

/* ================= FLOATING NAV CONTROL (BLACK + GOLD) ================= */
#navToggle {
  position: fixed;
  bottom: 90px; /* sits above bottom nav */
  right: 20px;

  width: 64px;
  height: 44px;
  border-radius: 999px;

  background: rgba(0, 0, 0, 0.9); /* black semi-transparent */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  color: #d4af37; /* gold text/icon */
  font-size: 22px;

  border: 1px solid rgba(212, 175, 55, 0.35); /* subtle gold border */
  cursor: pointer;

  z-index: 2001;
  display: none; /* auth decides */

  box-shadow: 0 8px 18px rgba(212, 175, 55, 0.25); /* subtle gold shadow */
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

/* Show toggle ONLY when logged in */
body.logged-in #navToggle {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hover / press feedback */
#navToggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(212, 175, 55, 0.35); /* stronger gold glow */
}

#navToggle:active {
  transform: scale(0.95);
}

/* ================= BOTTOM NAV ================= */

/* Hidden forever by default */
#bottomNav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 2000;
}

/* Visible ONLY when toggled */
#bottomNav.open {
  transform: translateY(0);
}

/* ================= FLOATING TELEGRAM (PROFILE PAGE) ================= */
.profile-page .telegram-float-profile {
  position: fixed;
  bottom: 90px; /* above bottom nav */
  right: 16px; /* move to right */
  z-index: 9999;

  width: 56px;
  height: 56px;
  border-radius: 50%;

  background: #0088cc; /* Telegram blue */
  color: #ffffff; /* white icon/text */

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 26px;
  text-decoration: none;

  box-shadow: 0 8px 20px rgba(0, 136, 204, 0.35); /* subtle blue shadow */
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

/* Hover / tap */
.profile-page .telegram-float-profile:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 28px rgba(0, 136, 204, 0.45); /* stronger blue shadow */
}

/* Mobile safe */
@media (max-width: 480px) {
  .profile-page .telegram-float-profile {
    bottom: 100px;
    right: 12px; /* adjust right for mobile */
  }
}

/* Toast Container - Positioned to the Top Right */
#toast-container {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: auto;
  max-width: 320px;
  pointer-events: none;
}

/* Individual Toast Styling - Black & Gold Theme */
.modern-toast {
  pointer-events: auto;
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  background: #000000; /* Pure Black Background */
  color: #ffffff; /* White text for readability */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4); /* Stronger shadow for black bg */
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;

  /* Default Gold Border */
  border: 1px solid rgba(255, 215, 0, 0.2); /* Subtle gold outline */
  border-left: 5px solid #a855f7; /* Solid Gold Accent */

  /* Animation */
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.35);
}

.modern-toast.show {
  transform: translateX(0);
  opacity: 1;
}

/* Gold Accents for Icons */
.toast-icon {
  font-size: 18px;
  color: #a855f7; /* Makes every icon Gold */
}

/* High Visibility Status Borders (Optional: Keeping specific Gold/Red/Yellow hues) */
.toast-success {
  border-left-color: #a855f7;
} /* Gold for Success */
.toast-error {
  border-left-color: #ff4d4d;
} /* Keeping Red for Errors for safety */
.toast-warning {
  border-left-color: #a855f7;
} /* Amber Gold for Warnings */
