.discord-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1100;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.discord-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.discord-popup {
    width: 90%;
    max-width: 420px;
    background: linear-gradient(135deg, #2b2d3a 0%, #0e1015 100%);
    border: 2px solid #5865F2;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(88, 101, 242, 0.3);
    position: relative;
    overflow: hidden;
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.discord-popup.active {
    transform: scale(1);
    opacity: 1;
}

.discord-popup__close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    line-height: 24px;
    padding: 0;
}

.discord-popup__close::before, 
.discord-popup__close::after {
    width: 24px;
    height: 24px;
    content: '';
    position: absolute;
    width: 20px;
    height: 3px;
    background-color: #fff;
    top: 50%;
    left: 50%;
}

.discord-popup__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.discord-popup__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.discord-popup__header {
    padding: 24px 20px 15px;
    text-align: center;
    position: relative;
}

.discord-popup__header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(88, 101, 242, 0.7), transparent);
}

.discord-popup__logo {
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.discord-popup__title {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin: 8px 0 0;
}

.discord-popup__subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

.discord-popup__content {
    padding: 16px 24px;
    text-align: center;
}

.discord-popup__benefits {
    text-align: left;
}

.discord-popup__benefit {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    color: #fff;
}

.discord-popup__benefit:last-child {
    margin-bottom: 0;
}

.discord-popup__benefit-icon {
    margin-right: 12px;
    color: #5865F2;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.discord-popup__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #5865F2;
    color: white;
    border: none;
    border-radius: 28px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    margin-top: 16px;
    text-decoration: none;
}

.discord-popup__button:hover {
    background-color: #4752c4;
    transform: translateY(-2px);
    color: white;
}

.discord-popup__button img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.discord-popup__footer {
    padding: 8px 24px 12px;
    text-align: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

/* Animacja pulsu dla przycisku */
@keyframes pulsediscord {
    0% {
        box-shadow: 0 0 0 0 rgba(88, 101, 242, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(88, 101, 242, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(88, 101, 242, 0);
    }
}

.pulse {
    animation: pulsediscord 2s infinite;
}
