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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: radial-gradient(circle at center, #1a0f2e 0%, #0a0818 70%);
    color: #fff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Subtle central glow like the screenshot */
body::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 30%, rgba(167, 139, 250, 0.25) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.main {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 520px;
    padding: 2rem 1.5rem 140px;   /* ← Increased bottom padding to prevent footer overlap */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
}


/* The exact gradient pill from the screenshot */
.pill {
    width: 260px;
    height: 42px;
    margin: 0 auto 4rem auto;
    background: linear-gradient(90deg, #8b5cf6, #22d3ee);
    border-radius: 9999px;
    box-shadow: 
        0 0 40px 8px rgba(139, 92, 246, 0.5),
        inset 0 2px 4px rgba(255,255,255,0.3);
    animation: pillPulse 4s infinite ease-in-out;
}

/* Content */
.title {
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: -1.5px;
    margin-bottom: 8px;
    line-height: 1;
}

.subtitle {
    font-size: 1.35rem;
    color: #c4c4cc;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.description {
    font-size: 1.1rem;
    line-height: 1.5;
    color: #a3a3b0;
    max-width: 380px;
    margin: 0 auto 3rem;
}

/* Buttons - exactly like the screenshot */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    margin-bottom: 140px;     /* ← Added this to prevent overlap */
}

.btn {
    width: 100%;
    max-width: 340px;
    height: 68px;
    background: #ffffff;
    color: #111111;
    border: none;
    border-radius: 9999px;
    font-size: 1.15rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.15);
}

.btn:hover {
    transform: scale(1.04);
    box-shadow: 0 15px 30px -8px rgb(139 92 246);
}

.icon {
    font-size: 30px;
    line-height: 1;
}

.android-icon {
    font-size: 32px;
}

.footer {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    color: #666;
    font-weight: 400;
    z-index: 10;              /* ← Ensures footer stays on top if needed */
}
/* Animation for the pill */
@keyframes pillPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .title { font-size: 2.7rem; }
    .pill { width: 220px; height: 38px; }
}
/* ====================== VERIFICATION PAGE STYLES ====================== */
.verify-section {
    max-width: 340px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.verify-input {
    width: 100%;
    height: 62px;
    background: #1f2937;
    border: 2px solid #64748b;
    border-radius: 9999px;
    padding: 0 24px 0 24px;
    font-size: 1.1rem;
    color: #fff;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 4px rgba(100, 116, 139, 0.15);
}

.verify-input:focus {
    border-color: #22d3ee;
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.3);
}

.verify-input::placeholder {
    color: #94a3b8;
}

.input-icon {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #64748b;
    pointer-events: none;
}

/* Verify button */
.verify-btn {
    height: 62px;
    background: #334155;
    color: #e2e8f0;
    font-size: 1.15rem;
    font-weight: 600;
    box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.2);
}

.verify-btn:hover {
    background: #475569;
    transform: scale(1.03);
}

/* ====================== SINGLE PAGE FORM ANIMATION ====================== */
.verify-container {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); /* smooth bounce feel */
    max-width: 380px;
    margin: 2rem auto 0;
    pointer-events: none;
}

.verify-container.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.action-buttons {
    transition: all 0.4s ease;
}

/* Optional: hide buttons after form appears */
.action-buttons.hidden {
    opacity: 0;
    visibility: hidden;
    height: 0;
    margin: 0;
}
/* ====================== LOADING & ACTION SEQUENCE ====================== */
.loading-screen {
    max-width: 420px;
    margin: 3rem auto 0;
    text-align: left;
}

.loading-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1.1rem;
    color: #e2e8f0;
}

.step-icon {
    font-size: 24px;
    width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: spin 1.5s linear infinite;
}

.step.completed .step-icon {
    animation: none;
    color: #22c55e;
    content: '✓';
}

.action-card {
    max-width: 420px;
    margin: 3rem auto 0;
    background: #1e2937;
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4);
}

.action-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #eab308;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.action-text {
    color: #cbd5e1;
    line-height: 1.5;
    margin-bottom: 24px;
}

.verify-now-btn {
    width: 100%;
    height: 62px;
    background: linear-gradient(90deg, #3b82f6, #22d3ee);
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.verify-now-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.5);
}

/* Animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hidden { display: none !important; }

/* White text below ACTION REQUIRED */
.white-text {
    color: #ffffff;
    text-align: center;
    font-size: 1.1rem;
    max-width: 420px;
    margin: 20px auto 16px;
    line-height: 1.5;
}

/* New Verify Now button with exact top pill gradient */
.gradient-verify-btn {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    height: 62px;
    background: linear-gradient(90deg, #8b5cf6, #22d3ee);
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px -5px rgba(139, 92, 246, 0.4);
    display: block;
}

.gradient-verify-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 15px 30px -8px rgba(139, 92, 246, 0.6);
}

/* ====================== FINAL SECTION (after loading) ====================== */
.final-actions {
    max-width: 420px;
    margin: 20px auto 0;
    text-align: center;
}

/* White text below ACTION REQUIRED */
.white-text {
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 18px;
}

/* Gradient Verify Now button (same as top pill) */
.gradient-verify-btn {
    width: 100%;
    height: 62px;
    background: linear-gradient(90deg, #8b5cf6, #22d3ee);
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px -5px rgba(139, 92, 246, 0.5);
}

.gradient-verify-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 15px 30px -8px rgba(139, 92, 246, 0.7);
}

/* Fix gapping between title and Action Required card */
.action-card {
    max-width: 420px;
    margin: 1.8rem auto 0;     /* ← Reduced gap */
    background: #1e2937;
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4);
}

.loading-screen {
    margin: 2rem auto 0;       /* ← Also tightened loading spacing */
}
/* Tighter spacing - fixes gap between title and Action Required */
.action-card {
    margin: 1.2rem auto 0 !important;   /* Reduced gap */
}

.loading-screen {
    margin: 2rem auto 0 !important;
}

.final-actions {
    margin: 1.2rem auto 0 !important;
}
/* === STRONG GAP FIX BETWEEN TITLE AND ACTION REQUIRED === */
.content {
    padding-bottom: 2rem;
}

.loading-screen,
.action-card,
.final-actions {
    margin-top: 1rem !important;
}

.action-card {
    margin-top: 0.8rem !important;
}

.final-actions {
    margin-top: 1rem !important;
}
/* === ONE LINE BELOW DESCRIPTION === */
.description {
    margin-bottom: 1.5rem !important;
}

#dynamic-content {
    margin-top: 0 !important;
}

.loading-screen,
.action-card,
.final-actions {
    margin-top: 12px !important;
}
/* === FORM VISIBILITY FIX === */
.hidden {
    display: none !important;
}

.verify-container {
    display: none;
}

.verify-container:not(.hidden) {
    display: block !important;
}