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

:root {
    --bg: #0a0a0f;
    --surface: #13131a;
    --border: #1e1e2e;
    --accent: #6c63ff;
    --accent-glow: rgba(108, 99, 255, 0.15);
    --accent-2: #ff6584;
    --text: #e8e8f0;
    --muted: #6b6b80;
    --dot: #2a2a3a;
}

html, body {
    height: 100%;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
    direction: rtl;
}

/* Dot grid background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(var(--dot) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

/* Ambient glow blobs */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.18;
    pointer-events: none;
    z-index: 0;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--accent);
    top: -120px;
    right: -100px;
    animation: drift 12s ease-in-out infinite alternate;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-2);
    bottom: -100px;
    left: -80px;
    animation: drift 16s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(40px, 30px) scale(1.05); }
}

/* Main card */
.card {
    position: relative;
    z-index: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 56px 64px;
    max-width: 560px;
    width: calc(100% - 40px);
    text-align: center;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.03), 0 32px 64px rgba(0,0,0,0.5);
    animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(24px);
}

@keyframes rise {
    to { opacity: 1; transform: translateY(0); }
}

/* Icon area */
.icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: var(--accent-glow);
    border: 1px solid rgba(108, 99, 255, 0.3);
    margin-bottom: 32px;
    position: relative;
}

.icon-wrap::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(108,99,255,0.4), transparent 60%);
    pointer-events: none;
}

.gear-icon {
    width: 40px;
    height: 40px;
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: spin 8s linear infinite;
    transform-origin: center;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(108, 99, 255, 0.1);
    border: 1px solid rgba(108, 99, 255, 0.25);
    color: #a29bff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 20px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.8); }
}

/* Heading */
h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #fff 0%, #a29bff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Description */
p {
    color: var(--muted);
    font-size: 0.97rem;
    line-height: 1.75;
    margin-bottom: 40px;
}

/* Progress bar */
.progress-wrap {
    background: var(--border);
    border-radius: 999px;
    height: 6px;
    margin-bottom: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    width: 0%;
    animation: fill 2.5s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
    box-shadow: 0 0 12px rgba(108, 99, 255, 0.6);
}

@keyframes fill {
    to { width: 68%; }
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 40px;
}

.progress-label span:last-child {
    color: #a29bff;
    font-weight: 600;
}

/* Divider */
.divider {
    height: 1px;
    background: var(--border);
    margin-bottom: 28px;
}

/* Steps */
.steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: right;
}

.step {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
}

.step-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step.done .step-icon {
    background: rgba(108, 99, 255, 0.15);
    border: 1px solid rgba(108, 99, 255, 0.3);
}

.step.done .step-icon svg {
    stroke: var(--accent);
}

.step.active .step-icon {
    background: rgba(255, 101, 132, 0.1);
    border: 1px solid rgba(255, 101, 132, 0.3);
    animation: ring 2s ease-in-out infinite;
}

.step.active .step-icon svg {
    stroke: var(--accent-2);
}

.step.pending .step-icon {
    background: var(--dot);
    border: 1px solid var(--border);
}

.step.pending .step-icon svg {
    stroke: var(--muted);
}

@keyframes ring {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 101, 132, 0.3); }
    50%       { box-shadow: 0 0 0 5px rgba(255, 101, 132, 0); }
}

.step-text {
    color: var(--text);
    flex: 1;
}

.step.pending .step-text {
    color: var(--muted);
}

.step-status {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    margin-right: auto;
}

.step.done .step-status {
    background: rgba(108, 99, 255, 0.12);
    color: #a29bff;
}

.step.active .step-status {
    background: rgba(255, 101, 132, 0.12);
    color: #ff6584;
}

.step.pending .step-status {
    background: var(--dot);
    color: var(--muted);
}

/* Footer */
.footer {
    margin-top: 36px;
    font-size: 12px;
    color: var(--muted);
}

.footer a {
    color: #a29bff;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 540px) {
    .card {
        padding: 40px 28px;
    }

    h1 {
        font-size: 1.6rem;
    }
}
