/* ===================================
   Crypto Investment Dashboard - Style.css
   Primary Color: #5e17eb
   Design: Futuristic, Glassmorphism, Premium
   =================================== */

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ===================================
   CSS Variables & Design System
   =================================== */
:root {
  /* Primary Colors */
  --primary: #5e17eb;
  --primary-light: #7d3ff5;
  --primary-lighter: #9d65f9;
  --primary-dark: #4912b8;
  --primary-darker: #340d85;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #5e17eb 0%, #9d65f9 100%);
  --gradient-primary-hover: linear-gradient(135deg, #4912b8 0%, #7d3ff5 100%);
  --gradient-shine: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
  
  /* Backgrounds */
  --bg-main: #f8f9fa;
  --bg-white: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.75);
  --bg-glass-dark: rgba(94, 23, 235, 0.05);
  
  /* Text Colors */
  --text-primary: #1a1a2e;
  --text-secondary: #6c757d;
  --text-muted: #adb5bd;
  --text-white: #ffffff;
  
  /* Status Colors */
  --success: #10b981;
  --success-light: #d1fae5;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --info: #3b82f6;
  --info-light: #dbeafe;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(94, 23, 235, 0.08);
  --shadow-lg: 0 10px 30px rgba(94, 23, 235, 0.12);
  --shadow-xl: 0 20px 40px rgba(94, 23, 235, 0.15);
  --shadow-glow: 0 0 30px rgba(94, 23, 235, 0.3);
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
}

/* ===================================
   Global Styles
   =================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

/* ===================================
   Utility Classes
   =================================== */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.glass-card-dark {
  background: var(--bg-glass-dark);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(94, 23, 235, 0.1);
  border-radius: var(--radius-2xl);
}

.btn-gradient {
  background: var(--gradient-primary);
  border: none;
  color: var(--text-white);
  padding: 0.75rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
}

.btn-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-shine);
  transition: var(--transition-base);
}

.btn-gradient:hover::before {
  left: 100%;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-gradient:active {
  transform: translateY(0);
}

/* Ripple Effect */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
  width: 300px;
  height: 300px;
}

/* ===================================
   Animated Background Patterns
   =================================== */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: float 20s infinite ease-in-out;
}

.gradient-orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(94, 23, 235, 0.4) 0%, transparent 70%);
  top: -200px;
  left: -200px;
  animation-delay: 0s;
}

.gradient-orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(157, 101, 249, 0.3) 0%, transparent 70%);
  top: 50%;
  right: -250px;
  animation-delay: 5s;
}

.gradient-orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(125, 63, 245, 0.35) 0%, transparent 70%);
  bottom: -175px;
  left: 30%;
  animation-delay: 10s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(20px, -20px) scale(1.01); }
  50% { transform: translate(-10px, 10px) scale(0.95); }
  75% { transform: translate(5px, 5px) scale(1.05); }
}

/* Particle Animation */
.particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.particle {
  position: absolute;
  background: var(--primary-lighter);
  border-radius: 50%;
  opacity: 0.3;
  animation: particleFloat 15s infinite;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-100px) scale(1);
    opacity: 0;
  }
}

/* ===================================
   Navigation - Sidebar
   =================================== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 280px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255, 255, 255, 0.3);
  padding: var(--spacing-lg);
  transition: var(--transition-base);
  z-index: 1000;
  overflow-y: auto;
}

.sidebar.collapsed {
  width: 80px;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-md);
}

.sidebar-logo img {
  width: 40px;
  height: 40px;
}

.sidebar-logo span {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
  transition: var(--transition-base);
}

.sidebar.collapsed .sidebar-logo span {
  opacity: 0;
  width: 0;
}

.sidebar-nav {
  list-style: none;
}

.sidebar-nav-item {
  margin-bottom: var(--spacing-sm);
}

.sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-sm);
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-lg);
  transition: var(--transition-base);
  font-weight: 500;
}

.sidebar-nav-link:hover {
  background: var(--bg-glass-dark);
  color: var(--primary);
  transform: translateX(4px);
}

.sidebar-nav-link.active {
  background: var(--gradient-primary);
  color: var(--text-white);
  box-shadow: var(--shadow-md);
}

.sidebar-nav-link i {
  font-size: 1.25rem;
  width: 24px;
  text-align: center;
}

.sidebar.collapsed .sidebar-nav-link span {
  opacity: 0;
  width: 0;
}

/* ===================================
   Navigation - Topbar
   =================================== */
.topbar {
  position: fixed;
  top: 0;
  left: 280px;
  right: 0;
  height: 70px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0 var(--spacing-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition-base);
  z-index: 999;
}

.sidebar.collapsed + .main-content .topbar {
  left: 80px;
}

.topbar-search {
  position: relative;
  max-width: 400px;
  flex: 1;
}

.topbar-search input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 3rem;
  border: 1px solid rgba(94, 23, 235, 0.1);
  border-radius: var(--radius-full);
  background: var(--bg-white);
  transition: var(--transition-base);
  font-family: 'Inter', sans-serif;
}

.topbar-search input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(94, 23, 235, 0.1);
}

.topbar-search i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.topbar-action-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-base);
  color: var(--text-secondary);
}

.topbar-action-btn:hover {
  background: var(--bg-glass-dark);
  color: var(--primary);
  transform: scale(1.1);
}

.topbar-action-btn .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  background: var(--danger);
  color: var(--text-white);
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.topbar-profile {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm);
  border-radius: var(--radius-full);
  background: var(--bg-white);
  cursor: pointer;
  transition: var(--transition-base);
}

.topbar-profile:hover {
  background: var(--bg-glass-dark);
}

.topbar-profile img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 2px solid var(--primary);
}

/* ===================================
   Main Content Area
   =================================== */
.main-content {
  margin-left: 280px;
  margin-top: 70px;
  padding: var(--spacing-2xl);
  min-height: calc(100vh - 70px);
  transition: var(--transition-base);
}

.sidebar.collapsed + .main-content {
  margin-left: 80px;
}

/* ===================================
   Cards & Widgets
   =================================== */
.stat-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-xl);
  position: relative;
  overflow: hidden;
  transition: var(--transition-base);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: var(--gradient-primary);
  opacity: 0.1;
  border-radius: 50%;
  transform: translate(30%, -30%);
}

.stat-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.stat-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-size: 1.75rem;
  margin-bottom: var(--spacing-md);
  box-shadow: var(--shadow-md);
}

.stat-card-value {
  font-size: 2rem;
  font-weight: 800;
  font-family: 'Poppons', sans-serif;
  margin-bottom: var(--spacing-xs);
}

.stat-card-label {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
}

.stat-card-trend {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-sm);
  font-size: 0.875rem;
  font-weight: 600;
}

.stat-card-trend.up {
  color: var(--success);
}

.stat-card-trend.down {
  color: var(--danger);
}

/* ===================================
   Forms & Inputs
   =================================== */
.form-group {
  margin-bottom: var(--spacing-lg);
  position: relative;
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid rgba(94, 23, 235, 0.1);
  border-radius: var(--radius-lg);
  background: var(--bg-white);
  transition: var(--transition-base);
  font-family: 'Inter', sans-serif;
  font-size: 0.938rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(94, 23, 235, 0.1);
  transform: translateY(-2px);
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-control.error {
  border-color: var(--danger);
}

.form-error {
  color: var(--danger);
  font-size: 0.813rem;
  margin-top: var(--spacing-xs);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.input-icon {
  position: relative;
}

.input-icon i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  transition: var(--transition-base);
}

.input-icon .form-control {
  padding-left: 3rem;
}

.input-icon .form-control:focus + i {
  color: var(--primary);
}

/* Password Strength Meter */
.password-strength {
  margin-top: var(--spacing-sm);
}

.password-strength-bar {
  height: 4px;
  background: var(--bg-glass-dark);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--spacing-xs);
}

.password-strength-fill {
  height: 100%;
  transition: var(--transition-base);
  border-radius: var(--radius-full);
}

.password-strength-fill.weak {
  width: 33%;
  background: var(--danger);
}

.password-strength-fill.medium {
  width: 66%;
  background: var(--warning);
}

.password-strength-fill.strong {
  width: 100%;
  background: var(--success);
}

.password-strength-text {
  font-size: 0.75rem;
  font-weight: 600;
}

/* ===================================
   Buttons
   =================================== */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  font-size: 0.938rem;
  border: none;
  cursor: pointer;
  transition: var(--transition-base);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--text-white);
}

.btn-ghost {
  background: rgba(94, 23, 235, 0.1);
  color: var(--primary);
}

.btn-ghost:hover {
  background: rgba(94, 23, 235, 0.2);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.063rem;
}

.btn-block {
  width: 100%;
}

/* ===================================
   Tables
   =================================== */
.table-container {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-xl);
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table thead th {
  padding: var(--spacing-md);
  text-align: left;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid rgba(94, 23, 235, 0.1);
}

.table tbody td {
  padding: var(--spacing-md);
  border-bottom: 1px solid rgba(94, 23, 235, 0.05);
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.table tbody tr {
  transition: var(--transition-fast);
}

.table tbody tr:hover {
  background: rgba(94, 23, 235, 0.03);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

/* ===================================
   Badges & Status
   =================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-full);
  font-size: 0.813rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}

.badge-success {
  background: var(--success-light);
  color: var(--success);
}

.badge-warning {
  background: var(--warning-light);
  color: var(--warning);
}

.badge-danger {
  background: var(--danger-light);
  color: var(--danger);
}

.badge-info {
  background: var(--info-light);
  color: var(--info);
}

.badge-primary {
  background: rgba(94, 23, 235, 0.1);
  color: var(--primary);
}

/* ===================================
   Loading Skeletons
   =================================== */
.skeleton {
  background: linear-gradient(90deg, 
    var(--bg-glass-dark) 25%, 
    rgba(94, 23, 235, 0.08) 50%, 
    var(--bg-glass-dark) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-lg);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-text {
  height: 1rem;
  margin-bottom: var(--spacing-sm);
}

.skeleton-title {
  height: 1.5rem;
  width: 60%;
  margin-bottom: var(--spacing-md);
}

.skeleton-card {
  height: 200px;
  border-radius: var(--radius-2xl);
}

/* ===================================
   Toasts / Notifications
   =================================== */
.toast-container {
  position: fixed;
  top: 90px;
  right: var(--spacing-xl);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.toast {
  min-width: 320px;
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 4px solid var(--primary);
}

.toast.success {
  border-left-color: var(--success);
}

.toast.error {
  border-left-color: var(--danger);
}

.toast.warning {
  border-left-color: var(--warning);
}

.toast-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.toast.success .toast-icon {
  background: var(--success-light);
  color: var(--success);
}

.toast.error .toast-icon {
  background: var(--danger-light);
  color: var(--danger);
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
  font-family: 'Poppins', sans-serif;
}

.toast-message {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ===================================
   Modals
   =================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-base);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg-white);
  border-radius: var(--radius-2xl);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: scale(0.9);
  transition: var(--transition-base);
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-header {
  padding: var(--spacing-xl);
  border-bottom: 1px solid rgba(94, 23, 235, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  margin: 0;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-base);
  color: var(--text-secondary);
}

.modal-close:hover {
  background: var(--bg-glass-dark);
  color: var(--primary);
}

.modal-body {
  padding: var(--spacing-xl);
}

.modal-footer {
  padding: var(--spacing-xl);
  border-top: 1px solid rgba(94, 23, 235, 0.1);
  display: flex;
  gap: var(--spacing-md);
  justify-content: flex-end;
}

/* ===================================
   Copy to Clipboard
   =================================== */
.copy-field {
  position: relative;
}

.copy-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--gradient-primary);
  color: var(--text-white);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition-base);
  font-size: 0.813rem;
}

.copy-btn:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: var(--shadow-md);
}

.copy-btn.copied {
  background: var(--success);
}

/* ===================================
   QR Code
   =================================== */
.qr-container {
  background: var(--bg-white);
  padding: var(--spacing-xl);
  border-radius: var(--radius-2xl);
  display: inline-block;
  box-shadow: var(--shadow-md);
}

.qr-container canvas,
.qr-container img {
  border-radius: var(--radius-lg);
}

/* ===================================
   Landing Page Specific
   =================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: var(--spacing-2xl);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--spacing-lg);
  animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-2xl);
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Plan Cards */
.plan-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-2xl);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.plan-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: var(--transition-base);
}

.plan-card:hover::before {
  transform: scaleX(1);
}

.plan-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.plan-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.plan-badge {
  position: absolute;
  top: var(--spacing-lg);
  right: var(--spacing-lg);
  background: var(--gradient-primary);
  color: var(--text-white);
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.plan-name {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: var(--spacing-md);
}

.plan-price {
  font-size: 3rem;
  font-weight: 900;
  font-family: 'Poppins', sans-serif;
  margin-bottom: var(--spacing-sm);
}

.plan-price span {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.plan-features {
  list-style: none;
  margin: var(--spacing-xl) 0;
}

.plan-features li {
  padding: var(--spacing-sm) 0;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--text-secondary);
}

.plan-features li i {
  color: var(--success);
  font-size: 1.125rem;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 992px) {
  .sidebar {
    transform: translateX(-100%);
  }
  
  .sidebar.show {
    transform: translateX(0);
    z-index: 1050;
  }
  
  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .sidebar-overlay.show {
    display: block;
    opacity: 1;
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .topbar {
    left: 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .main-content {
    padding: var(--spacing-md);
  }
  
  .stat-card-value {
    font-size: 1.5rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .topbar-search {
    display: none;
  }
  
  .toast-container {
    right: var(--spacing-md);
    left: var(--spacing-md);
  }
  
  .toast {
    min-width: auto;
  }
}

/* ===================================
   Accessibility
   =================================== */
*:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ===================================
   Print Styles
   =================================== */
@media print {
  .sidebar,
  .topbar,
  .btn,
  .modal-overlay {
    display: none !important;
  }
  
  .main-content {
    margin-left: 0;
    margin-top: 0;
  }
}

/* ===================================
   Custom Scrollbar
   =================================== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-glass-dark);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ===================================
   Range Slider
   =================================== */
input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--bg-glass-dark);
  outline: none;
  -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: var(--shadow-glow);
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
}

input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow: var(--shadow-glow);
}

/* ===================================
   File Upload Drag & Drop
   =================================== */
.file-upload-area {
  border: 2px dashed rgba(94, 23, 235, 0.3);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-2xl);
  text-align: center;
  cursor: pointer;
  transition: var(--transition-base);
  background: var(--bg-glass);
}

.file-upload-area:hover {
  border-color: var(--primary);
  background: var(--bg-glass-dark);
}

.file-upload-area.dragover {
  border-color: var(--primary);
  background: rgba(94, 23, 235, 0.1);
  transform: scale(1.02);
}

.file-upload-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: var(--spacing-md);
}

/* ===================================
   Chart Containers
   =================================== */
.chart-container {
  position: relative;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-xl);
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-xl);
}

.chart-title {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
}

/* ===================================
   Referral Tree Styles
   =================================== */
.referral-tree {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.referral-node {
  background: var(--bg-glass);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-xl);
  padding: var(--spacing-md);
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  transition: var(--transition-base);
}

.referral-node:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
}

.referral-level-2 {
  margin-left: var(--spacing-2xl);
}

.referral-level-3 {
  margin-left: calc(var(--spacing-2xl) * 2);
}

/* ===================================
   Mobile Menu Toggle
   =================================== */
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: var(--bg-white);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition-base);
}

@media (max-width: 992px) {
  .menu-toggle {
    display: flex;
  }
}

/* ===================================
   Success Animation
   =================================== */
@keyframes successPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.success-animation {
  animation: successPulse 0.6s ease-in-out;
}

/* ===================================
   Numeric Display
   =================================== */
.numeric-display {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
