:root {
  /* Color Palette - Modern, Energetic, Sophisticated */
  --bg-primary: #0a0a0c;
  --bg-secondary: #16161a;
  --accent-primary: #7c4dff; /* Electric Violet */
  --accent-secondary: #00e5ff; /* Cyan Spark */
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --border-subtle: rgba(255, 255, 255, 0.1);
  --glass: rgba(255, 255, 255, 0.03);
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 48px;
  --space-2xl: 80px;
  
  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Layout Components */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 5rem);
}

section {
  margin-top: var(--space-2xl);
  padding: var(--space-xl) 0;
}

main > :first-child {
  margin-top: 0;
}

/* Navigation */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) 0;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 12, 0.8);
  backdrop-filter: blur(10px);
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-secondary);
  border-radius: 50%;
}

.nav-links {
  display: flex;
  gap: var(--space-xl);
}

.nav-link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
}

.nav-link:hover {
  color: var(--text-main);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  font-size: 0.95rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), #a855f7);
  color: white;
  box-shadow: 0 10px 20px -10px rgba(124, 77, 255, 0.5);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -10px rgba(124, 77, 255, 0.6);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.btn-outline:hover {
  background: var(--glass);
  border-color: var(--text-muted);
}

/* Hero Section */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  flex: 1;
  max-width: 650px;
  z-index: 1;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5rem);
  margin-bottom: var(--space-lg);
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
  max-width: 500px;
}

.hero-visual {
  position: absolute;
  right: -10%;
  top: 50%;
  transform: translateY(-50%);
  width: 50%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(124, 77, 255, 0.15) 0%, transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-wrapper {
  width: 100%;
  max-width: 600px;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-subtle);
  transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
}

.hero-image-wrapper img {
  width: 100%;
  display: block;
}

/* Dashboard Specifics */
.dashboard-grid {
  display: grid;
  grid-template-columns: 280px 1fr 320px;
  gap: var(--space-lg);
  height: calc(100vh - 100px);
  padding: var(--space-lg) 0;
}

.sidebar {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--text-muted);
  font-weight: 500;
  transition: all 0.2s;
}

.sidebar-item.active {
  background: var(--glass);
  color: var(--accent-secondary);
}

.sidebar-item:hover:not(.active) {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-main);
}

.main-content {
  overflow-y: auto;
  padding-right: 10px;
}

/* Custom Scrollbar */
.main-content::-webkit-scrollbar {
  width: 4px;
}
.main-content::-webkit-scrollbar-track {
  background: transparent;
}
.main-content::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 10px;
}

/* Cards */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  overflow: hidden;
  position: relative;
}

.card-title {
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Stats / Progress */
.progress-container {
  width: 100%;
  height: 8px;
  background: var(--glass);
  border-radius: 10px;
  margin: var(--space-sm) 0;
}

.progress-bar {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
}

.hero-stats {
  margin-top: var(--space-2xl);
  display: flex;
  gap: 48px;
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-lg);
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.hero-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
}

.hero-stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.card-icon-large {
  margin-bottom: var(--space-md);
  background: rgba(124, 77, 255, 0.1);
  width: 64px;
  height: 64px;
}

.dashboard-header {
  margin-bottom: var(--space-xl);
}

.user-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.user-info {
  text-align: right;
  line-height: 1;
}

.user-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.user-level {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.sidebar-goal {
  margin-top: auto;
  padding: var(--space-md);
  background: var(--glass);
  border-radius: 16px;
}

.stat-trend-up {
  font-size: 0.75rem;
  color: #22c55e;
}

.stat-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.promo-card {
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.2), transparent);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.stat-box {
  background: var(--glass);
  padding: var(--space-md);
  border-radius: 16px;
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Practice Items */
.practice-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.practice-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: var(--glass);
  padding: var(--space-md);
  border-radius: 20px;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.practice-card:hover {
  border-color: var(--accent-primary);
  background: rgba(124, 77, 255, 0.05);
  transform: translateX(5px);
}

.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-secondary);
}

.practice-info {
  flex: 1;
}

.practice-name {
  font-weight: 600;
  margin-bottom: 2px;
}

.practice-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Activity Feed */
.activity-feed {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.activity-item {
  display: flex;
  gap: var(--space-md);
  position: relative;
}

.activity-item::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 24px;
  bottom: -20px;
  width: 2px;
  background: var(--border-subtle);
}

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

.activity-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-primary);
  border: 4px solid var(--bg-secondary);
  z-index: 1;
  margin-top: 4px;
}

.activity-content {
  font-size: 0.9rem;
}

.activity-time {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Placeholders */
.placeholder-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.badge {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-new {
  background: var(--accent-secondary);
  color: var(--bg-primary);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* Responsive adjustments */
@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
    height: auto;
  }
  .sidebar, .right-panel {
    display: none;
  }
}
