/* Support expert request pages — theme via --site-btn* */
.spe-page {
  --spe-brand: var(--site-btn, #0093e9);
  --spe-brand-soft: var(--site-btn-soft, rgba(0, 147, 233, 0.1));
  --spe-brand-muted: var(--site-btn-muted, rgba(0, 147, 233, 0.16));
  --spe-brand-strong: var(--site-btn-strong, #0077c2);
  --spe-ink: #1e293b;
  --spe-muted: #475569;
  --spe-line: #e2e8f0;
  --spe-surface: #fff;
  --spe-canvas: #f6f8fb;
  background:
    radial-gradient(ellipse 70% 40% at 50% -8%, var(--spe-brand-soft), transparent 65%),
    linear-gradient(180deg, var(--spe-canvas), #f3f6fa);
}

.spe-shell {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0 72px;
}

.spe-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  color: var(--spe-brand-strong) !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.spe-hero {
  text-align: center;
  margin-bottom: 28px;
}

.spe-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--spe-brand-muted);
  background: var(--spe-brand-soft);
  color: var(--spe-brand-strong);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 14px;
}

.spe-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 3vw, 1.95rem);
  font-weight: 800;
  color: var(--spe-ink);
  line-height: 1.45;
}

.spe-hero p {
  margin: 0 auto;
  max-width: 640px;
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--spe-muted);
}

.spe-price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  margin: 22px auto 0;
  padding: 14px 18px;
  max-width: 420px;
  border-radius: 16px;
  background: var(--spe-surface);
  border: 1px solid var(--spe-line);
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.05);
}

.spe-price__label {
  font-size: 13px;
  color: var(--spe-muted);
  font-weight: 700;
}

.spe-price__value {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--spe-brand-strong);
}

.spe-price__pending {
  font-size: 13px;
  color: #b45309;
  font-weight: 700;
}

.spe-grid {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.spe-card {
  background: var(--spe-surface);
  border: 1px solid var(--spe-line);
  border-radius: 20px;
  padding: 24px 22px;
  box-shadow: 0 6px 26px rgba(15, 45, 82, 0.05);
}

.spe-card h2 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 800;
  color: var(--spe-ink);
}

.spe-card > p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--spe-muted);
}

.spe-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  counter-reset: spe;
}

.spe-steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--spe-canvas);
  border: 1px solid var(--spe-line);
  font-size: 14px;
  line-height: 1.75;
  color: var(--spe-ink);
}

.spe-steps li::before {
  counter-increment: spe;
  content: counter(spe);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--spe-brand);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  margin-top: 2px;
}

.spe-download {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f0f9ff, #fff);
  border: 1.5px solid var(--spe-brand-muted);
}

.spe-download__icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(3, 105, 161, 0.2);
}

.spe-download__icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.spe-download__body {
  flex: 1;
  min-width: 200px;
}

.spe-download__body h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
  color: var(--spe-ink);
}

.spe-download__body p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--spe-muted);
}

.spe-download__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  background: var(--spe-brand);
  color: #fff !important;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 8px 22px var(--spe-brand-muted);
  transition: opacity 0.18s, transform 0.12s;
}

.spe-download__btn:hover {
  opacity: 0.94;
  transform: translateY(-1px);
}

.spe-warn {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 13.5px;
  line-height: 1.8;
  font-weight: 600;
}

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

.spe-form-grid .full {
  grid-column: 1 / -1;
}

.spe-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--spe-muted);
  margin-bottom: 6px;
}

.spe-field input,
.spe-field textarea,
.spe-field select {
  width: 100%;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 11px 14px;
  font: inherit;
  font-size: 14px;
  color: var(--spe-ink);
  background: var(--spe-canvas);
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

.spe-field input:focus,
.spe-field textarea:focus,
.spe-field select:focus {
  border-color: var(--spe-brand);
  background: #fff;
  box-shadow: 0 0 0 3px var(--spe-brand-muted);
}

.spe-field textarea {
  min-height: 96px;
  resize: vertical;
}

.spe-field input[readonly] {
  background: #eef2f7;
  color: var(--spe-muted);
  cursor: default;
}

.spe-submit {
  margin-top: 20px;
  min-height: 48px;
  padding: 0 28px;
  border: none;
  border-radius: 12px;
  background: var(--spe-brand);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 22px var(--spe-brand-muted);
}

.spe-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.spe-msg {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.7;
  display: none;
}

.spe-msg.is-err {
  display: block;
  background: #fef2f2;
  color: #b91c1c;
}

.spe-msg.is-ok {
  display: block;
  background: #ecfdf3;
  color: #166534;
}

/* OTP modal */
.spe-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.spe-modal-backdrop.is-open {
  display: flex;
}

.spe-modal {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 24px 22px;
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.25);
}

.spe-modal h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--spe-ink);
}

.spe-modal p.lead {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--spe-muted);
  line-height: 1.7;
}

.spe-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.spe-modal-actions button {
  flex: 1;
  min-height: 44px;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.spe-btn-ghost {
  border: 1.5px solid var(--spe-line);
  background: #fff;
  color: var(--spe-muted);
}

.spe-btn-primary {
  border: none;
  background: var(--spe-brand);
  color: #fff;
}

.spe-captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.spe-captcha-img {
  height: 48px;
  width: 150px;
  border-radius: 10px;
  border: 1px solid var(--spe-line);
  background: #fff;
}

.spe-captcha-refresh {
  border: 1.5px solid var(--spe-line);
  background: var(--spe-canvas);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 640px) {
  .spe-shell {
    width: calc(100% - 24px);
    padding-top: 24px;
  }

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

  .spe-download {
    flex-direction: column;
    text-align: center;
  }

  .spe-download__btn {
    width: 100%;
  }

  .spe-submit {
    width: 100%;
  }
}
