.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-overlay.visible {
    display: flex;
}

.modal-container {
    max-width: 520px;
    width: 100%;
    background: linear-gradient(145deg, #121b26 0%, #0a111c 100%);
    border-radius: 28px;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(66, 153, 225, 0.15);
    overflow: hidden;
    transition: transform 0.2s ease;
    animation: modalAppear 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(12px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* шапка с логотипом/брендинг */
.modal-header {
    position: relative;
    padding: 24px 28px 12px 28px;
    border-bottom: 1px solid rgba(46, 91, 113, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: rgba(8, 18, 28, 0.5);
}

.modal-header svg {
    max-width: 200px;
    width: 100%;
    height: 70px;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

.logo-badge {
    display: flex;
    align-items: center;
    gap: 12px;
}

.steam-icon {
    background: linear-gradient(135deg, #1b2838, #101b24);
    width: 44px;
    height: 44px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.steam-icon svg {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 1px 1px black);
}

.brand-text {
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.3px;
    background: linear-gradient(135deg, #eef2ff, #9bb6d0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.partner-tag {
    background: rgba(10, 200, 120, 0.2);
    border: 1px solid rgba(80, 220, 140, 0.5);
    border-radius: 60px;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #a3f5d0;
    margin-left: auto;
}

/* контент */
.modal-body {
    padding: 28px 28px 20px 28px;
    text-align: center;
}

.main-title {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #bdd4ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    margin-top: 0;
}

.description {
    color: #b0c7df;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 28px;
    font-weight: 450;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

.discount-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.discount-badge span:first-child {
    font-weight: 800;
    font-size: 0.85rem;
    color: #ffd966;
}

.discount-badge span:last-child {
    font-size: 0.8rem;
    color: #cddcec;
}

/* кнопка действия */
.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(95deg, #2c7da0, #1f6392);
    border: none;
    width: 100%;
    max-width: 320px;
    padding: 14px 24px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.3px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    margin-top: 12px;
    margin-bottom: 10px;
}

.action-button:hover {
    background: linear-gradient(95deg, #398eb3, #2a74a0);
    transform: scale(1.02);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.5);
}

.action-button:active {
    transform: scale(0.98);
}

/* доп. ссылка-заглушка */
.extra-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 22px;
    font-size: 0.75rem;
}

.extra-links a {
    color: #7f9cbb;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.extra-links a:hover {
    color: #d4e6ff;
    text-decoration: underline;
}

/* футер в стиле сайта (небольшой дисклеймер) */
.modal-footer {
    background: rgba(0, 0, 0, 0.4);
    padding: 14px 28px;
    font-size: 0.7rem;
    text-align: center;
    color: #6d8eae;
    border-top: 1px solid rgba(72, 110, 128, 0.3);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.steam-note {
    font-size: 0.65rem;
}

/* Адаптив */
@media (max-width: 550px) {
    .modal-header {
        padding: 18px 20px 8px 20px;
    }

    .modal-body {
        padding: 22px 20px 16px;
    }

    .main-title {
        font-size: 1.7rem;
    }

    .description {
        font-size: 0.9rem;
    }

    .action-button {
        font-size: 1rem;
        padding: 12px 20px;
    }

    .logo-badge .brand-text {
        font-size: 1.1rem;
    }
}