/* SHERIN · WhatsApp Platform spotlight — style FIFA World Cup banner */

.wpab {
    position: relative;
    width: 100%;
    max-width: var(--wpab-w, 900px);
    margin: 0 auto 1rem;
    border-radius: 12px;
    overflow: hidden;
    background: #0b1220;
    contain: layout style paint;
    transition: opacity 0.45s ease, transform 0.45s ease, max-height 0.45s ease;
}

.wpab--hide {
    opacity: 0;
    transform: scale(0.98);
    max-height: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    pointer-events: none;
    overflow: hidden;
}

.wpab__media {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.wpab__media-gradient {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(11, 18, 32, 0.15) 0%, rgba(11, 18, 32, 0.72) 48%, rgba(11, 18, 32, 0.92) 100%),
        radial-gradient(ellipse 80% 120% at 12% 50%, rgba(37, 211, 102, 0.55) 0%, transparent 58%),
        radial-gradient(ellipse 70% 90% at 88% 20%, rgba(115, 102, 255, 0.45) 0%, transparent 55%),
        radial-gradient(ellipse 60% 80% at 70% 85%, rgba(6, 182, 212, 0.25) 0%, transparent 50%),
        linear-gradient(135deg, #064e3b 0%, #1e1b4b 42%, #0f172a 100%);
    animation: wpab-bg-shift 18s ease-in-out infinite alternate;
}

.wpab__media-shapes {
    position: absolute;
    inset: 0;
}

.wpab__shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.35;
    animation: wpab-shape-float 12s ease-in-out infinite;
}

.wpab__shape--1 {
    width: 220px;
    height: 220px;
    background: #25d366;
    top: -40px;
    left: 10%;
}

.wpab__shape--2 {
    width: 180px;
    height: 180px;
    background: #7366ff;
    bottom: -30px;
    right: 15%;
    animation-delay: -4s;
}

.wpab__shape--3 {
    width: 120px;
    height: 120px;
    background: #06b6d4;
    top: 40%;
    right: 35%;
    animation-delay: -7s;
}

.wpab__media-grid {
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}

.wpab__gradient-box {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: stretch;
    background: transparent;
}

.wpab__close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 50;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 1.125rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.wpab__close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.65);
}

.wpab__body-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 16px 24px;
    gap: 8px;
}

.wpab__body-container--left {
    align-items: flex-start;
    text-align: left;
    max-width: 88%;
}

.wpab__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.wpab__wa-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #25d366;
    filter: drop-shadow(0 4px 14px rgba(37, 211, 102, 0.45));
}

.wpab__wordmark {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.wpab__wordmark strong {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75);
}

.wpab__wordmark span {
    font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
    font-size: 0.5625rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    color: #c4b5fd;
    text-transform: uppercase;
}

.wpab__pipeline {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(4px);
}

.wpab__pipeline-step {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
    font-size: 0.5625rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
}

.wpab__pipeline-check {
    color: #4ade80;
    font-size: 0.625rem;
}

.wpab__pipeline-sep {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.625rem;
}

.wpab__body-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wpab__title {
    margin: 0;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75), 0 0 16px rgba(0, 0, 0, 0.35);
}

.wpab__title-clamp span {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wpab__title-clamp--mobile {
    display: block;
}

.wpab__title-clamp--mobile span {
    -webkit-line-clamp: var(--wpab-title-lines-mobile, 2);
}

.wpab__title-clamp--desktop {
    display: none;
}

.wpab__description {
    margin: 0;
    max-width: 520px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
}

.wpab__description--mobile {
    display: none;
}

.wpab__footer-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    margin-top: 2px;
}

.wpab__status {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.wpab__cheer {
    flex-shrink: 0;
    min-height: 1.1rem;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.wpab__cheer--mobile {
    display: none;
}

.wpab__cheer-text {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
}

.wpab__cheer-char {
    display: inline-block;
    font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
    font-weight: 900;
    font-size: 0.5rem;
    color: #4ade80;
    opacity: 0;
    transform: scale(0.15);
    animation: wpab-char-in var(--wpab-cheer-cycle, 7s) cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
    animation-delay: calc(0.08s * var(--wpab-ch));
    text-shadow: 0 0 8px rgba(74, 222, 128, 0.55);
}

.wpab__cheer-char--v {
    font-size: 0.875rem;
    animation: wpab-v-flash var(--wpab-cheer-cycle, 7s) cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.wpab__status-badge {
    font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
    font-size: 0.6875rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    color: #4ade80;
    text-shadow: 0 0 12px rgba(74, 222, 128, 0.45);
    animation: wpab-status-pulse 2.2s ease-in-out infinite;
}

.wpab__status-sub {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

@keyframes wpab-bg-shift {
    0% { transform: scale(1) translateX(0); }
    100% { transform: scale(1.04) translateX(-1%); }
}

@keyframes wpab-shape-float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(12px, -8px); }
}

@keyframes wpab-char-in {
    0%, 5% { opacity: 0; transform: scale(0.15); }
    14% { opacity: 1; transform: scale(1.05); }
    74% { opacity: 1; }
    84%, 100% { opacity: 0; }
}

@keyframes wpab-v-flash {
    0%, 2% { opacity: 0; transform: scale(0.1); }
    6% { opacity: 1; transform: scale(1.12); }
    12% { transform: scale(1); }
    78% { opacity: 1; }
    88%, 100% { opacity: 0; }
}

@keyframes wpab-status-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.72; }
}

.wpab-auth-wrap,
.wpab-guest-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
}

.sherin-site-banner {
    position: relative;
    z-index: 8;
    width: 100%;
    background: #f4f6f9;
    border-bottom: 1px solid #eef0f4;
    padding: 12px 0;
}

.sherin-site-banner__inner {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}

.sherin-site-banner .wpab {
    margin: 0 auto;
}

.sherin-site-banner--guest {
    max-width: 900px;
    margin: 5rem auto -0.5rem;
    padding: 0 1rem;
    background: transparent;
    border-bottom: none;
}

.sherin-site-banner--guest .sherin-site-banner__inner {
    padding: 0;
}

@media (min-width: 768px) {
    .wpab__body-container {
        padding: 20px 32px;
        gap: 10px;
    }

    .wpab__title {
        font-size: 1.5rem;
    }

    .wpab__description {
        font-size: 0.8125rem;
    }

    .wpab__pipeline-step {
        font-size: 0.625rem;
    }

    .wpab__title-clamp--mobile {
        display: none;
    }

    .wpab__title-clamp--desktop {
        display: block;
    }

    .wpab__title-clamp--desktop span {
        -webkit-line-clamp: var(--wpab-title-lines-desktop, 1);
    }
}

@media (max-width: 767px) {
    .wpab__body-container {
        padding: 0;
        gap: 6px;
    }

    .wpab__body-container--left {
        max-width: 92%;
    }

    .wpab__description--desktop {
        display: none;
    }

    .wpab__description--mobile {
        display: block;
    }

    .wpab__cheer--desktop {
        display: none;
    }

    .wpab__cheer--mobile {
        display: flex;
    }

    .wpab__footer-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .wpab__pipeline {
        gap: 4px;
        padding: 3px 8px;
    }

    .wpab__pipeline-step {
        font-size: 0.5rem;
    }
}
