/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

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

.logo img {
  height: 36px;
  width: auto;
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  position: relative;
}

.nav-menu a:hover {
  color: var(--accent-blue);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-blue);
  transition: width var(--transition-fast);
}

.nav-menu a:hover::after {
  width: 100%;
}

.btn-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 6rem 0 4rem;
  background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
  text-align: center;
  margin-top: 0;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(0, 122, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 122, 255, 0.05) 0%, transparent 50%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

.hero h1 .accent-blue {
  color: var(--accent-blue);
}

.hero .subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
  line-height: 1.5;
}

.hero .cta-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Data Visualization - Compact Market Analysis */
.data-section {
  background: var(--secondary-bg);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  margin: var(--spacing-xl) 0;
  border: 1px solid var(--border-color);
}

.data-section .section-header {
  margin-bottom: var(--spacing-lg);
}

.data-section .section-title {
  font-size: 1.75rem;
  margin-bottom: var(--spacing-sm);
}

.data-section .section-subtitle {
  font-size: 1rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.metric-card {
  text-align: center;
  padding: var(--spacing-md);
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-blue);
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-blue);
  font-family: var(--font-mono);
}

.metric-label {
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-top: var(--spacing-xs);
}

.metric-change {
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: var(--spacing-xs);
}

/* CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Color Palette - Light Theme */
  --primary-bg: #ffffff;
  --secondary-bg: #f8f9fa;
  --tertiary-bg: #f1f3f5;
  --glass-bg: rgba(255, 255, 255, 0.8);
  --card-bg: rgba(255, 255, 255, 0.95);
  
  /* Text Colors */
  --text-primary: #1a1a1a;
  --text-secondary: #6c757d;
  --text-muted: #adb5bd;
  
  /* Accent Colors */
  --accent-blue: #007AFF;
  --accent-blue-light: #5AC8FA;
  --accent-blue-dark: #0051D5;
  --accent-black: #000000;
  --accent-green: #34C759;
  --accent-red: #FF3B30;
  --accent-orange: #FF9500;
  --accent-purple: #AF52DE;
  
  /* Border & Shadow */
  --border-color: #e9ecef;
  --border-light: #f8f9fa;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  --shadow-blue: 0 8px 32px rgba(0, 122, 255, 0.2);
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Typography */
  --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', system-ui, sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-smooth: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Dark Theme Variables */
[data-theme="dark"] {
  /* Color Palette - Dark Theme */
  --primary-bg: #0d1117;
  --secondary-bg: #161b22;
  --tertiary-bg: #21262d;
  --glass-bg: rgba(13, 17, 23, 0.8);
  --card-bg: rgba(33, 38, 45, 0.95);
  
  /* Text Colors */
  --text-primary: #f0f6fc;
  --text-secondary: #8b949e;
  --text-muted: #6e7681;
  
  /* Border & Shadow */
  --border-color: #30363d;
  --border-light: #21262d;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-blue: 0 8px 32px rgba(0, 122, 255, 0.3);
}

/* Base Styles */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background: var(--primary-bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* News TV Mode */
.news-tv-mode {
  width: 100%;
  transition: var(--transition-smooth);
}

/* Media Queries */
@media (max-width: 991px) {
  .news-tv-mode {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    max-width: none;
    box-sizing: border-box;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
  }
  
  .section .container .personalized-news .news-tv-mode {
    width: 100vw;
    max-width: none;
  }
}

/* Navigation */
nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  position: relative;
}

.nav-menu a:hover {
  color: var(--accent-blue);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-blue);
  transition: width var(--transition-fast);
}

.nav-menu a:hover::after {
  width: 100%;
}

/* Buttons */
.btn-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */
.section {
  padding: 1rem 0 2rem;
}

.section.first-section {
  padding-top: 0;
}

.section-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-blue);
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Data Visualization (Santiment-inspired) */
.data-section {
  background: var(--secondary-bg);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  margin: var(--spacing-xl) 0;
  border: 1px solid var(--border-color);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
}

.metric-card {
  text-align: center;
  padding: var(--spacing-lg);
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-blue);
}

.metric-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-blue);
  font-family: var(--font-mono);
}

.metric-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: var(--spacing-xs);
}

.metric-change {
  font-size: 1rem;
  font-weight: 500;
  margin-top: var(--spacing-xs);
}

.metric-change.positive {
  color: var(--accent-green);
}

.metric-change.negative {
  color: var(--accent-red);
}

/* Personalized News Section */
.personalized-news {
  background: var(--secondary-bg);
  border-radius: var(--radius-xl);
  padding: 5px;
  margin: var(--spacing-2xl) 0;
  border: 1px solid var(--border-color);
}

.news-feed-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.main-news-feed {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.news-tv-mode {
  background: var(--accent-black);
  color: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  position: relative;
  overflow: hidden;
}

.tv-header {
  display: flex;
  align-items: center;
  justify-content: between;
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.tv-logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--accent-blue);
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--accent-red);
  font-weight: 600;
  font-size: 0.875rem;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-red);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.news-ticker {
  background: var(--accent-blue);
  color: white;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  animation: scroll-ticker 30s linear infinite;
}

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

/* AI Agent Reports */
.ai-reports-section {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  margin: var(--spacing-lg) 0;
  position: relative;
  overflow: hidden;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.ai-reports-section::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="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.ai-reports-content {
  position: relative;
  z-index: 1;
}

.ai-agent-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  transition: var(--transition-smooth);
  font-size: 0.95rem;
}

.ai-agent-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.2);
}

.ai-agent-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.ai-avatar {
  width: 36px;
  height: 36px;
  background: var(--accent-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.ai-status {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* Advertising Section */
.advertising-section {
  background: var(--tertiary-bg);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
  margin: var(--spacing-2xl) 0;
  border: 1px solid var(--border-color);
}

.ad-placement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.ad-slot {
  background: var(--card-bg);
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  text-align: center;
  transition: var(--transition-smooth);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ad-slot:hover {
  border-color: var(--accent-blue);
  background: var(--secondary-bg);
}

.ad-slot.premium {
  border-color: var(--accent-orange);
  background: linear-gradient(135deg, rgba(255, 149, 0, 0.1), rgba(255, 149, 0, 0.05));
}

.ad-placeholder {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: var(--spacing-md);
}

/* Pro Features */
.pro-features {
  background: linear-gradient(135deg, var(--accent-black) 0%, #333 100%);
  color: white;
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
  margin: var(--spacing-2xl) 0;
  position: relative;
}

.pro-badge {
  background: var(--accent-orange);
  color: white;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-bottom: var(--spacing-lg);
}

.portfolio-feed {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  margin-top: var(--spacing-lg);
}

.portfolio-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.portfolio-metric {
  text-align: center;
  padding: var(--spacing-md);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
}

.portfolio-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-green);
  font-family: var(--font-mono);
}

.portfolio-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: var(--spacing-xs);
}

/* Pricing Cards - Updated for White Theme */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-blue);
}

.pricing-card.featured {
  border-color: var(--accent-blue);
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.05), rgba(0, 122, 255, 0.02));
  transform: scale(1.05);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-blue);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.pricing-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-blue);
  font-family: var(--font-mono);
}

.pricing-period {
  color: var(--text-secondary);
  font-size: 1rem;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.pricing-features li::before {
  content: '✓';
  color: var(--accent-green);
  font-weight: bold;
  font-size: 1.1rem;
}

/* News Page Styles - Updated for White Theme */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.news-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-lg);
}

.news-card.featured {
  grid-column: span 2;
  border-color: var(--accent-blue);
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.05), rgba(0, 122, 255, 0.02));
}

.news-category {
  background: var(--accent-blue);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.news-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.news-excerpt {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Footer - Updated for White Theme */
footer {
  background: var(--accent-black);
  color: white;
  padding: var(--spacing-2xl) 0 var(--spacing-xl);
  margin-top: var(--spacing-3xl);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-section h4 {
  color: white;
  margin-bottom: var(--spacing-md);
  font-weight: 600;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: var(--spacing-sm);
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-section ul li a:hover {
  color: var(--accent-blue);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: var(--spacing-lg);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero .subtitle {
    font-size: 1.25rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .news-feed-container {
    grid-template-columns: 1fr;
  }
  
  .news-card.featured {
    grid-column: span 1;
  }
  
  .pricing-card.featured {
    transform: none;
  }
  
  .nav-menu {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .btn-group {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
  }
}

/* AI Agents Section - Compact */
.ai-agents {
  padding: var(--spacing-lg) 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
  overflow: hidden;
}

.ai-agents::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(0, 122, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 122, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.ai-agents .container {
  position: relative;
  z-index: 1;
}

.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.agent-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  border: 1px solid rgba(0, 122, 255, 0.1);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.agent-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-blue-light));
}

.agent-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-blue);
}

.agent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-sm);
}

.agent-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.agent-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--success-color);
  font-weight: 500;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--success-color);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.agent-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: var(--spacing-sm);
}

.agent-metrics {
  display: flex;
  gap: var(--spacing-sm);
}

.metric-item {
  flex: 1;
  text-align: center;
  padding: var(--spacing-xs);
  background: rgba(0, 122, 255, 0.05);
  border-radius: var(--radius-sm);
}

.metric-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-blue);
}

.metric-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

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

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

.mb-sm {
  margin-bottom: var(--spacing-sm);
}

.mb-md {
  margin-bottom: var(--spacing-md);
}

.mb-lg {
  margin-bottom: var(--spacing-lg);
}

.mb-xl {
  margin-bottom: var(--spacing-xl);
}

.mt-sm {
  margin-top: var(--spacing-sm);
}

.mt-md {
  margin-top: var(--spacing-md);
}

.mt-lg {
  margin-top: var(--spacing-lg);
}

.mt-xl {
  margin-top: var(--spacing-xl);
}

.accent-blue {
  color: var(--accent-blue);
}

.accent-green {
  color: var(--accent-green);
}

.accent-purple {
  color: var(--accent-purple);
}

/* Glassmorphism Effects */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus States for Accessibility */
.btn:focus,
.nav-menu a:focus {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

/* Table Styles */
table {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  overflow: hidden;
}

table th,
table td {
  border-right: 1px solid var(--border-color);
}

table th:last-child,
table td:last-child {
  border-right: none;
}

table tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* News Page Styles */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.news-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-blue);
  box-shadow: 0 20px 40px rgba(0, 122, 255, 0.15);
}

.news-card.featured {
  grid-column: span 2;
  border-color: var(--accent-blue);
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(0, 123, 255, 0.05));
}

.news-image {
  margin-bottom: 1.5rem;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.news-category {
  background: var(--accent-blue);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.news-date {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.news-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.news-excerpt {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.news-link {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.news-link:hover {
  color: var(--accent-green);
}

/* Trending Topics */
.trending-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.topic-tag {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.topic-tag:hover {
  background: var(--accent-blue);
  color: white;
  transform: translateY(-2px);
}

/* Newsletter Form */
.newsletter-form {
  display: flex;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.newsletter-input {
  flex: 1;
  min-width: 250px;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--accent-blue);
  background: rgba(255, 255, 255, 0.15);
}

.newsletter-input::placeholder {
  color: var(--text-secondary);
}

/* Responsive Design for News */
@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .news-card.featured {
    grid-column: span 1;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-input {
    min-width: auto;
  }
  
  .trending-topics {
    justify-content: center;
  }
}

/* Parallax Effects */
.parallax-container {
  position: relative;
  overflow: hidden;
}

.parallax-element {
  transition: transform 0.1s ease-out;
  will-change: transform;
}

.parallax-bg {
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.05) 0%, transparent 70%);
  z-index: -1;
}

.parallax-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.parallax-shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.1), rgba(0, 122, 255, 0.05));
  animation: float 6s ease-in-out infinite;
}

.parallax-shape:nth-child(1) {
  width: 100px;
  height: 100px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.parallax-shape:nth-child(2) {
  width: 150px;
  height: 150px;
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.parallax-shape:nth-child(3) {
  width: 80px;
  height: 80px;
  top: 40%;
  left: 70%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

/* Enhanced Hero with Parallax */
/* Removed duplicate hero section */

/* Parallax Cards */
.feature-card,
.agent-card,
.news-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover,
.agent-card:hover,
.news-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 122, 255, 0.15);
}

/* Scroll Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Staggered Animation Delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* Parallax Background Patterns */
.section-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.03;
  background-image: 
    radial-gradient(circle at 25% 25%, var(--accent-blue) 2px, transparent 2px),
    radial-gradient(circle at 75% 75%, var(--accent-blue) 1px, transparent 1px);
  background-size: 50px 50px, 30px 30px;
  z-index: 0;
  pointer-events: none;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 122, 255, 0.1);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Ensure feature icons have transparent backgrounds in dark mode */
[data-theme="dark"] .feature-icon {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.testimonial-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 122, 255, 0.08);
}

.testimonial-content {
  margin-bottom: 1.5rem;
}

.testimonial-content p {
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  font-size: 2.5rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary-bg);
  border-radius: 50%;
}

.author-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.author-title {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Feature Links */
.feature-link {
  display: inline-flex;
  align-items: center;
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  margin-top: 1rem;
  transition: var(--transition-smooth);
}

.feature-link:hover {
  color: var(--accent-blue-dark);
  transform: translateX(4px);
}

/* USP Grid */
.usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.usp-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.usp-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-blue-dark));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.usp-card:hover::before {
  transform: scaleX(1);
}

.usp-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 122, 255, 0.15);
  border-color: var(--accent-blue);
}

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

.usp-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.usp-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Networks Grid */
.networks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.network-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition-smooth);
  position: relative;
}

.network-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-blue);
}

.network-card.coming-soon {
  opacity: 0.6;
  position: relative;
}

.network-card.coming-soon::after {
  content: 'Coming Soon';
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--accent-blue);
  color: white;
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.network-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  display: block;
}

.network-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.network-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .usp-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .networks-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
  }
  
  .network-card {
    padding: 1rem;
  }
  
  .network-icon {
    font-size: 2rem;
  }
}

/* Feature Page Specific Styles */
.networks-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.network-detail-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition-smooth);
}

.network-detail-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-blue);
}

.network-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.network-header .network-icon {
  font-size: 2.5rem;
}

.network-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.network-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

.network-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.network-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.network-features li:last-child {
  border-bottom: none;
}

/* Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.step-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: var(--transition-smooth);
  position: relative;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0, 122, 255, 0.1);
  border-color: var(--accent-blue);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--accent-blue);
  color: white;
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.step-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.step-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Coming Soon Section */
.coming-soon-section {
  margin-top: 4rem;
  text-align: center;
  padding: 2rem;
  background: var(--glass-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.coming-soon-section h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.coming-soon-networks {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.coming-soon-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--secondary-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  font-weight: 500;
  color: var(--text-secondary);
}

.coming-soon-item .network-icon {
  font-size: 1.5rem;
}

/* CTA Content */
.cta-content {
  text-align: center;
  padding: 3rem 2rem;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.cta-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Mobile Responsiveness for Feature Pages */
@media (max-width: 768px) {
  .networks-detail-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .coming-soon-networks {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .network-header {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .cta-content h2 {
    font-size: 2rem;
  }
  
  .cta-content {
    padding: 2rem 1rem;
  }
}

/* Market Movers Specific Styles */
.market-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.market-stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition-smooth);
}

.market-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-blue);
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.stat-change {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
}

.stat-change.positive {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.stat-change.negative {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

/* Movers Preview */
.movers-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.movers-section {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.movers-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.movers-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mover-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: var(--glass-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.mover-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.mover-item.gainer {
  border-left: 3px solid #10b981;
}

.mover-item.loser {
  border-left: 3px solid #ef4444;
}

.mover-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mover-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.mover-price {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.mover-change {
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
}

.mover-change.positive {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.mover-change.negative {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

/* Mobile Responsiveness for Market Movers */
@media (max-width: 768px) {
  .market-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .movers-preview {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .stat-value {
    font-size: 1.5rem;
  }
  
  .market-stat-card {
    padding: 1rem;
  }
  
  .mover-item {
    padding: 0.5rem;
  }
}

/* Social Sentiment Specific Styles */
.sentiment-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.sentiment-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition-smooth);
}

.sentiment-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-blue);
}

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

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

.sentiment-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.sentiment-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.sentiment-value.positive {
  color: #10b981;
}

.sentiment-value.negative {
  color: #ef4444;
}

.sentiment-score {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Influencer Tracking */
.influencers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.influencer-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.influencer-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-blue);
}

.influencer-avatar {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.influencer-info {
  text-align: center;
}

.influencer-info h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.influencer-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.influence-score {
  display: inline-block;
  background: var(--accent-blue);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
}

.recent-sentiment {
  text-align: center;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
}

.recent-sentiment.positive {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.recent-sentiment.negative {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.recent-sentiment.neutral {
  background: rgba(107, 114, 128, 0.1);
  color: var(--text-secondary);
}

/* Trending Topics */
.trending-topics {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.topic-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: var(--transition-smooth);
}

.topic-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.topic-item.trending-up {
  border-left: 4px solid #10b981;
}

.topic-item.trending-down {
  border-left: 4px solid #ef4444;
}

.topic-item.trending-neutral {
  border-left: 4px solid #6b7280;
}

.topic-info h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.topic-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

.topic-sentiment {
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
}

.topic-sentiment.positive {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.topic-sentiment.negative {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.topic-sentiment.neutral {
  color: #6b7280;
  background: rgba(107, 114, 128, 0.1);
}

/* Mobile Responsiveness for Social Sentiment */
@media (max-width: 768px) {
  .sentiment-overview-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .influencers-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .sentiment-card {
    padding: 1rem;
  }
  
  .influencer-card {
    padding: 1rem;
  }
  
  .topic-item {
    padding: 0.75rem 1rem;
  }
  
  .topic-info h4 {
    font-size: 0.9rem;
  }
}

/* AI NEWS FEED STYLES */
.news-preview-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.news-item {
    background: white;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.news-item.featured {
    border-left-color: #ff6b35;
}

.news-item.portfolio-related {
    border-left-color: var(--primary-color);
}

.news-item.contrarian {
    border-left-color: #9333ea;
}

.news-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.news-item.featured .news-badge {
    background: #ff6b35;
    color: white;
}

.news-item.portfolio-related .news-badge {
    background: var(--primary-color);
    color: white;
}

.news-item.contrarian .news-badge {
    background: #9333ea;
    color: white;
}

.news-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.news-content p {
    margin: 0 0 1rem 0;
    color: var(--text-secondary);
    line-height: 1.5;
}

.news-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.relevance-score {
    color: var(--primary-color);
    font-weight: 600;
}

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

.ai-feature-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.ai-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.ai-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.ai-metrics {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.metric {
    background: var(--secondary-bg);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
}

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

.category-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.category-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* ===== ADVANCED ANALYTICS STYLES ===== */
.analytics-preview {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.analytics-chart {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.chart-controls {
    display: flex;
    gap: 0.5rem;
}

.chart-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.chart-btn.active,
.chart-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.chart-placeholder {
    height: 300px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

.chart-line {
    position: absolute;
    bottom: 20%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--primary-color);
    transform: rotate(-5deg);
}

.chart-line::before {
    content: '';
    position: absolute;
    top: -10px;
    right: 0;
    width: 0;
    height: 0;
    border-left: 10px solid var(--primary-color);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

.chart-metrics {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 2rem;
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.metric-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.metric-change {
    font-size: 0.875rem;
    font-weight: 600;
}

.metric-change.positive {
    color: #10b981;
}

.metric-change.negative {
    color: #ef4444;
}

.analytics-indicators {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.indicators-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.indicator-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--secondary-bg);
    border-radius: var(--radius-sm);
}

.indicator-signal {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.indicator-signal.bullish {
    background: #10b981;
    color: white;
}

.indicator-signal.bearish {
    background: #ef4444;
    color: white;
}

.indicator-signal.neutral {
    background: #6b7280;
    color: white;
}

.indicators-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.indicator-category {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.indicator-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.indicator-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

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

.metric-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

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

.metric-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.metric-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.metric-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

.metric-features li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

@media (max-width: 768px) {
    .analytics-preview {
        grid-template-columns: 1fr;
    }
    
    .chart-metrics {
        flex-direction: column;
        gap: 1rem;
    }
    
    .indicators-categories {
        grid-template-columns: 1fr;
    }
}

/* ===== TRADERVIEW STYLES ===== */
.security-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.security-layer {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all 0.3s ease;
}

.security-layer:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.layer-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.security-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
    text-align: left;
}

.security-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

.security-features li::before {
    content: '🔒';
    margin-right: 0.5rem;
}

.compliance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.compliance-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

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

.compliance-logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--secondary-bg);
    border-radius: var(--radius-md);
    display: inline-block;
}

.cert-status {
    display: inline-block;
    background: #10b981;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 1rem;
}

.access-control-demo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.roles-panel,
.approval-workflow {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.role-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.role-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.role-name {
    font-weight: 600;
    color: var(--text-primary);
}

.role-users {
    background: var(--secondary-bg);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.role-permissions {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.permission {
    font-size: 0.875rem;
    padding: 0.25rem 0;
}

.permission.granted {
    color: #10b981;
}

.permission.denied {
    color: #ef4444;
}

.workflow-step {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.step-icon {
    width: 2rem;
    height: 2rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.step-content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.4;
}

.monitoring-dashboard {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    margin-top: 2rem;
}

.monitoring-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--secondary-bg);
    border-radius: var(--radius-md);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.threat-detection h3 {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.threat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--secondary-bg);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
}

.threat-type {
    font-weight: 500;
}

.threat-status {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.threat-status.blocked {
    background: #ef4444;
    color: white;
}

.threat-status.monitored {
    background: #f59e0b;
    color: white;
}

.threat-status.investigated {
    background: var(--primary-color);
    color: white;
}

.threat-time {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .access-control-demo {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .monitoring-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .threat-item {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}

/* ===== INTERACTIVE CRYPTO TREEMAP STYLES ===== */
.treemap-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.control-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.control-buttons {
    display: flex;
    gap: 0.5rem;
}

.control-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.control-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.control-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.treemap-container {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.treemap-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.legend-color {
    width: 1rem;
    height: 1rem;
    border-radius: var(--radius-sm);
}

.legend-color.positive {
    background: #10b981;
}

.legend-color.negative {
    background: #ef4444;
}

.legend-color.neutral {
    background: #6b7280;
}

.treemap-visualization {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(8, 60px);
    gap: 4px;
    margin-bottom: 2rem;
    min-height: 500px;
}

.treemap-item {
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.treemap-item:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: var(--shadow-lg);
}

.treemap-item.large {
    grid-column: span 6;
    grid-row: span 4;
}

.treemap-item.medium {
    grid-column: span 3;
    grid-row: span 2;
}

.treemap-item.small {
    grid-column: span 2;
    grid-row: span 2;
}

.treemap-item.positive {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.treemap-item.negative {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.treemap-item.neutral {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
}

.crypto-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: center;
}

.crypto-symbol {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.treemap-item.large .crypto-symbol {
    font-size: 2rem;
}

.treemap-item.medium .crypto-symbol {
    font-size: 1.5rem;
}

.crypto-name {
    font-size: 0.75rem;
    opacity: 0.9;
    font-weight: 500;
}

.treemap-item.large .crypto-name {
    font-size: 1rem;
}

.crypto-price {
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

.treemap-item.large .crypto-price {
    font-size: 1.2rem;
}

.crypto-change {
    font-size: 0.75rem;
    font-weight: 600;
}

.treemap-item.large .crypto-change {
    font-size: 1rem;
}

.crypto-mcap {
    font-size: 0.7rem;
    opacity: 0.8;
}

.treemap-item.large .crypto-mcap {
    font-size: 0.875rem;
}

.treemap-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-value.positive {
    color: #10b981;
}

.stat-value.negative {
    color: #ef4444;
}

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

.option-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

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

.option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.option-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.option-badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    background: var(--secondary-bg);
    color: var(--text-secondary);
}

.option-badge.default {
    background: var(--primary-color);
    color: white;
}

.option-preview {
    margin-bottom: 1rem;
}

.mini-treemap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 30px);
    gap: 2px;
    height: 64px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.mini-block {
    border-radius: 2px;
}

.mini-block.large {
    grid-column: span 2;
    grid-row: span 2;
}

.mini-block.medium {
    grid-column: span 1;
    grid-row: span 2;
}

.mini-block.small {
    grid-column: span 1;
    grid-row: span 1;
}

.mini-block.positive {
    background: #10b981;
}

.mini-block.negative {
    background: #ef4444;
}

.option-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 1024px) {
    .treemap-visualization {
        grid-template-columns: repeat(8, 1fr);
        grid-template-rows: repeat(10, 50px);
    }
    
    .treemap-item.large {
        grid-column: span 4;
        grid-row: span 3;
    }
    
    .treemap-item.medium {
        grid-column: span 2;
        grid-row: span 2;
    }
    
    .treemap-item.small {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .treemap-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .control-group {
        width: 100%;
    }
    
    .control-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .treemap-visualization {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(15, 40px);
        gap: 2px;
    }
    
    .treemap-item.large {
        grid-column: span 2;
        grid-row: span 2;
    }
    
    .treemap-item.medium {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .treemap-item.small {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .treemap-legend {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    .treemap-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Security Page Styles */
.security-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.security-stat {
  text-align: center;
  padding: var(--spacing-lg);
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.security-stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-blue);
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-blue);
  margin-bottom: var(--spacing-xs);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.security-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-lg);
}

.security-feature-card {
  background: var(--card-bg);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.security-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-blue);
}

.security-feature-card .feature-icon {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
}

.security-feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.security-feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}

.feature-details {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.detail-badge {
  background: var(--accent-blue);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

.privacy-card {
  background: var(--card-bg);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: var(--transition-smooth);
}

.privacy-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.privacy-icon {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
}

.privacy-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.privacy-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}

.certification-card {
  background: var(--card-bg);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: var(--transition-smooth);
}

.certification-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-green);
}

.cert-badge {
  display: inline-block;
  background: var(--accent-green);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: var(--spacing-md);
}

.certification-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.certification-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.875rem;
}

.best-practices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

.practice-card {
  background: var(--card-bg);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
  position: relative;
}

.practice-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-blue);
}

.practice-number {
  position: absolute;
  top: -15px;
  left: var(--spacing-lg);
  background: var(--accent-blue);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
}

.practice-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  margin-top: var(--spacing-sm);
}

.practice-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.875rem;
}

/* Mobile Responsiveness for Security Page */
@media (max-width: 768px) {
  .security-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }
  
  .security-features-grid {
    grid-template-columns: 1fr;
  }
  
  .privacy-grid {
    grid-template-columns: 1fr;
  }
  
  .certifications-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }
  
  .best-practices-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .stat-icon,
  .privacy-icon,
  .security-feature-card .feature-icon {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .security-stats {
    grid-template-columns: 1fr;
  }
  
  .certifications-grid {
    grid-template-columns: 1fr;
  }
}

/* Page Title Section Styles */
.page-title-section {
    padding: 60px 0 40px;
    background: var(--background-color);
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 16px;
    text-align: center;
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .page-title-section {
        padding: 40px 0 30px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
}

/* Security Page Styles */

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: var(--font-primary);
  min-height: 44px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue) 0%, #0056b3 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 122, 255, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Button Focus States */
.btn:focus {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

/* Mobile Responsive Buttons */
@media (max-width: 768px) {
  .btn-group {
    gap: 0.75rem;
  }
  
  .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.8rem;
    min-height: 40px;
  }
}

/* Documentation Page Styles */
.documentation-content {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  margin-top: 2rem;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 100px;
  background: var(--card-bg);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
  height: fit-content;
}

.docs-sidebar h3 {
  color: var(--primary-color);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

.docs-sidebar h3:not(:first-child) {
  margin-top: 2rem;
}

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

.docs-sidebar li {
  margin-bottom: 0.5rem;
}

.docs-sidebar a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.docs-sidebar a:hover {
  background: var(--primary-color);
  color: white;
  transform: translateX(4px);
}

.docs-main {
  min-width: 0;
}

.docs-main section {
  margin-bottom: 3rem;
  scroll-margin-top: 100px;
}

.docs-main h2 {
  color: var(--text-color);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--primary-color);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.docs-main h3 {
  color: var(--text-color);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 2rem 0 1rem 0;
}

.docs-main p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.docs-main ol, .docs-main ul {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.docs-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
}

.docs-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.docs-card h3 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 768px) {
  .documentation-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .docs-sidebar {
    position: static;
    order: 2;
    margin-top: 2rem;
  }
  
  .docs-main {
    order: 1;
  }
}


/* Fix header visibility in dark mode */
[data-theme="dark"] header {
  background: rgba(13, 17, 23, 0.95);
}
