@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ========================================
   Migration Modal
   ======================================== */

.migration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(12px);
    animation: migrationFadeIn 0.35s ease-out;
}

.migration-modal {
    background: #fff;
    border-radius: 24px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 40px 120px rgba(0, 0, 0, 0.4),
        0 0 100px rgba(21, 85, 240, 0.25);
    animation: migrationScaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.migration-modal-wide {
    display: flex;
    max-width: 980px;
    width: 92%;
    min-height: 540px;
    position: relative;
}

.migration-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    cursor: pointer;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.migration-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #111827;
}

/* ---- Hero (left side) ---- */

.migration-modal-hero {
    flex: 1.15;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 44px;
}

.migration-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, #0a1e47 0%, #1a3a70 35%, #1555F0 70%, #0045E0 100%);
    z-index: 0;
}

.migration-hero-bg::before {
    content: '';
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(21, 85, 240, 0.4) 0%, transparent 70%);
    top: -120px;
    right: -120px;
    animation: migrationPulse 4s ease-in-out infinite;
}

.migration-hero-bg::after {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(21, 85, 240, 0.3) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation: migrationPulse 4s ease-in-out 2s infinite;
}

.migration-hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
}

.migration-hero-badge {
    display: inline-block;
    padding: 5px 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.5px;
    color: #fff;
    margin-bottom: 22px;
    backdrop-filter: blur(8px);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.migration-hero-logo {
    font-family: 'Inter', sans-serif;
    font-size: 48px;
    font-weight: 900;
    letter-spacing: -2px;
    margin: 0 0 6px;
    line-height: 1;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.migration-hero-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 32px;
    letter-spacing: -0.3px;
}

.migration-hero-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.migration-hero-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: -0.1px;
}

.migration-hero-features li svg {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    padding: 4px;
    box-shadow: 0 0 16px rgba(21, 85, 240, 0.4);
}

/* ---- Body (right side) ---- */

.migration-modal-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
}

.migration-body-inner {
    padding: 56px 44px;
    text-align: center;
    max-width: 380px;
}

.migration-modal-icon-spark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin: 0 auto 28px;
    background: linear-gradient(145deg, #E3F2FD, #BBDEFB);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(21, 85, 240, 0.2);
}

.migration-modal-title {
    font-family: 'Inter', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 14px;
    letter-spacing: -0.8px;
}

.migration-modal-description {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #6b7280;
    line-height: 1.75;
    margin: 0 0 36px;
    letter-spacing: -0.1px;
}

.migration-modal-description strong {
    color: #1555F0;
    font-weight: 700;
}

.migration-modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #1555F0 0%, #0045E0 100%);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    letter-spacing: -0.2px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 24px rgba(21, 85, 240, 0.4);
}

.migration-modal-btn:hover {
    box-shadow: 0 12px 40px rgba(21, 85, 240, 0.55);
    transform: translateY(-3px);
}

.migration-modal-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(21, 85, 240, 0.4);
}

.migration-modal-loading {
    margin-top: 16px;
}

/* ---- Blocked state (migration_status = 1) ---- */

.migration-icon-locked {
    background: linear-gradient(145deg, #FEF2F2, #FEE2E2);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.12);
}

.migration-btn-go {
    text-decoration: none;
    color: #fff;
}

.migration-btn-go:hover {
    color: #fff;
    text-decoration: none;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 768px) {
    .migration-modal-wide {
        flex-direction: column;
        max-width: 420px;
        min-height: auto;
    }

    .migration-modal-hero {
        padding: 32px;
        min-height: 220px;
    }

    .migration-hero-logo {
        font-size: 34px;
    }

    .migration-hero-features {
        display: none;
    }

    .migration-body-inner {
        padding: 32px 24px;
    }
}

/* ========================================
   Animations
   ======================================== */

@keyframes migrationSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

@keyframes migrationScaleIn {
    from {
        transform: scale(0.9) translateY(30px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes migrationPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}
