/* ============================================================
   ADVANCED EFFECTS - Afrique Investment
   Professional crypto platform effects & animations
   Dark theme | Primary: #1199FA | Performance-optimized
   ============================================================ */

:root {
    --fx-bg: #0B0E11;
    --fx-card: #1A1D24;
    --fx-primary: #1199FA;
    --fx-accent: #00D4AA;
    --fx-success: #16C784;
    --fx-danger: #EA3943;
    --fx-text: #EAECEF;
    --fx-text-muted: #848E9C;
    --fx-border: rgba(255, 255, 255, 0.06);
    --fx-glow: rgba(17, 153, 250, 0.4);
    --fx-glow-strong: rgba(17, 153, 250, 0.7);
}

/* ===== TICKER BAR OFFSETS ===== */
/* Décaler le header et le contenu pour la barre ticker (48px desktop, 42px mobile) */
.header {
    top: 48px !important;
}

body {
    padding-top: 112px;
}

.quick-action-bar {
    top: 112px !important;
}

@media (max-width: 768px) {
    .header { top: 42px !important; }
    body { padding-top: 106px; }
    .quick-action-bar { top: 106px !important; }
}

/* ===== LIVE VISITORS WIDGET ===== */
#live-visitors {
    position: fixed;
    bottom: 24px;
    left: 14px;
    z-index: 9980;
    background: rgba(13, 17, 28, 0.95);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 30px;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    font-size: 0.85rem;
    color: #C3C6CF;
    font-weight: 600;
}

#live-visitors .lv-dot {
    width: 10px;
    height: 10px;
    background: #16C784;
    border-radius: 50%;
    animation: livePulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(22, 199, 132, 0.5);
}

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

#live-visitors .lv-count {
    color: #16C784;
    font-weight: 800;
    font-size: 1rem;
}

#live-visitors .lv-text {
    color: #777E90;
    font-size: 0.78rem;
}

@media (max-width: 768px) {
    #live-visitors {
        bottom: 70px;
        left: 8px;
        right: auto;
        padding: 5px 12px;
        font-size: 0.72rem;
    }
    #live-visitors .lv-count { font-size: 0.82rem; }
}

/* ===== COOKIE BANNER ===== */
#cookie-banner {
    position: fixed;
    bottom: -200px;
    left: 0;
    right: 0;
    z-index: 99998;
    background: linear-gradient(135deg, rgba(13, 17, 28, 0.98), rgba(26, 29, 36, 0.98));
    border-top: 1px solid rgba(17, 153, 250, 0.2);
    backdrop-filter: blur(20px);
    padding: 20px 24px;
    transition: bottom 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#cookie-banner.show {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.cookie-icon {
    font-size: 2rem;
    color: #F59E0B;
    flex-shrink: 0;
}

.cookie-text {
    flex: 1;
}

.cookie-text strong {
    color: #fff;
    font-size: 1rem;
    display: block;
    margin-bottom: 4px;
}

.cookie-text p {
    color: #777E90;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.5;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-accept {
    background: linear-gradient(135deg, #1199FA, #0D7FD9);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(17, 153, 250, 0.3);
}

.cookie-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(17, 153, 250, 0.4);
}

.cookie-decline {
    background: transparent;
    color: #777E90;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-decline:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

@media (max-width: 768px) {
    .cookie-content { flex-direction: column; text-align: center; gap: 14px; }
    .cookie-icon { font-size: 1.5rem; }
    .cookie-actions { width: 100%; }
    .cookie-accept, .cookie-decline { flex: 1; padding: 12px; }
}


/* ============================================================
   1. SCROLL PROGRESS BAR
   Thin gradient bar at the very top of the page
   ============================================================ */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--fx-primary), var(--fx-accent), var(--fx-primary));
    background-size: 200% 100%;
    z-index: 99999;
    transition: width 0.15s linear;
    animation: scrollProgressShimmer 3s linear infinite;
    pointer-events: none;
    will-change: width;
}

@keyframes scrollProgressShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}


/* ============================================================
   2. ANIMATED GRADIENT BORDER ON CARDS
   Rotating border gradient effect
   ============================================================ */

.gradient-border {
    position: relative;
    background: var(--fx-card);
    border-radius: 16px;
    overflow: hidden;
    isolation: isolate;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: inherit;
    background: conic-gradient(
        from var(--gradient-angle, 0deg),
        var(--fx-primary),
        var(--fx-accent),
        var(--fx-success),
        var(--fx-primary),
        var(--fx-accent),
        var(--fx-primary)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: rotateBorder 4s linear infinite;
    will-change: transform;
    pointer-events: none;
    z-index: 1;
}

@keyframes rotateBorder {
    to { --gradient-angle: 360deg; }
}

@property --gradient-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}


/* ============================================================
   3. 3D TILT HOVER EFFECT
   Perspective-based tilt for cards
   ============================================================ */

.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s ease;
    will-change: transform;
}

.tilt-card:hover {
    transform: perspective(1000px) rotateX(4deg) rotateY(-4deg) scale3d(1.02, 1.02, 1.02);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(17, 153, 250, 0.1);
}

.tilt-card > * {
    transform: translateZ(20px);
}


/* ============================================================
   4. GLOWING BUTTONS
   Pulsating shadow effect
   ============================================================ */

.btn-glow {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    background: linear-gradient(135deg, var(--fx-primary), #0D7BD4);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: glowPulse 2.5s ease-in-out infinite;
    will-change: box-shadow;
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 20px var(--fx-glow),
        0 0 40px rgba(17, 153, 250, 0.25),
        0 0 60px rgba(17, 153, 250, 0.1);
}

.btn-glow:active {
    transform: translateY(0) scale(0.98);
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow:
            0 0 10px rgba(17, 153, 250, 0.3),
            0 0 20px rgba(17, 153, 250, 0.1);
    }
    50% {
        box-shadow:
            0 0 20px rgba(17, 153, 250, 0.5),
            0 0 40px rgba(17, 153, 250, 0.2),
            0 0 60px rgba(17, 153, 250, 0.1);
    }
}

/* Glow variants */
.btn-glow.btn-glow--success {
    background: linear-gradient(135deg, var(--fx-success), #0fa968);
    animation-name: glowPulseSuccess;
}

@keyframes glowPulseSuccess {
    0%, 100% {
        box-shadow: 0 0 10px rgba(22, 199, 132, 0.3), 0 0 20px rgba(22, 199, 132, 0.1);
    }
    50% {
        box-shadow: 0 0 20px rgba(22, 199, 132, 0.5), 0 0 40px rgba(22, 199, 132, 0.2);
    }
}

.btn-glow.btn-glow--danger {
    background: linear-gradient(135deg, var(--fx-danger), #c22d36);
    animation-name: glowPulseDanger;
}

@keyframes glowPulseDanger {
    0%, 100% {
        box-shadow: 0 0 10px rgba(234, 57, 67, 0.3), 0 0 20px rgba(234, 57, 67, 0.1);
    }
    50% {
        box-shadow: 0 0 20px rgba(234, 57, 67, 0.5), 0 0 40px rgba(234, 57, 67, 0.2);
    }
}


/* ============================================================
   5. GLASSMORPHISM ENHANCED
   Frosted glass with layered blur
   ============================================================ */

.glass-ultra {
    background: rgba(26, 29, 36, 0.45);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.glass-ultra::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.06) 0%,
        rgba(255, 255, 255, 0) 50%,
        rgba(17, 153, 250, 0.03) 100%
    );
    pointer-events: none;
}

/* Lighter variant */
.glass-ultra--light {
    background: rgba(26, 29, 36, 0.6);
    border-color: rgba(255, 255, 255, 0.12);
}


/* ============================================================
   6. TEXT GRADIENT ANIMATION (SHIMMER)
   Shimmering metallic gradient text
   ============================================================ */

.text-shimmer {
    background: linear-gradient(
        120deg,
        var(--fx-text) 0%,
        var(--fx-primary) 25%,
        var(--fx-accent) 50%,
        var(--fx-primary) 75%,
        var(--fx-text) 100%
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShimmer 4s ease-in-out infinite;
    will-change: background-position;
}

@keyframes textShimmer {
    0% { background-position: 100% 50%; }
    100% { background-position: -100% 50%; }
}


/* ============================================================
   7. FLOATING PARTICLES BACKGROUND
   CSS-only animated dots
   ============================================================ */

.particles-bg {
    position: relative;
    overflow: hidden;
}

.particles-bg::before,
.particles-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* Layer 1: small particles */
.particles-bg::before {
    background-image:
        radial-gradient(1.5px 1.5px at 10% 20%, rgba(17, 153, 250, 0.5) 50%, transparent 50%),
        radial-gradient(1px 1px at 25% 60%, rgba(0, 212, 170, 0.4) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 40% 15%, rgba(17, 153, 250, 0.3) 50%, transparent 50%),
        radial-gradient(1px 1px at 55% 75%, rgba(0, 212, 170, 0.5) 50%, transparent 50%),
        radial-gradient(2px 2px at 70% 35%, rgba(17, 153, 250, 0.4) 50%, transparent 50%),
        radial-gradient(1px 1px at 85% 55%, rgba(0, 212, 170, 0.3) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 15% 85%, rgba(17, 153, 250, 0.35) 50%, transparent 50%),
        radial-gradient(1px 1px at 60% 45%, rgba(0, 212, 170, 0.45) 50%, transparent 50%),
        radial-gradient(2px 2px at 90% 10%, rgba(17, 153, 250, 0.3) 50%, transparent 50%),
        radial-gradient(1px 1px at 35% 90%, rgba(0, 212, 170, 0.4) 50%, transparent 50%);
    background-size: 100% 100%;
    animation: particlesFloat1 20s ease-in-out infinite;
    opacity: 0.7;
}

/* Layer 2: larger particles, different timing */
.particles-bg::after {
    background-image:
        radial-gradient(2.5px 2.5px at 20% 40%, rgba(17, 153, 250, 0.25) 50%, transparent 50%),
        radial-gradient(2px 2px at 50% 20%, rgba(0, 212, 170, 0.2) 50%, transparent 50%),
        radial-gradient(3px 3px at 75% 65%, rgba(17, 153, 250, 0.2) 50%, transparent 50%),
        radial-gradient(2px 2px at 30% 70%, rgba(0, 212, 170, 0.25) 50%, transparent 50%),
        radial-gradient(2.5px 2.5px at 65% 90%, rgba(17, 153, 250, 0.15) 50%, transparent 50%),
        radial-gradient(2px 2px at 80% 25%, rgba(0, 212, 170, 0.2) 50%, transparent 50%);
    background-size: 100% 100%;
    animation: particlesFloat2 28s ease-in-out infinite;
    opacity: 0.5;
}

@keyframes particlesFloat1 {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-15px) translateX(10px); }
    50% { transform: translateY(-5px) translateX(-8px); }
    75% { transform: translateY(-20px) translateX(5px); }
}

@keyframes particlesFloat2 {
    0%, 100% { transform: translateY(0) translateX(0); }
    33% { transform: translateY(12px) translateX(-10px); }
    66% { transform: translateY(-10px) translateX(12px); }
}

/* Ensure content sits above particles */
.particles-bg > * {
    position: relative;
    z-index: 1;
}


/* ============================================================
   8. RIPPLE CLICK EFFECT
   Material-style ripple on buttons
   ============================================================ */

.ripple {
    position: relative;
    overflow: hidden;
}

.ripple .ripple-wave {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: rippleExpand 0.6s ease-out forwards;
    pointer-events: none;
    z-index: 10;
}

@keyframes rippleExpand {
    0% {
        transform: scale(0);
        opacity: 0.6;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}


/* ============================================================
   9. MARQUEE TICKER
   Scrolling crypto prices bar
   ============================================================ */

.crypto-marquee {
    width: 100%;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(11, 14, 17, 0.95), rgba(26, 29, 36, 0.95), rgba(11, 14, 17, 0.95));
    border-bottom: 1px solid var(--fx-border);
    padding: 8px 0;
    position: relative;
    white-space: nowrap;
}

.crypto-marquee::before,
.crypto-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}

.crypto-marquee::before {
    left: 0;
    background: linear-gradient(to right, var(--fx-bg), transparent);
}

.crypto-marquee::after {
    right: 0;
    background: linear-gradient(to left, var(--fx-bg), transparent);
}

.crypto-marquee__track {
    display: inline-flex;
    gap: 40px;
    animation: marqueeScroll 35s linear infinite;
    will-change: transform;
}

.crypto-marquee:hover .crypto-marquee__track {
    animation-play-state: paused;
}

.crypto-marquee__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--fx-text);
    flex-shrink: 0;
}

.crypto-marquee__item img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
}

.crypto-marquee__item .ticker-symbol {
    font-weight: 600;
    color: var(--fx-text);
}

.crypto-marquee__item .ticker-price {
    color: var(--fx-text-muted);
}

.crypto-marquee__item .ticker-change--up {
    color: var(--fx-success);
    font-weight: 500;
}

.crypto-marquee__item .ticker-change--down {
    color: var(--fx-danger);
    font-weight: 500;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


/* ============================================================
   10. MODERN SPLASH / LOADING SCREEN
   Animated logo and progress bar
   ============================================================ */

#splash-screen {
    position: fixed;
    inset: 0;
    background: var(--fx-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#splash-screen.splash-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 30px;
    animation: splashLogoPulse 1.8s ease-in-out infinite;
}

.splash-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes splashLogoPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(17, 153, 250, 0.3));
    }
    50% {
        transform: scale(1.08);
        filter: drop-shadow(0 0 25px rgba(17, 153, 250, 0.6));
    }
}

.splash-brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--fx-text);
    letter-spacing: 2px;
    margin-bottom: 32px;
    text-transform: uppercase;
}

.splash-brand span {
    color: var(--fx-primary);
}

.splash-progress {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.splash-progress__bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--fx-primary), var(--fx-accent));
    border-radius: 4px;
    transition: width 0.3s ease;
    position: relative;
}

.splash-progress__bar::after {
    content: '';
    position: absolute;
    right: 0;
    top: -1px;
    width: 6px;
    height: 5px;
    background: var(--fx-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--fx-accent);
}

/* Splash loading dots */
.splash-dots {
    display: flex;
    gap: 6px;
    margin-top: 24px;
}

.splash-dots span {
    width: 6px;
    height: 6px;
    background: var(--fx-primary);
    border-radius: 50%;
    animation: splashDotBounce 1.4s ease-in-out infinite;
}

.splash-dots span:nth-child(2) { animation-delay: 0.16s; }
.splash-dots span:nth-child(3) { animation-delay: 0.32s; }

@keyframes splashDotBounce {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.4;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}


/* ============================================================
   11. SMOOTH REVEAL ANIMATIONS
   Scroll-triggered entrance effects
   ============================================================ */

.reveal-up,
.reveal-left,
.reveal-right,
.reveal-scale {
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal-scale {
    transform: scale(0.9);
}

/* Active state - element is in viewport */
.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed,
.reveal-scale.revealed {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Stagger delays for grouped elements */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }


/* ============================================================
   12. CARD SHINE EFFECT
   Light sweep across card on hover
   ============================================================ */

.card-shine {
    position: relative;
    overflow: hidden;
}

.card-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.04) 45%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.04) 55%,
        transparent 60%
    );
    transform: skewX(-15deg);
    transition: none;
    pointer-events: none;
    z-index: 2;
}

.card-shine:hover::after {
    animation: cardShineSwipe 0.8s ease forwards;
}

@keyframes cardShineSwipe {
    0% { left: -75%; }
    100% { left: 150%; }
}


/* ============================================================
   13. NEON GLOW TEXT
   Vibrant blue neon glow
   ============================================================ */

.neon-text {
    color: var(--fx-primary);
    text-shadow:
        0 0 7px rgba(17, 153, 250, 0.6),
        0 0 15px rgba(17, 153, 250, 0.4),
        0 0 30px rgba(17, 153, 250, 0.2),
        0 0 50px rgba(17, 153, 250, 0.1);
    animation: neonFlicker 3s ease-in-out infinite;
}

@keyframes neonFlicker {
    0%, 100% {
        text-shadow:
            0 0 7px rgba(17, 153, 250, 0.6),
            0 0 15px rgba(17, 153, 250, 0.4),
            0 0 30px rgba(17, 153, 250, 0.2),
            0 0 50px rgba(17, 153, 250, 0.1);
    }
    50% {
        text-shadow:
            0 0 10px rgba(17, 153, 250, 0.8),
            0 0 25px rgba(17, 153, 250, 0.5),
            0 0 50px rgba(17, 153, 250, 0.3),
            0 0 80px rgba(17, 153, 250, 0.15);
    }
}

/* Accent neon variant */
.neon-text--accent {
    color: var(--fx-accent);
    text-shadow:
        0 0 7px rgba(0, 212, 170, 0.6),
        0 0 15px rgba(0, 212, 170, 0.4),
        0 0 30px rgba(0, 212, 170, 0.2);
    animation-name: neonFlickerAccent;
}

@keyframes neonFlickerAccent {
    0%, 100% {
        text-shadow:
            0 0 7px rgba(0, 212, 170, 0.6),
            0 0 15px rgba(0, 212, 170, 0.4),
            0 0 30px rgba(0, 212, 170, 0.2);
    }
    50% {
        text-shadow:
            0 0 10px rgba(0, 212, 170, 0.8),
            0 0 25px rgba(0, 212, 170, 0.5),
            0 0 50px rgba(0, 212, 170, 0.3);
    }
}


/* ============================================================
   14. ANIMATED COUNTER BACKGROUND
   Subtle animated bg for stat cards
   ============================================================ */

.counter-card-bg {
    position: relative;
    overflow: hidden;
    background: var(--fx-card);
}

.counter-card-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg at 50% 50%,
        transparent 0deg,
        rgba(17, 153, 250, 0.04) 60deg,
        transparent 120deg,
        rgba(0, 212, 170, 0.03) 180deg,
        transparent 240deg,
        rgba(17, 153, 250, 0.04) 300deg,
        transparent 360deg
    );
    animation: counterBgRotate 12s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.counter-card-bg > * {
    position: relative;
    z-index: 1;
}

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

/* Highlight flash when counter updates */
.counter-card-bg.counter-flash::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(17, 153, 250, 0.12) 0%, transparent 70%);
    animation: counterFlash 0.6s ease-out forwards;
    pointer-events: none;
    z-index: 1;
}

@keyframes counterFlash {
    0% { opacity: 1; }
    100% { opacity: 0; }
}


/* ============================================================
   15. PREMIUM BADGE PULSE
   Pulsating VIP / PRO badges
   ============================================================ */

.badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    position: relative;
}

.badge-premium--vip {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1A1D24;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.3);
    animation: badgePulseVIP 2s ease-in-out infinite;
}

.badge-premium--pro {
    background: linear-gradient(135deg, var(--fx-primary), #0D7BD4);
    color: #fff;
    box-shadow: 0 0 12px rgba(17, 153, 250, 0.3);
    animation: badgePulsePro 2s ease-in-out infinite;
}

.badge-premium--elite {
    background: linear-gradient(135deg, #A855F7, #7C3AED);
    color: #fff;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.3);
    animation: badgePulseElite 2s ease-in-out infinite;
}

@keyframes badgePulseVIP {
    0%, 100% { box-shadow: 0 0 8px rgba(255, 215, 0, 0.3); }
    50% { box-shadow: 0 0 18px rgba(255, 215, 0, 0.6), 0 0 30px rgba(255, 215, 0, 0.2); }
}

@keyframes badgePulsePro {
    0%, 100% { box-shadow: 0 0 8px rgba(17, 153, 250, 0.3); }
    50% { box-shadow: 0 0 18px rgba(17, 153, 250, 0.6), 0 0 30px rgba(17, 153, 250, 0.2); }
}

@keyframes badgePulseElite {
    0%, 100% { box-shadow: 0 0 8px rgba(168, 85, 247, 0.3); }
    50% { box-shadow: 0 0 18px rgba(168, 85, 247, 0.6), 0 0 30px rgba(168, 85, 247, 0.2); }
}

/* Badge shine sweep */
.badge-premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    border-radius: inherit;
    animation: badgeShineSweep 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes badgeShineSweep {
    0%, 70%, 100% { left: -100%; }
    85% { left: 100%; }
}


/* ============================================================
   16. MODERN CARD HOVER EFFECTS
   Professional card interactions
   ============================================================ */

.card-premium {
    background: linear-gradient(145deg, rgba(26, 29, 36, 0.8), rgba(19, 22, 30, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--fx-primary), var(--fx-accent), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card-premium:hover {
    transform: translateY(-6px);
    border-color: rgba(17, 153, 250, 0.25);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(17, 153, 250, 0.08);
}

.card-premium:hover::before {
    opacity: 1;
}

/* Stat card premium hover */
.stat-card-premium {
    transition: all 0.35s ease;
}

.stat-card-premium:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(17, 153, 250, 0.06);
}

/* Section headers - gradient underline */
.section-title {
    position: relative;
    display: inline-block;
}

/* Formation card improvements */
.formation-card,
.course-card,
.video-card {
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.formation-card:hover,
.course-card:hover,
.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 20px rgba(17, 153, 250, 0.06);
}

/* Smooth image zoom on card hover */
.formation-card:hover img,
.course-card:hover img,
.video-card:hover img {
    transform: scale(1.05);
    transition: transform 0.5s ease;
}

/* Gradient text animated (for hero typing effect) */
.gradient-text-animated {
    background: linear-gradient(135deg, #1199FA, #00D4AA, #1199FA);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientTextFlow 3s linear infinite;
}

@keyframes gradientTextFlow {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Trust badge hover effects */
.trust-badge {
    transition: all 0.3s ease;
}

.trust-badge:hover {
    transform: translateY(-2px);
    background: rgba(17, 153, 250, 0.12) !important;
}

/* Store cards hover */
.store-card {
    transition: all 0.35s ease;
}

.store-card:hover {
    transform: translateY(-5px);
}

/* Footer partner image hover */
.footer img[src*="partners"]:hover,
.footer img[src*="payments"]:hover {
    filter: none !important;
    opacity: 1 !important;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

/* Splash screen hide animation */
.splash-hide {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: scale(1.02);
    transition: all 0.5s ease;
}


/* ============================================================
   UTILITY HELPERS
   ============================================================ */

/* Reduced motion: honor user preference globally */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .crypto-marquee__track {
        animation: none !important;
    }
}


/* ============================================================
   MOBILE RESPONSIVE (max-width: 768px)
   Reduce / disable heavy animations for performance
   ============================================================ */

@media (max-width: 768px) {

    /* Scroll progress bar stays - it's lightweight */

    /* Disable rotating gradient border on mobile (GPU-heavy) */
    .gradient-border::before {
        animation: none;
        background: linear-gradient(135deg, var(--fx-primary), var(--fx-accent));
    }

    /* Disable 3D tilt on mobile (no hover on touch) */
    .tilt-card:hover {
        transform: none;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    }

    /* Simplify glow pulse on mobile */
    .btn-glow {
        animation: none;
        box-shadow: 0 0 10px rgba(17, 153, 250, 0.2);
    }

    .btn-glow:active {
        box-shadow: 0 0 20px rgba(17, 153, 250, 0.4);
        transform: scale(0.97);
    }

    /* Reduce glass blur on mobile */
    .glass-ultra {
        backdrop-filter: blur(10px) saturate(150%);
        -webkit-backdrop-filter: blur(10px) saturate(150%);
    }

    /* Faster shimmer on mobile */
    .text-shimmer {
        animation-duration: 3s;
    }

    /* Disable particles on mobile */
    .particles-bg::before,
    .particles-bg::after {
        display: none;
    }

    /* Speed up marquee on mobile */
    .crypto-marquee__track {
        animation-duration: 20s;
    }

    .crypto-marquee::before,
    .crypto-marquee::after {
        width: 30px;
    }

    /* Smaller splash on mobile */
    .splash-logo {
        width: 60px;
        height: 60px;
    }

    .splash-brand {
        font-size: 1.1rem;
    }

    .splash-progress {
        width: 160px;
    }

    /* Simpler reveals on mobile - just fade in */
    .reveal-up,
    .reveal-left,
    .reveal-right {
        transform: translateY(20px);
    }

    .reveal-up,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        transition-duration: 0.4s;
    }

    /* Disable card shine sweep on mobile */
    .card-shine::after {
        display: none;
    }

    /* Reduce neon glow layers on mobile */
    .neon-text {
        text-shadow:
            0 0 7px rgba(17, 153, 250, 0.5),
            0 0 15px rgba(17, 153, 250, 0.2);
        animation: none;
    }

    /* Simplify counter background rotation */
    .counter-card-bg::before {
        animation-duration: 20s;
    }

    /* Smaller badges on mobile */
    .badge-premium {
        padding: 3px 10px;
        font-size: 0.62rem;
    }

    .badge-premium::after {
        animation: none;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .crypto-marquee__item {
        font-size: 0.75rem;
        gap: 5px;
    }

    .crypto-marquee__track {
        gap: 24px;
    }

    .splash-logo {
        width: 50px;
        height: 50px;
        margin-bottom: 20px;
    }

    .splash-brand {
        font-size: 1rem;
        letter-spacing: 1px;
    }
}
