/* === PREMIUM CRYPTO MLM DASHBOARD === */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  font-family: 'Poppins', sans-serif;
  background: #09090B;
  color: #ffffff;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar {
  width: 0;
  height: 0;
}

::selection {
  background: rgba(124, 58, 237, 0.3);
  color: #fff;
}

/* === APP CONTAINER (DESKTOP) === */
.app-container {
  display: flex;
  min-height: 100vh;
  background: #09090B;
}

/* === SIDEBAR === */
.sidebar {
  width: 280px;
  min-width: 280px;
  background: linear-gradient(180deg, #0F0A1E 0%, #0D0818 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 50;
  overflow-y: auto;
}

.sidebar::-webkit-scrollbar {
  width: 0;
}

.sidebar-logo {
  padding: 24px 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-logo .logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7C3AED, #A855F7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
}

.sidebar-logo .logo-text {
  font-size: 18px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.3px;
}

.sidebar-logo .logo-text span {
  color: #7C3AED;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: 'Poppins', sans-serif;
  position: relative;
}

.sidebar-item i {
  width: 22px;
  text-align: center;
  font-size: 17px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.sidebar-item span {
  transition: all 0.2s ease;
}

.sidebar-item:hover {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.04);
}

.sidebar-item.active {
  color: white;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.15) 0%, rgba(124, 58, 237, 0.05) 100%);
}

.sidebar-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 24px;
  background: #7C3AED;
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.5);
}

.sidebar-item.active i {
  color: #A855F7;
}

.sidebar-item.active span {
  color: white;
}

.sidebar-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  margin: 8px 16px;
}

.sidebar-category {
  padding: 16px 16px 6px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.25);
  pointer-events: none;
  user-select: none;
}

.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

/* === TOPBAR === */
.topbar {
  height: 72px;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: sticky;
  top: 0;
  z-index: 40;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-title {
  font-size: 20px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.3px;
}

/* Topbar Search */
.topbar-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 8px 16px;
  width: 260px;
  transition: all 0.2s ease;
}

.topbar-search:focus-within {
  border-color: rgba(124, 58, 237, 0.3);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.05);
}

.topbar-search input {
  background: none;
  border: none;
  outline: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-family: 'Poppins', sans-serif;
  width: 100%;
}

.topbar-search input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.topbar-search i {
  color: rgba(255, 255, 255, 0.25);
  font-size: 14px;
}

/* Topbar Icon Button */
.topbar-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  font-size: 16px;
}

.topbar-icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

/* User Avatar in Topbar */
.topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: all 0.2s ease;
}

.topbar-user:hover {
  background: rgba(255, 255, 255, 0.08);
}

.topbar-user .topbar-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #7C3AED, #A855F7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: white;
}

.topbar-user .topbar-user-info {
  display: flex;
  flex-direction: column;
}

.topbar-user .topbar-user-name {
  font-size: 12px;
  font-weight: 600;
  color: white;
  line-height: 1.2;
}

.topbar-user .topbar-user-role {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.2;
}

/* === MAIN AREA === */
.main-area {
  flex: 1;
  margin-left: 280px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: rgba(9, 9, 11, 0.5);
}

.main-content {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
}

/* === SIDEBAR OVERLAY (mobile) === */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 45;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .topbar-search {
    display: none;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay.open {
    display: block;
  }

  .sidebar-toggle {
    display: flex;
  }

  .main-area {
    margin-left: 0;
  }

  .topbar {
    padding: 0 16px;
    height: 56px;
  }

  .topbar-user .topbar-user-info {
    display: none;
  }

  .topbar-user {
    padding: 6px;
  }

  .main-content {
    padding: 16px;
  }
}

/* === GLASS EFFECTS === */
.glass {
  background: rgba(24, 24, 27, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.glass-light {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card {
  background: rgba(24, 24, 27, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  border-color: rgba(124, 58, 237, 0.2);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.08);
}

/* === PREMIUM GRADIENTS === */
.gradient-primary {
  background: linear-gradient(135deg, #7C3AED 0%, #A855F7 50%, #C084FC 100%);
}

.gradient-success {
  background: linear-gradient(135deg, #22C55E 0%, #4ADE80 100%);
}

.gradient-warning {
  background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
}

.gradient-danger {
  background: linear-gradient(135deg, #EF4444 0%, #F87171 100%);
}

.gradient-balance {
  background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 30%, #4C1D95 60%, #1E1B4B 100%);
}

.gradient-gold {
  background: linear-gradient(135deg, #F59E0B 0%, #FCD34D 50%, #F59E0B 100%);
}

.gradient-cyber {
  background: linear-gradient(135deg, #0F0A1E 0%, #1A0A2E 30%, #2D0A4E 60%, #3B0A6E 100%);
}

.gradient-card-1 {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(168, 85, 247, 0.05));
}

.gradient-card-2 {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(74, 222, 128, 0.05));
}

.gradient-card-3 {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(251, 191, 36, 0.05));
}

.gradient-card-4 {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(248, 113, 113, 0.05));
}

/* === BALANCE CARD === */
:root {
  --balance-bg: linear-gradient(135deg, #7C3AED 0%, #6D28D9 25%, #4C1D95 50%, #312E81 75%, #1E1B4B 100%);
  --balance-bg-light: linear-gradient(135deg, #7C3AED, #A855F7);
}

.balance-card {
  background: var(--balance-bg);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.balance-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 20%, rgba(168, 85, 247, 0.2) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(192, 132, 252, 0.15) 0%, transparent 50%);
  animation: shimmer 8s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(10px, -10px) rotate(1deg); }
  50% { transform: translate(-5px, 5px) rotate(-0.5deg); }
  75% { transform: translate(8px, 8px) rotate(0.5deg); }
}

.balance-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='10' cy='10' r='1' fill='rgba(255,255,255,0.05)'/%3E%3C/svg%3E");
  background-size: 30px 30px;
}

/* === BOTTOM NAVIGATION (mobile only) === */
.bottom-nav {
  background: rgba(24, 24, 27, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px 24px 0 0;
  padding: 8px 0;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  display: none;
}

@media (max-width: 768px) {
  .bottom-nav {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
  }
}

.nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 0;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.nav-item i {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

.nav-item span {
  font-size: 9px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.nav-item.active i {
  color: #7C3AED;
  filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.5));
}

.nav-item.active span {
  color: #7C3AED;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: #7C3AED;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.6);
}

/* === BUTTONS === */
.btn-primary {
  background: linear-gradient(135deg, #7C3AED 0%, #A855F7 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 10px 20px;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.btn-outline:hover {
  border-color: rgba(124, 58, 237, 0.5);
  background: rgba(124, 58, 237, 0.1);
}

.btn-success {
  background: linear-gradient(135deg, #22C55E 0%, #4ADE80 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.35);
}

/* === CARDS === */
.stat-card {
  background: rgba(24, 24, 27, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 18px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(124, 58, 237, 0.03) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card:hover {
  border-color: rgba(124, 58, 237, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* === INCOME CARDS === */
.income-card {
  background: rgba(24, 24, 27, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.income-card:hover {
  border-color: rgba(124, 58, 237, 0.2);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.12);
}

.income-card:active {
  transform: scale(0.98);
}

/* === WALLET CARDS === */
.wallet-card {
  background: rgba(24, 24, 27, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.wallet-card:hover {
  border-color: rgba(124, 58, 237, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.1);
}

.wallet-card:active {
  transform: scale(0.97);
}

/* === BALANCE TONE (shared Total Balance color treatment) === */
.balance-tone {
  background: var(--balance-bg);
  border: none;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.income-card.balance-tone {
  border-radius: 16px;
}

/* === PACKAGE CARDS === */
.package-card {
  background: rgba(24, 24, 27, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.package-card.active {
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.1), inset 0 0 40px rgba(124, 58, 237, 0.03);
}

.package-card.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #7C3AED, #A855F7, #C084FC);
}

.package-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* === BADGES === */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.badge-primary {
  background: rgba(124, 58, 237, 0.15);
  color: #A855F7;
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.badge-success {
  background: rgba(34, 197, 94, 0.15);
  color: #22C55E;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* === TIMELINE === */
.timeline-item {
  position: relative;
  padding-left: 32px;
  padding-bottom: 20px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 28px;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.06);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

/* === CIRCULAR PROGRESS === */
.circular-progress {
  position: relative;
  width: 100px;
  height: 100px;
}

.circular-progress svg {
  transform: rotate(-90deg);
}

.circular-progress .bg-circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 6;
}

.circular-progress .progress-circle {
  fill: none;
  stroke: url(#progressGradient);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 282.74;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === ANIMATIONS === */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 8px rgba(124, 58, 237, 0.3); }
  50% { box-shadow: 0 0 20px rgba(124, 58, 237, 0.6), 0 0 40px rgba(124, 58, 237, 0.2); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ripple {
  0% { transform: scale(0); opacity: 0.5; }
  100% { transform: scale(4); opacity: 0; }
}

@keyframes shimmerMove {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* === ANIMATION UTILITY CLASSES === */
.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.animate-slide-up {
  animation: slideUp 0.5s ease forwards;
}

.animate-scale-in {
  animation: scaleIn 0.3s ease forwards;
}

.animate-pulse-glow {
  animation: glow 2s ease-in-out infinite;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* === STAGGER ANIMATIONS === */
.stagger-1 { animation-delay: 0.05s; opacity: 0; }
.stagger-2 { animation-delay: 0.1s; opacity: 0; }
.stagger-3 { animation-delay: 0.15s; opacity: 0; }
.stagger-4 { animation-delay: 0.2s; opacity: 0; }
.stagger-5 { animation-delay: 0.25s; opacity: 0; }
.stagger-6 { animation-delay: 0.3s; opacity: 0; }
.stagger-7 { animation-delay: 0.35s; opacity: 0; }
.stagger-8 { animation-delay: 0.4s; opacity: 0; }
.stagger-9 { animation-delay: 0.45s; opacity: 0; }
.stagger-10 { animation-delay: 0.5s; opacity: 0; }

/* === RIPPLE EFFECT === */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.3);
  width: 100px;
  height: 100px;
  margin-top: -50px;
  margin-left: -50px;
  top: 50%;
  left: 50%;
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}

.ripple:active::after {
  animation: ripple 0.6s ease-out;
}

/* === GLOW EFFECTS === */
.glow-primary {
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.15);
}

.glow-success {
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.15);
}

.glow-warning {
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.15);
}

/* === SWITCH TOGGLE === */
.switch {
  position: relative;
  width: 48px;
  height: 28px;
  cursor: pointer;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch .slider {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  transition: all 0.3s ease;
}

.switch .slider::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 22px;
  height: 22px;
  background: white;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.switch input:checked + .slider {
  background: linear-gradient(135deg, #7C3AED, #A855F7);
}

.switch input:checked + .slider::before {
  transform: translateX(20px);
}

/* === ACCORDION === */
.accordion-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.accordion-header {
  cursor: pointer;
  user-select: none;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-content.open {
  max-height: 300px;
}

/* === SKELETON LOADING === */
.skeleton {
  background: linear-gradient(90deg, rgba(24, 24, 27, 0.8) 25%, rgba(39, 39, 42, 0.8) 50%, rgba(24, 24, 27, 0.8) 75%);
  background-size: 200% 100%;
  animation: shimmerMove 1.5s ease-in-out infinite;
  border-radius: 8px;
}

/* === HEADER (mobile only) === */
.app-header {
  background: rgba(9, 9, 11, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  position: sticky;
  top: 0;
  z-index: 50;
}

@media (min-width: 769px) {
  .app-header {
    display: none;
  }
}

/* === CONTENT AREA === */
.content-area {
  padding-bottom: 100px;
}

@media (min-width: 769px) {
  .content-area {
    padding-bottom: 0;
  }
}

/* === DIVIDER === */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
}

/* === BALANCE EYE BUTTON === */
.eye-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.eye-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* === ACTION BUTTON (Quick Actions) === */
.action-btn {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
  margin: 0 auto;
}

.action-btn:hover {
  transform: translateY(-3px);
}

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

/* === MARKET CARD === */
.market-card {
  background: rgba(24, 24, 27, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 14px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.market-card:hover {
  border-color: rgba(124, 58, 237, 0.2);
  transform: translateX(4px);
}

/* === SETTINGS ITEM === */
.settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: all 0.2s ease;
}

.settings-item:hover {
  opacity: 0.8;
}

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

/* === PROFILE AVATAR === */
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7C3AED, #A855F7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: white;
  position: relative;
  flex-shrink: 0;
}

.avatar-sm {
  width: 36px;
  height: 36px;
  font-size: 14px;
}

.avatar-lg {
  width: 80px;
  height: 80px;
  font-size: 32px;
}

.avatar-ring {
  outline: 3px solid rgba(124, 58, 237, 0.3);
  outline-offset: 3px;
}

/* === STATUS DOT === */
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  position: absolute;
  bottom: 2px;
  right: 2px;
  border: 2px solid #09090B;
}

/* === COPY BUTTON === */
.copy-btn {
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  color: #A855F7;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.copy-btn:hover {
  background: rgba(124, 58, 237, 0.2);
}

.copy-btn.copied {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.3);
  color: #22C55E;
}

/* === TABS === */
.tab-bar {
  display: flex;
  gap: 4px;
  background: rgba(24, 24, 27, 0.6);
  border-radius: 12px;
  padding: 4px;
}

.tab-item {
  flex: 1;
  padding: 8px 12px;
  border-radius: 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-item.active {
  background: rgba(124, 58, 237, 0.2);
  color: #A855F7;
}

/* === PROGRESS BAR === */
.progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === NOTIFICATION DOT === */
.notif-dot {
  width: 8px;
  height: 8px;
  background: #EF4444;
  border-radius: 50%;
  position: absolute;
  top: 0;
  right: 0;
  animation: pulse 2s infinite;
}

/* === FLOATING ACTION BUTTON === */
.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #7C3AED, #A855F7);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.35);
  cursor: pointer;
  transition: all 0.3s ease;
  position: fixed;
  bottom: 90px;
  right: 20px;
  z-index: 40;
}

.float-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.45);
}

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

/* === MODAL === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.modal-content {
  width: 100%;
  max-width: 430px;
  background: #18181B;
  border-radius: 24px 24px 0 0;
  padding: 24px;
  animation: slideUp 0.3s ease;
  max-height: 85vh;
  overflow-y: auto;
}

/* === TOOLTIP === */
.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  background: rgba(24, 24, 27, 0.95);
  color: white;
  font-size: 11px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.tooltip:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

/* === NUMBER ROLL ANIMATION === */
.number-roll {
  display: inline-block;
  transition: all 0.3s ease;
}

/* === RESPONSIVE === */
@media (min-width: 430px) {
  .app-container {
    border-left: 1px solid rgba(255, 255, 255, 0.03);
    border-right: 1px solid rgba(255, 255, 255, 0.03);
  }
}

/* === SCROLL INDICATOR === */
.scroll-indicator {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
  position: sticky;
  top: 0;
  z-index: 49;
}

.scroll-indicator-bar {
  height: 100%;
  background: linear-gradient(90deg, #7C3AED, #A855F7);
  transition: width 0.1s ease;
}

/* === EMPTY STATE === */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.empty-state i {
  font-size: 48px;
  color: rgba(255, 255, 255, 0.1);
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
}

/* === CHAT BUBBLE === */
.chat-bubble {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.5;
  max-width: 85%;
}

.chat-bubble.sent {
  background: linear-gradient(135deg, #7C3AED, #A855F7);
  color: white;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

.chat-bubble.received {
  background: rgba(24, 24, 27, 0.8);
  color: rgba(255, 255, 255, 0.9);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

/* === KYC STATUS === */
.kyc-verified {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(74, 222, 128, 0.05));
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 12px;
  padding: 12px 16px;
}

.kyc-pending {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(251, 191, 36, 0.05));
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 12px;
  padding: 12px 16px;
}

/* === PRICE CHANGE === */
.price-up {
  color: #22C55E;
}

.price-down {
  color: #EF4444;
}

/* === SAFE AREA === */
@supports (padding-top: env(safe-area-inset-top)) {
  .safe-top {
    padding-top: env(safe-area-inset-top);
  }
  .safe-bottom {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* === LIGHT MODE === */
.light-mode,
.light-mode .app-container,
.light-mode .landing-bg,
.light-mode .login-bg,
.light-mode .register-bg,
.light-mode .forgot-bg,
.light-mode .logout-bg {
  background: #F8FAFC;
}

.light-mode .bg-bg,
.light-mode .bg-card,
.light-mode .glass-card,
.light-mode .balance-card,
.light-mode .glass-light,
.light-mode .glass-dark,
.light-mode .app-header,
.light-mode .main-area,
.light-mode .main-content {
  background: #FFFFFF;
}

.light-mode .main-content {
  background: #F8FAFC;
}

.light-mode .main-area {
  background: #F1F5F9;
}

.light-mode .bottom-nav {
  background: rgba(255, 255, 255, 0.95);
  border-top-color: #E2E8F0;
}

.light-mode .nav-item {
  color: #94A3B8;
}

.light-mode .nav-item.active {
  color: #7C3AED;
}

.light-mode .nav-item span {
  color: #94A3B8;
}

.light-mode .nav-item.active span {
  color: #7C3AED;
}

.light-mode .scroll-indicator {
  background: #E2E8F0;
}

.light-mode .scroll-indicator-bar {
  background: linear-gradient(90deg, #7C3AED, #A855F7);
}

.light-mode .content-area {
  background: #F8FAFC;
}

/* === LIGHT MODE TEXT === */
.light-mode,
.light-mode body,
.light-mode .app-container,
.light-mode h1, .light-mode h2, .light-mode h3,
.light-mode h4, .light-mode h5, .light-mode h6,
.light-mode p, .light-mode span, .light-mode li,
.light-mode strong, .light-mode b {
  color: #0F172A;
}

.light-mode .text-white {
  color: #0F172A !important;
}

.light-mode .text-zinc-400 {
  color: #94A3B8 !important;
}

.light-mode .text-zinc-500 {
  color: #64748B !important;
}

.light-mode .text-zinc-600 {
  color: #475569 !important;
}

.light-mode .text-zinc-700 {
  color: #334155 !important;
}

.light-mode .text-white\/60,
.light-mode .text-white\/70,
.light-mode .text-white\/80 {
  color: #64748B !important;
}

.light-mode .text-white\/40,
.light-mode .text-white\/50 {
  color: #94A3B8 !important;
}

.light-mode .text-zinc-400\/80 {
  color: #94A3B8 !important;
}

/* === LIGHT MODE BACKGROUNDS === */
.light-mode .bg-white\/5,
.light-mode .bg-white\/\[0\.03\],
.light-mode .bg-white\/\[0\.05\],
.light-mode .bg-white\/\[0\.06\],
.light-mode .bg-white\/\[0\.08\] {
  background: #F1F5F9 !important;
}

.light-mode .bg-white\/10,
.light-mode .bg-white\/\[0\.10\] {
  background: #E2E8F0 !important;
}

.light-mode .hover\:bg-white\/5:hover {
  background: #E2E8F0 !important;
}

/* === LIGHT MODE BORDERS === */
.light-mode .border-white\/5,
.light-mode .border-white\/\[0\.06\],
.light-mode .border-white\/\[0\.08\],
.light-mode .border-white\/10 {
  border-color: #E2E8F0 !important;
}

/* === LIGHT MODE INPUT === */
.light-mode .input-field {
  background: #F1F5F9;
  border-color: #E2E8F0;
  color: #0F172A;
}

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

.light-mode .input-field::placeholder {
  color: #94A3B8;
}

.light-mode .input-label {
  color: #475569;
}

/* === LIGHT MODE BALANCE CARD === */
.light-mode .balance-card {
  background: var(--balance-bg-light) !important;
}

.light-mode .balance-card h1,
.light-mode .balance-card p,
.light-mode .balance-card span,
.light-mode .balance-card .text-white {
  color: #FFFFFF !important;
}

.light-mode .balance-card .text-white\/60,
.light-mode .balance-card .text-white\/70 {
  color: rgba(255, 255, 255, 0.7) !important;
}

.light-mode .eye-btn {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
}

/* === LIGHT MODE COMPONENTS === */
.light-mode .avatar {
  background: linear-gradient(135deg, #7C3AED, #A855F7);
}

.light-mode .avatar span {
  color: #FFFFFF !important;
}

.light-mode .status-dot {
  border-color: #FFFFFF;
}

.light-mode .badge {
  color: #FFFFFF !important;
}

.light-mode .badge-primary {
  background: rgba(124, 58, 237, 0.15);
  color: #7C3AED !important;
}

.light-mode .badge-success {
  background: rgba(34, 197, 94, 0.1);
  color: #22C55E !important;
}

.light-mode .badge-warning {
  background: rgba(245, 158, 11, 0.1);
  color: #F59E0B !important;
}

.light-mode .badge-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #EF4444 !important;
}

.light-mode .notif-dot {
  border-color: #FFFFFF;
}

.light-mode .progress-bar-bg {
  background: #E2E8F0;
}

.light-mode .progress-bar-fill {
  background: linear-gradient(90deg, #7C3AED, #A855F7);
}

/* === LIGHT MODE TIMELINE === */
.light-mode .timeline-item::before {
  background: #7C3AED;
}

.light-mode .timeline-item::after {
  background: #E2E8F0;
}

.light-mode .timeline-dot {
  background: #7C3AED;
  border-color: #FFFFFF;
}

/* === LIGHT MODE ACTIVITY === */
.light-mode .activity-item {
  border-bottom-color: #F1F5F9;
}

.light-mode .activity-icon {
  background: #F1F5F9;
  color: #64748B;
}

/* === LIGHT MODE TOGGLE === */
.light-mode .toggle-track {
  background: #CBD5E1;
}

.light-mode .toggle-track.active {
  background: #7C3AED;
}

.light-mode .toggle-thumb {
  background: #FFFFFF;
}

/* === LIGHT MODE ACCORDION === */
.light-mode .accordion-btn {
  background: #FFFFFF;
  border-color: #E2E8F0;
}

.light-mode .accordion-btn:hover {
  background: #F8FAFC;
}

.light-mode .accordion-content {
  color: #64748B;
}

/* === LIGHT MODE TABS === */
.light-mode .tab-btn {
  color: #94A3B8;
}

.light-mode .tab-btn.active {
  color: #7C3AED;
  border-bottom-color: #7C3AED;
}

/* === LIGHT MODE MODAL === */
.light-mode .modal-overlay {
  background: rgba(15, 23, 42, 0.5);
}

.light-mode .modal-content {
  background: #FFFFFF;
}

.light-mode .modal-close {
  background: #F1F5F9;
  color: #64748B;
}

/* === LIGHT MODE WALLET CARDS === */
.light-mode .wallet-card {
  background: var(--balance-bg-light) !important;
}

.light-mode .wallet-icon {
  background: #F1F5F9;
}

/* === LIGHT MODE CTA BUTTONS === */
.light-mode .cta-btn {
  background: #F1F5F9;
  color: #0F172A;
}

.light-mode .cta-btn:hover {
  background: #E2E8F0;
}

/* === LIGHT MODE QUICK ACTIONS === */
.light-mode .quick-action {
  background: #FFFFFF;
}

.light-mode .quick-action:hover {
  background: #F8FAFC;
}

.light-mode .quick-action p {
  color: #0F172A !important;
}

.light-mode .quick-action span {
  color: #64748B !important;
}

/* === LIGHT MODE TABLES === */
.light-mode table,
.light-mode .table-row {
  border-bottom-color: #F1F5F9;
}

.light-mode th {
  color: #64748B;
  background: #F8FAFC;
}

.light-mode td {
  color: #0F172A;
}

/* === LIGHT MODE LANDING PAGE === */

/* Header nav */
.light-mode .landing-bg header {
  background: rgba(255, 255, 255, 0.92) !important;
  border-bottom-color: #E2E8F0 !important;
}

/* Page bg gradients — softer for light mode */
.light-mode .landing-bg::before {
  background:
    radial-gradient(ellipse at 15% 0%, rgba(124,58,237,0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 30%, rgba(6,182,212,0.02) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 70%, rgba(168,85,247,0.02) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 90%, rgba(34,197,94,0.02) 0%, transparent 50%) !important;
}

/* Grid dots — dark dots on light bg */
.light-mode .grid-dots {
  background-image: radial-gradient(rgba(0,0,0,0.04) 1px, transparent 1px) !important;
}

/* Hero CTA outline — white card on light bg */
.light-mode .hero-cta-outline {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
  color: #0F172A !important;
}
.light-mode .hero-cta-outline:hover {
  border-color: #7C3AED !important;
  background: rgba(124,58,237,0.05) !important;
  box-shadow: 0 4px 16px rgba(124,58,237,0.08) !important;
}

/* Section subtitle */
.light-mode .section-sub {
  color: #64748B !important;
}

/* Section divider */
.light-mode .section-divider {
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.06), transparent) !important;
}

/* Alt section background */
.light-mode .bg-alt {
  background: #F1F5F9 !important;
}
.light-mode .bg-alt::before {
  background: radial-gradient(ellipse at 50% 0%, rgba(124,58,237,0.03) 0%, transparent 60%);
}

/* Connecting line between steps */
.light-mode .landing-bg [style*="linear-gradient(90deg, #7C3AED,"] {
  background: linear-gradient(90deg, #7C3AED, rgba(0,0,0,0.05), #22C55E) !important;
}

/* Testimonial cards */
.light-mode .testimonial-card {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
}
.light-mode .testimonial-card:hover {
  border-color: rgba(124,58,237,0.2) !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.06) !important;
}
.light-mode .testimonial-card::before {
  color: rgba(124,58,237,0.08) !important;
}
.light-mode .testimonial-card .text-zinc-300 {
  color: #475569 !important;
}

/* Pricing cards */
.light-mode .pricing-card {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
}
.light-mode .pricing-card:hover {
  border-color: rgba(124,58,237,0.2) !important;
  box-shadow: 0 24px 80px rgba(0,0,0,0.06) !important;
}
.light-mode .pricing-card.featured {
  background: linear-gradient(180deg, rgba(124,58,237,0.04), #FFFFFF) !important;
  border-color: rgba(124,58,237,0.2) !important;
  box-shadow: 0 0 40px rgba(124,58,237,0.06) !important;
}
.light-mode .pricing-card.featured:hover {
  border-color: rgba(124,58,237,0.35) !important;
}
.light-mode .pricing-card .text-zinc-500 {
  color: #64748B !important;
}
.light-mode .pricing-card .text-zinc-400 {
  color: #475569 !important;
}

/* Glow card hover glow */
.light-mode .glow-card::before {
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(124,58,237,0.06), transparent 60%);
}

/* Trusted by companies text */
.light-mode .landing-bg [style*="opacity: 0.2"] .text-white {
  color: #0F172A !important;
}

/* Inline rgba(255,255,255,X) backgrounds inside landing page (ticker, stats summary) — exclude CTA glass card (blur(20px)) */
.light-mode .landing-bg [style*="rgba(255,255,255,0.03)"]:not([style*="blur(20px)"]) {
  background: #F1F5F9 !important;
  border-color: #E2E8F0 !important;
}
.light-mode .landing-bg [style*="rgba(255,255,255,0.02)"] {
  background: #F1F5F9 !important;
  border-color: #E2E8F0 !important;
}
.light-mode .landing-bg [style*="rgba(255,255,255,0.04)"] {
  border-color: #E2E8F0 !important;
}

/* Hero right panel glass-card box-shadow */
.light-mode .landing-bg .glass-card[style*="box-shadow"] {
  box-shadow: 0 24px 80px rgba(0,0,0,0.06) !important;
}

/* Preserve white text on colored backgrounds */
.light-mode .landing-bg .bg-primary.text-white,
.light-mode .landing-bg [style*="linear-gradient(135deg,"].text-white {
  color: #FFFFFF !important;
}
.light-mode .landing-bg [style*="linear-gradient(135deg,"] .text-white {
  color: #FFFFFF !important;
}

/* Avatar/inline-icon borders — white border on light bg */
.light-mode .border-bg {
  border-color: #FFFFFF !important;
}

/* Progress bar track backgrounds */
.light-mode .landing-bg .bg-zinc-800 {
  background-color: #E2E8F0 !important;
}

/* Income stream cards */
.light-mode .income-card {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
}
.light-mode .income-card:hover {
  border-color: rgba(124,58,237,0.2) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06) !important;
}
.light-mode .income-card-name {
  color: #0F172A !important;
}
.light-mode .income-card-pct {
  background: #F1F5F9 !important;
}

/* FAQ items */
.light-mode .faq-item-default {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
}
.light-mode .faq-item-default:hover {
  border-color: rgba(124,58,237,0.2) !important;
}
.light-mode .faq-item-open {
  background: rgba(124,58,237,0.03) !important;
  border-color: rgba(124,58,237,0.2) !important;
}
.light-mode .faq-icon-default {
  background: #F1F5F9 !important;
  color: #94A3B8 !important;
}
.light-mode .faq-number {
  color: rgba(0,0,0,0.12) !important;
}
.light-mode .faq-item-open .faq-number {
  color: #A855F7 !important;
}

/* CTA section background — light mode */
.light-mode .landing-bg [style*="linear-gradient(160deg"] {
  background: linear-gradient(160deg, rgba(124,58,237,0.06) 0%, #F8FAFC 35%, #F8FAFC 65%, rgba(6,182,212,0.03) 100%) !important;
}

/* Footer links */
.light-mode .footer-link {
  color: #64748B;
}
.light-mode .footer-link:hover {
  color: #7C3AED;
}

/* === LIGHT MODE MATRIX TREE === */
.light-mode .matrix-node {
  background: #FFFFFF;
  border-color: #E2E8F0;
}

.light-mode .matrix-node:hover {
  border-color: #7C3AED;
}

.light-mode .matrix-node .member-name {
  color: #0F172A;
}

.light-mode .matrix-node .member-info {
  color: #64748B;
}

.light-mode .matrix-line {
  border-color: #E2E8F0;
}

/* === LIGHT MODE CHAT === */
.light-mode .chat-msg-incoming {
  background: #F1F5F9;
  color: #0F172A;
}

.light-mode .chat-msg-outgoing {
  background: #7C3AED;
  color: #FFFFFF;
}

.light-mode .chat-msg-time {
  color: #94A3B8;
}

.light-mode .chat-input {
  background: #F1F5F9;
  border-color: #E2E8F0;
  color: #0F172A;
}

/* === LIGHT MODE STAKING === */
.light-mode .pool-card {
  background: #FFFFFF;
}

.light-mode .pool-card:hover {
  background: #F8FAFC;
}

.light-mode .circular-progress-text {
  color: #0F172A;
}

/* === LIGHT MODE RANK === */
.light-mode .rank-badge {
  background: linear-gradient(135deg, #7C3AED, #A855F7);
}

.light-mode .rank-badge span {
  color: #FFFFFF !important;
}

/* === LIGHT MODE PACKAGE CARDS === */
.light-mode .package-card {
  background: #FFFFFF;
}

.light-mode .package-card.featured {
  border-color: #7C3AED;
}

.light-mode .package-price {
  color: #0F172A;
}

.light-mode .package-feature {
  color: #475569;
}

.light-mode .package-feature i {
  color: #22C55E;
}

/* === LIGHT MODE MEMBER LIST === */
.light-mode .member-item {
  border-bottom-color: #F1F5F9;
}

.light-mode .member-item:hover {
  background: #F8FAFC;
}

/* === LIGHT MODE EMPTY STATE === */
.light-mode .empty-state {
  color: #94A3B8;
}

.light-mode .empty-state i {
  color: #CBD5E1;
}

.light-mode .empty-state p {
  color: #64748B;
}

/* === LIGHT MODE ACCOUNT PAGES === */
.light-mode .login-container,
.light-mode .register-container,
.light-mode .forgot-container {
  color: #0F172A;
}

.light-mode .free-badge {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.15);
}

.light-mode .success-check {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.2);
}

.light-mode .social-btn {
  background: #F1F5F9;
  border-color: #E2E8F0;
  color: #64748B;
}

.light-mode .social-btn:hover {
  background: #E2E8F0;
  border-color: rgba(124, 58, 237, 0.2);
}

/* === LIGHT MODE FOOTER === */
.light-mode footer {
  border-top-color: #E2E8F0;
}

.light-mode footer .text-zinc-700 {
  color: #CBD5E1 !important;
}

/* === LIGHT MODE PACKAGE SELECTOR === */
.light-mode .package-option {
  background: #F1F5F9;
}

.light-mode .package-option.selected {
  background: rgba(124, 58, 237, 0.08);
  border-color: #7C3AED;
}

/* === LIGHT MODE HEADINGS === */
.light-mode h1, .light-mode h2, .light-mode h3,
.light-mode .text-lg, .light-mode .text-xl,
.light-mode .text-2xl, .light-mode .text-3xl {
  color: #0F172A;
}

/* === LIGHT MODE LABELS === */
.light-mode label {
  color: #475569;
}

/* === LIGHT MODE SELECT === */
.light-mode select,
.light-mode .select-field {
  background: #F1F5F9;
  border-color: #E2E8F0;
  color: #0F172A;
}

/* === LIGHT MODE CHECKBOX === */
.light-mode input[type="checkbox"] {
  border-color: #CBD5E1;
}

/* === LIGHT MODE SIDEBAR === */
.light-mode .sidebar {
  background: #FFFFFF;
  border-right-color: #E2E8F0 !important;
}

.light-mode .sidebar-logo {
  border-bottom-color: #E2E8F0 !important;
}

.light-mode .sidebar-logo img,
.light-mode .login-bg img[src*="logo"],
.light-mode .register-bg img[src*="logo"],
.light-mode .forgot-bg img[src*="logo"],
.light-mode .logout-bg img[src*="logo"] {
  filter: brightness(0);
}

.light-mode .sidebar-item {
  color: #64748B;
}

.light-mode .sidebar-item:hover {
  color: #0F172A;
  background: #F1F5F9;
}

.light-mode .sidebar-item.active {
  color: #0F172A;
  background: rgba(124, 58, 237, 0.06);
}

.light-mode .sidebar-item.active::before {
  background: #7C3AED;
}

.light-mode .sidebar-item.active i {
  color: #7C3AED;
}

.light-mode .sidebar-item.active span {
  color: #0F172A;
}

.light-mode .sidebar-footer {
  border-top-color: #E2E8F0 !important;
}

.light-mode .sidebar-category {
  color: #94A3B8;
}

.light-mode .sidebar-divider {
  background: #E2E8F0 !important;
}

.light-mode .sidebar-toggle {
  background: #F1F5F9;
  border-color: #E2E8F0;
  color: #64748B;
}

.light-mode .sidebar-toggle:hover {
  background: #E2E8F0;
  color: #0F172A;
}

/* === LIGHT MODE TOPBAR === */
.light-mode .topbar {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: #E2E8F0 !important;
}

.light-mode .topbar-title {
  color: #0F172A;
}

.light-mode .topbar-search {
  background: #F1F5F9;
  border-color: #E2E8F0;
}

.light-mode .topbar-search:focus-within {
  background: #FFFFFF;
  border-color: #7C3AED;
}

.light-mode .topbar-search input {
  color: #0F172A;
}

.light-mode .topbar-search input::placeholder {
  color: #94A3B8;
}

.light-mode .topbar-search i {
  color: #94A3B8;
}

.light-mode .topbar-icon-btn {
  background: #F1F5F9;
  border-color: #E2E8F0;
  color: #64748B;
}

.light-mode .topbar-icon-btn:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.light-mode .topbar-user {
  background: #F1F5F9;
  border-color: #E2E8F0;
}

.light-mode .topbar-user:hover {
  background: #E2E8F0;
}

.light-mode .topbar-user .topbar-user-name {
  color: #0F172A;
}

/* === LIGHT MODE SIDEBAR OVERLAY === */
.light-mode .sidebar-overlay {
  background: rgba(15, 23, 42, 0.5);
}

/* === LIGHT MODE BALANCE TONE CARDS (Total Balance color treatment) === */
.light-mode .balance-tone {
  background: var(--balance-bg-light) !important;
  border-color: transparent !important;
}

.light-mode .balance-tone .bg-white\/10 {
  background: rgba(255, 255, 255, 0.1) !important;
}

.light-mode .balance-tone h1,
.light-mode .balance-tone h2,
.light-mode .balance-tone h3,
.light-mode .balance-tone p,
.light-mode .balance-tone span,
.light-mode .balance-tone .text-white {
  color: #FFFFFF !important;
}

.light-mode .balance-tone .text-white\/60,
.light-mode .balance-tone .text-white\/70 {
  color: rgba(255, 255, 255, 0.7) !important;
}
