.social-proof-showcase {
    margin-top: 34px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.social-proof-toggle {
    --switch-index: 1;
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 4px;
    margin: 0 auto 22px;
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 237, 0.9)),
        rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(17, 24, 39, 0.08);
    width: min(100%, 210px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 12px 24px rgba(15, 23, 42, 0.05);
}

.social-proof-toggle::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc((100% - 16px) / 2);
    height: calc(100% - 8px);
    border-radius: 10px;
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 55%, #ea580c 100%);
    box-shadow: 0 16px 30px rgba(249, 115, 22, 0.24);
    transform: translateX(calc(var(--switch-index) * (100% + 8px)));
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.24s ease;
    pointer-events: none;
    z-index: 0;
}

.social-proof-toggle button {
    position: relative;
    z-index: 1;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #4b5563;
    font-size: 0.8rem;
    font-weight: 700;
    min-height: 38px;
    padding: 0 12px;
    cursor: pointer;
    transition: color 0.22s ease, transform 0.2s ease;
}

.social-proof-toggle button.is-active {
    color: #ffffff;
}

.social-proof-card-shell {
    width: min(100%, 440px);
    margin: 0 auto;
    padding: 10px;
    border-radius: 30px;
    background: radial-gradient(circle at 50% 8%, rgba(15, 23, 42, 0.08), transparent 44%);
    border: 0;
    box-shadow: none;
}

.social-proof-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96)) padding-box,
        linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(203, 213, 225, 0.92), rgba(71, 85, 105, 0.28), rgba(15, 23, 42, 0.18)) border-box;
    border: 1px solid transparent;
    box-shadow:
        0 24px 58px rgba(15, 23, 42, 0.16),
        0 8px 18px rgba(15, 23, 42, 0.06),
        0 1px 0 rgba(255, 255, 255, 0.92) inset;
}

.social-proof-card::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 21px;
    border: 1px solid rgba(226, 232, 240, 0.72);
    pointer-events: none;
}

.social-proof-card-body {
    position: relative;
    z-index: 1;
    padding: 22px;
}

.social-proof-username {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #111827;
    font-size: 1rem;
    font-weight: 700;
}

.social-proof-username i {
    color: #1d9bf0;
    font-size: 1rem;
}

.social-proof-profile {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    margin-bottom: 22px;
}

.social-proof-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 2px solid rgba(226, 232, 240, 0.94);
    overflow: hidden;
    background: radial-gradient(circle at 34% 28%, #475569 0%, #111827 78%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.7rem;
    font-weight: 900;
    letter-spacing: 0;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.social-proof-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social-proof-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
}

.social-proof-stat {
    text-align: center;
    min-width: 0;
}

.social-proof-stat-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    color: #111827;
    font-size: 1rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0;
    white-space: nowrap;
}

.social-proof-stat-label {
    display: block;
    margin-top: 7px;
    color: #64748b;
    font-size: 0.76rem;
    line-height: 1.1;
}

.social-proof-stat.is-active-metric .social-proof-stat-value {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.09);
    color: #0369a1;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.social-proof-name {
    margin-bottom: 8px;
    color: #111827;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0;
}

.social-proof-bio {
    margin: 0 0 8px;
    color: #374151;
    font-size: 0.88rem;
    line-height: 1.55;
}

.social-proof-link {
    display: inline-block;
    margin-bottom: 18px;
    color: #2563eb;
    font-size: 0.88rem;
    font-weight: 600;
}

.social-proof-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr) 44px;
    gap: 9px;
    margin-bottom: 18px;
}

.social-proof-button {
    min-height: 44px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #111827;
    font-size: 0.86rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-proof-button.is-primary {
    border-color: #1d9bf0;
    background: #1d9bf0;
    color: #ffffff;
    box-shadow: 0 12px 22px rgba(29, 155, 240, 0.18);
}

.social-proof-button.is-icon {
    padding: 0;
}

.social-proof-bottom-nav {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.social-proof-bottom-nav span {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 30px;
    color: #94a3b8;
    font-size: 1.05rem;
}

.social-proof-bottom-nav span.is-active {
    color: #111827;
}

.social-proof-bottom-nav span.is-active::after {
    content: "";
    position: absolute;
    left: 4px;
    right: 4px;
    bottom: -15px;
    height: 2px;
    border-radius: 999px;
    background: #111827;
}

.social-proof-growth-badge {
    position: absolute;
    right: 16px;
    top: 142px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
    color: #0f172a;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.social-proof-growth-badge.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.social-proof-growth-badge strong {
    color: #16a34a;
    font-size: 0.78rem;
}

.social-proof-growth-badge span {
    color: #475569;
    font-size: 0.72rem;
    font-weight: 700;
}

.social-proof-bonus-badge {
    position: absolute;
    right: 16px;
    top: 182px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 247, 237, 0.96);
    border: 1px solid rgba(249, 115, 22, 0.2);
    color: #c2410c;
    font-size: 0.72rem;
    font-weight: 800;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.social-proof[data-mode="after"] .social-proof-bonus-badge {
    opacity: 1;
    transform: translateY(0);
}

.social-proof[data-mode="after"] .social-proof-stat.is-active-metric .social-proof-stat-value {
    background: #0ea969;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(14, 169, 105, 0.2);
}

.social-proof[data-mode="after"] .social-proof-stat.is-active-metric .social-proof-stat-value {
    color: #ffffff;
}

@media (max-width: 860px) {
    .social-proof-showcase {
        padding: 18px 14px 20px;
    }

    .social-proof-toggle {
        width: min(100%, 210px);
    }

    .social-proof-toggle button {
        padding: 0 12px;
    }

    .social-proof-card-shell {
        width: min(100%, 430px);
        padding: 8px;
    }
}

@media (max-width: 640px) {
    .social-proof-card-body {
        padding: 18px;
    }

    .social-proof-profile {
        grid-template-columns: 78px minmax(0, 1fr);
        gap: 14px;
    }

    .social-proof-avatar {
        width: 78px;
        height: 78px;
        font-size: 1.25rem;
    }

    .social-proof-stats {
        gap: 6px;
    }

    .social-proof-stat-value {
        font-size: 0.86rem;
        min-height: 24px;
    }

    .social-proof-stat-label,
    .social-proof-bio,
    .social-proof-link {
        font-size: 0.72rem;
    }

    .social-proof-stat.is-active-metric .social-proof-stat-value {
        padding: 6px 7px;
    }

    .social-proof-actions {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px;
        gap: 7px;
    }

    .social-proof-button {
        min-height: 38px;
        font-size: 0.72rem;
    }

    .social-proof-growth-badge {
        top: 122px;
        right: 10px;
        padding: 7px 8px;
    }

    .social-proof-bonus-badge {
        display: none;
    }
}
