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

:root {
  --primary: #2AABEE;
  --primary-dark: #0088CC;
  --primary-light: rgba(42, 171, 238, 0.15);
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --text-tertiary: #999999;
  --bg-primary: #ffffff;
  --bg-secondary: #fafbfc;
  --bg-tertiary: #f5f6f7;
  --border-light: #e9ecef;
  --border-medium: #dee2e6;
  --sidebar-bg: #18181b;
  --sidebar-hover: #2a2a2e;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.16);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 40px;
  --spacing-2xl: 48px;
}

body {
  margin: 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  font-size: 14px;
}

.dashboard-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* MAIN CONTENT */
.main-content {
  flex: 1;
  margin-left: 280px;
  min-height: 100vh;
  background: var(--bg-secondary);
}

.content-wrapper {
  padding: var(--spacing-2xl);
}

.page-header {
  margin-bottom: var(--spacing-2xl);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -1px;
  margin-bottom: var(--spacing-xs);
  line-height: 1.2;
}

.page-description {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.6;
  max-width: 600px;
}

/* PRICING GRID */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-sm);
}

.pricing-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  position: relative;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  animation: fadeInUp 0.6s ease-out backwards;
}

.pricing-card:nth-child(1) { animation-delay: 0.1s; }
.pricing-card:nth-child(2) { animation-delay: 0.2s; }
.pricing-card:nth-child(3) { animation-delay: 0.3s; }

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

.pricing-card.popular {
  border: 2px solid var(--primary);
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

.pricing-card.popular:hover {
  transform: scale(1.03) translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.pricing-card.popular::before {
  content: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--text-primary);
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-md);
}

.plan-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--border-light);
}

.plan-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.plan-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--spacing-xs);
  margin: var(--spacing-sm) 0;
}

.price-currency {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 500;
}

.price-amount {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
}

.price-period {
  font-size: 14px;
  color: var(--text-secondary);
}

.commission-info {
  text-align: center;
  padding: var(--spacing-sm);
  background: linear-gradient(135deg, #e8f4fd, #e8f4fd);
  border-radius: var(--radius-sm);
  margin-top: var(--spacing-sm);
  font-size: 13px;
  color: var(--text-secondary);
  border: 1px solid #2AABEE;
}

.commission-rate {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 15px;
}

.features-list {
  list-style: none;
  margin-bottom: var(--spacing-lg);
  flex-grow: 1;
  padding: 0;
}

.features-list li {
  padding: 6px 0;
  display: flex;
  align-items: flex-start;
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
}

.features-list li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--primary);
  margin-right: var(--spacing-sm);
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

.features-list li.disabled::before {
  content: "\f00d";
  color: var(--text-tertiary);
}

.features-list li.disabled {
  color: var(--text-tertiary);
  text-decoration: line-through;
}

.coming-soon-tag {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(42, 171, 238, 0.15);
  color: #0088CC;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  margin-left: 8px;
  vertical-align: middle;
}

.plan-cta {
  width: 100%;
  padding: var(--spacing-md);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cta-primary,
.cta-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-medium);
}

.cta-primary:hover,
.cta-secondary:hover {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(42, 171, 238, 0.4);
}

/* LOGOUT BUTTON */
.btn-logout {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #666;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-logout:hover {
  background: #fee2e2;
  border-color: #ef4444;
  color: #ef4444;
}

/* MOBILE MENU TOGGLE */
.menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1001;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--sidebar-bg);
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

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

/* RESPONSIVE */
@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }

  .pricing-card.popular {
    transform: none;
  }

  .pricing-card.popular:hover {
    transform: translateY(-5px);
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .main-content {
    margin-left: 0;
    width: 100%;
  }

  .content-wrapper {
    padding: var(--spacing-md);
    padding-top: 80px;
  }

  .page-header {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .page-title {
    font-size: 28px;
  }
}

/* Aligner les boutons CTA en bas des cartes */
.pricing-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pricing-card .features-list {
  flex-grow: 1;
}

.pricing-card .plan-cta {
  margin-top: auto;
}

.pricing-card .card-footer {
  margin-top: auto;
}

/* Grille avec hauteurs égales */
.pricing-grid {
  display: grid;
  align-items: stretch;
}

.pricing-grid > * {
  height: 100%;
}

/* Forcer le bouton et trial-link en bas de la carte */
.pricing-card {
  justify-content: flex-start;
}

.pricing-card .plan-cta {
  margin-top: auto !important;
}

.pricing-card .cta-secondary {
  margin-bottom: 33px; /* Espace pour aligner avec les cartes qui ont trial-link */
}
