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

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --cyan:    #00ffff;
    --magenta: #ff00ff;
    --blue:    #0077ff;
    --green:   #00ff88;
    --red:     #ff3355;

    --bg:      #080c10;
    --surface: rgba(255,255,255,0.04);
    --border:  rgba(255,255,255,0.09);
    --text:    #e8edf2;
    --muted:   rgba(255,255,255,0.4);

    --glow-c:  0 0 18px rgba(0,255,255,0.55), 0 0 40px rgba(0,255,255,0.25);
    --glow-g:  0 0 18px rgba(0,255,136,0.55), 0 0 40px rgba(0,255,136,0.25);
}

body {
    font-family: 'Exo 2', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,255,255,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,255,255,.055) 1px, transparent 1px);
    background-size: 56px 56px;
    animation: grid-move 24s linear infinite;
}

@keyframes grid-move {
    from { background-position: 0 0; }
    to   { background-position: 56px 56px; }
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
}

.bg-orb--1 {
    width: 560px; height: 560px;
    background: radial-gradient(circle, rgba(0,255,255,.13) 0%, transparent 70%);
    top: -140px; left: -140px;
    animation: orb1 20s ease-in-out infinite;
}
.bg-orb--2 {
    width: 440px; height: 440px;
    background: radial-gradient(circle, rgba(255,0,255,.10) 0%, transparent 70%);
    bottom: -100px; right: -100px;
    animation: orb2 16s ease-in-out infinite;
}
.bg-orb--3 {
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(0,119,255,.09) 0%, transparent 70%);
    top: 40%; left: 55%;
    animation: orb3 26s ease-in-out infinite;
}

@keyframes orb1 {
    0%,100% { transform: translate(0,0) scale(1); }
    40%     { transform: translate(70px,55px) scale(1.1); }
    70%     { transform: translate(-30px,100px) scale(.9); }
}
@keyframes orb2 {
    0%,100% { transform: translate(0,0); }
    50%     { transform: translate(-90px,-55px) scale(1.15); }
}
@keyframes orb3 {
    0%,100% { opacity:.6; transform: translate(0,0); }
    50%     { opacity:1;  transform: translate(50px,-40px); }
}

.wrap {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    width: 90%;
    max-width: 480px;
    padding: 20px 0;
}

.logo-section { text-align: center; }

.logo-img {
    height: 66px;
    width: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 0 10px rgba(0,255,255,.45));
    transition: filter .35s ease, transform .35s ease;
}

.logo-section:hover .logo-img {
    filter:
        drop-shadow(0 0 6px #00ffff)
        drop-shadow(0 0 20px #00ffff)
        drop-shadow(0 0 42px rgba(0,255,255,.5));
    transform: scale(1.05);
}

.card {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 44px 40px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    position: relative;
    overflow: hidden;
    animation: card-in .7s cubic-bezier(.22,1,.36,1) both;
}

@keyframes card-in {
    from { opacity:0; transform: translateY(24px) scale(.97); }
    to   { opacity:1; transform: translateY(0) scale(1); }
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg,
        transparent 40%,
        rgba(255,255,255,.04) 50%,
        transparent 60%);
    transform: translateX(-100%);
    animation: sweep 5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes sweep {
    0%   { transform: translateX(-100%); }
    40%  { transform: translateX(100%); }
    100% { transform: translateX(100%); }
}

.phase {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    transition: opacity .4s ease;
}

.phase.hidden {
    display: none;
}

.phase-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    position: relative;
}

.phase-icon svg {
    width: 52px;
    height: 52px;
}

.icon-scan {
    background: radial-gradient(circle, rgba(0,255,255,.12) 0%, transparent 75%);
    color: var(--cyan);
    box-shadow: 0 0 0 1px rgba(0,255,255,.15), 0 0 24px rgba(0,255,255,.12);
}

.icon-shield {
    background: radial-gradient(circle, rgba(0,255,255,.12) 0%, transparent 75%);
    color: var(--cyan);
    box-shadow: 0 0 0 1px rgba(0,255,255,.15), 0 0 24px rgba(0,255,255,.12);
    animation: icon-breathe 3s ease-in-out infinite;
}

.icon-success {
    background: radial-gradient(circle, rgba(0,255,136,.15) 0%, transparent 75%);
    color: var(--green);
    box-shadow: 0 0 0 1px rgba(0,255,136,.2), var(--glow-g);
}

@keyframes icon-breathe {
    0%,100% { box-shadow: 0 0 0 1px rgba(0,255,255,.15), 0 0 20px rgba(0,255,255,.10); }
    50%     { box-shadow: 0 0 0 1px rgba(0,255,255,.3),  0 0 36px rgba(0,255,255,.22); }
}

.spin-slow {
    transform-origin: center;
    animation: spin 6s linear infinite;
}

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

.ring-draw {
    stroke-dasharray: 180;
    stroke-dashoffset: 180;
    animation: draw-ring .6s .2s ease forwards;
}
@keyframes draw-ring {
    to { stroke-dashoffset: 0; }
}

.check-draw-big {
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: draw-check .5s .7s ease forwards;
}
@keyframes draw-check {
    to { stroke-dashoffset: 0; }
}

.phase-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: .04em;
}

.phase-sub {
    font-size: .92rem;
    color: var(--muted);
    letter-spacing: .01em;
}

.card-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: .03em;
}

.card-sub {
    font-size: .9rem;
    color: var(--muted);
    margin-bottom: 8px;
}

.scan-bar {
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,.08);
    border-radius: 99px;
    overflow: hidden;
    margin-top: 8px;
}

.scan-bar__fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    border-radius: 99px;
    box-shadow: 0 0 8px var(--cyan);
    transition: width .25s ease;
}

.slider-wrap {
    width: 100%;
    margin: 6px 0 10px;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 58px;
    background: rgba(0,0,0,.35);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    overflow: hidden;
    cursor: grab;
}

.slider-track:active { cursor: grabbing; }

.slider-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg,
        rgba(0,255,255,.18) 0%,
        rgba(0,255,136,.25) 100%);
    border-radius: 14px;
    transition: width .04s linear;
}

.slider-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: var(--muted);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: .05em;
    pointer-events: none;
    transition: opacity .25s;
}

.slider-label svg { opacity: .6; }

.slider-thumb {
    position: absolute;
    top: 50%;
    left: 4px;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(0,255,255,.9), rgba(0,180,255,.9));
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    cursor: grab;
    box-shadow:
        0 0 0 1px rgba(0,255,255,.5),
        0 0 18px rgba(0,255,255,.35),
        0 4px 12px rgba(0,0,0,.4);
    transition: box-shadow .2s ease, background .2s ease;
    z-index: 2;
    touch-action: none;
}

.slider-thumb:active { cursor: grabbing; }

.slider-thumb.dragging {
    box-shadow:
        0 0 0 2px rgba(0,255,255,.8),
        0 0 30px rgba(0,255,255,.5),
        0 6px 20px rgba(0,0,0,.5);
    background: linear-gradient(135deg, #00ffff, #00ccff);
}

.slider-thumb.done {
    background: linear-gradient(135deg, rgba(0,255,136,.95), rgba(0,200,100,.95));
    box-shadow:
        0 0 0 2px rgba(0,255,136,.7),
        var(--glow-g);
}

.step-dots {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    transition: background .3s, box-shadow .3s;
}

.dot.active {
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
}

.success-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--green);
    text-shadow: 0 0 16px rgba(0,255,136,.5);
    letter-spacing: .03em;
}

.success-sub {
    font-size: .92rem;
    color: var(--muted);
    margin-bottom: 4px;
}

.redirect-bar {
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,.08);
    border-radius: 99px;
    overflow: hidden;
    margin-top: 6px;
}

.redirect-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--green), var(--cyan));
    border-radius: 99px;
    box-shadow: 0 0 8px var(--green);
    transition: width .05s linear;
}

.redirect-hint {
    font-size: .82rem;
    color: var(--muted);
    letter-spacing: .04em;
}

.footer-note {
    font-size: .78rem;
    color: rgba(255,255,255,.22);
    letter-spacing: .04em;
    display: flex;
    align-items: center;
    text-align: center;
}

@media (max-width: 480px) {
    .card {
        padding: 32px 22px;
        border-radius: 16px;
    }
    .card-title { font-size: 1.35rem; }
    .logo-img { height: 52px; }
}
