/* ==========================================================================
   SCALE AUTH — Login / Register / Pricing / Forgot / Contact Sales
   Identity-locked to the marketing home page:
     • same color tokens (--sa-pink, --sa-navy, --sa-cream, --sa-steel, --sa-plum)
     • same Inter Tight italic display family + uppercase title treatment
     • same radial-gradient + noise + animated-curve background
     • same glassmorphic pill header
     • same rounded card aesthetic with backdrop-blur
   Scoped to .sa-* so theme styles can't leak in.
   ========================================================================== */

:root {
    --sa-navy:   #131f2f;
    --sa-navy-2: #0e1825;
    --sa-navy-3: #0a1320;
    --sa-pink:   #ff5b8d;
    --sa-plum:   #732553;
    --sa-steel:  #85a2b3;
    --sa-cream:  #ead6c6;
}

/* ---- Reset (scoped) ----------------------------------------------------- */

.sa-shell, .sa-shell *, .sa-shell *::before, .sa-shell *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ---- Shell (full-page background — same recipe as the home hero) ------- */

.sa-shell {
    font-family: 'Inter Tight', system-ui, -apple-system, Segoe UI, sans-serif;
    color: var(--sa-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    /* IMPORTANT: do NOT use min-height: 100vh here. The shell wraps the page
       content but is itself wrapped by the WordPress theme — forcing 100vh
       causes a "double scroll" feeling because the page already takes up the
       viewport via the theme. We just give it a comfortable minimum so short
       forms aren't squashed against the header on tall screens. */
    min-height: 600px;

    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;

    background:
        radial-gradient(ellipse 70% 55% at 50% 30%, rgba(255, 91, 141, 0.18), transparent 65%),
        radial-gradient(ellipse 45% 35% at 15% 20%, rgba(115, 37, 83, 0.35), transparent 70%),
        radial-gradient(ellipse 50% 40% at 90% 85%, rgba(115, 37, 83, 0.25), transparent 70%),
        var(--sa-navy);
}

/* On the dedicated full-page templates (where the shell IS the page),
   we DO want the shell to fill the viewport. Theme authors can opt in
   by adding the `sa-shell--fullpage` class. */
.sa-shell--fullpage {
    min-height: 100vh;
    min-height: 100svh;
}

/* Decorative curved lines, identical SVG path family used on home hero. */
.sa-shell__lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.22;
}
.sa-shell__lines svg { width: 100%; height: 100%; }
.sa-shell__lines path {
    fill: none;
    stroke: var(--sa-pink);
    stroke-width: 1;
}

/* Film-grain noise overlay (same as home — embedded as data URI). */
.sa-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.06 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
    opacity: 0.5;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 1;
}

/* ---- Header (matches home — glassmorphic pill at the top) -------------- */

.sa-header {
    position: relative;
    z-index: 5;
    width: calc(100% - 32px);
    max-width: 1280px;
    height: 68px;
    margin: 16px auto 0;
    padding: 0 12px 0 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 100px;

    background: rgba(19, 31, 47, 0.45);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(234, 214, 198, 0.1);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(234, 214, 198, 0.08);
}

.sa-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 100%;
    text-decoration: none;
    color: var(--sa-cream);
    flex-shrink: 0;
    transition: opacity 0.3s ease;
}
.sa-logo:hover { opacity: 0.85; }

.sa-logo__mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--sa-pink), var(--sa-plum));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 17px;
    font-style: italic;
    box-shadow: 0 4px 12px rgba(255, 91, 141, 0.3);
}

.sa-logo__text {
    font-size: 18px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sa-header__nav {
    display: flex;
    gap: 4px;
    align-items: center;
}

.sa-nav-link {
    color: var(--sa-cream);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 100px;
    transition: background 0.3s ease;
}
.sa-nav-link:hover { background: rgba(234, 214, 198, 0.08); }

.sa-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    background: var(--sa-pink);
    color: var(--sa-navy);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 100px;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    flex-shrink: 0;
}
.sa-nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(255, 91, 141, 0.4);
}

/* ---- Main / Card -------------------------------------------------------- */

.sa-main {
    position: relative;
    z-index: 2;
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px 64px;
}

.sa-main--wide {
    align-items: stretch;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 56px;
}

.sa-card {
    width: 100%;
    max-width: 460px;
    padding: 44px 40px;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(234, 214, 198, 0.05), rgba(234, 214, 198, 0.01)),
        var(--sa-navy-2);
    border: 1px solid rgba(234, 214, 198, 0.1);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(255, 91, 141, 0.06),
        inset 0 1px 0 rgba(234, 214, 198, 0.08);
}

.sa-card--wide { max-width: 660px; }

.sa-card__head {
    text-align: center;
    margin-bottom: 32px;
}

/* ---- Eyebrow chip + title (italic uppercase — same recipe as home) ----- */

.sa-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sa-pink);
    padding: 7px 14px;
    border: 1px solid rgba(255, 91, 141, 0.25);
    border-radius: 999px;
    background: rgba(255, 91, 141, 0.06);
    margin-bottom: 18px;
}

.sa-eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sa-pink);
    box-shadow: 0 0 10px var(--sa-pink);
}

.sa-title {
    font-family: 'Inter Tight', sans-serif;
    font-size: clamp(28px, 4.5vw, 44px);
    line-height: 1.0;
    letter-spacing: -0.025em;
    font-weight: 800;
    font-style: italic;
    color: var(--sa-cream);
    text-transform: uppercase;
    margin-bottom: 14px;
}

.sa-accent { color: var(--sa-pink); }

.sa-sub {
    color: var(--sa-steel);
    font-size: 15px;
    line-height: 1.55;
    max-width: 46ch;
    margin: 0 auto;
}

/* ---- Form --------------------------------------------------------------- */

.sa-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

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

.sa-field--full { grid-column: 1 / -1; }

.sa-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.sa-field label {
    color: var(--sa-cream);
    font-size: 13px;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.sa-optional {
    color: var(--sa-steel);
    font-weight: 400;
    font-size: 12px;
}

.sa-field input[type="text"],
.sa-field input[type="email"],
.sa-field input[type="tel"],
.sa-field input[type="password"],
.sa-field textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-family: inherit;
    color: var(--sa-cream);
    background: rgba(10, 19, 32, 0.6);
    border: 1px solid rgba(234, 214, 198, 0.12);
    border-radius: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.sa-field input:focus,
.sa-field textarea:focus {
    border-color: var(--sa-pink);
    box-shadow: 0 0 0 3px rgba(255, 91, 141, 0.18);
    background: rgba(10, 19, 32, 0.85);
}

.sa-field input::placeholder,
.sa-field textarea::placeholder {
    color: rgba(133, 162, 179, 0.55);
}

.sa-field textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.5;
}

.sa-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--sa-cream);
    font-size: 14px;
    cursor: pointer;
    user-select: none;
    line-height: 1.4;
}

.sa-check input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid rgba(234, 214, 198, 0.25);
    background: rgba(10, 19, 32, 0.6);
    border-radius: 5px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 1px;
    position: relative;
    transition: all 0.2s ease;
}

.sa-check input[type="checkbox"]:checked {
    background: var(--sa-pink);
    border-color: var(--sa-pink);
}

.sa-check input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    inset: 2px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23131f2f' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.sa-check a { color: var(--sa-pink); }

/* ---- Buttons ------------------------------------------------------------ */

.sa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    line-height: 1.2;
}

.sa-btn--full { width: 100%; }

.sa-btn--primary {
    background: var(--sa-pink);
    color: var(--sa-navy);
}
.sa-btn--primary:hover:not(.sa-btn--disabled):not(.is-loading) {
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(255, 91, 141, 0.4);
}

.sa-btn--ghost {
    background: transparent;
    color: var(--sa-cream);
    border-color: rgba(234, 214, 198, 0.2);
}
.sa-btn--ghost:hover:not(.sa-btn--disabled):not(.is-loading) {
    background: rgba(234, 214, 198, 0.06);
    border-color: rgba(234, 214, 198, 0.4);
}

.sa-btn--disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.sa-btn__spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: sa-spin 0.7s linear infinite;
}

.sa-btn.is-loading {
    pointer-events: none;
    opacity: 0.85;
}

.sa-btn.is-loading .sa-btn__label  { opacity: 0.6; }
.sa-btn.is-loading .sa-btn__spinner { display: inline-block; }

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

/* ---- Messages (success/error) ------------------------------------------ */

.sa-msg {
    padding: 0 4px;
    font-size: 13px;
    line-height: 1.5;
    min-height: 18px;
    transition: color 0.2s ease;
    margin-top: 6px;
}

.sa-msg--center { text-align: center; }
.sa-msg.is-error   { color: #ff8b8b; }
.sa-msg.is-success { color: #6ee7b7; }

/* ---- Foot links -------------------------------------------------------- */

.sa-foot {
    text-align: center;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(234, 214, 198, 0.06);
    color: var(--sa-steel);
    font-size: 14px;
}

.sa-link {
    color: var(--sa-pink);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}
.sa-link:hover { opacity: 0.8; text-decoration: underline; }
.sa-link--small { font-size: 12px; font-weight: 500; }

/* ---- Plan pill (selected plan indicator on register page) -------------- */

.sa-plan-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 91, 141, 0.08);
    border: 1px solid rgba(255, 91, 141, 0.2);
    border-radius: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    font-size: 13px;
}

.sa-plan-pill__label { color: var(--sa-steel); }
.sa-plan-pill strong { color: var(--sa-cream); font-weight: 600; }
.sa-plan-pill__price {
    color: var(--sa-pink);
    font-weight: 600;
    margin-left: auto;
}

/* ==========================================================================
   PRICING PAGE
   ========================================================================== */

.sa-pricing-head {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
    padding: 0 16px;
}

.sa-pricing-head .sa-title {
    font-size: clamp(36px, 6vw, 64px);
}

.sa-pricing-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1180px;
    margin: 0 auto;
    align-items: stretch;
    padding: 0 16px;
}

.sa-price-card {
    position: relative;
    padding: 40px 32px;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(234, 214, 198, 0.04), rgba(234, 214, 198, 0.01)),
        var(--sa-navy-2);
    border: 1px solid rgba(234, 214, 198, 0.08);
    display: flex;
    flex-direction: column;
    transition:
        transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
        border-color 0.3s ease,
        box-shadow 0.4s ease;
}

.sa-price-card:hover {
    transform: translateY(-6px);
    border-color: rgba(234, 214, 198, 0.18);
}

.sa-price-card--featured {
    background:
        linear-gradient(180deg, rgba(255, 91, 141, 0.08), rgba(115, 37, 83, 0.05)),
        var(--sa-navy-2);
    border-color: rgba(255, 91, 141, 0.4);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(255, 91, 141, 0.15);
    transform: scale(1.02);
}

.sa-price-card--featured:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(255, 91, 141, 0.6);
}

.sa-price-card__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    background: var(--sa-pink);
    color: var(--sa-navy);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 999px;
    white-space: nowrap;
}

.sa-price-card__name {
    font-family: 'Inter Tight', sans-serif;
    font-weight: 700;
    font-style: italic;
    font-size: 22px;
    text-transform: uppercase;
    color: var(--sa-cream);
    margin-bottom: 8px;
    line-height: 1.1;
}

.sa-price-card__tagline {
    color: var(--sa-steel);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 28px;
}

.sa-price-card__price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.sa-price-card__currency {
    font-size: 22px;
    font-weight: 600;
    color: var(--sa-steel);
}

.sa-price-card__amount {
    font-family: 'Inter Tight', sans-serif;
    font-size: 56px;
    font-weight: 800;
    font-style: italic;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--sa-cream);
}

.sa-price-card__amount--custom {
    font-size: 40px;
}

.sa-price-card__period {
    font-size: 15px;
    color: var(--sa-steel);
}

.sa-price-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    flex: 1;
}

.sa-price-card__features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    color: var(--sa-cream);
    font-size: 14px;
    line-height: 1.5;
    border-bottom: 1px solid rgba(234, 214, 198, 0.06);
}

.sa-price-card__features li:last-child { border-bottom: none; }

.sa-price-card__features svg {
    width: 16px;
    height: 16px;
    color: var(--sa-pink);
    margin-top: 4px;
    flex-shrink: 0;
}

.sa-pricing-foot {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--sa-steel);
    font-size: 14px;
    margin: 64px auto 0;
    max-width: 540px;
    padding: 0 16px;
}

/* ==========================================================================
   RESPONSIVE
   Breakpoints chosen to match the home page's layout at the same widths.
   ========================================================================== */

/* Tablet (≤1023px) — collapse 3-col pricing to single column, adjust header */
@media (max-width: 1023px) {
    .sa-pricing-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        max-width: 520px;
    }

    .sa-price-card,
    .sa-price-card--featured {
        transform: none;
    }
    .sa-price-card:hover,
    .sa-price-card--featured:hover {
        transform: translateY(-4px);
    }

    .sa-header {
        padding: 0 8px 0 20px;
        height: 62px;
    }
    .sa-logo__text { font-size: 16px; }
    .sa-logo__mark { width: 30px; height: 30px; font-size: 16px; }
}

/* Phone (≤768px) — single column for pricing, tighter spacing */
@media (max-width: 768px) {
    .sa-shell { overflow-x: hidden; }

    .sa-header {
        top: 12px;
        width: calc(100% - 24px);
        height: 58px;
        padding: 0 6px 0 16px;
        margin-top: 12px;
    }

    .sa-logo__text { font-size: 15px; letter-spacing: 0.05em; }
    .sa-logo__mark { width: 28px; height: 28px; font-size: 14px; border-radius: 8px; }

    .sa-nav-link {
        font-size: 13px;
        padding: 8px 12px;
    }
    .sa-nav-cta {
        padding: 9px 16px;
        font-size: 13px;
        gap: 6px;
    }

    /* On tiny screens hide the "Pricing" nav link and only show login + CTA */
    .sa-nav-link--hideable {
        display: none;
    }

    .sa-main {
        padding: 32px 16px 56px;
    }
    .sa-main--wide {
        padding-top: 36px;
    }

    .sa-card {
        padding: 32px 24px;
        border-radius: 22px;
    }
    .sa-card--wide {
        max-width: 100%;
    }

    .sa-title {
        font-size: clamp(26px, 8vw, 36px);
    }
    .sa-pricing-head .sa-title {
        font-size: clamp(32px, 9vw, 44px);
    }

    .sa-form--grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    /* Pricing — single column, full-width cards. Featured card no longer
       scaled up so cards line up flush. */
    .sa-pricing-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        max-width: 100%;
        padding: 0 4px;
    }

    .sa-price-card {
        padding: 32px 24px;
        border-radius: 22px;
    }

    .sa-price-card--featured {
        transform: none;
        box-shadow:
            0 20px 50px rgba(0, 0, 0, 0.4),
            0 0 40px rgba(255, 91, 141, 0.12);
    }
    .sa-price-card--featured:hover {
        transform: translateY(-4px);
    }

    .sa-price-card__amount { font-size: 48px; }
    .sa-price-card__amount--custom { font-size: 34px; }
    .sa-price-card__currency { font-size: 20px; }

    .sa-price-card__features li { font-size: 13.5px; }

    .sa-pricing-foot { margin-top: 48px; }

    .sa-plan-pill {
        font-size: 12px;
        padding: 10px 14px;
        gap: 8px;
    }
    .sa-plan-pill__price {
        margin-left: 0;
        flex-basis: 100%;
        margin-top: 4px;
    }
}

/* Very narrow phones */
@media (max-width: 380px) {
    .sa-card { padding: 26px 18px; }
    .sa-price-card { padding: 26px 20px; }
    .sa-title { font-size: 24px; }
    .sa-price-card__amount { font-size: 42px; }
    .sa-nav-link {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    .sa-btn, .sa-price-card { transition: none; }
    .sa-btn__spinner { animation: none; }
}

/* ==========================================================================
   NOTICES (info / warn / error banners — used on checkout + account)
   ========================================================================== */

.sa-notice {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 18px;
    border-radius: 14px;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.55;
    border: 1px solid;
}

.sa-notice strong { display: block; color: var(--sa-cream); margin-bottom: 2px; }
.sa-notice span   { color: var(--sa-steel); }

.sa-notice .sa-btn {
    margin-top: 10px;
    align-self: flex-start;
}

.sa-notice--info {
    background: rgba(255, 91, 141, 0.06);
    border-color: rgba(255, 91, 141, 0.25);
}

.sa-notice--warn {
    background: rgba(255, 167, 38, 0.08);
    border-color: rgba(255, 167, 38, 0.3);
}
.sa-notice--warn strong { color: #ffc266; }

.sa-notice--error {
    background: rgba(255, 91, 91, 0.08);
    border-color: rgba(255, 91, 91, 0.3);
}
.sa-notice--error strong { color: #ff8b8b; }

/* ==========================================================================
   CHECKOUT  ([scale_checkout])
   ========================================================================== */

.sa-order {
    background: rgba(10, 19, 32, 0.4);
    border: 1px solid rgba(234, 214, 198, 0.08);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.sa-order__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(234, 214, 198, 0.08);
    margin-bottom: 16px;
}

.sa-order__label {
    font-weight: 600;
    color: var(--sa-cream);
    font-size: 17px;
}

.sa-order__value {
    color: var(--sa-cream);
    font-size: 17px;
    font-weight: 600;
    text-align: right;
}

.sa-order__period {
    color: var(--sa-steel);
    font-weight: 400;
    font-size: 13px;
}

.sa-order__features {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.sa-order__features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 0;
    color: var(--sa-cream);
    font-size: 13.5px;
    line-height: 1.5;
}

.sa-order__features svg {
    width: 14px;
    height: 14px;
    color: var(--sa-pink);
    margin-top: 4px;
    flex-shrink: 0;
}

.sa-order__total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: 16px;
    border-top: 1px dashed rgba(234, 214, 198, 0.12);
    color: var(--sa-cream);
    font-size: 16px;
    font-weight: 500;
}

.sa-order__total strong {
    font-family: 'Inter Tight', sans-serif;
    font-weight: 800;
    font-style: italic;
    font-size: 24px;
    color: var(--sa-pink);
    letter-spacing: -0.01em;
}

.sa-order__note {
    color: var(--sa-steel);
    font-size: 12px;
    text-align: center;
    margin-top: 10px;
}

.sa-checkout-disclaimer {
    color: var(--sa-steel);
    font-size: 12px;
    text-align: center;
    margin-top: 12px;
    line-height: 1.5;
}

.sa-form-note {
    color: var(--sa-steel);
    font-size: 12px;
    text-align: center;
    margin-top: 10px;
    line-height: 1.5;
}

/* ==========================================================================
   ACCOUNT  ([scale_account])
   ========================================================================== */

.sa-account {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 32px 24px;
    color: var(--sa-cream);
}

.sa-account__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.sa-eyebrow--inline {
    margin-bottom: 10px;
}

.sa-account__hello {
    font-family: 'Inter Tight', sans-serif;
    font-weight: 800;
    font-style: italic;
    font-size: clamp(28px, 4vw, 38px);
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: -0.025em;
    margin: 0;
}

.sa-account__org {
    color: var(--sa-steel);
    font-size: 14px;
    margin-top: 6px;
}

.sa-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid;
}
.sa-status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.sa-status--active   { color: #6ee7b7; border-color: rgba(110, 231, 183, 0.3); background: rgba(110, 231, 183, 0.06); }
.sa-status--trialing { color: var(--sa-pink); border-color: rgba(255, 91, 141, 0.3); background: rgba(255, 91, 141, 0.06); }
.sa-status--pending_payment { color: #ffc266; border-color: rgba(255, 194, 102, 0.3); background: rgba(255, 194, 102, 0.06); }
.sa-status--suspended { color: #ff8b8b; border-color: rgba(255, 139, 139, 0.3); background: rgba(255, 139, 139, 0.06); }
.sa-status--cancelled { color: var(--sa-steel); border-color: rgba(133, 162, 179, 0.3); background: rgba(133, 162, 179, 0.06); }

.sa-account__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 28px;
}

.sa-account__card {
    padding: 28px 24px;
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(234, 214, 198, 0.04), rgba(234, 214, 198, 0.01)),
        var(--sa-navy-2);
    border: 1px solid rgba(234, 214, 198, 0.08);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.sa-account__card-label {
    color: var(--sa-steel);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.sa-account__plan-name {
    font-family: 'Inter Tight', sans-serif;
    font-weight: 700;
    font-style: italic;
    font-size: 26px;
    text-transform: uppercase;
    color: var(--sa-cream);
    margin: 0 0 6px;
    line-height: 1;
}

.sa-account__plan-price {
    color: var(--sa-pink);
    font-weight: 600;
    font-size: 16px;
    margin: 0 0 12px;
}
.sa-account__plan-price span {
    color: var(--sa-steel);
    font-size: 13px;
    font-weight: 400;
}

.sa-account__expiry {
    color: var(--sa-steel);
    font-size: 13px;
    margin: 0 0 16px;
}
.sa-account__expiry strong { color: var(--sa-cream); }

.sa-account__plan-cta { margin-top: auto; }

.sa-account__usage {
    font-family: 'Inter Tight', sans-serif;
    margin: 0 0 14px;
    color: var(--sa-cream);
    line-height: 1;
}
.sa-account__usage strong {
    font-size: 38px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: -0.02em;
}
.sa-account__usage span {
    color: var(--sa-steel);
    font-size: 16px;
    font-weight: 400;
    margin-left: 4px;
}

.sa-progress {
    width: 100%;
    height: 6px;
    background: rgba(234, 214, 198, 0.08);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 10px;
}

.sa-progress__bar {
    height: 100%;
    background: linear-gradient(90deg, var(--sa-pink), var(--sa-plum));
    border-radius: 999px;
    transition: width 0.5s ease;
}

.sa-progress__bar--warn {
    background: linear-gradient(90deg, #ffc266, #ff8b8b);
}

.sa-account__usage-note {
    color: var(--sa-steel);
    font-size: 12.5px;
    margin: 0;
}

.sa-btn--small {
    padding: 9px 18px;
    font-size: 13px;
}

.sa-account__danger {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(234, 214, 198, 0.06);
}

.sa-link--danger {
    color: #ff8b8b;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}
.sa-link--danger:hover { text-decoration: underline; }

.sa-account__danger-note {
    display: block;
    color: var(--sa-steel);
    font-size: 12px;
    margin-top: 6px;
}

/* Pricing card swap note */
.sa-price-card__swap-note {
    background: rgba(255, 167, 38, 0.06);
    border: 1px solid rgba(255, 167, 38, 0.18);
    border-radius: 10px;
    padding: 10px 12px;
    color: var(--sa-cream);
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 14px;
}
.sa-price-card__swap-note strong { color: #ffc266; }

.sa-price-card--current {
    border-color: rgba(110, 231, 183, 0.4);
}
.sa-price-card__badge--current {
    background: #6ee7b7;
    color: var(--sa-navy);
}

/* ==========================================================================
   CONFIRMATION MODAL  (used by JS confirmAction helper)
   ========================================================================== */

.sa-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.sa-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.sa-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 19, 32, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
}

.sa-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    padding: 32px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(234, 214, 198, 0.05), rgba(234, 214, 198, 0.01)),
        var(--sa-navy-2);
    border: 1px solid rgba(234, 214, 198, 0.12);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(255, 91, 141, 0.08);
    transform: translateY(12px) scale(0.98);
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sa-modal.is-open .sa-modal__dialog {
    transform: none;
}

.sa-modal__title {
    font-family: 'Inter Tight', sans-serif;
    font-weight: 700;
    font-style: italic;
    font-size: 22px;
    text-transform: uppercase;
    color: var(--sa-cream);
    margin: 0 0 12px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.sa-modal__body {
    color: var(--sa-steel);
    font-size: 14.5px;
    line-height: 1.6;
    margin: 0 0 24px;
}
.sa-modal__body strong { color: var(--sa-cream); font-weight: 600; }

.sa-modal__actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.sa-modal__actions .sa-btn {
    padding: 11px 20px;
    font-size: 14px;
}

@media (max-width: 480px) {
    .sa-modal__dialog { padding: 24px 20px; }
    .sa-modal__actions { flex-direction: column-reverse; }
    .sa-modal__actions .sa-btn { width: 100%; }
}

/* Mobile responsive overrides for new components */
@media (max-width: 768px) {
    .sa-account { padding: 20px 16px; }
    .sa-account__grid { grid-template-columns: 1fr; gap: 14px; }
    .sa-account__header { flex-direction: column; align-items: flex-start; }
    .sa-account__usage strong { font-size: 32px; }
    .sa-order { padding: 18px; }
    .sa-order__total strong { font-size: 20px; }
}

/* ==========================================================================
   WOOCOMMERCE CHECKOUT STYLES (Scale Design)
   ========================================================================== */

.scale-wc-checkout-wrapper {
    width: 100%;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(234, 214, 198, 0.1);
}

.scale-wc-checkout-wrapper .woocommerce {
    color: var(--sa-cream);
}

.scale-wc-checkout-wrapper form.checkout {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.scale-wc-checkout-wrapper h3 {
    font-family: 'Inter Tight', sans-serif;
    font-weight: 700;
    font-style: italic;
    font-size: 20px;
    text-transform: uppercase;
    color: var(--sa-cream);
    margin-bottom: 16px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.scale-wc-checkout-wrapper .form-row {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.scale-wc-checkout-wrapper .form-row label {
    color: var(--sa-cream);
    font-size: 13px;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.scale-wc-checkout-wrapper input[type="text"],
.scale-wc-checkout-wrapper input[type="email"],
.scale-wc-checkout-wrapper input[type="tel"],
.scale-wc-checkout-wrapper input[type="password"],
.scale-wc-checkout-wrapper select,
.scale-wc-checkout-wrapper textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-family: inherit;
    color: var(--sa-cream);
    background: rgba(10, 19, 32, 0.6);
    border: 1px solid rgba(234, 214, 198, 0.12);
    border-radius: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.scale-wc-checkout-wrapper select option {
    background: var(--sa-navy-2);
    color: var(--sa-cream);
}

.scale-wc-checkout-wrapper input:focus,
.scale-wc-checkout-wrapper select:focus,
.scale-wc-checkout-wrapper textarea:focus {
    border-color: var(--sa-pink);
    box-shadow: 0 0 0 3px rgba(255, 91, 141, 0.18);
    background: rgba(10, 19, 32, 0.85);
}

.scale-wc-checkout-wrapper .select2-container--default .select2-selection--single {
    background-color: rgba(10, 19, 32, 0.6);
    border: 1px solid rgba(234, 214, 198, 0.12);
    border-radius: 12px;
    height: 50px;
    color: var(--sa-cream);
}
.scale-wc-checkout-wrapper .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--sa-cream);
    line-height: 50px;
    padding-left: 16px;
}
.scale-wc-checkout-wrapper .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 48px;
}

.scale-wc-checkout-wrapper .woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    background: rgba(10, 19, 32, 0.3);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(234, 214, 198, 0.1);
}

.scale-wc-checkout-wrapper .woocommerce-checkout-review-order-table th,
.scale-wc-checkout-wrapper .woocommerce-checkout-review-order-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid rgba(234, 214, 198, 0.05);
    color: var(--sa-cream);
}

.scale-wc-checkout-wrapper .woocommerce-checkout-review-order-table th {
    font-weight: 600;
    color: var(--sa-steel);
    font-size: 14px;
}

.scale-wc-checkout-wrapper #payment {
    background: rgba(10, 19, 32, 0.3);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(234, 214, 198, 0.1);
}

.scale-wc-checkout-wrapper #payment ul.payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    border-bottom: 1px solid rgba(234, 214, 198, 0.1);
}

.scale-wc-checkout-wrapper #payment ul.payment_methods li {
    padding: 16px 0;
    border-top: 1px solid rgba(234, 214, 198, 0.05);
}

.scale-wc-checkout-wrapper #payment ul.payment_methods li:first-child {
    border-top: none;
}

.scale-wc-checkout-wrapper #payment div.payment_box {
    background: rgba(10, 19, 32, 0.6);
    padding: 16px;
    border-radius: 8px;
    margin-top: 12px;
    font-size: 13.5px;
    color: var(--sa-steel);
    border: 1px solid rgba(234, 214, 198, 0.05);
}

.scale-wc-checkout-wrapper .button.alt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    background: var(--sa-pink);
    color: var(--sa-navy);
    width: 100%;
}

.scale-wc-checkout-wrapper .button.alt:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(255, 91, 141, 0.4);
}

.scale-wc-checkout-wrapper .woocommerce-NoticeGroup {
    margin-bottom: 24px;
}
.scale-wc-checkout-wrapper .woocommerce-error {
    background: rgba(255, 91, 141, 0.1);
    border: 1px solid rgba(255, 91, 141, 0.3);
    color: #ff8b8b;
    padding: 16px;
    border-radius: 12px;
    list-style: none;
    margin: 0;
}

/* Billing Toggle Switcher */
.sa-billing-toggle {
    display: inline-flex;
    background: var(--sa-navy-2);
    border: 1px solid rgba(234, 214, 198, 0.1);
    padding: 4px;
    border-radius: 999px;
    margin: 0 auto 40px;
    position: relative;
    z-index: 2;
    gap: 4px;
}
.sa-toggle-btn {
    background: transparent;
    border: none;
    color: var(--sa-steel);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.sa-toggle-btn.active {
    background: var(--sa-pink);
    color: var(--sa-navy);
}
.sa-toggle-discount {
    font-size: 11px;
    padding: 2px 8px;
    background: rgba(255, 91, 141, 0.15);
    color: var(--sa-pink);
    border-radius: 100px;
    font-weight: 700;
}
.sa-toggle-btn.active .sa-toggle-discount {
    background: var(--sa-navy);
    color: var(--sa-pink);
}
.sa-price-card__save-badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(110, 231, 183, 0.1);
    color: #6ee7b7;
    border: 1px solid rgba(110, 231, 183, 0.2);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 24px;
    text-align: center;
    align-self: flex-start;
}

/* Loyalty Reward Box */
.sa-account__bonus-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 13.5px;
    line-height: 1.45;
    border: 1px solid rgba(255, 91, 141, 0.2) !important;
    background: var(--sa-navy, #131f2f) !important;
    color: #ffffff !important;
    margin-top: 12px;
}
.sa-account__bonus-box.claimed {
    border-color: rgba(110, 231, 183, 0.4) !important;
}
.sa-account__bonus-box.claimed .bonus-icon {
    filter: drop-shadow(0 0 4px #6ee7b7);
}
.sa-account__bonus-box .bonus-icon {
    font-size: 22px;
    flex-shrink: 0;
}
.sa-account__bonus-box .bonus-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sa-account__bonus-box .bonus-text strong {
    color: #ffffff !important;
    font-weight: 600;
}
.sa-account__bonus-box .bonus-text span {
    color: #ffffff !important;
}
