/* ===================================
   CONSOLIDATED CSS STYLES
   ===================================
   
   This file contains all styles for the neuroEGE project.
   Organized by sections for better maintainability.
   
   Sections:
   1. CSS Variables & Base Styles
   2. Layout & Grid
   3. Components
   4. Page-specific Styles
   5. Utilities
   6. Responsive Design
   =================================== */

/* ===================================
   1. CSS VARIABLES & BASE STYLES
   =================================== */

:root {
  /* Legacy Variables (from style.css) */
  --primary-blue: #543AE7;
  --light-blue: #e9f4ff;
  --white: #ffffff;
  --light-gray: #f5f6fa;
  --medium-gray: #dee2e6;
  --dark-gray: #343a40;
  --text-color: #2c2c2c;
  --success-color: #28a745;
  --error-color: #dc3545;
  --border-radius: 8px;
  --zumer-green: #00FF7F;
  
  /* Modern Variables (from dashboard_modern.html) */
  --primary-50: #f0f9ff;
  --primary-100: #e0f2fe;
  --primary-200: #bae6fd;
  --primary-300: #7dd3fc;
  --primary-400: #38bdf8;
  --primary-500: #0ea5e9;
  --primary-600: #0284c7;
  --primary-700: #0369a1;
  --primary-800: #075985;
  --primary-900: #0c4a6e;
  
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  
  --success-50: #f0fdf4;
  --success-500: #22c55e;
  --success-600: #16a34a;
  
  --warning-50: #fffbeb;
  --warning-500: #f59e0b;
  --warning-600: #d97706;
  
  --error-50: #fef2f2;
  --error-500: #ef4444;
  --error-600: #dc2626;
  
  /* Effects */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Base Reset */
* {
  box-sizing: border-box;
}

/* Base Body Styles */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #f5f7fa;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: var(--text-color);
}

/* Modern Theme Body */
body.modern-theme {
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--primary-50) 100%);
  color: var(--gray-800);
  min-height: 100vh;
}

/* ===================================
   FOMO & EMOTIONAL TRIGGERS STYLES
   =================================== */

/* FOMO Counter */
.fomo-counter-modern {
  background: linear-gradient(135deg, var(--error-500) 0%, var(--warning-500) 100%);
  color: white;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-lg);
}

.fomo-container-modern {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 20px;
}

.fomo-item-modern {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}

.fomo-icon {
  font-size: 16px;
  animation: pulse 2s infinite;
}

.fomo-number {
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* FOMO Notifications */
.fomo-notifications-modern {
  margin: 20px 0;
  position: relative;
}

.fomo-notification-modern {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--primary-200);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 8px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
  animation: slideInRight 0.5s ease-out;
  backdrop-filter: blur(10px);
}

.fomo-avatar {
  font-size: 20px;
  background: var(--primary-100);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fomo-message {
  font-size: 14px;
  color: var(--gray-700);
  font-weight: 500;
}

/* Hero Urgency */
.hero-urgency-modern {
  color: var(--error-500);
  font-weight: 600;
  font-size: 14px;
  margin-top: 16px;
  text-align: center;
  animation: blink 2s infinite;
}

/* Fear Section */
.fear-section-modern {
  background: linear-gradient(135deg, var(--error-50) 0%, var(--warning-50) 100%);
  padding: 60px 0;
  margin-top: 40px;
}

.fear-container-modern {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.fear-title-modern {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 40px;
}

.fear-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.fear-card-modern {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--error-500);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fear-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.fear-icon-modern {
  font-size: 32px;
  margin-bottom: 16px;
  display: block;
}

.fear-card-title-modern {
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 12px;
}

.fear-description-modern {
  color: var(--gray-600);
  line-height: 1.6;
}

/* Animations */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0.5; }
}

/* Responsive FOMO */
@media (max-width: 768px) {
  .fomo-container-modern {
    flex-direction: column;
    gap: 8px;
  }
  
  .fomo-item-modern {
    font-size: 12px;
  }
  
  .fomo-number {
    font-size: 14px;
  }
  
  .fear-grid-modern {
    grid-template-columns: 1fr;
  }
  
  .fear-title-modern {
    font-size: 24px;
  }
}

/* ===================================
   DASHBOARD FOMO STYLES
   =================================== */

.fomo-dashboard-modern {
  margin-bottom: 32px;
}

.fomo-dashboard-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.fomo-card-modern {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fomo-card-modern:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.fomo-card-header-modern {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.fomo-card-icon-modern {
  font-size: 24px;
  background: var(--primary-100);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fomo-card-title-modern {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-800);
  margin: 0;
}

.fomo-card-content-modern {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Competitors Card */
.fomo-competitors-modern {
  border-left: 4px solid var(--error-500);
}

.competitor-item-modern {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
}

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

.competitor-avatar-modern {
  font-size: 20px;
  background: var(--primary-100);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.competitor-info-modern {
  flex: 1;
}

.competitor-name-modern {
  font-weight: 600;
  color: var(--gray-800);
  font-size: 14px;
}

.competitor-action-modern {
  color: var(--gray-600);
  font-size: 12px;
  margin-top: 2px;
}

/* Urgency Card */
.fomo-urgency-modern {
  border-left: 4px solid var(--warning-500);
}

.urgency-item-modern {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
}

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

.urgency-number-modern {
  font-size: 24px;
  font-weight: 700;
  color: var(--error-500);
}

.urgency-label-modern {
  color: var(--gray-600);
  font-size: 14px;
  text-align: right;
}

/* Pressure Card */
.fomo-pressure-modern {
  border-left: 4px solid var(--primary-500);
}

.position-item-modern {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
}

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

.position-rank-modern {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-600);
}

.position-label-modern {
  color: var(--gray-600);
  font-size: 14px;
  text-align: right;
}

/* Dashboard FOMO Responsive */
@media (max-width: 768px) {
  .fomo-dashboard-grid-modern {
    grid-template-columns: 1fr;
  }
  
  .fomo-card-modern {
    padding: 16px;
  }
  
  .urgency-number-modern,
  .position-rank-modern {
    font-size: 18px;
  }
}

/* ===================================
   EMOTIONAL NOTIFICATIONS STYLES
   =================================== */

.emotional-notifications-modern {
  margin-bottom: 24px;
}

.emotional-notification-modern {
  background: white;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid;
  animation: slideInDown 0.5s ease-out;
  position: relative;
  overflow: hidden;
}

.emotional-notification-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: shimmer 2s infinite;
}

.emotional-fomo-modern {
  border-left-color: var(--primary-500);
  background: linear-gradient(135deg, var(--primary-50) 0%, white 100%);
}

.emotional-fear-modern {
  border-left-color: var(--error-500);
  background: linear-gradient(135deg, var(--error-50) 0%, white 100%);
}

.emotional-critical-modern {
  border-left-color: var(--error-600);
  background: linear-gradient(135deg, var(--error-100) 0%, white 100%);
  animation: pulse 2s infinite;
}

.emotional-high-modern {
  border-left-color: var(--warning-500);
  background: linear-gradient(135deg, var(--warning-50) 0%, white 100%);
}

.emotional-medium-modern {
  border-left-color: var(--primary-400);
  background: linear-gradient(135deg, var(--primary-50) 0%, white 100%);
}

.emotional-notification-icon-modern {
  font-size: 24px;
  background: var(--primary-100);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.emotional-fomo-modern .emotional-notification-icon-modern {
  background: var(--primary-100);
}

.emotional-fear-modern .emotional-notification-icon-modern {
  background: var(--error-100);
}

.emotional-notification-content-modern {
  flex: 1;
}

.emotional-notification-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-800);
  margin: 0 0 4px 0;
}

.emotional-notification-message {
  font-size: 14px;
  color: var(--gray-600);
  margin: 0;
  line-height: 1.4;
}

.emotional-notification-close {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--gray-400);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.emotional-notification-close:hover {
  background: var(--gray-100);
  color: var(--gray-600);
}

@keyframes slideInDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Emotional Notifications Responsive */
@media (max-width: 768px) {
  .emotional-notification-modern {
    padding: 12px;
    gap: 12px;
  }
  
  .emotional-notification-icon-modern {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
  
  .emotional-notification-title {
    font-size: 14px;
  }
  
  .emotional-notification-message {
    font-size: 12px;
  }
}

/* ===================================
   2. LAYOUT & GRID
   =================================== */

/* Container */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header Styles */
.header {
  background: var(--primary-blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-logo {
  color: #fff;
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  font-weight: bold;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.header-logo-icon {
  height: 1.5em;
  vertical-align: middle;
}

.header-nav {
  gap: 15px;
  flex-wrap: wrap;
}

.header-nav__balance {
  font-size: 13px;
}

.header-nav__auth {
  display: flex;
  justify-content: space-between;
  line-height: 1.5;
}

.header-nav a, .header-nav span {
  color: var(--white);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.header-nav a:hover, .header-nav span:hover {
  opacity: 0.8;
}

/* Modern Header */
.header-modern {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo-modern {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--gray-800);
  font-weight: 600;
  font-size: 1.25rem;
}

.logo-icon {
  font-size: 1.5rem;
}

.balance-icon {
  font-size: 1.1rem;
}

.nav-icon {
  font-size: 1rem;
}

.header-nav-modern {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.balance-modern {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  font-weight: 500;
}

.nav-actions {
  display: flex;
  gap: 1rem;
}

.nav-link-modern {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: var(--gray-600);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-link-modern:hover {
  background: var(--glass-bg);
  color: var(--gray-800);
}

/* Custom Navbar (Legacy) */
.custom-navbar {
  background-color: var(--primary-blue);
  padding: 10px 15px;
}

.custom-navbar .navbar-brand {
  color: #fff;
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  font-weight: bold;
  letter-spacing: 0.5px;
}

.custom-navbar .nav-link {
  color: #fff;
  font-size: clamp(0.9rem, 3vw, 1rem);
  margin-left: 15px;
}

.custom-navbar .nav-link:hover {
  color: #00c4b4;
}

.custom-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Main Content */
.main-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

/* Grid Layouts */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.cards-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 1.5rem;
}

.actions-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 15px;
}

.progress-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

/* ===================================
   3. COMPONENTS
   =================================== */

/* ===================================
   3.1 HERO SECTIONS
   =================================== */

/* Legacy Hero */
.hero-section {
  background-color: var(--primary-blue);
  color: #fff;
  padding: clamp(40px, 10vw, 80px) 15px;
  text-align: center;
}

.hero-section h1 {
  font-size: clamp(1.5rem, 6vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 15px;
}

.hero-section p {
  font-size: clamp(0.9rem, 4vw, 1.2rem);
  margin-bottom: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-section .btn-success {
  background: linear-gradient(135deg, rgb(66, 214, 95), rgb(40, 167, 69));
  border: none;
  padding: 10px 20px;
  font-size: clamp(0.9rem, 3.5vw, 1.1rem);
  font-weight: 600;
  border-radius: 6px;
  display: inline-block;
}

.hero-section .btn-success:hover {
  background-color: #00a89a;
}

.hero-section img {
  max-width: 100%;
  height: auto;
  margin-top: 20px;
}

/* Modern Hero */
.hero-modern {
  position: relative;
  padding: 4rem 2rem;
  margin-bottom: 3rem;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

.hero-gradient {
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 100%);
  width: 100%;
  height: 100%;
}

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 25% 25%, rgba(255,255,255,0.1) 0%, transparent 50%),
                    radial-gradient(circle at 75% 75%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.hero-content-modern {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  color: white;
}

.hero-title-modern {
  font-size: 3.5rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle-modern {
  font-size: 1.25rem;
  font-weight: 400;
  margin: 0 0 1rem 0;
  opacity: 0.9;
}

.hero-motivation-modern {
  font-size: 1rem;
  margin: 0 0 2rem 0;
  opacity: 0.8;
  font-style: italic;
}

.hero-actions-modern {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.hero-greeting h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 10px 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  color: #ffffff;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin: 0;
  font-weight: 500;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* ===================================
   3.2 BUTTONS
   =================================== */

/* CTA Buttons */
.cta-primary-modern {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: white;
  color: var(--primary-600);
  text-decoration: none;
  border-radius: 16px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.cta-primary-modern:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  color: var(--primary-700);
}

.cta-secondary-modern {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--glass-bg);
  color: white;
  text-decoration: none;
  border-radius: 16px;
  font-weight: 600;
  font-size: 1.1rem;
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.cta-secondary-modern:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

/* Action Buttons */
.action-btn {
  background: #543AE7;
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.action-btn:hover {
  background: #4a2fd8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(84, 58, 231, 0.3);
}

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

.action-btn-modern {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--primary-500);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.action-btn-modern .btn-icon {
  font-size: 1.1rem;
}

.action-btn-modern:hover {
  background: var(--primary-600);
  transform: translateY(-1px);
}

.card-action-modern {
  align-self: flex-start;
  padding: 0.75rem 1.5rem;
  background: var(--primary-500);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.card-action-modern:hover {
  background: var(--primary-600);
  transform: translateY(-1px);
}

.btn-outline-primary {
  border-color: #407bff;
  color: #407bff;
  padding: 8px 16px;
  font-size: clamp(0.9rem, 3vw, 1rem);
}

.btn-outline-primary:hover {
  background-color: #407bff;
  color: #fff;
}

/* ===================================
   3.3 CARDS
   =================================== */

/* Dashboard Cards */
.dashboard-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

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

.card-header h3 {
  margin: 0;
  color: #543AE7;
  font-size: 1.3rem;
  font-weight: 600;
}

.card-header p {
  margin: 5px 0 0 0;
  color: var(--dark-gray);
  font-size: 0.95rem;
  opacity: 0.8;
}

/* Modern Cards */
.card-modern {
  background: white;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid var(--gray-200);
  opacity: 0;
  transform: translateY(20px);
}

.card-modern.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.card-modern:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-header-modern {
  margin-bottom: 1.5rem;
}

.card-title-modern {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.card-title-modern h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-800);
}

.card-icon-modern {
  font-size: 1.5rem;
}

.card-content-modern {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Feature Cards */
.feature-box {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  padding: 20px;
  text-align: center;
  margin-bottom: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: clamp(1.8rem, 6vw, 2.5rem);
  color: #407bff;
  margin-bottom: 10px;
}

.feature-box h3 {
  font-size: clamp(1rem, 4vw, 1.3rem);
  margin-bottom: 10px;
  color: #333;
}

.feature-box p {
  font-size: clamp(0.85rem, 3vw, 0.95rem);
  color: #666;
}

/* Form Cards */
.form-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.form-card.create-commitment {
  text-align: center;
}

.form-card.create-commitment .card-header h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

/* ===================================
   3.4 PROGRESS COMPONENTS
   =================================== */

/* Progress Bar */
.progress-bar-container {
  background: #e9ecef;
  border-radius: 10px;
  height: 20px;
  overflow: hidden;
  margin: 20px;
}

.progress-bar {
  background: var(--success-color);
  height: 100%;
  transition: width 0.3s ease;
}

.progress-stats {
  display: flex;
  justify-content: space-between;
  margin: 0 20px 20px;
  font-size: 14px;
}

/* Progress Circle */
.progress-circle {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
}

.progress-circle-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
}

.progress-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #543AE7;
  line-height: 1;
}

.progress-label {
  font-size: 0.8rem;
  color: #343a40;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(-90deg);
}

.progress-ring-bg {
  fill: none;
  stroke: #f0f0f0;
}

.progress-ring-fill {
  fill: none;
  stroke: #543AE7;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.5s ease;
}

/* Modern Progress */
.progress-modern {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.progress-ring-modern {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

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

.progress-bg-modern {
  fill: none;
  stroke: var(--gray-200);
}

.progress-fill-modern {
  fill: none;
  stroke: var(--primary-500);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s ease;
}

.progress-center-modern {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.progress-percent {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-600);
  line-height: 1;
}

.progress-info-modern {
  flex: 1;
}

.target-modern {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 0.5rem;
}

.deadline-modern {
  font-size: 0.875rem;
  color: var(--gray-600);
}

.progress-bar-modern {
  width: 100%;
  height: 6px;
  background: var(--gray-200);
  border-radius: 3px;
  overflow: hidden;
}

/* ===================================
   3.5 STATS & METRICS
   =================================== */

/* Stats */
.stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(84, 58, 231, 0.06);
  border: 1px solid rgba(84, 58, 231, 0.1);
  border-radius: 12px;
}

.stat-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.stat-content {
  flex: 1;
}

.stat-number {
  font-size: 1.2rem;
  font-weight: 700;
  color: #543AE7;
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: #343a40;
  margin-top: 2px;
}

/* Modern Stats */
.stats-modern {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.stat-card-modern {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: blur(20px);
}

.stat-icon-modern {
  font-size: 2rem;
}

.btn-icon {
  display: inline-block;
  line-height: 1;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

/* ===================================
   3.6 FORMS
   =================================== */

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #2c2c2c;
  font-size: 0.95rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
  font-family: inherit;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: #543AE7;
  box-shadow: 0 0 0 3px rgba(84, 58, 231, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-group small {
  display: block;
  margin-top: 5px;
  font-size: 0.8rem;
  color: #6c757d;
  opacity: 0.9;
}

/* ===================================
   3.7 NOTIFICATIONS
   =================================== */

/* Modern Notifications */
.notifications-modern {
  margin-bottom: 2rem;
}

.notification-modern {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  position: relative;
  animation: slideIn 0.3s ease;
}

.notification-success-modern {
  background: var(--success-50);
  border: 1px solid var(--success-200);
  color: var(--success-600);
}

.notification-info-modern {
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  color: var(--primary-600);
}

.notification-warning-modern {
  background: var(--warning-50);
  border: 1px solid var(--warning-200);
  color: var(--warning-600);
}

.notification-urgent-modern {
  background: var(--error-50);
  border: 1px solid var(--error-200);
  color: var(--error-600);
}

.notification-icon-modern {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.notification-content-modern {
  flex: 1;
}

.notification-title {
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  font-size: 0.875rem;
}

.notification-message {
  margin: 0;
  font-size: 0.875rem;
  opacity: 0.9;
}

.notification-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: inherit;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.notification-close:hover {
  opacity: 1;
}

/* Toast Notifications */
.notification-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  max-width: 300px;
}

.notification-toast.show {
  transform: translateX(0);
}

.notification-toast.success {
  border-left: 4px solid #28a745;
}

.notification-toast.error {
  border-left: 4px solid #dc3545;
}

.notification-toast.info {
  border-left: 4px solid #543AE7;
}

.notification-message {
  font-weight: 500;
  color: #2c2c2c;
}

/* ===================================
   3.8 BADGES & STATUS
   =================================== */

.target-badge {
  background: #543AE7;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

.status-badge {
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-block;
}

.status-badge.completed {
  background: #28a745;
  color: #ffffff;
}

.status-badge.failed {
  background: #dc3545;
  color: #ffffff;
}

.status-badge.active {
  background: #543AE7;
  color: #ffffff;
}

.auto-tracking-badge {
  background: #28a745;
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.8rem;
}

.achievement-badge-modern {
  font-size: 1.5rem;
}

/* ===================================
   3.9 ALERTS
   =================================== */

.alert {
  font-size: 14px;
  background-color: #e5e4f6;
  border: 1px solid #d1d0e8;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  color: #2c2c2c;
}

/* ===================================
   3.10 INSIGHTS
   =================================== */

.insights-modern {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.insight-modern {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-weight: 500;
  flex: 1;
  min-width: 280px;
  max-width: 400px;
  transition: all 0.2s ease;
}

.insight-high-modern {
  background: var(--error-50);
  color: var(--error-600);
  border: 1px solid var(--error-500);
}

.insight-medium-modern {
  background: var(--warning-50);
  color: var(--warning-600);
  border: 1px solid var(--warning-500);
}

.insight-icon-modern {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.insight-message-modern {
  flex: 1;
}

/* ===================================
   3.11 LISTS & ITEMS
   =================================== */

/* Topics List */
.topics-list-modern {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.topic-item-modern {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: 12px;
  border: 1px solid var(--gray-200);
}

.topic-info-modern {
  flex: 1;
}

.topic-name-modern {
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.25rem;
}

.topic-accuracy-modern {
  font-size: 0.875rem;
  color: var(--gray-600);
}

.topic-progress-modern {
  width: 80px;
}

/* Recommendations List */
.recommendations-list-modern {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.recommendation-item-modern {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid;
  transition: all 0.2s ease;
}

.recommendation-high-modern {
  background: var(--error-50);
  border-color: var(--error-200);
}

.recommendation-medium-modern {
  background: var(--warning-50);
  border-color: var(--warning-200);
}

.recommendation-low-modern {
  background: var(--success-50);
  border-color: var(--success-200);
}

.recommendation-icon-modern {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.recommendation-content-modern {
  flex: 1;
}

.recommendation-title-modern {
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.25rem;
}

.recommendation-message-modern {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.4;
}

/* Action Items */
.action-item-modern {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  text-decoration: none;
  color: var(--gray-700);
  transition: all 0.2s ease;
}

.action-item-modern:hover {
  background: var(--primary-50);
  border-color: var(--primary-200);
  color: var(--primary-700);
  transform: translateY(-2px);
}

.action-icon-modern {
  font-size: 2rem;
}

.action-text-modern {
  font-weight: 600;
  font-size: 0.875rem;
  text-align: center;
}

/* ===================================
   3.12 SECTIONS
   =================================== */

/* Features Section */
.features-section {
  padding: clamp(30px, 8vw, 60px) 15px;
}

/* Subjects Section */
.subjects-section {
  background: #e9ecef;
  padding: clamp(30px, 8vw, 60px) 15px;
  text-align: center;
}

.subjects-section .section-title {
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 600;
  margin-bottom: 30px;
  color: var(--primary-blue);
}

.subject-box {
  display: block;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  text-decoration: none;
  margin-bottom: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.subject-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.1);
}

.subject-icon {
  font-size: clamp(1.5rem, 5vw, 2rem);
  margin-bottom: 8px;
  color: var(--primary-blue);
}

.subject-box h4 {
  font-size: clamp(1rem, 3.5vw, 1.2rem);
  color: #333;
  margin: 0;
}

/* ===================================
   4. PAGE-SPECIFIC STYLES
   =================================== */

/* ===================================
   4.1 DASHBOARD MODERN
   =================================== */

.dashboard-modern {
  margin-bottom: 3rem;
}

/* ===================================
   4.2 COMMITMENT PAGE
   =================================== */

.hero-section {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #667eea 100%);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 15px;
  text-align: center;
  color: white;
  box-shadow: 0 10px 30px rgba(84, 58, 231, 0.3);
}

.progress-status {
  text-align: center;
  margin-top: 15px;
}

.notes-text {
  color: #2c2c2c;
  line-height: 1.6;
  margin: 0;
  font-style: italic;
}

.form-section {
  margin-bottom: 30px;
}

.auto-tracking-info {
  background: rgba(40, 167, 69, 0.08);
  border: 1px solid rgba(40, 167, 69, 0.2);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
}

.auto-tracking-info p {
  margin: 0 0 15px 0;
  font-weight: 600;
  color: #2c2c2c;
}

.auto-tracking-info ul {
  margin: 0;
  padding-left: 20px;
}

.auto-tracking-info li {
  margin-bottom: 8px;
  color: #2c2c2c;
  line-height: 1.5;
}

.correction-section {
  border-top: 1px solid #e0e0e0;
  padding-top: 25px;
}

.correction-section h4 {
  margin: 0 0 10px 0;
  color: #543AE7;
  font-size: 1.1rem;
  font-weight: 600;
}

.correction-note {
  margin: 0 0 20px 0;
  color: #6c757d;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ===================================
   4.3 ARTICLES
   =================================== */

.article-container {
  padding: clamp(20px, 6vw, 40px) 15px;
}

.article-breadcrumb .breadcrumb {
  background-color: transparent;
  padding: 0;
  margin-bottom: 15px;
  font-size: clamp(0.85rem, 3vw, 1rem);
}

.article-breadcrumb .breadcrumb-item a {
  color: #407bff;
  text-decoration: none;
}

.article-breadcrumb .breadcrumb-item a:hover {
  text-decoration: underline;
}

.article-breadcrumb .breadcrumb-item.active {
  color: #666;
}

.article-content {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  padding: clamp(15px, 5vw, 30px);
}

.article-content h1 {
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  font-weight: 700;
  color: #003087;
  margin-bottom: 15px;
}

.article-content h2 {
  font-size: clamp(1.3rem, 4.5vw, 1.8rem);
  font-weight: 600;
  color: #003087;
  margin-top: 25px;
  margin-bottom: 10px;
}

.article-content h3 {
  font-size: clamp(1.1rem, 4vw, 1.4rem);
  font-weight: 600;
  color: #333;
  margin-top: 20px;
  margin-bottom: 8px;
}

.article-content p {
  font-size: clamp(0.9rem, 3.5vw, 1.1rem);
  line-height: 1.8;
  color: #444;
  margin-bottom: 15px;
}

.article-content ul,
.article-content ol {
  font-size: clamp(0.9rem, 3.5vw, 1.1rem);
  line-height: 1.8;
  color: #444;
  margin-bottom: 15px;
  padding-left: 20px;
}

.article-content ul li,
.article-content ol li {
  margin-bottom: 8px;
}

.article-content hr {
  border: 0;
  border-top: 1px solid #ddd;
  margin: 20px 0;
}

.article-content a {
  color: #407bff;
  text-decoration: none;
}

.article-content a:hover {
  text-decoration: underline;
}

.article-sidebar {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  padding: 15px;
  margin-top: 20px;
}

.article-sidebar h3 {
  font-size: clamp(1.1rem, 4vw, 1.3rem);
  font-weight: 600;
  color: #003087;
  margin-bottom: 15px;
}

.article-sidebar ul {
  list-style: none;
  padding: 0;
}

.article-sidebar ul li {
  margin-bottom: 10px;
}

.article-sidebar ul li a {
  font-size: clamp(0.9rem, 3vw, 1rem);
  color: #407bff;
  text-decoration: none;
  display: block;
  padding: 4px 0;
}

.article-sidebar ul li a:hover {
  color: #003087;
  text-decoration: underline;
}

/* ===================================
   5. UTILITIES
   =================================== */

/* Text Utilities */
.text-center {
  text-align: center;
}

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

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

/* Margin Utilities */
.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

.ml-20 {
  margin-left: 20px;
}

.mr-20 {
  margin-right: 20px;
}

/* Padding Utilities */
.p-20 {
  padding: 20px;
}

.pt-20 {
  padding-top: 20px;
}

.pb-20 {
  padding-bottom: 20px;
}

.pl-20 {
  padding-left: 20px;
}

.pr-20 {
  padding-right: 20px;
}

/* Display Utilities */
.hidden {
  display: none;
}

.block {
  display: block;
}

.inline {
  display: inline;
}

.inline-block {
  display: inline-block;
}

.flex {
  display: flex;
}

.grid {
  display: grid;
}

/* ===================================
   6. ANIMATIONS
   =================================== */

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

/* ===================================
   7. RESPONSIVE DESIGN
   =================================== */

/* Tablet and smaller desktop */
@media (max-width: 768px) {
  .header-container {
    padding: 1rem;
  }
  
  .hero-modern {
    padding: 3rem 1rem;
  }
  
  .hero-title-modern {
    font-size: 2.5rem;
  }
  
  .hero-actions-modern {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-primary-modern,
  .cta-secondary-modern {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  
  .stats-modern {
    flex-direction: column;
    align-items: center;
  }
  
  .main-container {
    padding: 0 1rem;
  }
  
  .cards-grid-modern {
    grid-template-columns: 1fr;
  }
  
  .insights-modern {
    flex-direction: column;
  }
  
  .insight-modern {
    min-width: auto;
    max-width: none;
  }
  
  .actions-grid-modern {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-greeting h1 {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .progress-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .card-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .notification-toast {
    right: 10px;
    left: 10px;
    max-width: none;
  }
  
  .custom-navbar {
    padding: 8px 10px;
  }
  
  .hero-section {
    padding: 30px 10px;
  }
  
  .feature-box,
  .subject-box,
  .article-content,
  .article-sidebar {
    padding: 15px;
  }
  
  .article-sidebar {
    margin-top: 15px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .hero-title-modern {
    font-size: 2rem;
  }
  
  .hero-subtitle-modern {
    font-size: 1rem;
  }
  
  .card-modern {
    padding: 1rem;
  }
  
  .actions-grid-modern {
    grid-template-columns: 1fr;
  }
  
  .progress-modern {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-section {
    padding: 30px 20px;
  }
  
  .dashboard-card, .form-card {
    padding: 20px;
  }
  
  .progress-stats, .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Large screens */
@media (min-width: 769px) {
  .feature-box,
  .subject-box {
    margin-bottom: 30px;
  }
}

/* Small screens */
@media (max-width: 576px) {
  .custom-navbar {
    padding: 8px 10px;
  }
  
  .hero-section {
    padding: 30px 10px;
  }
  
  .feature-box,
  .subject-box,
  .article-content,
  .article-sidebar {
    padding: 15px;
  }
  
  .article-sidebar {
    margin-top: 15px;
  }
}

/* ===================================
   4.4 TRAINING TASK PAGE
   =================================== */

/* Progress Section */
.progress-section-modern {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}

.progress-header-modern {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.progress-title-modern {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-800);
  margin: 0;
}

.settings-btn-modern {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--primary-50);
  color: var(--primary-600);
  border: 1px solid var(--primary-200);
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.settings-btn-modern .btn-icon {
  font-size: 1.1rem;
}

.settings-btn-modern:hover {
  background: var(--primary-100);
  transform: translateY(-1px);
}

.progress-stats-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

/* Task Section */
.task-section-modern {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  margin-bottom: 2rem;
}

.task-header-modern {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  gap: 1rem;
}

.task-info-modern {
  flex: 1;
}

.task-number-modern {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-600);
  margin-bottom: 0.5rem;
}

.task-category-modern {
  font-size: 1rem;
  color: var(--gray-600);
  font-weight: 500;
}

.task-actions-modern {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.task-action-btn-modern {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: white;
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.task-action-btn-modern .btn-icon {
  font-size: 1.1rem;
}

.task-action-btn-modern:hover {
  background: var(--gray-50);
  transform: translateY(-1px);
}

.task-action-btn-modern.hint-btn {
  color: var(--warning-600);
  border-color: var(--warning-200);
  background: var(--warning-50);
}

.task-action-btn-modern.hint-btn:hover {
  background: var(--warning-100);
}

.task-action-btn-modern.skip-btn {
  color: var(--gray-600);
  border-color: var(--gray-300);
}

/* Task Content */
.task-content-modern {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.task-statement-modern {
  background: var(--gray-50);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid var(--gray-200);
}

.task-text-modern {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--gray-800);
  margin-bottom: 1rem;
}

.task-image-modern {
  text-align: center;
}

.task-image-modern img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

/* Solution Section */
.solution-section-modern {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.solution-upload-modern {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.upload-area-modern {
  border: 2px dashed var(--primary-300);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  background: var(--primary-50);
  cursor: pointer;
  transition: all 0.2s ease;
}

.upload-area-modern:hover {
  border-color: var(--primary-500);
  background: var(--primary-100);
  transform: translateY(-2px);
}

.upload-icon-modern {
  font-size: 3rem;
  color: var(--primary-500);
  margin-bottom: 1rem;
}

.upload-icon-modern .btn-icon {
  font-size: 3rem;
}

.upload-text-modern h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-800);
  margin: 0 0 0.5rem 0;
}

.upload-text-modern p {
  color: var(--gray-600);
  margin: 0 0 1rem 0;
}

.upload-hint-modern {
  font-size: 0.875rem;
  color: var(--primary-600);
  font-weight: 500;
}

.file-name-modern {
  padding: 0.75rem 1rem;
  background: var(--success-50);
  border: 1px solid var(--success-200);
  border-radius: 8px;
  color: var(--success-700);
  font-weight: 500;
  text-align: center;
}

.hint-container-modern {
  background: var(--warning-50);
  border: 1px solid var(--warning-200);
  border-radius: 12px;
  padding: 1rem;
  color: var(--warning-700);
}

.submit-section-modern {
  display: flex;
  justify-content: center;
}

.submit-btn-modern {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--success-500);
  color: white;
  border: none;
  border-radius: 16px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.submit-btn-modern .btn-icon {
  font-size: 1.2rem;
}

.submit-btn-modern:hover {
  background: var(--success-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* No Task State */
.no-task-modern {
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}

.no-task-icon-modern {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.no-task-title-modern {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-800);
  margin: 0 0 1rem 0;
}

.no-task-message-modern {
  color: var(--gray-600);
  margin: 0 0 2rem 0;
  font-size: 1.1rem;
}

/* Modern Modals */
.modal-modern {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-content-modern {
  background: white;
  border-radius: 20px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header-modern {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--gray-200);
}

.modal-header-modern h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-800);
  margin: 0;
}

.modal-close-modern {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--gray-500);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.modal-close-modern:hover {
  background: var(--gray-100);
  color: var(--gray-700);
}

.modal-body-modern {
  padding: 1.5rem 2rem;
}

/* Settings Form */
.settings-form-modern {
  padding: 1.5rem 2rem;
}

.settings-group-modern {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.setting-item-modern {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.setting-item-modern:hover {
  background: var(--gray-50);
  border-color: var(--primary-300);
}

.setting-item-modern input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--primary-500);
}

.setting-content-modern {
  flex: 1;
}

.setting-title-modern {
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.25rem;
}

.setting-description-modern {
  font-size: 0.875rem;
  color: var(--gray-600);
}

.custom-tasks-modern {
  margin-bottom: 2rem;
}

.custom-tasks-modern h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
  margin: 0 0 1rem 0;
}

.task-numbers-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
  gap: 0.5rem;
}

.task-number-item-modern {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.task-number-item-modern input[type="checkbox"] {
  display: none;
}

.task-number-label-modern {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-weight: 500;
  color: var(--gray-700);
  transition: all 0.2s ease;
}

.task-number-item-modern input[type="checkbox"]:checked + .task-number-label-modern {
  background: var(--primary-500);
  color: white;
  border-color: var(--primary-500);
}

.modal-actions-modern {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.btn-secondary-modern {
  padding: 0.75rem 1.5rem;
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
  border-radius: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary-modern:hover {
  background: var(--gray-200);
}

/* Progress Modal */
.progress-content-modern {
  padding: 1.5rem 2rem;
}

.progress-summary-modern {
  text-align: center;
  font-size: 1.1rem;
  color: var(--gray-700);
  margin-bottom: 1rem;
}

.progress-bar-container-modern {
  background: var(--gray-200);
  border-radius: 10px;
  height: 8px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.progress-bar-modern {
  height: 100%;
  background: var(--primary-500);
  transition: width 0.3s ease;
}

.task-status-list-modern {
  margin-bottom: 1.5rem;
}

.mini-game-modern {
  text-align: center;
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--gray-50);
  border-radius: 12px;
}

.mini-game-modern h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-800);
  margin: 0 0 0.5rem 0;
}

.mini-game-modern p {
  color: var(--gray-600);
  margin: 0 0 1rem 0;
}

.game-area-modern {
  position: relative;
  width: 100%;
  height: 150px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  background: white;
  margin-bottom: 1rem;
}

.game-score-modern {
  font-weight: 500;
  color: var(--gray-700);
  margin: 0;
}

/* Preview Modal */
.preview-content-modern {
  padding: 1.5rem 2rem;
}

.preview-gallery-modern {
  margin-bottom: 1rem;
  text-align: center;
}

.preview-gallery-modern img {
  max-width: 100%;
  max-height: 400px;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

.preview-controls-modern {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.preview-btn-modern {
  padding: 0.5rem 1rem;
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.2s ease;
}

.preview-btn-modern:hover:not(:disabled) {
  background: var(--gray-200);
}

.preview-btn-modern:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.image-counter-modern {
  font-weight: 500;
  color: var(--gray-700);
}

/* Responsive Design for Training Task */
@media (max-width: 768px) {
  .task-content-modern {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .task-header-modern {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .task-actions-modern {
    width: 100%;
    justify-content: flex-start;
  }
  
  .progress-stats-modern {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .modal-content-modern {
    margin: 1rem;
    max-height: calc(100vh - 2rem);
  }
  
  .task-numbers-modern {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 480px) {
  .progress-section-modern,
  .task-section-modern {
    padding: 1.5rem;
  }
  
  .progress-stats-modern {
    grid-template-columns: 1fr;
  }
  
  .task-number-modern {
    font-size: 1.5rem;
  }
  
  .upload-area-modern {
    padding: 1.5rem;
  }
  
  .upload-icon-modern {
    font-size: 2rem;
  }
  
  .modal-header-modern,
  .modal-body-modern,
  .settings-form-modern,
  .progress-content-modern,
  .preview-content-modern {
    padding: 1rem 1.5rem;
  }
}

/* ===================================
   MODERN AUTH COMPONENTS
   =================================== */

/* Auth Container */
.auth-container-modern {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: 2rem;
}

.auth-card-modern {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 450px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.auth-header-modern {
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
  color: var(--white);
  padding: 2rem;
  text-align: center;
}

.auth-title-modern {
  margin: 0 0 0.5rem 0;
  font-size: 1.75rem;
  font-weight: 600;
}

.auth-subtitle-modern {
  margin: 0;
  opacity: 0.9;
  font-size: 1rem;
}

.auth-body-modern {
  padding: 2rem;
}

.auth-form-modern {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group-modern {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label-modern {
  font-weight: 500;
  color: var(--gray-700);
  font-size: 0.875rem;
}

.form-input-modern {
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s ease;
  background: var(--white);
}

.form-input-modern:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px var(--primary-100);
}

.auth-submit-modern {
  width: 100%;
  padding: 0.875rem;
  font-size: 1rem;
  font-weight: 500;
}

.auth-footer-modern {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
}

.auth-link-modern {
  color: var(--primary-600);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.auth-link-modern:hover {
  color: var(--primary-700);
  text-decoration: underline;
}

/* Captcha Block */
.captcha-block-modern {
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  border-radius: 8px;
  padding: 1rem;
}

.captcha-question-modern {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
  color: var(--primary-700);
}

.captcha-icon {
  font-size: 1.25rem;
}

/* ===================================
   LIMIT PAGE COMPONENTS
   =================================== */

.limit-container-modern {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: 2rem;
}

.limit-card-modern {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
  padding: 3rem;
  text-align: center;
  max-width: 600px;
  width: 100%;
  border: 1px solid var(--gray-200);
}

.limit-header-modern {
  margin-bottom: 2rem;
}

.limit-icon-modern {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: block;
}

.limit-title-modern {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-800);
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
}

.limit-subtitle-modern {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin: 0;
}

.limit-features-modern {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.feature-item-modern {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  transition: all 0.2s ease;
}

.feature-item-modern:hover {
  background: var(--primary-50);
  border-color: var(--primary-200);
  transform: translateY(-2px);
}

.feature-icon-modern {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.feature-text-modern {
  font-size: 1rem;
  color: var(--gray-700);
  font-weight: 500;
}

.limit-actions-modern {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.limit-actions-modern .action-btn-modern {
  min-width: 140px;
}

/* ===================================
   RESPONSIVE DESIGN FOR AUTH & LIMIT
   =================================== */

@media (max-width: 768px) {
  .auth-container-modern,
  .limit-container-modern {
    padding: 1rem;
  }
  
  .auth-card-modern {
    max-width: 100%;
  }
  
  .auth-header-modern,
  .auth-body-modern {
    padding: 1.5rem;
  }
  
  .limit-card-modern {
    padding: 2rem;
  }
  
  .limit-title-modern {
    font-size: 1.5rem;
  }
  
  .limit-actions-modern {
    flex-direction: column;
  }
  
  .limit-actions-modern .action-btn-modern {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .auth-header-modern,
  .auth-body-modern {
    padding: 1rem;
  }
  
  .limit-card-modern {
    padding: 1.5rem;
  }
  
  .limit-icon-modern {
    font-size: 3rem;
  }
  
  .feature-item-modern {
    padding: 0.75rem;
  }
  
  .feature-icon-modern {
    font-size: 1.25rem;
  }
}

/* ===================================
   COMMUNITY PAGE COMPONENTS
   =================================== */

/* Hero Section for Community */
.hero-modern {
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
  border-radius: 20px;
  padding: 3rem 2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.hero-content-modern {
  position: relative;
  z-index: 1;
}

.hero-title-modern {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  line-height: 1.2;
}

.hero-subtitle-modern {
  font-size: 1.125rem;
  opacity: 0.9;
  margin: 0;
  max-width: 600px;
  margin: 0 auto;
}

/* Post Form Card */
.post-form-card-modern {
  margin-bottom: 2rem;
}

.post-form-modern {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.post-textarea-modern {
  width: 100%;
  min-height: 120px;
  padding: 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
  transition: all 0.2s ease;
  background: var(--white);
}

.post-textarea-modern:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px var(--primary-100);
}

.task-reference-modern {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  border-radius: 8px;
  color: var(--primary-700);
  font-size: 0.875rem;
}

.task-reference-icon {
  font-size: 1rem;
}

.form-actions-modern {
  display: flex;
  justify-content: flex-end;
}

/* Posts Section */
.posts-section-modern {
  margin-top: 2rem;
}

.posts-header-modern {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.posts-title-modern {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-800);
  margin: 0;
}

.posts-count-modern {
  background: var(--gray-100);
  color: var(--gray-600);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

.posts-grid-modern {
  display: grid;
  gap: 1.5rem;
}

.post-card-modern {
  transition: all 0.2s ease;
}

.post-card-modern:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.post-header-modern {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.post-author-modern {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar-modern {
  width: 40px;
  height: 40px;
  background: var(--primary-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.author-name-modern {
  font-weight: 600;
  color: var(--gray-800);
  font-size: 0.875rem;
}

.post-date-modern {
  color: var(--gray-500);
  font-size: 0.75rem;
}

.post-task-modern {
  flex-shrink: 0;
}

.task-badge-modern {
  background: var(--primary-100);
  color: var(--primary-700);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.post-content-modern {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: var(--gray-700);
}

.post-actions-modern {
  display: flex;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
}

.action-btn-small-modern {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  color: var(--gray-700);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn-small-modern:hover {
  background: var(--gray-200);
  border-color: var(--gray-400);
}

/* Empty State */
.empty-state-modern {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--gray-50);
  border-radius: 16px;
  border: 2px dashed var(--gray-300);
}

.empty-icon-modern {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: block;
}

.empty-title-modern {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-800);
  margin: 0 0 0.5rem 0;
}

.empty-message-modern {
  color: var(--gray-600);
  margin: 0 0 1.5rem 0;
}

/* Responsive Design for Community */
@media (max-width: 768px) {
  .hero-modern {
    padding: 2rem 1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-title-modern {
    font-size: 2rem;
  }
  
  .hero-subtitle-modern {
    font-size: 1rem;
  }
  
  .posts-header-modern {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .post-header-modern {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .post-actions-modern {
    flex-wrap: wrap;
  }
  
  .empty-state-modern {
    padding: 2rem 1rem;
  }
  
  .empty-icon-modern {
    font-size: 3rem;
  }
}

@media (max-width: 480px) {
  .hero-modern {
    padding: 1.5rem 1rem;
  }
  
  .hero-title-modern {
    font-size: 1.75rem;
  }
  
  .post-textarea-modern {
    min-height: 100px;
  }
  
  .action-btn-small-modern {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
  }
}

/* ===================================
   COMMITMENT PAGE COMPONENTS
   =================================== */

/* Commitment Form Section */
.commitment-form-section-modern {
  max-width: 600px;
  margin: 0 auto;
}

.commitment-form-card-modern {
  margin-top: 2rem;
}

.commitment-form-modern {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Target Badge */
.target-badge-modern {
  background: var(--primary-100);
  color: var(--primary-700);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Progress Ring */
.progress-modern {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 1.5rem 0;
}

.progress-ring-modern {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-bg-modern {
  fill: none;
  stroke: var(--gray-200);
}

.progress-fill-modern {
  fill: none;
  stroke: var(--primary-500);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.5s ease;
}

.progress-center-modern {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.progress-percent {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-600);
}

.progress-info-modern {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.target-modern {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-800);
}

.deadline-modern {
  font-size: 0.875rem;
  color: var(--gray-600);
}

/* Stats Grid */
.stats-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.stat-item-modern {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: 12px;
  border: 1px solid var(--gray-200);
}

.stat-icon-modern {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.stat-content-modern {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-800);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--gray-600);
}

/* Responsive Design for Commitment */
@media (max-width: 768px) {
  .progress-modern {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  
  .stats-grid-modern {
    grid-template-columns: 1fr;
  }
  
  .commitment-form-section-modern {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .progress-ring-modern svg {
    width: 100px;
    height: 100px;
  }
  
  .progress-percent {
    font-size: 1.25rem;
  }
  
  .target-modern {
    font-size: 1rem;
  }
}

/* ===================================
   DIAGNOSTIC PAGE COMPONENTS
   =================================== */

/* Level Info Card */
.level-info-card-modern {
  margin-bottom: 2rem;
}

.level-description-modern {
  font-size: 1rem;
  color: var(--gray-700);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.levels-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.level-item-modern {
  padding: 1.5rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.level-item-modern:hover {
  background: var(--primary-50);
  border-color: var(--primary-200);
  transform: translateY(-2px);
}

.level-header-modern {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.level-icon-modern {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.level-title-modern {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-800);
  margin: 0;
}

.level-description-modern {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.5;
  margin: 0;
}

.level-note-modern {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  border-radius: 8px;
  color: var(--primary-700);
  font-size: 0.875rem;
  font-weight: 500;
}

.note-icon {
  font-size: 1rem;
}

/* Progress Section */
.progress-section-modern {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}

.progress-header-modern {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.progress-info-modern {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.progress-text-modern {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-800);
}

.progress-count-modern {
  font-size: 0.875rem;
  color: var(--gray-600);
}

.progress-circle-modern {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.progress-circle-inner-modern {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.progress-number-modern {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-600);
  line-height: 1;
  text-align: center;
}

.progress-label-modern {
  font-size: 0.75rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
  text-align: center;
}

.progress-ring-modern {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
  max-width: 120px;
  max-height: 120px;
}

.progress-ring-bg-modern {
  fill: none;
  stroke: var(--gray-200);
}

.progress-ring-fill-modern {
  fill: none;
  stroke: var(--primary-500);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.5s ease;
}

/* Question Container */
.question-container-modern {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}

.question-header-modern {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-200);
}

.question-number-modern {
  width: 40px;
  height: 40px;
  background: var(--primary-500);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.125rem;
}

.question-meta-modern {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.question-type-modern {
  font-size: 0.875rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.question-topic-modern {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-700);
}

.question-content-modern {
  margin-bottom: 2rem;
  line-height: 1.6;
  color: var(--gray-800);
}

/* Answer Section */
.answer-section-modern {
  border-top: 1px solid var(--gray-200);
  padding-top: 1.5rem;
}

.test-answers-modern {
  margin-bottom: 1.5rem;
}

.answer-options-modern {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.answer-option-modern {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--white);
}

.answer-option-modern:hover {
  border-color: var(--primary-300);
  background: var(--primary-50);
}

.answer-option-modern.selected {
  border-color: var(--primary-500);
  background: var(--primary-100);
}

.answer-option-modern input[type="radio"] {
  margin: 0;
}

.answer-option-modern label {
  cursor: pointer;
  font-weight: 500;
  color: var(--gray-700);
  margin: 0;
}

.input-answer-modern {
  margin-bottom: 1.5rem;
}

.answer-actions-modern {
  display: flex;
  justify-content: flex-end;
}

/* Responsive Design for Diagnostic */
@media (max-width: 768px) {
  .progress-header-modern {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  
  .levels-grid-modern {
    grid-template-columns: 1fr;
  }
  
  .question-header-modern {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .answer-actions-modern {
    justify-content: center;
  }
  
  .progress-section-modern,
  .question-container-modern {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .progress-section-modern,
  .question-container-modern {
    padding: 1rem;
  }
  
  .progress-circle-modern {
    width: 80px;
    height: 80px;
  }
  
  .progress-circle-modern svg {
    width: 80px;
    height: 80px;
  }
  
  .progress-number-modern {
    font-size: 1.125rem;
  }
  
  .progress-label-modern {
    font-size: 0.625rem;
  }
  
  .question-number-modern {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}

/* ===================================
   LANDING PAGE COMPONENTS
   =================================== */

/* Landing Hero Section */
.landing-hero-modern {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-bottom: 4rem;
}

.hero-background-modern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

.hero-gradient-modern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 50%, var(--primary-700) 100%);
}

.hero-pattern-modern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hero-pattern" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="2" fill="white" opacity="0.1"/><circle cx="10" cy="10" r="1" fill="white" opacity="0.05"/><circle cx="40" cy="40" r="1" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23hero-pattern)"/></svg>');
  opacity: 0.3;
}

.hero-content-modern {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text-section-modern {
  color: var(--white);
}

.hero-title-modern {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1.5rem 0;
}

.hero-subtitle-modern {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  opacity: 0.9;
  margin: 0 0 2rem 0;
  line-height: 1.6;
}

.cta-primary-modern {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--white);
  color: var(--primary-600);
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.cta-primary-modern:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  color: var(--primary-700);
}

.cta-icon {
  font-size: 1.25rem;
}

.hero-image-section-modern {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-modern {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
}

/* Features Section */
.features-section-modern {
  padding: 4rem 0;
  background: var(--gray-50);
}

.features-container-modern {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.features-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card-modern {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}

.feature-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.feature-icon-modern {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
}

.feature-title-modern {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-800);
  margin: 0 0 1rem 0;
}

.feature-description-modern {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
}

/* Responsive Design for Landing */
@media (max-width: 768px) {
  .landing-hero-modern {
    min-height: 70vh;
    margin-bottom: 3rem;
  }
  
  .hero-content-modern {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .hero-title-modern {
    font-size: 2.5rem;
  }
  
  .hero-subtitle-modern {
    font-size: 1.25rem;
  }
  
  .features-section-modern {
    padding: 3rem 0;
  }
  
  .features-grid-modern {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .feature-card-modern {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .landing-hero-modern {
    min-height: 60vh;
  }
  
  .hero-content-modern {
    padding: 0 1rem;
  }
  
  .hero-title-modern {
    font-size: 2rem;
  }
  
  .hero-subtitle-modern {
    font-size: 1.125rem;
  }
  
  .cta-primary-modern {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
  
  .features-container-modern {
    padding: 0 1rem;
  }
  
  .feature-card-modern {
    padding: 1.5rem 1rem;
  }
  
  .feature-icon-modern {
    font-size: 2.5rem;
  }
  
  .feature-title-modern {
    font-size: 1.25rem;
  }
}

/* ===================================
   CONFIRMATION PAGE COMPONENTS
   =================================== */

/* Confirmation Container */
.confirmation-container-modern {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: 2rem;
}

.confirmation-card-modern {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
  max-width: 600px;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.confirmation-header-modern {
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
  color: var(--white);
  padding: 2rem;
  text-align: center;
}

.confirmation-icon-modern {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.confirmation-title-modern {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.confirmation-subtitle-modern {
  margin: 0;
  opacity: 0.9;
  font-size: 1rem;
}

.confirmation-content-modern {
  padding: 2rem;
}

.confirmation-message-modern {
  text-align: center;
  font-size: 1.125rem;
  color: var(--gray-700);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.confirmation-action-modern {
  text-align: center;
  margin-bottom: 2rem;
}

.telegram-btn-modern {
  background: var(--primary-500);
  color: var(--white);
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.telegram-btn-modern:hover {
  background: var(--primary-600);
  color: var(--white);
}

/* Command Block */
.command-block-modern {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
  padding: 1rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
}

.command-code-modern {
  font-family: 'JetBrains Mono', monospace;
  background: var(--white);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--gray-300);
  font-size: 0.875rem;
  color: var(--gray-800);
  flex: 1;
}

.copy-btn-modern {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--primary-500);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-btn-modern:hover {
  background: var(--primary-600);
}

.copy-icon {
  font-size: 1rem;
}

/* Confirmation Status */
.confirmation-status-modern {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
}

.status-message-modern {
  font-size: 1rem;
  color: var(--gray-700);
  margin: 0 0 0.5rem 0;
}

.status-note-modern {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin: 0 0 1.5rem 0;
}

/* Spinner */
.spinner-modern {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.spinner-circle-modern {
  width: 20px;
  height: 20px;
  border: 2px solid var(--gray-200);
  border-top: 2px solid var(--primary-500);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.spinner-text-modern {
  font-size: 0.875rem;
  color: var(--gray-600);
}

/* Responsive Design for Confirmation */
@media (max-width: 768px) {
  .confirmation-container-modern {
    padding: 1rem;
  }
  
  .confirmation-card-modern {
    max-width: 100%;
  }
  
  .confirmation-header-modern,
  .confirmation-content-modern {
    padding: 1.5rem;
  }
  
  .command-block-modern {
    flex-direction: column;
    align-items: stretch;
  }
  
  .copy-btn-modern {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .confirmation-header-modern,
  .confirmation-content-modern {
    padding: 1rem;
  }
  
  .confirmation-icon-modern {
    font-size: 2.5rem;
  }
  
  .confirmation-title-modern {
    font-size: 1.5rem;
  }
  
  .confirmation-message-modern {
    font-size: 1rem;
  }
  
  .telegram-btn-modern {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
}

/* ===================================
   GAMIFICATION STYLES
   =================================== */

.gamification-section-modern {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

/* Система жизней */
.lives-card-modern {
  position: relative;
  overflow: hidden;
}

.lives-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff6b6b, #ff8e8e, #ff6b6b);
  animation: pulse 2s infinite;
}

.lives-progress-bar-modern {
  width: 100%;
  height: 6px;
  background: rgba(255, 107, 107, 0.2);
  border-radius: 3px;
  margin-top: 8px;
  overflow: hidden;
}

.lives-progress-fill-modern {
  height: 100%;
  background: linear-gradient(90deg, #ff6b6b, #ff8e8e);
  border-radius: 3px;
  transition: width 0.3s ease;
  position: relative;
}

.lives-progress-fill-modern::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

.lives-refill-info-modern {
  margin-top: 4px;
  font-size: 12px;
  text-align: center;
}

.refill-time {
  color: #f59e0b;
  font-weight: 500;
}

.refill-ready {
  color: #10b981;
  font-weight: 600;
  animation: pulse 1s infinite;
}

/* Уровень и опыт */
.level-card-modern {
  position: relative;
  overflow: hidden;
}

.level-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #fbbf24, #f59e0b, #fbbf24);
  animation: shimmer 3s infinite;
}

.level-progress-bar-modern {
  width: 100%;
  height: 6px;
  background: rgba(251, 191, 36, 0.2);
  border-radius: 3px;
  margin-top: 8px;
  overflow: hidden;
}

.level-progress-fill-modern {
  height: 100%;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  border-radius: 3px;
  transition: width 0.3s ease;
  position: relative;
}

.level-progress-fill-modern::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 2s infinite;
}

.level-info-modern {
  margin-top: 4px;
  font-size: 12px;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 4px;
}

.xp-current {
  color: #f59e0b;
  font-weight: 600;
}

.xp-separator {
  color: #6b7280;
}

.xp-next {
  color: #6b7280;
}

/* Достижения */
.achievements-card-modern {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 24px;
  color: white;
  position: relative;
  overflow: hidden;
}

.achievements-card-modern::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

.achievements-progress-modern {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

.achievements-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.achievement-item-modern {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.achievement-item-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.achievement-item-modern.locked {
  opacity: 0.6;
  filter: grayscale(1);
}

.achievement-item-modern.unlocked {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.achievement-icon-modern {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  flex-shrink: 0;
}

.achievement-info-modern {
  flex: 1;
}

.achievement-title-modern {
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 14px;
}

.achievement-description-modern {
  font-size: 12px;
  opacity: 0.8;
  margin-bottom: 4px;
}

.achievement-reward-modern {
  font-size: 11px;
  color: #fbbf24;
  font-weight: 600;
}

/* Streak календарь */
.streak-calendar-card-modern {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  border-radius: 16px;
  padding: 24px;
  color: white;
  position: relative;
  overflow: hidden;
}

.streak-calendar-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="fire" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M10 0 L15 10 L10 20 L5 10 Z" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23fire)"/></svg>');
  opacity: 0.3;
}

.streak-info-modern {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

.calendar-grid-modern {
  display: grid;
  grid-template-columns: repeat(30, 1fr);
  gap: 2px;
  margin-top: 20px;
}

.calendar-day-modern {
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  position: relative;
  transition: all 0.3s ease;
}

.calendar-day-modern.active {
  background: rgba(255, 255, 255, 0.3);
}

.calendar-day-modern.streak {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.day-number {
  font-weight: 600;
  margin-bottom: 2px;
}

.day-activity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.activity-dots {
  display: flex;
  gap: 1px;
  flex-wrap: wrap;
  justify-content: center;
}

.activity-dot {
  width: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
}

.activity-dot.correct {
  background: #10b981;
}

/* Модальное окно достижений */
.achievements-modal-modern {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(10px);
}

.achievements-modal-content-modern {
  background: white;
  border-radius: 16px;
  max-width: 800px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header-modern {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-close-modern {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.modal-close-modern:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-body-modern {
  padding: 24px;
  overflow-y: auto;
  max-height: 60vh;
}

.achievements-grid-full-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

/* Анимации для геймификации */
@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Responsive Design для геймификации */
@media (max-width: 768px) {
  .gamification-section-modern {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .achievements-grid-modern {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
  }
  
  .calendar-grid-modern {
    grid-template-columns: repeat(15, 1fr);
  }
  
  .achievements-modal-content-modern {
    margin: 20px;
    max-width: calc(100% - 40px);
  }
  
  .achievements-grid-full-modern {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .achievements-card-modern,
  .streak-calendar-card-modern {
    padding: 16px;
  }
  
  .achievement-item-modern {
    padding: 12px;
    gap: 8px;
  }
  
  .achievement-icon-modern {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
  
  .calendar-day-modern {
    font-size: 8px;
  }
  
  .activity-dot {
    width: 1px;
    height: 1px;
  }
}

/* ===================================
   DIAGNOSTIC PAGE STYLES
   =================================== */

/* Стили для текста вопроса */
.question-text-modern {
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  margin-bottom: 20px;
  padding: 16px;
  background: var(--white);
  border-radius: var(--border-radius);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

/* Стили для изображения вопроса */
.question-image-modern {
  margin: 20px 0;
  text-align: center;
}

.question-image-modern img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}

/* Стили для карточки результатов */
.results-card-modern {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  margin: 24px 0;
}

.results-summary-modern {
  margin-bottom: 24px;
}

.results-summary-modern h4 {
  color: var(--gray-800);
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 600;
}

.results-summary-modern p {
  margin-bottom: 8px;
  color: var(--gray-700);
}

.results-summary-modern ul {
  margin: 12px 0;
  padding-left: 20px;
}

.results-summary-modern li {
  margin-bottom: 8px;
  color: var(--gray-700);
}

.results-actions-modern {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.results-actions-modern .action-btn-modern {
  flex: 1;
  min-width: 200px;
  justify-content: center;
}

/* Стили для уведомлений об ошибках */
.notification-error-modern {
  background: var(--error-50);
  border: 1px solid var(--error-500);
  color: var(--error-600);
}

.notification-error-modern .notification-icon-modern {
  color: var(--error-500);
}

/* Компактные стили для диагностики */
.diagnostic-container {
  padding: 0 1rem !important;
}

.diagnostic-container .hero-section {
  margin-bottom: 15px !important;
}

.diagnostic-container .hero-modern {
  margin-bottom: 15px !important;
}

.diagnostic-container .card-modern {
  margin-bottom: 15px !important;
}

.diagnostic-container .level-info-card-modern {
  margin-bottom: 15px !important;
}

.diagnostic-container .progress-section-modern {
  margin-bottom: 15px !important;
}

.diagnostic-container .question-container-modern {
  margin-bottom: 15px !important;
}

.diagnostic-container section {
  margin-bottom: 15px !important;
}

.diagnostic-container > * {
  margin-bottom: 15px !important;
}

.diagnostic-container > *:last-child {
  margin-bottom: 0 !important;
}

/* Адаптивность для диагностики */
@media (max-width: 768px) {
  .question-text-modern {
    font-size: 14px;
    padding: 12px;
  }
  
  .results-actions-modern {
    flex-direction: column;
  }
  
  .results-actions-modern .action-btn-modern {
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .question-text-modern {
    font-size: 13px;
    padding: 10px;
  }
  
  .question-image-modern img {
    max-width: 95%;
  }
  
  .progress-circle-modern {
    width: 60px;
    height: 60px;
  }
  
  .progress-circle-modern svg {
    width: 60px;
    height: 60px;
  }
  
  .progress-number-modern {
    font-size: 1rem;
  }
  
  .progress-label-modern {
    font-size: 0.5rem;
  }
  
  .progress-header-modern {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 360px) {
  .progress-circle-modern {
    width: 50px;
    height: 50px;
  }
  
  .progress-circle-modern svg {
    width: 50px;
    height: 50px;
  }
  
  .progress-number-modern {
    font-size: 0.875rem;
  }
  
  .progress-label-modern {
    font-size: 0.45rem;
  }
  
  .progress-section-modern {
    padding: 1rem;
  }
}
