/* ===== Reset & Base ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Modern Light Theme Colors (White & Blue) */
  --primary: #2563eb; /* Blue */
  --primary-dark: #1d4ed8;
  --primary-light: #60a5fa;
  --secondary: #f3f4f6;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  
  /* Light Theme Colors */
  --bg: #ffffff;
  --bg-card: #ffffff;
  --bg-input: #f9fafb;
  --bg-hover: #f3f4f6;
  
  /* Text Colors */
  --text: #111827;
  --text-muted: #6b7280;
  --text-dark: #374151;
  
  /* Borders & Shadows */
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 0 20px rgba(0, 0, 0, 0.05);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Navbar ===== */
.navbar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.03em;
}

.logo {
  color: var(--text);
}

.logo-sub {
  color: var(--text-muted);
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-input);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--border-light);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  background: var(--bg-input);
  border-color: var(--border-light);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.2);
}

.btn-block {
  width: 100%;
}

.btn-large {
  padding: 14px 28px;
  font-size: 1rem;
}

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 120px 20px 80px;
  position: relative;
  overflow: hidden;
}

/* ===== Modern Landing Page CSS ===== */
.navbar-modern {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.nav-logo-icon svg {
  width: 18px;
  height: 18px;
}

.nav-logo-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-left: 10px;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
}

/* Hero Modern */
.hero-modern {
  padding: 100px 0 120px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
}

.hero-bg-gradient {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-grid-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  opacity: 0.5;
}

.hero-modern .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(37, 99, 235, 0.05);
  border: 1px solid rgba(37, 99, 235, 0.1);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2563eb;
  margin-bottom: 24px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: #2563eb;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 24px;
  letter-spacing: -0.04em;
}

.gradient-text {
  background: linear-gradient(135deg, #2563eb 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 40px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Code Block */
.hero-code-block {
  background: #0d1117;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.code-title {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  font-family: 'JetBrains Mono', monospace;
}

.hero-code-block pre {
  padding: 24px;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.7;
}

.hero-code-block code {
  font-family: 'JetBrains Mono', monospace;
  color: #e6edf3;
}

.code-keyword { color: #ff7b72; }
.code-string { color: #a5d6ff; }
.code-property { color: #79c0ff; }

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(37, 99, 235, 0.05);
  border: 1px solid rgba(37, 99, 235, 0.1);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2563eb;
  margin-bottom: 20px;
}

.section-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Features Modern */
.features-modern {
  padding: 120px 0;
  background: #ffffff;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card-modern {
  padding: 32px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.feature-card-modern:hover {
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.08);
  transform: translateY(-4px);
}

.feature-icon-modern {
  width: 56px;
  height: 56px;
  background: rgba(37, 99, 235, 0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  margin-bottom: 24px;
}

.feature-icon-modern svg {
  width: 28px;
  height: 28px;
}

.feature-card-modern h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.feature-card-modern p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #2563eb;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: gap 0.2s;
}

.feature-link:hover {
  gap: 10px;
}

.feature-link svg {
  width: 16px;
  height: 16px;
}

/* Providers Modern */
.providers-modern {
  padding: 120px 0;
  background: #f9fafb;
}

.providers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.provider-card {
  background: #ffffff;
  padding: 40px 32px;
  border-radius: 16px;
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.3s ease;
}

.provider-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.provider-icon {
  width: 64px;
  height: 64px;
  background: rgba(37, 99, 235, 0.05);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: #2563eb;
}

.provider-icon svg {
  width: 32px;
  height: 32px;
}

.provider-card h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.provider-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.provider-badge-free,
.provider-badge-included {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Pricing Modern */
.pricing-modern {
  padding: 120px 0;
  background: #ffffff;
}

.pricing-grid-modern {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: start;
}

.pricing-card-modern {
  background: #ffffff;
  padding: 40px 32px;
  border-radius: 20px;
  border: 2px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
}

.pricing-card-modern:hover {
  border-color: rgba(37, 99, 235, 0.2);
}

.pricing-card-modern.featured {
  border-color: #2563eb;
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.15);
  transform: scale(1.05);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #2563eb;
  color: white;
  padding: 6px 20px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
}

.pricing-card-modern h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.pricing-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.price-modern {
  margin-bottom: 32px;
}

.price-amount {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.04em;
}

.price-period {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-left: 4px;
}

.pricing-features-modern {
  list-style: none;
  margin-bottom: 32px;
}

.pricing-features-modern li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.pricing-features-modern li svg {
  width: 18px;
  height: 18px;
  color: #10b981;
  flex-shrink: 0;
}

/* CTA Modern */
.cta-modern {
  padding: 120px 0;
  background: linear-gradient(135deg, #1e3a5f 0%, #0f2847 100%);
  color: white;
}

.cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.cta-content p {
  font-size: 1.2rem;
  opacity: 0.85;
  margin-bottom: 40px;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  justify-content: center;
}

/* Footer Modern */
.footer-modern {
  padding: 80px 0 40px;
  background: #0f172a;
  color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-logo-icon {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.footer-logo-icon svg {
  width: 18px;
  height: 18px;
}

.footer-logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
}

.footer-tagline {
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-links-group h4 {
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-links-group a {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 6px 0;
  transition: color 0.2s;
}

.footer-links-group a:hover {
  color: white;
}

.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.9rem;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-modern .container {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }
  
  .hero-subtitle {
    margin: 0 auto 40px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-title {
    font-size: 3rem;
  }
  
  .features-grid,
  .providers-grid,
  .pricing-grid-modern {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
    box-shadow: var(--shadow-lg);
  }
  
  .nav-links.mobile-show {
    display: flex;
  }
  
  .nav-mobile-toggle {
    display: block;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }
  
  .stat-divider {
    width: 40px;
    height: 1px;
  }
  
  .features-grid,
  .providers-grid,
  .pricing-grid-modern {
    grid-template-columns: 1fr;
  }
  
  .pricing-card-modern.featured {
    transform: none;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .cta-content h2 {
    font-size: 2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.03) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: -1;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 24px;
  color: var(--text);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.hero h1 span {
  color: var(--text-muted);
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* ===== Features ===== */
.features {
  padding: 100px 20px;
  background: var(--bg-input);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features h2,
.providers h2,
.cta h2,
.pricing h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
  letter-spacing: -0.03em;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.feature-card {
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-light);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--bg-input);
  border-radius: 16px;
  color: var(--primary);
}

.feature-card h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
  color: var(--text);
}

.feature-card p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== Providers ===== */
.providers {
  padding: 100px 20px;
}

.providers-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.provider-badge {
  background: var(--bg-card);
  padding: 16px 32px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 12px;
}

.provider-badge::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

/* ===== CTA ===== */
.cta {
  text-align: center;
  padding: 100px 20px;
  background: var(--bg-input);
  margin-top: 40px;
}

.cta p {
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 1.25rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Stats Grid ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.stat-card {
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.stat-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon svg {
  width: 24px;
  height: 24px;
}

.stat-icon-primary {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}

.stat-icon-success {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.stat-icon-warning {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.stat-icon-info {
  background: rgba(14, 165, 233, 0.1);
  color: #0ea5e9;
}

.stat-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.stat-trend-up {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.stat-trend-down {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  line-height: 1.2;
}

.stat-change {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ===== Dashboard Grid ===== */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-input);
}

.card-header h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  margin: 0;
}

.card-body {
  padding: 24px;
}

.btn-copy {
  background: white;
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s;
}

.btn-copy:hover {
  background: var(--bg-hover);
  border-color: var(--border-light);
}

.quick-start-text {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.card-quick-start pre {
  background: #0d1117;
  padding: 16px;
  border-radius: var(--radius);
  overflow-x: auto;
}

.card-quick-start code {
  color: #e6edf3;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  line-height: 1.6;
}

.card-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}

.card-link:hover {
  text-decoration: underline;
}

.keys-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.key-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.key-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.key-name {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.key-value {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.key-status {
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
}

.key-status.active {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.key-status.inactive {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Code Block ===== */
.code-block {
  background: var(--bg-input);
  padding: 24px;
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--border);
}

.code-block code {
  color: var(--text);
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.95rem;
  line-height: 1.7;
}

.status {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status.active {
  color: var(--success);
}
.status.active::before {
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

.status.inactive {
  color: var(--danger);
}
.status.inactive::before {
  background: var(--danger);
  box-shadow: 0 0 8px var(--danger);
}

/* ===== Forms ===== */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text);
  font-size: 0.95rem;
}

.form-input,
.form-select,
.form-group input,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1rem;
  transition: all 0.2s ease;
  font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
  background: var(--bg);
}

.form-input::placeholder,
.form-group input::placeholder {
  color: var(--text-muted);
}

.form-hint {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Password Input Wrapper */
.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-toggle {
  position: absolute;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.password-toggle:hover {
  color: var(--text);
}

.password-toggle.active {
  color: var(--primary);
}

/* ===== Auth Page - Split Layout ===== */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #f8f9fa;
  position: relative;
  overflow: hidden;
  padding: 0;
}

/* Split Wrapper */
.auth-split-wrapper {
  display: flex;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* Left Sidebar */
.auth-sidebar {
  width: 45%;
  background: linear-gradient(135deg, #1e3a5f 0%, #0f2847 50%, #0a1c33 100%);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.auth-sidebar::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.auth-sidebar-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.auth-sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 60px;
}

.auth-sidebar-logo-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-sidebar-logo-icon svg {
  width: 22px;
  height: 22px;
}

.auth-sidebar-logo-text {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.auth-sidebar-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-sidebar-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.auth-sidebar-hero p {
  font-size: 1.1rem;
  line-height: 1.7;
  opacity: 0.85;
  max-width: 400px;
}

.auth-sidebar-footer {
  font-size: 0.85rem;
  opacity: 0.6;
  margin-top: 60px;
}

/* Right Form Side */
.auth-form-side {
  flex: 1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  overflow-y: auto;
}

.auth-form-container {
  width: 100%;
  max-width: 420px;
}

.auth-sidebar-toggle {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 100;
  background: rgba(0, 0, 0, 0.1);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  color: #1e3a5f;
}

.auth-form-header {
  margin-bottom: 40px;
}

.auth-form-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.auth-form-header p {
  color: #6b7280;
  font-size: 1rem;
}

/* Form Styles */
.auth-form .form-group {
  margin-bottom: 24px;
}

.auth-form .form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
}

.auth-form .form-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #111827;
  background: #ffffff;
  transition: all 0.2s ease;
  outline: none;
}

.auth-form .form-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.auth-form .form-input::placeholder {
  color: #9ca3af;
}

.password-input-wrapper {
  position: relative;
}

.password-input-wrapper .form-input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.password-toggle:hover {
  color: #374151;
}

.password-toggle.active svg {
  transform: scaleX(-1);
}

.form-hint {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 6px;
}

.form-forgot {
  text-align: right;
  margin-bottom: 24px;
}

.forgot-link {
  color: #2563eb;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.forgot-link:hover {
  color: #1d4ed8;
}

/* Login Button */
.btn-login,
.btn-register {
  width: 100%;
  padding: 14px 24px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s ease;
  margin-bottom: 24px;
}

.btn-login:hover,
.btn-register:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-login svg,
.btn-register svg {
  width: 18px;
  height: 18px;
}

/* Form Footer */
.auth-form-footer {
  text-align: center;
}

.auth-form-footer p {
  color: #6b7280;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.register-link,
.login-link {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.register-link:hover,
.login-link:hover {
  color: #1d4ed8;
}

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6b7280;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}

.back-home:hover {
  color: #374151;
}

.back-home svg {
  width: 16px;
  height: 16px;
}

/* Alert Styles for Auth */
.alert {
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
}

.alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

.alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #16a34a;
}

.alert svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ===== Responsive Auth ===== */
@media (max-width: 1024px) {
  .auth-sidebar {
    width: 40%;
  }
  
  .auth-sidebar-hero h1 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .auth-sidebar {
    position: fixed;
    left: -100%;
    top: 0;
    height: 100vh;
    z-index: 50;
    transition: left 0.3s ease;
  }
  
  .auth-sidebar.mobile-show {
    left: 0;
  }
  
  .auth-sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .auth-form-side {
    padding: 80px 24px 24px;
  }
  
  .auth-form-header h2 {
    font-size: 1.5rem;
  }
}

/* ===== Old Auth Styles (Kept for backward compatibility) ===== */
.auth-wrapper {
  width: 100%;
  max-width: 480px;
  padding: 24px;
  position: relative;
  z-index: 10;
}

.auth-bg-decoration {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.auth-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}

.auth-circle-1 {
  top: -10%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: var(--primary-light);
}

.auth-circle-2 {
  bottom: -10%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: var(--border);
}

.auth-circle-3 {
  top: 40%;
  left: 60%;
  width: 300px;
  height: 300px;
  background: var(--secondary);
}

.auth-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 32px;
  transition: color 0.2s;
}

.auth-back-btn:hover {
  color: var(--text);
}

.auth-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.auth-header {
  text-align: center;
  margin-bottom: 40px;
}

.auth-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.auth-logo-icon {
  width: 64px;
  height: 64px;
  background: var(--bg-input);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  border: 1px solid var(--border);
}

.auth-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
}

.auth-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.auth-card-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-card-title {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.auth-card-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 32px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border);
}

.auth-divider span {
  padding: 0 16px;
}

.auth-footer {
  text-align: center;
  margin-top: 32px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.auth-footer a {
  color: var(--primary);
}

/* ===== Alerts ===== */
.alert {
  padding: 16px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--danger);
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--success);
}

/* ===== Tables ===== */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 24px 0;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.data-table th,
.data-table td {
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  background: var(--bg-input);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr {
  transition: background-color 0.2s;
}

.data-table tbody tr:hover {
  background-color: var(--bg-hover);
}

/* ===== Page Header ===== */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 40px 0;
}

/* ===== Admin Navbar ===== */
.navbar-admin {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

/* ===== Pricing Section ===== */
.pricing {
  padding: 100px 20px;
  background: var(--bg-input);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-light);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  border-color: var(--primary);
  background: var(--bg-card);
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-8px);
}

.pricing-card .badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--text);
}

.price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.price span {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-features {
  list-style: none;
  padding: 24px 0;
  text-align: left;
  border-top: 1px solid var(--border);
  margin-top: 24px;
}

.pricing-features li {
  padding: 12px 0;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 12px;
}

.pricing-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: bold;
}

/* ===== Search Input ===== */
.header-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.search-input {
  padding: 10px 16px 10px 40px;
  background: var(--bg-input) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E") no-repeat 12px center;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text);
  font-size: 0.95rem;
  min-width: 280px;
  transition: all 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  background-color: var(--bg-hover);
}

/* ===== Small Buttons ===== */
.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* ===== Text Center ===== */
.text-center {
  text-align: center;
}

/* ===== API Key Item (Dashboard) ===== */
.api-key-item {
  background: var(--bg-card);
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.api-key-item:hover {
  border-color: var(--border-light);
  background: rgba(255, 255, 255, 0.02);
}

.api-key-info {
  display: flex;
  gap: 24px;
  align-items: center;
}

.api-key-value {
  background: var(--bg-input);
  padding: 6px 12px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--text-dark);
  border: 1px solid var(--border);
}

.api-key-status {
  font-weight: 600;
  font-size: 0.85rem;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  margin-top: 80px;
  background: var(--bg);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .nav-links {
    display: none; /* Should implement mobile menu */
  }

  .api-key-card {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  
  .api-key-meta {
    flex-direction: column;
    gap: 8px;
  }
}

/* ============================================
   PROFESSIONAL DASHBOARD LAYOUT
   ============================================ */

/* ===== User Dashboard Body ===== */
.user-dashboard-body,
.admin-dashboard-body {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}

/* ===== Sidebar ===== */
.sidebar {
  width: 260px;
  background: #1e293b; /* Dark slate background */
  border-right: none;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #0f172a; /* Darker header */
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.sidebar-brand .logo {
  color: #ffffff;
}

.sidebar-brand .logo-sub {
  color: #94a3b8;
  font-weight: 400;
}

/* Sidebar Navigation */
.sidebar-nav {
  flex: 1;
  padding: 24px 0;
}

.nav-section {
  margin-bottom: 32px;
}

.nav-section-title {
  display: block;
  padding: 0 24px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
  margin-bottom: 12px;
  font-weight: 600;
}

.nav-list {
  list-style: none;
}

.nav-item {
  margin: 4px 16px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #cbd5e1;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.nav-link.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-left: 3px solid #3b82f6;
  border-radius: 0 8px 8px 0;
}

.nav-icon {
  width: 20px;
  height: 20px;
  opacity: 0.7;
}

.nav-link:hover .nav-icon {
  opacity: 1;
}

.nav-link.active .nav-icon {
  opacity: 1;
  color: #3b82f6;
}

.nav-text {
  flex: 1;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #f87171;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 0.95rem;
}

.sidebar-logout:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
}

.sidebar-logout svg {
  width: 20px;
  height: 20px;
}

/* ===== Main Content ===== */
.main-content {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #f8fafc; /* Light gray background for main content */
}

/* ===== Top Navbar ===== */
.navbar-user,
.navbar-admin-top {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 90;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s;
}

.sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  font-size: 1.8rem;
  color: var(--primary);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.logo-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  background: var(--bg-input);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}

.breadcrumb-item a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb-item a:hover {
  color: var(--text);
}

.breadcrumb-separator {
  color: var(--text-muted);
  opacity: 0.5;
}

.breadcrumb-current {
  color: var(--text);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.notification-bell {
  position: relative;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s;
  background: var(--bg-input);
  border: 1px solid var(--border);
}

.notification-bell:hover {
  background: var(--bg-hover);
  transform: translateY(-1px);
}

.bell-icon {
  font-size: 1.2rem;
  color: var(--text-muted);
}

.notification-bell:hover .bell-icon {
  color: var(--text);
}

.notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--danger);
  color: white;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 700;
  border: 2px solid var(--bg-card);
}

.nav-link-small {
  display: flex;
  align-items: center;
}

/* User Menu Dropdown */
.user-menu {
  position: relative;
}

.user-avatar {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 6px 16px 6px 6px;
  border-radius: var(--radius-full);
  transition: all 0.2s;
  background: var(--bg-input);
  border: 1px solid var(--border);
}

.user-avatar:hover {
  background: var(--bg-hover);
}

.avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  border: 1px solid var(--border);
}

.user-name {
  font-weight: 500;
  color: var(--text);
  font-size: 0.9rem;
}

.dropdown-arrow {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  min-width: 280px;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  overflow: hidden;
}

.dropdown-menu.show {
  display: block;
  animation: dropdownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-10px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dropdown-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid var(--border);
}

.dropdown-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
}

.dropdown-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dropdown-info strong {
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
}

.dropdown-info small {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: var(--text-dark);
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  font-weight: 500;
}

.dropdown-item:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text);
}

.dropdown-item-danger {
  color: var(--danger);
}

.dropdown-item-danger:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.dropdown-icon {
  font-size: 1.1rem;
  opacity: 0.8;
}

.dropdown-item:hover .dropdown-icon {
  opacity: 1;
}

/* ===== Page Content ===== */
.page-content {
  flex: 1;
  padding: 32px;
}

.content-header {
  margin-bottom: 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.content-header .header-left {
  margin-bottom: 0;
}

.content-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.header-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ===== Dashboard Cards ===== */
.card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  margin-bottom: 32px;
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
}

.card-header h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #111827;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
}

.card-link {
  color: #2563eb;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.card-link:hover {
  color: #1d4ed8;
}

.card-body {
  padding: 24px;
}

/* Stat Card Variants */
.stat-card {
  background: #ffffff;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.stat-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.stat-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon svg {
  width: 24px;
  height: 24px;
}

.stat-icon-primary { background: #eff6ff; color: #2563eb; }
.stat-icon-success { background: #ecfdf5; color: #10b981; }
.stat-icon-warning { background: #fffbeb; color: #f59e0b; }
.stat-icon-info { background: #f0f9ff; color: #0ea5e9; }

.stat-trend {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.stat-trend-up {
  color: #10b981;
  background: #ecfdf5;
}

.stat-trend-down {
  color: #ef4444;
  background: #fef2f2;
}

.stat-label {
  color: #6b7280 !important;
  font-size: 0.85rem !important;
  font-weight: 600;
  margin-bottom: 8px !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-value {
  font-size: 2.5rem !important;
  font-weight: 700;
  margin-bottom: 8px !important;
  letter-spacing: -0.02em;
  color: #111827 !important;
  line-height: 1;
}

.stat-change {
  color: #9ca3af !important;
  font-size: 0.85rem !important;
  margin-top: 4px !important;
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  margin-top: 32px;
}

.analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 32px;
}

.card-full-width {
  grid-column: 1 / -1;
}

/* Keys List */
.keys-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.key-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.key-item:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--border-light);
}

.key-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.key-name {
  font-weight: 600;
  color: var(--text);
  font-size: 1rem;
}

.key-value {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.key-status {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-full);
}

.key-status.active {
  color: var(--success);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.key-status.inactive {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Quick Start Code */
.quick-start-text {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 1rem;
}

.card-quick-start pre {
  background: #0d1117;
  padding: 24px;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.7;
  border: 1px solid var(--border);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.card-quick-start code {
  color: #e6edf3;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.btn-copy {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
  color: var(--text-dark);
  padding: 8px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-copy:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* User Cell (Admin Tables) */
.user-cell {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-avatar-sm {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: white;
}

.role-badge {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.role-badge.admin {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.role-badge.user {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-light);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.user-status {
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.user-status::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.user-status.active {
  color: var(--success);
}
.user-status.active::before {
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

.user-status.suspended {
  color: var(--danger);
}
.user-status.suspended::before {
  background: var(--danger);
  box-shadow: 0 0 8px var(--danger);
}

/* Key Code */
.key-code {
  background: rgba(0, 0, 0, 0.03);
  padding: 6px 12px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  color: var(--text-dark);
  border: 1px solid var(--border);
}

.btn-copy-sm {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
  color: var(--text-dark);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  margin-left: 12px;
  transition: all 0.2s ease;
}

.btn-copy-sm:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn-success {
  background: var(--success);
  color: white;
  border-color: transparent;
}

.btn-success:hover {
  background: #059669;
}

.btn-warning {
  background: var(--warning);
  color: white;
  border-color: transparent;
}

.btn-warning:hover {
  background: #d97706;
}

/* Form Select */
.form-select {
  padding: 12px 16px;
  background: var(--bg-input) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 16px center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: all 0.2s ease;
}

.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
  animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 500px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.02);
}

.modal-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.modal-close {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.2);
}

.modal-body {
  padding: 32px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 24px 32px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.02);
}

/* Admin Section */
.admin-section {
  margin: 40px 0;
}

.admin-section h2 {
  margin-bottom: 24px;
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Providers Status Grid */
.providers-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.provider-status-card {
  background: var(--bg-card);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.provider-status-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-light);
  box-shadow: var(--shadow-lg);
}

.provider-status-card h3 {
  margin-bottom: 16px;
  color: var(--text);
  font-size: 1.25rem;
}

.provider-status-card p {
  color: var(--text-muted);
  margin: 8px 0;
  font-size: 0.95rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.02);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border);
}

.empty-state .empty-icon {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 24px;
  opacity: 0.5;
}

.empty-state h3 {
  margin-bottom: 12px;
  color: var(--text);
  font-size: 1.25rem;
}

.empty-state p {
  margin-bottom: 24px;
  font-size: 0.95rem;
}

/* Keys Table Wrapper */
.keys-table-wrapper,
.users-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

/* ===== Responsive Dashboard ===== */
@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .analytics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.5);
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .sidebar-toggle {
    display: block;
  }
  
  .content-header h1 {
    font-size: 1.5rem;
  }
  
  .page-content {
    padding: 20px;
  }
  
  .nav-name {
    display: none;
  }
  
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .header-actions {
    width: 100%;
  }
  
  .search-input {
    width: 100%;
    min-width: unset;
  }
}

/* ============================================
   API DOCUMENTATION STYLES
   ============================================ */

:root {
  --docs-sidebar-width: 280px;
  --docs-header-height: 70px;
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Header */
.docs-header {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.docs-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.header-actions {
  display: flex;
  gap: 12px;
}

/* Layout */
.docs-layout {
  display: flex;
  max-width: 1600px;
  margin: 0 auto;
  min-height: calc(100vh - var(--docs-header-height));
}

/* Sidebar */
.docs-sidebar {
  width: var(--docs-sidebar-width);
  height: calc(100vh - var(--docs-header-height));
  position: sticky;
  top: var(--docs-header-height);
  overflow-y: auto;
  padding: 24px;
  border-right: 1px solid var(--border);
  background: var(--bg);
}

.sidebar-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}

.sidebar-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px 0;
}

.api-version {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-input);
  padding: 2px 8px;
  border-radius: 12px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s;
}

.nav-item:hover {
  background: var(--bg-input);
  color: var(--text);
}

.nav-item.active {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
}

.nav-category {
  margin-top: 12px;
}

.nav-category-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
}

.nav-category-toggle:hover {
  background: var(--bg-input);
}

.nav-category-toggle .chevron {
  margin-left: auto;
  width: 16px;
  height: 16px;
  transition: transform 0.3s;
}

.nav-category.expanded .chevron {
  transform: rotate(180deg);
}

.nav-subitems {
  display: none;
  padding-left: 20px;
  margin-top: 4px;
}

.nav-category.expanded .nav-subitems {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-subitem {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  border-radius: 6px;
  transition: all 0.2s;
}

.nav-subitem:hover {
  background: var(--bg-input);
  color: var(--text);
}

.method-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.method-get {
  background: #dcfce7;
  color: #16a34a;
}

.method-post {
  background: #dbeafe;
  color: #2563eb;
}

.method-put {
  background: #fef3c7;
  color: #d97706;
}

.method-delete {
  background: #fee2e2;
  color: #dc2626;
}

/* Main Content */
.docs-main {
  flex: 1;
  padding: 40px 48px;
  max-width: calc(100% - var(--docs-sidebar-width));
}

/* Hero Section */
.docs-hero {
  margin-bottom: 48px;
  padding: 48px;
  background: var(--primary-gradient);
  border-radius: 20px;
  color: white;
  position: relative;
  overflow: hidden;
}

.docs-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  backdrop-filter: blur(10px);
}

.docs-hero h1 {
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 12px 0;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 16px;
  opacity: 0.9;
  margin: 0 0 24px 0;
  line-height: 1.6;
}

.hero-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.meta-item i {
  width: 18px;
  height: 18px;
  opacity: 0.8;
}

.meta-label {
  display: block;
  font-size: 11px;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.meta-value {
  display: block;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Courier New', monospace;
}

/* Sections */
.docs-section {
  margin-bottom: 48px;
  scroll-margin-top: 20px;
}

.docs-section h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px 0;
}

.section-desc {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 24px 0;
}

/* Section Header with Icon */
.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.section-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-icon i {
  width: 24px;
  height: 24px;
}

.section-header h2 {
  margin: 0;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* Quick Start Card */
.quick-start-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.quick-start-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  margin: 0 0 24px 0;
  color: var(--text);
}

.steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.steps-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-number {
  width: 32px;
  height: 32px;
  background: var(--primary-gradient);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.steps-list strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}

.steps-list p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* Auth Cards */
.auth-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.auth-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.auth-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--text);
}

.auth-card-header i {
  width: 20px;
  height: 20px;
  color: #667eea;
}

.auth-card h3 {
  margin: 0;
  font-size: 16px;
}

.auth-card p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 16px 0;
  line-height: 1.6;
}

.auth-card pre {
  background: var(--bg-input);
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  overflow-x: auto;
}

/* Endpoint Card */
.endpoint-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}

.endpoint-card:hover {
  box-shadow: var(--shadow);
  border-color: #667eea;
}

.endpoint-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.endpoint-path {
  font-family: 'Courier New', monospace;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
}

.copy-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
}

.copy-btn:hover {
  background: var(--bg-input);
  color: var(--text);
}

.endpoint-desc {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 16px 0;
  line-height: 1.6;
}

.endpoint-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.meta-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-input);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.meta-tag i {
  width: 14px;
  height: 14px;
}

/* Code Blocks */
.code-block {
  margin-bottom: 16px;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: #1e293b;
  border-radius: 8px 8px 0 0;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
}

.copy-btn-small {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}

.copy-btn-small:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.code-block pre {
  margin: 0;
  background: #1e293b !important;
  padding: 16px;
  border-radius: 0 0 8px 8px;
  overflow-x: auto;
}

.code-block code {
  font-size: 13px;
  line-height: 1.6;
}

/* Code Examples with Tabs */
.code-examples {
  margin-top: 16px;
}

.code-tabs {
  display: flex;
  gap: 4px;
  background: #1e293b;
  padding: 4px;
  border-radius: 8px 8px 0 0;
}

.tab {
  flex: 1;
  padding: 10px 16px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
}

.tab:hover {
  color: white;
}

.tab.active {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.tab-content pre {
  margin: 0;
  background: #1e293b !important;
  border-radius: 0 0 8px 8px;
}

/* Footer */
.docs-footer {
  margin-top: 64px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 12px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #667eea;
}

/* Scrollbar */
.docs-sidebar::-webkit-scrollbar {
  width: 6px;
}

.docs-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.docs-sidebar::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.docs-sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
  .docs-layout {
    flex-direction: column;
  }
  
  .docs-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    top: 0;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  
  .docs-main {
    padding: 24px;
    max-width: 100%;
  }
  
  .docs-hero {
    padding: 32px;
  }
  
  .docs-hero h1 {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .docs-main {
    padding: 16px;
  }
  
  .docs-hero {
    padding: 24px;
  }
  
  .docs-hero h1 {
    font-size: 24px;
  }
  
  .hero-meta {
    flex-direction: column;
    gap: 12px;
  }
  
  .endpoint-header {
    flex-wrap: wrap;
  }
  
  .code-tabs {
    flex-wrap: wrap;
  }
}

/* =========================================================
   PROFESSIONAL BRIGHT DASHBOARD — LIGHT SIDEBAR + CLEAN UI
   ========================================================= */
.user-dashboard-body {
  --dash-bg: #f0f4f8;
  --dash-panel: #ffffff;
  --dash-text: #1e293b;
  --dash-muted: #64748b;
  --dash-border: #e2e8f0;
  --dash-primary: #3b82f6;
  --dash-primary-light: #eff6ff;
  --dash-primary-dark: #1d4ed8;
  --dash-success: #22c55e;
  --dash-success-light: #f0fdf4;
  --dash-warning: #f59e0b;
  --dash-warning-light: #fffbeb;
  --dash-danger: #ef4444;
  --dash-info: #06b6d4;
  --dash-info-light: #ecfeff;
  --dash-radius: 16px;
  --dash-shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
  --dash-shadow: 0 4px 24px rgba(0,0,0,0.06);
  --dash-shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
  background: var(--dash-bg) !important;
  color: var(--dash-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── SIDEBAR (LIGHT / CERAH) ── */
.user-dashboard-body .sidebar {
  width: 272px;
  background: #ffffff !important;
  border-right: 1px solid var(--dash-border);
  box-shadow: 1px 0 12px rgba(0,0,0,0.04);
}

.user-dashboard-body .sidebar-header {
  padding: 20px 20px 16px;
  background: transparent !important;
  border-bottom: 1px solid var(--dash-border);
}

.user-dashboard-body .sidebar-brand {
  gap: 12px;
  color: var(--dash-text);
}

.sidebar-logo-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 900;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
  flex-shrink: 0;
}

.sidebar-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.user-dashboard-body .sidebar-brand .logo {
  color: var(--dash-text);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.user-dashboard-body .sidebar-brand .logo-sub {
  color: var(--dash-muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
  font-weight: 500;
}

.sidebar-plan-card {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: var(--dash-primary-light);
  color: var(--dash-text);
}

.sidebar-plan-card .plan-label {
  display: block;
  color: var(--dash-primary);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
  font-weight: 600;
}

.sidebar-plan-card strong {
  font-size: 0.88rem;
  color: var(--dash-text);
}

.user-dashboard-body .sidebar-nav {
  padding: 16px 12px;
}

.user-dashboard-body .nav-section {
  margin-bottom: 20px;
}

.user-dashboard-body .nav-section-title {
  padding: 0 12px;
  color: #94a3b8;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.user-dashboard-body .nav-item {
  margin: 2px 0;
}

.user-dashboard-body .nav-link {
  min-height: 42px;
  padding: 10px 12px;
  color: #475569;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.15s ease;
}

.user-dashboard-body .nav-link:hover {
  background: #f1f5f9;
  color: var(--dash-text);
}

.user-dashboard-body .nav-link.active {
  background: var(--dash-primary-light);
  color: var(--dash-primary);
  border: 1px solid #bfdbfe;
  font-weight: 600;
}

.user-dashboard-body .nav-link.active .nav-icon {
  color: var(--dash-primary);
  opacity: 1;
}

.user-dashboard-body .nav-icon,
.user-dashboard-body .nav-link svg {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  stroke-width: 2;
  color: #94a3b8;
}

.user-dashboard-body .nav-link:hover .nav-icon,
.user-dashboard-body .nav-link:hover svg {
  color: #475569;
}

.sidebar-logout svg,
.sidebar-support-card svg,
.topbar-doc-link svg,
.user-dashboard-body .btn svg,
.user-dashboard-body .card-header h2 svg,
.user-dashboard-body .search-icon,
.user-dashboard-body .dropdown-icon {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  stroke-width: 2;
}

.user-dashboard-body .sidebar-footer {
  padding: 14px 12px;
  border-top: 1px solid var(--dash-border);
}

.sidebar-support-card {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  margin-bottom: 8px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--dash-text);
  background: #f8fafc;
  border: 1px solid var(--dash-border);
  transition: all 0.15s ease;
}

.sidebar-support-card:hover {
  background: var(--dash-primary-light);
  border-color: #bfdbfe;
}

.sidebar-support-card strong,
.sidebar-support-card small {
  display: block;
}

.sidebar-support-card strong {
  font-size: 0.82rem;
  color: var(--dash-text);
}

.sidebar-support-card small {
  color: var(--dash-muted);
  margin-top: 1px;
  font-size: 0.72rem;
}

.user-dashboard-body .sidebar-logout {
  border-radius: 10px;
  color: var(--dash-danger);
  font-weight: 500;
}

.user-dashboard-body .sidebar-logout:hover {
  background: #fef2f2;
}

/* ── MAIN CONTENT ── */
.user-dashboard-body .main-content {
  margin-left: 272px;
  background: var(--dash-bg) !important;
}

/* ── TOP NAVBAR ── */
.user-dashboard-body .navbar-user {
  height: 64px;
  padding: 0 28px;
  background: #ffffff !important;
  border-bottom: 1px solid var(--dash-border);
  box-shadow: var(--dash-shadow-sm);
}

.nav-page-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.nav-page-meta .nav-eyebrow {
  color: var(--dash-muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.nav-page-meta strong {
  color: var(--dash-text);
  font-size: 0.95rem;
  margin-top: 2px;
}

.user-dashboard-body .nav-center {
  justify-content: flex-end;
  padding: 0 16px;
}

.user-dashboard-body .nav-search {
  position: relative;
  width: min(380px, 100%);
}

.user-dashboard-body .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}

.user-dashboard-body .search-input {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 12px 0 38px;
  border-radius: 10px;
  border: 1px solid var(--dash-border);
  background: #f8fafc;
  color: var(--dash-text);
  font-size: 0.88rem;
  transition: all 0.15s ease;
}

.user-dashboard-body .search-input:focus {
  background: #ffffff;
  border-color: var(--dash-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  outline: none;
}

.topbar-doc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--dash-border);
  border-radius: 10px;
  color: #475569;
  background: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.84rem;
  transition: all 0.15s ease;
}

.topbar-doc-link:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.user-dashboard-body .avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── PAGE CONTENT ── */
.user-dashboard-body .page-content {
  padding: 24px 28px;
  max-width: 1400px;
  width: 100%;
}

/* ── DASHBOARD HERO ── */
.dashboard-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
  padding: 28px 32px;
  border-radius: var(--dash-radius);
  color: #ffffff;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 40%, #1d4ed8 100%);
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.2);
  overflow: hidden;
  position: relative;
}

.dashboard-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.dashboard-hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: 30%;
  width: 300px;
  height: 300px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.dashboard-hero > * {
  position: relative;
  z-index: 1;
}

.dashboard-hero-compact {
  grid-template-columns: 1fr auto;
  padding: 22px 28px;
}

.hero-kicker {
  display: inline-flex;
  padding: 5px 12px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  color: #e0f2fe;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dashboard-hero h1 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.dashboard-hero p {
  margin: 0;
  max-width: 600px;
  color: #bfdbfe;
  line-height: 1.6;
  font-size: 0.92rem;
}

.dashboard-hero .hero-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dashboard-hero-panel {
  align-self: stretch;
  min-width: 220px;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dashboard-hero-panel span,
.dashboard-hero-panel small {
  display: block;
  color: #bfdbfe;
  font-size: 0.82rem;
}

.dashboard-hero-panel strong {
  display: block;
  margin: 10px 0 6px;
  font-size: 2rem;
  letter-spacing: -0.03em;
  color: #ffffff;
}

/* ── BUTTONS ── */
.user-dashboard-body .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.88rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.user-dashboard-body .btn-primary {
  background: var(--dash-primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.user-dashboard-body .btn-primary:hover {
  background: var(--dash-primary-dark);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.user-dashboard-body .dashboard-hero .btn-primary {
  background: #ffffff;
  color: var(--dash-primary-dark);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.user-dashboard-body .dashboard-hero .btn-primary:hover {
  background: #f0f9ff;
}

.user-dashboard-body .btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.user-dashboard-body .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ── STATS GRID ── */
.user-dashboard-body .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 24px;
}

.user-dashboard-body .stat-card {
  min-height: 0;
  padding: 20px;
  border-radius: var(--dash-radius);
  border: 1px solid var(--dash-border);
  background: #ffffff;
  box-shadow: var(--dash-shadow-sm);
  transition: all 0.2s ease;
}

.user-dashboard-body .stat-card:hover {
  box-shadow: var(--dash-shadow);
  transform: translateY(-2px);
}

.user-dashboard-body .stat-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.user-dashboard-body .stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-dashboard-body .stat-icon svg {
  width: 20px;
  height: 20px;
}

.user-dashboard-body .stat-icon-primary { background: var(--dash-primary-light); color: var(--dash-primary); }
.user-dashboard-body .stat-icon-success { background: var(--dash-success-light); color: var(--dash-success); }
.user-dashboard-body .stat-icon-warning { background: var(--dash-warning-light); color: var(--dash-warning); }
.user-dashboard-body .stat-icon-info { background: var(--dash-info-light); color: var(--dash-info); }

.user-dashboard-body .stat-label,
.user-dashboard-body .stat-card h3 {
  color: var(--dash-muted) !important;
  font-size: 0.74rem !important;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 6px !important;
}

.user-dashboard-body .stat-value {
  color: var(--dash-text) !important;
  font-size: 1.75rem !important;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  margin-bottom: 4px !important;
}

.user-dashboard-body .stat-change {
  color: #94a3b8 !important;
  font-size: 0.78rem !important;
}

.user-dashboard-body .stat-trend {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 8px;
}

.user-dashboard-body .stat-trend-up {
  color: var(--dash-success);
  background: var(--dash-success-light);
}

.user-dashboard-body .stat-trend-down {
  color: var(--dash-danger);
  background: #fef2f2;
}

/* ── DASHBOARD GRID ── */
.user-dashboard-body .dashboard-grid,
.user-dashboard-body .analytics-grid {
  gap: 16px;
  margin-top: 0;
}

/* ── CARDS ── */
.user-dashboard-body .card {
  border: 1px solid var(--dash-border);
  border-radius: var(--dash-radius);
  margin-bottom: 16px;
  background: #ffffff;
  box-shadow: var(--dash-shadow-sm);
  overflow: hidden;
}

.user-dashboard-body .card-header {
  padding: 16px 20px;
  background: #ffffff;
  border-bottom: 1px solid var(--dash-border);
}

.user-dashboard-body .card-header h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--dash-text);
  font-size: 0.95rem;
  font-weight: 600;
}

.user-dashboard-body .card-header h2 svg {
  color: var(--dash-primary);
}

.user-dashboard-body .card-body {
  padding: 20px;
}

.user-dashboard-body .card-link {
  color: var(--dash-primary);
  font-weight: 600;
  font-size: 0.84rem;
}

.user-dashboard-body .card-link:hover {
  color: var(--dash-primary-dark);
}

/* ── CODE BLOCK ── */
.user-dashboard-body .card-quick-start pre {
  margin: 0;
  border-radius: 12px;
  background: #1e293b;
  border: 1px solid #334155;
  padding: 20px;
}

.user-dashboard-body .card-quick-start code {
  color: #e2e8f0;
  font-size: 0.85rem;
  line-height: 1.7;
}

/* ── KEY ITEMS ── */
.user-dashboard-body .key-item {
  border-radius: 12px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid var(--dash-border);
  transition: all 0.15s ease;
}

.user-dashboard-body .key-item:hover {
  background: #f1f5f9;
}

/* ── DATA TABLE ── */
.user-dashboard-body .data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.user-dashboard-body .data-table th {
  background: #f8fafc;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 12px 16px;
  border-bottom: 1px solid var(--dash-border);
}

.user-dashboard-body .data-table td {
  padding: 14px 16px;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.88rem;
}

.user-dashboard-body .data-table tbody tr:hover {
  background: #f8fafc;
}

.user-dashboard-body .data-table tbody tr:last-child td {
  border-bottom: none;
}

.user-dashboard-body .keys-table-wrapper,
.user-dashboard-body .users-table-wrapper {
  border-radius: 12px;
  border: 1px solid var(--dash-border);
  overflow: hidden;
}

.table-search {
  width: 260px !important;
}

/* ── EMPTY STATE ── */
.user-dashboard-body .empty-state {
  background: #fafbfc;
  border: 1px dashed #cbd5e1;
  border-radius: var(--dash-radius);
  padding: 48px 24px;
}

.user-dashboard-body .empty-state h3 {
  color: var(--dash-text);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.user-dashboard-body .empty-state p {
  color: var(--dash-muted);
  font-size: 0.88rem;
}

/* ── FORM SELECT ── */
.user-dashboard-body .form-select {
  height: 40px;
  min-width: 160px;
  background-color: #ffffff;
  color: var(--dash-text);
  border: 1px solid var(--dash-border);
  border-radius: 10px;
  font-size: 0.88rem;
  padding: 8px 36px 8px 14px;
}

.user-dashboard-body .form-select:focus {
  border-color: var(--dash-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* ── MODAL ── */
.user-dashboard-body .modal-content {
  background: #ffffff;
  border-radius: var(--dash-radius);
}

/* ── KEY STATUS BADGES ── */
.user-dashboard-body .key-status {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 8px;
}

.user-dashboard-body .key-status.active {
  color: var(--dash-success);
  background: var(--dash-success-light);
  border: 1px solid #bbf7d0;
}

.user-dashboard-body .key-status.inactive {
  color: var(--dash-danger);
  background: #fef2f2;
  border: 1px solid #fecaca;
}

/* ── COPY BUTTONS ── */
.user-dashboard-body .btn-copy,
.user-dashboard-body .btn-copy-sm {
  background: #f1f5f9;
  border: 1px solid var(--dash-border);
  color: #475569;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.user-dashboard-body .btn-copy:hover,
.user-dashboard-body .btn-copy-sm:hover {
  background: var(--dash-primary);
  color: #ffffff;
  border-color: var(--dash-primary);
}

/* ── KEY CODE ── */
.user-dashboard-body .key-code {
  background: #f1f5f9;
  border: 1px solid var(--dash-border);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.82rem;
  color: #334155;
}

/* ── DROPDOWN ── */
.user-dashboard-body .dropdown-menu {
  background: #ffffff;
  border: 1px solid var(--dash-border);
  border-radius: 12px;
  box-shadow: var(--dash-shadow-lg);
}

.user-dashboard-body .dropdown-header {
  background: #f8fafc;
  border-bottom: 1px solid var(--dash-border);
}

.user-dashboard-body .dropdown-item {
  color: #475569;
  font-size: 0.88rem;
}

.user-dashboard-body .dropdown-item:hover {
  background: #f1f5f9;
  color: var(--dash-text);
}

/* ── RESPONSIVE ── */
@media (max-width: 1180px) {
  .user-dashboard-body .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-hero {
    grid-template-columns: 1fr;
  }
  .dashboard-hero-panel {
    min-width: 0;
  }
}

@media (max-width: 900px) {
  .user-dashboard-body .sidebar {
    transform: translateX(-100%);
    position: fixed;
    z-index: 200;
  }
  .user-dashboard-body .sidebar.open {
    transform: translateX(0);
    box-shadow: 8px 0 30px rgba(0,0,0,0.15);
  }
  .user-dashboard-body .main-content {
    margin-left: 0;
  }
  .nav-page-meta,
  .topbar-doc-link {
    display: none;
  }
  .user-dashboard-body .navbar-user {
    padding: 0 16px;
  }
}

@media (max-width: 640px) {
  .user-dashboard-body .page-content {
    padding: 16px;
  }
  .dashboard-hero,
  .dashboard-hero-compact {
    padding: 20px;
    border-radius: 14px;
  }
  .dashboard-hero h1 {
    font-size: 1.35rem;
  }
  .dashboard-hero .hero-actions,
  .dashboard-hero .header-actions {
    width: 100%;
  }
  .dashboard-hero .btn,
  .dashboard-hero .form-select {
    width: 100%;
  }
  .user-dashboard-body .stats-grid {
    grid-template-columns: 1fr;
  }
  .user-dashboard-body .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .table-search {
    width: 100% !important;
  }
}
