.pcpe-demo {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: var(--pcpe-demo-height, 900px);
    min-height: 680px;
    border: 1px solid rgba(33,79,78,.12);
    background: #f6faf7;
    color: var(--pcpe-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    box-shadow: 0 22px 65px rgba(33,79,78,.11);
}
.pcpe-demo *, .pcpe-demo *::before, .pcpe-demo *::after { box-sizing: border-box; }
.pcpe-demo__bar { position: relative; z-index: 120; display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 18px; min-height: 56px; padding: 0 16px; border-bottom: 1px solid rgba(33,79,78,.11); background: rgba(255,255,255,.96); color: var(--pcpe-ink); }
.pcpe-demo__bar-copy, .pcpe-demo__bar-actions, .pcpe-demo__bar-center { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pcpe-demo__bar-center { justify-content: center; }
.pcpe-demo__bar-actions { justify-content: flex-end; }
.pcpe-demo__bar-copy strong { font-size: .78rem; white-space: nowrap; }
.pcpe-demo__bar-copy > span:last-child { overflow: hidden; color: var(--pcpe-muted); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.pcpe-demo__live-dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: #35a66f; box-shadow: 0 0 0 4px rgba(53,166,111,.12); }
.pcpe-demo__tour-launch, .pcpe-demo__mobile-menu { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 34px; padding: 0 11px; cursor: pointer; color: var(--pcpe-ink); font-size: .68rem; font-weight: 850; }
.pcpe-demo__tour-launch {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 18px;
    border: 1px solid rgba(232,111,125,.32);
    border-radius: 999px;
    background: var(--pcpe-yellow);
    color: var(--pcpe-ink);
    box-shadow: 0 8px 24px rgba(232,111,125,.18);
    isolation: isolate;
    white-space: nowrap;
}
.pcpe-demo__tour-launch::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -1px;
    border: 2px solid rgba(232,111,125,.42);
    border-radius: inherit;
    pointer-events: none;
    animation: pcpe-demo-tour-pulse 1.8s ease-out infinite;
}
.pcpe-demo__tour-launch:hover,
.pcpe-demo__tour-launch:focus-visible {
    background: #ffe37c;
    box-shadow: 0 10px 30px rgba(232,111,125,.26);
}
.pcpe-demo__tour-launch:focus-visible {
    outline: 3px solid rgba(232,111,125,.34);
    outline-offset: 3px;
}
@keyframes pcpe-demo-tour-pulse {
    0% { opacity: .78; transform: scale(1); }
    72%,100% { opacity: 0; transform: scale(1.34); }
}
.pcpe-demo__mobile-menu { display: none; background: var(--pcpe-ink); color: #fff; }
.pcpe-demo__tour-launch .pcpe-ui-icon, .pcpe-demo__mobile-menu .pcpe-ui-icon { width: 16px; height: 16px; }
.pcpe-demo__viewport { position: absolute; inset: 48px 0 0; overflow: hidden; container-type: inline-size; background: radial-gradient(circle at 90% 5%, rgba(246,200,208,.28), transparent 28rem), linear-gradient(180deg,#f6faf7 0%,#fffdf8 100%); }
.pcpe-demo__portal { position: relative; width: 100%; height: 100%; min-height: 0; }
.pcpe-demo .pcpe-sidebar { position: absolute; z-index: 60; height: 100%; }
.pcpe-demo .pcpe-shell { height: 100%; min-height: 0; overflow-y: auto; scrollbar-gutter: stable; scroll-behavior: auto !important; }
.pcpe-demo .pcpe-main { min-height: calc(100% - 90px); }
.pcpe-demo .pcpe-overlay { position: absolute; }
.pcpe-demo .pcpe-sidebar__close {
    display: none !important;
    visibility: hidden;
    pointer-events: none;
}
.pcpe-demo .pcpe-demo-panel[hidden] { display: none !important; }
.pcpe-demo .pcpe-demo-panel { animation: pcpe-demo-panel-in .22s ease both; }
.pcpe-demo .pcpe-text-link, .pcpe-demo .pcpe-logout, .pcpe-demo .pcpe-brand, .pcpe-demo .pcpe-nav__item, .pcpe-demo .pcpe-mobile-head__brand, .pcpe-demo .pcpe-footer a { cursor: pointer; }
.pcpe-demo .pcpe-demo__next-percent { position: absolute; top: 27px; right: 28px; }
.pcpe-demo .pcpe-next-level { position: relative; }
.pcpe-demo .pcpe-reward-card > button { align-self: center; }
.pcpe-demo .pcpe-coupon { cursor: pointer; }
.pcpe-demo .pcpe-field input[readonly] { cursor: default; }
@keyframes pcpe-demo-panel-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.pcpe-demo__toast { position: absolute; z-index: 150; right: 20px; bottom: 20px; display: flex; align-items: center; gap: 12px; max-width: 390px; padding: 14px 16px; background: var(--pcpe-ink); color: #fff; box-shadow: 0 18px 45px rgba(0,0,0,.22); opacity: 0; pointer-events: none; transform: translateY(15px); transition: opacity .2s ease, transform .2s ease; }
.pcpe-demo__toast.is-visible { opacity: 1; transform: none; }
.pcpe-demo__toast > span { display: grid; place-items: center; width: 38px; height: 38px; background: var(--pcpe-yellow); color: var(--pcpe-ink); }
.pcpe-demo__toast strong, .pcpe-demo__toast small { display: block; }
.pcpe-demo__toast strong { font-size: .78rem; }
.pcpe-demo__toast small { margin-top: 3px; color: rgba(255,255,255,.66); font-size: .64rem; }

.pcpe-tour[hidden] { display: none !important; }
.pcpe-tour { position: absolute; inset: 0; z-index: 200; }
.pcpe-tour__shade { position: absolute; inset: 0; background: transparent; }
.pcpe-tour__spotlight { position: absolute; z-index: 1; border: 3px solid var(--pcpe-yellow); border-radius: 18px; box-shadow: 0 0 0 9999px rgba(9,26,26,.74), 0 14px 42px rgba(0,0,0,.26); pointer-events: none; transition: top .16s ease,left .16s ease,width .16s ease,height .16s ease; }
.pcpe-tour__card { position: absolute; z-index: 3; width: min(390px,calc(100% - 28px)); padding: 22px; border-radius: 22px; background: #fff; color: var(--pcpe-ink); box-shadow: 0 28px 80px rgba(0,0,0,.34); }
.pcpe-tour__meta { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 17px; }
.pcpe-tour__meta > span { color: var(--pcpe-muted); font-size: .65rem; font-weight: 850; }
.pcpe-tour__meta button { all: unset; box-sizing: border-box; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; cursor: pointer; background: var(--pcpe-cream); }
.pcpe-tour__meta .pcpe-ui-icon { width: 17px; height: 17px; }
.pcpe-tour__kicker { display: block; margin-bottom: 8px; color: var(--pcpe-coral); font-size: .61rem; font-weight: 900; letter-spacing: .14em; }
.pcpe-tour__card h3 { margin: 0 0 8px; font-size: 1.35rem; letter-spacing: -.025em; }
.pcpe-tour__card p { margin: 0 0 20px; color: var(--pcpe-muted); font-size: .77rem; line-height: 1.6; }
.pcpe-tour__actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.pcpe-tour__actions > div { display: flex; gap: 8px; }
.pcpe-tour__skip, .pcpe-tour__back, .pcpe-tour__next { all: unset; box-sizing: border-box; min-height: 38px; padding: 0 13px; border-radius: 11px; cursor: pointer; font-size: .68rem; font-weight: 850; }
.pcpe-tour__skip { color: var(--pcpe-muted); }
.pcpe-tour__back { border: 1px solid var(--pcpe-line); }
.pcpe-tour__next { background: var(--pcpe-yellow); }
.pcpe-tour__back[disabled] { opacity: .35; cursor: default; }

@container (max-width: 960px) {
    .pcpe-demo .pcpe-sidebar__close {
        all: unset;
        box-sizing: border-box;
        display: grid !important;
        place-items: center;
        width: 40px;
        height: 40px;
        border-radius: 13px;
        background: rgba(255,255,255,.08);
        color: #fff;
        cursor: pointer;
        visibility: visible;
        pointer-events: auto;
    }
    .pcpe-demo .pcpe-sidebar__close .pcpe-ui-icon { width: 20px; height: 20px; }
    .pcpe-demo .pcpe-sidebar { width: min(310px,88cqw); transform: translateX(-105%); transition: transform .25s ease; }
    .pcpe-demo.pcpe-nav-open .pcpe-sidebar { transform: translateX(0); }
    .pcpe-demo .pcpe-overlay { inset: 0; z-index: 50; display: block; background: rgba(10,31,30,.55); opacity: 0; visibility: hidden; transition: opacity .25s ease,visibility .25s ease; }
    .pcpe-demo.pcpe-nav-open .pcpe-overlay { opacity: 1; visibility: visible; }
    .pcpe-demo .pcpe-shell { margin-left: 0; }
    .pcpe-demo .pcpe-mobile-head { display: flex; }
    .pcpe-demo .pcpe-main, .pcpe-demo .pcpe-footer { width: min(100% - 40px,900px); }
    .pcpe-demo .pcpe-main { padding-top: 42px; }
    .pcpe-demo .pcpe-stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .pcpe-demo .pcpe-stat-grid--referrals { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .pcpe-demo .pcpe-campaign-grid--all { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .pcpe-demo .pcpe-mission-grid--all { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .pcpe-demo__mobile-menu { display: inline-flex; }
}
@container (max-width: 720px) {
    .pcpe-demo .pcpe-main, .pcpe-demo .pcpe-footer { width: min(100% - 28px,620px); }
    .pcpe-demo .pcpe-main { padding: 32px 0 70px; }
    .pcpe-demo .pcpe-page-head h1 { font-size: 2.25rem; }
    .pcpe-demo .pcpe-stat-grid, .pcpe-demo .pcpe-stat-grid--referrals, .pcpe-demo .pcpe-campaign-grid, .pcpe-demo .pcpe-campaign-grid--all, .pcpe-demo .pcpe-mission-grid, .pcpe-demo .pcpe-mission-grid--all, .pcpe-demo .pcpe-reward-grid, .pcpe-demo .pcpe-form-grid, .pcpe-demo .pcpe-referral-steps, .pcpe-demo .pcpe-club-metrics, .pcpe-demo .pcpe-requirement-grid, .pcpe-demo .pcpe-level-roadmap { grid-template-columns: 1fr; }
    .pcpe-demo .pcpe-referral-hub { grid-template-columns: 1fr; }
    .pcpe-demo .pcpe-level-teaser { grid-template-columns: 1fr; }
    .pcpe-demo .pcpe-level-teaser > .pcpe-button { grid-column: auto; width: 100%; }
    .pcpe-demo .pcpe-club-hero { grid-template-columns: 1fr; }
    .pcpe-demo .pcpe-demo__next-percent { position: static; display: block; margin: -54px 0 18px auto; width: max-content; }
}

@media (max-width: 860px) {
    .pcpe-demo__bar { grid-template-columns: minmax(0,1fr) auto auto; gap: 12px; }
    .pcpe-demo__bar-copy > span:last-child { display: none; }
}
@media (max-width: 580px) {
    .pcpe-demo__bar-copy > span:last-child { display: none; }
    .pcpe-demo__bar { grid-template-columns: minmax(0,1fr) auto auto; }
    .pcpe-demo__tour-launch { min-height: 34px; padding: 0 14px; font-size: .64rem; }
    .pcpe-demo__toast { right: 12px; bottom: 12px; left: 12px; }
    .pcpe-tour__card { left: 14px !important; right: 14px !important; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .pcpe-demo__tour-launch::before { animation: none !important; opacity: 0; }
    .pcpe-demo *, .pcpe-demo *::before, .pcpe-demo *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
