/* ═══════════════════════════════════════════════════════════════
   eToro Premium Enhancements — ClawZ
   Brand: #00C896 (green), #0B1128 (navy), #FFFFFF
   ═══════════════════════════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
    --etoro-green: #00C896;
    --etoro-navy: #0B1128;
    --etoro-dark: #060D1E;
    --etoro-light-green: #00E8AD;
    --etoro-gold: #FFD700;
    --etoro-gradient: linear-gradient(135deg, #00C896, #00A67E);
    --etoro-navy-gradient: linear-gradient(180deg, #0B1128 0%, #162040 100%);
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.08);
    --premium-shadow: 0 20px 60px rgba(0, 200, 150, 0.15);
    --premium-glow: 0 0 40px rgba(0, 200, 150, 0.2);
}

/* ── Live Ticker Bar ── */
.etoro-premium-ticker {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: linear-gradient(90deg, #0B1128, #101D3A, #0B1128);
    border-bottom: 1px solid rgba(0, 200, 150, 0.2);
    height: 42px;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.ticker-track {
    height: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.ticker-content {
    display: flex;
    gap: 40px;
    animation: tickerScroll 30s linear infinite;
    white-space: nowrap;
    padding: 0 20px;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 13px;
    color: #fff;
    flex-shrink: 0;
}

.ticker-item .symbol {
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
}

.ticker-item .price {
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.ticker-item .change {
    font-weight: 600;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
}

.ticker-item .change.up {
    color: #00C896;
    background: rgba(0, 200, 150, 0.12);
}

.ticker-item .change.down {
    color: #FF4757;
    background: rgba(255, 71, 87, 0.12);
}

.ticker-item .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

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

/* Push body down for ticker */
body {
    padding-top: 42px !important;
}

/* ── Scroll Reveal Animations ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger children */
.stagger-children > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children > *:nth-child(6) { transition-delay: 0.3s; }

/* ── Parallax Container ── */
[data-parallax] {
    will-change: transform;
    transition: transform 0.1s linear;
}

/* ── Glassmorphism Cards ── */
.etoro-glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.etoro-glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 200, 150, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.etoro-glass-card:hover {
    border-color: rgba(0, 200, 150, 0.15);
    transform: translateY(-4px);
    box-shadow: var(--premium-shadow);
}

.etoro-glass-card:hover::before {
    opacity: 1;
}

/* ── Premium Buttons ── */
.etoro-premium-btn {
    position: relative;
    background: var(--etoro-gradient);
    color: #fff;
    border: none;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: 0.02em;
}

.etoro-premium-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.etoro-premium-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 200, 150, 0.4);
}

.etoro-premium-btn:hover::before {
    left: 100%;
}

/* ── Animated Counter ── */
.counter-value {
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, #fff, #00C896);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Floating Gradient Orbs (ambient background) ── */
.gradient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    pointer-events: none;
    z-index: -1;
}

.gradient-orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #00C896, transparent);
    top: 10%;
    right: -5%;
    animation: orbFloat1 15s ease-in-out infinite;
}

.gradient-orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #006AFF, transparent);
    bottom: 20%;
    left: -5%;
    animation: orbFloat2 20s ease-in-out infinite;
}

.gradient-orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #00C896, transparent);
    top: 50%;
    left: 30%;
    animation: orbFloat3 18s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-30px, 40px); }
    66% { transform: translate(20px, -30px); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(40px, -20px); }
    66% { transform: translate(-20px, 30px); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0); opacity: 0.1; }
    50% { transform: translate(30px, -40px); opacity: 0.2; }
}

/* ── Premium Hero Enhancement ── */
.hero-section, .page-header, [class*="hero"], [class*="banner"] {
    position: relative;
}

/* ── Animated Underline Links ── */
a.premium-link {
    position: relative;
    color: #00C896;
    text-decoration: none;
}

a.premium-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--etoro-gradient);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

a.premium-link:hover::after {
    width: 100%;
}

/* ── Social Proof Banner ── */
.social-proof-bar {
    background: linear-gradient(135deg, rgba(0, 200, 150, 0.08), rgba(0, 106, 255, 0.05));
    border: 1px solid rgba(0, 200, 150, 0.1);
    border-radius: 16px;
    padding: 20px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin: 20px auto;
    max-width: 900px;
    backdrop-filter: blur(10px);
}

.social-proof-item {
    text-align: center;
}

.social-proof-item .number {
    font-size: 28px;
    font-weight: 800;
    color: #00C896;
    letter-spacing: -0.02em;
}

.social-proof-item .label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
}

/* ── TradingView Widget Container ── */
.tradingview-widget-container {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin: 20px 0;
}

/* ── Loading Skeleton ── */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

/* ── Smooth Page Transitions ── */
.page-transition-enter {
    animation: fadeSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* ── Enhanced Scrollbar ── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--etoro-navy);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 200, 150, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 200, 150, 0.5);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .social-proof-bar {
        flex-wrap: wrap;
        gap: 20px;
        padding: 16px;
    }
    
    .gradient-orb { display: none; }
    
    .etoro-premium-ticker {
        height: 36px;
    }
    
    body { padding-top: 36px !important; }
}

/* ── Pulse animation for CTAs ── */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 200, 150, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(0, 200, 150, 0); }
}

.pulse-cta {
    animation: pulse-glow 2.5s ease-in-out infinite;
}

/* ── Number counting animation ── */
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Mouse cursor trail (subtle) ── */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 200, 150, 0.06), transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: left 0.3s ease-out, top 0.3s ease-out;
}
