/* ============================================
   STREAMX CUSTOM ENHANCEMENTS
   ============================================ */

/* --- Animated gradient text --- */
.gradient-text {
    background: linear-gradient(135deg, #0066ff 0%, #00d4ff 50%, #0066ff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 200% center; }
}

/* --- Particle background for hero --- */
.sx-hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.sx-hero-particles .particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(0, 212, 255, 0.4);
    border-radius: 50%;
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* --- Glowing border animation --- */
.glow-border {
    position: relative;
}

.glow-border::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: conic-gradient(from 0deg, #0066ff, #00d4ff, #6c3ce9, #0066ff);
    z-index: -1;
    animation: rotateBorder 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glow-border:hover::after {
    opacity: 1;
}

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

/* --- Smooth scroll reveal animations --- */
.sx-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.sx-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.sx-reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.sx-reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.sx-reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.sx-reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* --- Floating elements --- */
.sx-float {
    animation: gentleFloat 6s ease-in-out infinite;
}

@keyframes gentleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* --- Ripple click effect --- */
.sx-ripple {
    position: relative;
    overflow: hidden;
}

.sx-ripple::before {
    content: '';
    position: absolute;
    top: var(--ripple-y, 50%);
    left: var(--ripple-x, 50%);
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.sx-ripple:active::before {
    width: 300px;
    height: 300px;
}

/* --- Skeleton loading --- */
.sx-skeleton {
    background: linear-gradient(90deg, var(--sx-dark-3) 25%, var(--sx-dark-4) 50%, var(--sx-dark-3) 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s ease-in-out infinite;
    border-radius: 8px;
}

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

/* --- Tooltip --- */
.sx-tooltip {
    position: relative;
}

.sx-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    padding: 6px 12px;
    background: var(--sx-dark-5);
    border: 1px solid var(--sx-border-light);
    border-radius: 6px;
    font-size: 12px;
    color: var(--sx-text);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 100;
}

.sx-tooltip:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* --- Feature card gradient hover --- */
.sx-feature-card:nth-child(1) .sx-feature-icon { background: rgba(255, 59, 48, 0.1); }
.sx-feature-card:nth-child(2) .sx-feature-icon { background: rgba(0, 212, 255, 0.1); }
.sx-feature-card:nth-child(3) .sx-feature-icon { background: rgba(255, 214, 10, 0.1); }
.sx-feature-card:nth-child(4) .sx-feature-icon { background: rgba(0, 199, 190, 0.1); }
.sx-feature-card:nth-child(5) .sx-feature-icon { background: rgba(175, 82, 222, 0.1); }
.sx-feature-card:nth-child(6) .sx-feature-icon { background: rgba(52, 199, 89, 0.1); }

/* --- Pricing card shimmer --- */
.sx-pricing-card.featured::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,102,255,0.03), transparent);
    animation: priceShimmer 3s ease-in-out infinite;
}

@keyframes priceShimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* --- Screenshots hover glow --- */
.sx-screenshot-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: linear-gradient(180deg, transparent 50%, rgba(0,102,255,0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.sx-screenshot-item:hover::before {
    opacity: 1;
}

/* --- Download button pulse --- */
#downloadBtn {
    animation: downloadPulse 2.5s ease-in-out infinite;
}

@keyframes downloadPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(0,102,255,0.3), 0 0 40px rgba(0,102,255,0.1); }
    50% { box-shadow: 0 0 30px rgba(0,102,255,0.5), 0 0 60px rgba(0,102,255,0.2), 0 0 90px rgba(0,102,255,0.1); }
}

/* --- Payment method radio indicator --- */
.sx-payment-method::before {
    content: '';
    position: absolute;
    top: 24px;
    right: 24px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--sx-border-light);
    transition: all 0.3s ease;
}

.sx-payment-method {
    position: relative;
}

.sx-payment-method.selected::before {
    border-color: var(--sx-blue);
    background: var(--sx-blue);
    box-shadow: inset 0 0 0 3px var(--sx-dark);
}

/* --- Number counter animation --- */
.count-up {
    display: inline-block;
}

/* --- Mobile bottom CTA bar --- */
.sx-mobile-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: rgba(10,10,15,0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--sx-border);
    z-index: 900;
    text-align: center;
}

@media (max-width: 768px) {
    .sx-mobile-cta {
        display: block;
    }
    body {
        padding-bottom: 70px;
    }
}

/* --- Smooth page transitions --- */
.sx-page-transition {
    animation: pageIn 0.5s ease-out;
}

@keyframes pageIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Auth form focus glow --- */
.sx-auth-card .sx-form-input:focus {
    border-color: var(--sx-blue);
    box-shadow: 0 0 0 3px rgba(0,102,255,0.15), 0 0 20px rgba(0,102,255,0.05);
}

/* --- Dashboard card number highlight --- */
.sx-dash-card p .sx-badge {
    font-size: 13px;
    padding: 5px 14px;
}

/* --- Secure checkout lock animation --- */
@keyframes lockBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.sx-order-summary svg {
    animation: lockBounce 2s ease-in-out infinite;
}

/* --- Selection color --- */
::selection {
    background: rgba(0,102,255,0.3);
    color: #fff;
}

/* --- Print styles --- */
@media print {
    .sx-header, .sx-footer, .sx-mobile-cta, #streamx-splash {
        display: none !important;
    }
    body {
        background: #fff;
        color: #000;
    }
}