* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: linear-gradient(135deg, #0f0e1a 0%, #1a1735 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e0e0e0;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 20px;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00d4ff 0%, #0099ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.header p {
    font-size: 1.1rem;
    color: #a0a0b0;
    font-weight: 300;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 153, 255, 0.1) 0%, transparent 50%),
        rgba(15, 14, 26, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: backdropFadeIn 0.3s ease-out;
}

@keyframes backdropFadeIn {
    from {
        background: 
            radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
            radial-gradient(circle at 80% 80%, rgba(0, 153, 255, 0) 0%, transparent 50%),
            rgba(15, 14, 26, 0.7);
        backdrop-filter: blur(5px);
    }
    to {
        background: 
            radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 80% 80%, rgba(0, 153, 255, 0.1) 0%, transparent 50%),
            rgba(15, 14, 26, 0.85);
        backdrop-filter: blur(10px);
    }
}

.popup.active {
    display: flex;
}

.popup-content {
    background: linear-gradient(135deg, #1a1735 0%, #2d2550 100%);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5), 
        0 0 40px rgba(0, 212, 255, 0.1),
        inset 0 1px 0 rgba(0, 212, 255, 0.1);
    overflow: hidden;
    animation: slideUp 0.3s ease-out, glowPulse 3s ease-in-out infinite;
    position: relative;
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 
            0 20px 60px rgba(0, 0, 0, 0.5), 
            0 0 40px rgba(0, 212, 255, 0.1),
            inset 0 1px 0 rgba(0, 212, 255, 0.1);
    }
    50% {
        box-shadow: 
            0 20px 60px rgba(0, 0, 0, 0.5), 
            0 0 60px rgba(0, 212, 255, 0.2),
            inset 0 1px 0 rgba(0, 212, 255, 0.2);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.popup-header {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 153, 255, 0.05) 100%);
    padding: 30px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.popup-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #00d4ff;
}

.popup-body {
    padding: 30px;
    color: #e0e0e0;
    overflow-y: auto;
    flex: 1;
}

.popup-body h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #00d4ff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.popup-body p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #b0b0c0;
    margin-bottom: 12px;
}

.popup-body hr {
    margin: 20px 0;
    border: none;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

.address-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    font-family: 'Monaco', 'Courier New', monospace;
}

.address-box code {
    color: #00d4ff;
    font-size: 0.85rem;
    word-break: break-all;
    flex: 1;
}

.btn-copy {
    background: rgba(0, 212, 255, 0.2);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: #00d4ff;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    margin-left: 10px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
}

.btn-copy:hover {
    background: rgba(0, 212, 255, 0.4);
    border-color: rgba(0, 212, 255, 0.6);
}

.popup-footer {
    padding: 20px 30px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(0, 212, 255, 0.1);
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-direction: column;
}

.popup-footer-buttons {
    display: flex;
    gap: 10px;
}

.popup-footer-social {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
}

.popup-social-icon {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    color: #00d4ff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.popup-social-icon:hover {
    background: rgba(0, 212, 255, 0.25);
    border-color: rgba(0, 212, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
}

.btn {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #00d4ff 0%, #0099ff 100%);
    color: #0f0e1a;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.input-field {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 0.95rem;
    margin: 15px 0;
    font-family: 'Monaco', 'Courier New', monospace;
    transition: all 0.2s ease;
}

.input-field:focus {
    outline: none;
    border-color: rgba(0, 212, 255, 0.6);
    background: rgba(0, 212, 255, 0.05);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 212, 255, 0.2);
    border-top-color: #00d4ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.success-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    color: #00d4ff;
    animation: checkmarkPop 0.5s ease-out;
}

@keyframes checkmarkPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

#popup4Message {
    text-align: center;
    margin-top: 20px;
    color: #a0a0b0;
}

.btn-secondary {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    border: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow: none;
}

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.5);
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    background: linear-gradient(to top, rgba(15, 14, 26, 0.9), transparent);
    z-index: 100;
    pointer-events: none;
}

.footer.hidden {
    display: none;
}

.social-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 10px;
    color: #00d4ff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    pointer-events: all;
}

.social-icon:hover {
    background: rgba(0, 212, 255, 0.25);
    border-color: rgba(0, 212, 255, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.2);
}

.coming-soon-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #1a1735 0%, #2d2550 100%);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    z-index: 2000;
    min-width: 300px;
    display: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 212, 255, 0.2);
    animation: popIn 0.3s ease-out;
}

@keyframes popIn {
    from {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.coming-soon-modal h2 {
    color: #00d4ff;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.coming-soon-modal p {
    color: #b0b0c0;
    margin-bottom: 25px;
}

.coming-soon-modal button {
    background: linear-gradient(135deg, #00d4ff 0%, #0099ff 100%);
    color: #0f0e1a;
    border: none;
    padding: 10px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.coming-soon-modal button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

.coming-soon-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 153, 255, 0.1) 0%, transparent 50%),
        rgba(15, 14, 26, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1999;
}

.coming-soon-overlay.show {
    display: block;
}

.coming-soon-modal.show {
    display: block;
}

.migration-steps {
    text-align: left;
    margin: 20px 0;
}

.migration-steps h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #00d4ff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.migration-steps ol {
    counter-reset: custom-counter;
    list-style: none;
    padding: 0;
    margin: 0;
}

.migration-steps li {
    counter-increment: custom-counter;
    margin-bottom: 12px;
    padding-left: 35px;
    position: relative;
    color: #b0b0c0;
    line-height: 1.5;
    font-size: 0.95rem;
}

.migration-steps li:before {
    content: counter(custom-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(135deg, #00d4ff 0%, #0099ff 100%);
    color: #0f0e1a;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 1.8rem;
    }

    .popup-content {
        margin: 20px;
    }

    .popup-header, .popup-body, .popup-footer {
        padding: 20px;
    }

    .footer {
        gap: 15px;
        padding: 15px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}
