/* Premium Animation Styles */
/* High-quality animations inspired by top-tier websites */

/* Security Animation */
.shield-animation {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.shield-container {
    position: relative;
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotateY(0deg); }
    25% { transform: translateY(-5px) rotateY(90deg); }
    50% { transform: translateY(0) rotateY(180deg); }
    75% { transform: translateY(-5px) rotateY(270deg); }
}

.shield-path {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: drawShield 2s ease-out forwards;
}

.check-mark {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: drawCheck 1s ease-out 1.5s forwards;
    opacity: 0;
}

@keyframes drawShield {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes drawCheck {
    to {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

.scan-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00D4FF, transparent);
    transform: translateX(-50%);
    animation: scan 3s linear infinite;
}

@keyframes scan {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    border: 2px solid #00D4FF;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: pulse 3s ease-out infinite;
}

.pulse-ring.delay-1 { animation-delay: 1s; }
.pulse-ring.delay-2 { animation-delay: 2s; }

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.security-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #00D4FF;
    border-radius: 50%;
    animation: particleFloat var(--duration) ease-in-out var(--delay) infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100px) translateX(0);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(30px);
        opacity: 0;
    }
}

/* Lightning Animation */
.lightning-animation {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.energy-core {
    position: relative;
    width: 80px;
    height: 80px;
}

.core-inner {
    width: 100%;
    height: 100%;
    position: relative;
    animation: rotate 20s linear infinite;
}

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

.energy-ball {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, #FFD700 0%, #FFA500 50%, #FF6347 100%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 40px #FFD700, 0 0 80px #FFA500;
    animation: energyPulse 2s ease-in-out infinite;
}

@keyframes energyPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}

.energy-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 2px solid;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.ring-1 {
    width: 60px;
    height: 60px;
    border-color: rgba(255, 215, 0, 0.6);
    animation: ringRotate 3s linear infinite;
}

.ring-2 {
    width: 70px;
    height: 70px;
    border-color: rgba(255, 165, 0, 0.4);
    animation: ringRotate 4s linear infinite reverse;
}

.ring-3 {
    width: 80px;
    height: 80px;
    border-color: rgba(255, 99, 71, 0.2);
    animation: ringRotate 5s linear infinite;
}

@keyframes ringRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.lightning-bolts {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.bolt {
    transition: opacity 0.1s;
}

.energy-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.energy-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #FFD700;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(var(--angle)) translateX(50px);
    animation: orbitParticle 3s linear var(--delay) infinite;
}

@keyframes orbitParticle {
    from {
        transform: translate(-50%, -50%) rotate(var(--angle)) translateX(20px) scale(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    to {
        transform: translate(-50%, -50%) rotate(var(--angle)) translateX(60px) scale(0);
        opacity: 0;
    }
}

/* Currency Animation */
.currency-animation {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.currency-orbit {
    position: relative;
    width: 100px;
    height: 100px;
    transform-style: preserve-3d;
    animation: orbitRotate 20s linear infinite;
}

@keyframes orbitRotate {
    from { transform: rotateX(20deg) rotateY(0deg); }
    to { transform: rotateX(20deg) rotateY(360deg); }
}

.orbit-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 50%;
    transform: rotateX(90deg);
}

.currency-container {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

.currency-symbol {
    position: absolute;
    width: 30px;
    height: 30px;
    top: 50%;
    left: 50%;
    transform-style: preserve-3d;
    animation: floatCurrency 4s ease-in-out var(--delay) infinite;
}

@keyframes floatCurrency {
    0%, 100% {
        transform: translate(-50%, -50%) translateZ(40px) rotateY(0deg);
    }
    50% {
        transform: translate(-50%, -50%) translateZ(40px) rotateY(180deg);
    }
}

.coin-face {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    color: #FFFFFF;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.coin-edge {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #FFD700 0%, #FF8C00 50%, #FFD700 100%);
    border-radius: 50%;
    transform: translateZ(-5px);
}

.bitcoin .coin-face { background: linear-gradient(135deg, #F7931A 0%, #FF9500 100%); }
.ethereum .coin-face { background: linear-gradient(135deg, #627EEA 0%, #4554D1 100%); }
.dollar .coin-face { background: linear-gradient(135deg, #00D395 0%, #00B383 100%); }
.euro .coin-face { background: linear-gradient(135deg, #0066CC 0%, #004499 100%); }

.center-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #FFFFFF 0%, transparent 70%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

/* Data Flow Animation */
.data-flow-animation {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.data-flow-animation svg {
    z-index: 2;
}

.node {
    animation: nodePulse 2s ease-in-out infinite;
}

.node-1 { animation-delay: 0s; }
.node-2 { animation-delay: 0.5s; }
.node-3 { animation-delay: 1s; }
.node-4 { animation-delay: 1.5s; }

@keyframes nodePulse {
    0%, 100% { r: 8; opacity: 0.8; }
    50% { r: 10; opacity: 1; }
}

.data-waves {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.wave {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: waveExpand 3s ease-out infinite;
}

.wave-2 { animation-delay: 1.5s; }

@keyframes waveExpand {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Rating Animation */
.rating-animation {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.stars-container {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
}

.star {
    animation: starBounce 2s ease-in-out var(--delay) infinite;
}

@keyframes starBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.2); }
}

.rating-text {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sparkles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #FFD700;
    top: var(--y);
    left: var(--x);
    animation: sparkle 2s ease-in-out var(--delay) infinite;
}

@keyframes sparkle {
    0%, 100% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: scale(1) rotate(180deg);
        opacity: 1;
    }
}

/* Fees Animation */
.fees-animation {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.zero-container {
    position: relative;
    font-size: 60px;
    font-weight: bold;
}

.zero-main {
    position: relative;
    z-index: 3;
    background: linear-gradient(135deg, #00D4FF 0%, #0066FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.zero-shadow {
    position: absolute;
    top: 2px;
    left: 2px;
    z-index: 1;
    opacity: 0.3;
    filter: blur(2px);
}

.zero-glow {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    filter: blur(10px);
    opacity: 0.5;
    color: #00D4FF;
}

.fees-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.fee-particle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(var(--angle)) translateX(40px);
    animation: feeFloat 3s ease-in-out infinite;
}

.fee-particle span {
    display: block;
    color: #FF0000;
    font-size: 16px;
    animation: feeFade 3s ease-in-out infinite;
}

@keyframes feeFloat {
    0%, 100% {
        transform: translate(-50%, -50%) rotate(var(--angle)) translateX(40px) translateY(0);
    }
    50% {
        transform: translate(-50%, -50%) rotate(var(--angle)) translateX(60px) translateY(-10px);
    }
}

@keyframes feeFade {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

.slash-through {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.slash-line {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: drawSlash 1s ease-out 0.5s forwards;
}

@keyframes drawSlash {
    to {
        stroke-dashoffset: 0;
    }
}

/* Dark mode adjustments */
[data-theme="dark"] .coin-face {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
}

[data-theme="dark"] .energy-ball {
    box-shadow: 0 0 60px #FFD700, 0 0 120px #FFA500;
}

[data-theme="dark"] .star {
    filter: brightness(1.2);
}

/* Support Animation (Clock) - Enhanced */
.support-3d-clock {
    transform: rotateX(-20deg) rotateY(20deg);
    animation: clockFloat 6s ease-in-out infinite;
}

@keyframes clockFloat {
    0%, 100% { transform: rotateX(-20deg) rotateY(20deg) translateY(0); }
    50% { transform: rotateX(-20deg) rotateY(20deg) translateY(-10px); }
}