/**
 * ProRank SEO Quick Setup Wizard Styles
 * Modern 2024/2025 Design
 */

/* Wizard Container */
.prorank-quick-setup-wizard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Progress Bar */
.prorank-wizard-progress {
  margin-bottom: 40px;
}

.prorank-wizard-progress-bar {
  background: #f0f0f1;
  border-radius: 12px;
  height: 8px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 32px;
}

.prorank-wizard-progress-fill {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  height: 100%;
  border-radius: 12px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

/* Progress Steps */
.prorank-wizard-steps {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.prorank-wizard-step {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.6;
  position: relative;
}

.prorank-wizard-step.is-active {
  opacity: 1;
}

.prorank-wizard-step.is-completed {
  opacity: 1;
}

.prorank-wizard-step-indicator {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  border: 2px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  color: #757575;
  transition: all 0.3s ease;
}

.prorank-wizard-step.is-active .prorank-wizard-step-indicator {
  border-color: #3b82f6;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.prorank-wizard-step.is-completed .prorank-wizard-step-indicator {
  background: #22c55e;
  border-color: #22c55e;
  color: white;
}

.prorank-wizard-step-content {
  flex: 1;
}

.prorank-wizard-step-title {
  font-size: 14px;
  font-weight: 500;
  color: #50575e;
  transition: color 0.3s ease;
}

.prorank-wizard-step.is-active .prorank-wizard-step-title {
  color: #1e1e1e;
  font-weight: 600;
}

.prorank-wizard-step-description {
  font-size: 12px;
  color: #757575;
  margin-top: 4px;
}

.prorank-wizard-progress-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  color: #50575e;
  font-size: 14px;
}

.prorank-wizard-progress-step {
  font-weight: 600;
  color: #1e1e1e;
}

/* Navigation Buttons */
.prorank-wizard-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #e0e0e0;
}

.prorank-wizard-nav-left {
  display: flex;
  gap: 12px;
}

.prorank-wizard-nav-button {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  line-height: 1;
}

/* Primary Button (Next) */
.prorank-wizard-nav-button.primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(102, 126, 234, 0.25);
}

.prorank-wizard-nav-button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
}

.prorank-wizard-nav-button.primary:active {
  transform: translateY(0);
}

.prorank-wizard-nav-button.primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Secondary Button (Previous) */
.prorank-wizard-nav-button.secondary {
  background: white;
  color: #50575e;
  border: 2px solid #e0e0e0;
}

.prorank-wizard-nav-button.secondary:hover {
  background: #f8f9fa;
  border-color: #3b82f6;
  color: #3b82f6;
}

/* Skip Button */
.prorank-wizard-nav-button.link {
  background: transparent;
  color: #757575;
  border: none;
  padding: 12px 16px;
}

.prorank-wizard-nav-button.link:hover {
  color: #3b82f6;
  background: rgba(102, 126, 234, 0.08);
  border-radius: 8px;
}

/* Tab Panel Styles for Site Basics Step */
.prorank-wizard-site-basics-tabs .components-tab-panel__tabs-wrapper {
  margin-bottom: 32px;
}

.prorank-wizard-site-basics-tabs .components-tab-panel__tabs {
  display: flex;
  gap: 8px;
  border-bottom: none;
  background: #f5f5f7;
  padding: 4px;
  border-radius: 12px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
}

.prorank-wizard-site-basics-tabs .components-button.components-tab-panel__tabs-item {
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #757575;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  box-shadow: none;
}

.prorank-wizard-site-basics-tabs .components-button.components-tab-panel__tabs-item:hover {
  color: #1e1e1e;
  background: rgba(255, 255, 255, 0.5);
}

.prorank-wizard-site-basics-tabs .components-button.components-tab-panel__tabs-item.is-active {
  background: white;
  color: #3b82f6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-weight: 600;
}

.prorank-wizard-site-basics-tabs .components-button.components-tab-panel__tabs-item.is-active:hover {
  background: white;
  color: #3b82f6;
}

/* Tab Content */
.prorank-wizard-site-basics-tabs .components-tab-panel__tab-content {
  padding: 24px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid #e0e0e0;
}

/* Step Content */
.prorank-wizard-step {
  animation: fadeInUp 0.4s ease-out;
}

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

.prorank-wizard-step-header {
  margin-bottom: 32px;
  text-align: center;
}

.prorank-wizard-step-header h2 {
  font-size: 28px;
  font-weight: 600;
  color: #1e1e1e;
  margin-bottom: 12px;
  line-height: 1.3;
}

.prorank-wizard-step-header p {
  font-size: 16px;
  color: #757575;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Cards in Wizard */
.prorank-wizard-step .components-card {
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.prorank-wizard-step .components-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.prorank-wizard-step .components-card__body {
  padding: 24px;
}

/* Form Controls in Wizard */
.prorank-wizard-step .components-base-control {
  margin-bottom: 20px;
}

.prorank-wizard-step .components-base-control__label {
  font-weight: 500;
  color: #1e1e1e;
  margin-bottom: 8px;
  font-size: 14px;
}

.prorank-wizard-step .components-text-control__input,
.prorank-wizard-step .components-select-control__input {
  border-radius: 8px;
  border: 2px solid #e0e0e0;
  padding: 10px 14px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.prorank-wizard-step .components-text-control__input:focus,
.prorank-wizard-step .components-select-control__input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  outline: none;
}

/* Checkbox and Radio Controls */
.prorank-wizard-step .components-checkbox-control__input[type="checkbox"] {
  border-radius: 4px;
  width: 20px;
  height: 20px;
  border: 2px solid #e0e0e0;
}

.prorank-wizard-step .components-checkbox-control__input[type="checkbox"]:checked {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-color: #3b82f6;
}

.prorank-wizard-step .components-radio-control__input[type="radio"] {
  width: 20px;
  height: 20px;
  border: 2px solid #e0e0e0;
}

.prorank-wizard-step .components-radio-control__input[type="radio"]:checked {
  background: #3b82f6;
  border-color: #3b82f6;
  box-shadow: inset 0 0 0 4px white;
}

/* Module Selection - Stats Bar */
.prorank-modules-stats-bar {
  display: flex;
  gap: 24px;
  padding: 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 12px;
  margin: 24px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.prorank-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.prorank-stat-number {
  font-size: 28px;
  font-weight: 700;
  color: #1e1e1e;
  line-height: 1;
}

.prorank-stat-number.free {
  color: #22c55e;
}

.prorank-stat-label {
  font-size: 12px;
  color: #757575;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Module Filter Bar */
.prorank-modules-filter-bar {
  margin-bottom: 24px;
  border-radius: 12px;
}

.prorank-modules-filter-bar .components-search-control__input {
  flex: 1;
  max-width: 400px;
}

/* Module Grid */
.prorank-modules-grid {
  margin-top: 24px;
}

.prorank-module-category {
  margin-bottom: 32px;
}

.prorank-category-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 600;
  color: #1e1e1e;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e0e0e0;
}

.prorank-category-count {
  background: #f0f0f1;
  color: #757575;
  font-size: 12px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 12px;
}

.prorank-modules-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 16px;
}

/* Module Card */
.prorank-module-card {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.prorank-module-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
  transform: translateY(-2px);
}

.prorank-module-card.is-selected {
  border-color: #3b82f6;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.prorank-module-card.is-premium {
  opacity: 0.7;
  cursor: not-allowed;
}

.prorank-module-card.is-premium:hover {
  transform: none;
}

.prorank-module-card.is-recommended::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
}

/* Module Header */
.prorank-module-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.prorank-module-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.prorank-module-title-area {
  flex: 1;
}

.prorank-module-name {
  font-size: 16px;
  font-weight: 600;
  color: #1e1e1e;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.prorank-recommended-badge {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: white;
  font-size: 10px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.prorank-tier-badge {
  background: #ef4444;
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.prorank-module-toggle {
  margin-left: auto;
}

/* Module Description */
.prorank-module-description {
  font-size: 14px;
  color: #50575e;
  line-height: 1.5;
  margin: 0 0 12px 0;
}

/* Module Features */
.prorank-module-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.prorank-feature-tag {
  background: #f0f0f1;
  color: #50575e;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.prorank-feature-tag svg {
  color: #22c55e;
}

/* Selected Indicator */
.prorank-module-selected-indicator {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  background: #22c55e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

/* Empty State */
.prorank-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #757575;
}

.prorank-empty-state h3 {
  margin: 16px 0 8px;
  font-size: 20px;
  color: #1e1e1e;
}

.prorank-empty-state p {
  margin: 0;
  font-size: 14px;
}

/* Optimization Step Styles */
.prorank-optimization-stats {
  display: flex;
  gap: 20px;
  margin: 24px 0;
  padding: 24px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.prorank-opt-stat {
  display: flex;
  align-items: center;
  gap: 16px;
}

.prorank-opt-stat-icon {
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.prorank-opt-stat-icon.success {
  background: linear-gradient(135deg, #e6f7ed 0%, #f0fdf4 100%);
}

.prorank-opt-stat-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.prorank-opt-stat-number {
  font-size: 24px;
  font-weight: 700;
  color: #1e1e1e;
  line-height: 1;
}

.prorank-opt-stat-number.success {
  color: #22c55e;
}

.prorank-opt-stat-label {
  font-size: 12px;
  color: #757575;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Optimization Progress */
.prorank-optimization-progress {
  margin: 20px 0;
  border-radius: 12px;
  border-color: #3b82f6;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

/* Optimization Categories */
.prorank-optimization-categories {
  margin-top: 24px;
}

.prorank-optimization-category {
  margin-bottom: 32px;
}

.prorank-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 600;
  color: #1e1e1e;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e0e0e0;
}

.prorank-category-badge {
  background: #f0f0f1;
  color: #757575;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 12px;
}

.prorank-optimization-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Optimization Card */
.prorank-optimization-card {
  border-radius: 12px;
  border: 2px solid #e0e0e0;
  transition: all 0.3s ease;
  overflow: hidden;
}

.prorank-optimization-card:hover {
  border-color: #d0d0d0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.prorank-optimization-card.is-selected {
  border-color: #3b82f6;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
}

.prorank-optimization-card.is-applied {
  border-color: #22c55e;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.03) 0%, rgba(74, 222, 128, 0.03) 100%);
}

.prorank-optimization-card.has-error {
  border-color: #ef4444;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.03) 0%, rgba(248, 113, 113, 0.03) 100%);
}

.prorank-optimization-content {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.prorank-optimization-checkbox {
  padding-top: 2px;
}

.prorank-optimization-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.prorank-optimization-info {
  flex: 1;
}

.prorank-optimization-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  gap: 12px;
}

.prorank-optimization-header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #1e1e1e;
}

.prorank-optimization-badges {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.prorank-impact-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: capitalize;
}

.prorank-status-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.prorank-status-badge.success {
  background: #e6f7ed;
  color: #22c55e;
}

.prorank-status-badge.error {
  background: #fef2f2;
  color: #ef4444;
}

.prorank-optimization-description {
  font-size: 14px;
  color: #50575e;
  margin: 0 0 4px 0;
  line-height: 1.5;
}

.prorank-optimization-details {
  font-size: 12px;
  color: #757575;
  margin: 0;
  font-style: italic;
}

/* Optimization Action */
.prorank-optimization-action {
  margin-top: 32px;
  border-radius: 12px;
  border: 2px solid #3b82f6;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  text-align: center;
}

.prorank-optimization-action .components-button {
  min-width: 200px;
}

/* Welcome Step Styles - Enhanced with Animations */
.prorank-wizard-step-welcome {
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.prorank-welcome-hero {
  text-align: center;
  padding: 60px 40px;
  background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
  border-radius: 20px;
  margin-bottom: 32px;
  border: 1px solid rgba(102, 126, 234, 0.1);
  box-shadow: 0 10px 40px rgba(102, 126, 234, 0.08);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.prorank-welcome-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.12);
}

/* Animated Background Patterns */
.prorank-welcome-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 20s infinite ease-in-out;
}

.prorank-welcome-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 40%;
  height: 40%;
  background: radial-gradient(circle, rgba(118, 75, 162, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  animation: floatReverse 25s infinite ease-in-out;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-30px, -20px) scale(1.1); }
  50% { transform: translate(20px, -40px) scale(0.95); }
  75% { transform: translate(-20px, 20px) scale(1.05); }
}

@keyframes floatReverse {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, 20px) scale(0.95); }
  50% { transform: translate(-20px, 40px) scale(1.1); }
  75% { transform: translate(20px, -20px) scale(1.05); }
}

.prorank-welcome-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
  animation: logoEntrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes logoEntrance {
  from {
    opacity: 0;
    transform: scale(0.3) rotate(-180deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

.prorank-logo-gradient {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
  position: relative;
  animation: pulse 3s infinite ease-in-out;
  transition: all 0.3s ease;
}

.prorank-logo-gradient:hover {
  transform: rotate(5deg) scale(1.1);
  box-shadow: 0 25px 70px rgba(102, 126, 234, 0.4);
}

@keyframes pulse {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
  }
  50% { 
    transform: scale(1.05);
    box-shadow: 0 25px 70px rgba(102, 126, 234, 0.4);
  }
}

.prorank-logo-gradient svg {
  width: 60px;
  height: 60px;
  fill: white;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.prorank-welcome-title {
  font-size: 40px;
  font-weight: 800;
  margin: 0 0 16px 0;
  line-height: 1.2;
  background: linear-gradient(135deg, #1e1e1e 0%, #50575e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
  animation: titleSlide 0.8s ease-out 0.2s both;
}

@keyframes titleSlide {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.prorank-welcome-subtitle {
  font-size: 18px;
  color: #50575e;
  max-width: 650px;
  margin: 0 auto 32px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
  animation: subtitleFade 0.8s ease-out 0.4s both;
}

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

.prorank-welcome-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.prorank-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: white;
  border: 2px solid transparent;
  background-image: linear-gradient(white, white), 
                    linear-gradient(135deg, #3b82f6, #2563eb);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  color: #50575e;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: badgePop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) calc(0.6s + var(--badge-delay, 0s)) both;
}

.prorank-badge:nth-child(1) { --badge-delay: 0s; }
.prorank-badge:nth-child(2) { --badge-delay: 0.1s; }
.prorank-badge:nth-child(3) { --badge-delay: 0.2s; }

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

.prorank-badge:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.25);
  background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
}

.prorank-badge svg {
  color: #22c55e;
  animation: checkBounce 0.6s ease-out;
}

@keyframes checkBounce {
  0% { transform: scale(0); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* System Status Card - Enhanced */
.prorank-system-status-card {
  border-radius: 16px;
  border: 1px solid rgba(102, 126, 234, 0.1);
  overflow: hidden;
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: cardSlideIn 0.6s ease-out 0.8s both;
}

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

.prorank-system-status-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.prorank-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  animation: fadeIn 0.6s ease-out 1s both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.prorank-card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
  animation: iconRotateIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 1.2s both;
}

@keyframes iconRotateIn {
  from {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
  }
  to {
    opacity: 1;
    transform: rotate(0) scale(1);
  }
}

.prorank-card-icon:hover {
  transform: rotate(5deg) scale(1.1);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
}

.prorank-card-icon.warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(239, 68, 68, 0.1) 100%);
}

.prorank-card-icon svg {
  width: 28px;
  height: 28px;
}

.prorank-card-header h3 {
  margin: 0 0 4px 0;
  font-size: 20px;
  font-weight: 700;
  color: #1e1e1e;
  letter-spacing: -0.02em;
}

.prorank-system-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.prorank-system-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 2px solid #e0e0e0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: itemFadeScale 0.5s ease-out calc(1.4s + var(--item-delay, 0s)) both;
}

.prorank-system-item:nth-child(1) { --item-delay: 0s; }
.prorank-system-item:nth-child(2) { --item-delay: 0.1s; }
.prorank-system-item:nth-child(3) { --item-delay: 0.2s; }
.prorank-system-item:nth-child(4) { --item-delay: 0.3s; }

@keyframes itemFadeScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.prorank-system-item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.prorank-system-item.success {
  background: linear-gradient(135deg, #f0fdf4 0%, #e6f7ed 100%);
  border-color: rgba(34, 197, 94, 0.3);
}

.prorank-system-item.success:hover {
  border-color: rgba(34, 197, 94, 0.5);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
}

.prorank-system-item.warning {
  background: linear-gradient(135deg, #fef3c7 0%, #fef2f2 100%);
  border-color: rgba(245, 158, 11, 0.3);
}

.prorank-system-item.warning:hover {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.prorank-system-icon {
  width: 36px;
  height: 36px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.prorank-system-item:hover .prorank-system-icon {
  transform: rotate(360deg) scale(1.1);
}

.prorank-system-item.success .prorank-system-icon svg {
  color: #22c55e;
  animation: successPulse 2s infinite ease-in-out;
}

@keyframes successPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.prorank-system-item.warning .prorank-system-icon svg {
  color: #f59e0b;
  animation: warningShake 2s infinite ease-in-out;
}

@keyframes warningShake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg); }
  75% { transform: rotate(5deg); }
}

.prorank-system-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.prorank-system-label {
  font-size: 12px;
  color: #757575;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.prorank-system-value {
  font-size: 14px;
  font-weight: 600;
  color: #1e1e1e;
}

/* Competitor Card */
.prorank-competitor-card {
  border-radius: 12px;
  border: 1px solid #e0e0e0;
}

.prorank-loading-state {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.prorank-competitors-section {
  margin-top: 20px;
}

.prorank-notice-modern {
  border-radius: 8px;
  margin-bottom: 16px;
}

.prorank-competitor-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}

.prorank-competitor-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 8px;
}

.prorank-competitor-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.prorank-competitor-info .warning-icon {
  color: #f59e0b;
}

.prorank-competitor-name {
  font-weight: 500;
  color: #1e1e1e;
}

.prorank-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.prorank-status-badge.deactivated {
  background: #e6f7ed;
  color: #22c55e;
}

.prorank-action-section {
  margin-top: 20px;
  text-align: center;
}

.prorank-deactivate-button {
  margin-bottom: 12px;
}

.prorank-help-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #757575;
}

.prorank-all-clear {
  text-align: center;
  padding: 32px;
  background: linear-gradient(135deg, #f0fdf4 0%, #e6f7ed 100%);
  border-radius: 12px;
  border: 1px solid #22c55e;
}

.prorank-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.prorank-success-icon svg {
  color: #22c55e;
}

.prorank-all-clear h4 {
  margin: 0 0 8px 0;
  font-size: 20px;
  font-weight: 600;
  color: #1e1e1e;
}

.prorank-all-clear p {
  margin: 0;
  color: #50575e;
}

/* Features Card */
.prorank-features-card {
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
}

.prorank-features-title {
  font-size: 20px;
  font-weight: 600;
  color: #1e1e1e;
  margin: 0 0 8px 0;
}

.prorank-features-subtitle {
  color: #757575;
  margin: 0 0 24px 0;
}

.prorank-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.prorank-feature-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.prorank-feature-item:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.prorank-feature-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.prorank-feature-icon svg {
  color: #3b82f6;
}

.prorank-feature-content h4 {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 600;
  color: #1e1e1e;
}

.prorank-feature-content p {
  margin: 0;
  font-size: 13px;
  color: #757575;
  line-height: 1.5;
}

.prorank-time-estimate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: #f0f0f1;
  border-radius: 8px;
  color: #50575e;
}

.prorank-time-estimate svg {
  color: #22c55e;
}

/* Success State */
.prorank-wizard-success {
  text-align: center;
  padding: 40px;
}

.prorank-wizard-success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.25);
}

.prorank-wizard-success-icon svg {
  width: 40px;
  height: 40px;
  color: white;
}

/* Loading State */
.prorank-wizard-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #f5f5f7;
  border-radius: 8px;
  margin: 20px 0;
}

.prorank-wizard-loading .components-spinner {
  margin: 0;
}

/* Import Progress */
.prorank-wizard-import-progress {
  margin: 20px 0;
}

.prorank-wizard-import-progress .components-progress-bar {
  height: 8px;
  border-radius: 4px;
  background: #f0f0f1;
  overflow: hidden;
}

.prorank-wizard-import-progress .components-progress-bar__indicator {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  height: 100%;
  transition: width 0.3s ease;
}

/* Notices in Wizard */
.prorank-wizard-step .components-notice {
  border-radius: 8px;
  border-left-width: 4px;
  margin: 20px 0;
}

.prorank-wizard-step .components-notice.is-success {
  background: #f0fdf4;
  border-left-color: #22c55e;
}

.prorank-wizard-step .components-notice.is-info {
  background: #eff6ff;
  border-left-color: #3b82f6;
}

.prorank-wizard-step .components-notice.is-warning {
  background: #fefce8;
  border-left-color: #eab308;
}

.prorank-wizard-step .components-notice.is-error {
  background: #fef2f2;
  border-left-color: #ef4444;
}

/* Enhanced Responsive Design */
@media (max-width: 1024px) {
  .prorank-quick-setup-wizard {
    padding: 16px;
  }
  
  .prorank-system-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .prorank-features-grid {
    gap: 16px;
  }
}

@media (max-width: 768px) {
  /* Wizard Container */
  .prorank-quick-setup-wizard {
    padding: 12px;
  }
  
  /* Progress Steps */
  .prorank-wizard-steps {
    gap: 8px;
  }
  
  .prorank-wizard-step-title {
    display: none;
  }
  
  .prorank-wizard-step-indicator {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  
  /* Welcome Hero */
  .prorank-welcome-hero {
    padding: 40px 20px;
    border-radius: 16px;
  }
  
  .prorank-welcome-logo {
    margin-bottom: 20px;
  }
  
  .prorank-logo-gradient {
    width: 80px;
    height: 80px;
  }
  
  .prorank-logo-gradient svg {
    width: 50px;
    height: 50px;
  }
  
  .prorank-welcome-title {
    font-size: 28px;
  }
  
  .prorank-welcome-subtitle {
    font-size: 15px;
    padding: 0 20px;
  }
  
  .prorank-welcome-badges {
    flex-direction: column;
    align-items: stretch;
  }
  
  .prorank-badge {
    justify-content: center;
    padding: 12px 16px;
  }
  
  /* System Status Grid */
  .prorank-system-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .prorank-system-item {
    padding: 14px;
  }
  
  /* Cards */
  .prorank-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .prorank-card-icon {
    width: 48px;
    height: 48px;
  }
  
  /* Features Grid */
  .prorank-features-grid {
    grid-template-columns: 1fr;
  }
  
  .prorank-feature-item {
    flex-direction: row;
    gap: 16px;
    padding: 16px;
  }
  
  .prorank-feature-icon {
    width: 40px;
    height: 40px;
  }
  
  /* Competitor List */
  .prorank-competitor-list {
    gap: 12px;
  }
  
  .prorank-competitor-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
  }
  
  /* Modules Grid */
  .prorank-modules-grid {
    gap: 20px;
  }
  
  .prorank-module-card {
    padding: 16px;
  }
  
  .prorank-module-header {
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .prorank-module-toggle {
    position: absolute;
    top: 16px;
    right: 16px;
  }
  
  /* Optimization Categories */
  .prorank-optimization-category {
    margin-bottom: 24px;
  }
  
  .prorank-optimization-item {
    padding: 14px;
  }
  
  .prorank-optimization-stats {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
  }
  
  .prorank-opt-stat {
    width: 100%;
    justify-content: space-between;
  }
  
  /* Navigation */
  .prorank-wizard-site-basics-tabs .components-tab-panel__tabs {
    flex-wrap: wrap;
    padding: 3px;
  }
  
  .prorank-wizard-navigation {
    flex-direction: column-reverse;
    gap: 12px;
    padding: 16px;
  }
  
  .prorank-wizard-nav-left {
    width: 100%;
    justify-content: space-between;
  }
  
  .prorank-wizard-nav-button {
    flex: 1;
    justify-content: center;
    padding: 12px 16px;
    font-size: 14px;
  }
  
  .prorank-wizard-nav-button.skip {
    order: -1;
    width: 100%;
    margin-bottom: 8px;
  }
  
  /* Notices */
  .components-notice {
    margin: 16px 0;
  }
  
  .prorank-notice-modern {
    padding: 12px;
  }
  
  /* Forms */
  .components-text-control__input,
  .components-textarea-control__input,
  .components-select-control__input {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

@media (max-width: 480px) {
  /* Ultra small screens */
  .prorank-quick-setup-wizard {
    padding: 8px;
  }
  
  .prorank-welcome-hero {
    padding: 32px 16px;
  }
  
  .prorank-welcome-title {
    font-size: 24px;
  }
  
  .prorank-welcome-subtitle {
    font-size: 14px;
    padding: 0;
  }
  
  .prorank-wizard-progress-bar {
    height: 6px;
  }
  
  .prorank-wizard-nav-button {
    padding: 10px 12px;
    font-size: 13px;
  }
  
  .prorank-badge {
    font-size: 12px;
    padding: 10px 14px;
  }
  
  .prorank-system-item {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  
  .prorank-system-info {
    align-items: center;
  }
}

/* Touch-friendly enhancements */
@media (hover: none) and (pointer: coarse) {
  /* Increase tap targets for touch devices */
  .prorank-wizard-nav-button {
    min-height: 48px;
  }
  
  .components-checkbox-control__input,
  .components-toggle-control .components-form-toggle {
    width: 24px;
    height: 24px;
  }
  
  .prorank-module-card {
    cursor: pointer;
  }
  
  .prorank-optimization-item {
    min-height: 56px;
  }
  
  /* Remove hover effects on touch devices */
  .prorank-welcome-hero:hover {
    transform: none;
  }
  
  .prorank-badge:hover {
    transform: none;
  }
  
  .prorank-system-item:hover {
    transform: none;
  }
}

/* Animations */
.prorank-wizard-fade-in {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Icon Animations */
.prorank-wizard-nav-button svg {
  transition: transform 0.3s ease;
}

.prorank-wizard-nav-button.primary:hover svg {
  transform: translateX(4px);
}

.prorank-wizard-nav-button.secondary:hover svg {
  transform: translateX(-4px);
}