/* ===== Dashboard referral banner =====
   Same brand family as rating-popup.css / refer-popup.css: white card, pink
   accent for the reward, brand blue for the mechanism/CTA text. */

/* Soften the legacy dismiss "X" (view.css draws it in bright red) so it
   doesn't fight the card's own accent color. */
.summer-promotion_container .cross:before,
.summer-promotion_container .cross:after {
    background-color: #b7c0cc !important;
}
.summer-promotion_container .cross:hover:before,
.summer-promotion_container .cross:hover:after {
    background-color: #7b8794 !important;
}

.pb-card {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 640px;
    margin: 0 auto;
    padding: 14px 20px;
    background: #fff;
    border: 1px solid #ffd9e6;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(248, 40, 114, .08);
    text-decoration: none;
    transition: box-shadow .15s ease, transform .1s ease;
}
.pb-card:hover,
.pb-card:focus {
    box-shadow: 0 6px 28px rgba(248, 40, 114, .14);
    text-decoration: none;
}
.pb-card:active {
    transform: scale(.99);
}

.pb-icon {
    flex: none;
    font-size: 30px;
    line-height: 1;
}

.pb-copy {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.pb-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #F82872;
    margin: 0 0 2px;
}

.pb-heading {
    font-size: 16px;
    font-weight: 700;
    color: #243b53;
    margin: 0 0 2px;
    line-height: 1.3;
}
.pb-heading .pb-value {
    font-weight: 700;
    color: #F82872;
}

.pb-sub {
    font-size: 13px;
    color: #627d98;
    margin: 0;
    line-height: 1.4;
}

.pb-arrow {
    flex: none;
    font-size: 18px;
    color: #2f80ed;
}

@media only screen and (max-width: 768px) {
    .pb-card {
        max-width: none;
        padding: 12px 16px;
    }
    .pb-icon {
        font-size: 24px;
    }
    .pb-heading {
        font-size: 15px;
    }
    .pb-sub {
        font-size: 12px;
    }
}

/* Subscription-trial variant: same shape, blue border/shadow accent so a
   returning visitor can tell at a glance which dashboard banner they're
   looking at. Eyebrow/heading-value/countdown stay the site's flashy pink,
   matching Free Demo and Refer a Friend. */
.pb-card--subscription {
    border-color: #cfe0fb;
    box-shadow: 0 4px 20px rgba(47, 128, 237, .08);
    cursor: pointer;
}
.pb-card--subscription:hover,
.pb-card--subscription:focus {
    box-shadow: 0 6px 28px rgba(47, 128, 237, .14);
}

/* Assessment-ready variant: a graded result waiting to be viewed, not a
   promo offer, so it gets its own green accent (distinct from pink offers
   and the blue subscription trial) — reads as a status, not a pitch. */
.pb-card--assessment {
    border-color: #c6ecd7;
    box-shadow: 0 4px 20px rgba(39, 174, 96, .1);
}
.pb-card--assessment:hover,
.pb-card--assessment:focus {
    box-shadow: 0 6px 28px rgba(39, 174, 96, .16);
}
.pb-card--assessment .pb-eyebrow {
    color: #27ae60;
}

/* Assessment-push variant: no result yet to show, so instead of a fixed
   level it shows the full Beginner->Advanced scale with a highlight that
   chases across all six segments -- "find out where YOU land on this",
   not a claim about any specific level. */
.pb-card--scan {
    max-width: 640px;
    align-items: stretch;
    border-color: #cdd8ea;
    box-shadow: 0 4px 20px rgba(22, 35, 63, .1);
}
.pb-card--scan:hover,
.pb-card--scan:focus {
    box-shadow: 0 6px 28px rgba(22, 35, 63, .16);
}
.pb-card--scan .pb-eyebrow {
    color: #16233F;
}
.pb-card--scan .pb-copy {
    width: 100%;
}
.pb-scan-meter {
    display: flex;
    gap: 5px;
    margin: 12px 0 6px;
}
.pb-scan-seg {
    flex: 1;
    height: 10px;
    border-radius: 5px;
    background: #e4e9f0;
    animation: pb-scan-chase 3s ease-in-out infinite;
}
.pb-scan-seg:nth-child(1) { animation-delay: 0s; }
.pb-scan-seg:nth-child(2) { animation-delay: .5s; }
.pb-scan-seg:nth-child(3) { animation-delay: 1s; }
.pb-scan-seg:nth-child(4) { animation-delay: 1.5s; }
.pb-scan-seg:nth-child(5) { animation-delay: 2s; }
.pb-scan-seg:nth-child(6) { animation-delay: 2.5s; }

@keyframes pb-scan-chase {
    0%, 14% {
        background: linear-gradient(90deg, #16233F, #2F80ED);
        box-shadow: 0 0 10px rgba(47, 128, 237, .5);
    }
    32%, 100% {
        background: #e4e9f0;
        box-shadow: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pb-scan-seg {
        animation: none;
        background: linear-gradient(90deg, #16233F, #2F80ED);
        opacity: .35;
    }
}

.pb-scan-scale {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
}
.pb-scan-scale span {
    flex: 1;
    font-size: 10.5px;
    font-weight: 600;
    color: #829ab1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 2px;
}
.pb-scan-scale span:first-child {
    text-align: left;
    padding-left: 0;
}
.pb-scan-scale span:last-child {
    text-align: right;
    padding-right: 0;
}

.pb-scan-btn {
    display: inline-block;
    background: var(--pl-cta, #F02888) !important;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    padding: 10px 18px;
    border-radius: 6px;
    text-transform: none;
}
.pb-card--scan:hover .pb-scan-btn,
.pb-card--scan:focus .pb-scan-btn,
.pb-scan-btn:hover {
    background: var(--pl-cta-hover, #D91F79) !important;
}

@media only screen and (max-width: 768px) {
    .pb-scan-scale span:not(:first-child):not(:last-child) {
        display: none;
    }
}

.pb-countdown {
    font-size: 12px;
    font-weight: 700;
    color: #F82872;
    margin: 6px 0 0;
}

/* Non-clickable variant: the Free Demo banner rendered on the appointment
   page itself, where linking to that same page would be a dead-end CTA. */
.pb-card--static {
    cursor: default;
}
.pb-card--static:hover,
.pb-card--static:focus {
    box-shadow: 0 4px 20px rgba(248, 40, 114, .08);
}
.pb-card--static:active {
    transform: none;
}
