@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #0c0a1a;
    color: #333;
    overflow: hidden;
    padding: 20px;
    position: relative;
}

/* --- Aurora Background --- */
.fluid-background { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; overflow: hidden; }
.blob1, .blob2, .blob3 { position: absolute; filter: blur(120px); opacity: 0.8; }
.blob1 { width: 500px; height: 500px; background: radial-gradient(circle, #00f260, transparent 60%); border-radius: 45% 55% 70% 30% / 30% 60% 40% 70%; top: -10%; left: -20%; animation: aurora-flow 15s infinite alternate; }
.blob2 { width: 400px; height: 400px; background: radial-gradient(circle, #0575e6, transparent 60%); border-radius: 30% 70% 30% 70% / 70% 30% 70% 30%; bottom: -15%; right: -10%; animation: aurora-flow 18s infinite alternate-reverse; }
.blob3 { width: 300px; height: 300px; background: radial-gradient(circle, #7e22ce, transparent 60%); border-radius: 60% 40% 70% 30% / 40% 60% 30% 70%; bottom: 20%; left: 10%; animation: aurora-flow 12s infinite alternate; }

@keyframes aurora-flow {
    0% { transform: translateX(20px) translateY(10px) rotate(0deg) scale(1); }
    100% { transform: translateX(-20px) translateY(-10px) rotate(30deg) scale(1.1); }
}

.container { position: relative; z-index: 1; text-align: center; }
.card { background: #ffffff; border-radius: 20px; padding: 2.5rem; max-width: 450px; width: 100%; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2); animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); border: 1px solid rgba(255, 255, 255, 0.8); }

@keyframes popIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

h1, h2 { font-weight: 700; margin-bottom: 0.5rem; background: linear-gradient(45deg, #7e22ce, #4338ca); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
p { color: #4b5563; line-height: 1.7; margin-bottom: 2rem; }
.btn { display: inline-block; padding: 14px 30px; border: none; border-radius: 50px; font-weight: 600; cursor: pointer; font-size: 1rem; text-decoration: none; color: white; background: linear-gradient(45deg, #7e22ce, #4338ca, #7e22ce); background-size: 200% auto; transition: all 0.4s ease; box-shadow: 0 10px 20px -5px rgba(126, 34, 206, 0.4); }
.btn:hover { background-position: right center; transform: translateY(-5px); box-shadow: 0 15px 30px -5px rgba(126, 34, 206, 0.5); }
.tasks-container { display: flex; flex-direction: column; gap: 1rem; margin: 1.5rem 0; }
.btn-secondary { width: 100%; text-align: center; background: #f3f4f6; color: #4338ca; border: 1px solid #e5e7eb; box-shadow: none; }
.btn-secondary:hover { background: #fff; border-color: #4338ca; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: #374151; }
.form-group input { width: 100%; padding: 12px 15px; border: 1px solid #d1d5db; border-radius: 8px; background-color: #f9fafb; color: #111827; font-size: 1rem; transition: all 0.3s; }
.form-group input:focus { outline: none; border-color: #4338ca; background-color: #fff; box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.2); }
.alert.error { padding: 1rem; margin-bottom: 1.5rem; border-radius: 8px; color: #991b1b; background: #fee2e2; border: 1px solid #fecaca; }
.refresh-text { font-size: 0.9rem; color: #6b7280; margin-top: 1.5rem; }
#confetti-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.success-animation-wrapper { margin-bottom: 1.5rem; }
.checkmark { width: 120px; height: 120px; border-radius: 50%; display: block; stroke-width: 4; stroke: #fff; stroke-miterlimit: 10; box-shadow: inset 0px 0px 0px #16a34a; animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both; }
.checkmark__circle { stroke-dasharray: 166; stroke-dashoffset: 166; stroke-width: 4; stroke-miterlimit: 10; stroke: #16a34a; fill: none; animation: stroke .6s cubic-bezier(0.65, 0, 0.45, 1) forwards; }
.checkmark__check { transform-origin: 50% 50%; stroke-dasharray: 48; stroke-dashoffset: 48; animation: stroke .3s cubic-bezier(0.65, 0, 0.45, 1) .8s forwards; }
@keyframes stroke { 100% { stroke-dashoffset: 0; } }
@keyframes scale { 0%, 100% { transform: none; } 50% { transform: scale3d(1.1, 1.1, 1); } }
@keyframes fill { 100% { box-shadow: inset 0px 0px 0px 60px #dcfce7; } }
.success-page p strong { font-weight: 700; color: #16a34a; }

/* Responsive Adjustments */
@media (max-width: 768px) {
    body { padding: 15px; }
    .blob1 { width: 300px; height: 300px; top: -80px; left: -100px; }
    .blob2 { width: 250px; height: 250px; bottom: -100px; right: -80px; }
    .blob3 { display: none; }
    .card { padding: 2rem 1.5rem; }
    h1, h2 { font-size: 1.8rem; }
    p { font-size: 0.95rem; margin-bottom: 1.5rem; }
    .btn { padding: 12px 25px; font-size: 0.95rem; }
    .checkmark { width: 100px; height: 100px; }
    @keyframes fill { 100% { box-shadow: inset 0px 0px 0px 50px #dcfce7; } }
}

/* === FINAL FIXES FOR ALIGNMENT AND SPACING === */

/* Fix 1: Success Page Card Centering */
.success-card {
    display: flex;
    flex-direction: column;
    align-items: center; /* This will horizontally center all items inside the card */
}

/* Fix 2: Claim Page Button Spacing */
.claim-page form .btn {
    margin-top: 1rem; /* Adds space above the claim button */
}