@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.frmt-popup-notice {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 999999;
    display: none;
    max-width: 480px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.frmt-popup-notice.show {
    display: block;
    animation: smoothSlideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.frmt-popup-content {
    background: #ffffff;
    color: #0a0a0a;
    padding: 32px;
    border-radius: 24px;
    box-shadow: 
        0 0 0 1px rgba(0, 0, 0, 0.03),
        0 24px 48px -12px rgba(0, 0, 0, 0.12),
        0 16px 32px -8px rgba(250, 64, 0, 0.08);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(250, 64, 0, 0.08);
}

.frmt-popup-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        #FA4000 0%, 
        #FF6B35 50%, 
        #FA4000 100%
    );
}

.frmt-popup-content::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle at top right, rgba(250, 64, 0, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.frmt-popup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.frmt-popup-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #FA4000 0%, #FF6B35 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(250, 64, 0, 0.25);
    animation: pulse 2s ease-in-out infinite;
}

.frmt-popup-icon svg {
    width: 26px;
    height: 26px;
    fill: white;
}

.frmt-popup-title {
    font-size: 18px;
    font-weight: 700;
    color: #0a0a0a;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.frmt-popup-message {
    font-size: 15px;
    line-height: 1.6;
    color: #525252;
    margin-bottom: 20px;
    font-weight: 500;
    position: relative;
    z-index: 1;
    letter-spacing: -0.01em;
}

.frmt-popup-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #FA4000 0%, #FF6B35 100%);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 
        0 4px 16px rgba(250, 64, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
    overflow: hidden;
    letter-spacing: -0.01em;
}

.frmt-popup-cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.frmt-popup-cta:hover::before {
    left: 100%;
}

.frmt-popup-cta:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 28px rgba(250, 64, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #E63900 0%, #FA4000 100%);
}

.frmt-popup-cta:active {
    transform: translateY(0);
}

.frmt-popup-cta svg {
    width: 20px;
    height: 20px;
    fill: white;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.frmt-popup-cta:hover svg {
    transform: translateX(3px) rotate(-15deg);
}

.frmt-popup-close {
    position: absolute;
    right: 16px;
    top: 16px;
    background: rgba(0, 0, 0, 0.04);
    border: none;
    color: #999;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    border-radius: 10px;
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.frmt-popup-close:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #0a0a0a;
    transform: scale(1.05);
}

.frmt-popup-close:active {
    transform: scale(0.95);
}

.frmt-popup-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #FA4000;
    background: rgba(250, 64, 0, 0.08);
    padding: 6px 12px;
    border-radius: 8px;
    margin-top: 16px;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.frmt-popup-badge::before {
    content: "⚡";
    font-size: 14px;
}

@keyframes smoothSlideUp {
    0% {
        transform: translateY(60px) scale(0.95);
        opacity: 0;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 24px rgba(250, 64, 0, 0.25);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 32px rgba(250, 64, 0, 0.35);
    }
}

@media (max-width: 768px) {
    .frmt-popup-notice {
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
    }
    
    .frmt-popup-content {
        padding: 24px;
    }
    
    .frmt-popup-title {
        font-size: 16px;
    }
    
    .frmt-popup-message {
        font-size: 14px;
        margin-bottom: 16px;
    }
    
    .frmt-popup-icon {
        width: 40px;
        height: 40px;
    }
    
    .frmt-popup-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .frmt-popup-cta {
        width: 100%;
        padding: 12px 24px;
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .frmt-popup-notice.show {
        animation: none;
    }
    
    .frmt-popup-icon {
        animation: none;
    }
}