/* wallet.css - исправленные стили для кошелька Kepler */

/* Стили для контейнера кошелька в навигации */
.wallet-container {
    position: relative;
    display: flex;
    align-items: center;
}

/* Кнопка подключения кошелька */
.wallet-connect-btn {
    padding: 8px 16px;
    background: linear-gradient(90deg, #39ff14, #00ff88);
    color: #000;
    border: none;
    border-radius: 8px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.wallet-connect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.5);
}

.wallet-connect-btn i {
    font-size: 1rem;
}

/* Контейнер информации о кошельке */
.wallet-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(57, 255, 20, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(57, 255, 20, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.wallet-info:hover {
    background: rgba(57, 255, 20, 0.2);
    border-color: rgba(57, 255, 20, 0.5);
}

.wallet-address {
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 0.8rem;
    color: #39ff14;
    font-weight: 600;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wallet-balance {
    font-size: 0.8rem;
    color: #00eaff;
    font-weight: 600;
    background: rgba(0, 234, 255, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    white-space: nowrap;
}

/* Выпадающее меню кошелька */
.wallet-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: rgba(16, 23, 41, 0.98);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(57, 255, 20, 0.3);
    border-radius: 12px;
    padding: 20px;
    min-width: 450px;
    max-width: 450px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 30px rgba(57, 255, 20, 0.2);
    display: none;
    flex-direction: column;
    max-height: 80vh;
    min-height: 300px;
    overflow: hidden;
}

.wallet-dropdown.show {
    display: flex;
}

.wallet-dropdown.wide {
    min-width: 550px;
    max-width: 550px;
}

/* Прокручиваемая область контента */
.wallet-dropdown-scrollable {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px 20px;
}

.wallet-dropdown-scrollable::-webkit-scrollbar {
    width: 6px;
}

.wallet-dropdown-scrollable::-webkit-scrollbar-track {
    background: rgba(57, 255, 20, 0.05);
    border-radius: 3px;
}

.wallet-dropdown-scrollable::-webkit-scrollbar-thumb {
    background: rgba(57, 255, 20, 0.2);
    border-radius: 3px;
}

.wallet-dropdown-scrollable::-webkit-scrollbar-thumb:hover {
    background: rgba(57, 255, 20, 0.3);
}

/* Футер меню, всегда видимый */
.wallet-dropdown-footer {
    flex-shrink: 0;
    padding: 15px 20px;
    border-top: 1px solid rgba(57, 255, 20, 0.2);
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(16, 23, 41, 0.7) 30%,
        rgba(16, 23, 41, 0.9) 70%,
        rgba(16, 23, 41, 1) 100%
    );
    backdrop-filter: blur(10px);
    position: sticky;
    bottom: 0;
    z-index: 2;
}

/* Заголовок в выпадающем меню */
.wallet-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(57, 255, 20, 0.2);
}

.wallet-dropdown-header h3 {
    color: #39ff14;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    margin: 0;
}

.close-dropdown {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.close-dropdown:hover {
    color: #39ff14;
}

/* Информация о кошельке в меню */
.wallet-details {
    background: rgba(57, 255, 20, 0.05);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(57, 255, 20, 0.1);
}

.wallet-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.wallet-detail-row:last-child {
    margin-bottom: 0;
}

.wallet-detail-label {
    font-size: 0.85rem;
    color: #94a3b8;
}

.wallet-detail-value {
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 0.85rem;
    color: #39ff14;
    font-weight: 600;
}

/* Секция делегаций */
.delegations-section {
    margin-bottom: 20px;
}

.wallet-section-title {
    color: #00eaff;
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wallet-section-title i {
    font-size: 1rem;
}

/* Грид для множественных делегаций */
.delegations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Список делегаций */
.delegations-list {
    margin-bottom: 15px;
}

/* Карточка делегации */
.delegation-card {
    background: rgba(0, 234, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid rgba(0, 234, 255, 0.1);
    transition: all 0.3s ease;
}

.delegation-card:hover {
    background: rgba(0, 234, 255, 0.1);
    border-color: rgba(0, 234, 255, 0.3);
}

.delegation-card.compact {
    padding: 12px;
    margin-bottom: 10px;
}

.delegation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.delegation-card.compact .delegation-header {
    margin-bottom: 8px;
}

.delegation-node {
    font-weight: 600;
    color: #00eaff;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.delegation-amount {
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    color: #39ff14;
    font-weight: 600;
}

.delegation-rewards {
    background: rgba(57, 255, 20, 0.1);
    padding: 8px;
    border-radius: 6px;
    margin-bottom: 10px;
    border: 1px solid rgba(57, 255, 20, 0.2);
}

.delegation-rewards-compact {
    background: rgba(57, 255, 20, 0.1);
    padding: 6px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rewards-amount {
    font-size: 0.9rem;
    color: #39ff14;
    font-weight: 600;
    margin-bottom: 5px;
}

.delegation-rewards-compact .rewards-amount {
    color: #39ff14;
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 0;
}

.rewards-label {
    font-size: 0.75rem;
    color: #94a3b8;
}

.delegation-rewards-compact .rewards-label {
    color: #94a3b8;
    font-size: 0.75rem;
}

/* Кнопки действий в делегации */
.delegation-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.delegation-card.compact .delegation-actions {
    margin-top: 10px;
    gap: 6px;
}

.delegation-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Exo 2', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    position: relative;
}

.delegation-btn.compact {
    padding: 6px 10px;
    font-size: 0.7rem;
    min-width: 36px;
    height: 32px;
}

.delegation-btn.compact i {
    font-size: 0.8rem;
    margin: 0;
}

.btn-delegate-more {
    background: rgba(0, 234, 255, 0.2);
    color: #00eaff;
    border: 1px solid rgba(0, 234, 255, 0.3);
}

.btn-delegate-more:hover:not(:disabled) {
    background: rgba(0, 234, 255, 0.3);
}

.btn-undelegate {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.btn-undelegate:hover:not(:disabled) {
    background: rgba(255, 107, 107, 0.3);
}

.btn-withdraw {
    background: rgba(57, 255, 20, 0.2);
    color: #39ff14;
    border: 1px solid rgba(57, 255, 20, 0.3);
}

.btn-withdraw:hover:not(:disabled) {
    background: rgba(57, 255, 20, 0.3);
}

/* Кнопка Pending - для нод с ожидающими событиями */
.btn-pending {
    background: rgba(255, 209, 102, 0.2);
    color: #ffd166;
    border: 1px solid rgba(255, 209, 102, 0.3);
    cursor: not-allowed;
    opacity: 0.7;
    flex: 1;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Exo 2', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-pending:hover {
    background: rgba(255, 209, 102, 0.2);
}



/* Отключенные кнопки */
.delegation-btn:disabled,
.btn-delegate-more:disabled,
.btn-undelegate:disabled,
.btn-withdraw:disabled {
    opacity: 0.7;
    cursor: wait;
}

/* Секция ожидающих событий */
.pending-events-section {
    margin-bottom: 20px;
}

.pending-events-list {
    background: rgba(255, 209, 102, 0.05);
    border: 1px solid rgba(255, 209, 102, 0.2);
    border-radius: 8px;
    padding: 15px;
    max-height: 150px;
    overflow-y: auto;
}

.pending-events-list::-webkit-scrollbar {
    width: 6px;
}

.pending-events-list::-webkit-scrollbar-track {
    background: rgba(255, 209, 102, 0.1);
    border-radius: 3px;
}

.pending-events-list::-webkit-scrollbar-thumb {
    background: rgba(255, 209, 102, 0.3);
    border-radius: 3px;
}

.pending-events-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 209, 102, 0.5);
}

.pending-event {
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 0.8rem;
    color: #ffd166;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 209, 102, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pending-event:last-child {
    border-bottom: none;
}

.pending-event.compact {
    padding: 8px 0;
    font-size: 0.8rem;
}

.pending-event-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pending-event.compact .pending-event-info {
    flex-direction: column;
    gap: 2px;
}

.pending-event-type {
    font-weight: 600;
    color: #ffd166;
}

.pending-event-details {
    font-size: 0.7rem;
    color: #94a3b8;
}

.epoch-info {
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 5px;
    text-align: center;
    font-style: italic;
}

.no-events, .no-delegations {
    color: #94a3b8;
    font-style: italic;
    text-align: center;
    padding: 10px;
}

/* Секция withdraw all */
.withdraw-all-section {
    margin: 12px 0;
}

.withdraw-all-btn {
    background: linear-gradient(90deg, #39ff14, #00ff88);
    color: #000;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.withdraw-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(57, 255, 20, 0.5);
}

.withdraw-all-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

/* Кнопка отключения */
.disconnect-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(90deg, #ff4757, #ff6b6b);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.disconnect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.5);
}

/* Индикатор дополнительных событий */
.more-events {
    text-align: center;
    padding: 8px;
    color: #94a3b8;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    margin-top: 5px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Модальное окно делегирования */
.wallet-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.wallet-modal.show {
    display: flex;
}

.wallet-modal-content {
    background: linear-gradient(135deg, rgba(16, 23, 41, 0.95) 0%, rgba(8, 17, 33, 0.95) 100%);
    border-radius: 16px;
    padding: 25px;
    width: 90%;
    max-width: 500px;
    border: 1px solid rgba(0, 234, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wallet-modal-compact .wallet-modal-content {
    max-width: 400px;
    padding: 20px;
}

.wallet-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 234, 255, 0.2);
}

.wallet-modal-compact .wallet-modal-header {
    margin-bottom: 15px;
    padding-bottom: 15px;
}

.wallet-modal-header h3 {
    color: #00eaff;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wallet-modal-compact .wallet-modal-header h3 {
    font-size: 1.1rem;
}

.wallet-modal-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.wallet-modal-close:hover {
    color: #00eaff;
}

.wallet-modal-section {
    margin-bottom: 20px;
}

.wallet-modal-info {
    background: rgba(0, 234, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(0, 234, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.wallet-modal-info i {
    color: #00eaff;
    font-size: 1.2rem;
}

.wallet-modal-info p {
    color: #94a3b8;
    margin: 0;
    font-size: 0.9rem;
}

.wallet-modal-info strong {
    color: #00eaff;
}

/* Секция предупреждения для Undelegate */
.wallet-warning-section {
    background: rgba(255, 107, 107, 0.05);
    border: 1px solid rgba(255, 107, 107, 0.2);
    border-radius: 8px;
    padding: 20px;
}

.wallet-warning-icon {
    color: #ff6b6b;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 15px;
}

.wallet-warning-content h4 {
    color: #ff6b6b;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-family: 'Orbitron', sans-serif;
}

.wallet-warning-content p {
    color: #94a3b8;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.wallet-warning-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wallet-warning-list li {
    color: #94a3b8;
    margin-bottom: 8px;
    font-size: 0.85rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.wallet-warning-list li:last-child {
    margin-bottom: 0;
}

.wallet-warning-list li::before {
    content: '⚠️';
    font-size: 0.8rem;
}

.wallet-warning-list li strong {
    color: #ff6b6b;
}

.undelegate-amount-display {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.2);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: #ff6b6b;
    font-weight: 700;
}

.wallet-form-group {
    margin-bottom: 20px;
}

.wallet-form-group label {
    display: block;
    color: #94a3b8;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.wallet-form-group input {
    width: 100%;
    padding: 12px;
    background: rgba(0, 234, 255, 0.1);
    border: 1px solid rgba(0, 234, 255, 0.3);
    border-radius: 8px;
    color: #00eaff;
    font-size: 1rem;
    font-family: 'Exo 2', sans-serif;
}

.wallet-form-group input:focus {
    outline: none;
    border-color: #00eaff;
    box-shadow: 0 0 10px rgba(0, 234, 255, 0.3);
}

.wallet-balance-info {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #94a3b8;
}

.wallet-balance-info span {
    color: #39ff14;
    font-weight: 600;
}

.btn-max {
    background: rgba(57, 255, 20, 0.2);
    color: #39ff14;
    border: 1px solid rgba(57, 255, 20, 0.3);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-max:hover {
    background: rgba(57, 255, 20, 0.3);
}

.wallet-modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.wallet-btn-cancel, .wallet-btn-confirm, .wallet-btn-danger {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wallet-btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.wallet-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.2);
}

.wallet-btn-confirm {
    background: linear-gradient(90deg, #00eaff, #008cff);
    color: #000;
}

.wallet-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 234, 255, 0.5);
}

.wallet-btn-danger {
    background: linear-gradient(90deg, #ff6b6b, #ff8e8e);
    color: #000;
}

.wallet-btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.5);
}

/* Кнопка обновления в выпадающем меню */
.refresh-btn {
    background: none;
    border: none;
    color: #00eaff;
    cursor: pointer;
    padding: 5px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-left: auto;
}

.refresh-btn:hover {
    transform: rotate(180deg);
}

/* Индикатор загрузки в кошельке */
.wallet-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
}

.wallet-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 234, 255, 0.3);
    border-top: 3px solid #00eaff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Анимация для кнопки обновления */
.rotating {
    animation: rotate 0.5s ease;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(180deg); }
}

/* Улучшенные стили для модального окна Undelegate */

/* Карточка с информацией о ноде */
.wallet-node-summary-card {
    background: rgba(0, 234, 255, 0.05);
    border: 1px solid rgba(0, 234, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.wallet-node-summary-card:hover {
    background: rgba(0, 234, 255, 0.08);
    border-color: rgba(0, 234, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 234, 255, 0.1);
}

.wallet-node-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00eaff, #0099ff);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #000;
    flex-shrink: 0;
}

.wallet-node-info h4 {
    color: #00eaff;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    margin: 0 0 12px 0;
    font-weight: 700;
}

.wallet-node-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.wallet-detail-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.wallet-detail-label {
    display: block;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 4px;
    font-weight: 500;
}

.wallet-detail-value {
    display: block;
    font-size: 1.1rem;
    color: #39ff14;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-weight: 600;
}

/* Улучшенный warning section */
.wallet-warning-section {
    background: rgba(255, 209, 102, 0.05);
    border: 1px solid rgba(255, 209, 102, 0.2);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.wallet-warning-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 209, 102, 0.2);
}

.wallet-warning-header h4 {
    color: #ffd166;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    margin: 0;
}

.wallet-warning-header .wallet-warning-icon {
    color: #ffd166;
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 209, 102, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wallet-warning-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wallet-warning-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.wallet-warning-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(5px);
}

.wallet-warning-item-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 209, 102, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffd166;
    font-size: 1.2rem;
}

.wallet-warning-item-text {
    flex: 1;
}

.wallet-warning-item-text strong {
    color: #ffd166;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 5px;
}

.wallet-warning-item-text p {
    color: #94a3b8;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

/* Confirmation box */
.wallet-confirmation-box {
    background: rgba(255, 107, 107, 0.05);
    border: 1px solid rgba(255, 107, 107, 0.2);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.wallet-confirmation-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 107, 107, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff6b6b;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.wallet-confirmation-text {
    flex: 1;
    color: #e2e8f0;
    font-size: 1rem;
    text-align: left;
}

.wallet-confirmation-note {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 8px;
    font-style: italic;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 107, 107, 0.1);
}

/* Улучшенные кнопки */
.wallet-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    border-radius: 8px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
}

.wallet-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
    transform: translateY(-2px);
}

.wallet-btn-danger {
    background: linear-gradient(90deg, #ff4757, #ff6b6b);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    position: relative;
    overflow: hidden;
}

.wallet-btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.wallet-btn-danger::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.wallet-btn-danger:hover::before {
    left: 100%;
}

/* Компактные стили для модального окна Undelegate */

/* Компактная информационная панель */
.wallet-compact-info-panel {
    background: rgba(0, 234, 255, 0.05);
    border: 1px solid rgba(0, 234, 255, 0.15);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.wallet-compact-node-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.wallet-node-icon-small {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #00eaff, #0099ff);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #000;
    flex-shrink: 0;
}

.wallet-node-details-compact {
    flex: 1;
    min-width: 0;
}

.wallet-node-name {
    color: #00eaff;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.wallet-node-stats {
    display: flex;
    gap: 15px;
}

.wallet-stat-item {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.wallet-stat-label {
    display: block;
    font-size: 0.7rem;
    color: #94a3b8;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wallet-stat-value {
    display: block;
    font-size: 0.9rem;
    color: #39ff14;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Компактные предупреждения */
.wallet-compact-warnings {
    background: rgba(255, 209, 102, 0.05);
    border: 1px solid rgba(255, 209, 102, 0.15);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wallet-warning-item-compact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.wallet-warning-item-compact:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(3px);
}

.wallet-warning-icon-small {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: rgba(255, 209, 102, 0.15);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffd166;
    font-size: 0.9rem;
}

.wallet-warning-text-small {
    flex: 1;
    min-width: 0;
}

.wallet-warning-text-small strong {
    display: block;
    color: #ffd166;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.wallet-warning-subtext {
    display: block;
    color: #94a3b8;
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Компактные кнопки действий */
.wallet-compact-actions {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wallet-btn-cancel-compact, .wallet-btn-danger-compact {
    flex: 1;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    min-height: 44px;
}

.wallet-btn-cancel-compact {
    background: rgba(255, 255, 255, 0.07);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.wallet-btn-cancel-compact:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    transform: translateY(-1px);
}

.wallet-btn-danger-compact {
    background: linear-gradient(90deg, #ff4757, #ff6b6b);
    color: #fff;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.2);
}

.wallet-btn-danger-compact:hover {
    background: linear-gradient(90deg, #ff3742, #ff5a5a);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.wallet-btn-cancel-compact:active, .wallet-btn-danger-compact:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

/* ФИКС: Исправление конфликтующих стилей с cards.css */
.wallet-dropdown .status-badge,
.wallet-modal .status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 255, 136, 0.15);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.wallet-dropdown .stat-label,
.wallet-modal .stat-label {
    font-size: 0.85rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.wallet-dropdown .stat-value,
.wallet-modal .stat-value {
    font-weight: 600;
    font-size: 0.95rem;
    color: #00eaff;
}

.wallet-dropdown .node-name,
.wallet-modal .node-name {
    font-family: 'Orbitron', sans-serif;
    color: #00eaff;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.wallet-dropdown .progress-container,
.wallet-modal .progress-container {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    margin: 8px 0;
}

.wallet-dropdown .progress-bar,
.wallet-modal .progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #00eaff, #008cff);
    border-radius: 10px;
    transition: width 1s ease-in-out;
    box-shadow: 0 0 10px rgba(0, 234, 255, 0.3);
}

/* Адаптивность */
@media (max-width: 768px) {
    .wallet-dropdown {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        margin: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
        min-width: auto;
        width: 100%;
        max-width: none;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .wallet-dropdown.wide {
        min-width: 100%;
        max-width: 100%;
    }

    .wallet-info {
        padding: 6px 10px;
    }

    .wallet-address {
        font-size: 0.7rem;
        max-width: 80px;
    }

    .delegations-grid {
        grid-template-columns: 1fr;
    }

    .wallet-modal-content {
        width: 95%;
        margin: 20px;
    }

    .delegation-actions {
        flex-direction: column;
    }

    .delegation-btn {
        width: 100%;
    }

    .wallet-modal-actions {
        flex-direction: column;
    }

    .wallet-btn-cancel, .wallet-btn-confirm, .wallet-btn-danger {
        width: 100%;
    }

    .wallet-btn-cancel-compact, .wallet-btn-danger-compact {
        width: 100%;
    }

    .pending-tooltip {
        white-space: normal;
        max-width: 200px;
        text-align: center;
    }

    .wallet-node-summary-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .wallet-node-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .wallet-warning-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .wallet-warning-item-icon {
        align-self: center;
    }
    
    .wallet-confirmation-box {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .wallet-confirmation-text {
        text-align: center;
    }
    
    .wallet-modal-actions {
        flex-direction: column;
    }
    
    .wallet-btn-secondary, .wallet-btn-danger {
        width: 100%;
    }

    .wallet-dropdown-scrollable {
        padding: 0 15px 15px;
    }
    
    .wallet-dropdown-footer {
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .wallet-dropdown {
        padding: 15px;
    }

    .wallet-connect-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .wallet-address {
        max-width: 60px;
    }

    .wallet-modal-content {
        padding: 20px;
    }

    .wallet-modal-header h3 {
        font-size: 1.1rem;
    }

    .wallet-warning-content h4 {
        font-size: 1rem;
    }

    .wallet-node-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .wallet-node-info h4 {
        font-size: 1.2rem;
    }
    
    .wallet-warning-section {
        padding: 20px;
    }
    
    .wallet-confirmation-box {
        padding: 20px;
    }

    .wallet-modal-compact .wallet-modal-content {
        width: 95%;
        margin: 10px;
        padding: 15px;
        max-width: none;
    }
    
    .wallet-node-stats {
        flex-direction: column;
        gap: 8px;
    }
    
    .wallet-compact-warnings {
        padding: 10px;
    }
    
    .wallet-warning-item-compact {
        padding: 6px;
    }
    
    .wallet-btn-cancel-compact, .wallet-btn-danger-compact {
        padding: 10px 14px;
        font-size: 0.85rem;
        min-height: 42px;
    }
    
    .wallet-compact-actions {
        gap: 10px;
    }

    .delegation-card.compact {
        padding: 10px;
    }
    
    .delegation-btn.compact {
        padding: 4px 8px;
        min-width: 32px;
        height: 28px;
    }
    
    .withdraw-all-btn {
        padding: 10px;
        font-size: 0.85rem;
    }
}

@media (max-height: 600px) {
    .wallet-modal-compact .wallet-modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .wallet-compact-actions {
        position: sticky;
        bottom: 0;
        background: rgba(16, 23, 41, 0.95);
        backdrop-filter: blur(10px);
    }
}

/* Принудительная видимость кнопок на всех устройствах */
.wallet-modal-body {
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

.wallet-compact-actions {
    margin-top: auto;
    position: sticky;
    bottom: 0;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(16, 23, 41, 0.95) 10%,
        rgba(16, 23, 41, 1) 30%
    );
    padding-top: 20px;
    z-index: 1;
}


/* Стили для кнопок процентов */
.percentage-buttons {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.percentage-btn {
    flex: 1;
    min-width: 60px;
    padding: 8px 12px;
    background: rgba(0, 150, 255, 0.1);
    border: 1px solid rgba(0, 150, 255, 0.3);
    border-radius: 6px;
    color: #0096ff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.percentage-btn:hover {
    background: rgba(0, 150, 255, 0.2);
    border-color: rgba(0, 150, 255, 0.5);
}

.percentage-btn:active {
    transform: translateY(1px);
}

/* Стили для тултипа */
.btn-pending {
    position: relative;
}

.pending-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    /* ИЗМЕНИТЕ ЭТУ СТРОКУ: */
    white-space: normal; /* было: nowrap */
    z-index: 1000;
    margin-bottom: 5px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none;
    min-width: 140px;
    max-width: 200px; /* ДОБАВЬТЕ */
    text-align: center;
    line-height: 1.4; /* ДОБАВЬТЕ */
}

.pending-tooltip:after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

.btn-pending:hover .pending-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Для компактных кнопок */
.btn-pending.compact {
    position: relative;
}

.btn-pending.compact .pending-tooltip {
    font-size: 11px;
    padding: 4px 8px;
    min-width: 120px;
    max-width: 160px; /* ДОБАВЬТЕ */
    white-space: normal; /* ДОБАВЬТЕ */
}