/* ========== МОДАЛКА "ПОДАРИТЬ КРАСИВО" ========== */
.share-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}
.share-modal-overlay.active { display: flex; }

.share-modal-content {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 32px;
    padding: 30px 24px 30px 24px;
    max-width: 480px;
    width: 92%;
    box-shadow: 0 30px 60px rgba(0,0,0,0.25);
    position: relative;
    overflow: hidden;
    animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.share-header {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.share-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1F2937;
    letter-spacing: -0.5px;
    margin: 0;
}

.share-header .close-share-btn {
    position: absolute;
    right: -8px;
    top: -8px;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    width: 36px; height: 36px;
    font-size: 18px;
    color: #6B7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.share-header .close-share-btn:hover { background: #e5e7eb; color: #111; }

.share-preview {
    display: flex;
    gap: 16px;
    align-items: center;
    background: white;
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
}

.share-preview img {
    width: 90px;
    height: auto;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    object-fit: contain;
    background: #fafafa;
}

.share-preview .preview-info {
    flex: 1;
}

.share-preview .preview-info .title {
    font-size: 16px;
    font-weight: 600;
    color: #1F2937;
}

.share-preview .preview-info .amount {
    font-size: 20px;
    font-weight: 700;
    color: #059669;
    margin-top: 2px;
}

/* ====== КНОПКИ ====== */
.share-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.share-actions .btn-row {
    display: flex;
    gap: 12px;
}

.btn-download {
    flex: 1;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    background: white;
    font-weight: 600;
    font-size: 15px;
    color: #1F2937;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-download:hover { background: #f3f4f6; border-color: #d1d5db; }

/* Кнопка "Подарить" с переливом и хлопушкой */
.btn-gift {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 16px;
    font-weight: 700;
    font-size: 15px;
    color: white;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: #3d7b6d;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.2s;
    box-shadow: 0 4px 16px rgba(61, 123, 109, 0.4);
}

/* Эффект бегущего блика при наведении */
.btn-gift::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

.btn-gift:hover::before {
    left: 100%;
}

.btn-gift:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 24px rgba(61, 123, 109, 0.5);
}

.btn-gift:active {
    transform: scale(0.97);
}

/* ====== БЛОК ОТПРАВКИ ====== */
.share-send-block {
    display: none;
    margin-top: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    animation: fadeUp 0.3s ease;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.share-send-block input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 10px;
    font-family: inherit;
    outline: none;
    transition: border 0.2s;
}
.share-send-block input:focus { border-color: #3d7b6d; box-shadow: 0 0 0 3px rgba(61,123,109,0.15); }

.share-send-block .send-actions {
    display: flex;
    gap: 10px;
}

/* ====== ОБНОВЛЕННЫЕ КНОПКИ ОТПРАВКИ ====== */
.send-actions {
    display: flex;
    gap: 10px;
    align-items: stretch; /* Выравнивает кнопки по высоте */
}

.btn-send-messenger,
.btn-send-email {
    flex: 1;
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
    /* Фиксируем высоту, чтобы кнопки были одинаковыми */
    height: 48px; 
    box-sizing: border-box;
}

/* Картинки внутри кнопок */
.btn-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

/* Цвета кнопок при наведении (можно настроить под ваш стиль) */
.btn-send-messenger:hover {
    background: #f0f8ff;
    border-color: #3b82f6;
    color: #3b82f6;
}

.btn-send-email:hover {
    background: #f0fdf4;
    border-color: #3d7b6d;
    color: #3d7b6d;
}

/* Адаптив для маленьких экранов */
@media (max-width: 480px) {
    .btn-send-messenger,
    .btn-send-email {
        font-size: 13px;
        height: 44px;
        padding: 8px 10px;
    }
    .btn-icon-img {
        width: 20px;
        height: 20px;
    }
}
.share-send-block .hint {
    font-size: 13px;
    color: #6B7280;
    margin-top: 6px;
    text-align: center;
}

/* Поднимаем конфетти на самый верх (чтобы было ПОВЕРХ модалки) */
canvas[style*="position: fixed"] {
    z-index: 99999 !important;
    pointer-events: none; /* Чтобы конфетти не мешало нажимать на кнопки */
}
/* ====== НОВЫЕ КНОПКИ-ИКОНКИ ====== */
.send-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 5px;
}

.btn-send-max,
.btn-send-tg {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.btn-send-max:hover,
.btn-send-tg:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #3d7b6d;
}

.btn-icon-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}

/* Адаптив для маленьких экранов */
@media (max-width: 480px) {
    .btn-send-max,
    .btn-send-tg {
        width: 48px;
        height: 48px;
    }
    .btn-icon-img {
        width: 24px;
        height: 24px;
    }
}

/* Стили для поля комментария */
#shareComment {
    transition: border-color 0.2s;
}
#shareComment:focus {
    border-color: #3d7b6d;
    box-shadow: 0 0 0 3px rgba(61, 123, 109, 0.1);
}