/* 
  Onboarding Styles
*/

.onboarding-container {
  max-width: 1400px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

.onboarding-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 30px;
}

.btn-back-login {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-back-login:hover {
  background: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}

.btn-back-login i {
  font-size: 16px;
}

.onboarding-title {
  font-size: 28px;
  margin-bottom: 40px;
  color: var(--text-primary);
}

/* Business Selection Cards */
.business-options {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.business-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  padding: 40px;
  width: 200px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.business-card.active {
  background: rgba(19, 181, 243, 0.05);
  border-color: var(--accent-color);
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.2),
    0 0 20px rgba(19, 181, 243, 0.1);
}

.business-card.active:hover {
  transform: translateY(-8px) scale(1.05);
  border-color: var(--accent-color);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(19, 181, 243, 0.2);
}

.business-card.disabled {
  cursor: not-allowed;
  opacity: 0.4;
  filter: grayscale(1);
}

.business-card .icon {
  width: 70px;
  height: 70px;
  background: var(--bg-color);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--text-secondary);
  transition: all 0.4s ease;
  border: 1px solid var(--border-color);
}

.business-card.active .icon {
  color: var(--accent-color);
  border-color: rgba(19, 181, 243, 0.3);
  box-shadow: inset 0 0 15px rgba(19, 181, 243, 0.1);
}

.business-card.active:hover .icon {
  background: var(--accent-color);
  color: white;
  transform: rotate(5deg);
}

.business-card .name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.badge-soon {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--border-color);
  color: var(--text-secondary);
  padding: 4px 10px;
  font-size: 10px;
  border-radius: 6px;
  font-weight: 600;
}

.selection-card {
  padding: 30px !important;
  width: 160px !important;
  border-radius: 20px !important;
}

.selection-card .icon {
  width: 60px !important;
  height: 60px !important;
  font-size: 24px !important;
}

/* Stepper Progress Bar */
.stepper-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 60px;
  position: relative;
}

.stepper-progress::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border-color);
  z-index: 1;
}

.progress-line {
  position: absolute;
  top: 20px;
  right: 0;
  height: 2px;
  background: var(--accent-color);
  z-index: 2;
  transition: width 0.5s ease;
  width: 0%;
}

.step-item {
  position: relative;
  z-index: 3;
  background: var(--surface-color);
  width: 40px;
  height: 40px;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.step-item.active {
  border-color: var(--accent-color);
  background: var(--accent-color);
  color: white;
  box-shadow: 0 0 0 5px rgba(19, 181, 243, 0.2);
}

.step-item.completed {
  border-color: var(--accent-color);
  background: var(--accent-color);
  color: white;
}

/* Step Content */
.step-content {
  background: var(--surface-color);
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  text-align: right;
  animation: slideIn 0.4s ease-out;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Steps 9 & 10 need wider layout */
#step-9,
#step-10 {
  max-width: 900px;
}

#step-10 {
  max-width: 1050px;
}

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

.step-label {
  font-size: 14px;
  color: var(--accent-color);
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
}

.step-title {
  font-size: 24px;
  margin-bottom: 30px;
  color: var(--text-primary);
}

.step-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
}

.btn-next {
  background: var(--primary-color);
  color: white;
  padding: 12px 40px;
  border-radius: 12px;
  font-weight: 600;
}

.btn-prev {
  color: var(--text-secondary);
  padding: 12px 20px;
  font-weight: 600;
}

/* File Upload UX */
.upload-wrapper {
  margin: 20px 0;
}

.upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--border-color);
  border-radius: 20px;
  padding: 50px 30px;
  background: var(--bg-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.upload-zone:hover {
  border-color: var(--accent-color);
  background: var(--surface-color);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.upload-zone::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    rgba(19, 181, 243, 0.03) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.upload-zone:hover::after {
  opacity: 1;
}

.upload-icon {
  width: 64px;
  height: 64px;
  background: var(--surface-color);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--accent-color);
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.upload-zone:hover .upload-icon {
  transform: scale(1.1) rotate(5deg);
}

.upload-zone p {
  font-size: 16px;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 8px;
}

.upload-zone span {
  font-size: 13px;
  color: var(--text-secondary);
}

.selected-files {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
  text-align: right;
}

.file-preview-card {
  position: relative;
  background: var(--surface-color);
  border-radius: 16px;
  padding: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: scaleUp 0.3s ease-out;
}

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.file-preview-card .preview-thumb {
  width: 100%;
  height: 100px;
  border-radius: 10px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--text-secondary);
  overflow: hidden;
  margin-bottom: 10px;
}

.file-preview-card .preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-preview-card .file-info {
  width: 100%;
  text-align: center;
}

.file-preview-card .file-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.file-preview-card .file-size {
  font-size: 10px;
  color: var(--text-secondary);
}

.file-preview-card .remove-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  background: #ef4444;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
  transition: transform 0.2s ease;
}

.file-preview-card .remove-btn:hover {
  transform: scale(1.1);
}

/* Working Hours Grid */
.hours-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.day-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.day-chip {
  padding: 8px 16px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.day-chip.selected {
  background: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}

.onboarding-collection {
  margin-top: 30px;
  background: var(--surface-color);
  padding: 30px;
  border-radius: 24px;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.collection-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
  max-height: 300px;
  overflow-y: auto;
  padding: 10px;
}

.collection-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-color);
  padding: 16px 24px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.collection-item:hover {
  border-color: var(--accent-color);
  transform: translateX(-5px);
  background: rgba(19, 181, 243, 0.05);
}

.collection-item span {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.collection-item button {
  width: 36px;
  height: 36px;
  background: rgba(239, 68, 68, 0.1);
  color: var(--error-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.3s ease;
}

.collection-item button:hover {
  background: var(--error-color);
  color: white;
  transform: scale(1.1);
}

.collection-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  padding-top: 25px;
  border-top: 1px solid var(--border-color);
}

.collection-form input {
  background: var(--bg-color);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  height: 50px;
  border-radius: 12px;
}

/* Structured Service Form */
.service-form-structured {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 25px;
  border-top: 1px solid var(--border-color);
}

.service-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.service-form-row--price {
  grid-template-columns: 1fr;
  max-width: 50%;
}

.service-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.service-form-structured input {
  background: var(--bg-color);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  height: 48px;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.service-form-structured input:focus {
  border-color: var(--accent-color);
  outline: none;
}

.service-form-structured .btn-add-item {
  align-self: center;
}

@media (max-width: 600px) {
  .service-form-row {
    grid-template-columns: 1fr;
  }
  .service-form-row--price {
    max-width: 100%;
  }
}

.btn-add-item {
  grid-column: 1 / -1;
  justify-self: center;
  height: 50px;
  background: linear-gradient(135deg, var(--accent-color), #0ea5e9);
  color: white;
  padding: 0 48px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  box-shadow: 0 4px 15px rgba(19, 181, 243, 0.25);
  position: relative;
  overflow: hidden;
}

.btn-add-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.btn-add-item:hover::before {
  left: 100%;
}

.btn-add-item:hover {
  background: linear-gradient(135deg, #0ea5e9, var(--accent-color));
  transform: translateY(-3px);
  box-shadow:
    0 8px 25px rgba(19, 181, 243, 0.4),
    0 0 15px rgba(19, 181, 243, 0.15);
}
/* Logout Confirmation Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(8px);
  animation: fadeInOverlay 0.3s ease-out;
}

.modal-overlay.hidden {
  display: none;
}

@keyframes fadeInOverlay {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(8px);
  }
}

@keyframes slideUpModal {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

.modal-content {
  background: linear-gradient(
    135deg,
    var(--surface-color) 0%,
    rgba(26, 28, 34, 0.8) 100%
  );
  border-radius: 24px;
  padding: 48px 40px;
  max-width: 480px;
  width: 90%;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(19, 181, 243, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: slideUpModal 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(19, 181, 243, 0.2);
  position: relative;
  overflow: hidden;
}

/* Gradient accent line at top */
.modal-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
}

.modal-icon {
  width: 90px;
  height: 90px;
  background: linear-gradient(
    135deg,
    rgba(19, 181, 243, 0.15),
    rgba(19, 181, 243, 0.05)
  );
  border: 2px solid rgba(19, 181, 243, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  font-size: 44px;
  color: var(--accent-color);
  box-shadow:
    0 8px 24px rgba(19, 181, 243, 0.15),
    inset 0 1px 2px rgba(19, 181, 243, 0.2);
  animation: pulseIcon 2.5s ease-in-out infinite;
}

.modal-title {
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    var(--accent-color),
    rgba(19, 181, 243, 0.8)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  text-align: center;
  letter-spacing: 0.3px;
}

.modal-message {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  text-align: center;
  margin-bottom: 36px;
  font-weight: 500;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn-cancel,
.btn-confirm {
  padding: 14px 36px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 150px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.btn-cancel {
  background: linear-gradient(
    135deg,
    rgba(19, 181, 243, 0.1),
    rgba(19, 181, 243, 0.05)
  );
  color: var(--accent-color);
  border: 1.5px solid rgba(19, 181, 243, 0.3);
}

.btn-cancel:hover {
  background: rgba(19, 181, 243, 0.15);
  border-color: var(--accent-color);
  box-shadow:
    0 8px 20px rgba(19, 181, 243, 0.2),
    inset 0 1px 2px rgba(19, 181, 243, 0.1);
  transform: translateY(-2px);
}

.btn-confirm {
  background: linear-gradient(
    135deg,
    var(--accent-color),
    rgba(19, 181, 243, 0.9)
  );
  color: white;
  box-shadow: 0 8px 20px rgba(19, 181, 243, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-confirm::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.btn-confirm:hover::before {
  left: 100%;
}

.btn-confirm:hover {
  box-shadow:
    0 12px 30px rgba(19, 181, 243, 0.4),
    0 0 20px rgba(19, 181, 243, 0.2);
  transform: translateY(-3px);
}

.btn-confirm:active {
  transform: translateY(-1px);
}

/* Hint Box Styles */
.hint-box {
  background: linear-gradient(
    135deg,
    rgba(19, 181, 243, 0.08),
    rgba(19, 181, 243, 0.03)
  );
  border: 1px solid rgba(19, 181, 243, 0.2);
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 16px;
  margin-bottom: 12px;
}

.hint-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-color);
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hint-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hint-list li {
  font-size: 13px;
  color: var(--text-secondary);
  margin-left: 20px;
  position: relative;
}

.hint-list li::before {
  content: "✓";
  position: absolute;
  left: -14px;
  color: var(--accent-color);
  font-weight: bold;
}

.hint-list strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Make completed step items clickable */
.step-item.completed {
  cursor: pointer;
}

.step-item.completed:hover {
  box-shadow: 0 0 0 8px rgba(19, 181, 243, 0.3);
  transform: scale(1.05);
}

/* Next step hover effect */
.step-item:not(.active):not(.completed):hover {
  opacity: 0.8;
  transform: scale(1.05);
}
/* Step 9 & 10 Styles - Service and Package Builder */
.service-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.service-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
  flex: 1;
}

.service-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 15px;
}

.service-description {
  font-size: 13px;
  color: var(--text-secondary);
}

.service-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-color);
}

/* Step 10: Package Builder — Fancy Modern Redesign */
.step-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: -20px;
  margin-bottom: 28px;
}

/* ── Wizard Timeline ── */
.package-wizard-timeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 30px;
  padding: 20px 10px;
  background: linear-gradient(
    135deg,
    rgba(19, 181, 243, 0.04),
    rgba(19, 181, 243, 0.01)
  );
  border: 1px solid rgba(19, 181, 243, 0.1);
  border-radius: 16px;
}

.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  min-width: 90px;
}

.wizard-step span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.4s ease;
  white-space: nowrap;
}

.wizard-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: var(--surface-color);
  border: 2px solid var(--border-color);
  color: var(--text-secondary);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wizard-step.active .wizard-circle {
  background: linear-gradient(135deg, var(--accent-color), #0ea5e9);
  border-color: var(--accent-color);
  color: white;
  box-shadow:
    0 0 0 5px rgba(19, 181, 243, 0.15),
    0 4px 15px rgba(19, 181, 243, 0.3);
}

.wizard-step.active span {
  color: var(--accent-color);
  font-weight: 700;
}

.wizard-step.completed .wizard-circle {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: white;
}

.wizard-step.completed span {
  color: var(--text-primary);
}

.wizard-line {
  flex: 1;
  height: 3px;
  background: var(--border-color);
  border-radius: 2px;
  margin: 0 8px;
  margin-bottom: 22px;
  transition: background 0.5s ease;
  max-width: 120px;
}

.wizard-line.active {
  background: linear-gradient(90deg, var(--accent-color), #0ea5e9);
}

/* ── Package Builder Container ── */
.package-builder-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0 0 10px 0;
}

/* ── Generic Builder Section ── */
.builder-section {
  background: linear-gradient(
    135deg,
    var(--surface-color) 0%,
    rgba(19, 181, 243, 0.03) 100%
  );
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.builder-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--accent-color),
    rgba(19, 181, 243, 0.3)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.builder-section:hover::before {
  opacity: 1;
}

.builder-section:hover {
  border-color: rgba(19, 181, 243, 0.25);
  box-shadow: 0 6px 24px rgba(19, 181, 243, 0.1);
}

.section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(19, 181, 243, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.3px;
}

.section-title::before {
  display: none;
}

.section-title i {
  color: var(--accent-color);
  font-size: 16px;
}

/* ── Services Selection ── */
.services-selector-section {
  background: linear-gradient(
    135deg,
    var(--surface-color) 0%,
    rgba(19, 181, 243, 0.03) 100%
  );
}

.services-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 220px;
  overflow-y: auto;
}

.service-option {
  background: var(--bg-color);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.service-option:hover {
  border-color: var(--accent-color);
  background: rgba(19, 181, 243, 0.04);
  transform: translateX(-4px);
}

.service-option.active {
  border-color: var(--accent-color);
  background: rgba(19, 181, 243, 0.1);
  box-shadow:
    0 0 0 3px rgba(19, 181, 243, 0.08),
    0 4px 12px rgba(19, 181, 243, 0.1);
}

.service-option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.service-option-header strong {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
}

.service-option-price {
  color: var(--accent-color);
  font-weight: 700;
  font-size: 14px;
  background: rgba(19, 181, 243, 0.08);
  padding: 3px 10px;
  border-radius: 20px;
}

.service-option-description {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  line-height: 1.4;
}

.btn-select-service {
  width: 100%;
  padding: 9px 14px;
  background: linear-gradient(135deg, var(--accent-color), #0ea5e9);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-select-service:hover {
  background: linear-gradient(135deg, #0ea5e9, var(--accent-color));
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(19, 181, 243, 0.35);
}

/* ── Package Options ── */
.package-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.package-option-compact {
  background: var(--bg-color);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 20px 14px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.package-option-compact::after {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 8px;
  left: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.package-option-compact:hover {
  border-color: rgba(19, 181, 243, 0.4);
  background: rgba(19, 181, 243, 0.04);
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.package-option-compact.selected {
  border-color: var(--accent-color);
  background: linear-gradient(
    135deg,
    rgba(19, 181, 243, 0.12),
    rgba(19, 181, 243, 0.04)
  );
  box-shadow:
    0 0 0 3px rgba(19, 181, 243, 0.1),
    0 8px 25px rgba(19, 181, 243, 0.2);
  transform: translateY(-4px);
}

.package-option-compact.selected::after {
  opacity: 1;
  transform: scale(1);
}

.option-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(19, 181, 243, 0.12),
    rgba(19, 181, 243, 0.04)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--accent-color);
  transition: all 0.3s ease;
  border: 1px solid rgba(19, 181, 243, 0.15);
}

.package-option-compact:hover .option-icon,
.package-option-compact.selected .option-icon {
  background: linear-gradient(135deg, var(--accent-color), #0ea5e9);
  color: white;
  box-shadow: 0 4px 15px rgba(19, 181, 243, 0.3);
}

.option-badge {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 16px;
}

.option-duration {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.option-discount {
  background: linear-gradient(
    135deg,
    rgba(19, 181, 243, 0.15),
    rgba(19, 181, 243, 0.08)
  );
  color: var(--accent-color);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(19, 181, 243, 0.15);
}

/* ── Price Section ── */
.price-input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.price-info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.price-info-card {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.price-info-card.highlight {
  border-color: rgba(19, 181, 243, 0.25);
  background: linear-gradient(
    135deg,
    rgba(19, 181, 243, 0.08),
    rgba(19, 181, 243, 0.02)
  );
}

.price-info-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: rgba(19, 181, 243, 0.08);
  color: var(--accent-color);
  border: 1px solid rgba(19, 181, 243, 0.12);
}

.price-info-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.price-info-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.price-info-value.accent {
  color: var(--accent-color);
}

.price-input-row {
  position: relative;
}

#ob-package-price {
  padding: 14px 18px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-size: 16px;
  background: var(--bg-color);
  color: var(--text-primary);
  transition: all 0.3s ease;
  font-family: inherit;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.5px;
}

#ob-package-price:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px rgba(19, 181, 243, 0.1);
}

#ob-package-price::placeholder {
  color: var(--text-secondary);
  font-weight: 400;
}

.price-validation-message {
  padding: 0;
  border-radius: 8px;
  font-size: 13px;
  text-align: right;
  min-height: 36px;
  display: flex;
  align-items: center;
}

.price-validation-message .message {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  width: 100%;
  font-weight: 500;
}

.price-validation-message .message.error {
  background: rgba(255, 59, 48, 0.08);
  border: 1px solid rgba(255, 59, 48, 0.2);
  color: #ff3b30;
}

.price-validation-message .message.success {
  background: rgba(76, 175, 80, 0.08);
  border: 1px solid rgba(76, 175, 80, 0.2);
  color: #4caf50;
}

/* ── Create Package Button — Fancy & Centered ── */
.create-package-btn-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}

.btn-create-package {
  padding: 14px 48px;
  background: linear-gradient(135deg, var(--accent-color), #0ea5e9);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 18px rgba(19, 181, 243, 0.25);
  position: relative;
  overflow: hidden;
  min-width: 200px;
}

.btn-create-package::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transition: left 0.5s ease;
}

.btn-create-package:hover:not(:disabled)::before {
  left: 100%;
}

.btn-create-package:hover:not(:disabled) {
  background: linear-gradient(135deg, #0ea5e9, var(--accent-color));
  transform: translateY(-3px);
  box-shadow:
    0 8px 30px rgba(19, 181, 243, 0.45),
    0 0 20px rgba(19, 181, 243, 0.15);
}

.btn-create-package:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: var(--border-color);
  box-shadow: none;
}

/* ── Created Packages ── */
.packages-list-created {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 280px;
  overflow-y: auto;
}

.empty-state {
  text-align: center;
  padding: 28px 16px;
  color: var(--text-secondary);
  font-size: 14px;
  background: var(--bg-color);
  border-radius: 12px;
  border: 1px dashed var(--border-color);
}

.created-package-card {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px;
  transition: all 0.3s ease;
  position: relative;
}

.created-package-card:hover {
  border-color: rgba(19, 181, 243, 0.3);
  box-shadow: 0 4px 16px rgba(19, 181, 243, 0.1);
  transform: translateY(-2px);
}

.package-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.package-card-header h4 {
  margin: 0;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
}

.btn-remove-package {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  padding: 6px;
  border-radius: 8px;
  flex-shrink: 0;
}

.btn-remove-package:hover {
  color: #ff3b30;
  background: rgba(255, 59, 48, 0.08);
  transform: scale(1.1);
}

.package-card-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  font-size: 13px;
}

.package-card-details .detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.package-card-details .label {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 500;
}

.package-card-details .value {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 13px;
}

.package-card-details .detail.highlight {
  background: linear-gradient(
    135deg,
    rgba(19, 181, 243, 0.1),
    rgba(19, 181, 243, 0.03)
  );
  padding: 10px 8px;
  border-radius: 10px;
  border: 1px solid rgba(19, 181, 243, 0.15);
  grid-column: 1 / -1;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.package-card-details .detail.highlight .price {
  color: var(--accent-color);
  font-weight: 700;
  font-size: 16px;
}

/* ── Responsive — Step 10 ── */
@media (max-width: 1024px) {
  .package-options-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .package-option-compact {
    padding: 16px 10px;
  }

  .option-badge {
    font-size: 14px;
  }

  .section-title {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .price-info-cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  #step-9,
  #step-10 {
    max-width: 100%;
    padding: 24px;
  }

  .package-wizard-timeline {
    padding: 14px 8px;
    gap: 0;
  }

  .wizard-circle {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .wizard-step span {
    font-size: 10px;
  }

  .wizard-line {
    max-width: 60px;
  }

  .package-builder-container {
    gap: 14px;
  }

  .builder-section {
    padding: 16px;
  }

  .services-options {
    gap: 8px;
    max-height: 200px;
  }

  .package-options-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .package-option-compact {
    padding: 14px 10px;
    gap: 8px;
  }

  .option-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .price-info-cards {
    grid-template-columns: 1fr;
  }

  #ob-package-price {
    font-size: 14px;
    padding: 12px 14px;
  }

  .packages-list-created {
    max-height: 200px;
  }

  .created-package-card {
    padding: 12px;
  }

  .package-card-details {
    grid-template-columns: repeat(2, 1fr);
  }

  .collection-form {
    grid-template-columns: 1fr;
  }
}

/* ════════════════════════════════════════════════════════════════════════ */
/* STEP 10 - REDESIGNED V2: VERTICAL STACKED LAYOUT WITH STYLISH SEPARATORS */
/* ════════════════════════════════════════════════════════════════════════ */

.package-builder-v2 {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}

/* ── Section Titles V2 ── */
.section-title-v2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.section-title-v2 i {
  color: var(--accent-color);
  font-size: 20px;
}

.section-hint {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* ── Services List V2 - Vertical Stacked ── */
.services-section-v2 {
  padding: 24px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  margin-bottom: 0;
}

.services-list-v2 {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.service-option-v2 {
  padding: 18px;
  background: var(--bg-color);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  margin-bottom: 12px;
}

.service-option-v2:last-child {
  margin-bottom: 0;
}

.service-option-v2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent-color);
  border-radius: 12px 0 0 12px;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-option-v2:hover {
  border-color: rgba(19, 181, 243, 0.3);
  background: rgba(19, 181, 243, 0.03);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.service-option-v2.active {
  border-color: var(--accent-color);
  background: linear-gradient(
    135deg,
    rgba(19, 181, 243, 0.1),
    rgba(19, 181, 243, 0.03)
  );
  box-shadow: 0 0 0 3px rgba(19, 181, 243, 0.08);
}

.service-option-v2.active::before {
  transform: scaleY(1);
}

.service-option-header-v2 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.service-option-header-v2 strong {
  font-size: 15px;
  color: var(--text-primary);
}

.service-option-price-v2 {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-color);
  background: rgba(19, 181, 243, 0.1);
  padding: 2px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.service-option-description-v2 {
  font-size: 12px;
  color: var(--text-secondary);
}

.btn-select-service-v2 {
  align-self: flex-start;
  padding: 6px 14px;
  background: var(--accent-color);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-select-service-v2:hover {
  background: #0ea5e9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(19, 181, 243, 0.3);
}

/* ── Stylish Separator Between Sections ── */
.package-options-section-v2,
.price-section-v2,
.created-packages-section-v2 {
  position: relative;
  padding-top: 24px;
  padding-bottom: 24px;
  padding-left: 24px;
  padding-right: 24px;
}

.package-options-section-v2::before,
.price-section-v2::before,
.created-packages-section-v2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--border-color),
    transparent
  );
}

.package-options-section-v2,
.created-packages-section-v2 {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  margin-top: 0;
  margin-bottom: 0;
}

.price-section-v2 {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  margin-top: 0;
  margin-bottom: 0;
}

/* ── Package Options Inline V2 ── */
.package-options-inline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.package-option-v2 {
  padding: 16px 12px;
  background: var(--bg-color);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.package-option-v2::after {
  content: "✓";
  position: absolute;
  top: 6px;
  left: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.package-option-v2:hover {
  border-color: rgba(19, 181, 243, 0.3);
  background: rgba(19, 181, 243, 0.04);
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.package-option-v2.selected {
  border-color: var(--accent-color);
  background: linear-gradient(
    135deg,
    rgba(19, 181, 243, 0.12),
    rgba(19, 181, 243, 0.04)
  );
  box-shadow: 0 0 0 2px rgba(19, 181, 243, 0.1);
}

.package-option-v2.selected::after {
  opacity: 1;
  transform: scale(1);
}

.option-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(19, 181, 243, 0.12),
    rgba(19, 181, 243, 0.04)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--accent-color);
  transition: all 0.3s ease;
  border: 1px solid rgba(19, 181, 243, 0.15);
}

.package-option-v2:hover .option-icon,
.package-option-v2.selected .option-icon {
  background: linear-gradient(135deg, var(--accent-color), #0ea5e9);
  color: white;
  box-shadow: 0 4px 12px rgba(19, 181, 243, 0.3);
}

.option-badge {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 14px;
}

.option-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  font-size: 11px;
}

.detail {
  color: var(--text-secondary);
  font-weight: 500;
}

.discount-badge {
  background: linear-gradient(
    135deg,
    rgba(19, 181, 243, 0.15),
    rgba(19, 181, 243, 0.08)
  );
  color: var(--accent-color);
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid rgba(19, 181, 243, 0.15);
}

/* ── Price Info Grid V2 ── */
.price-info-grid {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-color);
  border-radius: 10px;
  margin-bottom: 20px;
}

.price-info-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-info-item.highlight {
  padding: 12px;
  background: rgba(19, 181, 243, 0.08);
  border-radius: 8px;
  border-left: 3px solid var(--accent-color);
}

.price-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
}

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

.price-value.accent {
  color: var(--accent-color);
}

.price-separator {
  width: 1px;
  height: 40px;
  background: var(--border-color);
}

/* ── Price Input Group V2 ── */
.price-input-group {
  margin-bottom: 16px;
}

.price-input-v2 {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-size: 14px;
  background: var(--bg-color);
  color: #ffffff;
  transition: all 0.3s ease;
  text-align: right;
}

.price-input-v2:focus {
  outline: none;
  border-color: var(--accent-color);
  background: white;
  color: #1a1a1a;
  box-shadow: 0 0 0 3px rgba(19, 181, 243, 0.1);
}

.price-input-v2::placeholder {
  color: var(--text-secondary);
}

.price-validation-message-v2 {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

.price-validation-message-v2 .message {
  display: inline-block;
}

.price-validation-message-v2 .message.error {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  padding: 8px 12px;
  border-radius: 6px;
  border-left: 3px solid #dc2626;
}

.price-validation-message-v2 .message.success {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  padding: 8px 12px;
  border-radius: 6px;
  border-left: 3px solid #16a34a;
}

/* ── Create Package Button V2 ── */
.btn-create-package-v2 {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--accent-color), #0ea5e9);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-create-package-v2:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(19, 181, 243, 0.3);
}

.btn-create-package-v2:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Created Packages List V2 ── */
.packages-list-v2 {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.package-item-v2 {
  padding: 16px;
  background: var(--bg-color);
  border: 1px solid rgba(19, 181, 243, 0.2);
  border-left: 4px solid var(--accent-color);
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

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

.package-details-v2 {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.package-name-v2 {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 14px;
}

.package-meta-v2 {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.package-meta-v2 span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.package-price-v2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-color);
}

.package-price-group-v2 {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.package-regular-price-v2 {
  font-size: 11px;
  color: var(--text-secondary);
  text-decoration: line-through;
  opacity: 0.7;
}

.btn-delete-package {
  padding: 6px 12px;
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 12px;
}

.btn-delete-package:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .package-options-inline {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .price-info-grid {
    flex-direction: column;
    gap: 8px;
  }

  .price-separator {
    width: 100%;
    height: 1px;
    margin: 8px 0;
  }
}

@media (max-width: 480px) {
  .package-options-inline {
    grid-template-columns: 1fr;
  }

  .package-option-v2 {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    gap: 12px;
  }

  .option-icon {
    flex-shrink: 0;
  }

  .service-option-v2 {
    padding: 14px;
  }

  .service-option-header-v2 {
    flex-direction: column;
    align-items: flex-start;
  }

  .price-info-grid {
    flex-direction: column;
    gap: 8px;
  }

  .price-separator {
    display: none;
  }

  .package-item-v2 {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-delete-package {
    align-self: flex-start;
  }
}

@media (max-width: 480px) {
  .package-options-grid {
    grid-template-columns: 1fr;
  }

  .package-card-details {
    grid-template-columns: 1fr;
  }

  .services-options {
    max-height: 150px;
  }

  .packages-list-created {
    max-height: 150px;
  }

  .wizard-step {
    min-width: 60px;
  }

  .wizard-circle {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .wizard-step span {
    font-size: 9px;
  }

  .wizard-line {
    max-width: 40px;
  }

  .btn-create-package {
    padding: 12px 32px;
    font-size: 14px;
  }
}

/* ═══════════════════════════════════════════════
   Weekend Choice Section & Badges
═══════════════════════════════════════════════ */

/* Weekend choice section (shown for options 1 & 2) */
.weekend-choice-section-v2 {
  margin-top: 16px;
  padding: 18px 20px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  animation: fadeSlideIn 0.25s ease;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.weekend-choice-label {
  margin: 0 0 14px 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.weekend-choice-label i {
  color: var(--accent-color);
  font-size: 15px;
}

.weekend-choice-hint {
  margin: -6px 0 14px 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.5;
}

.weekend-choice-hint i {
  color: var(--accent-color);
  font-size: 12px;
  flex-shrink: 0;
}

.weekend-choice-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.weekend-choice-btn {
  flex: 1;
  min-width: 140px;
  padding: 11px 18px;
  border-radius: 10px;
  border: 2px solid var(--border-color);
  background: var(--surface-color);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.weekend-choice-btn:hover {
  border-color: rgba(19, 181, 243, 0.35);
  background: rgba(19, 181, 243, 0.05);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.weekend-choice-btn.active {
  border-color: var(--accent-color);
  background: linear-gradient(
    135deg,
    rgba(19, 181, 243, 0.14),
    rgba(19, 181, 243, 0.05)
  );
  color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(19, 181, 243, 0.12);
}

.weekend-choice-btn.active i {
  color: var(--accent-color);
}

/* "Always includes weekends" badge on option 3 card */
.weekend-always-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.15),
    rgba(16, 185, 129, 0.06)
  );
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  margin-top: 2px;
  white-space: normal;
  text-align: center;
  line-height: 1.4;
}

.weekend-always-badge i {
  font-size: 9px;
}

/* Weekend badges on created package rows */
.weekend-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.weekend-badge--yes {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.14),
    rgba(16, 185, 129, 0.06)
  );
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.22);
}

.weekend-badge--no {
  background: linear-gradient(
    135deg,
    rgba(148, 163, 184, 0.14),
    rgba(148, 163, 184, 0.06)
  );
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

/* Capacity Control Styles (Onboarding) */
.capacity-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 30px 20px;
  background: linear-gradient(
    135deg,
    rgba(19, 181, 243, 0.05),
    rgba(19, 181, 243, 0.02)
  );
  border: 1px solid rgba(19, 181, 243, 0.1);
  border-radius: 16px;
  margin-top: 20px;
}

.capacity-display {
  font-size: 48px;
  font-weight: 700;
  min-width: 100px;
  text-align: center;
  color: var(--accent-color);
  font-family: "Segoe UI", sans-serif;
  letter-spacing: 0.5px;
}

.btn-capacity {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  border: 2px solid var(--accent-color);
  background: white;
  color: var(--accent-color);
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}

.btn-capacity:hover:not(:disabled) {
  background: var(--accent-color);
  color: white;
  transform: scale(1.08);
}

.btn-capacity:active:not(:disabled) {
  transform: scale(0.95);
}

.btn-capacity:disabled {
  border-color: #ccc;
  color: #ccc;
  cursor: not-allowed;
  opacity: 0.5;
}

.hint-text {
  margin-bottom: 20px;
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

/* Contract Section */
.contract-box {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.8;
}

.contract-box h3 {
  color: #333;
  margin-bottom: 10px;
}

.contract-box p {
  margin-bottom: 8px;
  color: #444;
}

.contract-agree-section {
  margin-bottom: 20px;
}

.contract-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: #333;
}

.contract-checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent-color, #6c63ff);
}

.contract-warning {
  margin-top: 8px;
  color: #e67e22;
  font-size: 13px;
  font-weight: 500;
}

.contract-otp-section {
  margin-bottom: 20px;
}

.btn-send-otp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--accent-color, #13b5f3);
  color: #fff;
  border: none;
  padding: 16px 24px;
  border-radius: 12px;
  font-family: "Tajawal", sans-serif;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(19, 181, 243, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-send-otp:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(19, 181, 243, 0.4);
}

.btn-send-otp:disabled {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.4);
  box-shadow: none;
  cursor: not-allowed;
}

.otp-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-family: "Tajawal", sans-serif;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 14px;
  font-weight: 500;
}

.otp-note i { color: var(--accent-color, #13b5f3); margin-top: 2px; }

.otp-input-group {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.otp-input {
  flex: 0 0 auto;
  width: 130px;
  text-align: center;
  font-size: 22px;
  letter-spacing: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  color: #fff;
  font-weight: bold;
}

.otp-input::placeholder { color: rgba(255, 255, 255, 0.3); }

.otp-input:focus {
  border-color: var(--accent-color, #13b5f3);
  background: rgba(19, 181, 243, 0.06);
  outline: none;
}

.btn-verify-otp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  background: var(--accent-color, #13b5f3);
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
  font-family: "Tajawal", sans-serif;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(19, 181, 243, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-verify-otp:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(19, 181, 243, 0.4);
}

.btn-verify-otp:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.otp-status {
  margin-top: 10px;
  font-family: "Tajawal", sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}
/* ─────────────────────────────────────────────────────────────────────────
   Onboarding — two-column layout (RTL)
   - Right column (primary content): the active section's form.
   - Left column (timeline rail): vertical list of all 13 sections with
     state indicators (locked / active / completed). Drives navigation.
   - Only the active section's card is visible. Locked timeline entries
     reject clicks; completed/active entries jump back to that section.
   ───────────────────────────────────────────────────────────────────────── */

.onboarding-container--list {
  max-width: 1280px;
  margin: 36px auto 80px;
  padding: 0 28px;
  text-align: right;
  direction: rtl;
}

.setup-list-header {
  text-align: right;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border-color);
}

.setup-list-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.setup-list-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
  margin: 0;
  line-height: 1.7;
}

/* ── Layout columns ─────────────────────────────────────────────────────── */
.onboarding-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: flex-start;
}

.onboarding-layout__content {
  min-width: 0; /* prevent grid overflow with tall iframes */
}

.onboarding-layout__timeline {
  position: sticky;
  top: 24px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 22px 18px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.18);
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
}

.onboarding-layout__timeline::-webkit-scrollbar { width: 6px; }
.onboarding-layout__timeline::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
}

.timeline-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 14px;
  padding: 0 6px;
}

.timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

/* The vertical guide line behind the circles. */
.timeline-list::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  /* In RTL, "right" is the start side — circles sit on the right. */
  right: 22px;
  width: 2px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
}

.timeline-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 6px;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease, color 0.2s ease;
}

.timeline-entry:hover:not(.is-locked) {
  background: rgba(255, 255, 255, 0.03);
}

.timeline-entry__circle {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  background: rgba(19, 181, 243, 0.08);
  border: 1.5px solid rgba(19, 181, 243, 0.35);
  color: var(--accent-color);
  position: relative;
  z-index: 1;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease,
    box-shadow 0.25s ease, transform 0.2s ease;
}

.timeline-entry__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  flex: 1;
}

.timeline-entry__status {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.timeline-entry__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* States */
.timeline-entry.is-active {
  background: rgba(19, 181, 243, 0.08);
}
.timeline-entry.is-active .timeline-entry__circle {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(19, 181, 243, 0.18);
}
.timeline-entry.is-active .timeline-entry__title {
  color: var(--accent-color);
}
.timeline-entry.is-active .timeline-entry__status {
  color: var(--accent-color);
}

.timeline-entry.is-completed .timeline-entry__circle {
  background: #22c55e;
  border-color: #22c55e;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14);
}
.timeline-entry.is-completed .timeline-entry__title {
  color: var(--text-primary);
}

.timeline-entry.is-locked {
  cursor: not-allowed;
  opacity: 0.55;
}
.timeline-entry.is-locked .timeline-entry__circle {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.45);
}
.timeline-entry.is-locked .timeline-entry__title {
  color: var(--text-secondary);
}

/* ── Section card (now: active step only) ──────────────────────────────── */
.section-card.step-content {
  animation: none;
  max-width: none;
  margin: 0;
  padding: 0;
  text-align: right;
}

.section-card {
  display: none;
  background: var(--surface-color);
  border-radius: 18px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.section-card.is-active {
  display: block;
  animation: sectionFadeIn 0.32s ease;
}

@keyframes sectionFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.section-card--hidden { display: none !important; }

/* The legacy header button is now used as a static heading.  */
.section-card__header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 26px;
  background: rgba(255, 255, 255, 0.02);
  border: 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  font: inherit;
  text-align: right;
  cursor: default;
  pointer-events: none;
}

.section-card__num {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(19, 181, 243, 0.12);
  border: 1.5px solid rgba(19, 181, 243, 0.4);
  color: var(--accent-color);
  font-weight: 700;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.section-card.is-completed .section-card__num {
  background: #22c55e;
  border-color: #22c55e;
  color: #fff;
}

.section-card__title {
  flex: 1;
  font-size: 18px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

/* The chevron / state-icon is no longer needed — timeline owns state. */
.section-card__state-icon { display: none; }

.section-card__tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(244, 67, 54, 0.12);
  color: #f4675b;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

.section-card__tag--optional {
  background: rgba(33, 150, 243, 0.1);
  color: #4ea7e6;
  border-color: rgba(33, 150, 243, 0.3);
}

.section-card__body { /* Body is always rendered for the active card. */
  display: block;
  max-height: none;
  opacity: 1;
  overflow: visible;
}

.section-card__body-inner {
  padding: 26px;
}

.section-card__hint {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* Per-section "continue" button */
.btn-section-continue {
  margin-top: 24px;
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--accent-color);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: filter 0.2s ease, transform 0.1s ease;
}

.btn-section-continue:hover { filter: brightness(1.08); }
.btn-section-continue:active { transform: translateY(1px); }

/* ── Section 6 — Contract (highlighted) ───────────────────────────────── */
.section-card--contract.is-active {
  border-color: rgba(19, 181, 243, 0.4);
  background: linear-gradient(
    180deg,
    rgba(19, 181, 243, 0.04),
    var(--surface-color) 60%
  );
}

.section-card--contract .section-card__num {
  background: linear-gradient(135deg, #13b5f3, #0a7cb8);
  color: #fff;
  border-color: transparent;
}

.contract-intro { margin-bottom: 18px; }

.contract-intro__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contract-intro__title i { color: var(--accent-color); }

.contract-intro__sub {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ── Reflowable HTML contract ───────────────────────────────────────────
   Replaces the old PDF iframe. The backend serves a bilingual HTML
   fragment (EN | AR per clause); we inject it into `.contract-doc__body`
   and style it here so it reflows on any screen. The host shows a
   loading spinner first, a retry-able error on failure, and the document
   once ready — driven by the `contract-doc--{loading,error,ready}`
   modifier the JS sets. */
.contract-doc {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #11161f;
  box-shadow: inset 0 0 0 1px rgba(19, 181, 243, 0.08);
  margin-bottom: 14px;
}

.contract-doc__loading,
.contract-doc__error {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 320px;
  padding: 32px 24px;
  text-align: center;
}
.contract-doc--loading .contract-doc__loading { display: flex; }
.contract-doc--error .contract-doc__error { display: flex; }

.contract-doc__loading i { font-size: 26px; color: var(--accent-color, #13b5f3); }
.contract-doc__loading span {
  font-family: "Tajawal", sans-serif;
  font-size: 14px;
  color: var(--text-secondary);
}

.contract-doc__error i { font-size: 28px; color: #f0c245; }
.contract-doc__error p {
  margin: 0;
  max-width: 360px;
  font-family: "Tajawal", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
}
.contract-doc__retry {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid rgba(19, 181, 243, 0.4);
  background: rgba(19, 181, 243, 0.12);
  color: var(--accent-color, #13b5f3);
  font-family: "Tajawal", sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}
.contract-doc__retry:hover { background: rgba(19, 181, 243, 0.2); }

/* The injected fragment lives in a contained, scrollable reading panel so
   the long contract doesn't bury the sign steps below it. */
.contract-doc__body {
  display: none;
  max-height: 72vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 24px 26px;
}
.contract-doc--ready .contract-doc__body { display: block; }

.contract-doc__body::-webkit-scrollbar { width: 10px; }
.contract-doc__body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  border: 3px solid transparent;
  background-clip: content-box;
}

/* ── Contract fragment internals (.qc-*) ─────────────────────────────── */
.qc {
  font-family: "Tajawal", sans-serif;
  color: var(--text-primary);
  line-height: 1.75;
}

.qc-head {
  text-align: center;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border-color);
}
.qc-head__ar { margin: 0; font-size: 21px; font-weight: 800; color: #fff; }
.qc-head__ar-sub { margin: 4px 0 0; font-size: 13px; color: var(--text-secondary); }
.qc-head__en { margin: 12px 0 0; font-size: 16px; font-weight: 700; color: rgba(255, 255, 255, 0.86); }
.qc-head__en-sub { margin: 3px 0 0; font-size: 12px; color: var(--text-secondary); }

.qc-section {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.qc-section:last-of-type { border-bottom: 0; }
.qc-section--mech {
  background: rgba(19, 181, 243, 0.05);
  border: 1px solid rgba(19, 181, 243, 0.16);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 22px;
}

/* EN | AR side-by-side. The grid is forced LTR so the English column
   (first in DOM) sits left and Arabic sits right, deterministically —
   independent of the article's own RTL direction. Each column keeps its
   own `dir` attribute, so text within each renders correctly. */
.qc-section__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  direction: ltr;
}
.qc-col { min-width: 0; }
.qc-col--en {
  text-align: left;
  padding-inline-end: 22px;
  border-inline-end: 1px solid rgba(255, 255, 255, 0.06);
}
.qc-col--ar { text-align: right; }

.qc-h {
  margin: 0 0 8px;
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.5;
  color: var(--accent-color, #13b5f3);
}
.qc-h__n { margin-inline-end: 4px; }
.qc-h b { color: #fff; }

.qc-p { margin: 0 0 10px; font-size: 13.5px; color: rgba(255, 255, 255, 0.82); }
.qc-p:last-child { margin-bottom: 0; }
.qc-p b { color: #fff; }

.qc-sub {
  margin: 0 0 8px;
  padding-inline-start: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}
.qc-sub b { color: rgba(255, 255, 255, 0.9); }
.qc-sub--deep { padding-inline-start: 28px; }

.qc-example {
  margin: 8px 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border-inline-start: 3px solid var(--accent-color, #13b5f3);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.78);
}
.qc-example__label {
  display: block;
  margin-bottom: 3px;
  font-weight: 800;
  color: var(--accent-color, #13b5f3);
}

/* Signature data block — rendered from the row's own data server-side. */
.qc-sign {
  margin-top: 22px;
  padding: 18px;
  border-radius: 12px;
  background: rgba(19, 181, 243, 0.05);
  border: 1px solid rgba(19, 181, 243, 0.16);
}
.qc-sign__head { margin-bottom: 14px; }
.qc-sign__title { margin: 0; font-size: 15px; font-weight: 800; color: #fff; }
.qc-sign__title-en {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}
.qc-sign__note { margin: 6px 0 0; font-size: 12px; color: var(--text-secondary); }
.qc-sign__note-en { display: block; }
.qc-sign__grid {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.qc-sign__row {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--border-color);
}
.qc-sign__row dt {
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
}
.qc-sign__k-en { display: block; margin-top: 1px; font-weight: 600; color: var(--text-secondary); }
.qc-sign__row dd {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  word-break: break-word;
}
.qc-sign__blank {
  display: inline-block;
  min-width: 80px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
}

.contract-read-warning {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 22px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 193, 7, 0.08);
  border: 1px solid rgba(255, 193, 7, 0.3);
  color: #f0c245;
  font-size: 14px;
  font-weight: 600;
}

.contract-read-warning i { font-size: 16px; }

/* ── Flow overview ─────────────────────────────────────────────────────
   Compact map of the four steps shown above the PDF so the owner knows
   the full path before starting. Numbers mirror the step cards below. */
.contract-flow-overview {
  list-style: none;
  margin: 0 0 18px;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  border-radius: 14px;
  background: rgba(19, 181, 243, 0.05);
  border: 1px solid rgba(19, 181, 243, 0.16);
}

.contract-flow-overview__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.contract-flow-overview__num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(19, 181, 243, 0.16);
  color: var(--accent-color, #13b5f3);
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contract-flow-overview__text {
  font-family: "Tajawal", sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.35;
}

/* ── Inline step label (sits above the PDF — step ١, review) ──────────── */
.contract-step-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.contract-step-label__num {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-color, #13b5f3);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contract-step-label__text {
  font-family: "Tajawal", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

/* ── Step cards (approve → request code → verify) ──────────────────────
   Vertical numbered cards. Active state gets an accent ring; the
   completed state (driven by :has below) turns the circle into a
   check and dims the card so attention flows to the next step. */
.contract-stage {
  display: block;
  padding: 18px 20px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-color);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.contract-stage__header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.contract-stage__heading { flex: 1; }

.contract-stage__title {
  font-family: "Tajawal", sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin: 2px 0 4px;
}

.contract-stage__desc {
  font-family: "Tajawal", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.55;
  margin: 0;
}

.contract-stage__step {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background 0.2s ease, color 0.2s ease;
}

.contract-stage__step::after {
  content: "\f00c"; /* fa-check */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
}

.contract-stage__body { width: 100%; }

/* Active step: highlighted circle + accent ring on the card. */
#contract-step-agree:not(:has(#contract-agree-checkbox:checked)),
#contract-stage:has(#contract-agree-checkbox:checked) #contract-step-send:not(:has(~ #contract-step-verify:not(.hidden))),
#contract-step-verify:not(.hidden) {
  border-color: rgba(19, 181, 243, 0.5);
  box-shadow: 0 0 0 1px rgba(19, 181, 243, 0.25), 0 12px 28px rgba(0, 0, 0, 0.28);
  background: rgba(19, 181, 243, 0.04);
}

#contract-step-agree:not(:has(#contract-agree-checkbox:checked)) .contract-stage__step,
#contract-stage:has(#contract-agree-checkbox:checked) #contract-step-send .contract-stage__step,
#contract-step-verify:not(.hidden) .contract-stage__step {
  background: var(--accent-color, #13b5f3);
  color: #fff;
}

/* Completed step: green check, dimmed card. */
#contract-stage:has(#contract-agree-checkbox:checked) #contract-step-agree,
#contract-stage:has(#contract-step-verify:not(.hidden)) #contract-step-send {
  opacity: 0.75;
}

#contract-stage:has(#contract-agree-checkbox:checked) #contract-step-agree .contract-stage__step,
#contract-stage:has(#contract-step-verify:not(.hidden)) #contract-step-send .contract-stage__step {
  background: #28c882;
  color: #fff;
  font-size: 0;
}

#contract-stage:has(#contract-agree-checkbox:checked) #contract-step-agree .contract-stage__step::after,
#contract-stage:has(#contract-step-verify:not(.hidden)) #contract-step-send .contract-stage__step::after {
  display: flex;
  font-size: 13px;
}

/* Hint under the request-code button — hidden once agreed (button live). */
.contract-stage__hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  font-family: "Tajawal", sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
}

.contract-stage__hint i { color: var(--accent-color, #13b5f3); }

#contract-stage:has(#contract-agree-checkbox:checked) #contract-step-send .contract-stage__hint {
  display: none;
}

.contract-checkbox {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.contract-checkbox input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.contract-checkbox__box {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1.5px solid var(--border-color);
  background: rgba(255, 255, 255, 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  transition: all 0.2s ease;
}

.contract-checkbox__box i {
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.15s ease;
}

.contract-checkbox input:checked ~ .contract-checkbox__box {
  background: var(--accent-color);
  border-color: var(--accent-color);
}

.contract-checkbox input:checked ~ .contract-checkbox__box i {
  opacity: 1;
  transform: scale(1);
}

.contract-checkbox__label {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.5;
}

/* ── Final submit ─────────────────────────────────────────────────────── */
.setup-list-submit {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.setup-list-submit__hint {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.setup-list-submit__hint i { color: var(--accent-color); }

.btn-onboarding-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--accent-color);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.1s ease, opacity 0.2s ease;
}

.btn-onboarding-submit:hover:not(:disabled) { filter: brightness(1.08); }
.btn-onboarding-submit:active:not(:disabled) { transform: translateY(1px); }
.btn-onboarding-submit:disabled { cursor: not-allowed; opacity: 0.5; background: #4a5564; }

/* ── Responsive ───────────────────────────────────────────────────────── */
/* Tablet: timeline collapses to a horizontal pill scroller above content. */
@media (max-width: 1024px) {
  .onboarding-container--list {
    padding: 0 20px;
  }
  .onboarding-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .onboarding-layout__timeline {
    order: -1; /* show the rail above the content */
    position: static;
    max-height: none;
    overflow: visible;
    padding: 14px 12px;
    border-radius: 14px;
  }
  .timeline-title { display: none; }
  .timeline-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .timeline-list::before { display: none; }
  .timeline-entry {
    flex: 0 0 auto;
    padding: 8px 14px 8px 10px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    min-width: max-content;
  }
  .timeline-entry__title { font-size: 13px; }
  .timeline-entry__status { display: none; }
  .timeline-entry__circle {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }
}

/* Mobile */
@media (max-width: 700px) {
  .onboarding-container--list {
    margin: 22px auto 60px;
    padding: 0 14px;
  }
  .setup-list-title { font-size: 22px; }
  .section-card__header { padding: 16px 18px; gap: 12px; }
  .section-card__num { width: 36px; height: 36px; font-size: 14px; }
  .section-card__title { font-size: 16px; }
  .section-card__body-inner { padding: 18px; }
  .timeline-entry { padding: 7px 12px 7px 8px; }
  .timeline-entry__title { font-size: 12px; }
  .contract-flow-overview {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 14px;
  }
  .contract-stage { padding: 16px; }
  .contract-stage__title { font-size: 15px; }
  .otp-input-group { flex-wrap: wrap; }
  .otp-input { width: 100%; }
  .btn-verify-otp { flex: 1 1 100%; }

  /* Whole-page responsive pass: tighten the shell on phones so the
     contract has more room. */
  .onboarding-contract-shell { padding: 20px 16px; }
  .onboarding-contract-title { font-size: 19px; }
  .onboarding-contract-subtitle { font-size: 13px; }

  /* Stack the bilingual columns: Arabic first, then English, each full
     width. `order` reorders within the now single-column grid. */
  .contract-doc__body { max-height: 68vh; padding: 18px 16px; }
  .qc-section__cols { grid-template-columns: 1fr; gap: 0; }
  .qc-col--ar { order: 1; }
  .qc-col--en {
    order: 2;
    padding-inline-end: 0;
    border-inline-end: 0;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
  .qc-head__ar { font-size: 19px; }
  .qc-head__en { font-size: 15px; }
  .qc-sign { padding: 14px; }
  .qc-sign__grid { grid-template-columns: 1fr; }
}

/* ─── Post-onboarding "under review" modal ────────────────────────
   Pops once the laundry's data has finished saving. Tells the
   owner their account is being verified by Qlean and will be
   activated shortly. Single CTA routes to the dashboard so the
   owner can start exploring while they wait. */
.onboarding-review-overlay {
  position: fixed;
  inset: 0;
  z-index: 10002;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  /* `fadeInOverlay` is defined earlier in this file (see the
     onboarding step-overlay rules); `fadeIn` was a typo and the
     browser silently dropped the animation. */
  animation: fadeInOverlay 0.2s ease;
}

.onboarding-review-card {
  background: var(--surface-color, #1a1c22);
  border: 1px solid var(--border-color, rgba(255,255,255,0.08));
  border-radius: 22px;
  padding: 30px 26px 24px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  animation: reviewCardIn 0.32s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes reviewCardIn {
  from { transform: translateY(16px) scale(0.96); opacity: 0; }
  to   { transform: translateY(0)    scale(1);    opacity: 1; }
}

.onboarding-review-icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.32);
  color: #22c55e;
  font-size: 38px;
}

.onboarding-review-title {
  font-family: 'Tajawal', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary, #fff);
  margin: 0 0 12px;
}

.onboarding-review-body {
  font-family: 'Tajawal', sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary, #94a3b8);
  margin: 0;
}

.onboarding-review-cta {
  margin-top: 22px;
  padding: 12px 22px;
  width: 100%;
  background: linear-gradient(135deg, #13b5f3, #0e93c7);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-family: 'Tajawal', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.onboarding-review-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(19, 181, 243, 0.28);
}
.onboarding-review-cta:active {
  transform: translateY(0);
}


.contract-info-callout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  margin: 18px 0 22px;
  border-radius: 14px;
  background: rgba(19, 181, 243, 0.08);
  border: 1px solid rgba(19, 181, 243, 0.25);
  color: #cfe9ff;
}

.contract-info-callout i {
  color: var(--accent-color, #13b5f3);
  font-size: 22px;
  margin-top: 2px;
}

.contract-info-callout p {
  color: inherit;
}

.onboarding-status-page,
.onboarding-contract-page,
.onboarding-recover-page {
  /* dvh fallback so iOS Safari keyboard doesn't clip the form. */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background:
    radial-gradient(1100px 600px at 100% 0%, rgba(19, 181, 243, 0.12), transparent 60%),
    radial-gradient(800px 400px at 0% 100%, rgba(19, 181, 243, 0.08), transparent 60%),
    #0c1117;
}

.onboarding-status-card,
.onboarding-recover-card {
  width: 100%;
  max-width: 520px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 40px 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.onboarding-contract-shell {
  width: 100%;
  max-width: 880px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.onboarding-status-logo,
.onboarding-recover-logo,
.onboarding-contract-logo {
  display: block;
  width: auto;
  height: 64px;
  max-width: 100%;
  aspect-ratio: 1480 / 1197;
  object-fit: contain;
  margin: 0 auto 22px;
}

.onboarding-status-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.onboarding-status-state.hidden,
.onboarding-contract-stage.hidden,
.onboarding-contract-empty.hidden,
#contract-step-verify.hidden,
#status-pending.hidden,
#status-approved.hidden,
#status-rejected.hidden,
#status-signed.hidden,
#status-expired.hidden,
#status-not-found.hidden,
#status-loading.hidden,
.onboarding-recover-status.hidden {
  display: none;
}

.onboarding-status-spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent-color, #13b5f3);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.onboarding-status-icon {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
}

.onboarding-status-icon--pending {
  background: rgba(255, 184, 0, 0.12);
  color: #ffb800;
}

.onboarding-status-icon--success {
  background: rgba(40, 200, 130, 0.14);
  color: #28c882;
}

.onboarding-status-icon--warning {
  background: rgba(255, 122, 89, 0.14);
  color: #ff7a59;
}

.onboarding-status-icon--error {
  background: rgba(245, 90, 90, 0.14);
  color: #f55a5a;
}

.onboarding-status-title {
  font-family: "Tajawal", sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin: 6px 0;
}

.onboarding-status-body,
.onboarding-recover-body {
  font-family: "Tajawal", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
  max-width: 440px;
}

.onboarding-status-reason {
  margin: 12px 0 6px;
  padding: 14px 18px;
  background: rgba(255, 122, 89, 0.08);
  border-right: 3px solid #ff7a59;
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-align: right;
  width: 100%;
}

.onboarding-status-cta,
.onboarding-recover-cta,
.onboarding-contract-cta,
.onboarding-contract-secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  padding: 14px 28px;
  background: var(--accent-color, #13b5f3);
  color: #fff;
  font-family: "Tajawal", sans-serif;
  font-size: 16px;
  font-weight: 700;
  border: 0;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.onboarding-contract-secondary-cta {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.onboarding-status-cta:hover,
.onboarding-recover-cta:hover,
.onboarding-contract-cta:hover,
.onboarding-contract-secondary-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(19, 181, 243, 0.35);
}

.onboarding-status-link {
  color: var(--accent-color, #13b5f3);
  font-weight: 700;
  text-decoration: none;
  margin: 0 4px;
}

.onboarding-recover-title {
  font-family: "Tajawal", sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px;
}

.onboarding-recover-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
  align-items: stretch;
}

.onboarding-recover-label {
  font-family: "Tajawal", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  text-align: right;
}

.onboarding-recover-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #fff;
  font-family: "Tajawal", sans-serif;
  font-size: 16px;
  letter-spacing: 1px;
  outline: none;
  transition: border 0.18s ease;
}

.onboarding-recover-input:focus {
  border-color: var(--accent-color, #13b5f3);
}

.onboarding-recover-status {
  margin-top: 14px;
  padding: 12px 14px;
  background: rgba(40, 200, 130, 0.10);
  border: 1px solid rgba(40, 200, 130, 0.25);
  border-radius: 10px;
  color: #b9f0d1;
  font-family: "Tajawal", sans-serif;
  font-size: 14px;
}

.onboarding-recover-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.6);
  font-family: "Tajawal", sans-serif;
  font-size: 14px;
  text-decoration: none;
}

.onboarding-recover-back:hover {
  color: #fff;
}

.onboarding-contract-header {
  text-align: center;
  margin-bottom: 22px;
}

.onboarding-contract-title {
  font-family: "Tajawal", sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin: 6px 0;
}

.onboarding-contract-subtitle {
  font-family: "Tajawal", sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.onboarding-contract-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 24px;
}

.onboarding-contract-empty i {
  font-size: 44px;
  color: #ffb800;
  margin-bottom: 14px;
}

.onboarding-contract-empty--success i {
  color: #28c882;
}

.onboarding-contract-empty h2 {
  font-family: "Tajawal", sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
}

.onboarding-contract-empty p {
  font-family: "Tajawal", sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 420px;
  margin: 0 auto 12px;
}

/* ============================================================
   Contract FAQ accordion
   ------------------------------------------------------------
   Sits between the contract PDF iframe and the agree/sign
   steps. Native <details>/<summary> for expand-collapse — no JS.
   Closed by default so it doesn't push the sign UI further
   down the page. When expanded, renders 7 sections (32 Q&A)
   styled to match the about-us page on the marketing site so
   the visual language stays consistent across surfaces.
   ============================================================ */

.contract-faq {
  margin-block: 18px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  background: var(--surface-color);
  overflow: hidden;
  transition: box-shadow 220ms ease, border-color 220ms ease;
}
.contract-faq[open] {
  border-color: rgba(19, 181, 243, 0.30);
  box-shadow: 0 12px 40px -16px rgba(0, 0, 0, 0.45);
}

.contract-faq__summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  font-family: "Tajawal", sans-serif;
  transition: background 220ms ease;
}
.contract-faq__summary::-webkit-details-marker { display: none; }
.contract-faq__summary::marker { content: ""; }
.contract-faq__summary:hover {
  background: rgba(19, 181, 243, 0.04);
}

.contract-faq__summary-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(19, 181, 243, 0.10);
  border: 1px solid rgba(19, 181, 243, 0.28);
  color: var(--accent-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.contract-faq__summary-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contract-faq__summary-title {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.4;
}
.contract-faq__summary-hint {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.5;
}

.contract-faq__summary-chevron {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 13px;
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
              color 220ms ease;
}
.contract-faq[open] .contract-faq__summary-chevron {
  transform: rotate(180deg);
  color: var(--accent-color);
}

.contract-faq__body {
  border-block-start: 1px solid var(--border-color);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  font-family: "Tajawal", sans-serif;
}

/* ─── Section header (cyan bar + title) ────────────────── */
.cfaq-section__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-block-end: 14px;
  padding-block-end: 10px;
  border-block-end: 1px solid var(--border-color);
}
.cfaq-section__bar {
  width: 4px;
  height: 22px;
  background: linear-gradient(180deg, var(--accent-color) 0%, #0aa3df 100%);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(19, 181, 243, 0.40);
  flex-shrink: 0;
}
.cfaq-section__title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.005em;
  line-height: 1.3;
  margin: 0;
}

/* ─── Q&A list & cards ─────────────────────────────────── */
.cfaq-qa-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cfaq-qa {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px 18px;
  transition: border-color 220ms ease;
}
.cfaq-qa:hover {
  border-color: rgba(255, 255, 255, 0.12);
}
.cfaq-qa__q {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.4;
  margin: 0 0 10px;
}
.cfaq-qa__a {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.85;
}
.cfaq-qa__a p {
  margin: 0 0 10px;
}
.cfaq-qa__a p:last-child { margin: 0; }
.cfaq-qa__a strong {
  color: var(--text-primary);
  font-weight: 800;
}
.cfaq-qa__note {
  margin-block-start: 14px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.75;
  padding-inline-start: 12px;
  border-inline-start: 2px solid var(--accent-color);
}

/* ─── Lists (documents + benefits + packages) ──────────── */
/* Logical `padding-inline-start` + `inset-inline-start` already
 * auto-flip in RTL → bullet sits on the visual right in Arabic
 * and on the visual left in LTR. No `[dir="rtl"]` override
 * needed (and adding one would double-flip — same bug we fixed
 * on the about-us page). */
.cfaq-list {
  list-style: none;
  padding: 0;
  margin: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cfaq-list li {
  position: relative;
  padding-inline-start: 24px;
  line-height: 1.75;
}
.cfaq-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 13px;
  width: 12px;
  height: 2px;
  background: var(--accent-color);
  border-radius: 2px;
}
.cfaq-list--docs li {
  font-weight: 600;
  color: var(--text-primary);
}
.cfaq-list--benefits li strong,
.cfaq-list--docs li strong {
  color: var(--accent-color);
  font-weight: 800;
  margin-inline-end: 4px;
}

/* ─── Stats card (subscription income example) ────────── */
.cfaq-stats {
  margin: 14px 0;
  background: rgba(0, 0, 0, 0.20);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
}
.cfaq-stats__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  border-block-end: 1px solid var(--border-color);
}
.cfaq-stats__row:last-child { border-block-end: 0; }
.cfaq-stats__label {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}
.cfaq-stats__value {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.cfaq-stats__row--highlight {
  background: linear-gradient(90deg, rgba(19, 181, 243, 0.10) 0%, transparent 100%);
  border-block-start: 1px solid rgba(19, 181, 243, 0.32);
}
[dir="rtl"] .cfaq-stats__row--highlight {
  background: linear-gradient(-90deg, rgba(19, 181, 243, 0.10) 0%, transparent 100%);
}
.cfaq-stats__row--highlight .cfaq-stats__label {
  color: var(--text-primary);
  font-weight: 700;
}
.cfaq-stats__row--highlight .cfaq-stats__value {
  color: var(--accent-color);
  font-size: 15px;
}

/* ─── Responsive ───────────────────────────────────────── */
@media (max-width: 640px) {
  .contract-faq__summary {
    padding: 14px 14px;
    gap: 12px;
  }
  .contract-faq__summary-icon {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }
  .contract-faq__summary-title { font-size: 14.5px; }
  .contract-faq__summary-hint  { font-size: 12px; }
  .contract-faq__body {
    padding: 14px;
    gap: 22px;
  }
  .cfaq-section__title { font-size: 16px; }
  .cfaq-qa {
    padding: 14px 14px;
    border-radius: 10px;
  }
  .cfaq-qa__q { font-size: 14px; }
  .cfaq-qa__a { font-size: 13.5px; line-height: 1.8; }
  .cfaq-stats__row {
    padding: 10px 12px;
  }
  .cfaq-stats__label,
  .cfaq-stats__value { font-size: 12.5px; }
  .cfaq-stats__row--highlight .cfaq-stats__value { font-size: 14px; }
}

/* Very narrow phones (Galaxy Fold closed) — stack stats rows
 * vertically so the label doesn't truncate against the value. */
@media (max-width: 380px) {
  .cfaq-stats__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .cfaq-stats__value {
    color: var(--accent-color);
  }
  .cfaq-list li {
    padding-inline-start: 20px;
  }
}

/* ── Owner data-review gate (admin-created onboarding) ─────────────── */
.cl-review-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  padding: 18px 18px 16px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}
.cl-review-list {
  margin-bottom: 16px;
}
.cl-review-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 10px 2px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.cl-review-row:last-child {
  border-bottom: none;
}
.cl-review-key {
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}
.cl-review-val {
  color: #0f172a;
  font-size: 13.5px;
  font-weight: 700;
  text-align: end;
  word-break: break-word;
}
.cl-review-hint {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.6;
  margin: 12px 2px 0;
}
