/* ================================================================== */
/*  Badge Product Selector — Frontend v3.0.0                          */
/*  Production-ready UI · Sleek & interactive                         */
/* ================================================================== */

:root {
    --bps-primary: #7c5cff;
    --bps-primary-light: #a78bfa;
    --bps-primary-bg: rgba(124, 92, 255, .06);
    --bps-primary-glow: rgba(124, 92, 255, .18);
    --bps-surface: #ffffff;
    --bps-surface-alt: #f8f9fc;
    --bps-border: #e5e7eb;
    --bps-border-hover: #c8cad0;
    --bps-text: #1a1a2e;
    --bps-text-muted: #6b7280;
    --bps-text-light: #9ca3af;
    --bps-success: #10b981;
    --bps-danger: #ef4444;
    --bps-radius: 14px;
    --bps-radius-sm: 10px;
    --bps-radius-xs: 6px;
    --bps-shadow: 0 1px 3px rgba(0,0,0,.05), 0 1px 2px rgba(0,0,0,.04);
    --bps-shadow-md: 0 4px 12px rgba(0,0,0,.07), 0 1px 3px rgba(0,0,0,.04);
    --bps-shadow-lg: 0 10px 30px rgba(0,0,0,.08), 0 2px 8px rgba(0,0,0,.04);
    --bps-transition: .22s cubic-bezier(.4,0,.2,1);
    --bps-spring: .35s cubic-bezier(.34,1.56,.64,1);
}

/* ------------------------------------------------------------------ */
/*  Globals                                                           */
/* ------------------------------------------------------------------ */
.bps-selector {
    position: relative;
    max-width: 680px;
    margin: 0 auto 3.5rem;
    padding: 28px 24px 24px;
    background: var(--bps-surface);
    border: 1px solid var(--bps-border);
    border-radius: 18px;
    box-shadow: var(--bps-shadow-lg);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--bps-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.bps-selector *, .bps-selector *::before, .bps-selector *::after {
    box-sizing: border-box;
}

.bps-ambient-glow {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 360px;
    height: 200px;
    background: radial-gradient(ellipse, var(--bps-primary-glow) 0%, transparent 70%);
    opacity: .4;
    pointer-events: none;
    z-index: 0;
}

/* ------------------------------------------------------------------ */
/*  Product title                                                     */
/* ------------------------------------------------------------------ */
.bps-product-title {
    position: relative;
    text-align: center;
    padding: 4px 24px 22px;
    margin: 0 -24px;
    z-index: 1;
}
.bps-title-kicker {
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--bps-primary);
    margin-bottom: 8px;
    opacity: .75;
}
.bps-product-title h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.15;
    color: var(--bps-text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
.bps-title-accent {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}
.bps-title-accent span {
    display: block;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--bps-primary), transparent);
    border-radius: 1px;
}

/* ------------------------------------------------------------------ */
/*  Price Header                                                      */
/* ------------------------------------------------------------------ */
.bps-price-header {
    position: relative;
    text-align: center;
    padding: 28px 24px 22px;
    margin: 0 -24px 6px;
    background: linear-gradient(135deg, rgba(124,92,255,.04) 0%, rgba(124,92,255,.08) 50%, rgba(99,66,224,.04) 100%);
    border-bottom: 1px solid rgba(124,92,255,.1);
    z-index: 1;
}

.bps-price-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.bps-price-from, .bps-price-to {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bps-price-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--bps-primary);
    margin-bottom: 4px;
    opacity: .7;
}

.bps-price-amount {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -.03em;
    background: linear-gradient(135deg, var(--bps-primary) 0%, #6244e0 50%, #8b6fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    filter: drop-shadow(0 1px 2px rgba(124,92,255,.15));
}

.bps-price-divider {
    color: var(--bps-border-hover);
    font-size: 18px;
    margin-top: 10px;
    font-weight: 300;
}

.bps-price-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
}

.bps-cta-text {
    font-size: 12px;
    color: var(--bps-text-muted);
    font-weight: 500;
    letter-spacing: .04em;
}

.bps-cta-arrow {
    color: var(--bps-text-light);
    display: flex;
    opacity: .6;
}

/* ------------------------------------------------------------------ */
/*  Progress bar                                                      */
/* ------------------------------------------------------------------ */
.bps-progress {
    padding: 0 24px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.bps-progress-bar {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    gap: 0;
}

.bps-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 2;
    flex-shrink: 0;
}

.bps-progress-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bps-surface-alt);
    border: 2.5px solid var(--bps-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--bps-transition);
    position: relative;
}

.bps-progress-dot .bps-dot-check {
    width: 16px;
    height: 16px;
    opacity: 0;
    transform: scale(.3);
    transition: all var(--bps-spring);
    color: #fff;
}

.bps-progress-step.active .bps-progress-dot {
    border-color: var(--bps-primary);
    background: var(--bps-primary-bg);
    box-shadow: 0 0 0 4px rgba(124,92,255,.12);
}

.bps-progress-step.completed .bps-progress-dot {
    border-color: var(--bps-primary);
    background: var(--bps-primary);
}

.bps-progress-step.completed .bps-progress-dot .bps-dot-check {
    opacity: 1;
    transform: scale(1);
}

.bps-progress-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--bps-text-light);
    transition: color var(--bps-transition);
}

.bps-progress-step.active .bps-progress-label,
.bps-progress-step.completed .bps-progress-label {
    color: var(--bps-primary);
}

.bps-progress-line {
    flex: 1;
    height: 2.5px;
    background: var(--bps-border);
    margin-top: 15px;
    transition: background var(--bps-transition);
    min-width: 40px;
}

.bps-progress-line.filled {
    background: var(--bps-primary);
}

/* ------------------------------------------------------------------ */
/*  Steps                                                             */
/* ------------------------------------------------------------------ */
.bps-step {
    position: relative;
    z-index: 1;
    padding: 0 4px;
    margin-bottom: 8px;
    transition: opacity var(--bps-transition), filter var(--bps-transition);
}

.bps-step.bps-locked {
    opacity: .4;
    pointer-events: none;
    filter: grayscale(.3);
}

.bps-step-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    margin-bottom: 12px;
    background: var(--bps-surface);
    border: 1px solid var(--bps-border);
    border-radius: var(--bps-radius);
    box-shadow: var(--bps-shadow);
    transition: all var(--bps-transition);
}

/* step-pending / step-complete header rules handle active border now */

.bps-step-number-wrap {
    position: relative;
    flex-shrink: 0;
}

.bps-step-number {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--bps-surface);
    border: 2px solid var(--bps-border);
    color: var(--bps-text-muted);
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    transition: all .35s cubic-bezier(.4,0,.2,1);
}

/* Pending — orange: step is active but no selection made */
.bps-step.step-pending > .bps-step-header .bps-step-number {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 2px 8px rgba(245,158,11,.30);
}
.bps-step.step-pending > .bps-step-header {
    border-color: #fbbf24;
    box-shadow: var(--bps-shadow), 0 0 0 3px rgba(245,158,11,.10);
}

/* Complete — green: selection made */
.bps-step.step-complete > .bps-step-header .bps-step-number {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 2px 8px rgba(34,197,94,.30);
}
.bps-step.step-complete > .bps-step-header {
    border-color: #4ade80;
    box-shadow: var(--bps-shadow), 0 0 0 3px rgba(34,197,94,.10);
}

.bps-step-pulse {
    display: none;
}

.bps-step.step-pending .bps-step-pulse {
    display: block;
    position: absolute;
    inset: -4px;
    border-radius: 14px;
    border: 2px solid #f59e0b;
    opacity: 0;
    animation: bps-pulse 2s ease-out infinite;
}

@keyframes bps-pulse {
    0% { opacity: .6; transform: scale(.95); }
    100% { opacity: 0; transform: scale(1.15); }
}

.bps-step-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    min-width: 0;
}

.bps-step-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--bps-text);
    line-height: 1.3;
}

.bps-step-subtitle {
    font-size: 12px;
    color: var(--bps-text-muted);
}

.bps-step-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--bps-primary);
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    transition: opacity var(--bps-transition);
}

.bps-step-value.visible {
    opacity: 1;
}

/* ------------------------------------------------------------------ */
/*  Step 1 — Position cards                                           */
/* ------------------------------------------------------------------ */
.bps-position-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0 4px 8px;
}

.bps-position-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 18px 10px 14px;
    background: var(--bps-surface);
    border: 2px solid var(--bps-border);
    border-radius: var(--bps-radius);
    cursor: pointer;
    transition: all var(--bps-transition);
    overflow: hidden;
    user-select: none;
}

.bps-position-card:hover {
    border-color: var(--bps-border-hover);
    transform: translateY(-2px);
    box-shadow: var(--bps-shadow-md);
}

.bps-position-card.active {
    border-color: var(--bps-primary);
    background: var(--bps-primary-bg);
    box-shadow: 0 0 0 3px rgba(124,92,255,.12), var(--bps-shadow-md);
    transform: translateY(-2px);
}

.bps-card-check {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--bps-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(.5);
    transition: all var(--bps-spring);
}

.bps-card-check svg {
    width: 14px;
    height: 14px;
    color: #fff;
}

.bps-position-card.active .bps-card-check {
    opacity: 1;
    transform: scale(1);
}

.bps-card-icon {
    width: 36px;
    height: 36px;
    color: var(--bps-text);
    opacity: .18;
    transition: color var(--bps-transition), opacity var(--bps-transition);
}

.bps-card-icon svg {
    width: 100%;
    height: 100%;
}

.bps-card-icon .bps-dual-icon {
    display: flex;
    gap: 2px;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.bps-card-icon .bps-dual-icon svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.bps-position-card.active .bps-card-icon {
    color: var(--bps-primary);
    opacity: .45;
}

.bps-position-card:hover .bps-card-icon {
    opacity: .6;
}

.bps-card-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--bps-text);
    text-align: center;
}

.bps-card-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--bps-primary);
    letter-spacing: -.01em;
    background: linear-gradient(135deg, rgba(124,92,255,.08), rgba(124,92,255,.04));
    border: 1px solid rgba(124,92,255,.15);
    padding: 5px 14px;
    border-radius: 20px;
    display: inline-block;
    line-height: 1.3;
}

.bps-card-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
}

.bps-card-badge span {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 2.5px 7px;
    border-radius: 4px;
    box-shadow: 0 1px 6px rgba(249, 115, 22, .30);
    text-shadow: 0 1px 1px rgba(0,0,0,.12);
    line-height: 1.3;
}

/* badge-glow removed — badge is now static */

.bps-position-card:has(.bps-card-badge) {
    border-color: rgba(249, 115, 22, .2);
    background: linear-gradient(180deg, rgba(249,115,22,.04) 0%, var(--bps-surface) 40%);
}

.bps-position-card:has(.bps-card-badge):hover {
    border-color: rgba(249, 115, 22, .35);
    box-shadow: 0 0 16px rgba(249,115,22,.1), var(--bps-shadow-md);
}

.bps-position-card:has(.bps-card-badge).active {
    border-color: var(--bps-primary);
    background: var(--bps-primary-bg);
}

/* ------------------------------------------------------------------ */
/*  Step 2 — Base colour swatches                                     */
/* ------------------------------------------------------------------ */
.bps-base-colours, .bps-accent-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 4px 6px 10px;
    justify-content: flex-start;
}

.bps-base-swatch, .bps-accent-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    min-width: 56px;
    max-width: 72px;
    transition: transform var(--bps-transition);
}

.bps-base-swatch:hover, .bps-accent-swatch:hover {
    transform: translateY(-2px);
}

.bps-swatch-ring {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    padding: 3px;
    border: 2.5px solid transparent;
    transition: all var(--bps-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bps-base-swatch.active .bps-swatch-ring,
.bps-accent-swatch.active .bps-swatch-ring {
    border-color: var(--bps-primary);
    box-shadow: 0 0 0 3px rgba(124,92,255,.15);
}

.bps-swatch-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.08);
    transition: transform var(--bps-spring);
}

.bps-base-swatch.active .bps-swatch-circle,
.bps-accent-swatch.active .bps-swatch-circle {
    transform: scale(1.05);
}

.bps-swatch-check {
    width: 18px;
    height: 18px;
    opacity: 0;
    transform: scale(.3) rotate(-20deg);
    transition: all var(--bps-spring);
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.3));
}

.bps-base-swatch.active .bps-swatch-check,
.bps-accent-swatch.active .bps-swatch-check {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.bps-swatch-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--bps-text-muted);
    text-align: center;
    line-height: 1.2;
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color var(--bps-transition);
}

.bps-swatch-desc {
    font-size: 9px;
    font-weight: 500;
    color: var(--bps-text-muted);
    opacity: .7;
    text-align: center;
    line-height: 1.2;
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bps-base-swatch.active .bps-swatch-label,
.bps-accent-swatch.active .bps-swatch-label {
    color: var(--bps-primary);
    font-weight: 700;
}

/* OOS states — greyed out, unselectable, with visible "Out of Stock" badge */
.bps-base-swatch.bps-oos,
.bps-accent-swatch.bps-oos {
    opacity: .45;
    pointer-events: none;
    position: relative;
    filter: grayscale(1);
    cursor: not-allowed;
    user-select: none;
}

.bps-oos-label {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 7px;
    font-weight: 800;
    color: #dc2626;
    text-transform: uppercase;
    letter-spacing: .06em;
    line-height: 1;
    padding: 2.5px 0 0;
    opacity: 1;
}

.bps-oos-label::before {
    content: '✕';
    font-size: 7px;
}

.bps-oos .bps-swatch-circle::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.55);
    z-index: 1;
}

/* Diagonal strike-through on OOS swatch */
.bps-oos .bps-swatch-circle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -2px;
    right: -2px;
    height: 2px;
    background: #dc2626;
    transform: rotate(-45deg);
    z-index: 2;
    border-radius: 1px;
}

/* Popular — luxury accent */
.bps-popular-label {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 7.5px;
    font-weight: 700;
    color: var(--bps-primary);
    text-transform: uppercase;
    letter-spacing: .08em;
    line-height: 1;
    padding: 2.5px 0 0;
    opacity: .85;
}
.bps-popular-label::before {
    content: '★';
    font-size: 8px;
}

.bps-accent-swatch.bps-popular .bps-swatch-ring,
.bps-base-swatch.bps-popular .bps-swatch-ring {
    box-shadow: 0 0 0 2px var(--bps-primary-light), 0 0 8px rgba(124,92,255,.15);
    border-radius: 50%;
    transition: box-shadow var(--bps-transition);
}

/* ------------------------------------------------------------------ */
/*  Step 3 — Accent category cards                                    */
/* ------------------------------------------------------------------ */
.bps-accent-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 4px 4px;
}

.bps-accent-category-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 20px;
    background: var(--bps-surface);
    border: 2px solid var(--bps-border);
    border-radius: var(--bps-radius-sm);
    cursor: pointer;
    transition: all var(--bps-transition);
    user-select: none;
}

.bps-accent-category-card:hover {
    border-color: var(--bps-border-hover);
    box-shadow: var(--bps-shadow);
    transform: translateY(-2px);
}

.bps-accent-category-card.active {
    border-color: var(--bps-primary);
    background: var(--bps-primary-bg);
    box-shadow: 0 0 0 3px rgba(124,92,255,.1);
}

.bps-cat-icon-wrap {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--bps-surface-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    transition: background var(--bps-transition);
}

.bps-accent-category-card.active .bps-cat-icon-wrap {
    background: rgba(124,92,255,.12);
}

.bps-cat-icon {
    font-size: 16px;
    line-height: 1;
}

.bps-cat-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-self: flex-start;
}

.bps-cat-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bps-cat-name-row strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--bps-text);
}

.bps-cat-surcharge {
    font-size: 12px;
    font-weight: 700;
    color: var(--bps-primary);
    background: rgba(124,92,255,.08);
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
    transition: all var(--bps-transition);
}

.bps-cat-desc {
    font-size: 12px;
    color: var(--bps-text-muted);
    line-height: 1.4;
}

.bps-cat-count {
    font-size: 11px;
    color: var(--bps-text-light);
    font-weight: 500;
}

.bps-cat-arrow {
    display: none;
}

.bps-accent-category-card:hover .bps-cat-arrow {
    display: none;
}

/* Accent colour panel (inside category) */

/* ================================================================== */
/*  THEMED ACCENT CATEGORY CARDS                                      */
/* ================================================================== */

/* ── Mirror: reflective chrome sweep ──────────────────────────────── */
.bps-accent-category-card[data-category-id="mirror"] {
    background: linear-gradient(135deg, #f8f9fc 0%, #eef0f7 40%, #f8f9fc 60%, #e8eaf2 100%);
    position: relative;
    overflow: hidden;
    animation: bps-mirror-popular-pulse 3s ease-in-out infinite;
}
.bps-accent-category-card[data-category-id="mirror"]::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(255,255,255,.85) 45%,
        rgba(200,210,230,.35) 50%,
        rgba(255,255,255,.85) 55%,
        transparent 70%
    );
    transform: translateX(-120%);
    transition: transform .6s ease;
}
.bps-accent-category-card[data-category-id="mirror"]:hover::before {
    transform: translateX(120%);
}
.bps-accent-category-card[data-category-id="mirror"] .bps-cat-icon-wrap {
    background: linear-gradient(135deg, #c0c8d8, #e8ecf4, #c0c8d8);
    box-shadow: inset 0 1px 2px rgba(255,255,255,.8), 0 1px 3px rgba(0,0,0,.08);
}
.bps-accent-category-card[data-category-id="mirror"].active {
    border-color: #a0aec0;
    background: linear-gradient(135deg, #eef0f7 0%, #dde2ef 40%, #eef0f7 60%, #d8ddef 100%);
    box-shadow: 0 0 0 3px rgba(160,174,192,.15), 0 4px 15px rgba(160,174,192,.1);
    animation: none;
}

/* ── Mirror: Most Popular cyber chip ──────────────────────────────── */
.bps-cat-popular-chip {
    display: inline-block;
    align-self: center;
    width: auto;
    margin: 2px 0 4px;
    padding: 3px 14px;
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #c0cde0;
    background: linear-gradient(135deg, rgba(30,35,50,.88), rgba(45,50,70,.92));
    border: 1px solid rgba(160,180,210,.2);
    border-radius: 20px;
    line-height: 1.4;
    pointer-events: none;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 0 8px rgba(140,165,210,.15), inset 0 1px 0 rgba(255,255,255,.06);
    text-shadow: 0 0 6px rgba(160,185,230,.3);
    white-space: nowrap;
}

/* ── Colour disclaimer ────────────────────────────────────────────── */
.bps-colour-disclaimer {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 12px 4px 4px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(124,92,255,.03) 0%, rgba(124,92,255,.06) 100%);
    border: 1px solid rgba(124,92,255,.1);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}
.bps-colour-disclaimer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--bps-primary, #7c5cff), rgba(124,92,255,.3));
    border-radius: 3px 0 0 3px;
}
.bps-colour-disclaimer svg {
    flex-shrink: 0;
    color: var(--bps-primary, #7c5cff);
    opacity: .6;
    margin-top: 1px;
}
.bps-colour-disclaimer p {
    margin: 0;
    font-size: 11px;
    line-height: 1.55;
    color: var(--bps-text-muted, #6b7280);
    font-style: italic;
    letter-spacing: .01em;
}

/* ── Mirror: border pulse (gold/chrome) ───────────────────────────── */
@keyframes bps-mirror-popular-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(200,170,100,.0), 0 2px 8px rgba(0,0,0,.04);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(212,180,90,.18), 0 4px 18px rgba(200,170,100,.12);
    }
}

/* ── Gloss: deep polished shine ───────────────────────────────────── */
.bps-accent-category-card[data-category-id="gloss"] {
    background: linear-gradient(180deg, #ffffff 0%, #f4f5f7 100%);
    position: relative;
    overflow: hidden;
}
.bps-accent-category-card[data-category-id="gloss"] > * {
    position: relative;
    z-index: 1;
}
.bps-accent-category-card[data-category-id="gloss"]::before {
    content: '';
    position: absolute;
    top: 0; left: -20%; right: -20%;
    height: 55%;
    background: linear-gradient(180deg, rgba(255,255,255,.7) 0%, rgba(255,255,255,0) 100%);
    border-radius: 0 0 50% 50%;
    pointer-events: none;
    transition: opacity .3s ease;
}
.bps-accent-category-card[data-category-id="gloss"]:hover {
    background: linear-gradient(180deg, #ffffff 0%, #eef0f5 100%);
    box-shadow: 0 4px 20px rgba(0,0,0,.1), inset 0 1px 0 rgba(255,255,255,1);
}
.bps-accent-category-card[data-category-id="gloss"] .bps-cat-icon-wrap {
    background: linear-gradient(180deg, #4e6ef2 0%, #3b5de7 100%);
    box-shadow: 0 3px 8px rgba(59,93,231,.25), inset 0 1px 0 rgba(255,255,255,.25);
}
.bps-accent-category-card[data-category-id="gloss"] .bps-cat-icon-wrap .bps-cat-icon {
    filter: brightness(0) invert(1);
}
.bps-accent-category-card[data-category-id="gloss"].active {
    border-color: #4e6ef2;
    background: linear-gradient(180deg, #f0f2ff 0%, #e6e9ff 100%);
    box-shadow: 0 0 0 3px rgba(78,110,242,.12), 0 4px 15px rgba(78,110,242,.1);
}

/* ── Highlights: fluorescent neon glow ────────────────────────────── */
.bps-accent-category-card[data-category-id="highlights"] {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fffef5 0%, #fefff0 100%);
}
.bps-accent-category-card[data-category-id="highlights"]::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: conic-gradient(
        from 0deg,
        rgba(57,255,20,.0) 0deg,
        rgba(57,255,20,.15) 60deg,
        rgba(255,110,199,.15) 180deg,
        rgba(57,255,20,.0) 360deg
    );
    animation: bps-highlight-rotate 4s linear infinite;
    opacity: 0;
    transition: opacity .3s ease;
    border-radius: inherit;
    z-index: 0;
}
.bps-accent-category-card[data-category-id="highlights"]:hover::before {
    opacity: 1;
}
.bps-accent-category-card[data-category-id="highlights"] > * {
    position: relative;
    z-index: 1;
}
.bps-accent-category-card[data-category-id="highlights"] .bps-cat-icon-wrap {
    background: linear-gradient(135deg, #e8ff70, #b8ff50);
    box-shadow: 0 0 12px rgba(57,255,20,.2);
}
.bps-accent-category-card[data-category-id="highlights"].active {
    border-color: #39ff14;
    background: linear-gradient(135deg, #f4ffe0 0%, #e8ffc8 100%);
    box-shadow: 0 0 0 3px rgba(57,255,20,.12), 0 0 20px rgba(57,255,20,.08);
}

@keyframes bps-highlight-rotate {
    to { transform: rotate(360deg); }
}

/* ── Galaxy: cosmic card with shooting stars ──────────────────────── */
.bps-accent-category-card[data-category-id="galaxy"] {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0618 0%, #130d2e 40%, #1e1545 70%, #24243e 100%);
    border-color: rgba(139,92,246,.4);
    animation: bps-galaxy-border-pulse 3s ease-in-out infinite;
}

/* Nebula glow — constrained overlay */
.bps-accent-category-card[data-category-id="galaxy"]::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse 60% 70% at 20% 50%, rgba(139,92,246,.4) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 80% 30%, rgba(236,72,153,.25) 0%, transparent 60%),
        radial-gradient(ellipse 40% 50% at 60% 80%, rgba(59,130,246,.2) 0%, transparent 60%);
    animation: bps-nebula-drift 6s ease-in-out infinite alternate;
    pointer-events: none;
}

/* Stars layer */
.bps-accent-category-card[data-category-id="galaxy"]::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        radial-gradient(1.5px 1.5px at 10% 20%, rgba(255,255,255,.9) 50%, transparent 100%),
        radial-gradient(1px 1px at 25% 60%, rgba(255,255,255,.65) 50%, transparent 100%),
        radial-gradient(2px 2px at 40% 15%, rgba(255,255,255,1) 50%, transparent 100%),
        radial-gradient(1px 1px at 55% 75%, rgba(255,255,255,.55) 50%, transparent 100%),
        radial-gradient(1.5px 1.5px at 70% 35%, rgba(255,255,255,.85) 50%, transparent 100%),
        radial-gradient(2px 2px at 85% 55%, rgba(255,255,255,.9) 50%, transparent 100%),
        radial-gradient(1px 1px at 15% 82%, rgba(255,255,255,.5) 50%, transparent 100%),
        radial-gradient(1.5px 1.5px at 90% 10%, rgba(255,255,255,.7) 50%, transparent 100%),
        radial-gradient(1px 1px at 48% 45%, rgba(255,255,255,.8) 50%, transparent 100%),
        radial-gradient(1.5px 1.5px at 65% 5%, rgba(255,255,255,.7) 50%, transparent 100%),
        radial-gradient(2px 2px at 78% 78%, rgba(255,255,255,1) 50%, transparent 100%),
        radial-gradient(1px 1px at 5% 50%, rgba(255,255,255,.5) 50%, transparent 100%);
    animation: bps-stars-twinkle 2.5s ease-in-out infinite alternate;
    pointer-events: none;
}

/* Keep flex children on top of pseudo-elements */
.bps-accent-category-card[data-category-id="galaxy"] > .bps-cat-icon-wrap,
.bps-accent-category-card[data-category-id="galaxy"] > .bps-cat-info,
.bps-accent-category-card[data-category-id="galaxy"] > .bps-cat-arrow {
    position: relative;
    z-index: 2;
}

/* ── Shooting stars ── */
.bps-shooting-star {
    position: absolute !important;
    height: 1.5px;
    border-radius: 1px;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    /* reset any flex sizing */
    flex: none !important;
    width: auto !important;
    min-width: 0 !important;
    align-self: auto !important;
}
.bps-shooting-star:nth-child(1) {
    width: 50px !important;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.1) 10%, rgba(255,255,255,.9) 50%, rgba(168,85,247,.7) 100%);
    filter: drop-shadow(0 0 3px rgba(168,85,247,.5));
    animation: bps-shoot-1 3.5s 0.8s ease-in infinite;
}
.bps-shooting-star:nth-child(2) {
    width: 35px !important;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.1) 10%, rgba(255,255,255,.8) 50%, rgba(236,72,153,.6) 100%);
    filter: drop-shadow(0 0 2px rgba(236,72,153,.4));
    animation: bps-shoot-2 4.5s 2.5s ease-in infinite;
}
.bps-shooting-star:nth-child(3) {
    width: 40px !important;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.1) 10%, rgba(255,255,255,.85) 50%, rgba(59,130,246,.6) 100%);
    filter: drop-shadow(0 0 2px rgba(59,130,246,.4));
    animation: bps-shoot-3 5s 4s ease-in infinite;
}

/* Text colours for dark background */
.bps-accent-category-card[data-category-id="galaxy"] .bps-cat-name-row strong {
    color: #fff;
    text-shadow: 0 0 10px rgba(139,92,246,.5);
}
.bps-accent-category-card[data-category-id="galaxy"] .bps-cat-desc {
    color: rgba(255,255,255,.7);
}
.bps-accent-category-card[data-category-id="galaxy"] .bps-cat-count {
    color: rgba(255,255,255,.55);
}
.bps-accent-category-card[data-category-id="galaxy"] .bps-cat-arrow {
    color: rgba(255,255,255,.5);
}
.bps-accent-category-card[data-category-id="galaxy"] .bps-cat-surcharge {
    background: rgba(139,92,246,.3);
    color: #c4b5fd;
    border: 1px solid rgba(139,92,246,.3);
}

.bps-accent-category-card[data-category-id="galaxy"] .bps-cat-icon-wrap {
    background: linear-gradient(135deg, rgba(139,92,246,.4), rgba(236,72,153,.3));
    box-shadow: 0 0 12px rgba(139,92,246,.25), inset 0 0 6px rgba(255,255,255,.06);
    border: 1px solid rgba(139,92,246,.25);
}

/* Hover */
.bps-accent-category-card[data-category-id="galaxy"]:hover {
    border-color: rgba(139,92,246,.7);
    box-shadow: 0 0 25px rgba(139,92,246,.25), 0 0 50px rgba(139,92,246,.1);
    transform: translateX(2px);
}
.bps-accent-category-card[data-category-id="galaxy"]:hover .bps-cat-arrow {
    color: #a78bfa;
    filter: drop-shadow(0 0 6px rgba(139,92,246,.7));
    transform: translateX(3px);
}

/* Active */
.bps-accent-category-card[data-category-id="galaxy"].active {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139,92,246,.2), 0 0 30px rgba(139,92,246,.15);
}

/* ── Galaxy keyframes ── */
@keyframes bps-nebula-drift {
    0%   { opacity: .5; transform: scale(1) translate(0,0); }
    50%  { opacity: .9; transform: scale(1.1) translate(3%,-2%); }
    100% { opacity: .7; transform: scale(1.05) translate(-2%,3%); }
}

@keyframes bps-stars-twinkle {
    0%   { opacity: .3; }
    25%  { opacity: .9; }
    50%  { opacity: .5; }
    75%  { opacity: 1; }
    100% { opacity: .6; }
}

@keyframes bps-galaxy-border-pulse {
    0%, 100% { border-color: rgba(139,92,246,.35); }
    33%      { border-color: rgba(236,72,153,.4); }
    66%      { border-color: rgba(59,130,246,.35); }
}

/* Shooting star trajectories — fast diagonal streaks across the card */
@keyframes bps-shoot-1 {
    0%   { left: -15%; top: 18%; opacity: 0; transform: rotate(-22deg); }
    4%   { opacity: 1; }
    25%  { left: 110%; top: 40%; opacity: .7; transform: rotate(-22deg); }
    30%  { opacity: 0; }
    100% { opacity: 0; left: 110%; top: 40%; transform: rotate(-22deg); }
}
@keyframes bps-shoot-2 {
    0%   { left: -10%; top: 55%; opacity: 0; transform: rotate(-15deg); }
    5%   { opacity: .9; }
    22%  { left: 115%; top: 42%; opacity: .6; transform: rotate(-15deg); }
    28%  { opacity: 0; }
    100% { opacity: 0; left: 115%; top: 42%; transform: rotate(-15deg); }
}
@keyframes bps-shoot-3 {
    0%   { left: -12%; top: 75%; opacity: 0; transform: rotate(-30deg); }
    5%   { opacity: .8; }
    20%  { left: 105%; top: 25%; opacity: .5; transform: rotate(-30deg); }
    26%  { opacity: 0; }
    100% { opacity: 0; left: 105%; top: 25%; transform: rotate(-30deg); }
}

/* ================================================================== */

.bps-accent-colours-panel {
    padding: 4px 4px 10px;
    animation: bps-slide-in .25s ease-out;
}

@keyframes bps-slide-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.bps-accent-panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bps-surface-alt);
    border: 1px solid var(--bps-border);
    border-radius: var(--bps-radius-sm) var(--bps-radius-sm) 0 0;
    margin-bottom: 0;
}

.bps-panel-title-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.bps-panel-icon { font-size: 16px; }

.bps-panel-title-wrap strong {
    font-size: 14px;
    color: var(--bps-text);
}

.bps-panel-count {
    font-size: 12px;
    color: var(--bps-text-light);
    font-weight: 500;
}

.bps-panel-back {
    background: none;
    border: 1px solid var(--bps-border);
    border-radius: var(--bps-radius-xs);
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--bps-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all var(--bps-transition);
}

.bps-panel-back:hover {
    border-color: var(--bps-primary);
    color: var(--bps-primary);
    background: var(--bps-primary-bg);
}

.bps-accent-colours-panel .bps-accent-swatches {
    padding: 16px;
    background: var(--bps-surface);
    border: 1px solid var(--bps-border);
    border-top: none;
    border-radius: 0;
}

/* Colour chart link inside each accent panel */
.bps-colour-chart-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bps-surface);
    border: 1px solid var(--bps-border);
    border-top: none;
    border-radius: 0 0 var(--bps-radius-sm) var(--bps-radius-sm);
    font-size: 12px;
    font-weight: 600;
    color: var(--bps-primary);
    text-decoration: none;
    transition: all var(--bps-transition);
    cursor: pointer;
}

.bps-colour-chart-link:hover {
    background: var(--bps-primary-bg);
    color: var(--bps-primary);
}

.bps-colour-chart-link svg {
    flex-shrink: 0;
    opacity: .7;
}

/* duplicate disclaimer override removed — uses main .bps-colour-disclaimer above */

/* Disclaimer inside accent panel — flush with the panel's continuous border */
.bps-accent-colours-panel .bps-colour-disclaimer {
    margin: 0;
    border-radius: 0;
    border: 1px solid var(--bps-border);
    border-top: none;
    background: var(--bps-surface);
    padding: 14px 16px;
}

/* ------------------------------------------------------------------ */
/*  Galaxy finish — cosmic swatch effect                              */
/* ------------------------------------------------------------------ */
.bps-accent-swatch[data-category="galaxy"] .bps-swatch-ring {
    position: relative;
    overflow: hidden;
    border-color: transparent !important;
    box-shadow: 0 0 10px rgba(139,92,246,.35), 0 0 4px rgba(236,72,153,.2);
    animation: bps-swatch-cosmic-glow 3s ease-in-out infinite alternate;
}

.bps-accent-swatch[data-category="galaxy"] .bps-swatch-ring::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: conic-gradient(
        #6366f1, #818cf8, #a855f7, #c084fc,
        #ec4899, #f43f5e, #f97316, #f59e0b,
        #22d3ee, #06b6d4, #6366f1
    );
    animation: bps-galaxy-spin 2.5s linear infinite;
    z-index: 0;
}

.bps-accent-swatch[data-category="galaxy"] .bps-swatch-circle {
    position: relative;
    z-index: 1;
}

/* Nebula shimmer overlay on swatch */
.bps-accent-swatch[data-category="galaxy"] .bps-swatch-circle::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(ellipse at 25% 15%, rgba(168,85,247,.4) 0%, transparent 50%),
        radial-gradient(ellipse at 75% 85%, rgba(34,211,238,.3) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(236,72,153,.2) 0%, transparent 70%);
    mix-blend-mode: screen;
    z-index: 2;
    pointer-events: none;
    animation: bps-galaxy-shimmer 3s ease-in-out infinite alternate;
}

/* Tiny star dots on swatch */
.bps-accent-swatch[data-category="galaxy"] .bps-swatch-circle::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background-image:
        radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,.9) 50%, transparent 100%),
        radial-gradient(1px 1px at 60% 20%, rgba(255,255,255,.7) 50%, transparent 100%),
        radial-gradient(1.2px 1.2px at 40% 70%, rgba(255,255,255,.8) 50%, transparent 100%),
        radial-gradient(1px 1px at 80% 60%, rgba(255,255,255,.6) 50%, transparent 100%),
        radial-gradient(1px 1px at 30% 85%, rgba(255,255,255,.7) 50%, transparent 100%);
    z-index: 3;
    pointer-events: none;
    animation: bps-swatch-stars-pulse 2s ease-in-out infinite alternate;
}

.bps-accent-swatch[data-category="galaxy"]:hover .bps-swatch-ring {
    box-shadow: 0 0 18px rgba(139,92,246,.5), 0 0 8px rgba(236,72,153,.35);
}

.bps-accent-swatch[data-category="galaxy"].active .bps-swatch-ring {
    box-shadow: 0 0 22px rgba(139,92,246,.55), 0 0 10px rgba(236,72,153,.35), 0 0 0 3px rgba(124,92,255,.2);
}

/* Galaxy swatch label text glow */
.bps-accent-swatch[data-category="galaxy"] .bps-swatch-label {
    text-shadow: 0 0 6px rgba(139,92,246,.15);
}

@keyframes bps-galaxy-spin {
    to { transform: rotate(360deg); }
}

@keyframes bps-galaxy-shimmer {
    0%   { opacity: .4; transform: scale(.96); }
    50%  { opacity: .8; transform: scale(1.02); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes bps-swatch-stars-pulse {
    0%   { opacity: .3; }
    30%  { opacity: .9; }
    60%  { opacity: .5; }
    100% { opacity: 1; }
}

@keyframes bps-swatch-cosmic-glow {
    0%   { box-shadow: 0 0 8px rgba(139,92,246,.3), 0 0 3px rgba(236,72,153,.15); }
    50%  { box-shadow: 0 0 14px rgba(168,85,247,.45), 0 0 6px rgba(34,211,238,.2); }
    100% { box-shadow: 0 0 10px rgba(236,72,153,.3), 0 0 4px rgba(139,92,246,.2); }
}

/* ------------------------------------------------------------------ */
/*  Mirror finish — polished chrome swatch effect                     */
/* ------------------------------------------------------------------ */

/* Ring: chrome spinning border + silver glow */
.bps-accent-swatch[data-category="mirror"] .bps-swatch-ring {
    position: relative;
    overflow: hidden;
    border-color: transparent !important;
    box-shadow: 0 0 8px rgba(180,195,220,.4), 0 0 3px rgba(220,225,235,.3);
    animation: bps-mirror-ring-glow 3s ease-in-out infinite alternate;
}

/* Rotating chrome conic-gradient border */
.bps-accent-swatch[data-category="mirror"] .bps-swatch-ring::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: conic-gradient(
        rgba(200,210,225,.15) 0deg,
        rgba(255,255,255,.95) 30deg,
        rgba(190,200,220,.3) 60deg,
        rgba(220,225,235,.1) 90deg,
        rgba(255,255,255,.85) 150deg,
        rgba(180,195,215,.2) 180deg,
        rgba(255,255,255,.9) 240deg,
        rgba(200,210,225,.15) 270deg,
        rgba(255,255,255,.8) 320deg,
        rgba(200,210,225,.15) 360deg
    );
    animation: bps-mirror-spin 4s linear infinite;
    z-index: 0;
}

/* Keep swatch circle above the spinning border */
.bps-accent-swatch[data-category="mirror"] .bps-swatch-circle {
    position: relative;
    z-index: 1;
}

/* Reflective glint sweep across the swatch surface */
.bps-accent-swatch[data-category="mirror"] .bps-swatch-circle::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        linear-gradient(
            135deg,
            transparent 0%,
            transparent 35%,
            rgba(255,255,255,.55) 42%,
            rgba(255,255,255,.85) 45%,
            rgba(240,245,255,.4) 48%,
            rgba(255,255,255,.55) 51%,
            transparent 58%,
            transparent 100%
        );
    z-index: 2;
    pointer-events: none;
    animation: bps-mirror-glint 3s ease-in-out infinite;
}

/* Polished chrome highlight — soft top-left light source */
.bps-accent-swatch[data-category="mirror"] .bps-swatch-circle::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(ellipse 70% 50% at 30% 25%, rgba(255,255,255,.45) 0%, transparent 60%),
        radial-gradient(ellipse 40% 30% at 70% 75%, rgba(200,210,230,.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(220,225,240,.08) 0%, transparent 70%);
    mix-blend-mode: overlay;
    z-index: 3;
    pointer-events: none;
    animation: bps-mirror-sheen 4s ease-in-out infinite alternate;
}

/* Hover: intensify the chrome glow */
.bps-accent-swatch[data-category="mirror"]:hover .bps-swatch-ring {
    box-shadow: 0 0 16px rgba(180,195,220,.55), 0 0 6px rgba(220,225,235,.4);
}

/* Active: selection ring + amplified glow */
.bps-accent-swatch[data-category="mirror"].active .bps-swatch-ring {
    box-shadow: 0 0 20px rgba(180,195,220,.5), 0 0 8px rgba(220,225,235,.35), 0 0 0 3px rgba(124,92,255,.2);
}

/* Chrome label shimmer */
.bps-accent-swatch[data-category="mirror"] .bps-swatch-label {
    background: linear-gradient(90deg, #6b7280, #9ca3af, #6b7280);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: bps-mirror-label-shimmer 3s linear infinite;
}

/* ── Mirror swatch keyframes ── */
@keyframes bps-mirror-spin {
    to { transform: rotate(360deg); }
}

@keyframes bps-mirror-ring-glow {
    0%   { box-shadow: 0 0 6px rgba(180,195,220,.3), 0 0 2px rgba(220,225,235,.2); }
    50%  { box-shadow: 0 0 14px rgba(200,210,230,.5), 0 0 5px rgba(240,245,255,.35); }
    100% { box-shadow: 0 0 8px rgba(180,195,220,.35), 0 0 3px rgba(220,225,235,.25); }
}

@keyframes bps-mirror-glint {
    0%   { transform: rotate(0deg) scale(1); opacity: 0; }
    10%  { opacity: .3; }
    30%  { opacity: .9; }
    50%  { transform: rotate(90deg) scale(1.05); opacity: .6; }
    70%  { opacity: .85; }
    85%  { opacity: .2; }
    100% { transform: rotate(180deg) scale(1); opacity: 0; }
}

@keyframes bps-mirror-sheen {
    0%   { opacity: .35; transform: scale(.97); }
    50%  { opacity: .7; transform: scale(1.02); }
    100% { opacity: .5; transform: scale(1); }
}

@keyframes bps-mirror-label-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ------------------------------------------------------------------ */
/*  Instagram Tag Field                                               */
/* ------------------------------------------------------------------ */
.bps-instagram-field {
    margin: 16px 4px 8px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(139,92,246,.04), rgba(236,72,153,.03));
    border: 1px solid rgba(139,92,246,.12);
    border-radius: 12px;
}
.bps-instagram-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 8px;
}
.bps-instagram-label svg { stroke: #8b5cf6; flex-shrink: 0; }
.bps-instagram-input-wrap {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}
.bps-instagram-input-wrap:focus-within {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139,92,246,.12);
}
.bps-instagram-at {
    padding: 10px 0 10px 12px;
    font-size: 14px;
    font-weight: 700;
    color: #8b5cf6;
    user-select: none;
    flex-shrink: 0;
    line-height: 1;
}
.bps-instagram-input-wrap input {
    flex: 1;
    border: none !important;
    outline: none !important;
    padding: 10px 12px 10px 4px !important;
    font-size: 14px;
    color: #1e293b;
    background: transparent !important;
    font-family: inherit;
    box-shadow: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}
.bps-instagram-hint {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.4;
}

/* ------------------------------------------------------------------ */
/*  Summary                                                           */
/* ------------------------------------------------------------------ */
.bps-summary {
    margin: 16px 4px;
    animation: bps-fade-up .3s ease-out both;
}

@keyframes bps-fade-up {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.bps-summary-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    background: var(--bps-surface);
    border: 1.5px solid var(--bps-primary);
    border-radius: var(--bps-radius);
    box-shadow: 0 0 0 4px rgba(124,92,255,.06), var(--bps-shadow);
    transition: all var(--bps-transition);
}

.bps-summary-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(124,92,255,.08), rgba(124,92,255,.14));
    border: 1px solid rgba(124,92,255,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--bps-primary);
}

.bps-summary-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.bps-summary-title {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--bps-text-muted);
}

.bps-summary-variant {
    font-size: 14px;
    font-weight: 600;
    color: var(--bps-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bps-summary-meta {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bps-summary-sku {
    font-size: 11px;
    color: var(--bps-text-light);
    font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', monospace;
}

.bps-summary-sep {
    color: var(--bps-border-hover);
    font-size: 13px;
    line-height: 1;
}

.bps-summary-stock {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: var(--bps-success);
}

.bps-stock-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--bps-success);
    box-shadow: 0 0 0 3px rgba(16,185,129,.18);
    animation: bps-stock-pulse 2s ease-in-out infinite;
}

@keyframes bps-stock-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(16,185,129,.18); }
    50%      { box-shadow: 0 0 0 6px rgba(16,185,129,.08); }
}

.bps-summary-price-wrap {
    text-align: right;
    flex-shrink: 0;
    padding: 0;
}

.bps-summary-price-label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--bps-text-light);
    margin-bottom: 1px;
}

.bps-summary-price {
    font-size: 26px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--bps-primary), #6244e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -.02em;
    line-height: 1.1;
}

/* ------------------------------------------------------------------ */
/*  Add to cart button                                                */
/* ------------------------------------------------------------------ */
.bps-cart-form {
    padding: 0 4px;
}

.bps-add-to-cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 28px;
    border: none;
    border-radius: var(--bps-radius);
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .03em;
    cursor: pointer;
    overflow: hidden;
    transition: all var(--bps-transition);
    box-shadow: 0 4px 20px rgba(37,99,235,.3);
}

.bps-add-to-cart-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(37,99,235,.4);
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
}

.bps-add-to-cart-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37,99,235,.25);
    color: #fff;
}

.bps-add-to-cart-btn:disabled {
    background: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
}

.bps-add-to-cart-btn svg {
    flex-shrink: 0;
    opacity: .9;
    position: relative;
    z-index: 1;
}

.bps-btn-text,
.bps-btn-price {
    position: relative;
    z-index: 1;
}

.bps-btn-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.15) 50%, transparent 100%);
    transition: none;
}

.bps-add-to-cart-btn:not(:disabled) .bps-btn-shimmer {
    animation: bps-shimmer 3s ease-in-out infinite;
}

@keyframes bps-shimmer {
    0% { left: -100%; }
    40%, 100% { left: 100%; }
}

.bps-btn-price {
    font-weight: 700;
    font-size: 16px;
    margin-left: 4px;
    opacity: .9;
}

/* ------------------------------------------------------------------ */
/*  Footer note                                                       */
/* ------------------------------------------------------------------ */
.bps-footer-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px;
    font-size: 11px;
    color: var(--bps-text-light);
    font-weight: 500;
    letter-spacing: .02em;
}

.bps-footer-note svg {
    opacity: .5;
    flex-shrink: 0;
}

/* ------------------------------------------------------------------ */
/*  Trust badges — pill chips                                         */
/* ------------------------------------------------------------------ */
.bps-trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px 18px;
}

.bps-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 500;
    color: var(--bps-text-light);
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 4px 0;
    letter-spacing: .02em;
    transition: all .25s ease;
    cursor: default;
    white-space: nowrap;
}

.bps-trust-badge:hover {
    color: var(--bps-text-muted);
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    transform: none;
}

.bps-trust-badge svg {
    opacity: .4;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

.bps-trust-sep {
    color: var(--bps-border);
    font-size: 10px;
}

/* ------------------------------------------------------------------ */
/*  Price range (WC default price override)                           */
/* ------------------------------------------------------------------ */
.bps-price-range {
    font-size: 24px;
    font-weight: 800;
    color: var(--bps-text);
}

/* ------------------------------------------------------------------ */
/*  Ripple effect                                                     */
/* ------------------------------------------------------------------ */
.bps-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(124,92,255,.2);
    transform: scale(0);
    animation: bps-ripple-anim .5s ease-out;
    pointer-events: none;
}

@keyframes bps-ripple-anim {
    to { transform: scale(3); opacity: 0; }
}

/* ------------------------------------------------------------------ */
/*  Responsive                                                        */
/* ------------------------------------------------------------------ */
@media (max-width: 640px) {
    .bps-selector { padding: 0 4px; }

    .bps-price-header { padding: 20px 16px 16px; }
    .bps-price-amount { font-size: 26px; }

    .bps-position-options { grid-template-columns: repeat(3, 1fr); gap: 10px; }

    .bps-step-header { padding: 14px 16px; gap: 10px; }
    .bps-step-number { width: 32px; height: 32px; font-size: 13px; }
    .bps-step-title { font-size: 14px; }

    .bps-summary-inner { flex-wrap: wrap; padding: 16px; gap: 12px; }
    .bps-summary-price-wrap { width: 100%; text-align: left; border-top: 1px solid rgba(124,92,255,.12); padding-top: 10px; display: flex; align-items: center; justify-content: space-between; }

    .bps-accent-category-card { padding: 12px; gap: 8px; }
    .bps-accent-categories { grid-template-columns: 1fr; }

    .bps-trust-badges { gap: 6px; }
    .bps-trust-badge { font-size: 11px; padding: 5px 12px; }

    .bps-add-to-cart-btn { padding: 14px 20px; font-size: 15px; }
}

@media (max-width: 420px) {
    .bps-position-options { grid-template-columns: repeat(3, 1fr); }
    .bps-price-hero { flex-direction: column; gap: 6px; }
    .bps-price-divider { display: none; }
}

/* ================================================================== */
/*  Cart Popup (AJAX success / error)                                 */
/* ================================================================== */
.bps-cart-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s ease;
    padding: 20px;
}
.bps-cart-popup-overlay.bps-popup-visible {
    opacity: 1;
}

.bps-cart-popup {
    background: #fff;
    border-radius: 20px;
    padding: 36px 32px 28px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0,0,0,.15), 0 10px 20px rgba(0,0,0,.08);
    transform: scale(.85) translateY(20px);
    transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.bps-popup-visible .bps-cart-popup {
    transform: scale(1) translateY(0);
}

.bps-popup-icon {
    margin-bottom: 16px;
}
.bps-popup-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: bps-popup-circle-draw .6s ease-out forwards;
}
.bps-popup-check {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: bps-popup-check-draw .4s .35s ease-out forwards;
}
@keyframes bps-popup-circle-draw {
    to { stroke-dashoffset: 0; }
}
@keyframes bps-popup-check-draw {
    to { stroke-dashoffset: 0; }
}

.bps-popup-title {
    font-size: 22px;
    font-weight: 800;
    color: #10b981;
    margin: 0 0 10px;
}

.bps-popup-details {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.6;
    margin: 0 0 20px;
}
.bps-popup-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--bps-primary, #7c5cff);
}

.bps-popup-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bps-popup-btn {
    display: block;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all .2s ease;
}

.bps-popup-continue {
    background: #f3f4f6;
    color: #374151;
}
.bps-popup-continue:hover {
    background: #e5e7eb;
}

.bps-popup-cart {
    background: var(--bps-primary, #7c5cff);
    color: #fff !important;
}
.bps-popup-cart:hover {
    background: #6b4ce6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124,92,255,.3);
}

.bps-popup-checkout {
    background: #10b981;
    color: #fff !important;
}
.bps-popup-checkout:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16,185,129,.3);
}

.bps-cart-popup-error .bps-popup-continue {
    background: #ef4444;
    color: #fff;
}
.bps-cart-popup-error .bps-popup-continue:hover {
    background: #dc2626;
}

.bps-btn-success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border-color: #10b981 !important;
}

@media (max-width: 480px) {
    .bps-cart-popup { padding: 28px 20px 22px; }
    .bps-popup-title { font-size: 20px; }
}

/* ================================================================== */
/*  Custom Design CTA — Hero section                                  */
/* ================================================================== */
.bpp-custom-cta {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    padding: 80px 0;
}

/* Floating orbs */
.bpp-custom-cta-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.bpp-custom-cta-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
}

.bpp-orb-1 {
    width: 320px;
    height: 320px;
    background: #6366f1;
    top: -80px;
    left: -60px;
    animation: bppOrbFloat1 8s ease-in-out infinite;
}

.bpp-orb-2 {
    width: 240px;
    height: 240px;
    background: #ec4899;
    bottom: -60px;
    right: 10%;
    animation: bppOrbFloat2 10s ease-in-out infinite;
}

.bpp-orb-3 {
    width: 180px;
    height: 180px;
    background: #8b5cf6;
    top: 30%;
    right: -40px;
    animation: bppOrbFloat3 7s ease-in-out infinite;
}

@keyframes bppOrbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 20px) scale(1.1); }
}
@keyframes bppOrbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, -30px) scale(1.15); }
}
@keyframes bppOrbFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-15px, 15px) scale(1.05); }
}

.bpp-custom-cta-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 60px;
    align-items: center;
}

/* Content */
.bpp-custom-cta-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.bpp-custom-cta-kicker svg {
    color: #f59e0b;
}

.bpp-custom-cta-title {
    font-size: 36px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.bpp-custom-cta-desc {
    font-size: 16px;
    line-height: 1.7;
    color: #94a3b8;
    margin: 0 0 28px;
    max-width: 540px;
}

/* Feature checks */
.bpp-custom-cta-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
    margin-bottom: 32px;
}

.bpp-custom-cta-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #cbd5e1;
    font-weight: 500;
}

.bpp-custom-cta-feature svg {
    color: #10b981;
    flex-shrink: 0;
}

/* CTA Button */
.bpp-custom-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    border-radius: 14px;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3), 0 0 0 0 rgba(99, 102, 241, 0);
    position: relative;
    overflow: hidden;
}

.bpp-custom-cta-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bpp-custom-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4), 0 0 0 4px rgba(99, 102, 241, 0.15);
    color: #fff !important;
    text-decoration: none !important;
}

.bpp-custom-cta-btn:hover::before {
    opacity: 1;
}

.bpp-custom-cta-btn svg:last-child {
    transition: transform 0.3s ease;
}

.bpp-custom-cta-btn:hover svg:last-child {
    transform: translateX(3px);
}

/* Visual — floating badges */
.bpp-custom-cta-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bpp-custom-cta-badge-stack {
    position: relative;
    width: 260px;
    height: 260px;
}

.bpp-cta-badge {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bpp-cta-badge-1 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(139, 92, 246, 0.15));
    color: #a5b4fc;
    top: 10px;
    left: 10px;
    animation: bppBadgeFloat 6s ease-in-out infinite;
}

.bpp-cta-badge-2 {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.25), rgba(244, 114, 182, 0.15));
    color: #f9a8d4;
    top: 0;
    right: 30px;
    animation: bppBadgeFloat 5s ease-in-out 1s infinite;
}

.bpp-cta-badge-3 {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(52, 211, 153, 0.15));
    color: #6ee7b7;
    bottom: 20px;
    left: 40px;
    animation: bppBadgeFloat 7s ease-in-out 0.5s infinite;
}

.bpp-cta-question {
    position: absolute;
    bottom: 10px;
    right: 20px;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(251, 191, 36, 0.15));
    color: #fbbf24;
    font-size: 32px;
    font-weight: 800;
    border: 1px solid rgba(251, 191, 36, 0.2);
    backdrop-filter: blur(10px);
    animation: bppQuestionPulse 3s ease-in-out infinite;
}

@keyframes bppBadgeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes bppQuestionPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.2); }
    50% { transform: scale(1.08); box-shadow: 0 0 0 12px rgba(251, 191, 36, 0); }
}

/* Responsive */
@media (max-width: 900px) {
    .bpp-custom-cta { padding: 60px 0; }
    .bpp-custom-cta-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .bpp-custom-cta-desc { max-width: none; }
    .bpp-custom-cta-features { justify-items: center; }
    .bpp-custom-cta-content { display: flex; flex-direction: column; align-items: center; }
    .bpp-custom-cta-visual { order: -1; }
    .bpp-custom-cta-badge-stack { width: 200px; height: 200px; }
    .bpp-cta-badge-1 { width: 80px; height: 80px; }
    .bpp-cta-badge-1 svg { width: 36px; height: 36px; }
    .bpp-cta-badge-2 { width: 64px; height: 64px; }
    .bpp-cta-badge-2 svg { width: 30px; height: 30px; }
    .bpp-cta-badge-3 { width: 72px; height: 72px; }
    .bpp-cta-badge-3 svg { width: 32px; height: 32px; }
    .bpp-cta-question { width: 56px; height: 56px; font-size: 24px; }
}

@media (max-width: 600px) {
    .bpp-custom-cta-title { font-size: 26px; }
    .bpp-custom-cta-features { grid-template-columns: 1fr; gap: 10px; }
    .bpp-custom-cta-btn { width: 100%; justify-content: center; }
}
