    /* ══════════════════════════════════════════
       BRAND THEME — Buy Page
       ══════════════════════════════════════════ */

    /* ── Brand Variables (migrated from blueprint blue) ── */
    :root {
        --bp-dark: #0a0a0a;
        --bp-medium: #1a1a1a;
        --bp-label: #777777;
        --bp-light: #f5f5f5;
        --bp-border: rgba(0,0,0,0.08);
        --bp-heading: #111111;
        --bp-hover: #aaaaaa;
        --bp-grid: rgba(0,0,0,0.03);
        --bp-corner: rgba(0,0,0,0.06);
        --bp-mono: 'Satoshi', -apple-system, sans-serif;
    }

    /* ── Monospace labels inside buy page ── */
    #buyAppContainer .font-mono,
    #main-content > section .font-mono {
        font-family: var(--bp-mono) !important;
        color: var(--bp-label);
    }

    /* ── Buy Page Specific Styles ── */
    .buy-step-btn {
        flex: 1;
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 12px;
        border-radius: 8px;
        border: 1.5px solid var(--bp-border);
        background: var(--bp-light);
        cursor: pointer;
        font-family: inherit;
        transition: all 0.2s;
    }
    .buy-step-btn:hover { border-color: var(--bp-hover); background: #ececec; }
    .buy-step-btn.active {
        border-color: var(--bp-dark);
        background: var(--bp-dark);
        color: white;
    }
    .buy-step-btn.done {
        border-color: #22c55e;
        background: #f0fdf4;
    }
    .buy-step-btn.done .buy-step-num {
        background: #22c55e;
        color: white;
    }
    .buy-step-num {
        width: 26px;
        height: 26px;
        border-radius: 50%;
        background: rgba(184,212,240,0.3);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: 700;
        flex-shrink: 0;
        color: var(--bp-dark);
    }
    .buy-step-btn.active .buy-step-num {
        background: rgba(184,212,240,0.2);
        color: white;
    }
    .buy-step-label {
        font-size: 11px;
        font-weight: 600;
        font-family: var(--bp-mono);
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

    /* ── Blueprint Section Cards ── */
    #buyAppContainer .stat-card {
        border: 1.5px solid var(--bp-border) !important;
        background: var(--bp-light) !important;
        border-radius: 8px !important;
        position: relative;
        overflow: hidden;
    }
    #buyAppContainer .stat-card::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image:
            linear-gradient(var(--bp-grid) 1px, transparent 1px),
            linear-gradient(90deg, var(--bp-grid) 1px, transparent 1px);
        background-size: 24px 24px;
        pointer-events: none;
        z-index: 0;
    }
    #buyAppContainer .stat-card::after {
        content: '';
        position: absolute;
        top: 6px;
        left: 6px;
        width: 14px;
        height: 14px;
        border-top: 1.5px solid var(--bp-corner);
        border-left: 1.5px solid var(--bp-corner);
        pointer-events: none;
        z-index: 1;
    }
    #buyAppContainer .stat-card > *:not(.cursor-glow) {
        position: relative;
        z-index: 2;
    }

    /* ── Clean white cards: Tier, Add-ons, Boost, Checkout, FAQ ── */
    #step2 .stat-card,
    #step4 .stat-card,
    #step5 .buy-checkout-left .stat-card,
    #buyGlobalFooter .stat-card {
        background: #fff !important;
        border-color: rgba(0,0,0,0.06) !important;
    }
    #step2 .stat-card::before,
    #step2 .stat-card::after,
    #step4 .stat-card::before,
    #step4 .stat-card::after,
    #step5 .buy-checkout-left .stat-card::before,
    #step5 .buy-checkout-left .stat-card::after,
    #buyGlobalFooter .stat-card::before,
    #buyGlobalFooter .stat-card::after {
        display: none;
    }
    /* Add-on category cards (already white bg, neutralize blue borders) */
    #buyAppContainer .buy-addon-category {
        border-color: rgba(0,0,0,0.06) !important;
    }
    #buyAppContainer .addon-cat-header {
        border-bottom-color: #e5e7eb !important;
    }
    #buyAppContainer .addon-option {
        border-bottom-color: rgba(0,0,0,0.06) !important;
    }

    /* ── Step 0: Returning vs New client gate ── */
    .step0-container {
        max-width: 620px;
        margin: 0 auto;
        padding: 20px 0;
    }
    .buy-welcome-choice {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .buy-welcome-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
        padding: 28px 20px 24px;
        border-radius: 14px;
        border: 1.5px solid #dce3ea;
        background: #fff;
        cursor: pointer;
        transition: all 0.2s ease;
        font-family: inherit;
    }
    .buy-welcome-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    }
    .buy-welcome-card-icon {
        width: 52px;
        height: 52px;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 4px;
    }
    .buy-welcome-card.returning .buy-welcome-card-icon {
        background: #0a0a0a;
        color: #fff;
    }
    .buy-welcome-card.returning:hover {
        border-color: #0a0a0a;
    }
    .buy-welcome-card.new-client .buy-welcome-card-icon {
        background: #f3f4f6;
        color: #374151;
    }
    .buy-welcome-card.new-client:hover {
        border-color: #9ca3af;
    }
    .buy-welcome-card strong {
        font-size: 15px;
        font-weight: 700;
        color: #111;
    }
    .buy-welcome-card span {
        font-size: 12px;
        color: #6b7280;
        line-height: 1.4;
    }

    /* Step 0: Auth box */
    .step0-auth-box {
        max-width: 400px;
        margin: 0 auto;
    }
    .buy-otp-send-btn,
    .buy-otp-verify-btn {
        font-family: inherit;
        font-size: 14px;
        font-weight: 600;
        padding: 10px 24px;
        border-radius: 10px;
        border: none;
        background: #0a0a0a;
        color: #fff;
        cursor: pointer;
        transition: background 0.15s;
        white-space: nowrap;
    }
    .buy-otp-send-btn:hover,
    .buy-otp-verify-btn:hover {
        background: #163460;
    }
    .buy-otp-send-btn:disabled,
    .buy-otp-verify-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }
    .buy-otp-verify-btn {
        display: block;
        width: 100%;
        padding: 12px 24px;
        border-radius: 12px;
    }

    /* OTP digit inputs */
    .buy-otp-inputs {
        display: flex;
        gap: 8px;
        justify-content: center;
        margin-top: 12px;
    }
    .buy-otp-digit {
        width: 48px;
        height: 56px;
        text-align: center;
        font-size: 22px;
        font-weight: 700;
        font-family: var(--bp-mono, 'SF Mono', monospace);
        border: 1.5px solid #dce3ea;
        border-radius: 10px;
        background: #fff;
        color: #111;
        outline: none;
        transition: border-color 0.15s;
    }
    .buy-otp-digit:focus {
        border-color: #0a0a0a;
        box-shadow: 0 0 0 3px rgba(96,165,250,0.15);
    }

    /* Step 0: Welcome card */
    .step0-welcome-card {
        max-width: 440px;
        margin: 0 auto;
        padding: 32px 28px;
        border-radius: 16px;
        border: 1.5px solid #dce3ea;
        background: #fff;
    }
    .step0-welcome-badges {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    .step0-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 8px 16px;
        border-radius: 999px;
        font-size: 13px;
        font-weight: 600;
        background: #f3f4f6;
        color: #374151;
    }

    @media (max-width: 520px) {
        .buy-welcome-choice { grid-template-columns: 1fr; }
        .buy-otp-digit { width: 42px; height: 48px; font-size: 18px; }
    }

    /* Accounts toolbar (search + select all on one line) */
    .buy-accounts-toolbar {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 12px;
    }
    .buy-select-all-btn {
        font-family: inherit;
        font-size: 13px;
        font-weight: 600;
        padding: 7px 16px;
        border-radius: 999px;
        border: 1.5px solid var(--bp-border);
        background: #fff;
        color: var(--bp-heading);
        cursor: pointer;
        white-space: nowrap;
        transition: all 0.15s;
    }
    .buy-select-all-btn:hover {
        background: var(--bp-light);
        border-color: var(--bp-hover);
    }

    /* Account search bar */
    .account-search-wrap {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .account-search-input {
        flex: 1;
        max-width: 260px;
        font-family: inherit;
        font-size: 13px;
        font-weight: 500;
        padding: 7px 12px 7px 32px;
        border-radius: 999px;
        border: 1.5px solid var(--bp-border);
        background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234a7ba8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") 11px center no-repeat;
        color: var(--bp-heading);
        outline: none;
        transition: border-color 0.15s;
    }
    .account-search-input::placeholder {
        color: var(--bp-label);
        font-weight: 400;
    }
    .account-search-input:focus {
        border-color: var(--bp-dark);
    }

    /* Province filter pills */
    .province-filter-bar {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 8px;
    }
    .province-filter-pill {
        display: inline-flex;
        align-items: center;
        font-family: var(--bp-mono);
        font-size: 12px;
        font-weight: 700;
        padding: 7px 16px;
        border-radius: 999px;
        border: 1.5px solid var(--bp-border);
        background: white;
        color: var(--bp-label);
        cursor: pointer;
        transition: all 0.15s;
        white-space: nowrap;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    .province-filter-pill:hover {
        border-color: var(--bp-hover);
        color: var(--bp-medium);
        background: var(--bp-light);
    }
    .province-filter-pill.active {
        background: var(--bp-dark);
        border-color: var(--bp-dark);
        color: #ffffff;
    }

    /* City filter pills */
    .city-filter-bar {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 12px;
    }
    .city-filter-pill {
        display: inline-flex;
        align-items: center;
        font-family: var(--bp-mono);
        font-size: 11px;
        font-weight: 600;
        padding: 6px 14px;
        border-radius: 999px;
        border: 1.5px solid var(--bp-border);
        background: white;
        color: var(--bp-label);
        cursor: pointer;
        transition: all 0.15s;
        white-space: nowrap;
        letter-spacing: 0.3px;
    }
    .city-filter-pill:hover {
        border-color: var(--bp-hover);
        color: var(--bp-medium);
        background: var(--bp-light);
    }
    .city-filter-pill.active {
        background: var(--bp-dark);
        border-color: var(--bp-dark);
        color: #ffffff;
    }

    /* Account row list */
    .buy-account-list {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    /* Canada-Wide Campaign banner */
    .buy-collab-banner {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 18px;
        border-radius: 12px;
        background: linear-gradient(135deg, #eff6ff, #dbeafe);
        border: 2px solid #93c5fd;
        color: #1e40af;
    }
    .buy-collab-banner .collab-icon { font-size: 22px; flex-shrink: 0; }
    .buy-collab-banner .collab-text { display: flex; flex-direction: column; gap: 2px; }
    .buy-collab-banner .collab-text strong { font-size: 14px; font-weight: 700; }
    .buy-collab-banner .collab-text span { font-size: 12px; opacity: 0.85; }
    .buy-collab-hint {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 16px;
        border-radius: 10px;
        background: #fefce8;
        border: 1px solid #fde68a;
        font-size: 13px;
        font-weight: 500;
        color: #a16207;
    }
    .buy-collab-hint .collab-icon { font-size: 18px; }

    /* Account row — compact horizontal layout */
    .buy-account-row {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 12px 16px;
        border-radius: 8px;
        border: 1.5px solid var(--bp-border);
        background: white;
        cursor: pointer;
        transition: all 0.2s;
    }
    .buy-account-row:hover { border-color: var(--bp-hover); background: var(--bp-light); }
    .buy-account-row.selected {
        border-color: var(--bp-dark);
        background: var(--bp-light);
    }
    .buy-account-row .account-thumb {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background-size: cover;
        background-position: center;
        flex-shrink: 0;
    }
    .buy-account-row .account-info {
        flex: 1;
        min-width: 0;
    }
    .buy-account-row .account-info .account-name {
        font-size: 14px;
        font-weight: 600;
        color: var(--brand-black, #0a0a0a);
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .account-city-tag {
        display: inline-flex;
        align-items: center;
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 0.04em;
        padding: 2px 8px;
        border-radius: 999px;
        background: rgba(184,212,240,0.25);
        color: var(--bp-label);
        white-space: nowrap;
        text-transform: uppercase;
        font-family: var(--bp-mono);
    }
    .buy-account-row .account-info .account-meta {
        font-size: 11px;
        color: var(--brand-gray, #6b7280);
        display: flex;
        align-items: center;
        gap: 6px;
        margin-top: 2px;
    }
    .buy-account-row .account-followers {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 12px;
        color: var(--brand-gray, #6b7280);
        flex-shrink: 0;
    }
    .buy-account-row .account-followers .platform-count {
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }
    .buy-account-row .account-followers .platform-sep {
        width: 1px;
        height: 12px;
        background: rgba(0,0,0,0.15);
    }
    .buy-account-row .account-price {
        font-size: 13px;
        font-weight: 600;
        color: var(--brand-black, #0a0a0a);
        flex-shrink: 0;
        text-align: right;
        white-space: nowrap;
    }
    .buy-account-row .account-price .price-label {
        font-size: 10px;
        font-weight: 400;
        color: var(--brand-gray, #6b7280);
        text-transform: uppercase;
    }
    .buy-account-row .account-price-free {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 2px;
    }
    .price-free-badge {
        font-size: 12px;
        font-weight: 700;
        color: #059669;
        background: #ecfdf5;
        padding: 2px 8px;
        border-radius: 6px;
        letter-spacing: 0.03em;
    }
    .price-free-note {
        font-size: 10px;
        font-weight: 400;
        color: var(--brand-gray, #6b7280);
    }
    .buy-account-row .account-check {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        border: 2px solid var(--bp-border);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: 700;
        color: transparent;
        flex-shrink: 0;
        transition: all 0.2s;
    }
    .buy-account-row.selected .account-check {
        background: #22c55e;
        border-color: #22c55e;
        color: white;
    }
    .buy-account-row-skeleton {
        height: 56px;
        border-radius: 8px;
        background: linear-gradient(90deg, rgba(184,212,240,0.15) 25%, rgba(184,212,240,0.3) 50%, rgba(184,212,240,0.15) 75%);
        background-size: 200% 100%;
        animation: skeleton-pulse 1.5s ease-in-out infinite;
    }

    /* Sticky continue bar */
    .buy-sticky-bar {
        position: sticky;
        bottom: 0;
        z-index: 20;
        margin: 16px -24px -24px;
        padding: 20px 24px 24px;
        background: linear-gradient(to top, #fff 60%, rgba(255,255,255,0.95) 80%, transparent);
        pointer-events: none;
    }
    .buy-sticky-bar-inner {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 16px;
        pointer-events: auto;
    }

    /* Tier buttons — styled like city page campaign cards */
    .buy-tier-btn {
        flex: 1;
        padding: 24px 22px 20px;
        border-radius: 14px;
        border: 1px solid rgba(0,0,0,0.06);
        background: #fafafa;
        cursor: pointer;
        font-family: inherit;
        text-align: left;
        transition: all 0.25s ease;
        position: relative;
        overflow: hidden;
    }
    .buy-tier-btn:hover { transform: translateY(-2px); }

    /* Value tier — deep blue with light shimmer */
    .buy-tier-btn[data-tier="value"] {
        background: linear-gradient(145deg, #0a0a0a 0%, #141414 50%, #0a0a0a 100%);
        border-color: transparent;
        box-shadow: 0 2px 8px rgba(26,54,93,0.25), 0 8px 32px rgba(26,54,93,0.15), inset 0 1px 0 rgba(255,255,255,0.08);
    }
    .buy-tier-btn[data-tier="value"]::before {
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0;
        height: 3px;
        background: linear-gradient(90deg, #fbff94, #e0ff6b, #fbff94);
        background-size: 200% 100%;
        animation: stat-line-shimmer 3s linear infinite;
    }
    .buy-tier-btn[data-tier="value"]::after {
        content: '';
        position: absolute;
        top: -50%; right: -50%;
        width: 100%; height: 100%;
        background: radial-gradient(circle, rgba(96,165,250,0.06) 0%, transparent 70%);
        pointer-events: none;
    }
    .buy-tier-btn[data-tier="value"] strong { color: #fff; }
    .buy-tier-btn[data-tier="value"] > span { color: rgba(255,255,255,0.6); }
    .buy-tier-btn[data-tier="value"] .buy-tier-features li { color: rgba(255,255,255,0.75); }

    /* Pro tier — warm light with gold shimmer */
    .buy-tier-btn[data-tier="pro"] {
        background: linear-gradient(160deg, #fefefe 0%, #f6f5f0 100%);
        border: 1px solid rgba(0,0,0,0.08);
        box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.03), inset 0 1px 0 rgba(255,255,255,0.8);
    }
    .buy-tier-btn[data-tier="pro"]::before {
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0;
        height: 2px;
        background: linear-gradient(90deg, #c9a96e, #e2c992, #c9a96e);
        background-size: 200% 100%;
        animation: stat-line-shimmer 4s linear infinite;
    }
    .buy-tier-btn[data-tier="pro"] .buy-tier-features li { color: rgba(10,10,10,0.65); }

    /* Inactive state — subtle, not dimmed */
    .buy-tier-btn:not(.active) { opacity: 0.85; }
    .buy-tier-btn:not(.active):hover { opacity: 1; }

    /* Active state — ring + shadow */
    .buy-tier-btn.active { box-shadow: 0 4px 20px rgba(0,0,0,0.12); }
    .buy-tier-btn[data-tier="value"].active {
        box-shadow: 0 4px 20px rgba(26,54,93,0.3), 0 0 20px rgba(96,165,250,0.12);
        outline: 2px solid #0a0a0a;
        outline-offset: 2px;
    }
    .buy-tier-btn[data-tier="pro"].active {
        box-shadow: 0 4px 20px rgba(0,0,0,0.08), 0 0 16px rgba(201,169,110,0.1);
        outline: 2px solid #c9a96e;
        outline-offset: 2px;
    }
    .buy-tier-check {
        position: absolute;
        top: 14px; right: 14px;
        width: 26px; height: 26px;
        border-radius: 50%;
        display: grid !important;
        place-items: center;
        transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
        opacity: 0; transform: scale(0);
        z-index: 3;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }
    .buy-tier-check svg {
        width: 14px; height: 14px;
        stroke-width: 2.5;
        display: block;
    }
    .buy-tier-btn.active .buy-tier-check { opacity: 1; transform: scale(1); }
    .buy-tier-btn[data-tier="value"] .buy-tier-check { background: #0a0a0a; }
    .buy-tier-btn[data-tier="value"] .buy-tier-check svg { stroke: #fff; }
    .buy-tier-btn[data-tier="pro"] .buy-tier-check { background: #c9a96e; }
    .buy-tier-btn[data-tier="pro"] .buy-tier-check svg { stroke: #fff; }

    .buy-tier-btn strong { display: block; font-size: 15px; font-weight: 700; }
    .buy-tier-btn > span { display: block; font-size: 12px; color: var(--brand-gray, #6b7280); margin-top: 3px; }
    .buy-tier-popular {
        display: inline-block;
        font-size: 9px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        background: var(--brand-yellow, #fbff94);
        color: #0a0a0a;
        padding: 2px 8px;
        border-radius: 4px;
        vertical-align: middle;
        margin-left: 6px;
    }

    /* Product cards */
    .buy-product-card {
        padding: 16px;
        border-radius: 8px;
        border: 1.5px solid var(--bp-border);
        background: white;
        transition: all 0.2s;
        display: flex;
        flex-direction: column;
    }
    .buy-product-card:hover { border-color: var(--bp-hover); }
    .buy-product-card .product-name { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
    .buy-product-card .product-desc { font-size: 12px; color: var(--brand-gray, #6b7280); margin-bottom: 10px; }
    /* Pushes the price/button section to the bottom of flexbox card */
    .buy-card-spacer {
        flex: 1;
    }
    .buy-price-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-top: auto;
        padding-top: 10px;
    }
    .buy-product-card .product-price { font-size: 20px; font-weight: 700; white-space: nowrap; }
    .buy-product-card .product-price .currency { font-size: 13px; font-weight: 500; color: var(--brand-gray, #6b7280); }

    /* Format example image */
    .buy-format-example {
        position: relative;
        border-radius: 6px;
        overflow: hidden;
        margin-bottom: 10px;
        background: var(--bp-light);
        aspect-ratio: 4/5;
    }
    /* All format examples display in 4:5 — same as feed display ratio */
    .buy-format-example img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .buy-format-example .example-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 8px 10px;
        background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
        color: white;
        font-size: 11px;
        display: flex;
        gap: 8px;
        align-items: center;
    }
    .buy-format-example .example-stat {
        display: flex;
        align-items: center;
        gap: 3px;
        font-weight: 500;
    }

    .buy-add-btn {
        padding: 8px 16px;
        border-radius: 6px;
        border: 1.5px solid var(--bp-border);
        background: white;
        font-size: 13px;
        font-weight: 600;
        font-family: inherit;
        cursor: pointer;
        transition: all 0.15s;
        white-space: nowrap;
    }
    .buy-add-btn:hover { background: var(--bp-dark); color: white; border-color: var(--bp-dark); }
    .buy-add-btn.added { background: #22c55e; color: white; border-color: #22c55e; }

    /* Quantity controls */
    .buy-qty-controls {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 6px;
    }
    .buy-qty-btn {
        width: 28px;
        height: 28px;
        border-radius: 6px;
        border: 1.5px solid var(--bp-border);
        background: white;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.15s;
        font-family: inherit;
    }
    .buy-qty-btn:hover { background: var(--bp-light); }
    .buy-qty-count {
        font-size: 14px;
        font-weight: 700;
        min-width: 24px;
        text-align: center;
    }

    /* Bundle discount indicator */
    .buy-bundle-indicator {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 16px;
        border-radius: 10px;
        background: #f0fdf4;
        border: 1px solid #bbf7d0;
        font-size: 13px;
        font-weight: 600;
        color: #16a34a;
    }
    .buy-bundle-indicator .bundle-icon { font-size: 18px; }
    .buy-bundle-indicator .bundle-next {
        font-weight: 400;
        color: #4ade80;
        margin-left: auto;
        font-size: 12px;
    }

    /* Content required badge */
    .buy-content-badge {
        display: inline-block;
        padding: 3px 8px;
        border-radius: 6px;
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        background: #fef3c7;
        color: #92400e;
        margin-bottom: 6px;
    }
    .buy-content-badge-pro {
        background: linear-gradient(135deg, #fdf6e3, #fce8c8);
        color: #7c5e20;
    }

    /* Add-on card pricing with discount */
    .buy-addon-original {
        text-decoration: line-through;
        color: var(--brand-gray, #6b7280);
        font-size: 12px;
        font-weight: 500;
        margin-right: 4px;
    }
    .buy-addon-discounted {
        color: #16a34a;
        font-weight: 600;
        font-size: 14px;
    }
    .buy-price-struck {
        text-decoration: line-through;
        color: var(--brand-gray, #6b7280);
        font-weight: 400;
        margin-right: 4px;
        font-size: 0.85em;
    }

    /* Add-on categories */
    .buy-addon-category {
        border: 1.5px solid var(--bp-border);
        border-radius: 8px;
        background: white;
        overflow: hidden;
    }
    .addon-cat-header {
        display: flex;
        align-items: flex-start;
        gap: 14px;
        padding: 18px 20px 14px;
        border-bottom: 1px solid var(--bp-border);
    }
    .addon-cat-icon {
        font-size: 26px;
        flex-shrink: 0;
        line-height: 1;
        margin-top: 2px;
    }
    .addon-cat-info { flex: 1; min-width: 0; }
    .addon-cat-label { font-size: 15px; font-weight: 700; display: block; }
    .addon-cat-desc { font-size: 12px; color: var(--brand-gray, #6b7280); margin-top: 4px; line-height: 1.5; }
    .addon-cat-example {
        font-size: 11px;
        color: var(--brand-gray, #6b7280);
        margin-top: 6px;
        padding: 6px 10px;
        background: rgba(0,0,0,0.03);
        border-radius: 6px;
        line-height: 1.5;
        font-style: italic;
    }
    .addon-cat-options { display: flex; flex-direction: column; }
    .addon-option {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 20px;
        cursor: pointer;
        transition: background 0.15s;
        border-bottom: 1px solid rgba(184,212,240,0.4);
    }
    .addon-option:last-child { border-bottom: none; }
    .addon-option:hover { background: var(--bp-light); }
    .addon-option.added { background: #f0fdf4; }
    .addon-option-info { flex: 1; min-width: 0; }
    .addon-option-name { font-size: 13px; font-weight: 600; display: block; }
    .addon-option-desc { font-size: 11px; color: var(--brand-gray, #6b7280); display: block; margin-top: 1px; }
    .addon-option-right {
        flex-shrink: 0;
        text-align: right;
        font-size: 14px;
        font-weight: 600;
    }
    .addon-option-price { font-size: 14px; font-weight: 600; }
    .addon-option-check {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        border: 2px solid var(--bp-border);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        color: transparent;
        flex-shrink: 0;
        transition: all 0.2s;
    }
    .addon-option.added .addon-option-check {
        background: #22c55e;
        border-color: #22c55e;
        color: white;
    }

    /* Cart chips (horizontal bar items) */
    .buy-cart-chip {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 4px 10px;
        border-radius: 6px;
        background: rgba(184,212,240,0.2);
        color: var(--bp-heading);
        font-size: 12px;
        font-weight: 500;
        white-space: nowrap;
    }
    .cart-chip-price {
        font-weight: 700;
        font-size: 12px;
    }
    .cart-chip-remove {
        background: none;
        border: none;
        color: var(--brand-gray, #6b7280);
        cursor: pointer;
        font-size: 13px;
        padding: 0 2px;
        opacity: 0.3;
        transition: all 0.15s;
        font-family: inherit;
    }
    .buy-cart-chip:hover .cart-chip-remove { opacity: 1; }
    .cart-chip-remove:hover { color: #ef4444; }

    /* Collab post toggle */
    .buy-collab-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
        margin-top: 8px;
        border-radius: 8px;
        border: 1px dashed rgba(0,0,0,0.1);
        background: transparent;
        cursor: pointer;
        font-size: 12px;
        font-weight: 500;
        font-family: inherit;
        color: var(--brand-gray, #6b7280);
        transition: all 0.15s;
        width: 100%;
    }
    .buy-collab-toggle:hover { border-color: rgba(147,51,234,0.3); color: #7c3aed; background: rgba(147,51,234,0.02); }
    .buy-collab-toggle.active {
        border-color: #7c3aed;
        border-style: solid;
        background: #faf5ff;
        color: #7c3aed;
    }
    .buy-collab-toggle .collab-check {
        width: 18px;
        height: 18px;
        border-radius: 4px;
        border: 2px solid rgba(0,0,0,0.12);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 10px;
        color: transparent;
        flex-shrink: 0;
        transition: all 0.15s;
    }
    .buy-collab-toggle.active .collab-check {
        background: #7c3aed;
        border-color: #7c3aed;
        color: white;
    }
    .buy-collab-save {
        font-size: 10px;
        font-weight: 700;
        color: #7c3aed;
        margin-left: auto;
    }

    /* Input styling */
    .buy-input {
        width: 100%;
        padding: 10px 14px;
        border: 1.5px solid var(--bp-border);
        border-radius: 8px;
        font-size: 14px;
        font-family: inherit;
        transition: all 0.15s;
        background: white;
    }
    .buy-input:focus { outline: none; border-color: var(--bp-dark); box-shadow: 0 0 0 3px rgba(15,42,68,0.08); }
    .buy-input::placeholder { color: var(--bp-label); opacity: 0.6; }
    textarea.buy-input { resize: vertical; }
    select.buy-select {
        appearance: none;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
        background-position: right 12px center;
        background-repeat: no-repeat;
        background-size: 16px 12px;
        padding-right: 36px;
        cursor: pointer;
    }

    /* Boost budget buttons */
    .buy-boost-btn {
        padding: 14px 12px;
        border-radius: 8px;
        border: 1.5px solid var(--bp-border);
        background: white;
        cursor: pointer;
        font-family: inherit;
        text-align: center;
        transition: all 0.2s;
    }
    .buy-boost-btn:hover { border-color: var(--bp-hover); }
    .buy-boost-btn.active {
        border-color: var(--bp-dark);
        background: var(--bp-light);
    }
    .buy-boost-btn strong { display: block; font-size: 16px; font-weight: 700; }
    .buy-boost-btn span { display: block; font-size: 11px; color: var(--brand-gray, #6b7280); margin-top: 2px; }

    /* Skeleton loading cards */
    .skeleton-label {
        width: 80px;
        height: 14px;
        border-radius: 4px;
        background: rgba(0,0,0,0.06);
        margin-bottom: 6px;
    }
    .skeleton-card {
        min-height: 140px;
        border-radius: 8px;
        background: linear-gradient(90deg, rgba(184,212,240,0.15) 25%, rgba(184,212,240,0.3) 50%, rgba(184,212,240,0.15) 75%);
        background-size: 200% 100%;
        animation: skeleton-pulse 1.5s ease-in-out infinite;
    }
    @keyframes skeleton-pulse {
        0% { background-position: 200% 0; }
        100% { background-position: -200% 0; }
    }

    /* "Add to all accounts" button */
    .buy-add-all-btn {
        width: 100%;
        padding: 6px;
        border-radius: 6px;
        border: 1px dashed var(--bp-border);
        background: transparent;
        font-size: 12px;
        font-weight: 500;
        font-family: inherit;
        cursor: pointer;
        transition: all 0.15s;
        color: var(--bp-label);
        margin-top: 4px;
    }
    .buy-add-all-btn:hover { background: var(--bp-light); color: var(--bp-dark); border-color: var(--bp-hover); }

    /* Unified per-account pricing inside format cards */
    .buy-account-prices {
        display: flex;
        flex-direction: column;
        gap: 0;
        margin-top: auto;
        padding-top: 10px;
        border: 1.5px solid var(--bp-border);
        border-radius: 8px;
        overflow: hidden;
    }
    .buy-add-all-btn-top {
        width: 100%;
        padding: 10px 14px;
        background: var(--bp-dark);
        color: white;
        font-size: 13px;
        font-weight: 600;
        font-family: inherit;
        cursor: pointer;
        border: none;
        transition: all 0.15s;
    }
    .buy-add-all-btn-top:hover { background: var(--bp-medium); }
    .buy-all-added-badge {
        padding: 10px 14px;
        background: #f0fdf4;
        color: #16a34a;
        font-size: 13px;
        font-weight: 600;
        text-align: center;
    }
    .buy-acct-price-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 14px;
        border-top: 1px solid rgba(184,212,240,0.4);
        transition: background 0.15s;
    }
    .buy-acct-price-row.added { background: #f0fdf4; }
    .acct-price-info {
        display: flex;
        align-items: center;
        gap: 10px;
        flex: 1;
        min-width: 0;
    }
    .acct-price-name {
        font-size: 13px;
        font-weight: 500;
        color: var(--brand-black, #0a0a0a);
    }
    .acct-price-amount {
        font-size: 14px;
        font-weight: 700;
        color: var(--brand-black, #0a0a0a);
        margin-left: auto;
        margin-right: 12px;
    }
    .acct-price-free {
        font-size: 12px;
        font-weight: 700;
        color: #059669;
        background: #ecfdf5;
        padding: 2px 8px;
        border-radius: 6px;
        margin-left: auto;
        margin-right: 12px;
    }
    .buy-acct-price-row.free-bundled {
        background: #f0fdf4;
        border-color: #bbf7d0;
    }
    .acct-price-add {
        padding: 5px 14px;
        border-radius: 6px;
        border: 1.5px solid var(--bp-border);
        background: white;
        font-size: 12px;
        font-weight: 600;
        font-family: inherit;
        cursor: pointer;
        transition: all 0.15s;
        flex-shrink: 0;
    }
    .acct-price-add:hover { background: var(--bp-dark); color: white; border-color: var(--bp-dark); }
    .buy-acct-price-row .buy-qty-controls { margin-top: 0; flex-shrink: 0; }


    /* Tier feature lists */
    .buy-tier-features {
        list-style: none;
        padding: 0;
        margin: 8px 0 0;
        display: flex;
        flex-direction: column;
        gap: 3px;
    }
    .buy-tier-features li {
        font-size: 11px;
        color: var(--brand-gray, #6b7280);
    }
    /* Value features are always light (dark bg), Pro features are always dark (light bg) — no active override needed */
    .buy-tier-badge {
        display: inline-block;
        font-size: 9px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        background: linear-gradient(135deg, rgba(201,169,110,0.15) 0%, rgba(226,201,146,0.2) 100%);
        color: #7a6530;
        border: 1px solid rgba(201,169,110,0.25);
        padding: 2px 8px;
        border-radius: 4px;
        vertical-align: middle;
        margin-left: 6px;
    }

    /* Tooltip system */
    .buy-tip {
        position: relative;
        display: inline-flex;
        align-items: center;
        cursor: help;
    }
    .buy-tip-wrap { display: inline-flex; align-items: center; gap: 2px; }
    .buy-tip .buy-tip-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 15px;
        height: 15px;
        border-radius: 50%;
        background: rgba(184,212,240,0.3);
        color: var(--bp-label);
        font-size: 9px;
        font-weight: 700;
        font-style: normal;
        margin-left: 3px;
        flex-shrink: 0;
        line-height: 1;
    }
    .buy-tip .buy-tip-text {
        display: none;
        position: fixed;
        z-index: 9999;
        background: var(--bp-dark);
        color: #fff;
        font-size: 12px;
        line-height: 1.5;
        padding: 10px 14px;
        border-radius: 8px;
        width: max-content;
        max-width: min(280px, calc(100vw - 20px));
        font-weight: 400;
        box-shadow: 0 8px 24px rgba(15,42,68,0.3);
        pointer-events: none;
        text-align: left;
        white-space: normal;
    }
    .buy-tip .buy-tip-text::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        border: 6px solid transparent;
        border-top-color: var(--bp-dark);
    }
    .buy-tip .buy-tip-text.buy-tip-below::after {
        top: auto;
        bottom: 100%;
        border-top-color: transparent;
        border-bottom-color: var(--bp-dark);
    }
    .buy-tip:hover .buy-tip-text,
    .buy-tip:focus .buy-tip-text {
        display: block;
    }

    /* Savings badge */
    .buy-savings-badge {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 3px 10px;
        border-radius: 99px;
        background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
        border: 1px solid #bbf7d0;
        font-size: 11px;
        font-weight: 700;
        color: #16a34a;
        white-space: nowrap;
        animation: savingsPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    @keyframes savingsPop {
        0% { transform: scale(0.8); opacity: 0; }
        100% { transform: scale(1); opacity: 1; }
    }

    /* Average performance stat badge */
    .buy-avg-stat {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 6px 10px;
        border-radius: 8px;
        background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
        border: 1px solid #bbf7d0;
        margin: 8px 0 4px;
        font-size: 11px;
    }
    .buy-avg-stat-icon { font-size: 13px; flex-shrink: 0; }
    .buy-avg-stat-label { color: #166534; font-weight: 500; }
    .buy-avg-stat-value { color: #15803d; font-weight: 700; margin-left: auto; }

    /* Format spec lines on product cards */
    .buy-format-specs {
        display: flex;
        flex-direction: column;
        gap: 3px;
        margin: 8px 0 4px;
        padding: 8px 0;
        border-top: 1px solid rgba(0,0,0,0.06);
    }
    .buy-format-specs .spec-line {
        font-size: 11px;
        color: var(--brand-gray, #6b7280);
        display: flex;
        align-items: center;
        gap: 5px;
    }
    .buy-format-specs .spec-line .spec-icon {
        font-size: 12px;
        flex-shrink: 0;
        width: 16px;
        text-align: center;
    }

    /* Bundle quick-add button */
    .buy-bundle-quick-add {
        font-size: 11px;
        font-weight: 600;
        font-family: inherit;
        padding: 4px 12px;
        border-radius: 6px;
        border: 1.5px solid var(--bp-border);
        background: white;
        cursor: pointer;
        margin-left: auto;
        transition: all 0.15s;
    }
    .buy-bundle-quick-add:hover {
        background: var(--bp-dark);
        color: white;
        border-color: var(--bp-dark);
    }

    /* Step 2 sidebar scrollable cart */
    #cartItems::-webkit-scrollbar { width: 4px; }
    #cartItems::-webkit-scrollbar-track { background: transparent; }
    #cartItems::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 2px; }

    /* Step 2: Sticky cart bar at top */
    .buy-cart-bar {
        border: 1.5px solid var(--bp-border);
        border-radius: 8px;
        background: rgba(234,242,251,0.7);
        backdrop-filter: blur(12px);
        padding: 12px 16px;
        box-shadow: 0 2px 12px rgba(26,58,92,0.06);
    }
    .buy-cart-bar-empty {
        text-align: center;
        padding: 4px 0;
    }
    .buy-cart-bar-row {
        display: flex;
        align-items: center;
        gap: 16px;
    }
    .buy-cart-bar-items {
        display: flex;
        gap: 6px;
        flex-wrap: wrap;
        flex: 1;
        min-width: 0;
    }
    .buy-cart-bar-totals {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-shrink: 0;
    }
    .buy-cart-bar-discount {
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: 11px;
    }

    /* Contact CTA card */
    .buy-contact-cta {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 24px 28px;
        border-radius: 8px;
        background: linear-gradient(135deg, var(--bp-light) 0%, #d4e6f7 100%);
        border: 1.5px solid var(--bp-border);
        margin-top: 32px;
        text-align: center;
    }
    .buy-contact-cta p { font-size: 16px; font-weight: 600; color: var(--bp-dark); margin: 0; }
    .buy-contact-cta a {
        font-size: 14px;
        font-weight: 600;
        color: var(--bp-dark);
        background: #fff;
        padding: 8px 20px;
        border-radius: 6px;
        text-decoration: none;
        border: 1.5px solid var(--bp-border);
        transition: all 0.2s;
    }
    .buy-contact-cta a:hover { background: var(--bp-dark); color: #fff; border-color: var(--bp-dark); }

    /* Back button */
    .buy-back-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px; height: 36px;
        border-radius: 6px;
        border: 1.5px solid var(--bp-border);
        background: #fff;
        cursor: pointer;
        font-size: 16px;
        color: var(--bp-label);
        transition: all 0.2s;
        flex-shrink: 0;
        font-family: inherit;
    }
    .buy-back-btn:hover { background: var(--bp-light); color: var(--bp-dark); }

    /* Responsive */
    @media (max-width: 768px) {
        .account-search-input { max-width: 100%; font-size: 12px; padding: 6px 10px 6px 30px; }
        .province-filter-bar { gap: 5px; }
        .province-filter-pill { font-size: 12px; padding: 6px 13px; }
        .city-filter-bar { gap: 5px; }
        .city-filter-pill { font-size: 11px; padding: 5px 12px; }
        .buy-cart-bar-row { flex-direction: column; align-items: stretch; gap: 8px; }
        .buy-cart-bar-totals { justify-content: flex-end; }
        .buy-tier-btn { padding: 18px 16px 16px; }
        .buy-tier-btn strong { font-size: 13px; }
        .buy-account-row { flex-wrap: wrap; padding: 10px 14px; gap: 10px; }
        .buy-account-row .account-followers { width: 100%; order: 3; margin-top: 2px; }
        .buy-account-row .account-price { margin-left: auto; }
        .buy-tip .buy-tip-text { max-width: 220px; font-size: 11px; }
        #singlePostGrid { grid-template-columns: repeat(2, 1fr) !important; }
        #checkoutGrid { grid-template-columns: 1fr !important; }
        #checkoutGrid .buy-checkout-right { order: 99; }
    }

    /* FAQ accordion */
    .buy-faq-item {
        border-bottom: 1px solid rgba(184,212,240,0.5);
    }
    .buy-faq-item:last-child { border-bottom: none; }
    .buy-faq-question {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 0;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        list-style: none;
        color: var(--bp-heading);
    }
    .buy-faq-question::-webkit-details-marker { display: none; }
    .buy-faq-question::after {
        content: '+';
        font-size: 18px;
        font-weight: 400;
        color: var(--bp-label);
        transition: transform 0.2s;
        flex-shrink: 0;
        margin-left: 12px;
    }
    .buy-faq-item[open] .buy-faq-question::after {
        content: '\2212';
    }
    .buy-faq-answer {
        font-size: 13px;
        line-height: 1.7;
        color: var(--brand-gray, #6b7280);
        padding-bottom: 14px;
    }
    .faq-bullets {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    .faq-bullets li {
        position: relative;
        padding-left: 16px;
    }
    .faq-bullets li::before {
        content: '\2022';
        position: absolute;
        left: 0;
        color: var(--brand-gray, #6b7280);
    }

    /* ── Stripe Payment Element ── */
    .stripe-payment-card {
        background: #ffffff;
        border: 1.5px solid var(--bp-border);
        border-radius: 8px;
        padding: 28px 24px 24px;
        position: relative;
        overflow: hidden;
        box-shadow: 0 2px 12px rgba(26,58,92,0.06);
    }
    .stripe-payment-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--bp-dark), transparent);
        opacity: 0.3;
    }
    .stripe-payment-header {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 24px;
        padding-bottom: 16px;
        border-bottom: 1px solid var(--bp-border);
    }
    .stripe-payment-lock {
        width: 36px;
        height: 36px;
        border-radius: 8px;
        background: var(--bp-dark);
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    .stripe-payment-title {
        display: block;
        font-weight: 600;
        font-size: 15px;
        color: var(--bp-heading);
        letter-spacing: -0.01em;
    }
    .stripe-payment-meta {
        display: block;
        font-size: 12px;
        color: rgba(0,0,0,0.4);
        margin-top: 2px;
        font-variant-numeric: tabular-nums;
    }
    #stripeCheckoutMount {
        min-height: 200px;
    }
    .stripe-payment-error {
        color: #dc2626;
        font-size: 13px;
        margin-top: 12px;
        padding: 10px 14px;
        background: #fef2f2;
        border: 1px solid #fecaca;
        border-radius: 10px;
    }
    .stripe-pay-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        width: 100%;
        margin-top: 20px;
        padding: 16px 24px;
        font-family: inherit;
        font-size: 15px;
        font-weight: 600;
        color: #ffffff;
        background: var(--bp-dark);
        border: none;
        border-radius: 100px;
        cursor: pointer;
        transition: all 0.25s ease;
        letter-spacing: -0.01em;
    }
    .stripe-pay-btn:hover:not(:disabled) {
        transform: translateY(-1px);
        box-shadow: 0 8px 24px rgba(15,42,68,0.3);
        background: var(--bp-medium);
    }
    .stripe-pay-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }
    .stripe-pay-btn:active:not(:disabled) {
        transform: translateY(0);
    }
    .stripe-spinner {
        display: inline-block;
        width: 16px;
        height: 16px;
        border: 2px solid rgba(255,255,255,0.25);
        border-top-color: #fff;
        border-radius: 50%;
        animation: stripeSpin 0.6s linear infinite;
    }
    @keyframes stripeSpin {
        to { transform: rotate(360deg); }
    }
    .stripe-payment-footer {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        margin-top: 20px;
        padding-top: 16px;
        border-top: 1px solid var(--bp-border);
        font-size: 11px;
        color: var(--bp-label);
        opacity: 0.6;
    }
    .stripe-payment-footer svg {
        color: rgba(0,0,0,0.35);
    }
    .stripe-back-btn {
        display: block;
        margin: 16px auto 0;
        padding: 10px 20px;
        background: none;
        border: none;
        color: rgba(0,0,0,0.4);
        font-family: inherit;
        font-size: 13px;
        cursor: pointer;
        transition: color 0.2s;
    }
    .stripe-back-btn:hover {
        color: rgba(0,0,0,0.7);
    }

    /* ── Stripe Badge (on Place Order) ── */
    .buy-stripe-badge {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        font-size: 11px;
        color: rgba(255,255,255,0.3);
    }
    .buy-stripe-badge-lock {
        color: rgba(255,255,255,0.25);
        flex-shrink: 0;
    }
    .buy-stripe-badge-logo {
        color: rgba(255,255,255,0.4);
        flex-shrink: 0;
        position: relative;
        top: 0.5px;
    }

    /* ══════════════════════════════════════════
       BLUEPRINT OVERRIDES — Primary Buttons & Sidebar
       ══════════════════════════════════════════ */

    /* Primary buttons: replace brand-black with blueprint dark */
    #buyAppContainer .bg-brand-black,
    #main-content .bg-brand-black {
        background-color: var(--bp-dark) !important;
    }
    #buyAppContainer .bg-brand-black:hover,
    #main-content .bg-brand-black:hover {
        background-color: var(--bp-medium) !important;
    }
    #buyAppContainer .hover\:bg-brand-black\/80:hover {
        background-color: var(--bp-medium) !important;
    }

    /* Checkout sidebar — blueprint dark instead of pure black */
    .buy-sidebar {
        background: linear-gradient(145deg, var(--bp-dark) 0%, #0a2035 50%, var(--bp-dark) 100%) !important;
    }

    /* Collab toggle — keep purple but soften border */
    .buy-collab-toggle {
        border-color: var(--bp-border);
    }
    .buy-collab-toggle:hover { border-color: rgba(147,51,234,0.3); }

    /* Format specs separator */
    .buy-format-specs {
        border-top-color: rgba(184,212,240,0.4);
    }

    /* Collab banner — blueprint tones */
    .buy-collab-banner {
        border-radius: 8px;
        border: 1.5px solid var(--bp-border);
        background: linear-gradient(135deg, var(--bp-light), #d4e6f7);
    }

/* ── Modal overlay — force fixed centering regardless of parent transforms ── */
    .buy-modal-overlay {
        position: fixed !important;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.4);
        z-index: 100;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 16px;
    }

/* ── Mobile Format Card Carousel ── */
@media (max-width: 768px) {
    #singlePostGrid {
        display: flex !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 12px;
        padding-bottom: 12px;
    }
    #singlePostGrid > .buy-product-card {
        min-width: 280px;
        max-width: 300px;
        flex-shrink: 0;
        scroll-snap-align: start;
    }
    /* Hide scrollbar but keep functionality */
    #singlePostGrid::-webkit-scrollbar { display: none; }
    #singlePostGrid { -ms-overflow-style: none; scrollbar-width: none; }
}

/* Carousel dot indicators */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 8px 0 4px;
}
.carousel-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(0,0,0,0.15);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.carousel-dot.active {
    background: var(--bp-dark, #0a0a0a);
    transform: scale(1.25);
}

/* ── Step indicators: mobile compact ── */
@media (max-width: 480px) {
    .buy-step-btn {
        padding: 8px 6px;
        gap: 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .buy-step-label {
        font-size: 8px;
        letter-spacing: 0.02em;
        margin-top: 4px;
        text-align: center;
        line-height: 1.1;
    }
    .buy-step-num {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
}

/* Addon quantity selector controls (Link in Bio / Post Pin) */
.addon-qty-add {
    padding: 6px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    flex-shrink: 0;
}
.addon-qty-add:hover:not(:disabled) { background: #f9fafb; }
.addon-qty-add:disabled { opacity: 0.4; cursor: not-allowed; }
.addon-qty-controls {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.addon-qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.addon-qty-btn:hover:not(:disabled) { background: #f3f4f6; }
.addon-qty-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.addon-qty-value {
    width: 32px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    line-height: 36px;
    height: 36px;
}
.addon-qty-max {
    font-size: 11px;
    color: #9ca3af;
    margin-left: 8px;
}

/* Addon qty controls: touch-friendly sizes on mobile */
@media (max-width: 768px) {
    .addon-qty-btn { width: 44px; height: 44px; }
    .addon-qty-value { height: 44px; line-height: 44px; }
    .addon-qty-add { padding: 10px 20px; font-size: 14px; }
}

/* Accessibility: respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
