/* ================================================================
   SubPals 3-Step Checkout Modal
   Mobile-first. Uses SubPals CSS variables from style.css.
   ================================================================ */

/* --- Modal Overlay --- */
.sp-checkout-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sp-checkout-overlay.sp-checkout--visible {
    opacity: 1;
}

/* --- Modal Card --- */
.sp-checkout-modal {
    position: relative;
    width: 100%;
    max-width: 580px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    padding: 28px 28px 24px;
    transform: translateY(20px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sp-checkout-overlay.sp-checkout--visible .sp-checkout-modal {
    transform: translateY(0);
}

.sp-checkout-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #fff;
    border: 1px solid var(--border-color);
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 150ms cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1;
}

.sp-checkout-close:hover {
    color: var(--text-color);
    background: var(--light-color);
    border-color: var(--text-muted);
    transform: scale(1.05);
}

/* --- Progress Indicator --- */
.sp-checkout-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 24px;
    padding: 0 8px;
}

.sp-checkout-progress-step {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sp-checkout-progress-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--border-color);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.sp-checkout-progress-step--active .sp-checkout-progress-dot {
    background: var(--primary-color);
    color: #fff;
}

.sp-checkout-progress-step--current .sp-checkout-progress-dot {
    box-shadow: 0 0 0 3px rgba(114, 76, 249, 0.2);
}

.sp-checkout-progress-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.sp-checkout-progress-step--active .sp-checkout-progress-label {
    color: var(--text-color);
    font-weight: 600;
}

.sp-checkout-progress-bar {
    width: 36px;
    height: 2px;
    background: var(--border-color);
    margin: 0 8px;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.sp-checkout-progress-bar--filled {
    background: var(--primary-color);
}

/* --- Step Container (slide animation) --- */
.sp-checkout-step {
    display: none;
    opacity: 0;
    transform: translateX(0);
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sp-checkout-step--active {
    display: block;
}

.sp-checkout-step--visible {
    opacity: 1;
    transform: translateX(0);
}

.sp-checkout-step--slide-right {
    transform: translateX(30px);
}

.sp-checkout-step--slide-left {
    transform: translateX(-30px);
}

@media (prefers-reduced-motion: reduce) {
    .sp-checkout-step {
        transition: opacity 0.15s ease;
        transform: none !important;
    }
    .sp-checkout-step--slide-right,
    .sp-checkout-step--slide-left {
        transform: none !important;
    }
}

/* --- Step Titles --- */
.sp-checkout-step-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 6px;
    line-height: 1.3;
    padding-right: 32px;
}

.sp-checkout-step-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 20px 0;
}

/* --- Section Labels --- */
.sp-checkout-section-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-color);
    display: block;
    margin-bottom: 8px;
}

/* ================================================================
   STEP 1: How It Works
   ================================================================ */

.sp-checkout-how-it-works {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.sp-checkout-how-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.sp-checkout-how-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f8f7ff;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.sp-checkout-how-text {
    flex: 1;
    min-width: 0;
}

.sp-checkout-how-text strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 2px;
}

.sp-checkout-how-text p {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

/* --- Example Shoutout --- */
.sp-checkout-example-single {
    margin-bottom: 16px;
    padding: 12px 14px;
    background: var(--light-color);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.sp-checkout-example-single-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    font-weight: 600;
}

.sp-checkout-example-single-label i {
    color: var(--primary-color);
    margin-right: 4px;
}

.sp-checkout-example-single-content {
    margin-top: 6px;
}

.sp-checkout-example-single-meta {
    font-size: 0.8125rem;
    margin-bottom: 4px;
}

.sp-checkout-example-single-meta strong {
    color: var(--text-color);
}

.sp-checkout-example-single-meta span {
    color: var(--text-muted);
    margin-left: 4px;
}

.sp-checkout-example-single-quote {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
    font-style: italic;
    margin: 0;
}

.sp-checkout-example-single-quote strong {
    color: var(--primary-color);
    font-style: normal;
}

/* --- Trust Block --- */
.sp-checkout-trust-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.sp-checkout-trust-stat {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.sp-checkout-trust-stat i {
    color: var(--success-color, #10b981);
    font-size: 0.875rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.sp-checkout-trust-stat strong {
    color: var(--text-color);
}

/* --- CTA Button (Step 1 + Step 2) --- */
.sp-checkout-cta {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--primary-color);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 150ms cubic-bezier(0.22, 1, 0.36, 1);
}

.sp-checkout-cta:hover {
    background: #5e38e0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(114, 76, 249, 0.3);
}

.sp-checkout-cta:active {
    transform: translateY(0);
}

/* ================================================================
   STEP 2: Build Campaign
   ================================================================ */

/* --- Budget + Frequency --- */
.sp-checkout-budget {
    margin-bottom: 16px;
}

.sp-checkout-budget-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.sp-checkout-budget-label-row .sp-checkout-section-label {
    margin-bottom: 0;
}

.sp-checkout-freq-toggle {
    display: flex;
    background: var(--light-color);
    border-radius: 20px;
    padding: 2px;
    border: 1px solid var(--border-color);
}

.sp-checkout-freq-btn {
    padding: 4px 12px;
    border: none;
    border-radius: 18px;
    background: transparent;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    font-family: inherit;
    transition: all 150ms cubic-bezier(0.22, 1, 0.36, 1);
    white-space: nowrap;
}

.sp-checkout-freq-btn--active {
    background: #fff;
    color: var(--text-color);
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.sp-checkout-freq-bonus {
    color: var(--primary-color);
    font-weight: 600;
}

.sp-checkout-budget-pills {
    display: flex;
    gap: 8px;
}

.sp-checkout-budget-pill {
    flex: 1;
    position: relative;
    padding: 12px 6px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-color);
    cursor: pointer;
    transition: all 150ms cubic-bezier(0.22, 1, 0.36, 1);
    text-align: center;
    font-family: inherit;
}

.sp-checkout-budget-pill:hover {
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.sp-checkout-budget-pill--active {
    border-color: var(--primary-color);
    background: #f8f7ff;
    color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color);
}

.sp-checkout-budget-pill--popular {
    position: relative;
}

.sp-checkout-budget-popular {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    background: var(--primary-color);
    padding: 2px 10px;
    border-radius: 10px;
    white-space: nowrap;
    line-height: 1.3;
}

/* --- Currency Note --- */
.sp-checkout-currency-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
    padding: 0 2px;
}

.sp-checkout-currency-note strong {
    color: var(--text-color);
}

.sp-checkout-currency-switch {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    padding: 2px 0;
    font-family: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sp-checkout-currency-switch:hover {
    color: #5e38e0;
}

/* --- Monthly Value Banner --- */
.sp-checkout-monthly-value {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}

.sp-checkout-monthly-value > i {
    color: #16a34a;
    font-size: 0.875rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.sp-checkout-monthly-value-text {
    font-size: 0.8125rem;
    line-height: 1.4;
}

.sp-checkout-monthly-value-text strong {
    display: block;
    color: #15803d;
    font-size: 0.8125rem;
    margin-bottom: 1px;
}

.sp-checkout-monthly-value-text span {
    color: #166534;
    font-size: 0.75rem;
}

/* --- Estimate Frequency Label --- */
.sp-checkout-estimate-freq {
    font-size: 0.625rem;
    font-weight: 600;
    color: #16a34a;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: none;
}

.sp-checkout-estimate-freq--visible {
    display: block;
}

/* --- Submit Currency Code --- */
.sp-checkout-submit-currency {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.8;
}

/* --- Creator Tier Cards --- */
.sp-checkout-tiers {
    margin-bottom: 16px;
}

.sp-checkout-tier-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.sp-checkout-tier {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 150ms cubic-bezier(0.22, 1, 0.36, 1);
    background: #fff;
}

.sp-checkout-tier:hover {
    border-color: var(--primary-color);
}

.sp-checkout-tier--selected {
    border-color: var(--primary-color);
    background: #f8f7ff;
}

.sp-checkout-tier--locked {
    cursor: default;
    opacity: 0.85;
}

.sp-checkout-tier-check {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    color: transparent;
    flex-shrink: 0;
    margin-top: 1px;
    transition: all 150ms cubic-bezier(0.22, 1, 0.36, 1);
}

.sp-checkout-tier--selected .sp-checkout-tier-check {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.sp-checkout-tier--locked .sp-checkout-tier-check {
    background: var(--text-muted);
    border-color: var(--text-muted);
    color: #fff;
}

.sp-checkout-tier-body {
    flex: 1;
    min-width: 0;
}

.sp-checkout-tier-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-color);
    display: block;
    line-height: 1.3;
}

.sp-checkout-tier-range {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    line-height: 1.3;
}

.sp-checkout-tier-cost {
    font-size: 0.75rem;
    color: var(--primary-color);
    display: block;
    margin-top: 2px;
    font-weight: 500;
}

/* --- Live Estimate Bar --- */
.sp-checkout-estimate {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: #f8f7ff;
    border: 1px solid rgba(114, 76, 249, 0.15);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.sp-checkout-estimate-number {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    line-height: 1;
}

.sp-checkout-estimate-approx {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.sp-checkout-estimate-count {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
}

.sp-checkout-estimate-suffix {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.sp-checkout-estimate-detail {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.sp-checkout-estimate-detail span {
    display: block;
}

.sp-checkout-estimate-types {
    font-size: 0.75rem;
    margin-top: 2px;
}

.sp-checkout-estimate-monthly i {
    color: var(--success-color, #10b981);
}

/* --- Step Navigation Row --- */
.sp-checkout-step-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sp-checkout-step-nav .sp-checkout-cta {
    flex: 1;
}

/* --- Back Button --- */
.sp-checkout-back {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 4px;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 150ms ease;
    flex-shrink: 0;
}

.sp-checkout-back:hover {
    color: var(--text-color);
}

.sp-checkout-back--step3 {
    margin-top: 8px;
}

/* ================================================================
   STEP 3: Secure Checkout
   ================================================================ */

.sp-checkout-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sp-checkout-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sp-checkout-field label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-color);
}

.sp-checkout-field-hint {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 4px;
}

.sp-checkout-field input,
.sp-checkout-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--text-color);
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sp-checkout-field input:focus,
.sp-checkout-field select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(114, 76, 249, 0.1);
}

.sp-checkout-field input:focus-visible,
.sp-checkout-field select:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 1px;
}

.sp-checkout-field input.sp-checkout-field--error,
.sp-checkout-field select.sp-checkout-field--error {
    border-color: var(--danger-color);
}

.sp-checkout-field-error {
    font-size: 0.8125rem;
    color: var(--danger-color);
    min-height: 0;
}

/* --- Footer --- */
.sp-checkout-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.sp-checkout-disclosure {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
    text-align: center;
    margin: 0;
}

.sp-checkout-disclosure a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* --- Submit Button --- */
.sp-checkout-submit {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--primary-color);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 150ms cubic-bezier(0.22, 1, 0.36, 1);
}

.sp-checkout-submit:hover {
    background: #5e38e0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(114, 76, 249, 0.3);
}

.sp-checkout-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.sp-checkout-submit-price {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.9375rem;
}

/* --- Trust Row --- */
.sp-checkout-trust-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    padding-top: 2px;
}

.sp-checkout-trust-row i {
    margin-right: 4px;
    color: var(--success-color, #10b981);
}

/* --- Payment Icons --- */
.sp-checkout-payment-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-top: 4px;
    opacity: 0.5;
    font-size: 1.5rem;
    color: var(--text-muted);
}

.sp-checkout-payment-upi {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: var(--text-muted);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1.3;
}

/* --- Embedded Stripe Checkout --- */
.sp-checkout-overlay:has(.sp-checkout-modal--stripe) {
    align-items: flex-start;
    padding-top: 24px;
    padding-bottom: 24px;
}

.sp-checkout-modal--stripe {
    max-height: calc(100vh - 48px);
    overflow-y: auto;
}

.sp-checkout-stripe {
    min-height: 300px;
    margin-bottom: 8px;
}

.sp-checkout-stripe-back {
    margin-bottom: 8px;
}

.sp-checkout-stripe-back button {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 0;
    font-family: inherit;
}

.sp-checkout-stripe-back button:hover {
    text-decoration: underline;
}

/* ================================================================
   Quickbuy Strip (homepage, below hero)
   ================================================================ */
.sp-quickbuy-strip {
    padding: 40px 0;
    background: var(--light-color);
}

.sp-quickbuy-strip .section-header {
    text-align: center;
    margin-bottom: 24px;
}

.sp-quickbuy-strip .section-header h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.sp-quickbuy-strip .section-header p {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.sp-quickbuy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 960px;
    margin: 0 auto;
}

.sp-quickbuy-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    text-align: center;
    transition: all 150ms cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}

.sp-quickbuy-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.sp-quickbuy-card--popular {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color), var(--shadow-md);
}

.sp-quickbuy-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 14px;
    border-radius: 12px;
    white-space: nowrap;
}

.sp-quickbuy-card h3 {
    font-size: 1.125rem;
    margin-bottom: 4px;
}

.sp-quickbuy-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.sp-quickbuy-tagline {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.sp-quickbuy-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
}

.sp-quickbuy-card .btn {
    width: 100%;
}

.sp-quickbuy-honesty {
    text-align: center;
    max-width: 700px;
    margin: 24px auto 0;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ================================================================
   Result Pages (success + cancel) — Redesigned 2026-04-13
   ================================================================ */
.checkout-result-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
    background:
        radial-gradient(120% 80% at 50% -10%, rgba(114, 76, 249, 0.10) 0%, rgba(114, 76, 249, 0.03) 45%, transparent 75%),
        var(--light-color);
}

.checkout-result-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px -20px rgba(30, 41, 59, 0.18), 0 4px 12px rgba(30, 41, 59, 0.06);
    padding: 48px 44px 36px;
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: checkoutResultCardIn 500ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.checkout-result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

/* Hero icon: gradient ring + check mark */
.checkout-result-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    position: relative;
    animation: checkoutResultIconIn 600ms cubic-bezier(0.16, 1, 0.3, 1) 80ms both;
}

.checkout-result-icon::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(34, 197, 94, 0.18), transparent 70%);
    z-index: 0;
}

.checkout-result-icon i {
    position: relative;
    z-index: 1;
}

.checkout-result-icon--success {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #15803d;
    box-shadow: 0 8px 20px -8px rgba(34, 197, 94, 0.35);
}

.checkout-result-icon--cancel {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: var(--text-muted);
}

.checkout-result-card h1 {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin: 0 0 10px;
    color: var(--text-color);
    animation: checkoutResultFadeUp 500ms cubic-bezier(0.16, 1, 0.3, 1) 140ms both;
}

.checkout-result-subtitle {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.55;
    max-width: 440px;
    margin: 0 auto 28px;
    animation: checkoutResultFadeUp 500ms cubic-bezier(0.16, 1, 0.3, 1) 180ms both;
}

/* Hero receipt block — amount paid gets disproportionate visual weight */
.checkout-result-summary {
    background: linear-gradient(180deg, #faf8ff 0%, #ffffff 100%);
    border: 1px solid rgba(114, 76, 249, 0.14);
    border-radius: 14px;
    padding: 24px 24px 20px;
    margin-bottom: 32px;
    text-align: center;
    animation: checkoutResultFadeUp 500ms cubic-bezier(0.16, 1, 0.3, 1) 220ms both;
}

.checkout-result-summary__label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.checkout-result-summary__amount {
    display: block;
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    color: var(--primary-color);
    margin-bottom: 14px;
}

.checkout-result-summary__email {
    font-size: 0.8125rem;
    color: var(--text-muted);
    border-top: 1px dashed rgba(114, 76, 249, 0.18);
    padding-top: 12px;
    margin: 0;
    word-break: break-word;
}

.checkout-result-summary__email strong {
    color: var(--text-color);
    font-weight: 600;
}

/* Next steps: numbered timeline, not a boring ordered list */
.checkout-result-next-steps {
    text-align: left;
    margin-bottom: 28px;
    animation: checkoutResultFadeUp 500ms cubic-bezier(0.16, 1, 0.3, 1) 260ms both;
}

.checkout-result-next-steps h2 {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
    margin: 0 0 18px;
}

.checkout-result-next-steps ol {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step-counter;
    position: relative;
}

.checkout-result-next-steps ol::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 14px;
    bottom: 14px;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-color) 0%, rgba(114, 76, 249, 0.15) 100%);
    border-radius: 2px;
}

.checkout-result-next-steps li {
    counter-increment: step-counter;
    position: relative;
    padding: 4px 0 18px 48px;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.checkout-result-next-steps li:last-child {
    padding-bottom: 0;
}

.checkout-result-next-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: 0 0 0 4px #fff;
    z-index: 1;
}

.checkout-result-next-steps li strong {
    color: var(--text-color);
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

/* Delivery timeline note — sets realistic expectations up front */
.checkout-result-timeline-note {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fffbf0;
    border: 1px solid #fde8b4;
    border-radius: 12px;
    padding: 16px 18px;
    margin: 0 0 24px;
    text-align: left;
    animation: checkoutResultFadeUp 500ms cubic-bezier(0.16, 1, 0.3, 1) 280ms both;
}

.checkout-result-timeline-note__icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fef3c7;
    color: #b45309;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9375rem;
}

.checkout-result-timeline-note__body {
    flex: 1 1 auto;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #78450f;
}

.checkout-result-timeline-note__body strong {
    display: block;
    color: #713f12;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 2px;
}

/* Honesty disclaimer: visually subordinate footnote */
.checkout-result-honesty {
    background: transparent;
    border: none;
    border-top: 1px solid var(--border-color);
    border-radius: 0;
    padding: 18px 0 0;
    margin: 0 0 24px;
    text-align: center;
    animation: checkoutResultFadeUp 500ms cubic-bezier(0.16, 1, 0.3, 1) 300ms both;
}

.checkout-result-honesty p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 460px;
    margin: 0 auto;
}

.checkout-result-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 0 18px;
    animation: checkoutResultFadeUp 500ms cubic-bezier(0.16, 1, 0.3, 1) 340ms both;
}

.checkout-result-actions .btn,
.checkout-result-actions .checkout-result-dashboard-btn,
.checkout-result-actions .checkout-result-back-btn {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    border-radius: var(--radius-md);
    text-decoration: none;
    padding: 14px 18px;
    font-size: 0.9375rem;
    transition: transform 150ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 150ms cubic-bezier(0.22, 1, 0.36, 1), background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.checkout-result-dashboard-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #5e3ce0 100%);
    color: #fff;
    border: 1px solid transparent;
    box-shadow: 0 6px 16px -6px rgba(114, 76, 249, 0.55);
}

.checkout-result-dashboard-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -8px rgba(114, 76, 249, 0.60);
    color: #fff;
}

.checkout-result-back-btn {
    background: #fff;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.checkout-result-back-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(114, 76, 249, 0.35);
    color: var(--text-color);
    background: var(--light-color);
}

.checkout-result-skeleton {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--light-color);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 0.875rem;
    min-height: 48px;
    box-sizing: border-box;
}

.checkout-result-skeleton__spinner i {
    color: var(--primary-color);
    font-size: 1rem;
}

.checkout-result-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    background: #faf8ff;
    border: 1px solid rgba(114, 76, 249, 0.20);
    border-radius: var(--radius-md);
    color: var(--primary-color);
    font-size: 0.875rem;
    line-height: 1.4;
    text-align: center;
    word-break: break-word;
    min-height: 48px;
    box-sizing: border-box;
}

.checkout-result-fallback i {
    opacity: 0.8;
}

.checkout-result-support {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0;
    animation: checkoutResultFadeUp 500ms cubic-bezier(0.16, 1, 0.3, 1) 380ms both;
}

.checkout-result-support a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(114, 76, 249, 0.3);
    transition: border-color 150ms ease;
}

.checkout-result-support a:hover {
    border-bottom-color: var(--primary-color);
}

/* Side-by-side buttons on larger viewports */
@media (min-width: 600px) {
    .checkout-result-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .checkout-result-actions .checkout-result-dashboard-btn,
    .checkout-result-actions .checkout-result-skeleton,
    .checkout-result-actions .checkout-result-fallback {
        flex: 1 1 100%;
    }
    .checkout-result-actions .checkout-result-back-btn {
        flex: 1 1 100%;
    }
}

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

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

@keyframes checkoutResultIconIn {
    from { opacity: 0; transform: scale(0.72); }
    to   { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .checkout-result-card,
    .checkout-result-icon,
    .checkout-result-card h1,
    .checkout-result-subtitle,
    .checkout-result-summary,
    .checkout-result-next-steps,
    .checkout-result-honesty,
    .checkout-result-actions,
    .checkout-result-support {
        animation: none;
    }
    .checkout-result-dashboard-btn:hover,
    .checkout-result-back-btn:hover {
        transform: none;
    }
}

/* ================================================================
   Mobile Responsive (375px target)
   ================================================================ */
@media (max-width: 767px) {
    .sp-checkout-overlay {
        padding: 12px 10px;
        /* `safe center` centers when content fits the viewport, and
           falls back to top-anchoring when the modal is taller than
           the overlay (prevents the flex-centering cutoff bug). */
        align-items: safe center;
    }

    .sp-checkout-modal {
        padding: 20px 16px 16px;
        border-radius: var(--radius-md);
    }

    /* Progress: hide labels on small screens, dots only */
    .sp-checkout-progress-label {
        display: none;
    }

    .sp-checkout-progress-bar {
        width: 28px;
    }

    /* Step titles */
    .sp-checkout-step-title {
        font-size: 1.125rem;
    }

    .sp-checkout-step-subtitle {
        font-size: 0.8125rem;
        margin-bottom: 16px;
    }

    /* How it works */
    .sp-checkout-how-icon {
        width: 32px;
        height: 32px;
    }

    .sp-checkout-how-text strong {
        font-size: 0.8125rem;
    }

    .sp-checkout-how-text p {
        font-size: 0.75rem;
    }

    /* Example */
    .sp-checkout-example-single {
        padding: 10px 12px;
        margin-bottom: 12px;
    }

    .sp-checkout-example-single-quote {
        font-size: 0.8125rem;
    }

    /* Budget pills: 2x2 grid on narrow screens */
    .sp-checkout-budget-pills {
        flex-wrap: wrap;
    }

    .sp-checkout-budget-pill {
        flex: 0 0 calc(50% - 4px);
        padding: 10px 4px;
        font-size: 0.875rem;
    }

    /* Tiers already 2-col, just tighten */
    .sp-checkout-tier {
        padding: 8px 8px;
        gap: 6px;
    }

    .sp-checkout-tier-name {
        font-size: 0.75rem;
    }

    /* Estimate */
    .sp-checkout-estimate {
        padding: 10px 12px;
        gap: 10px;
        margin-bottom: 16px;
    }

    .sp-checkout-estimate-count {
        font-size: 1.5rem;
    }

    .sp-checkout-estimate-detail {
        font-size: 0.75rem;
    }

    /* Form */
    .sp-checkout-form {
        gap: 10px;
    }

    .sp-checkout-field input,
    .sp-checkout-field select {
        padding: 9px 10px;
        font-size: 0.875rem;
    }

    .sp-checkout-submit {
        padding: 12px 20px;
        font-size: 0.9375rem;
    }

    /* Trust row */
    .sp-checkout-trust-row {
        font-size: 0.75rem;
        gap: 12px;
    }

    /* Payment icons */
    .sp-checkout-payment-icons img {
        height: 18px;
    }

    /* CTA */
    .sp-checkout-cta {
        padding: 12px 20px;
        font-size: 0.9375rem;
    }

    /* Quickbuy strip */
    .sp-quickbuy-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 8px;
    }

    .sp-quickbuy-card {
        padding: 20px 16px;
    }

    .sp-quickbuy-price {
        font-size: 1.5rem;
    }

    /* Result pages */
    .checkout-result-page {
        padding: 24px 12px;
        align-items: flex-start;
    }

    .checkout-result-card {
        padding: 36px 22px 28px;
        border-radius: 14px;
    }

    .checkout-result-icon {
        width: 72px;
        height: 72px;
        font-size: 32px;
        margin-bottom: 20px;
    }

    .checkout-result-card h1 {
        font-size: 1.375rem;
        letter-spacing: -0.3px;
    }

    .checkout-result-subtitle {
        font-size: 0.875rem;
        margin-bottom: 24px;
    }

    .checkout-result-summary {
        padding: 20px 18px 16px;
        margin-bottom: 24px;
    }

    .checkout-result-summary__amount {
        font-size: 2.25rem;
        letter-spacing: -1px;
    }

    .checkout-result-next-steps li {
        padding-left: 44px;
        font-size: 0.875rem;
    }

    .checkout-result-next-steps li::before {
        width: 28px;
        height: 28px;
        font-size: 0.8125rem;
    }

    .checkout-result-next-steps ol::before {
        left: 13px;
    }

    .checkout-result-timeline-note {
        padding: 14px 14px;
        gap: 12px;
    }

    .checkout-result-timeline-note__icon {
        width: 30px;
        height: 30px;
        font-size: 0.8125rem;
    }

    .checkout-result-actions {
        flex-direction: column;
    }

    .checkout-result-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* ================================================================
   STEP 1 — Redesigned Hero / Process / Testimonial
   Adds new classes alongside legacy how-it-works classes (kept).
   ================================================================ */

.sp-checkout-hero {
    margin: 0 -28px 20px;
    padding: 22px 28px 22px;
    background:
        radial-gradient(110% 100% at 50% 0%, rgba(114, 76, 249, 0.12) 0%, rgba(114, 76, 249, 0.04) 50%, transparent 85%),
        linear-gradient(180deg, #faf8ff 0%, #ffffff 100%);
    border-top: 1px solid rgba(114, 76, 249, 0.10);
    border-bottom: 1px solid rgba(114, 76, 249, 0.10);
    text-align: center;
    position: relative;
}

.sp-checkout-hero::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -1px;
    width: 56px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
    transform: translateX(-50%);
    opacity: 0.85;
}

.sp-checkout-hero-stat {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.sp-checkout-hero-number {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1.6px;
    color: var(--primary-color);
}

.sp-checkout-hero-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-weight: 600;
    color: var(--text-muted);
}

#spStep1 .sp-checkout-step-title {
    text-align: center;
    font-size: 1.5rem;
    line-height: 1.25;
    letter-spacing: -0.4px;
    padding-right: 0;
    margin-bottom: 8px;
    font-weight: 700;
}

.sp-checkout-title-accent {
    color: var(--primary-color);
    white-space: nowrap;
}

#spStep1 .sp-checkout-step-subtitle {
    text-align: center;
    margin: 0 auto 22px;
    max-width: 460px;
}

.sp-checkout-process {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    border-top: 1px solid var(--border-color);
}

.sp-checkout-process-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 4px;
    border-bottom: 1px solid var(--border-color);
    opacity: 0;
    animation: spFadeSlideIn 420ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.sp-checkout-process-step:nth-child(1) { animation-delay: 60ms; }
.sp-checkout-process-step:nth-child(2) { animation-delay: 130ms; }
.sp-checkout-process-step:nth-child(3) { animation-delay: 200ms; }

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

.sp-checkout-process-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f3efff;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(114, 76, 249, 0.20);
    margin-top: 1px;
}

.sp-checkout-process-text {
    flex: 1;
    min-width: 0;
}

.sp-checkout-process-text strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 3px;
    line-height: 1.35;
}

.sp-checkout-process-text p {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 0;
}

/* Example shoutout — styled as a YouTube-comment preview, not a testimonial */
.sp-checkout-example {
    margin: 0 0 20px;
    padding: 0;
}

.sp-checkout-example-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--primary-color);
    background: #f3efff;
    border: 1px solid rgba(114, 76, 249, 0.20);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.sp-checkout-example-tag i {
    font-size: 0.75rem;
}

.sp-checkout-example-card {
    display: flex;
    gap: 12px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--primary-color);
    border-radius: var(--radius-md);
    box-shadow: 0 1px 3px rgba(15, 15, 40, 0.05);
    position: relative;
}

.sp-checkout-example-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

.sp-checkout-example-body {
    flex: 1;
    min-width: 0;
}

.sp-checkout-example-author {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
}

.sp-checkout-example-author strong {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-color);
}

.sp-checkout-example-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.sp-checkout-example-quote {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-color);
    margin: 0 0 8px;
}

.sp-checkout-example-quote strong {
    color: var(--primary-color);
    font-weight: 600;
}

.sp-checkout-example-actions {
    display: flex;
    gap: 14px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.sp-checkout-example-actions span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.sp-checkout-example-actions i {
    font-size: 0.8125rem;
}

.sp-checkout-cta--hero {
    padding: 16px 24px;
    font-size: 1.0625rem;
    box-shadow: 0 8px 22px rgba(114, 76, 249, 0.30);
    margin-bottom: 14px;
    letter-spacing: -0.1px;
}

.sp-checkout-cta--hero:hover {
    box-shadow: 0 14px 30px rgba(114, 76, 249, 0.38);
    transform: translateY(-2px);
}

.sp-checkout-cta--hero i {
    transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.sp-checkout-cta--hero:hover i {
    transform: translateX(3px);
}

.sp-checkout-microtrust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.sp-checkout-microtrust span {
    display: inline-flex;
    align-items: center;
}

.sp-checkout-microtrust i {
    color: var(--success-color, #10b981);
    margin-right: 5px;
    font-size: 0.8125rem;
}

.sp-checkout-microtrust-divider {
    width: 1px;
    height: 12px;
    background: var(--border-color);
}

@media (prefers-reduced-motion: reduce) {
    .sp-checkout-process-step {
        opacity: 1;
        animation: none;
    }
    .sp-checkout-cta--hero:hover i {
        transform: none;
    }
}

@media (max-width: 767px) {
    .sp-checkout-hero {
        margin: 0 -16px 16px;
        padding: 18px 16px 18px;
    }
    .sp-checkout-hero-number {
        font-size: 2.25rem;
        letter-spacing: -1.2px;
    }
    #spStep1 .sp-checkout-step-title {
        font-size: 1.25rem;
    }
    #spStep1 .sp-checkout-step-subtitle {
        font-size: 0.8125rem;
        margin-bottom: 18px;
    }
    .sp-checkout-process-step {
        padding: 12px 2px;
        gap: 12px;
    }
    .sp-checkout-process-num {
        width: 26px;
        height: 26px;
        font-size: 0.8125rem;
    }
    .sp-checkout-process-text strong {
        font-size: 0.875rem;
    }
    .sp-checkout-process-text p {
        font-size: 0.75rem;
    }
    .sp-checkout-example-card {
        padding: 12px;
        gap: 10px;
    }
    .sp-checkout-example-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }
    .sp-checkout-example-quote {
        font-size: 0.8125rem;
    }
    .sp-checkout-example-tag {
        font-size: 0.75rem;
    }
    .sp-checkout-cta--hero {
        padding: 14px 20px;
        font-size: 1rem;
    }
}

/* ================================================================
   STEP 2 — Redesigned Build Campaign
   ================================================================ */

/* --- Section labels: uppercase tracked --- */
#spStep2 .sp-checkout-section-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 10px;
}

#spStep2 .sp-checkout-step-title {
    font-size: 1.375rem;
    letter-spacing: -0.3px;
    font-weight: 700;
    margin-bottom: 18px;
}

/* --- Frequency toggle: neutral gray segmented control --- */
.sp-checkout-freq-toggle {
    border-radius: 999px;
    padding: 3px;
    background: #f1f2f6;
    border: 1px solid #e4e6ef;
}

.sp-checkout-freq-btn {
    padding: 5px 14px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.sp-checkout-freq-btn--active {
    background: #fff;
    color: var(--primary-color);
    box-shadow: 0 1px 3px rgba(114, 76, 249, 0.15);
}

.sp-checkout-freq-bonus {
    color: #16a34a;
    font-weight: 700;
    background: #dcfce7;
    padding: 1px 6px;
    border-radius: 8px;
    font-size: 0.625rem;
    margin-left: 4px;
    vertical-align: 1px;
}

/* --- Budget pills: refined --- */
.sp-checkout-budget-pills {
    gap: 10px;
}

.sp-checkout-budget-pill {
    padding: 14px 6px;
    font-size: 1rem;
    border-width: 1.5px;
    border-color: var(--border-color);
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 15, 40, 0.04);
}

.sp-checkout-budget-pill:hover {
    border-color: rgba(114, 76, 249, 0.45);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(114, 76, 249, 0.10);
}

.sp-checkout-budget-pill--active {
    border-color: var(--primary-color);
    background: linear-gradient(180deg, #f5f1ff 0%, #faf8ff 100%);
    color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(114, 76, 249, 0.18), 0 4px 12px rgba(114, 76, 249, 0.18);
}

.sp-checkout-budget-popular {
    top: -9px;
    background: var(--primary-color);
    box-shadow: 0 3px 8px rgba(114, 76, 249, 0.32);
    padding: 3px 10px;
    font-size: 0.625rem;
}

/* --- Tier cards: WHITE bg to reduce purple sea, indigo accents only --- */
.sp-checkout-tier {
    padding: 12px 12px;
    border-width: 1.5px;
    border-color: #e4e6ef;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 15, 40, 0.03);
    transition: all 180ms cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}

.sp-checkout-tier:hover {
    border-color: rgba(114, 76, 249, 0.45);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(114, 76, 249, 0.10);
}

/* Selected = white bg + indigo border + checkmark (NO tint fill) */
.sp-checkout-tier--selected {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 1px var(--primary-color), 0 2px 6px rgba(114, 76, 249, 0.08);
}

.sp-checkout-tier--locked {
    cursor: default;
    opacity: 1;
}

.sp-checkout-tier--locked:hover {
    transform: none;
    box-shadow: 0 0 0 1px var(--primary-color), 0 2px 6px rgba(114, 76, 249, 0.08);
}

.sp-checkout-tier--locked .sp-checkout-tier-check {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* "Always included" badge: absolute, floats above top edge (like Popular) */
/* Add space for the floating badge above row 1 without breaking row alignment */
#spStep2 .sp-checkout-tier-cards {
    padding-top: 10px;
}

.sp-checkout-tier-always-badge {
    position: absolute;
    top: -9px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    background: var(--primary-color);
    border: none;
    padding: 3px 8px;
    border-radius: 999px;
    line-height: 1.3;
    white-space: nowrap;
    box-shadow: 0 3px 8px rgba(114, 76, 249, 0.32);
}

.sp-checkout-tier-always-badge i {
    font-size: 0.5625rem;
    transform: rotate(-30deg);
}

/* --- Estimate bar: HERO it --- */
.sp-checkout-estimate {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 18px 18px;
    background: linear-gradient(180deg, #faf8ff 0%, #f3efff 100%);
    border: 1px solid rgba(114, 76, 249, 0.20);
    box-shadow: 0 6px 18px rgba(114, 76, 249, 0.08), inset 0 1px 0 rgba(255,255,255,0.6);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sp-checkout-estimate::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    opacity: 0.85;
}

.sp-checkout-estimate-number {
    flex-direction: row;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sp-checkout-estimate-approx {
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    order: 1;
    width: 100%;
    margin-bottom: -2px;
}

.sp-checkout-estimate-count {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1.6px;
    color: var(--primary-color);
    order: 2;
}

.sp-checkout-estimate-suffix {
    font-size: 1rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: -0.2px;
    color: var(--text-color);
    order: 3;
    text-transform: none;
}

.sp-checkout-estimate-freq {
    order: 4;
    font-size: 0.6875rem;
    color: #16a34a;
    font-weight: 700;
    background: #dcfce7;
    padding: 2px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sp-checkout-estimate-freq--visible {
    display: inline-flex;
    align-items: center;
}

.sp-checkout-estimate-detail {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--text-muted);
    text-align: center;
}

.sp-checkout-estimate-types {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 6px;
}

/* --- Monthly value banner: neutral gray, not more purple --- */
.sp-checkout-monthly-value {
    background: #f8f9fc;
    border: 1px solid #e4e6ef;
    border-left: 3px solid var(--primary-color);
    padding: 10px 14px;
    box-shadow: none;
}

.sp-checkout-monthly-value > i {
    color: var(--primary-color);
    font-size: 0.9375rem;
    margin-top: 2px;
}

.sp-checkout-monthly-value-text strong {
    color: var(--text-color);
    font-size: 0.8125rem;
}

.sp-checkout-monthly-value-text span {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* --- Step nav CTA: hero variant on Step 2 too --- */
#spStep2 .sp-checkout-step-nav .sp-checkout-cta {
    padding: 16px 24px;
    font-size: 1.0625rem;
    box-shadow: 0 8px 22px rgba(114, 76, 249, 0.30);
    letter-spacing: -0.1px;
}

#spStep2 .sp-checkout-step-nav .sp-checkout-cta:hover {
    box-shadow: 0 14px 30px rgba(114, 76, 249, 0.38);
    transform: translateY(-2px);
}

#spStep2 .sp-checkout-step-nav .sp-checkout-cta i {
    transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

#spStep2 .sp-checkout-step-nav .sp-checkout-cta:hover i {
    transform: translateX(3px);
}

/* --- Mobile (≤767px) Step 2 --- */
@media (max-width: 767px) {
    #spStep2 .sp-checkout-step-title {
        font-size: 1.1875rem;
        margin-bottom: 14px;
    }
    #spStep2 .sp-checkout-section-label {
        font-size: 0.6875rem;
        margin-bottom: 8px;
    }
    .sp-checkout-budget {
        margin-bottom: 14px;
    }
    .sp-checkout-budget-label-row {
        margin-bottom: 10px;
    }
    .sp-checkout-budget-pills {
        gap: 8px;
    }
    .sp-checkout-budget-pill {
        padding: 12px 4px;
        font-size: 0.9375rem;
    }
    .sp-checkout-tiers {
        margin-bottom: 14px;
    }
    #spStep2 .sp-checkout-tier-cards {
        gap: 8px;
        padding-top: 10px;
    }
    .sp-checkout-tier {
        padding: 10px 10px;
    }
    .sp-checkout-tier-always-badge {
        font-size: 0.5625rem;
        padding: 2px 7px;
        top: -8px;
        left: 8px;
    }
    .sp-checkout-monthly-value {
        padding: 10px 12px;
    }
    .sp-checkout-estimate {
        padding: 14px 14px;
        margin-bottom: 16px;
    }
    .sp-checkout-estimate-count {
        font-size: 2rem;
        letter-spacing: -1px;
    }
    .sp-checkout-estimate-suffix {
        font-size: 0.9375rem;
    }
    .sp-checkout-estimate-detail {
        font-size: 0.75rem;
    }
    #spStep2 .sp-checkout-step-nav {
        gap: 8px;
    }
    #spStep2 .sp-checkout-step-nav .sp-checkout-cta {
        padding: 14px 18px;
        font-size: 0.9375rem;
    }
}
