* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
    color: #111827;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.card {
    width: 100%;
    max-width: 680px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 36px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.10);
}

.top-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.spinner {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 6px solid #e5e7eb;
    border-top-color: #4f46e5;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

h1 {
    margin: 0 0 10px;
    font-size: 30px;
    text-align: center;
}

p {
    margin: 0 0 28px;
    text-align: center;
    color: #4b5563;
    line-height: 1.6;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fafafa;
}

.step strong {
    display: block;
    margin-bottom: 4px;
    font-size: 16px;
}

.step small {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.icon {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    margin-top: 2px;
    flex: 0 0 18px;
    position: relative;
}

.icon.pending {
    background: #d1d5db;
}

.icon.loading {
    background: #4f46e5;
    box-shadow: 0 0 0 6px rgba(79,70,229,.12);
}

.icon.success {
    background: #16a34a;
    box-shadow: 0 0 0 6px rgba(22,163,74,.10);
}

.icon.error {
    background: #dc2626;
    box-shadow: 0 0 0 6px rgba(220,38,38,.10);
}

.icon.success::after {
    content: "✓";
    position: absolute;
    inset: 0;
    color: #fff;
    font-size: 13px;
    line-height: 18px;
    text-align: center;
    font-weight: bold;
    top: calc(50% - 8px);
}

.icon.error::after {
    content: "✕";
    position: absolute;
    inset: 0;
    color: #fff;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
    font-weight: bold;
}

.final-box {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.button {
    display: inline-block;
    background: #111827;
    color: #fff;
    text-decoration: none;
    padding: 14px 22px;
    border-radius: 12px;
    font-weight: 700;
}

.note {
    margin-top: 14px;
    color: #6b7280;
    font-size: 14px;
}

.error-box {
    margin-top: 22px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 14px 16px;
    border-radius: 12px;
    line-height: 1.6;
}

.hidden {
    display: none;
}