/* ==============================================================================
   AYKAR ERP - Enterprise Onboarding & Plan Selection Wizard Styles
   ============================================================================== */

.aykar-wizard-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: wizardFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.aykar-wizard-sheet {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(226, 232, 240, 0.8);
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: wizardSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html[data-theme="dark"] .aykar-wizard-sheet {
  background: #111827;
  border-color: #1f2937;
  color: #f3f4f6;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(55, 65, 81, 0.8);
}

/* Wizard Header */
.aykar-wizard-header {
  padding: 24px 30px 18px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
}

html[data-theme="dark"] .aykar-wizard-header {
  background: #1f2937;
  border-color: #374151;
}

.aykar-wizard-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.aykar-wizard-logo {
  height: 34px;
  width: auto;
}

.aykar-wizard-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #0f172a;
}

html[data-theme="dark"] .aykar-wizard-title {
  color: #f8fafc;
}

.aykar-wizard-sub {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: #64748b;
  font-weight: 500;
}

/* Stepper Bar */
.aykar-stepper-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 30px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  gap: 8px;
}

html[data-theme="dark"] .aykar-stepper-strip {
  background: #111827;
  border-color: #1f2937;
}

.stepper-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: #94a3b8;
  flex: 1;
}

.stepper-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.stepper-item.active {
  color: #2563eb;
}

.stepper-item.active .stepper-num {
  background: #2563eb;
  color: #ffffff;
}

.stepper-item.done {
  color: #059669;
}

.stepper-item.done .stepper-num {
  background: #10b981;
  color: #ffffff;
}

.stepper-line {
  flex: 1;
  height: 2px;
  background: #e2e8f0;
  margin: 0 4px;
}

/* Wizard Body */
.aykar-wizard-body {
  padding: 26px 30px;
  overflow-y: auto;
  flex: 1;
}

.wizard-step-pane {
  display: none;
}

.wizard-step-pane.active {
  display: block;
}

/* Selection Cards Grid */
.wizard-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.wizard-opt-card {
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  position: relative;
}

html[data-theme="dark"] .wizard-opt-card {
  background: #1f2937;
  border-color: #374151;
}

.wizard-opt-card:hover {
  border-color: #93c5fd;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px rgba(37, 99, 235, 0.12);
}

.wizard-opt-card.selected {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 1.5px #2563eb, 0 8px 24px -6px rgba(37, 99, 235, 0.2);
}

html[data-theme="dark"] .wizard-opt-card.selected {
  background: rgba(37, 99, 235, 0.15);
  border-color: #3b82f6;
  box-shadow: 0 0 0 1.5px #3b82f6;
}

.wizard-opt-icon {
  font-size: 26px;
  margin-bottom: 8px;
}

.wizard-opt-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

html[data-theme="dark"] .wizard-opt-title {
  color: #f8fafc;
}

.wizard-opt-desc {
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
}

html[data-theme="dark"] .wizard-opt-desc {
  color: #9ca3af;
}

/* Plan Cards (Step 3) */
.wizard-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.wizard-plan-card {
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px;
  cursor: pointer;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-theme="dark"] .wizard-plan-card {
  background: #1f2937;
  border-color: #374151;
}

.wizard-plan-card.featured {
  border-color: #2563eb;
  background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%);
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.15);
}

html[data-theme="dark"] .wizard-plan-card.featured {
  background: linear-gradient(180deg, #1f2937 0%, rgba(37, 99, 235, 0.12) 100%);
  border-color: #3b82f6;
}

.wizard-plan-card.selected {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px #2563eb, 0 12px 28px -6px rgba(37, 99, 235, 0.25);
}

.plan-badge-tag {
  align-self: flex-start;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}

.plan-badge-tag.trial {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.plan-badge-tag.pro {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.plan-price-line {
  font-size: 20px;
  font-weight: 900;
  color: #0f172a;
  margin: 6px 0 10px;
}

html[data-theme="dark"] .plan-price-line {
  color: #f8fafc;
}

.plan-feature-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  font-size: 12px;
  color: #475569;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

html[data-theme="dark"] .plan-feature-list {
  color: #cbd5e1;
}

.plan-feature-list li {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Wizard Footer */
.aykar-wizard-footer {
  padding: 16px 30px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
}

html[data-theme="dark"] .aykar-wizard-footer {
  background: #1f2937;
  border-color: #374151;
}

.btn-wizard-sec {
  background: transparent;
  border: 1px solid #cbd5e1;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

html[data-theme="dark"] .btn-wizard-sec {
  border-color: #4b5563;
  color: #9ca3af;
}

.btn-wizard-sec:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.btn-wizard-prim {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transition: all 0.15s ease;
}

.btn-wizard-prim:hover {
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}
