* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0a;
    color: #fff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Animated star background */
.stars, .stars2, .stars3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.stars {
    background: transparent url('data:image/svg+xml,%3Csvg width="1" height="1" xmlns="http://www.w3.org/2000/svg"%3E%3Crect width="1" height="1" fill="white"/%3E%3C/svg%3E') repeat;
    background-size: 1px 1px;
    animation: animateStars 100s linear infinite;
}

.stars2 {
    background: transparent url('data:image/svg+xml,%3Csvg width="2" height="2" xmlns="http://www.w3.org/2000/svg"%3E%3Crect width="2" height="2" fill="white" opacity="0.5"/%3E%3C/svg%3E') repeat;
    background-size: 2px 2px;
    animation: animateStars 150s linear infinite;
    opacity: 0.5;
}

.stars3 {
    background: transparent url('data:image/svg+xml,%3Csvg width="3" height="3" xmlns="http://www.w3.org/2000/svg"%3E%3Crect width="3" height="3" fill="white" opacity="0.3"/%3E%3C/svg%3E') repeat;
    background-size: 3px 3px;
    animation: animateStars 200s linear infinite;
    opacity: 0.3;
}

@keyframes animateStars {
    from { transform: translateY(0); }
    to { transform: translateY(-1000px); }
}

/* Background gradient animation */
.background-gradient {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 50%, #7c3aed 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, #2563eb 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, #0ea5e9 0%, transparent 50%);
    animation: gradientShift 20s ease-in-out infinite;
    opacity: 0.15;
    filter: blur(100px);
}

@keyframes gradientShift {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
}

.container {
    width: 100%;
    max-width: 480px;
    z-index: 10;
}

.card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    overflow: hidden;
    backdrop-filter: blur(40px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.header {
    padding: 40px 30px 30px;
    text-align: center;
    position: relative;
}

.logo {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(124, 58, 237, 0.5));
}

.header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
    line-height: 1.3;
}

.subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.content {
    padding: 20px 30px 40px;
}

.wallet-status {
    text-align: center;
    margin-bottom: 30px;
}

.status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.status-icon svg {
    width: 48px;
    height: 48px;
}

.status-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.wallet-status.connected .status-icon {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    animation: pulse 3s ease-in-out infinite;
}

.wallet-status.connected .status-text {
    color: #10b981;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.connect-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.connect-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
}

.connect-btn:hover::before {
    left: 100%;
}

.connect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
}

.connect-btn:active {
    transform: translateY(0);
}

.wallet-info {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    margin-top: 24px;
}

.wallet-info.hidden {
    display: none;
}

.info-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-bottom: 12px;
    font-weight: 500;
}

.wallet-address {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    padding: 14px 16px;
    border-radius: 12px;
    word-break: break-all;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.disconnect-btn {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    width: 100%;
}

.disconnect-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
}

.message {
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 12px;
    text-align: center;
    font-size: 0.9rem;
    display: none;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
    display: block;
}

.message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    display: block;
}

.footer {
    background: rgba(255, 255, 255, 0.02);
    padding: 20px 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .header {
        padding: 30px 20px 20px;
    }
    
    .header h1 {
        font-size: 1.3rem;
    }
    
    .content {
        padding: 20px;
    }
    
    .wallet-address {
        font-size: 0.8rem;
        padding: 12px;
    }
}

/* Loading state */
.connect-btn.loading {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    cursor: not-allowed;
}

.connect-btn.loading::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 10px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mobile wallet modal */
#wallet-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

#wallet-modal .modal-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 100%;
    backdrop-filter: blur(20px);
}

#wallet-modal h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 24px;
    text-align: center;
    font-weight: 600;
}

.wallet-option {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-radius: 12px;
    margin-bottom: 10px;
    font-weight: 500;
}

.wallet-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
}

#wallet-modal .cancel-btn {
    margin-top: 16px;
    width: 100%;
    padding: 14px;
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    cursor: pointer;
    font-size: 0.9rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
}

#wallet-modal .cancel-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.4);
}

/* Glitch effect for header on hover */
.header h1:hover {
    animation: glitch 0.3s ease-in-out;
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
} 