/* ================= GENERAL RESET ================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
    --bg-black: #F5F5F7;
    --primary-purple: #7C3AED;
    --text-white: #1A1A2E;
    --text-dim: #6B7280;
    --input-bg: #FFFFFF;
    --border-dark: #E5E7EB;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-black);
    font-family: 'Poppins', sans-serif;
    color: var(--text-white);
}

/* Hide all containers by default */
.container {
    display: none; 
}

/* Only show the one that has the active class */
.container.active {
    display: block !important;
}

.auth-wrapper {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

/* Top Banner */
.top-header-image {
    height: 320px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.header-overlay {
    width: 50%;
    padding:10px 20px;
    text-align: left;
    z-index: 5;border-radius: 15px;
    backdrop-filter: blur(8px) brightness(1.2) contrast(90%);
    border: 1px solid rgba(255,255,255,0.4);
        background: 1px solid rgba(255,255,255,0.2);

}

.main-title {
    font-size: 38px;
    font-weight: 800;
    margin: 0;
    color: #ffffff;
}

.sub-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

/* Tab Styles */
.tab-container {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
    padding-left: 5px;
}

.tab-item {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dim);
    cursor: pointer;
    position: relative;
    padding-bottom: 8px;
}

.tab-item.active {
    color: var(--text-white);
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background-color: var(--primary-purple);
    border-radius: 2px;
}

/* Form Body Styling */
.form-body {
    background-color: #FFFFFF;
    padding: 25px 20px;
    margin-top: -30px;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    position: relative;
    z-index: 10;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}

.container { display: none; flex-direction: column; }
.container.active { display: flex; }

.input-group { margin-bottom: 15px; }

.input-label {
    display: block;
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 8px;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    background-color: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 15px;
    padding: 16px 20px;
    color: #1A1A2E;
    font-size: 15px;
    outline: none;
}

input:focus {
    border-color: var(--primary-purple);
}

/* Button */
.btn-purple {
    width: 100%;
    padding: 16px;
    background-color: var(--primary-purple);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-purple:active { transform: scale(0.98); }

.tab-item {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dim);
    cursor: pointer;
    position: relative;
    padding-bottom: 8px;
    transition: color 0.3s ease;
}

.tab-item.active {
    color: var(--text-white);
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25px;
    height: 3px;
    background-color: var(--primary-purple);
    border-radius: 2px;
}

/* Password eye toggle */
.password-wrapper {
    position: relative;
    width: 100%;
}

.toggle-password.noticed-monkey {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-style: normal;
    font-size: 18px;
    z-index: 5;
}

.password-wrapper input {
    padding-right: 45px !important;
}

/* Dashboard container */
.dashboard {
  width: 100%;
  max-width: 400px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  margin: 0;
  box-sizing: border-box;
  background-color: #F0F2F5;
  background: radial-gradient(circle at bottom right, #EDE9FE 0%, #F0F2F5 100%);
  background-attachment: fixed;
  color: #1A1A2E;
}


/* ================= DASHBOARD HEADER ================= */
.dashboard-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  height: 60px;
  background: #FFFFFF;
  background-image: linear-gradient(to right, rgba(124, 58, 237, 0.04) 1px, transparent 1px);
  background-size: 20px 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 10000;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(124, 58, 237, 0.12);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

/* Brand Title Left */
.brand-title-header {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2px;
  margin: 0;
}

.text-white {
  color: #1A1A2E;
  text-shadow: none;
}

.text-purple {
  color: #7C3AED;
  text-shadow: 0 0 10px rgba(124, 58, 237, 0.2);
}

/* Action Circle */
.header-action-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(124, 58, 237, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7C3AED;
  background: rgba(124, 58, 237, 0.06);
  box-shadow: inset 0 0 8px rgba(124, 58, 237, 0.08);
  font-size: 16px;
  cursor: pointer;
}

.header-action-circle:active {
  transform: scale(0.9);
  background: rgba(124, 58, 237, 0.12);
}

.welcome-text {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  color: #1A1A2E;
  font-family: 'Poppins', sans-serif;
}

.user-phone {
  margin: 2px 0 0 0;
  font-size: 15px;
  color: #6B7280;
  font-weight: 400;
  letter-spacing: 0.5px;
}

body {padding-top: 54px;}


.main-container {
  background: #F0F2F5;
  padding: 10px 15px;
  max-width: 500px;
  width: 100%;
  margin: 10px auto;
  box-sizing: border-box;
}

.quick-actions-title {
  color: #1A1A2E;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 15px;
  opacity: 0.8;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* SQUIRCLE ICON */
.action-icon {
  width: 52px;
  height: 52px;
  background: #FFFFFF;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  font-size: 18px;
  color: #7C3AED;
  border: 1px solid rgba(124, 58, 237, 0.12);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: all 0.2s ease;
}

.purple-glow i {
  filter: drop-shadow(0 0 3px rgba(124, 58, 237, 0.3));
}

.action-btn span {
  font-size: 11px;
  font-weight: 500;
  color: #374151;
  text-align: center;
  opacity: 0.9;
}

.action-btn:active .action-icon {
  transform: scale(0.92);
  background: #EDE9FE;
  border-color: #7C3AED;
}

/* FEATURES SECTION */
.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;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
}

.features-scroll-container {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none;
}

.features-scroll-container::-webkit-scrollbar {
  display: none;
}

.feature-card {
  flex: 1 1 calc(33.33% - 10px);
  max-width: calc(33.33% - 10px);
  background: #ffffff;
  border-radius: 15px;
  padding: 15px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #E9EBF0;
  box-sizing: border-box;
  margin: 5px;
}

.feature-title {
  font-size: 18px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 2px;
  text-align: center;
}

.highlight-text {
  color: #2D6BEF !important;
}

.feature-subtitle {
  font-size: 11px;
  font-weight: 600;
  color: #99a1b7;
  text-align: center;
  white-space: nowrap;
}

.flyer-container {
  width: 100%;
  background-color: #F0F2F5;
  padding: 10px 0;
}

.balance-flyer {
  width: 92vw;
  margin: 0 auto;
  height: 180px;
  overflow: hidden;
  position: relative;
  border-radius: 20px;
  border: 1.5px solid rgba(124, 58, 237, 0.25);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.1);
}

.flyer-slider {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.flyer-card {
  width: 100.333%;
  height: 100%;
  object-fit: cover;
}

.flyer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,0.3) 100%);
  pointer-events: none;
}

/* Products Header */
.products-header {
  margin-bottom: 12px;
  text-align: left;
}

.products-header h2 {
  display: inline-block;
  padding: 6px 16px;
  font-size: 18px;
  font-weight: bold;
  color: #D4AF37;
  background: #d01e1e;
  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.15);
}


.welcome-card {
  background-color: #1E3A8A;
  color: white;
  border-radius: 12px;
  padding: 30px;
  margin: 0;
  width: 100%;
  box-shadow: 0 4px 16px rgba(30,58,138,0.2);
}

.welcome-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.welcome-text {
  font-size: 16px;
  font-weight: 300;
  margin: 0;
}

.user-number {
  font-size: 20px;
  font-weight: 700;
  margin: 4px 0 0 0;
  letter-spacing: 1px;
}


.record-id {
  font-weight: 700;
  font-family: 'Courier New', Courier, monospace;
  color: #374151;
  background: #F3F4F6;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.5px;
  user-select: all;
}


/* DASHBOARD WRAPPER */
.dashboard-wrapper {
  background-color: #F0F2F5;
  min-height: 100vh;
  padding: 15px;
  font-family: 'Poppins', sans-serif;
  color: #1A1A2E;
}

/* PROFILE HEADER */
.profile-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 5px;
}

.avatar-circle.purple-border {
  width: 50px;
  height: 50px;
  background: #EDE9FE;
  border: 1.5px solid #7C3AED;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 18px;
  color: #7C3AED;
}

.online-indicator {
  width: 10px;
  height: 10px;
  background: #22c55e;
  border: 2px solid #fff;
  border-radius: 50%;
  position: absolute;
  bottom: 1px;
  right: 1px;
}

.profile-info h2 {
  font-size: 16px;
  margin: 0;
  font-weight: 700;
  color: #1A1A2E;
}

.profile-info p {
  font-size: 11px;
  color: #9CA3AF;
  margin: 0;
}

/* BALANCE CARD */
.balance-card.purple-gradient {
  background: linear-gradient(135deg, #FFFFFF 0%, #F5F3FF 50%, #EDE9FE 100%);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 24px;
  padding: 20px;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.1);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.balance-card .label {
  font-size: 11px;
  color: #9CA3AF;
  letter-spacing: 0.5px;
  margin: 0;
}

.card-id-small {
  font-size: 10px;
  color: #D1D5DB;
}

.balance-card .amount-display {
  font-size: 34px;
  font-weight: 800;
  color: #1A1A2E;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

/* PRIMARY ACTIONS */
.primary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.action-btn-pill {
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.2s;
}

.purple-bg {
  background: #7C3AED;
  color: #ffffff;
}

.charcoal-bg {
  background: #F3F4F6;
  color: #374151;
  border: 1px solid #E5E7EB;
}

.action-btn-pill:active {
  transform: scale(0.96);
}

/* SETTINGS CONTAINER */
.settings-container.purple-black-gradient {
  background: linear-gradient(180deg, #FFFFFF 0%, #F9FAFB 100%);
  border-radius: 30px;
  padding: 10px 5px;
  border: 1px solid #E9EBF0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  margin-top: 20px;
}

.settings-section {
  margin-bottom: 25px;
}

.section-title {
  font-size: 11px;
  font-weight: 700;
  color: #9CA3AF;
  margin-bottom: 12px;
  padding-left: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.list-wrapper {
  background: rgba(0, 0, 0, 0.015);
  border-radius: 20px;
  overflow: hidden;
  margin: 0 10px;
}

.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: background 0.2s;
}

.list-item:last-child {
  border-bottom: none;
}

.list-item:active {
  background: rgba(124, 58, 237, 0.04);
}

.list-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* ICONS */
.list-icon-bg {
  width: 32px;
  height: 32px;
  background: rgba(124, 58, 237, 0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #7C3AED;
}

.list-item span {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

.arrow-icon {
  font-size: 12px;
  color: #D1D5DB;
}

/* Logout */
.logout-bg {
  background: rgba(255, 77, 77, 0.08);
  color: #ff4d4d;
}

.logout-text {
  color: #ff4d4d !important;
}

/* ================= BOTTOM NAV ================= */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #FFFFFF;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 12px 0 10px 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  border-top: 1px solid #F0F0F0;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  flex: 1;
  gap: 4px;
  transition: all 0.2s ease-in-out;
}

.nav-icon-wrapper {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-item i {
  font-size: 20px;
  color: #9CA3AF;
  opacity: 1;
  transition: all 0.3s ease;
}

.nav-item span {
  font-size: 12px;
  font-weight: 500;
  color: #9CA3AF;
  opacity: 1;
  font-family: 'Poppins', sans-serif;
}

.nav-item.active i {
  color: #7C3AED;
  opacity: 1;
  filter: none;
}

.nav-item.active span {
  color: #7C3AED;
  opacity: 1;
  font-weight: 600;
}

.nav-item:active {
  transform: scale(0.92);
}


/* ===== PROFILE FIXED HEADER ===== */
.profile-header-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #FFFFFF;
  padding: 10px 0;
  text-align: center;
  font-size: 12px;
  color: #374151;
  font-weight: bold;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.profile-content {
  padding-top: 30px;
}


/* ===== PROFILE PAGE ===== */
.profile-page {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  display: none;
  padding: 0 10px 80px 10px;
  height: calc(100vh - 0px);
  overflow-y: auto;
  box-sizing: border-box;
  background: #F0F2F5;
  color: #1A1A2E;
}

.profile-title {
  margin: 15px 0;
  font-size: 18px;
  font-weight: bold;
  color: #7C3AED;
  text-align: center;
}


.brand-title-header {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -1px;
  text-align: center;
  margin: 20px 0;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
}

.text-black {
  color: #1A1A2E;
}

.text-gold {
  color: #D97706;
  text-shadow: 0 0 10px rgba(217, 119, 6, 0.3);
}


:root {
    --samsung-black: #F0F2F5;
    --samsung-purple: #7C3AED;
    --samsung-cyan: #0EA5E9;
    --card-bg: rgba(255, 255, 255, 0.9);
}

.bank-page-container {
    background: var(--samsung-black);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    padding-bottom: 50px;
}

/* BACKGROUND GRID */
.grid-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image:
        linear-gradient(rgba(14, 165, 233, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.04) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: 0;
}

.bank-header-premium {
    padding: 60px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 1;
    position: relative;
}

.header-main-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-icon-glow {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, var(--samsung-cyan), var(--samsung-purple));
    border-radius: 15px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: white;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.25);
}

.header-title-group h2 { color: #1A1A2E; margin: 0; font-size: 22px; }
.header-title-group p { color: #6B7280; margin: 5px 0 0; font-size: 13px; }

/* INPUT CARD */
.input-card-premium {
    background: var(--card-bg);
    border: 1px solid rgba(14, 165, 233, 0.15);
    border-radius: 25px;
    padding: 30px 20px;
    margin: 10px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.samsung-label {
    color: #374151;
    font-size: 12px;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    opacity: 0.8;
}

.funds-field {
    background: #F9FAFB !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 12px !important;
    height: 55px !important;
    color: #1A1A2E !important;
    padding: 0 15px !important;
    width: 100%;
}

.funds-field:focus {
    border-color: var(--samsung-cyan) !important;
    box-shadow: 0 0 8px rgba(14, 165, 233, 0.15);
}

/* THE BUTTON */
.funds-action-btn {
    background: linear-gradient(90deg, var(--samsung-cyan), var(--samsung-purple)) !important;
    border: none !important;
    height: 60px !important;
    border-radius: 18px !important;
    color: white !important;
    font-weight: 800 !important;
    font-size: 15px !important;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.3) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.bank-back-btn {
    width: 45px; height: 45px;
    background: rgba(14, 165, 233, 0.06);
    border: 1px solid rgba(14, 165, 233, 0.25);
    border-radius: 12px;
    color: var(--samsung-cyan);
    font-size: 18px;
}

/* ===== METHOD SELECTION ===== */
.method-card {
  background: #FFFFFF;
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.method-card.active-method {
  border-color: #7C3AED;
  background: rgba(124, 58, 237, 0.04);
}

.method-icon {
  width: 50px;
  height: 50px;
  background: #7C3AED;
  color: #FFFFFF;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-right: 15px;
}

.method-icon.manual {
  background: #7C3AED;
}

.method-info h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #1A1A2E;
}

.method-info p {
  margin: 4px 0 0;
  font-size: 12px;
  opacity: 0.6;
  color: #374151;
}

.method-check {
  margin-left: auto;
  font-size: 18px;
  color: #7C3AED;
}

.payment-method-page {
  font-family: 'Inter', sans-serif;
  background-color: #F0F2F5;
  height: 100vh;
  width: 100vw;
  color: #1A1A2E;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2000;
}

/* Manual Details Page */
#manualDetailsPage {
  background-color: #F0F2F5;
  color: #1A1A2E;
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  overflow-y: auto;
  display: block;
}

.recharge-header-fixed {
  display: flex;
  align-items: center;
  padding: 20px;
  background: transparent;
}

.recharge-header-fixed h2 {
  flex-grow: 1;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1A1A2E;
}

.recharge-page-container {
  padding: 0 20px 100px 20px;
  text-align: center;
  height: auto;
}

.section-label, .bank-info-row span, label {
  color: #6B7280;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: block;
}

.bank-info-row strong {
  font-size: 1.4rem;
  display: block;
  margin-bottom: 25px;
  color: #1A1A2E;
}

.recharge-card {
  background: #FFFFFF;
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid #E9EBF0;
}

input {
  width: 100%;
  background: #F9FAFB;
  border: 1.2px solid #E5E7EB;
  padding: 10px 14px;
  border-radius: 8px;
  color: #1A1A2E;
  font-size: 0.9rem;
  margin-top: 5px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
  outline: none;
}

input:focus {
  background: #FFFFFF;
  border-color: #7C3AED;
  box-shadow: 0 0 8px rgba(124, 58, 237, 0.12);
}

input::placeholder {
  color: #9CA3AF;
  font-size: 0.85rem;
}

.deposit-btn {
  background-color: #7C3AED;
  color: white;
  border: none;
  width: 100%;
  padding: 18px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: bold;
  text-transform: uppercase;
  margin: 30px 0;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.25);
}

.copy-btn-v2 {
  background: #F3F4F6;
  color: #7C3AED;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  float: right;
  margin-top: -50px;
}


.recharge-page {
  font-family: 'Inter', sans-serif;
  background-color: #F0F2F5;
  min-height: 100vh;
  width: 100%;
  color: #1A1A2E;
  margin: 0;
  overflow-y: auto;
  position: relative;
  box-sizing: border-box;
  overflow-x: hidden;
}

.recharge-page-container {
  padding: 70px 15px 100px 15px;
  width: 100%;
  box-sizing: border-box;
  background: #F0F2F5;
  min-height: 100vh;
}

.recharge-header-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.recharge-header-fixed h2 {
  font-size: 18px;
  font-weight: 600;
  color: #1A1A2E;
  margin: 0;
}

.recharge-back-btn-v2 {
  position: absolute;
  left: 15px;
  background: transparent;
  border: none;
  color: #7C3AED;
  font-size: 20px;
  cursor: pointer;
}


.recharge-card {
  background: transparent;
  padding: 10px 5px;
  margin-bottom: 25px;
}

.section-label {
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  color: #6B7280;
}

.section-label.centered {
  margin-top: 30px;
  font-size: 12px;
  text-transform: uppercase;
  color: #9CA3AF;
}

/* AMOUNT GRID */
.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.amount-option {
  background: #FFFFFF;
  border: 1px solid #E9EBF0;
  padding: 15px 5px;
  border-radius: 12px;
  text-align: center;
  color: #6B7280;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.amount-option.selected {
  background: linear-gradient(135deg, #7C3AED, #5B21B6);
  color: #FFFFFF;
  border: none;
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.3);
}

/* CUSTOM INPUT */
.custom-amount-wrapper {
  background: #FFFFFF;
  border-radius: 14px;
  display: flex;
  align-items: center;
  padding: 15px 20px;
  border: 1px solid #7C3AED;
  margin-top: 10px;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.08);
}

.currency-icon {
  color: #7C3AED;
  font-size: 18px;
  font-weight: 800;
  margin-right: 12px;
}

#customAmount {
  background: transparent;
  border: none;
  color: #1A1A2E;
  font-size: 16px;
  font-weight: 600;
  outline: none;
  width: 100%;
}

#customAmount::placeholder {
  color: #D1D5DB;
}

/* DEPOSIT BUTTON */
.deposit-btn {
  width: 100%;
  background: linear-gradient(90deg, #0EA5E9, #7C3AED);
  color: #FFFFFF;
  border: none;
  padding: 18px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(124, 58, 237, 0.2);
  margin-top: 20px;
}

.deposit-btn:active {
  transform: scale(0.96);
  opacity: 0.9;
}

/* BALANCE SECTION */
.balance-section {
  text-align: center;
  padding: 30px 0;
}
.balance-amount {
  font-size: 32px;
  font-weight: 800;
  color: #7C3AED;
}
.balance-limits {
  font-size: 12px;
  color: #9CA3AF;
  margin-top: 5px;
}

/* CHANNEL CARDS */
.section-label-small {
  font-size: 11px;
  color: #9CA3AF;
  margin: 25px 0 10px 5px;
  font-weight: 600;
}
.channel-card {
  background: #FFFFFF;
  border: 1px solid #E9EBF0;
  border-radius: 16px;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.channel-card.active {
  border: 1.5px solid #7C3AED;
}
.channel-left { display: flex; align-items: center; gap: 15px; }
.channel-icon {
  background: #F3F4F6;
  width: 35px;
  height: 35px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.channel-check { color: #7C3AED; font-size: 18px; }

/* RULES BOX */
.rules-box {
  background: #F9FAFB;
  border-radius: 15px;
  padding: 20px;
  margin-top: 25px;
  border: 1px solid #E9EBF0;
}
.rules-title { color: #9CA3AF; font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.rules-box ul { padding: 0; list-style: none; }
.rules-box li { color: #9CA3AF; font-size: 11px; margin-bottom: 6px; line-height: 1.4; }

/* FOOTER BUTTON */
.footer-btn-wrapper {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  background: #FFFFFF;
  box-sizing: border-box;
  border-top: 1px solid #F0F0F0;
}
.deposit-btn {
  width: 100%;
  background: linear-gradient(90deg, #0EA5E9, #7C3AED);
  color: #FFFFFF;
  border: none;
  padding: 16px;
  border-radius: 35px;
  font-size: 16px;
  font-weight: 800;
}

.fintech-toast {
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  font-family: Inter, sans-serif;
}


/* OVERLAY */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  z-index: 99999;
}

/* MODAL */
.mx-unique-modal {
  width: 90%;
  max-width: 360px;
  background: #FFFFFF;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid #E9EBF0;
}

.modal-top-section {
  background: linear-gradient(135deg, #7C3AED, #5B21B6);
  padding: 45px 20px 55px 20px;
  text-align: center;
  position: relative;
}

.modal-close-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 20px;
  cursor: pointer;
}

.modal-logo-circle {
  width: 75px;
  height: 75px;
  background: #FFFFFF;
  border-radius: 50%;
  margin: 0 auto 15px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.modal-logo-circle img {
  width: 75%;
  object-fit: contain;
}

.mx-modal-title {
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  margin: 0;
}

.mx-modal-subtitle {
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  margin-top: 8px;
}

.modal-body-content {
  padding: 25px 20px;
  margin-top: -30px;
  background: #FFFFFF;
}

.modal-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.feature-box {
  background: #F9FAFB;
  border: 1px solid #E9EBF0;
  padding: 18px 10px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-box i { font-size: 22px; margin-bottom: 8px; }
.feature-title { color: #1A1A2E; font-size: 12px; font-weight: 700; }
.feature-sub { color: #9CA3AF; font-size: 10px; margin-top: 4px; }

.modal-info-bar {
  background: #F9FAFB;
  border: 1px solid #E9EBF0;
  border-radius: 18px;
  padding: 15px;
  margin-bottom: 20px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #6B7280;
}

.purple-text { color: #7C3AED !important; }
.white-text { color: #1A1A2E !important; font-weight: 700; }

.mx-telegram-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #0088cc;
  color: #fff;
  padding: 15px;
  border-radius: 15px;
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
}

.modal-footer-text {
  font-size: 11px;
  color: #9CA3AF;
  margin-top: 15px;
  text-align: center;
}

#welcomePopup {
  display: none;
}

/* DAILY LOADER */
.daily-loader{
  position:fixed;
  top:0; left:0;
  width:100%; height:100%;
  background:rgba(255,255,255,0.75);
  display:none;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  z-index:9999;
}

.spinner-3d{
  width:60px; height:60px;
  border:6px solid rgba(124,58,237,0.15);
  border-top:6px solid #7C3AED;
  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:#374151;
  font-weight:600;
  font-size:16px;
}


/* ===== PRODUCT PAGE ===== */
.product-page {
  width: 100%;
  padding: 20px;
  padding-bottom: 80px;
  padding-top: 65px;
  background: #F0F2F5;
  min-height: 100vh;
  color: #1A1A2E;
  display: none;
}

.product-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #1e40ff;
  padding: 12px 0;
  z-index: 1000;
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(30, 64, 255, 0.2);
}

.product-header i {
  margin-right: 8px;
  color: #ffffff;
}

:root {
  --bg-dark: #F0F2F5;
  --card-bg: #FFFFFF;
  --accent-purple: #7C3AED;
  --text-muted: #6B7280;
}

.premium-card {
  background: var(--card-bg);
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid rgba(124, 58, 237, 0.12);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  font-family: 'Inter', sans-serif;
  width: 100%;
  max-width: 420px;
  position: relative;
}

.s20-header-image {
  position: relative;
  height: 200px;
  background: #E9EBF0;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.badge-top-right {
  position: absolute;
  top: 15px; right: 15px;
  background: rgba(255,255,255,0.9);
  color: #0D9488;
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid #CCFBF1;
}

.countdown-badge {
  position: absolute;
  bottom: 15px; left: 15px;
  background: linear-gradient(90deg, #0EA5E9, var(--accent-purple));
  padding: 6px 15px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 800;
  color: white;
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.25);
}

.s20-content-area {
  padding: 20px;
  background: #FFFFFF;
}

.plan-title-main {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 1px;
  color: #1A1A2E;
}

.stats-grid-middle, .stats-grid-bottom {
  display: flex;
  justify-content: space-around;
  text-align: center;
  padding: 10px 0;
}

.grid-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.label { font-size: 10px; color: var(--text-muted); font-weight: 600; }
.value { font-size: 16px; font-weight: 800; color: #1A1A2E; }

.vertical-divider {
  width: 1px;
  background: rgba(0, 0, 0, 0.08);
  height: 30px;
}

.diagonal-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.06);
  margin: 10px 0;
}

.date-info-row {
  margin-top: 15px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 15px;
}

.date-item {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 8px;
}

.date-item span:first-child { color: var(--text-muted); }
.date-val { font-weight: 600; letter-spacing: 0.5px; color: #1A1A2E; }

.invite-page {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 999;
  background: #F0F2F5;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #7C3AED;
  display: none;
  flex-direction: column;
  padding-top: 60px;
}


/* ================= INVITE HEADER ================= */
.invite-header-fixed-v2 {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  background: #FFFFFF;
  color: #1A1A2E;
  z-index: 1000;
  border-bottom: 1px solid #E9EBF0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  font-family: 'Poppins', sans-serif;
}

.invite-header-fixed-v2 h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #1A1A2E;
}

/* BACK BUTTON */
.invite-back-btn-v2 {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid #E9EBF0;
  background: #F9FAFB;
  color: #7C3AED;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
  z-index: 1100;
  outline: none;
}

.invite-back-btn-v2:active {
  transform: translateY(-50%) scale(0.95);
  background: #EDE9FE;
}


:root {
  --bg-dark: #F0F2F5;
  --accent-purple: #7C3AED;
  --card-bg: #FFFFFF;
  --text-main: #1A1A2E;
}

.referral-container {
  background-color: var(--bg-dark);
  padding: 20px;
  min-height: 100vh;
  font-family: 'Poppins', sans-serif;
}

.refer-header-card {
  padding: 20px 10px;
  color: var(--text-main);
}

.refer-header-card h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1A1A2E;
}

.refer-header-card p {
  color: #9CA3AF;
  font-size: 14px;
}

/* INVITE BOX */
.premium-invite-box {
  background: linear-gradient(145deg, #7C3AED 0%, #4F46E5 100%);
  border-radius: 25px;
  padding: 30px 25px;
  margin-bottom: 30px;
  border: 1px solid rgba(124, 58, 237, 0.2);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.2);
}

.invite-section {
  width: 100%;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  margin-bottom: 15px;
}

.big-display-text {
  font-size: 32px;
  font-weight: 700;
  color: #FFFFFF;
  text-align: center;
  letter-spacing: 2px;
  margin: 10px 0;
}

.mini-copy-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  padding: 6px 15px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.divider-line {
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: 25px 0;
}

.link-input-display {
  background: transparent;
  border: none;
  width: 100%;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  outline: none;
}

/* HOW IT WORKS */
.how-it-works-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  border: 1px solid #E9EBF0;
}

.how-header {
  color: var(--accent-purple);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.step-number {
  border: 1px solid var(--accent-purple);
  color: var(--accent-purple);
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.step-content h4 { color: #1A1A2E; margin: 0; font-size: 14px; }
.step-content p { color: #9CA3AF; font-size: 12px; margin-top: 4px; }

/* ================= TEAM HEADER ================= */
.team-header-main {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  background: #FFFFFF;
  color: #1A1A2E;
  z-index: 1000;
  border-bottom: 1px solid #E9EBF0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 18px;
}

.team-header-main span {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #1A1A2E;
}

.back-btn-white {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid #E9EBF0;
  background: #F9FAFB;
  color: #7C3AED;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: all 0.2s ease;
  outline: none;
  z-index: 1100;
}

.back-btn-white:active {
  transform: translateY(-50%) scale(0.92);
  background: #EDE9FE;
}

:root {
  --bg-dark: #F0F2F5;
  --accent-purple: #7C3AED;
  --card-bg: #FFFFFF;
  --text-muted: #6B7280;
}

.team-page-wrapper {
  display: flex;
  background: var(--bg-dark);
  min-height: 100vh;
  padding: 20px 10px;
  font-family: 'Inter', sans-serif;
}

/* SIDEBAR */
.stats-sidebar {
  width: 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-right: 1px solid #E9EBF0;
  padding-right: 10px;
}

.mini-stat-box {
  text-align: center;
  background: #FFFFFF;
  padding: 15px 5px;
  border-radius: 12px;
  border: 1px solid rgba(124, 58, 237, 0.1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.icon-glow {
  width: 40px; height: 40px;
  background: #0EA5E9;
  border-radius: 10px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.3);
  color: #fff;
}

.mini-stat-box .label { font-size: 8px; color: var(--text-muted); display: block; }
.mini-stat-box .value { font-size: 14px; font-weight: 800; color: #1A1A2E; }

/* MAIN CONTENT */
.team-main-content {
  flex: 1;
  padding-left: 20px;
}

.page-title {
  color: #1A1A2E;
  font-size: 22px;
  margin-bottom: 30px;
  border-bottom: 2px solid #E9EBF0;
  padding-bottom: 10px;
}

.level-card-premium {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 25px;
  margin-bottom: 20px;
  display: flex;
  gap: 20px;
  border: 1px solid #E9EBF0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  position: relative;
  cursor: pointer;
}

.level-indicator {
  width: 50px; height: 50px;
  background: #0EA5E9;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 0 14px rgba(14, 165, 233, 0.3);
}

.level-info h3 { font-size: 18px; color: #1A1A2E; margin: 0; }
.level-info p { font-size: 12px; color: var(--text-muted); margin: 5px 0; }
.commission-left { color: #0EA5E9; font-size: 24px; font-weight: 800; }

.level-card-premium::before {
  content: "";
  position: absolute;
  left: -25px; top: 0;
  width: 2px; height: 100%;
  background: linear-gradient(to bottom, var(--accent-purple), transparent);
}

.team-scroll-area {
  margin-top: 30px;
  border-top: 1px solid #E9EBF0;
  padding-top: 20px;
}



/* ================= WITHDRAW PAGE ================= */
.withdraw-page {
  width: 100%;
  background: #F0F2F5;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}


.withdraw-header-fixed {
  width: 100%;
  height: 90px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0; left: 0;
  z-index: 1000;
  border-bottom: 1px solid #E9EBF0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.withdraw-header-fixed h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #1A1A2E;
  font-family: 'Poppins', sans-serif;
}

.withdraw-back-btn-v2 {
  position: absolute;
  left: 15px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid #E9EBF0;
  background: #F9FAFB;
  color: #7C3AED;
  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;
  background: rgba(124, 58, 237, 0.1);
  border: none;
  color: #7C3AED;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}


:root {
  --bg-dark: #F0F2F5;
  --card-bg: #FFFFFF;
  --input-bg: #F9FAFB;
  --accent-purple: #7C3AED;
  --text-main: #1A1A2E;
  --text-muted: #9CA3AF;
}

/* GLASS HEADER */
.header-premium-glass {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
  border-radius: 0 0 30px 30px;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  margin-top: -60px;
}

.glass-content {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.recharge-container {
  background-color: var(--bg-dark);
  padding: 60px 15px 30px;
  min-height: 100vh;
  font-family: 'Poppins', sans-serif;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.withdrawal-card-box, .bank-warning-card, .withdraw-card {
  background-color: var(--card-bg);
  border-radius: 20px;
  padding: 20px;
  border: 1px solid rgba(124, 58, 237, 0.1);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.withdraw-input-box {
  display: flex;
  align-items: center;
  background: var(--input-bg);
  border-radius: 12px;
  padding: 15px;
  border: 1px solid #E5E7EB;
}

.withdraw-input-box input {
  background: transparent;
  border: none;
  outline: none;
  font-size: 20px;
  width: 100%;
  color: var(--text-main);
}

.currency, .withdraw-title, .info-icon {
  color: var(--accent-purple) !important;
}

.info-icon {
  border: 1px solid var(--accent-purple);
  background: rgba(124, 58, 237, 0.08);
}

.withdraw-submit-btn {
  width: 100%;
  background: var(--accent-purple);
  color: #fff;
  border: none;
  padding: 18px;
  border-radius: 15px;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.25);
}

.bank-title-blue {
  color: var(--text-main);
  font-weight: 600;
}

.bank-detail-row {
  border-bottom: 1px solid #E9EBF0;
}


/* WITHDRAWAL RULES */
.withdraw-card {
    background-color: #FFFFFF;
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(124, 58, 237, 0.1);
    margin-top: 10px;
    margin-bottom: 100px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.withdraw-title {
    color: #7C3AED;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.withdraw-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 18px;
}

.withdraw-item:last-child {
    margin-bottom: 0;
}

.info-icon {
    background: rgba(124, 58, 237, 0.08);
    color: #7C3AED;
    width: 24px; height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
    border: 1.5px solid #7C3AED;
}

.withdraw-item span {
    color: #6B7280;
    font-size: 13px;
    line-height: 1.6;
}

.withdraw-item b {
    color: #1A1A2E;
    font-weight: 600;
}

/* ================= RECORDS PAGE ================= */
.records-page {
  width: 100vw;
  padding-top: 60px;
  margin: 0;
  font-family: Arial, sans-serif;
  height: 100vh;
  overflow-y: auto;
  background: #F0F2F5;
  box-sizing: border-box;
}

.records-page {
  padding-top: 0px;
}


.icon-bonus {
  background: rgba(124, 58, 237, 0.08);
  color: #7C3AED;
  border: 1px solid rgba(124, 58, 237, 0.15);
}

/* RECORDS HEADER */
.records-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 60px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  border-bottom: 1px solid #E9EBF0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  font-family: 'Poppins', sans-serif;
}

.records-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #1A1A2E;
  letter-spacing: 0.5px;
}

.records-back-btn {
  position: absolute;
  left: 15px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid #E9EBF0;
  background: #F9FAFB;
  color: #7C3AED;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: transform 0.1s ease;
  outline: none;
  font-size: 16px;
}

.records-back-btn:active {
  transform: scale(0.95);
  background: #EDE9FE;
}


#recordsContainer {
  padding: 15px;
  background-color: #F0F2F5;
  min-height: 100vh;
}

/* RECORD CARD */
.record-card {
  width: 100%;
  padding: 20px;
  background: #FFFFFF;
  border-radius: 24px;
  margin-bottom: 15px;
  box-sizing: border-box;
  border: 1px solid rgba(124, 58, 237, 0.1);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.record-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.record-transaction {
  font-size: 13px;
  color: #6B7280;
  font-weight: 500;
}

.record-middle-row {
  display: flex;
  justify-content: flex-end;
  border-bottom: 1px solid #F0F0F0;
  padding-bottom: 10px;
}

.record-amount {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.5px;
}

.amount-minus { color: #374151; }
.amount-plus { color: #7C3AED; }

.record-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.record-time {
  font-size: 11px;
  color: #9CA3AF;
  font-family: monospace;
}

/* STATUS PILL */
.record-status {
  font-size: 10px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.status-success {
  border: 1.5px solid #22c55e;
  color: #22c55e;
}

.status-failed {
  border: 1.5px solid #ff4d4d;
  color: #ff4d4d;
}

.status-pending {
  border: 1.5px solid #7C3AED;
  color: #7C3AED;
}

/* FILTER */
.records-filter {
  display: flex;
  gap: 12px;
  padding: 20px 15px;
  overflow-x: auto;
  justify-content: flex-start;
  background-color: #F0F2F5;
  border-bottom: 1px solid rgba(124, 58, 237, 0.08);
}

.filter-btn {
  border: none;
  padding: 10px 24px;
  background: #FFFFFF;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: #6B7280;
  white-space: nowrap;
  transition: all 0.3s ease;
  outline: none;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.filter-btn.active {
  background: #7C3AED !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.25);
}

.filter-btn:active {
  transform: scale(0.92);
}

.records-filter::-webkit-scrollbar { display: none; }
.records-filter { -ms-overflow-style: none; scrollbar-width: none; }

@media (max-width: 480px) {
  .record-card {
    padding: 20px;
    border-radius: 24px;
  }
}

/* MODAL OVERLAY */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.25);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 24px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
}

.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: #F3F4F6;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  color: #374151;
}

.slim-card {
  background: #f7f7f7;
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 25px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.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 strong {
  font-size: 17px;
  font-weight: 700;
  display: block;
  color: #111;
}

.product-details p {
  font-size: 14px;
  color: #444;
  margin-top: 3px;
}

.divider-line {
  height: 1px;
  background: #e5e5e5;
  margin: 14px 0;
}

.account-balance-row {
  font-size: 14px;
  color: #333;
  font-weight: 600;
}

.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.3);
  transition: transform 0.15s ease;
}

.purchase-btn:active { transform: scale(0.95); }

@media (max-width:480px){
.modal-card{ padding:20px; }
.sheet-title{ font-size:20px; }
.product-details strong{ font-size:16px; }
.product-details p, .account-balance-row{ font-size:13px; }
.purchase-btn{ font-size:14px; padding:10px 22px; }
}


/* ================= INVESTMENT PAGE ================= */
.investment-page {
  background: #F0F2F5;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start !important;
  align-items: stretch;
  overflow-y: auto;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.investment-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 60px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  border-bottom: 1px solid #E9EBF0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.investment-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #1A1A2E;
  font-family: 'Poppins', sans-serif;
}

.investment-back-btn {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #374151;
  cursor: pointer;
}

.investment-sub-header {
  padding: 80px 20px 15px 20px;
  background: #F0F2F5;
  width: 100%;
  box-sizing: border-box;
}

.investment-sub-header h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #1A1A2E;
  font-family: 'Poppins', sans-serif;
}

.investment-sub-header p {
  margin: 5px 0 0 0;
  font-size: 14px;
  color: #9CA3AF;
  line-height: 1.4;
}

.card-wrapper {
  padding: 10px 16px 40px 16px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  box-sizing: border-box;
}

#dynamicProductList {
  display: flex !important;
  flex-direction: column !important;
  gap: 15px !important;
  padding: 15px !important;
  background: #F0F2F5;
  padding-bottom: 120px !important;
}

/* PRODUCT CARD */
.mx-product-card {
  background: #FFFFFF;
  border-radius: 16px !important;
  padding: 12px 16px !important;
  border: 1px solid rgba(124, 58, 237, 0.12);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}

.mx-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.mx-brand-logo {
  width: 35px; height: 35px;
  background: #F3F4F6;
  border-radius: 8px;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #E9EBF0;
}

.mx-plan-name {
  font-size: 13px;
  font-weight: 600;
  color: #1A1A2E;
  letter-spacing: 0.5px;
}

.mx-roi-tag {
  font-size: 9px;
  color: #2563EB;
  text-transform: uppercase;
  font-weight: 700;
}

.mx-main-info-box {
  background: #F9FAFB;
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  border: 1px solid #E9EBF0;
}

.mx-info-label {
  font-size: 9px;
  color: #9CA3AF;
  font-weight: 700;
  margin-bottom: 2px;
}

.mx-info-value {
  font-size: 16px;
  font-weight: 800;
  color: #1A1A2E;
}

.purple-text { color: #7C3AED !important; }
.blue-text { color: #2563EB !important; }

.mx-stats-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 4px;
}

.mx-stat-label {
  font-size: 10px;
  color: #9CA3AF;
}

.mx-stat-val {
  font-size: 10px;
  font-weight: 700;
  color: #374151;
}

.mx-invest-btn {
  width: 100%;
  background: linear-gradient(135deg, #7C3AED, #5B21B6) !important;
  color: #ffffff !important;
  border: none;
  padding: 8px !important;
  border-radius: 50px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

.text-right { text-align: right; }

a.settings-link-wrapper {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
    -webkit-tap-highlight-color: transparent;
}

a.settings-link-wrapper:active {
    background-color: rgba(124, 58, 237, 0.04);
    border-radius: 8px;
}


/* 1. Input text stays dark on light background */
input, select, textarea {
    color: #1A1A2E !important;
    background-color: #F9FAFB !important;
    border: 1px solid #E5E7EB;
    outline: none !important;
}

/* 2. Autofill fix */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-text-fill-color: #1A1A2E !important;
    -webkit-box-shadow: 0 0 0 1000px #F9FAFB inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

input:focus {
    border-color: #7C3AED !important;
    background-color: #FFFFFF !important;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

::placeholder {
    color: rgba(107, 114, 128, 0.7) !important;
}

/* ================= CUSTOM ALERT ================= */
.custom-alert {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  background: rgba(255, 255, 255, 0.95);
  color: #1A1A2E;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 15px;
  text-align: center;
  max-width: 90%;
  width: max-content;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  border: 1px solid #E9EBF0;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 999999;
}

.custom-alert.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) !important;
}

.custom-alert {
  right: auto;
  margin: 0;
}

.custom-alert.show {
  animation: alertPop 0.3s ease;
}

@keyframes alertPop {
  0% { transform: translate(-50%, -60%) scale(0.8); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* ================= EMPTY STATE ================= */
.empty-state-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  margin: 20px;
  text-align: center;
  background: #FFFFFF;
  border-radius: 24px;
  border: 1px solid rgba(124, 58, 237, 0.1);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  box-sizing: border-box;
}

.empty-icon-circle {
  width: 85px; height: 85px;
  background: rgba(124, 58, 237, 0.06);
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.08);
}

.empty-icon-circle i {
  font-size: 32px;
  color: #7C3AED;
}

.empty-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #1A1A2E;
  font-family: 'Poppins', sans-serif;
}

.empty-subtitle {
  margin: 12px 0 30px 0;
  font-size: 14px;
  color: #9CA3AF;
  font-weight: 400;
  line-height: 1.6;
  max-width: 250px;
}

.browse-plans-btn {
  background: #7C3AED;
  color: #FFFFFF;
  border: none;
  width: 100%;
  max-width: 260px;
  padding: 18px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.25);
  transition: all 0.3s ease;
}

.browse-plans-btn:hover {
  background: #6D28D9;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.35);
  transform: translateY(-2px);
}

.browse-plans-btn:active { transform: scale(0.96); }

/* PAGE LOADER */
#pageLoader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #FFFFFF;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.loader-card {
  background: rgba(124, 58, 237, 0.04);
  backdrop-filter: blur(10px);
  padding: 30px 40px;
  border-radius: 24px;
  border: 1px solid rgba(124, 58, 237, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.spinner-container {
  position: relative;
  width: 60px; height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.spinner {
  width: 100%; height: 100%;
  border: 4px solid rgba(124, 58, 237, 0.1);
  border-top: 4px solid #7C3AED;
  border-radius: 50%;
  animation: spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.spinner-dot {
  position: absolute;
  width: 8px; height: 8px;
  background: #7C3AED;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(124, 58, 237, 0.5);
}

.loader-card p {
  font-size: 15px;
  font-weight: 600;
  color: #374151;
  margin: 0;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.5px;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}


.product-header-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}

.reviews-ticker-wrapper {
  width: 100%;
  height: calc(100vh - 250px);
  overflow: hidden;
  border-radius: 12px;
  background: #F9FAFB;
  padding: 10px;
  box-sizing: border-box;
  border: 1px solid #E9EBF0;
}

.reviews-ticker {
  display: flex;
  flex-direction: column;
  gap: 15px;
  animation: scrollReviews 300s linear infinite;
}

.review-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  min-height: 80px;
  border: 1px solid #E9EBF0;
}

.review-item .user-img {
  width: 50px; height: 50px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.review-item .review-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.6;
  color: #4B5563;
}

@keyframes scrollReviews {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}


.dashboard-image-box-full {
    width: 100%;
    background-color: #F0F2F5;
    padding: 15px;
    border-radius: 16px;
    box-sizing: border-box;
    text-align: center;
    margin: 20px 0;
    overflow: hidden;
}

.dashboard-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: inline-block;
}


/* ===== 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: #7C3AED;
  font-weight: 600;
  font-size: 14px;
}

.payment-box {
  width: 100%;
  background: #ffffff;
  color: #1A1A2E;
  border: 1px solid #E5E7EB;
  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.08);
  border-color: #7C3AED;
}

.payment-box .arrow {
  font-size: 14px;
  color: #9CA3AF;
}

.payment-options {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 48px;
  width: 100%;
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  display: none;
  z-index: 100;
}

.payment-options li {
  padding: 10px 15px;
  cursor: pointer;
  color: #374151;
  font-weight: 500;
  transition: background 0.2s;
}

.payment-options li:hover {
  background: rgba(124, 58, 237, 0.06);
}


.selected-amount {
  font-weight: bold;
  color: #1A1A2E;
  font-size: 20px;
  margin-top: 8px;
  text-align: center;
}



#paymentCountdown {
  margin-top: 14px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #DC2626;
}


#paymentStatusMessage {
  margin-top: 16px;
  padding: 14px;
  border-radius: 10px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  display: none;
}


.status-pending {
  background: #FFFBEB;
  color: #D97706;
}

.status-approved {
  background: #F0FDF4;
  color: #16A34A;
}

.status-declined {
  background: #FEF2F2;
  color: #DC2626;
}

.status-timeout {
  background: #FFF7ED;
  color: #C2410C;
}


/* ================= PROTECTED UI ================= */
#dashboard,
#bottomNav {
  display: none;
}


/* ================= FLOATING NAV CONTROL ================= */
#navToggle {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 64px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #7C3AED;
  font-size: 22px;
  border: 1px solid rgba(124, 58, 237, 0.25);
  cursor: pointer;
  z-index: 2001;
  display: none;
  box-shadow: 0 8px 18px rgba(124, 58, 237, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.logged-in #navToggle {
  display: flex;
  align-items: center;
  justify-content: center;
}

#navToggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(124, 58, 237, 0.25);
}

#navToggle:active {
  transform: scale(0.95);
}


/* ================= BOTTOM NAV ================= */
#bottomNav {
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 2000;
}

#bottomNav.open {
  transform: translateY(0);
}


/* ================= FLOATING TELEGRAM ================= */
.profile-page .telegram-float-profile {
  position: fixed;
  bottom: 90px;
  right: 16px;
  z-index: 9999;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #0088cc;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0,136,204,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-page .telegram-float-profile:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 28px rgba(0,136,204,0.35);
}

@media (max-width: 480px) {
  .profile-page .telegram-float-profile {
    bottom: 100px;
    right: 12px;
  }
}


/* Toast Container */
#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;
}

.modern-toast {
    pointer-events: auto;
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    background: #FFFFFF;
    color: #1A1A2E;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #E9EBF0;
    border-left: 5px solid #7C3AED;
    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;
}

.toast-icon {
    font-size: 18px;
    color: #7C3AED;
}

.toast-success { border-left-color: #7C3AED; }
.toast-error { border-left-color: #DC2626; }
.toast-warning { border-left-color: #D97706; }
