/* Wallet Modal & Components CSS */
.wallet-modal {
    border: none;
    border-radius: 24px;
    padding: 0;
    max-width: 420px;
    width: 90vw;
    background: linear-gradient(180deg, rgba(15, 15, 22, 0.98), rgba(10, 10, 16, 0.98));
    backdrop-filter: saturate(1.2) blur(20px);
    -webkit-backdrop-filter: saturate(1.2) blur(20px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: modalSlideIn 0.3s cubic-bezier(0.4, 0.1, 0.2, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.wallet-modal::backdrop {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: backdropFadeIn 0.3s ease;
}

@keyframes backdropFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.wallet-modal-content {
    color: white;
}

.wallet-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wallet-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #ff2fb3, #00d0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wallet-modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.wallet-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.wallet-modal-body {
    padding: 24px;
}

.wallet-state {
    text-align: center;
}

.wallet-logo {
    margin-bottom: 16px;
}

.wallet-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 24px;
}

.wallet-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.wallet-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0.1, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.wallet-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.wallet-option:hover::before {
    left: 100%;
}

.wallet-option:hover {
    background: rgba(255, 47, 179, 0.15);
    border-color: rgba(255, 47, 179, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 47, 179, 0.2);
}

.wallet-option:active {
    transform: translateY(0);
}

.wallet-option-primary {
    background: linear-gradient(135deg, rgba(255, 47, 179, 0.2), rgba(0, 208, 255, 0.2));
    border-color: rgba(255, 47, 179, 0.3);
}

.wallet-option-primary:hover {
    background: linear-gradient(135deg, rgba(255, 47, 179, 0.3), rgba(0, 208, 255, 0.3));
    border-color: rgba(255, 47, 179, 0.5);
    box-shadow: 0 8px 24px rgba(255, 47, 179, 0.3);
}

.wallet-option-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wallet-option-icon svg {
    width: 24px;
    height: 24px;
}

.wallet-separator {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
}

.wallet-separator-line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.wallet-terms {
    margin: 20px 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.wallet-terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.wallet-terms-checkbox input[type="checkbox"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #8b5cf6;
    flex-shrink: 0;
}

.wallet-terms-checkbox a {
    color: #8b5cf6;
    text-decoration: underline;
    transition: color 0.2s;
}

.wallet-terms-checkbox a:hover {
    color: #a78bfa;
}

.wallet-option:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wallet-network {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.network-dot {
    width: 8px;
    height: 8px;
    background: #0052FF;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.wallet-avatar {
    margin-bottom: 16px;
}

.wallet-avatar-circle {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #3b82f6, #10b981);
    animation: gradient-rotate 3s linear infinite;
}

@keyframes gradient-rotate {
    0% {
        filter: hue-rotate(0deg);
    }

    100% {
        filter: hue-rotate(360deg);
    }
}

.wallet-address {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: inline-block;
}

.wallet-balance-card {
    background: linear-gradient(135deg, rgba(255, 47, 179, 0.15), rgba(0, 208, 255, 0.15));
    border: 1px solid rgba(255, 47, 179, 0.3);
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.wallet-balance-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 47, 179, 0.1) 0%, transparent 70%);
    animation: balanceShimmer 3s ease-in-out infinite;
}

@keyframes balanceShimmer {

    0%,
    100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(180deg);
    }
}

.balance-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.balance-value {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #ff2fb3, #00d0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.wallet-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.wallet-action-btn {
    flex: 1;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0.1, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.wallet-action-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.wallet-action-btn:active {
    transform: translateY(0);
}

.wallet-action-btn.danger {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
}

.wallet-action-btn.danger:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}