.mypag-update-root {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 18px 16px 16px;
    pointer-events: none;
}

.mypag-update-root.is-open {
    pointer-events: auto;
}

.mypag-update-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 13, 12, 0.48);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.mypag-update-root.is-open .mypag-update-backdrop {
    opacity: 1;
}

.mypag-update-card {
    position: relative;
    width: min(440px, 100%);
    margin-top: 8vh;
    border-radius: 22px;
    overflow: hidden;
    background:
        radial-gradient(120% 90% at 0% 0%, rgba(37, 211, 102, 0.22), transparent 48%),
        radial-gradient(90% 70% at 100% 0%, rgba(18, 140, 126, 0.28), transparent 45%),
        linear-gradient(165deg, #0b1f1c 0%, #075e54 55%, #0a2f2a 100%);
    color: #fbfaf6;
    box-shadow:
        0 28px 80px rgba(7, 13, 12, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    transform: translateY(-28px) scale(0.96);
    opacity: 0;
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}

.mypag-update-root.is-open .mypag-update-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.mypag-update-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.08) 48%, transparent 62%);
    transform: translateX(-120%);
    animation: mypag-update-shine 1.4s ease 0.25s both;
    pointer-events: none;
}

@keyframes mypag-update-shine {
    to { transform: translateX(120%); }
}

.mypag-update-body {
    position: relative;
    padding: 22px 22px 20px;
}

.mypag-update-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(37, 211, 102, 0.16);
    border: 1px solid rgba(37, 211, 102, 0.35);
    color: #dcf8c6;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mypag-update-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #25d366;
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    animation: mypag-update-pulse 1.4s ease infinite;
}

@keyframes mypag-update-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.mypag-update-title {
    margin: 14px 0 8px;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.mypag-update-text {
    margin: 0;
    color: rgba(251, 250, 246, 0.78);
    font-size: 0.92rem;
    line-height: 1.5;
}

.mypag-update-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.mypag-update-btn {
    appearance: none;
    border: 0;
    border-radius: 12px;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
}

.mypag-update-btn:active {
    transform: scale(0.98);
}

.mypag-update-btn-primary {
    flex: 1;
    background: linear-gradient(180deg, #2fe574 0%, #25d366 100%);
    color: #0b1f1c;
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.28);
}

.mypag-update-btn-primary:hover {
    filter: brightness(1.05);
}

.mypag-update-btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(251, 250, 246, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.mypag-update-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.14);
}

@media (max-width: 520px) {
    .mypag-update-card {
        margin-top: 4vh;
        border-radius: 18px;
    }

    .mypag-update-actions {
        flex-direction: column-reverse;
    }
}
