/* RainbowKit-style wallet connection UI */

/* Connect Button */
.rainbowkit-connect-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.rainbowkit-connect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.rainbowkit-connect-btn.connected {
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid #10b981;
    color: #10b981;
}

.rainbowkit-btn-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chain-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.chain-indicator.chain-1 {
    background: #627eea; /* Ethereum blue */
}

.chain-indicator.chain-56 {
    background: #f3ba2f; /* BSC yellow */
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.wallet-address {
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

/* Modal Overlay */
.rainbowkit-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Connect Modal */
.rainbowkit-modal {
    background: #1a1a2e;
    border-radius: 24px;
    padding: 24px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

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

.rainbowkit-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.rainbowkit-modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin: 0;
}

.rainbowkit-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.rainbowkit-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Wallet Grid */
.rainbowkit-wallet-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.rainbowkit-wallet-btn {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
}

.rainbowkit-wallet-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateY(-4px);
}

.wallet-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.rainbow-gradient {
    background: linear-gradient(135deg, #ff0080, #7928ca, #4a00e0);
}

.rainbowkit-wallet-btn span {
    font-size: 14px;
    font-weight: 600;
}

.wallet-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #10b981;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
}

/* Footer */
.rainbowkit-footer {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.rainbowkit-footer p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Account Modal */
.rainbowkit-account-modal {
    background: #1a1a2e;
    border-radius: 20px;
    padding: 20px;
    max-width: 360px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.account-header h4 {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin: 0;
}

.account-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.account-address {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #10b981;
    word-break: break-all;
    text-align: center;
}

.account-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.account-action-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.account-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(102, 126, 234, 0.5);
}

.account-action-btn.disconnect {
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.account-action-btn.disconnect:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}

/* Notifications */
.rainbowkit-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #1a1a2e;
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 10001;
    font-size: 14px;
    font-weight: 600;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.rainbowkit-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.rainbowkit-notification.success {
    border-left: 4px solid #10b981;
}

.rainbowkit-notification.error {
    border-left: 4px solid #ef4444;
}

.rainbowkit-notification.info {
    border-left: 4px solid #3b82f6;
}

/* Responsive */
@media (max-width: 480px) {
    .rainbowkit-wallet-grid {
        grid-template-columns: 1fr;
    }
    
    .rainbowkit-modal {
        max-width: 95%;
        padding: 20px;
    }
}
