/* Модальное окно поддержки */
.support-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

.support-modal.show {
    display: block;
}

.support-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.support-modal-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    background: linear-gradient(135deg, #fff 0%, #fdf8f8 100%);
    border-radius: 30px;
    box-shadow: 0 25px 60px rgba(214, 51, 132, 0.3), 0 0 0 1px rgba(214, 51, 132, 0.2);
    animation: slideUp 0.4s ease;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #f0f0f0;
}

.support-modal-container::-webkit-scrollbar {
    width: 6px;
}

.support-modal-container::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.support-modal-container::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

/* Декоративные частицы */
.support-modal-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 30px;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.2;
    animation: float 6s infinite;
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 70%;
    right: 15%;
    width: 8px;
    height: 8px;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    bottom: 20%;
    left: 20%;
    width: 5px;
    height: 5px;
    animation-delay: 1s;
}

.particle:nth-child(4) {
    top: 40%;
    right: 25%;
    width: 10px;
    height: 10px;
    animation-delay: 3s;
}

.particle:nth-child(5) {
    bottom: 30%;
    right: 30%;
    width: 7px;
    height: 7px;
    animation-delay: 4s;
}

.support-modal-content {
    position: relative;
    padding: 40px;
    z-index: 1;
}

/* Заголовок */
.support-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    position: relative;
}

.support-icon-wrapper {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #D63384, #E91E63, #9C27B0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(214, 51, 132, 0.3);
    animation: pulse 2s infinite;
}

.support-icon {
    font-size: 28px;
    color: white;
}

.support-title {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #D63384, #E91E63, #9C27B0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    flex: 1;
    margin-left: 15px;
}

.support-modal-close {
    width: 40px;
    height: 40px;
    background: rgba(214, 51, 132, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--primary);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.support-modal-close:hover {
    background: var(--primary);
    color: white;
    transform: rotate(90deg);
}

/* Текст обращения */
.support-message {
    margin-bottom: 30px;
}

.message-highlight {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(214, 51, 132, 0.2);
}

.message-content {
    color: var(--text-dark);
    line-height: 1.7;
}

.message-content p {
    margin-bottom: 15px;
    font-size: 15px;
}

.message-quote {
    background: linear-gradient(135deg, rgba(214, 51, 132, 0.05), rgba(233, 30, 99, 0.05));
    border-left: 4px solid var(--primary);
    padding: 20px;
    margin: 20px 0;
    border-radius: 12px;
    position: relative;
}

.message-quote i {
    color: var(--primary);
    font-size: 20px;
    margin-right: 10px;
    opacity: 0.5;
}

.message-quote p {
    margin: 10px 0 0 0;
    font-style: italic;
}

.donation-box {
    background: linear-gradient(135deg, #D63384, #E91E63);
    color: white;
    padding: 25px;
    border-radius: 16px;
    margin: 25px 0 0;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 15px 30px rgba(214, 51, 132, 0.3);
}

.donation-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.donation-text {
    font-size: 15px;
    line-height: 1.6;
}

.highlight {
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.5);
}

/* Блок с кнопками поддержки */
.support-action {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(214, 51, 132, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(214, 51, 132, 0.1);
}

.support-action-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.support-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.support-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.support-btn-primary {
    background: linear-gradient(135deg, #D63384, #E91E63);
    color: white;
    box-shadow: 0 8px 20px rgba(214, 51, 132, 0.3);
}

.support-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(214, 51, 132, 0.4);
}

.support-btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.support-btn-secondary:hover {
    background: rgba(214, 51, 132, 0.05);
    transform: translateY(-2px);
}

.support-btn i {
    font-size: 16px;
}

/* Нижняя часть */
.support-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(214, 51, 132, 0.2);
}

.support-reminder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-light);
    background: rgba(214, 51, 132, 0.05);
    padding: 10px;
    border-radius: 10px;
}

.support-reminder i {
    color: var(--primary);
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -30%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Адаптивность */
@media (max-width: 768px) {
    .support-modal-container {
        width: 95%;
        max-height: 80vh;
    }

    .support-modal-content {
        padding: 25px;
    }

    .support-modal-header {
        flex-wrap: wrap;
    }

    .support-icon-wrapper {
        width: 50px;
        height: 50px;
    }

    .support-icon {
        font-size: 24px;
    }

    .support-title {
        font-size: 22px;
        margin-left: 10px;
    }

    .donation-box {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .message-highlight {
        font-size: 16px;
    }

    .support-buttons {
        flex-direction: column;
        width: 100%;
    }

    .support-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .support-modal-content {
        padding: 20px;
    }

    .support-title {
        font-size: 18px;
    }

    .support-icon-wrapper {
        width: 40px;
        height: 40px;
    }

    .support-icon {
        font-size: 20px;
    }
}

/* Темная тема */
@media (prefers-color-scheme: dark) {
    .support-modal-container {
        background: linear-gradient(135deg, #2d3748, #1a202c);
    }

    .message-content {
        color: #e2e8f0;
    }

    .support-action {
        background: rgba(214, 51, 132, 0.1);
    }

    .support-action-text {
        color: #e2e8f0;
    }

    .support-btn-secondary {
        background: #4a5568;
        color: white;
        border-color: var(--primary);
    }

    .support-btn-secondary:hover {
        background: #5a6578;
    }
}
