* {
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  overflow-x: hidden;
}

.display-text {
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.text-balance {
  text-wrap: balance;
}

.noise {
  position: relative;
}

.noise::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

.strike-through {
  position: relative;
  display: inline;
}

.strike-through::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.6s ease;
}

.strike-through.active::after {
  width: 100%;
}

.marquee {
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  display: inline-block;
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.custom-scroll::-webkit-scrollbar {
  width: 6px;
}

.custom-scroll::-webkit-scrollbar-track {
  background: #f3f4f6;
}

.custom-scroll::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.status-dot {
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.status-dot-red {
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
  animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.highlight-row {
  background: linear-gradient(90deg, #10b98108 0%, #10b98115 100%);
  border-left: 3px solid #10b981;
}

#modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 16px;
}

#modal-overlay.open {
  display: flex;
}

#modal-box {
  background: #fff;
  border-radius: 24px;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.25);
  animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.modal-step {
  display: none;
}

.modal-step.active {
  display: block;
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e5e7eb;
  transition: background 0.3s;
}

.step-dot.active {
  background: #0a0a0a;
}

.ss-input,
.ss-select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  background: #fafafa;
  color: #0a0a0a;
}

.ss-input {
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ss-select {
  transition: border-color 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.ss-input:focus,
.ss-select:focus {
  border-color: #0a0a0a;
  box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.08);
  background: #fff;
}

.ss-input::placeholder {
  color: #9ca3af;
}

.ss-input.error,
.ss-select.error {
  border-color: #ef4444;
}

.ss-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.ss-btn {
  width: 100%;
  padding: 14px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.ss-btn-primary {
  background: #0a0a0a;
  color: #fff;
}

.ss-btn-primary:hover {
  background: #1f2937;
  transform: translateY(-1px);
}

.ss-btn-primary:active {
  transform: translateY(0);
}

.ss-btn-primary:disabled {
  background: #d1d5db;
  cursor: not-allowed;
  transform: none;
}

@keyframes checkDraw {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: 0; }
}

.check-draw {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: checkDraw 0.6s ease-out 0.3s forwards;
}

#paypal-button-container {
  min-height: 50px;
}

#other-distributor-wrap {
  display: none;
  margin-top: 10px;
}

#other-distributor-wrap.visible {
  display: block;
}

.field-error {
  font-size: 12px;
  color: #ef4444;
  margin-top: 4px;
  display: none;
}

.field-error.visible {
  display: block;
}

.modal-header {
  padding: 24px 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-brand-icon {
  width: 28px;
  height: 28px;
  background: #0a0a0a;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-title-text {
  font-weight: 700;
  font-size: 15px;
}

.modal-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f3f4f6;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal-close-btn:hover {
  background: #e5e7eb;
}

.modal-step-pad {
  padding: 20px 28px 28px;
}

.modal-step-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}

.modal-step-subtitle {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 24px;
  line-height: 1.5;
}

.modal-form-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.input-helper {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 5px;
}

.report-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.report-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  background: #fafafa;
}

.report-option input {
  margin-top: 2px;
  accent-color: #0a0a0a;
}

.report-option-copy {
  flex: 1;
}

.report-option-title {
  font-weight: 600;
  font-size: 14px;
  color: #0a0a0a;
  margin-bottom: 3px;
}

.report-option-text {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
}

.report-badge {
  background: #10b981;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  white-space: nowrap;
}

.report-option.active,
.report-option:hover {
  border-color: #0a0a0a;
  background: #fff;
}

.modal-cta-margin {
  margin-top: 24px;
}

.modal-footnote {
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
  margin-top: 12px;
}

.modal-footnote-center {
  line-height: 1.6;
}

.modal-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  font-size: 13px;
  font-family: inherit;
  padding: 0;
  margin-bottom: 20px;
  transition: color 0.2s;
}

.modal-back-btn:hover {
  color: #0a0a0a;
}

.order-summary-card {
  background: #f9fafb;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 20px;
  border: 1px solid #e5e7eb;
}

.order-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.order-summary-name {
  font-size: 14px;
  color: #374151;
  font-weight: 500;
}

.order-summary-price {
  font-size: 18px;
  font-weight: 700;
}

.order-summary-email {
  font-size: 12px;
  color: #9ca3af;
}

.order-summary-divider {
  border-top: 1px solid #e5e7eb;
  margin: 12px 0;
}

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

.order-summary-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #6b7280;
}

.modal-step-success {
  padding: 40px 28px;
  text-align: center;
}

.success-icon-wrap {
  width: 72px;
  height: 72px;
  background: #d1fae5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.success-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.success-copy {
  font-size: 15px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0 0 28px;
}

.success-next-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 24px;
  text-align: left;
}

.success-next-title {
  font-size: 13px;
  font-weight: 600;
  color: #166534;
  margin-bottom: 8px;
}

.success-next-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.success-next-list li {
  font-size: 13px;
  color: #15803d;
  display: flex;
  gap: 8px;
}

.ss-preview-stage {
  position: relative;
}

.ss-preview-sizer {
  visibility: hidden;
  pointer-events: none;
}

.ss-preview-state {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 400ms ease, transform 400ms ease;
}

.ss-preview-state.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.testimonial-avatar {
  display: block;
}

@media (max-width: 640px) {
  .modal-header {
    padding: 20px 20px 0;
  }

  .modal-step-pad,
  .modal-step-success {
    padding-left: 20px;
    padding-right: 20px;
  }

  .report-option {
    flex-wrap: wrap;
  }

  .report-badge {
    margin-left: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .status-dot,
  .status-dot-red,
  .marquee-content,
  .check-draw,
  .ss-preview-state {
    animation: none !important;
    transition: none !important;
  }
}
