@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700&display=swap');

#iwt-fomo-popup {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999999;
    max-width: 320px;
    width: calc(100vw - 48px);
    font-family: 'Plus Jakarta Sans', sans-serif;
    pointer-events: none;
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
}

#iwt-fomo-popup.iwt-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

#iwt-fomo-popup.iwt-hiding {
    transform: translateY(120%);
    opacity: 0;
}

.iwt-popup-inner {
    border-radius: var(--iwt-radius, 12px);
    padding: 14px 16px;
    box-shadow:
        0 4px 6px -1px rgba(0,0,0,0.1),
        0 20px 40px -5px rgba(0,0,0,0.35),
        0 0 0 1px rgba(255,255,255,0.08) inset;
    position: relative;
    overflow: hidden;
}

.iwt-popup-inner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--iwt-accent, #e94560);
    border-radius: 2px 2px 0 0;
}

.iwt-popup-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.iwt-popup-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.iwt-popup-icon {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
    animation: iwt-icon-bounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

@keyframes iwt-icon-bounce {
    from { transform: scale(0) rotate(-15deg); }
    to   { transform: scale(1) rotate(0deg); }
}

.iwt-popup-text {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
    flex: 1;
}

.iwt-popup-meta {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.55;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.iwt-popup-meta::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--iwt-accent, #e94560);
    animation: iwt-blink 1.4s infinite;
}

@keyframes iwt-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.iwt-popup-close {
    background: rgba(255,255,255,0.12);
    border: none;
    color: inherit;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
    line-height: 1;
    opacity: 0.7;
}

.iwt-popup-close:hover {
    background: rgba(255,255,255,0.22);
    opacity: 1;
}

.iwt-popup-btn {
    display: block;
    margin-top: 12px;
    padding: 9px 16px;
    border-radius: calc(var(--iwt-radius, 12px) - 4px);
    text-align: center;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: filter 0.2s, transform 0.2s;
    letter-spacing: 0.3px;
}

.iwt-popup-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* Mobile */
@media (max-width: 480px) {
    #iwt-fomo-popup {
        bottom: 16px;
        right: 16px;
        width: calc(100vw - 32px);
        max-width: 100%;
    }
}
