/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0f;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow: hidden;
    color: #ffffff;
}

/* ===== BACKGROUND GRID ===== */
.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
}

/* ===== CONTAINER ===== */
.container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* ===== CIRCLE ANIMATION ===== */
.circle-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.circle-main {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #00ff88, #00cc6a, #009950);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 0 30px rgba(0, 255, 136, 0.4),
        0 0 60px rgba(0, 255, 136, 0.2),
        0 0 100px rgba(0, 255, 136, 0.1),
        inset 0 0 30px rgba(255, 255, 255, 0.1);
    animation: circleAppear 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards,
               circleFloat 3s ease-in-out 1.5s infinite;
    transform: scale(0);
    z-index: 2;
}

.circle-pulse {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(0, 255, 136, 0.15);
    animation: pulse 2s ease-in-out 0.5s infinite;
    z-index: 1;
}

.circle-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(0, 255, 136, 0.3);
    animation: ringExpand 2s ease-out infinite;
}

.ring-1 {
    width: 130px;
    height: 130px;
    animation-delay: 0.8s;
}

.ring-2 {
    width: 130px;
    height: 130px;
    animation-delay: 1.2s;
}

.ring-3 {
    width: 130px;
    height: 130px;
    animation-delay: 1.6s;
}

/* ===== CHECKMARK ===== */
.checkmark {
    width: 52px;
    height: 52px;
    display: block;
}

.checkmark-circle {
    stroke: rgba(255, 255, 255, 0.3);
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: strokeCircle 0.6s cubic-bezier(0.65, 0, 0.45, 1) 1.2s forwards;
}

.checkmark-check {
    stroke: #ffffff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: strokeCheck 0.4s cubic-bezier(0.65, 0, 0.45, 1) 1.6s forwards;
}

/* ===== PARTICLES CONTAINER ===== */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform, opacity;
}

.particle-spark {
    background: #00ff88;
    box-shadow: 0 0 6px #00ff88, 0 0 12px rgba(0, 255, 136, 0.5);
}

.particle-dot {
    background: #00cc6a;
    box-shadow: 0 0 4px #00cc6a;
}

.particle-glow {
    background: radial-gradient(circle, rgba(0, 255, 136, 0.8), transparent);
}

.particle-ring {
    background: transparent;
    border: 1px solid rgba(0, 255, 136, 0.6);
}

.particle-star {
    background: #80ffbb;
    box-shadow: 0 0 8px #80ffbb, 0 0 16px rgba(128, 255, 187, 0.4);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    border-radius: 0;
}

/* ===== RESULT CARD ===== */
.result-card {
    position: relative;
    margin-top: 40px;
    background: linear-gradient(145deg, rgba(20, 30, 25, 0.95), rgba(10, 15, 12, 0.98));
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 20px;
    padding: 40px 45px;
    max-width: 520px;
    width: 90vw;
    text-align: center;
    opacity: 0;
    transform: translateY(40px) scale(0.9);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.result-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 80%, rgba(0, 255, 136, 0.08), transparent 50%);
    pointer-events: none;
    animation: glowRotate 8s linear infinite;
}

.card-content {
    position: relative;
    z-index: 2;
}

/* ===== CARD ICON ===== */
.card-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 255, 136, 0.2);
    animation: iconPulse 3s ease-in-out infinite;
}

.card-icon svg {
    width: 30px;
    height: 30px;
}

/* ===== CARD TEXT ===== */
.card-title {
    font-size: 28px;
    font-weight: 700;
    color: #00ff88;
    margin-bottom: 8px;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    letter-spacing: 0.5px;
}

.card-subtitle {
    font-size: 18px;
    color: #e0e0e0;
    margin-bottom: 4px;
    font-weight: 500;
}

.card-text {
    font-size: 16px;
    color: #b0b0b0;
    margin-bottom: 0;
}

.card-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ff88, transparent);
    margin: 24px auto;
    border-radius: 1px;
}

.card-notice {
    font-size: 13px;
    color: #808080;
    line-height: 1.7;
    margin-bottom: 20px;
}

.highlight {
    color: #00ff88;
    font-weight: 600;
}

/* ===== SUPPORT LINK ===== */
.support-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.12), rgba(0, 255, 136, 0.05));
    border: 1px solid rgba(0, 255, 136, 0.25);
    border-radius: 12px;
    color: #00ff88;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.support-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
    transition: left 0.5s ease;
}

.support-link:hover::before {
    left: 100%;
}

.support-link:hover {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 255, 136, 0.1));
    border-color: rgba(0, 255, 136, 0.4);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.15);
    transform: translateY(-2px);
}

.telegram-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ===== CARD FLOATING PARTICLES ===== */
.card-particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #00ff88;
    border-radius: 50%;
    opacity: 0;
}

.result-card.visible .card-particles span {
    animation: floatParticle 4s ease-in-out infinite;
}

.card-particles span:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.card-particles span:nth-child(2) { top: 20%; right: 15%; animation-delay: 0.8s; }
.card-particles span:nth-child(3) { bottom: 15%; left: 20%; animation-delay: 1.6s; }
.card-particles span:nth-child(4) { top: 50%; right: 8%; animation-delay: 2.4s; }
.card-particles span:nth-child(5) { bottom: 30%; right: 25%; animation-delay: 0.4s; }
.card-particles span:nth-child(6) { top: 40%; left: 5%; animation-delay: 1.2s; }

/* ===== EXPLODING STATE ===== */
.circle-wrapper.exploding .circle-main {
    animation: circleExplode 0.6s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
}

.circle-wrapper.exploding .circle-pulse,
.circle-wrapper.exploding .circle-ring {
    animation: none;
    opacity: 0;
}

/* ===== KEYFRAMES ===== */
@keyframes circleAppear {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes circleFloat {
    0%, 100% {
        transform: scale(1) translateY(0);
    }
    50% {
        transform: scale(1.03) translateY(-5px);
    }
}

@keyframes circleExplode {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    30% {
        transform: scale(1.3);
        opacity: 1;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

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

@keyframes ringExpand {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

@keyframes strokeCircle {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes strokeCheck {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes glowRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes iconPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.2);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(0, 255, 136, 0);
    }
}

@keyframes floatParticle {
    0%, 100% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
    20% {
        opacity: 0.6;
        transform: translateY(-10px) scale(1);
    }
    80% {
        opacity: 0.3;
        transform: translateY(-30px) scale(0.5);
    }
}

@keyframes particleFly {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    20% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) scale(0);
    }
}

@keyframes flashBang {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    20% {
        opacity: 0.6;
    }
    100% {
        opacity: 0;
        transform: scale(3);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 560px) {
    .result-card {
        padding: 30px 25px;
        margin-top: 30px;
        border-radius: 16px;
    }

    .card-title {
        font-size: 24px;
    }

    .card-subtitle {
        font-size: 16px;
    }

    .card-text {
        font-size: 14px;
    }

    .card-notice {
        font-size: 12px;
    }

    .circle-main {
        width: 100px;
        height: 100px;
    }

    .circle-pulse {
        width: 100px;
        height: 100px;
    }

    .checkmark {
        width: 42px;
        height: 42px;
    }
    
/* ===== AMOUNT LINE ===== */
.card-amount {
    display: none;
    font-size: 15px;
    color: #a0a0a0;
    margin-top: 6px;
    margin-bottom: 0;
    font-weight: 400;
}

.card-amount .amount-value {
    color: #00ff88;
    font-weight: 700;
    font-size: 16px;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.25);
}

.card-amount.visible {
    display: block;
}
}