/* =========================================================
   Upgrade Popup — shared + full + contextual
   Namespace: gb-upgrade
   ========================================================= */

.gobrunch-popup-solid {
    border-style: solid;
    border-width: 1px;
    border-color: rgba(255, 255, 255, 0.85);
    border-radius: 7px;
    background-color: rgba(255, 255, 255, 0.87);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

/* --- Animations --- */

@keyframes gb-upgrade-fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes gb-upgrade-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.6; transform: scale(0.85); }
}

/* --- Scroll container (shared) --- */

.gb-upgrade__scroll {
    max-height: calc(85vh - 80px);
    overflow-y: auto;
    padding-right: 6px;
    scroll-behavior: smooth;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 24px;

    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.18) transparent;
}

.gb-upgrade__scroll::-webkit-scrollbar {
    width: 6px;
}

.gb-upgrade__scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.18);
    border-radius: 10px;
}

.gb-upgrade__scroll::-webkit-scrollbar-track {
    background: transparent;
}

/* --- Badge --- */

.gb-upgrade__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.10);
    border-radius: 20px;
    padding: 5px 14px;
    width: fit-content;
}

.gb-upgrade__badge-dot {
    width: 7px;
    height: 7px;
    background: var(--secondary--color-3, #0099d6);
    border-radius: 50%;
    animation: gb-upgrade-pulse 2s ease-in-out infinite;
}

.gb-upgrade__badge span {
    font-family: 'Oswald', sans-serif;
    font-size: 10.5px;
    font-weight: 400;
    color: #1f1f1f;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* --- Header --- */

.gb-upgrade__header {
    text-align: center;
}

.gb-upgrade__title {
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    font-weight: 400;
    color: #1f1f1f;
    line-height: 1.15;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.gb-upgrade__subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(0, 0, 0, 0.62);
    max-width: 480px;
    margin: 0 auto;
}

/* --- Divider --- */

.gb-upgrade__divider {
    align-self: stretch;
    flex-shrink: 0;
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.10);
    margin: 0;
    padding: 0;
}

/* --- Features list --- */

.gb-upgrade__features {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.gb-upgrade__feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: gb-upgrade-fadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.gb-upgrade__feature:nth-child(1) { animation-delay: 0.08s; }
.gb-upgrade__feature:nth-child(2) { animation-delay: 0.14s; }
.gb-upgrade__feature:nth-child(3) { animation-delay: 0.20s; }
.gb-upgrade__feature:nth-child(4) { animation-delay: 0.26s; }
.gb-upgrade__feature:nth-child(5) { animation-delay: 0.32s; }

.gb-upgrade__feature-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    border: 1px solid var(--secondary--color-3);
}

.gb-upgrade__feature-check svg {
    display: block;
}

.gb-upgrade__feature-title {
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    font-weight: 400;
    text-transform: uppercase;
    color: #1f1f1f;
    display: block;
    margin-bottom: 2px;
}

.gb-upgrade__feature-desc {
    font-family: 'Open Sans', sans-serif;
    font-size: 12.5px;
    color: rgba(0, 0, 0, 0.64);
    line-height: 1.55;
}

/* --- CTA --- */

.gb-upgrade__cta-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gb-upgrade__btn {
    display: block;
    text-align: center;
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-transform: capitalize;
    padding: 16px 24px;
    border-radius: 14px;
    text-decoration: none;
    box-sizing: border-box;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    &:hover {
        color: #fff;
        text-decoration: none;
    }
}

.gb-upgrade__btn:hover {
    transform: translateY(-1px);
}

.gb-upgrade__btn:active {
    transform: scale(0.98);
}

.gb-upgrade__btn:focus,
.gb-upgrade__btn:visited {
    text-decoration: none !important;
    outline: none;
}

.gb-upgrade__btn--primary {
    background: #2d2d2d;
    color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.gb-upgrade__btn--primary:hover {
    background: #1a1a1a;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
}

.gb-upgrade__btn--primary:focus,
.gb-upgrade__btn--primary:active,
.gb-upgrade__btn--primary:visited {
    color: #fff !important;
}

.gb-upgrade__cta-note {
    text-align: center;
    font-family: 'Open Sans', sans-serif;
    font-size: 11px;
    color: rgba(0, 0, 0, 0.42);
}

/* --- Footer note --- */

.gb-upgrade__footer-note {
    text-align: center;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(0, 0, 0, 0.52);
    max-width: 420px;
    margin: 0 auto;
}

/* =========================================================
   Full Upgrade Popup
   ========================================================= */

.gb-upgrade-full {
    width: min(560px, calc(100vw - 32px));
    color: #1f1f1f;
    padding: 8px 4px;
    box-sizing: border-box;
}

/* --- Testimonials --- */

.gb-upgrade-full__testimonials-label {
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(0, 0, 0, 0.42);
}

.gb-upgrade-full__testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.gb-upgrade-full__testimonial {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 14px;
    padding: 14px 15px;
    transition: background 0.2s;
}

.gb-upgrade-full__testimonial:hover {
    background: rgba(0, 0, 0, 0.06);
}

.gb-upgrade-full__testimonial-text {
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.78);
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 10px;
}

.gb-upgrade-full__testimonial-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gb-upgrade-full__avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Oswald', sans-serif;
    font-size: 9px;
    font-weight: 400;
    color: #1f1f1f;
    flex-shrink: 0;
    letter-spacing: 0.05em;
}

.gb-upgrade-full__author-name {
    font-family: 'Open Sans', sans-serif;
    font-size: 11px;
    color: rgba(0, 0, 0, 0.45);
    font-weight: 600;
}

/* =========================================================
   Contextual Upgrade Popup
   ========================================================= */

.gb-upgrade-ctx {
    width: min(520px, calc(100vw - 32px));
    color: #1f1f1f;
    padding: 10px 4px;
    box-sizing: border-box;
}

.gb-upgrade-ctx__info-message {
    text-align: center;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    line-height: 1.65;
    color: rgba(0, 0, 0, 0.62);
    max-width: 440px;
    margin: 0 auto;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 640px) {
    .gb-upgrade-full {
        width: min(100%, calc(100vw - 24px));
    }

    .gb-upgrade-ctx {
        width: min(100%, calc(100vw - 24px));
    }

    .gb-upgrade-full__testimonials-grid {
        grid-template-columns: 1fr;
    }

    .gb-upgrade__title {
        font-size: 22px;
    }

    .gb-upgrade__btn {
        padding: 14px 20px;
    }
}
