/* === Base === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

::selection { background: rgba(245, 158, 11, 0.3); color: #fff; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #030712; }
::-webkit-scrollbar-thumb { background: #1a2332; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #243044; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

/* === Animated Background === */
.grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(245, 158, 11, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 158, 11, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 70%);
    animation: grid-move 30s linear infinite;
}

@keyframes grid-move {
    0% { background-position: 0 0; }
    100% { background-position: 60px 60px; }
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.18;
    animation: float 20s ease-in-out infinite;
    will-change: transform;
}
.glow-orb-1 { width: 600px; height: 600px; background: #f59e0b; top: -200px; right: -100px; animation-delay: 0s; }
.glow-orb-2 { width: 500px; height: 500px; background: #06b6d4; bottom: -200px; left: -100px; animation-delay: -10s; }
.glow-orb-3 { width: 400px; height: 400px; background: #22c55e; top: 50%; left: 50%; transform: translate(-50%, -50%); animation-delay: -5s; opacity: 0.08; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(40px, 30px) scale(1.02); }
}

#particles-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* === Text Gradient === */
.text-gradient {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 40%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === Navigation === */
.nav-link {
    position: relative;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s;
    padding: 0.25rem 0;
}
.nav-link:hover { color: rgba(255, 255, 255, 0.9); }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 2px;
    background: #f59e0b;
    border-radius: 1px;
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

.nav-scrolled {
    background: rgba(10, 15, 26, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* === WhatsApp Floating Button === */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 50;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.7);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    animation: whatsapp-pop 0.6s ease 1s backwards;
}
.whatsapp-float svg { width: 32px; height: 32px; }
.whatsapp-float:hover {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.6);
}
.whatsapp-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25D366;
    opacity: 0.5;
    animation: whatsapp-pulse-ring 2s ease-out infinite;
    z-index: -1;
}
.whatsapp-tooltip {
    position: absolute;
    right: 76px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: #111827;
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}
@keyframes whatsapp-pulse-ring {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.6); opacity: 0; }
}
@keyframes whatsapp-pop {
    0% { transform: scale(0) rotate(-180deg); }
    60% { transform: scale(1.2) rotate(20deg); }
    100% { transform: scale(1) rotate(0); }
}

/* === Stats === */
.stat-card {
    padding: 1.25rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-align: center;
    transition: all 0.3s ease;
}
.stat-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(245, 158, 11, 0.2);
    transform: translateY(-2px);
}

/* === Mega Tool Cards === */
.tool-mega-card {
    position: relative;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.tool-mega-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 32px 64px -16px rgba(0, 0, 0, 0.6);
}

/* === Benefit Cards === */
.benefit-card {
    padding: 2rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
    text-align: left;
}
.benefit-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(34, 197, 94, 0.3);
    transform: translateY(-4px);
}

/* === Community Cards === */
.community-card {
    display: block;
    padding: 2.5rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.4s ease;
    text-decoration: none;
    color: inherit;
}
.community-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.5);
}

/* === Recovery Progress Bar === */
.recovery-progress {
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}
.recovery-bar {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    animation: recovery-fill 2s ease forwards;
}
.recovery-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s linear infinite;
}
@keyframes recovery-fill {
    from { width: 0%; }
}
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* === Recovery Bars Animation === */
.recovery-bars-anim rect {
    animation: bar-grow 0.6s ease forwards;
    transform-origin: bottom;
    transform: scaleY(0);
}
.recovery-bars-anim rect:nth-child(1) { animation-delay: 0.05s; }
.recovery-bars-anim rect:nth-child(2) { animation-delay: 0.1s; }
.recovery-bars-anim rect:nth-child(3) { animation-delay: 0.15s; }
.recovery-bars-anim rect:nth-child(4) { animation-delay: 0.2s; }
.recovery-bars-anim rect:nth-child(5) { animation-delay: 0.25s; }
.recovery-bars-anim rect:nth-child(6) { animation-delay: 0.3s; }
.recovery-bars-anim rect:nth-child(7) { animation-delay: 0.35s; }
.recovery-bars-anim rect:nth-child(8) { animation-delay: 0.4s; }
.recovery-bars-anim rect:nth-child(9) { animation-delay: 0.45s; }
.recovery-bars-anim rect:nth-child(10) { animation-delay: 0.5s; }
.recovery-bars-anim rect:nth-child(n+11) { animation-delay: 0.55s; }

@keyframes bar-grow {
    to { transform: scaleY(1); }
}

/* === Equity Curve Animation === */
.equity-line {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: draw-line 3.5s ease forwards;
}
.equity-area {
    opacity: 0;
    animation: fade-in 1.5s ease 2s forwards;
}
@keyframes draw-line {
    to { stroke-dashoffset: 0; }
}

/* === Hero Chart Animation === */
.hero-chart-animate {
    stroke-dasharray: 3000;
    stroke-dashoffset: 3000;
    animation: draw-line 5s ease forwards;
}

/* === Ticker === */
.ticker-wrap {
    overflow: hidden;
    padding: 0.875rem 0;
}
.ticker {
    display: flex;
    gap: 3rem;
    animation: ticker-scroll 40s linear infinite;
    width: max-content;
}
.ticker-item {
    white-space: nowrap;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}
@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* === Wiggle on Hover === */
.wiggle-on-hover:hover {
    animation: wiggle 0.5s ease;
}
@keyframes wiggle {
    0%, 100% { transform: translateY(-4px) rotate(0); }
    25% { transform: translateY(-4px) rotate(-2deg); }
    75% { transform: translateY(-4px) rotate(2deg); }
}

/* === Animations === */
@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in { animation: fade-in 0.8s ease forwards; }
.animate-fade-in-up { opacity: 0; animation: fade-in-up 0.8s ease forwards; }
.animation-delay-200 { animation-delay: 0.2s; }
.animation-delay-400 { animation-delay: 0.4s; }
.animation-delay-600 { animation-delay: 0.6s; }

/* === Scroll Reveal === */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* === Candlestick Background === */
.candle-bull { fill: #22c55e; }
.candle-bear { fill: #ef4444; }
.candle-wick { stroke-width: 1; }

/* === FAQ === */
.faq-item {
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
}
.faq-item:hover {
    border-color: rgba(245, 158, 11, 0.2);
    background: rgba(255, 255, 255, 0.04);
}
.faq-item[open] {
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.03);
}
.faq-summary {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    color: white;
    list-style: none;
    user-select: none;
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-content {
    padding: 0 1.5rem 1.25rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
    font-size: 0.9375rem;
    animation: faq-fade 0.3s ease;
}
@keyframes faq-fade {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === Live Chart Canvas === */
#live-chart, #live-volume {
    display: block;
    width: 100%;
    height: 100%;
}

/* === Order Book Bars === */
.ob-row {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 0.5rem;
    padding: 2px 6px;
    border-radius: 3px;
    overflow: hidden;
}
.ob-row .ob-bg {
    position: absolute;
    top: 0; bottom: 0;
    transition: width 0.5s ease;
    z-index: 0;
}
.ob-row.bid .ob-bg { right: 0; background: rgba(34, 197, 94, 0.12); }
.ob-row.ask .ob-bg { right: 0; background: rgba(239, 68, 68, 0.12); }
.ob-row > * { position: relative; z-index: 1; }

.ts-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.5rem;
    padding: 2px 0;
    animation: ts-flash 0.5s ease;
}
@keyframes ts-flash {
    0% { background: rgba(245, 158, 11, 0.15); }
    100% { background: transparent; }
}

/* === iMac / Apple Studio Display Mockup === */
.imac {
    position: relative;
    margin: 0 auto;
    max-width: 980px;
}

/* Aluminium outer frame - very thin like real iMac M3 / Studio Display */
.imac-frame {
    position: relative;
    background: linear-gradient(180deg, #e8e8ea 0%, #c8c8ca 50%, #a8a8aa 100%);
    border-radius: 16px;
    padding: 8px 8px 0 8px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(0, 0, 0, 0.25),
        inset 1px 0 0 rgba(255, 255, 255, 0.4),
        inset -1px 0 0 rgba(255, 255, 255, 0.4),
        0 30px 80px -10px rgba(0, 0, 0, 0.75),
        0 10px 30px -10px rgba(245, 158, 11, 0.15);
}

/* Camera dot */
.imac-camera {
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    background: radial-gradient(circle at 30% 30%, #555 0%, #1a1a1a 60%, #000 100%);
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.4);
    z-index: 5;
}

/* Inner black bezel - thin */
.imac-bezel {
    background: #000;
    border-radius: 6px 6px 0 0;
    padding: 8px;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 0 20px rgba(0, 0, 0, 0.9);
}

/* Display area - more compact */
.imac-display {
    border-radius: 2px;
    overflow: hidden;
    background: linear-gradient(180deg, #0a0f1a 0%, #030712 100%);
    position: relative;
}
.imac-display::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 25%),
        linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 30%);
    pointer-events: none;
    z-index: 10;
}

/* Aluminium chin with Apple logo - thinner */
.imac-chin {
    background: linear-gradient(180deg, #d8d8da 0%, #b0b0b2 100%);
    height: 24px;
    margin: 0 -8px;
    border-radius: 0 0 12px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 2px rgba(0, 0, 0, 0.2);
}
.imac-logo {
    width: 11px;
    height: 14px;
    background: rgba(0, 0, 0, 0.5);
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 30'><path d='M19.7 15.3c-.1-2.7 2.2-4 2.3-4-1.3-1.8-3.2-2.1-3.9-2.1-1.7-.2-3.2 1-4.1 1-.9 0-2.2-1-3.6-1C8.4 9.3 6.6 10.4 5.6 12c-2 3.5-.5 8.6 1.5 11.4.9 1.4 2.1 2.9 3.5 2.8 1.4-.1 1.9-.9 3.6-.9 1.7 0 2.1.9 3.6.9 1.5 0 2.4-1.4 3.3-2.7.7-1 1.2-2.1 1.6-3.3-2-.7-3-2.6-3-4.9zM16.4 6.7c.8-.9 1.3-2.2 1.2-3.4-1.1.1-2.4.7-3.2 1.6-.7.8-1.3 2.1-1.2 3.3 1.3.1 2.4-.6 3.2-1.5z'/></svg>") center/contain no-repeat;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 30'><path d='M19.7 15.3c-.1-2.7 2.2-4 2.3-4-1.3-1.8-3.2-2.1-3.9-2.1-1.7-.2-3.2 1-4.1 1-.9 0-2.2-1-3.6-1C8.4 9.3 6.6 10.4 5.6 12c-2 3.5-.5 8.6 1.5 11.4.9 1.4 2.1 2.9 3.5 2.8 1.4-.1 1.9-.9 3.6-.9 1.7 0 2.1.9 3.6.9 1.5 0 2.4-1.4 3.3-2.7.7-1 1.2-2.1 1.6-3.3-2-.7-3-2.6-3-4.9zM16.4 6.7c.8-.9 1.3-2.2 1.2-3.4-1.1.1-2.4.7-3.2 1.6-.7.8-1.3 2.1-1.2 3.3 1.3.1 2.4-.6 3.2-1.5z'/></svg>") center/contain no-repeat;
}

/* Stand: realistic Apple iMac M3 style - thin upright neck */
.imac-stand-neck {
    width: 22px;
    height: 38px;
    margin: 0 auto;
    background: linear-gradient(90deg, #888 0%, #d0d0d2 50%, #888 100%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.3),
        inset 0 -2px 0 rgba(0,0,0,0.15);
    position: relative;
    z-index: -1;
}
.imac-stand-neck::before {
    content: '';
    position: absolute;
    top: 0;
    left: -8px;
    right: -8px;
    height: 4px;
    background: linear-gradient(180deg, #c0c0c2 0%, #909092 100%);
    border-radius: 2px 2px 0 0;
}

/* L-shaped foot - flat curved base */
.imac-stand-base {
    width: 240px;
    height: 8px;
    margin: 0 auto;
    background: linear-gradient(180deg, #d8d8da 0%, #909092 100%);
    border-radius: 4px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 1px rgba(0, 0, 0, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: -1;
}

/* Floor shadow */
.imac-shadow {
    width: 60%;
    max-width: 500px;
    height: 24px;
    margin: 8px auto 0;
    background: radial-gradient(ellipse, rgba(0,0,0,0.55) 0%, transparent 70%);
    filter: blur(10px);
}

/* macOS style top menu bar inside display */
.macos-menubar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    font-family: -apple-system, 'SF Pro Display', 'Inter', sans-serif;
}
.macos-menubar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}
.macos-apple {
    font-size: 14px;
    line-height: 1;
    margin-right: 4px;
}
.macos-app-name { font-weight: 700; }
.macos-menu-item { color: rgba(255, 255, 255, 0.7); cursor: default; }
.macos-menubar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    font-family: 'SF Mono', 'JetBrains Mono', monospace;
}
.macos-status-icon { opacity: 0.7; font-size: 12px; }

/* Browser window inside the display */
.macos-browser {
    margin: 18px;
    border-radius: 10px;
    background: linear-gradient(180deg, #1f2937 0%, #0a0f1a 100%);
    box-shadow: 0 20px 50px -10px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.06);
    overflow: hidden;
}
.macos-browser-bar {
    display: grid;
    grid-template-columns: 70px 1fr 70px;
    align-items: center;
    padding: 9px 12px;
    background: linear-gradient(180deg, #2d3748 0%, #1a202c 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.macos-traffic {
    display: flex;
    gap: 7px;
}
.macos-light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.3);
}
.macos-light-r { background: linear-gradient(180deg, #ff6058, #ff4137); }
.macos-light-y { background: linear-gradient(180deg, #ffbd2e, #ffa400); }
.macos-light-g { background: linear-gradient(180deg, #28ca42, #1aab2c); }

.macos-url {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 5px 14px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    font-family: 'SF Mono', 'JetBrains Mono', monospace;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}
.macos-secure-icon { color: #22c55e; }

/* Hinge below the screen */
.macbook-hinge {
    position: relative;
    width: 100%;
    height: 14px;
    background: linear-gradient(180deg, #15171a 0%, #2d3033 30%, #15171a 100%);
    margin-top: -2px;
    border-radius: 0 0 4px 4px;
}
.macbook-hinge::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    max-width: 220px;
    height: 6px;
    background: linear-gradient(180deg, #3a3d40 0%, #1a1c1e 100%);
    border-radius: 0 0 12px 12px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

/* Base shadow under MacBook */
.macbook-shadow {
    width: 90%;
    height: 18px;
    margin: 8px auto 0;
    background: radial-gradient(ellipse, rgba(0,0,0,0.6) 0%, transparent 70%);
    filter: blur(6px);
}

@media (max-width: 640px) {
    .imac-frame { padding: 10px 10px 0 10px; border-radius: 14px; }
    .imac-bezel { padding: 8px; }
    .imac-chin { height: 26px; margin: 0 -10px; border-radius: 0 0 10px 10px; }
    .imac-logo { width: 11px; height: 13px; }
    .imac-stand-neck { width: 80px; height: 40px; }
    .imac-stand-base { width: 220px; height: 12px; }
    .macos-menubar { padding: 4px 10px; font-size: 10px; }
    .macos-menubar-left { gap: 8px; }
    .macos-menu-item:nth-child(n+5) { display: none; }
    .macos-menubar-right { gap: 8px; }
    .macos-status-icon:nth-child(-n+2) { display: none; }
    .macos-browser { margin: 8px; }
    .macos-browser-bar { padding: 6px 8px; grid-template-columns: 50px 1fr 30px; }
    .macos-light { width: 10px; height: 10px; }
    .macos-url { font-size: 10px; padding: 4px 8px; }
}

/* === Live MT4 Stream === */
.live-stream-container {
    position: relative;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, rgba(34,197,94,0.06) 0%, rgba(245,158,11,0.04) 50%, rgba(6,182,212,0.04) 100%);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.5rem;
    box-shadow: 0 20px 60px -10px rgba(0,0,0,0.5);
}

.live-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(10,15,26,0.6) 0%, rgba(3,7,18,0.4) 100%);
    border: 1px solid rgba(245,158,11,0.15);
}
@media (min-width: 768px) {
    .live-hero { grid-template-columns: 1.4fr 1fr; align-items: center; }
}

.live-hero-left #ls-alltime-pct {
    background: linear-gradient(135deg, #fde68a 0%, #f59e0b 40%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    text-shadow: 0 0 30px rgba(251,191,36,0.3);
    transition: transform 0.3s ease;
}
.live-hero-left #ls-alltime-pct.flash { transform: scale(1.05); }

.live-hero-right {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}
.ls-stat {
    padding: 0.875rem 0.75rem;
    border-radius: 0.625rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}
.ls-stat-label {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 0.25rem;
}
.ls-stat-value {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    font-size: 1.25rem;
    line-height: 1;
}
.ls-stat-sub {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.35);
    margin-top: 0.25rem;
    font-family: 'JetBrains Mono', monospace;
}

.live-section {
    margin-top: 1.5rem;
}
.live-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding: 0 0.25rem;
}
.live-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.7);
}

/* Open Trade Card */
.ls-trade-card {
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(255,255,255,0.06);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.ls-trade-card.profit { border-color: rgba(34,197,94,0.3); }
.ls-trade-card.loss { border-color: rgba(239,68,68,0.3); }
.ls-trade-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(34,197,94,0.04));
    opacity: 0;
    transition: opacity 0.3s ease;
}
.ls-trade-card.profit::before { background: linear-gradient(135deg, transparent 60%, rgba(34,197,94,0.1)); opacity: 1; }
.ls-trade-card.loss::before { background: linear-gradient(135deg, transparent 60%, rgba(239,68,68,0.1)); opacity: 1; }
.ls-trade-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    position: relative;
}
.ls-trade-symbol {
    font-weight: 700;
    color: white;
    font-family: 'JetBrains Mono', monospace;
}
.ls-trade-type {
    font-size: 0.625rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.ls-trade-type.buy { background: rgba(34,197,94,0.2); color: #22c55e; }
.ls-trade-type.sell { background: rgba(239,68,68,0.2); color: #ef4444; }
.ls-trade-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
    position: relative;
}
.ls-trade-meta strong { color: white; font-weight: 600; }
.ls-trade-profit {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 900;
    font-size: 1.1rem;
    margin-top: 0.5rem;
    text-align: right;
}
.ls-trade-profit.green { color: #22c55e; text-shadow: 0 0 12px rgba(34,197,94,0.4); }
.ls-trade-profit.red { color: #ef4444; text-shadow: 0 0 12px rgba(239,68,68,0.4); }

/* Closed Trades List */
.ls-closed-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 380px;
    overflow-y: auto;
    border-radius: 0.5rem;
    background: rgba(0,0,0,0.2);
    padding: 4px;
}
.ls-closed-list::-webkit-scrollbar { width: 6px; }
.ls-closed-list::-webkit-scrollbar-thumb { background: rgba(245,158,11,0.3); border-radius: 3px; }
.ls-closed-row {
    display: grid;
    grid-template-columns: 70px 1fr 1fr 1fr 80px;
    gap: 0.5rem;
    align-items: center;
    padding: 8px 10px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    background: rgba(255,255,255,0.02);
    transition: background 0.2s ease;
}
.ls-closed-row:hover { background: rgba(255,255,255,0.05); }
.ls-closed-row.win { border-left: 2px solid #22c55e; }
.ls-closed-row.loss { border-left: 2px solid #ef4444; }
.ls-closed-time { color: rgba(255,255,255,0.4); }
.ls-closed-symbol { color: white; font-weight: 600; }
.ls-closed-type { font-size: 0.6rem; padding: 1px 6px; border-radius: 3px; display: inline-block; }
.ls-closed-type.buy { background: rgba(34,197,94,0.15); color: #22c55e; }
.ls-closed-type.sell { background: rgba(239,68,68,0.15); color: #ef4444; }
.ls-closed-lots { color: rgba(255,255,255,0.6); }
.ls-closed-pnl { text-align: right; font-weight: 700; }
.ls-closed-pnl.green { color: #22c55e; }
.ls-closed-pnl.red { color: #ef4444; }

.ls-empty {
    padding: 1.5rem;
    text-align: center;
    color: rgba(255,255,255,0.3);
    font-size: 0.85rem;
    grid-column: 1 / -1;
}

.live-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
    font-family: 'JetBrains Mono', monospace;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .live-hero-right { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
    .ls-stat { padding: 0.5rem 0.375rem; }
    .ls-stat-value { font-size: 1rem; }
    .live-hero-left #ls-alltime-pct { font-size: 3rem; }
    .ls-closed-row { grid-template-columns: 60px 1fr 50px 70px; font-size: 0.65rem; padding: 6px 8px; }
    .ls-closed-row .ls-closed-type { display: none; }
}

/* === Top Community Strategies (Premium Leaderboard) === */
.topx-sort {
    display: inline-flex !important;
    gap: 6px;
    margin-top: 1.5rem;
    padding: 5px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 9999px;
    flex-wrap: wrap;
    justify-content: center;
    backdrop-filter: blur(12px);
}
.topx-sort-btn {
    padding: 9px 18px;
    border-radius: 9999px;
    background: transparent;
    color: rgba(255,255,255,0.55);
    border: none;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}
.topx-sort-btn:hover { color: white; background: rgba(255,255,255,0.04); }
.topx-sort-btn.active {
    background: linear-gradient(135deg,#fbbf24,#d97706) !important;
    color: #030712 !important;
    box-shadow: 0 4px 16px -2px rgba(251,191,36,0.5);
}

/* Hero Live-Aggregate Stats */
.topx-hero-stats {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem !important;
    margin: 2rem auto 1rem !important;
    max-width: 800px;
}
.topx-hero-stat {
    padding: 0.875rem 0.75rem !important;
    border-radius: 0.625rem !important;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    text-align: center !important;
}
.topx-hero-label {
    font-size: 0.6rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    color: rgba(255,255,255,0.5) !important;
    font-weight: 700 !important;
    margin-bottom: 4px !important;
}
.topx-hero-val {
    font-family: 'JetBrains Mono', monospace !important;
    font-weight: 900 !important;
    font-size: 1.4rem !important;
    line-height: 1 !important;
    color: white !important;
}
.topx-hero-val.gold { color: #fbbf24 !important; text-shadow: 0 0 12px rgba(251,191,36,0.4); }
.topx-hero-val.green { color: #22c55e !important; text-shadow: 0 0 12px rgba(34,197,94,0.4); }
.topx-hero-val.cyan { color: #06b6d4 !important; text-shadow: 0 0 12px rgba(6,182,212,0.4); }

.topx-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}
.topx-loading {
    grid-column: 1 / -1;
    padding: 3rem;
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.95rem;
}

/* The Card */
.topx-card {
    position: relative !important;
    background: linear-gradient(155deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 50%, rgba(0,0,0,0.3) 100%) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 1rem !important;
    padding: 1.5rem 1.25rem 1.25rem !important;
    overflow: hidden !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: 0 8px 24px -8px rgba(0,0,0,0.5), 0 1px 0 rgba(255,255,255,0.05) inset !important;
    isolation: isolate;
}
.topx-card::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: radial-gradient(circle at 50% 0%, rgba(251,191,36,0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    z-index: -1;
}
.topx-card::after {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    border-radius: 1rem;
    padding: 1px;
    background: linear-gradient(135deg, rgba(251,191,36,0) 0%, rgba(251,191,36,0.4) 50%, rgba(6,182,212,0) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}
.topx-card:hover {
    transform: translateY(-6px) !important;
    border-color: rgba(251,191,36,0.4) !important;
    box-shadow: 0 32px 60px -16px rgba(0,0,0,0.7), 0 8px 32px -8px rgba(251,191,36,0.3), 0 1px 0 rgba(255,255,255,0.1) inset !important;
}
.topx-card:hover::before { opacity: 1; }
.topx-card:hover::after { opacity: 1; }

/* Special rank styling */
.topx-card.rank-1 {
    border-color: rgba(251,191,36,0.6) !important;
    background: linear-gradient(155deg, rgba(251,191,36,0.15) 0%, rgba(251,191,36,0.04) 50%, rgba(0,0,0,0.3) 100%) !important;
    box-shadow: 0 12px 40px -8px rgba(251,191,36,0.4), 0 0 0 1px rgba(251,191,36,0.2) inset, 0 1px 0 rgba(255,255,255,0.15) inset !important;
}
.topx-card.rank-1::before { opacity: 1; background: radial-gradient(circle at 50% 0%, rgba(251,191,36,0.2), transparent 60%); }
.topx-card.rank-2 {
    border-color: rgba(229,231,235,0.35) !important;
    background: linear-gradient(155deg, rgba(229,231,235,0.08) 0%, rgba(229,231,235,0.02) 50%, rgba(0,0,0,0.3) 100%) !important;
}
.topx-card.rank-3 {
    border-color: rgba(251,146,60,0.4) !important;
    background: linear-gradient(155deg, rgba(251,146,60,0.08) 0%, rgba(251,146,60,0.02) 50%, rgba(0,0,0,0.3) 100%) !important;
}

/* Rank badge (top right) */
.topx-rank {
    position: absolute !important;
    top: -10px !important;
    right: 16px !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-weight: 900 !important;
    font-size: 1rem !important;
    color: white !important;
    background: linear-gradient(135deg, #6b7280, #374151) !important;
    box-shadow: 0 6px 18px rgba(0,0,0,0.5), 0 0 0 4px #0a0f1a !important;
    z-index: 3 !important;
}
.rank-1 .topx-rank { background: linear-gradient(135deg, #fde68a, #d97706) !important; color: #422006 !important; box-shadow: 0 6px 24px rgba(251,191,36,0.7), 0 0 0 4px #0a0f1a !important; font-size: 1.4rem !important; }
.rank-2 .topx-rank { background: linear-gradient(135deg, #f3f4f6, #9ca3af) !important; color: #1f2937 !important; font-size: 1.4rem !important; }
.rank-3 .topx-rank { background: linear-gradient(135deg, #fb923c, #92400e) !important; color: white !important; font-size: 1.4rem !important; }

/* Header */
.topx-head {
    margin-bottom: 1rem !important;
    padding-right: 48px !important;
}
.topx-name {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: white !important;
    line-height: 1.25 !important;
    margin-bottom: 6px !important;
    display: block;
}
.topx-meta {
    font-size: 0.72rem !important;
    color: rgba(255,255,255,0.5) !important;
    font-family: 'JetBrains Mono', monospace !important;
    display: flex !important;
    gap: 6px !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}
.topx-meta-sym {
    color: #fbbf24 !important;
    font-weight: 700 !important;
    background: rgba(251,191,36,0.12) !important;
    padding: 2px 7px !important;
    border-radius: 4px !important;
    border: 1px solid rgba(251,191,36,0.2);
}
.topx-meta-tf {
    color: rgba(255,255,255,0.8) !important;
    background: rgba(255,255,255,0.06) !important;
    padding: 2px 7px !important;
    border-radius: 4px !important;
    border: 1px solid rgba(255,255,255,0.08);
}

/* Stats grid */
.topx-stats {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 6px !important;
    margin-top: 0.875rem !important;
}
.topx-stat {
    padding: 0.625rem 0.5rem !important;
    border-radius: 0.5rem !important;
    background: rgba(0,0,0,0.35) !important;
    border: 1px solid rgba(255,255,255,0.04) !important;
    text-align: center;
    transition: background 0.2s ease;
}
.topx-card:hover .topx-stat { background: rgba(0,0,0,0.45) !important; }
.topx-stat-label {
    display: block;
    font-size: 0.58rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    color: rgba(255,255,255,0.4) !important;
    font-weight: 700 !important;
    margin-bottom: 4px !important;
}
.topx-stat-value {
    font-family: 'JetBrains Mono', monospace !important;
    font-weight: 800 !important;
    font-size: 1.05rem !important;
    line-height: 1 !important;
    display: block;
}
.topx-stat-value.green { color: #22c55e !important; text-shadow: 0 0 10px rgba(34,197,94,0.3); }
.topx-stat-value.red { color: #ef4444 !important; text-shadow: 0 0 10px rgba(239,68,68,0.3); }
.topx-stat-value.gold { color: #fbbf24 !important; text-shadow: 0 0 10px rgba(251,191,36,0.4); }
.topx-stat-value.cyan { color: #06b6d4 !important; text-shadow: 0 0 10px rgba(6,182,212,0.3); }

/* Footer */
.topx-footer {
    margin-top: 1rem !important;
    padding-top: 0.75rem !important;
    border-top: 1px solid rgba(255,255,255,0.06) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 0.72rem !important;
    color: rgba(255,255,255,0.45) !important;
    font-family: 'JetBrains Mono', monospace !important;
}
.topx-handle {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}
.topx-handle::before {
    content: '👤' !important;
    font-size: 11px !important;
    opacity: 0.7 !important;
}

@media (max-width: 640px) {
    .topx-stats { grid-template-columns: 1fr 1fr !important; }
    .topx-stat:nth-child(5), .topx-stat:nth-child(6) { /* keep all visible */ }
}

/* === Premium Review Cards === */
.star-rating {
    display: inline-block;
    background: linear-gradient(135deg, #fde68a 0%, #f59e0b 50%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-shadow: 0 0 12px rgba(251, 191, 36, 0.4);
    filter: drop-shadow(0 1px 2px rgba(245, 158, 11, 0.3));
}

.review-card {
    position: relative;
    padding: 1.75rem;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
.review-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 1.25rem;
    padding: 1px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0) 0%, rgba(251, 191, 36, 0.4) 50%, rgba(6, 182, 212, 0) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
.review-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.08), transparent);
    transition: left 0.7s ease;
    pointer-events: none;
}
.review-card:hover {
    transform: translateY(-6px);
    border-color: rgba(251, 191, 36, 0.3);
    box-shadow:
        0 24px 48px -12px rgba(0, 0, 0, 0.6),
        0 12px 24px -12px rgba(251, 191, 36, 0.2);
}
.review-card:hover::before { opacity: 1; }
.review-card:hover::after { left: 100%; }

.review-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1rem;
}
.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4), 0 0 0 2px rgba(251, 191, 36, 0.3);
    display: block;
}
.review-author {
    min-width: 0;
}
.review-name {
    font-weight: 700;
    color: white;
    font-size: 0.95rem;
    line-height: 1.2;
}
.review-meta {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 2px;
}
.review-stars {
    flex-shrink: 0;
}
.review-body {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.65;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    position: relative;
}
.quote-mark {
    color: rgba(251, 191, 36, 0.6);
    font-weight: 900;
    font-size: 1.2em;
    line-height: 0;
    margin: 0 2px;
}

.review-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.review-tool {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.review-tool.profit {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(217, 119, 6, 0.1));
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}
.review-tool.recovery {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(14, 116, 144, 0.1));
    color: #06b6d4;
    border: 1px solid rgba(6, 182, 212, 0.3);
}
.review-date {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.35);
    font-family: 'JetBrains Mono', monospace;
}
.review-verified {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.4);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s ease;
}
.review-card:hover .review-verified {
    opacity: 1;
    transform: scale(1);
}

/* === Live Activity Feed === */
.feed-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    transition: background 0.3s ease;
    animation: feed-slide-in 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    position: relative;
    overflow: hidden;
}
.feed-item:hover { background: rgba(255, 255, 255, 0.03); }

.feed-item.new::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.15) 0%, transparent 60%);
    animation: feed-flash 1.8s ease-out forwards;
    pointer-events: none;
}
.feed-item.recovery.new::before {
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.15) 0%, transparent 60%);
}

@keyframes feed-slide-in {
    0% { opacity: 0; transform: translateY(-30px) scale(0.95); max-height: 0; padding-top: 0; padding-bottom: 0; }
    100% { opacity: 1; transform: translateY(0) scale(1); max-height: 100px; padding-top: 1rem; padding-bottom: 1rem; }
}
@keyframes feed-flash {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

.feed-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4), inset 0 0 0 2px rgba(255,255,255,0.1);
    overflow: hidden;
}
.feed-avatar.profit {
    background: radial-gradient(circle at 30% 30%, rgba(251,191,36,0.25), rgba(217,119,6,0.15));
    box-shadow: 0 4px 12px rgba(0,0,0,0.4), 0 0 0 2px rgba(251,191,36,0.4);
}
.feed-avatar.recovery {
    background: radial-gradient(circle at 30% 30%, rgba(6,182,212,0.25), rgba(14,116,144,0.15));
    box-shadow: 0 4px 12px rgba(0,0,0,0.4), 0 0 0 2px rgba(6,182,212,0.4);
}
.feed-flag {
    font-size: 26px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}
.feed-flag-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.feed-avatar::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid #0a0f1a;
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

.feed-name {
    font-weight: 700;
    color: white;
    font-size: 0.95rem;
}
.feed-meta {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2px;
}
.feed-tool-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.feed-tool-badge.profit {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}
.feed-tool-badge.recovery {
    background: rgba(6, 182, 212, 0.15);
    color: #06b6d4;
}

.feed-amount {
    text-align: right;
    flex-shrink: 0;
}
.feed-amount-value {
    font-weight: 900;
    font-size: 1.1rem;
    font-family: 'JetBrains Mono', monospace;
    line-height: 1;
}
.feed-amount-value.profit { color: #22c55e; }
.feed-amount-value.recovery { color: #06b6d4; }
.feed-amount-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 640px) {
    .feed-item { padding: 0.75rem 0.875rem; gap: 0.625rem; }
    .feed-avatar { width: 36px; height: 36px; font-size: 14px; }
    .feed-name { font-size: 0.85rem; }
    .feed-amount-value { font-size: 0.95rem; }
}

/* === Gold Hunter Robot === */
.robot-hunter {
    position: fixed;
    bottom: 20px;
    left: 0;
    z-index: 45;
    pointer-events: none;
    width: 180px;
    height: 140px;
    visibility: hidden;
    transform: translateX(-300px);
}
.robot-hunter.running {
    visibility: visible;
    animation: robot-walk 12s linear forwards;
}
@keyframes robot-walk {
    0%   { transform: translateX(-300px); opacity: 0; }
    8%   { opacity: 1; }
    92%  { opacity: 1; }
    100% { transform: translateX(calc(100vw + 100px)); opacity: 0; }
}

/* Robot body */
.robot {
    position: absolute;
    bottom: 0;
    right: 20px;
    width: 70px;
    height: 110px;
    animation: robot-bob 0.4s ease-in-out infinite;
}
@keyframes robot-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.robot-antenna {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 12px;
    background: linear-gradient(to top, #fbbf24, #fff);
    border-radius: 2px;
}
.robot-antenna::after {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #fbbf24;
    border-radius: 50%;
    box-shadow: 0 0 12px #fbbf24, 0 0 4px #fff;
    animation: antenna-blink 0.8s ease-in-out infinite;
}
@keyframes antenna-blink {
    0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.5; transform: translateX(-50%) scale(1.3); }
}

.robot-head {
    position: absolute;
    top: 0;
    left: 10px;
    width: 50px;
    height: 40px;
    background: linear-gradient(180deg, #4b5563 0%, #1f2937 100%);
    border: 2px solid #fbbf24;
    border-radius: 10px 10px 8px 8px;
    box-shadow: 0 0 16px rgba(251, 191, 36, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}

.robot-eye {
    position: absolute;
    top: 12px;
    width: 10px;
    height: 10px;
    background: #06b6d4;
    border-radius: 50%;
    box-shadow: 0 0 10px #06b6d4, inset 0 0 4px rgba(255,255,255,0.6);
    animation: eye-scan 2s ease-in-out infinite;
}
.eye-left { left: 8px; }
.eye-right { right: 8px; }
@keyframes eye-scan {
    0%, 100% { background: #06b6d4; box-shadow: 0 0 10px #06b6d4; }
    50% { background: #fbbf24; box-shadow: 0 0 14px #fbbf24; }
}

.robot-mouth {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 3px;
    background: #fbbf24;
    border-radius: 2px;
    box-shadow: 0 0 6px #fbbf24;
}

.robot-body {
    position: absolute;
    top: 38px;
    left: 8px;
    width: 54px;
    height: 45px;
    background: linear-gradient(180deg, #374151 0%, #111827 100%);
    border: 2px solid #fbbf24;
    border-radius: 6px;
    box-shadow: 0 0 14px rgba(251, 191, 36, 0.3);
    overflow: hidden;
}
.robot-screen {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 22px;
    background: #030712;
    border: 1px solid rgba(251, 191, 36, 0.5);
    border-radius: 3px;
    color: #fbbf24;
    font-family: 'JetBrains Mono', monospace;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 0 6px #fbbf24;
    animation: screen-flicker 0.15s linear infinite;
}
@keyframes screen-flicker {
    0%, 100% { opacity: 1; }
    96% { opacity: 0.85; }
    98% { opacity: 1; }
}

.robot-arm {
    position: absolute;
    top: 42px;
    width: 6px;
    height: 30px;
    background: linear-gradient(180deg, #4b5563, #1f2937);
    border-radius: 3px;
    border: 1px solid #fbbf24;
}
.arm-left {
    left: 0;
    transform-origin: top center;
    animation: arm-swing-left 0.4s ease-in-out infinite;
}
.arm-right {
    right: 0;
    transform-origin: top center;
    animation: arm-swing-right 0.4s ease-in-out infinite;
}
@keyframes arm-swing-left {
    0%, 100% { transform: rotate(15deg); }
    50% { transform: rotate(-15deg); }
}
@keyframes arm-swing-right {
    0%, 100% { transform: rotate(-15deg); }
    50% { transform: rotate(15deg); }
}

.robot-leg {
    position: absolute;
    bottom: 0;
    width: 12px;
    height: 22px;
    background: linear-gradient(180deg, #4b5563, #111827);
    border: 1px solid #fbbf24;
    border-radius: 3px 3px 5px 5px;
    transform-origin: top center;
}
.leg-left {
    left: 16px;
    animation: leg-walk-left 0.4s ease-in-out infinite;
}
.leg-right {
    right: 16px;
    animation: leg-walk-right 0.4s ease-in-out infinite;
}
@keyframes leg-walk-left {
    0%, 100% { transform: rotate(20deg); }
    50% { transform: rotate(-15deg); }
}
@keyframes leg-walk-right {
    0%, 100% { transform: rotate(-15deg); }
    50% { transform: rotate(20deg); }
}

/* Gold Coins flying ahead */
.gold-coin {
    position: absolute;
    width: 26px;
    height: 26px;
    background: radial-gradient(circle at 30% 30%, #fde68a, #f59e0b 60%, #92400e 100%);
    border: 2px solid #fbbf24;
    border-radius: 50%;
    color: #78350f;
    font-weight: 900;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 16px rgba(251, 191, 36, 0.7), inset 0 -2px 4px rgba(0,0,0,0.3);
    text-shadow: 0 1px 0 rgba(255,255,255,0.4);
}
.coin-1 {
    bottom: 50px; left: 50px;
    animation: coin-float-1 1.5s ease-in-out infinite, coin-spin 1.2s linear infinite;
}
.coin-2 {
    bottom: 70px; left: 25px;
    animation: coin-float-2 1.7s ease-in-out infinite, coin-spin 1.4s linear infinite reverse;
}
.coin-3 {
    bottom: 35px; left: 80px;
    animation: coin-float-3 1.4s ease-in-out infinite, coin-spin 1s linear infinite;
}
.coin-4 {
    bottom: 85px; left: 10px;
    animation: coin-float-1 1.6s ease-in-out infinite 0.3s, coin-spin 1.3s linear infinite reverse;
}
@keyframes coin-float-1 {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-8px) translateX(-4px); }
}
@keyframes coin-float-2 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
@keyframes coin-float-3 {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-6px) translateX(4px); }
}
@keyframes coin-spin {
    0% { transform: rotateY(0); }
    100% { transform: rotateY(360deg); }
}

/* Sparkles when robot catches */
.sparkle {
    position: absolute;
    color: #fbbf24;
    font-size: 14px;
    text-shadow: 0 0 8px #fbbf24;
    opacity: 0;
    pointer-events: none;
}
.sparkle-1 { top: 20px; left: -10px; animation: sparkle-pop 1.2s ease-in-out infinite 0.2s; }
.sparkle-2 { top: 50px; left: -8px; animation: sparkle-pop 1.2s ease-in-out infinite 0.6s; }
.sparkle-3 { top: 35px; left: -15px; animation: sparkle-pop 1.2s ease-in-out infinite 0.9s; }
@keyframes sparkle-pop {
    0%, 100% { opacity: 0; transform: scale(0.5) rotate(0); }
    50% { opacity: 1; transform: scale(1.4) rotate(180deg); }
}

/* Speech bubble */
.robot-bubble {
    position: absolute;
    top: -10px;
    right: 90px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    padding: 6px 14px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.5);
    white-space: nowrap;
    opacity: 0;
    transform: scale(0.5);
}
.robot-hunter.running .robot-bubble {
    animation: bubble-pop 12s ease-in-out forwards;
}
@keyframes bubble-pop {
    0%, 35% { opacity: 0; transform: scale(0.5) translateY(10px); }
    40% { opacity: 1; transform: scale(1.1) translateY(0); }
    50% { transform: scale(1) translateY(0); }
    85% { opacity: 1; transform: scale(1) translateY(0); }
    100% { opacity: 0; transform: scale(0.8) translateY(-10px); }
}
.robot-bubble::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 12px;
    width: 0; height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #16a34a;
}

@media (max-width: 640px) {
    .robot-hunter { transform: scale(0.7); transform-origin: bottom left; }
}

/* === Responsive === */
@media (max-width: 640px) {
    .glow-orb { opacity: 0.08; }
    .glow-orb-1 { width: 300px; height: 300px; }
    .glow-orb-2 { width: 250px; height: 250px; }
    .whatsapp-float { width: 56px; height: 56px; bottom: 16px; right: 16px; }
    .whatsapp-float svg { width: 28px; height: 28px; }
}
