/* ============================================================================
   DASHBOARD PAGE STYLES - PDF Builder Pro
   Style moderne inspiré de l'onglet Canvas avec préfixe pdfb-
   ============================================================================ */

/* Header */
.pdfb-dashboard-header {
  background: #667eea;
  border-radius: 16px;
  padding: 40px;
  color: white;
  margin-bottom: 32px;
  box-shadow:
    0 10px 40px rgba(102, 126, 234, 0.3),
    0 4px 12px rgba(102, 126, 234, 0.2),
    0 2px 4px rgba(102, 126, 234, 0.1);
  position: relative;
  overflow: hidden;
}

.pdfb-dashboard-header::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  transform: translate(30%, -30%);
  pointer-events: none;
}

.pdfb-dashboard-header h1 {
  margin: 0 0 8px;
  font-size: 36px;
  font-weight: 700;
  color: white;
  letter-spacing: -1px;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

.pdfb-dashboard-subtitle {
  margin: 0 0 16px;
  font-size: 16px;
  opacity: 0.95;
  color: white;
  letter-spacing: -0.1px;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

.pdfb-dashboard-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.pdfb-version-info,
.pdfb-last-update {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

.pdfb-version-info:hover,
.pdfb-last-update:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Stats Cards */
.pdfb-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.pdfb-stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.05),
    0 1px 2px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.pdfb-stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #667eea;
  transform: scaleX(0);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.pdfb-stat-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 8px 24px rgba(102, 126, 234, 0.15),
    0 4px 12px rgba(0, 0, 0, 0.08),
    0 2px 4px rgba(0, 0, 0, 0.04);
  border-color: #667eea;
}

.pdfb-stat-card:hover::before {
  transform: scaleX(1);
}

.pdfb-stat-icon {
  font-size: 48px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #667eea;
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.pdfb-stat-card:hover .pdfb-stat-icon {
  transform: scale(1.05) rotate(-3deg);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
}

.pdfb-stat-content {
  flex: 1;
}

.pdfb-stat-number {
  font-size: 32px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  transition: color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.pdfb-stat-card:hover .pdfb-stat-number {
  color: #667eea;
}

.pdfb-stat-label {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
  letter-spacing: -0.1px;
}

/* Action Cards */
.pdfb-dashboard-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.pdfb-action-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 28px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.05),
    0 1px 2px rgba(0, 0, 0, 0.06);
  position: relative;
  display: flex;
  flex-direction: column;
}

.pdfb-action-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none; /* Permet les clics à travers le pseudo-élément */
}

.pdfb-action-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 12px 32px rgba(102, 126, 234, 0.15),
    0 6px 16px rgba(0, 0, 0, 0.08);
  border-color: transparent;
}

.pdfb-action-card:hover::after {
  opacity: 1;
}

.pdfb-action-card.pdfb-primary {
  background: #667eea;
  border: none;
  color: white;
  box-shadow:
    0 4px 16px rgba(102, 126, 234, 0.25),
    0 2px 8px rgba(102, 126, 234, 0.15);
}

.pdfb-action-card.pdfb-primary:hover {
  box-shadow:
    0 12px 36px rgba(102, 126, 234, 0.35),
    0 6px 18px rgba(102, 126, 234, 0.2);
  transform: translateY(-6px) scale(1.02);
}

.pdfb-action-card.pdfb-primary h3 {
  color: white;
}

.pdfb-action-card.pdfb-primary p {
  color: rgba(255, 255, 255, 0.9);
}

.pdfb-action-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 600;
  color: #1e293b;
  letter-spacing: -0.3px;
  line-height: 1.3;
}

.pdfb-action-card p {
  margin: 0 0 20px;
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
}

.pdfb-action-card .button {
  width: 100%;
  text-align: center;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  margin-top: auto;
}

.pdfb-action-card .button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
}

.pdfb-action-card .button:hover::before {
  width: 300px;
  height: 300px;
}

.pdfb-action-card .button-primary {
  background: white;
  color: #667eea;
  border-color: white;
}

.pdfb-action-card .button-primary:hover {
  background: #f8fafc;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.pdfb-action-card .button-secondary {
  background: #667eea;
  color: white;
  border: none;
}

.pdfb-action-card .button-secondary:hover {
  background: #5568d3;
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

/* Premium badges et verrouillage */
.pdfb-premium-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
  animation: pulse 2s infinite;
}

.pdfb-premium-locked {
  position: relative;
  opacity: 0.7;
}

.pdfb-premium-locked::after {
  content: "🔒";
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 24px;
  opacity: 0.3;
}

.pdfb-premium-locked:hover {
  opacity: 0.85;
}

.pdfb-premium-button {
  cursor: not-allowed !important;
  opacity: 0.8;
}

.pdfb-premium-button:hover {
  transform: none !important;
}

/* Guide rapide */
.pdfb-dashboard-guide {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 32px;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.05),
    0 1px 2px rgba(0, 0, 0, 0.06);
  position: relative;
}

.pdfb-dashboard-guide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #667eea;
  border-radius: 12px 0 0 12px;
}

.pdfb-dashboard-guide h3 {
  margin: 0 0 24px;
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.5px;
  position: relative;
  padding-bottom: 12px;
}

.pdfb-dashboard-guide h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: #667eea;
  border-radius: 3px;
}

.pdfb-guide-steps {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 0 20px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #667eea #e2e8f0;
}

/* Style de la scrollbar pour Webkit (Chrome, Safari, Edge) */
.pdfb-guide-steps::-webkit-scrollbar {
  height: 8px;
}

.pdfb-guide-steps::-webkit-scrollbar-track {
  background: #e2e8f0;
  border-radius: 10px;
}

.pdfb-guide-steps::-webkit-scrollbar-thumb {
  background: #667eea;
  border-radius: 10px;
  transition: background 0.3s;
}

.pdfb-guide-steps::-webkit-scrollbar-thumb:hover {
  background: #5568d3;
}

.pdfb-step {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  cursor: pointer;
  min-width: 280px;
  max-width: 320px;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}

.pdfb-step-link {
  cursor: pointer;
}

.pdfb-step-link:hover {
  text-decoration: none;
}

.pdfb-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #667eea;
  border-radius: 10px 0 0 10px;
  transform: scaleY(0);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.pdfb-step:hover {
  border-color: #667eea;
  box-shadow:
    0 4px 16px rgba(102, 126, 234, 0.15),
    0 2px 8px rgba(0, 0, 0, 0.05);
  transform: translateY(-4px) scale(1.02);
  background: #ffffff;
}

.pdfb-step:hover::before {
  transform: scaleY(1);
}

/* Effet particulier pour les étapes cliquables */
.pdfb-step-link::after {
  content: "→";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  font-size: 20px;
  color: #667eea;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.pdfb-step-link:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.pdfb-step-number {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #667eea;
  color: white;
  font-size: 18px;
  font-weight: 700;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.pdfb-step:hover .pdfb-step-number {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.pdfb-step-content {
  flex: 1;
}

.pdfb-step-content h4 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  letter-spacing: -0.2px;
  transition: color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.pdfb-step:hover .pdfb-step-content h4 {
  color: #667eea;
}

.pdfb-step-content p {
  margin: 0 0 6px;
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
}

.pdfb-step-content small {
  display: block;
  font-size: 13px;
  color: #64748b;
  font-style: italic;
}

/* Features Grid */
.pdfb-dashboard-features {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 32px;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.05),
    0 1px 2px rgba(0, 0, 0, 0.06);
}

.pdfb-dashboard-features h3 {
  margin: 0 0 24px;
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.5px;
  position: relative;
  padding-bottom: 12px;
}

.pdfb-dashboard-features h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: #667eea;
  border-radius: 3px;
}

.pdfb-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.pdfb-feature-category {
  padding: 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.pdfb-feature-category::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #667eea;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.pdfb-feature-category:hover {
  border-color: #667eea;
  box-shadow:
    0 4px 16px rgba(102, 126, 234, 0.15),
    0 2px 8px rgba(0, 0, 0, 0.05);
  background: #ffffff;
  transform: translateY(-2px);
}

.pdfb-feature-category:hover::before {
  transform: scaleX(1);
}

.pdfb-feature-category h4 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
  letter-spacing: -0.3px;
  transition: color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.pdfb-feature-category:hover h4 {
  color: #667eea;
}

.pdfb-feature-category ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pdfb-feature-category li {
  padding: 8px 0 8px 24px;
  position: relative;
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.pdfb-feature-category li:hover {
  color: #1e293b;
  padding-left: 28px;
}

.pdfb-feature-category li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #667eea;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.pdfb-feature-category li:hover:before {
  transform: scale(1.2);
}

/* Nouvelles fonctionnalités */
.pdfb-new-features {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 2px solid #e2e8f0;
  position: relative;
}

.pdfb-new-features::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.pdfb-new-features h4 {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #f8f9ff 0%, #fff5f7 100%);
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.08);
  position: relative;
  overflow: hidden;
}

.pdfb-new-features h4::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
}

.pdfb-new-features-list {
  display: grid;
  gap: 12px;
  animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) backwards;
  animation-delay: 0.3s;
}

.pdfb-new-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
}

.pdfb-new-feature-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
  transform: scaleY(0);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.pdfb-new-feature-item:hover {
  border-color: #667eea;
  box-shadow:
    0 4px 16px rgba(102, 126, 234, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.05);
  transform: translateX(4px);
  background: #ffffff;
}

.pdfb-new-feature-item:hover::before {
  transform: scaleY(1);
}

.pdfb-feature-badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  position: relative;
  overflow: hidden;
}

.pdfb-feature-badge::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: rotate(45deg);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0%,
  100% {
    transform: translateX(-100%) rotate(45deg);
  }
  50% {
    transform: translateX(100%) rotate(45deg);
  }
}

.pdfb-new-feature-item strong {
  color: #1e293b;
  font-weight: 600;
  transition: color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.pdfb-new-feature-item:hover strong {
  color: #667eea;
}

/* Animation d'entrée échelonnée pour les feature items */
.pdfb-new-feature-item:nth-child(1) {
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
  animation-delay: 0.35s;
}
.pdfb-new-feature-item:nth-child(2) {
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
  animation-delay: 0.4s;
}
.pdfb-new-feature-item:nth-child(3) {
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
  animation-delay: 0.45s;
}
.pdfb-new-feature-item:nth-child(4) {
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
  animation-delay: 0.5s;
}
.pdfb-new-feature-item:nth-child(5) {
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
  animation-delay: 0.55s;
}

/* Responsive */
@media (max-width: 768px) {
  .pdfb-dashboard-header {
    padding: 24px;
  }

  .pdfb-dashboard-header h1 {
    font-size: 28px;
  }

  .pdfb-dashboard-stats {
    grid-template-columns: 1fr;
  }

  .pdfb-dashboard-actions {
    grid-template-columns: 1fr;
  }

  .pdfb-features-grid {
    grid-template-columns: 1fr;
  }

  .pdfb-step {
    flex-direction: column;
  }

  .pdfb-stat-card:hover,
  .pdfb-action-card:hover,
  .pdfb-step:hover,
  .pdfb-feature-category:hover {
    transform: none;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

.pdfb-stat-card,
.pdfb-action-card,
.pdfb-step,
.pdfb-feature-category {
  animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.pdfb-stat-card:nth-child(1) {
  animation-delay: 0.1s;
}
.pdfb-stat-card:nth-child(2) {
  animation-delay: 0.15s;
}
.pdfb-stat-card:nth-child(3) {
  animation-delay: 0.2s;
}
.pdfb-stat-card:nth-child(4) {
  animation-delay: 0.25s;
}

.pdfb-action-card:nth-child(1) {
  animation-delay: 0.15s;
}
.pdfb-action-card:nth-child(2) {
  animation-delay: 0.2s;
}
.pdfb-action-card:nth-child(3) {
  animation-delay: 0.25s;
}

.pdfb-step:nth-child(1) {
  animation-delay: 0.1s;
}
.pdfb-step:nth-child(2) {
  animation-delay: 0.15s;
}
.pdfb-step:nth-child(3) {
  animation-delay: 0.2s;
}
.pdfb-step:nth-child(4) {
  animation-delay: 0.25s;
}
.pdfb-step:nth-child(5) {
  animation-delay: 0.3s;
}

.pdfb-feature-category:nth-child(1) {
  animation-delay: 0.1s;
}
.pdfb-feature-category:nth-child(2) {
  animation-delay: 0.15s;
}
.pdfb-feature-category:nth-child(3) {
  animation-delay: 0.2s;
}
.pdfb-feature-category:nth-child(4) {
  animation-delay: 0.25s;
}

/* ============================================================================
   PREMIUM PROMO SECTION
   ============================================================================ */

.pdfb-promo-section {
  margin-bottom: 32px;
}

/* ── Teaser banner ── */
.pdfb-promo-teaser {
  display: flex;
  align-items: center;
  gap: 32px;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
  border-radius: 16px;
  padding: 36px 40px;
  margin-bottom: 24px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 12px 40px rgba(67, 56, 202, 0.35);
}

.pdfb-promo-teaser::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 70%);
  pointer-events: none;
}

.pdfb-promo-teaser-left {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.pdfb-promo-teaser-badge {
  display: inline-block;
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255,255,255,.3);
  color: #c7d2fe;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.pdfb-promo-teaser-title {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  letter-spacing: -0.5px;
}

.pdfb-promo-teaser-title span {
  color: #a5b4fc;
}

.pdfb-promo-teaser-sub {
  margin: 0 0 18px;
  font-size: 14px;
  color: rgba(255,255,255,.8);
  line-height: 1.6;
}

.pdfb-promo-teaser-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: rgba(255,255,255,.6);
}

.pdfb-promo-progress-bar {
  flex: 1;
  max-width: 160px;
  height: 6px;
  background: rgba(255,255,255,.2);
  border-radius: 6px;
  overflow: hidden;
}

.pdfb-promo-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #818cf8, #a5b4fc);
  border-radius: 6px;
}

/* ── CSS document mockup ── */
.pdfb-promo-teaser-right {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.pdfb-promo-doc-mockup {
  width: 140px;
  background: #fff;
  border-radius: 8px;
  padding: 14px 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.4), 0 2px 8px rgba(0,0,0,.2);
  position: relative;
}

.pdfb-promo-doc-header {
  height: 20px;
  background: linear-gradient(90deg, #4338ca, #818cf8);
  border-radius: 4px;
  margin-bottom: 10px;
}

.pdfb-promo-doc-line {
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  margin-bottom: 6px;
  width: 75%;
}

.pdfb-promo-doc-line--wide { width: 100%; }
.pdfb-promo-doc-line--short { width: 45%; }

.pdfb-promo-doc-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 8px 0;
}

.pdfb-promo-doc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
}

.pdfb-promo-doc-cell {
  height: 18px;
  background: #f1f5f9;
  border-radius: 3px;
}

.pdfb-promo-doc-cell--accent {
  background: #c7d2fe;
}

.pdfb-promo-doc-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 4px 8px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(245,158,11,.5);
}

/* ── Features header ── */
.pdfb-promo-features-header {
  text-align: center;
  margin-bottom: 20px;
}

.pdfb-promo-features-header h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
}

.pdfb-promo-features-header p {
  margin: 0;
  font-size: 14px;
  color: #64748b;
}

/* ── Features grid ── */
.pdfb-promo-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.pdfb-promo-feature-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.pdfb-promo-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(67,56,202,.12);
  border-color: #818cf8;
}

.pdfb-promo-feature-card--hot {
  border-color: #f59e0b;
  background: linear-gradient(135deg, #fffbeb, #fff);
}

.pdfb-promo-feature-card--hot:hover {
  box-shadow: 0 8px 24px rgba(245,158,11,.2);
  border-color: #d97706;
}

.pdfb-promo-feature-icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.pdfb-promo-feature-card h4 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
}

.pdfb-promo-feature-card p {
  margin: 0;
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.5;
}

/* ── Comparatif accueil ── */
.pdfb-promo-compare {
  display: flex;
  flex-direction: column;
  margin: 0 0 28px;
  padding: 0;
  border: 1px solid #d7deea;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.pdfb-promo-compare > summary {
  order: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid #d7deea;
  background: #f6f7f9;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.pdfb-promo-compare > summary::-webkit-details-marker {
  display: none;
}

.pdfb-promo-compare > summary::marker {
  content: "";
}

.pdfb-promo-compare__toggle-label--closed,
.pdfb-promo-compare__toggle-icon--closed {
  display: none;
}

.pdfb-promo-compare:not([open]) .pdfb-promo-compare__toggle-label--open,
.pdfb-promo-compare:not([open]) .pdfb-promo-compare__toggle-icon--open {
  display: none;
}

.pdfb-promo-compare:not([open]) .pdfb-promo-compare__toggle-label--closed,
.pdfb-promo-compare:not([open]) .pdfb-promo-compare__toggle-icon--closed {
  display: inline-flex;
}

.pdfb-promo-compare__header {
  order: 1;
  padding: 22px 28px 18px;
  background: linear-gradient(90deg, #6f74c9 0%, #7254be 48%, #6f4aa4 100%);
  color: #fff;
}

.pdfb-promo-compare__header h3 {
  margin: 0;
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.2px;
  line-height: 1.2;
}

.pdfb-promo-compare__table-wrap {
  order: 2;
  overflow-x: auto;
  background: #fff;
}

.pdfb-promo-compare__table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  table-layout: fixed;
}

.pdfb-promo-compare__table col.pdfb-promo-compare__col--feature {
  width: 54%;
}

.pdfb-promo-compare__table col.pdfb-promo-compare__col--free,
.pdfb-promo-compare__table col.pdfb-promo-compare__col--pro {
  width: 23%;
}

.pdfb-promo-compare__table thead th {
  padding: 12px 14px;
  border-bottom: 1px solid #d9e0ea;
  background: #fafbfc;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.pdfb-promo-compare__table thead th:first-child {
  text-align: left;
  color: #111827;
}

.pdfb-promo-compare__table thead th:nth-child(3) {
  background: #fff9e8;
  border-bottom: 2px solid #d8ae00;
  color: #a87400;
}

.pdfb-promo-compare__table tbody th,
.pdfb-promo-compare__table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid #edf1f7;
  font-size: 13px;
  line-height: 1.4;
  vertical-align: middle;
}

.pdfb-promo-compare__table tbody th {
  color: #334155;
  font-weight: 500;
  text-align: left;
}

.pdfb-promo-compare__table tbody td {
  text-align: center;
}

.pdfb-promo-compare__table tbody td:nth-child(2) {
  color: #64748b;
}

.pdfb-promo-compare__table tbody td:nth-child(3) {
  background: rgba(246, 201, 14, 0.08);
}

.pdfb-promo-compare__table tbody tr:last-child th,
.pdfb-promo-compare__table tbody tr:last-child td {
  border-bottom: none;
}

.pdfb-promo-compare__value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  font-weight: 600;
}

.pdfb-promo-compare__value--check {
  color: #1b8f4b;
  font-size: 15px;
  font-weight: 700;
}

.pdfb-promo-compare__value--dash {
  color: #c7cfdb;
  font-size: 16px;
  font-weight: 700;
}

.pdfb-promo-compare__value--text.pdfb-promo-compare__value--free {
  color: #64748b;
  font-weight: 500;
}

.pdfb-promo-compare__value--text.pdfb-promo-compare__value--pro {
  color: #a87400;
  font-weight: 700;
}

/* ── Pricing ── */
.pdfb-promo-pricing-wrapper {
  text-align: center;
  margin-bottom: 28px;
}

.pdfb-promo-pricing-wrapper h3 {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
}

.pdfb-promo-pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}

.pdfb-promo-plan {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px 16px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.pdfb-promo-plan:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(67,56,202,.15);
  border-color: #818cf8;
  text-decoration: none;
  color: inherit;
}

.pdfb-promo-plan--popular {
  border-color: #4338ca;
  background: linear-gradient(160deg, #f0f0ff 0%, #fff 60%);
  transform: scale(1.04);
}

.pdfb-promo-plan--popular:hover {
  transform: scale(1.04) translateY(-6px);
}

.pdfb-promo-plan--lifetime {
  border-color: #d97706;
  background: linear-gradient(160deg, #fffbeb 0%, #fff 60%);
}

.pdfb-promo-plan-ribbon {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 12px;
  white-space: nowrap;
}

.pdfb-promo-plan--popular .pdfb-promo-plan-ribbon {
  background: linear-gradient(135deg, #4338ca, #6366f1);
  color: #fff;
}

.pdfb-promo-plan--lifetime .pdfb-promo-plan-ribbon {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  color: #fff;
}

.pdfb-promo-plan-period {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  margin-bottom: 8px;
}

.pdfb-promo-plan--popular .pdfb-promo-plan-period {
  color: #4338ca;
}

.pdfb-promo-plan--lifetime .pdfb-promo-plan-period {
  color: #d97706;
}

.pdfb-promo-plan-price {
  font-size: 38px;
  font-weight: 900;
  color: #1e293b;
  line-height: 1;
  letter-spacing: -1px;
}

.pdfb-promo-plan--popular .pdfb-promo-plan-price { color: #4338ca; }
.pdfb-promo-plan--lifetime .pdfb-promo-plan-price { color: #d97706; }

.pdfb-promo-plan-cycle {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 4px;
  margin-bottom: 10px;
}

.pdfb-promo-plan-note {
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  text-align: center;
  line-height: 1.4;
}

/* ── CTA final ── */
.pdfb-promo-cta {
  text-align: center;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  border-radius: 16px;
  padding: 40px 32px;
  box-shadow: 0 12px 40px rgba(67,56,202,.3);
}

.pdfb-promo-cta-quote {
  margin: 0 auto 24px;
  max-width: 560px;
  font-size: 17px;
  font-style: italic;
  color: rgba(255,255,255,.9);
  line-height: 1.6;
  font-weight: 500;
  quotes: none;
}

.pdfb-promo-cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  padding: 14px 36px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(245,158,11,.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: 0.2px;
}

.pdfb-promo-cta-button:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 32px rgba(245,158,11,.6);
  color: #fff;
  text-decoration: none;
}

.pdfb-promo-cta-trust {
  margin: 18px 0 0;
  font-size: 12px;
  color: rgba(255,255,255,.5);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .pdfb-promo-teaser {
    flex-direction: column;
    padding: 28px 24px;
  }

  .pdfb-promo-teaser-right {
    display: none;
  }

  .pdfb-promo-pricing {
    grid-template-columns: 1fr;
  }

  .pdfb-promo-plan--popular {
    transform: none;
    order: -1;
  }

  .pdfb-promo-compare__header {
    padding: 18px 20px 16px;
  }

  .pdfb-promo-compare__table {
    min-width: 700px;
  }

  .pdfb-promo-compare__table thead th,
  .pdfb-promo-compare__table tbody th,
  .pdfb-promo-compare__table tbody td {
    padding-left: 12px;
    padding-right: 12px;
  }

  .pdfb-promo-compare > summary {
    padding: 11px 14px;
  }
}

/* ============================================================================
   REFACTORED PRO PAGE LAYOUT
   ============================================================================ */

.pdfb-pdf-builder-dashboard {
  display: block;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.pdfb-dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 24px;
  align-items: start;
}

.pdfb-dashboard-layout__main,
.pdfb-dashboard-layout__sidebar {
  min-width: 0;
}

.pdfb-dashboard-layout__main {
  display: grid;
  gap: 24px;
}

.pdfb-dashboard-layout__sidebar {
  display: grid;
  gap: 20px;
  position: sticky;
  top: 24px;
  align-self: start;
}

.pdfb-dashboard-actions-section,
.pdfb-dashboard-sidebar-card {
  background: #ffffff;
  border: 1px solid #dfe7f1;
  border-radius: 20px;
  padding: 24px;
  box-shadow:
    0 12px 28px rgba(15, 23, 42, 0.06),
    0 2px 6px rgba(15, 23, 42, 0.03);
}

.pdfb-dashboard-actions-section {
  display: grid;
  gap: 18px;
}

.pdfb-dashboard-stats--sidebar {
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 0;
}

.pdfb-dashboard-stats--sidebar .pdfb-stat-card {
  padding: 18px 20px;
}

.pdfb-dashboard-guide--sidebar {
  margin-bottom: 0;
  padding: 24px;
  border-radius: 20px;
}

.pdfb-section-heading {
  display: grid;
  gap: 8px;
}

.pdfb-section-heading--center {
  justify-items: center;
  text-align: center;
}

.pdfb-section-heading__eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(67, 56, 202, 0.1);
  color: #4338ca;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pdfb-section-heading h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.pdfb-section-heading p {
  margin: 0;
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  max-width: 72ch;
}

.pdfb-section-heading--center p {
  max-width: 60ch;
}

.pdfb-promo-section {
  display: grid;
  gap: 24px;
  margin-bottom: 0;
}

.pdfb-promo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.95fr);
  gap: 24px;
  padding: 30px;
  border-radius: 24px;
  background: linear-gradient(135deg, #111827 0%, #312e81 55%, #4338ca 100%);
  color: #ffffff;
  box-shadow: 0 18px 44px rgba(67, 56, 202, 0.34);
  position: relative;
  overflow: hidden;
}

.pdfb-promo-hero::before {
  content: "";
  position: absolute;
  inset: auto -120px -120px auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.pdfb-promo-hero__copy {
  display: grid;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.pdfb-promo-hero__eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #c7d2fe;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pdfb-promo-hero__title {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.04em;
  color: #ffffff;
}

.pdfb-promo-hero__lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.86);
  max-width: 60ch;
}

.pdfb-promo-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pdfb-promo-hero__actions .button {
  margin-top: 0;
}

.pdfb-promo-hero__actions .button-primary {
  background: #ffffff;
  border-color: #ffffff;
  color: #1e293b;
}

.pdfb-promo-hero__actions .button-primary:hover {
  background: #f8fafc;
  color: #0f172a;
}

.pdfb-promo-hero__actions .button-secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.pdfb-promo-hero__actions .button-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.pdfb-promo-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pdfb-promo-hero__chips span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e0e7ff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.pdfb-promo-hero__panel {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 1;
}

.pdfb-promo-hero__panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pdfb-promo-hero__panel-label {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #c7d2fe;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pdfb-promo-hero__panel-head h3 {
  margin: 6px 0 0;
  font-size: 20px;
  color: #ffffff;
  line-height: 1.2;
}

.pdfb-promo-hero__panel-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.pdfb-promo-hero__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.pdfb-promo-hero__metric {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pdfb-promo-hero__metric strong {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
}

.pdfb-promo-hero__metric span {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
}

.pdfb-promo-hero__panel .pdfb-promo-doc-mockup {
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
}

.pdfb-promo-hero__panel-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

.pdfb-promo-capabilities {
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid #dfe7f1;
  box-shadow:
    0 12px 28px rgba(15, 23, 42, 0.06),
    0 2px 6px rgba(15, 23, 42, 0.03);
}

.pdfb-promo-capabilities__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pdfb-promo-capability {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pdfb-promo-capability--blue {
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 70%);
  border-color: #bfdbfe;
}

.pdfb-promo-capability--violet {
  background: linear-gradient(180deg, #f5f3ff 0%, #ffffff 70%);
  border-color: #ddd6fe;
}

.pdfb-promo-capability--amber {
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 70%);
  border-color: #fde68a;
}

.pdfb-promo-capability__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(67, 56, 202, 0.08);
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
}

.pdfb-promo-capability--blue .pdfb-promo-capability__icon {
  background: rgba(37, 99, 235, 0.1);
}

.pdfb-promo-capability--violet .pdfb-promo-capability__icon {
  background: rgba(124, 58, 237, 0.1);
}

.pdfb-promo-capability--amber .pdfb-promo-capability__icon {
  background: rgba(217, 119, 6, 0.1);
}

.pdfb-promo-capability__body h4 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.35;
}

.pdfb-promo-capability__body p {
  margin: 0 0 12px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.55;
}

.pdfb-promo-capability__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.pdfb-promo-capability__list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
  color: #334155;
  line-height: 1.45;
}

.pdfb-promo-capability__list li::before {
  content: "•";
  color: currentColor;
  font-weight: 800;
  line-height: 1;
  margin-top: 1px;
}

.pdfb-promo-compare {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  border: 1px solid #d7deea;
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.pdfb-promo-compare__header {
  order: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 24px 28px 20px;
  background: linear-gradient(90deg, #5b65c9 0%, #6248b8 50%, #5f3f99 100%);
  color: #ffffff;
}

.pdfb-promo-compare__header .pdfb-section-heading__eyebrow {
  background: rgba(255, 255, 255, 0.14);
  color: #e0e7ff;
}

.pdfb-promo-compare__header .pdfb-section-heading h3 {
  color: #ffffff;
  font-size: 20px;
}

.pdfb-promo-compare__header .pdfb-section-heading p {
  color: rgba(255, 255, 255, 0.82);
}

.pdfb-promo-compare__summary {
  align-self: center;
  min-width: 190px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  text-align: right;
}

.pdfb-promo-compare__summary strong {
  display: block;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  color: #ffffff;
}

.pdfb-promo-compare__summary span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
}

.pdfb-promo-compare__table-wrap {
  order: 2;
  overflow-x: auto;
  background: #ffffff;
}

.pdfb-promo-compare__table tbody tr.pdfb-promo-compare__group-row th {
  padding: 12px 14px;
  background: #f8fafc;
  color: #334155;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  border-bottom: 1px solid #d9e0ea;
}

.pdfb-promo-compare__table tbody tr.pdfb-promo-compare__group-row + tr th,
.pdfb-promo-compare__table tbody tr.pdfb-promo-compare__group-row + tr td {
  border-top: 1px solid transparent;
}

.pdfb-promo-compare > summary {
  order: 3;
}

@media (max-width: 1100px) {
  .pdfb-dashboard-layout {
    grid-template-columns: 1fr;
  }

  .pdfb-dashboard-layout__sidebar {
    position: static;
  }

  .pdfb-promo-hero {
    grid-template-columns: 1fr;
  }

  .pdfb-promo-capabilities__grid {
    grid-template-columns: 1fr;
  }

  .pdfb-promo-hero__panel .pdfb-promo-doc-mockup {
    max-width: 280px;
  }
}

@media (max-width: 768px) {
  .pdfb-pdf-builder-dashboard {
    padding: 16px;
  }

  .pdfb-dashboard-actions-section,
  .pdfb-dashboard-sidebar-card,
  .pdfb-dashboard-guide--sidebar,
  .pdfb-promo-capabilities,
  .pdfb-promo-hero {
    padding: 20px;
  }

  .pdfb-promo-hero__title {
    font-size: 28px;
  }

  .pdfb-promo-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .pdfb-promo-hero__metrics {
    grid-template-columns: 1fr;
  }

  .pdfb-promo-hero__panel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .pdfb-promo-capability {
    grid-template-columns: 1fr;
  }

  .pdfb-promo-capability__icon {
    width: 44px;
    height: 44px;
  }

  .pdfb-promo-compare__header {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .pdfb-promo-compare__summary {
    min-width: 0;
    text-align: left;
  }

  .pdfb-promo-compare__table {
    min-width: 700px;
  }

  .pdfb-promo-compare__table thead th,
  .pdfb-promo-compare__table tbody th,
  .pdfb-promo-compare__table tbody td {
    padding-left: 12px;
    padding-right: 12px;
  }
}
