/* ==========================================================================
   USEPEN.AI — Emerald Green Gradient Glassmorphism & Landing Page CSS
   ========================================================================== */

:root {
    --bg-dark: #040806;
    --bg-card: rgba(8, 20, 15, 0.75);
    --bg-card-hover: rgba(12, 32, 24, 0.85);
    --border-color: rgba(16, 185, 129, 0.15);
    --border-glow: rgba(16, 185, 129, 0.4);
    
    --text-primary: #f0fdf4;
    --text-secondary: #a7f3d0;
    --text-muted: #4ade80;
    
    --primary-emerald: #10b981;
    --primary-green: #059669;
    --primary-cyan: #00f2fe;
    --accent-mint: #34d399;
    
    --color-green: #10b981;
    --color-green-glow: rgba(16, 185, 129, 0.4);
    --color-red: #f43f5e;
    --color-red-glow: rgba(244, 63, 94, 0.4);
    --color-yellow: #fbbf24;
    
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --glass-blur: blur(18px);
    --shadow-glow: 0 0 30px rgba(16, 185, 129, 0.25);
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
}

html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Emerald Background Glowing Orbs */
.bg-glow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(130px);
    opacity: 0.35;
    animation: orbFloat 20s ease-in-out infinite alternate;
}

.orb-emerald-1 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, #10b981, #059669, #00f2fe);
    top: -120px;
    left: -120px;
}

.orb-emerald-2 {
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, #047857, #10b981, #064e3b);
    bottom: -180px;
    right: -180px;
    animation-delay: -7s;
}

.orb-emerald-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #34d399, #059669);
    top: 35%;
    left: 45%;
    animation-delay: -14s;
}

.grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(16, 185, 129, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(16, 185, 129, 0.03) 1px, transparent 1px);
    background-size: 36px 36px;
}

@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(70px, 50px) scale(1.12); }
    100% { transform: translate(-50px, 90px) scale(0.92); }
}

/* ==========================================================================
   CUSTOM GLOWING EMERALD CURSOR & RIPPLE PARTICLES
   ========================================================================== */
.custom-cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    box-shadow: 0 0 12px #10b981, 0 0 20px #00f2fe;
    transform: translate(-50%, -50%);
    transition: transform 0.05s ease-out, opacity 0.3s ease;
}

.custom-cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(16, 185, 129, 0.6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    background: rgba(16, 185, 129, 0.04);
    backdrop-filter: blur(2px);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
    transform: translate(-50%, -50%);
    transition: width 0.25s cubic-bezier(0.165, 0.84, 0.44, 1), 
                height 0.25s cubic-bezier(0.165, 0.84, 0.44, 1), 
                background 0.25s ease, 
                border-color 0.25s ease,
                box-shadow 0.25s ease;
}

/* Hover active state for interactive elements */
body.cursor-hover .custom-cursor-dot {
    transform: translate(-50%, -50%) scale(1.5);
    background: #00f2fe;
    box-shadow: 0 0 18px #00f2fe;
}

body.cursor-hover .custom-cursor-ring {
    width: 54px;
    height: 54px;
    border-color: rgba(0, 242, 254, 0.8);
    background: rgba(0, 242, 254, 0.08);
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.4);
}

/* Click Ripple Effect */
.cursor-click-ripple {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid #10b981;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99997;
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    animation: cursorRippleAnim 0.6s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes cursorRippleAnim {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
        border-color: #00f2fe;
        box-shadow: 0 0 20px #00f2fe;
    }
    100% {
        transform: translate(-50%, -50%) scale(3.5);
        opacity: 0;
        border-color: #10b981;
        box-shadow: 0 0 40px rgba(16, 185, 129, 0);
    }
}

/* ==========================================================================
   LANDING PAGE STYLING
   ========================================================================== */
.landing-page {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.landing-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 12px 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    position: sticky;
    top: 10px;
    z-index: 50;
}

.landing-nav-links {
    display: flex;
    gap: 24px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary-emerald);
}

.btn-nav-start {
    font-size: 13px !important;
    padding: 8px 18px !important;
}

/* HERO SECTION */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px 40px 20px;
    gap: 28px;
}

/* HERO SPLIT GRID WITH FLOATING 3D PNG ON LEFT */
.hero-split-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 40px;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin-bottom: 10px;
    text-align: left;
}

.hero-left-media {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-img-glow-wrapper {
    position: relative;
    width: 380px;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-floating-png {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 15px 30px rgba(16, 185, 129, 0.45));
    border: none !important;
    background: transparent !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.hero-floating-png:hover {
    transform: none !important;
}

.hero-img-orb-glow {
    display: none !important;
}

.hero-right-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -1px;
    color: #ffffff;
    max-width: 850px;
}

.gradient-text {
    background: linear-gradient(90deg, #10b981 0%, #34d399 25%, #00f2fe 50%, #34d399 75%, #10b981 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 5s linear infinite;
    text-shadow: 0 0 30px rgba(16, 185, 129, 0.4);
}

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

.hero-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 680px;
    line-height: 1.6;
}

/* TOMBOL START UTAMA DI TENGAH HOMEPAGE */
.hero-cta-group {
    margin-top: 15px;
    position: relative;
}

.btn-hero-start {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: linear-gradient(135deg, #10b981 0%, #059669 60%, #00f2fe 100%);
    border: none;
    color: #040806;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 1px;
    padding: 18px 44px;
    border-radius: 40px;
    cursor: pointer;
    box-shadow: 0 0 45px rgba(16, 185, 129, 0.6), 0 10px 25px rgba(0, 0, 0, 0.8);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.btn-hero-start:hover {
    transform: scale(1.06) translateY(-2px);
    box-shadow: 0 0 60px rgba(16, 185, 129, 0.8), 0 15px 35px rgba(0, 0, 0, 0.9);
}

.btn-hero-start:active {
    transform: scale(0.98);
}

.icon-play {
    font-size: 16px;
    background: #040806;
    color: var(--primary-emerald);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 3px;
}

.icon-arrow {
    font-size: 18px;
    transition: transform 0.2s ease;
}

.btn-hero-start:hover .icon-arrow {
    transform: translateX(6px);
}

/* HERO STATS */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    background: rgba(8, 20, 15, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 16px 36px;
    border-radius: var(--radius-lg);
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 24px;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--primary-emerald);
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 30px;
    background: var(--border-color);
}

/* FEATURES SHOWCASE SECTION */
.features-section {
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
}

.section-title {
    text-align: center;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: #fff;
}

.section-title p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 6px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}

.feature-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.15);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid var(--primary-emerald);
    color: var(--primary-emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.35);
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.feature-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

.btn-card-action {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid var(--border-color);
    color: var(--primary-emerald);
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    padding: 10px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.btn-card-action:hover {
    background: var(--primary-emerald);
    color: #040806;
    border-color: var(--primary-emerald);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

/* SHOWCASE SECTIONS */
.showcase-section {
    padding: 50px 0;
    border-top: 1px solid var(--border-color);
}

.showcase-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.showcase-section.reverse .showcase-container {
    grid-template-columns: 1fr 1fr;
}

.showcase-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.showcase-tag {
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--primary-emerald);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    width: fit-content;
}

.showcase-text h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.showcase-text p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.btn-showcase-action {
    width: fit-content;
    padding: 12px 24px !important;
    font-size: 14px !important;
}

.demo-signal-card {
    background: var(--bg-card);
    border: 1px solid var(--primary-emerald);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.2);
}

.demo-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 800;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 14px;
    margin-bottom: 14px;
}

.demo-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
    font-family: var(--font-mono);
}

.demo-card-body div {
    display: flex;
    justify-content: space-between;
}

.demo-vision-box {
    background: rgba(16, 185, 129, 0.05);
    border: 2px dashed var(--primary-emerald);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.demo-icon {
    font-size: 40px;
    color: var(--primary-emerald);
}

/* Ticker Preview on Hero */
.landing-ticker-preview {
    display: flex;
    gap: 16px;
    margin-top: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-ticker-item {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid var(--border-color);
    padding: 6px 16px;
    border-radius: 30px;
    font-family: var(--font-mono);
    font-size: 13px;
    display: flex;
    gap: 8px;
}

/* HERO TERMINAL MOCKUP (3D VISUAL DISPLAY) */
.hero-section {
    perspective: 1200px;
}

.hero-terminal-mockup {
    width: 100%;
    max-width: 960px;
    margin: 35px auto 15px auto;
    background: rgba(4, 8, 6, 0.95);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--primary-emerald);
    border-radius: var(--radius-lg);
    transform: rotateX(10deg) rotateY(-3deg) rotateZ(1deg);
    transform-style: preserve-3d;
    box-shadow: 
        -25px 35px 70px rgba(0, 0, 0, 0.95),
        0 0 50px rgba(16, 185, 129, 0.35),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
    overflow: visible;
    pointer-events: none;
    user-select: none;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.5s ease;
}

.hero-terminal-mockup:hover {
    transform: rotateX(2deg) rotateY(0deg) rotateZ(0deg) scale(1.02);
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.95),
        0 0 70px rgba(16, 185, 129, 0.6);
}

.mockup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    background: rgba(16, 185, 129, 0.08);
    border-bottom: 1px solid var(--border-color);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.mockup-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: #f43f5e; }
.dot.yellow { background: #fbbf24; }
.dot.green { background: #10b981; }

.mockup-title {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
}

.mockup-badge {
    font-size: 10px;
    font-family: var(--font-mono);
    color: var(--primary-emerald);
    background: rgba(16, 185, 129, 0.15);
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.4);
    display: flex;
    align-items: center;
    gap: 6px;
}

.landing-footer {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 45px 24px;
    border-top: 1px solid rgba(16, 185, 129, 0.25);
    margin-top: 0;
    font-size: 13px;
    color: var(--text-muted);
    background: #000000 !important;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.mockup-body {
    width: 100%;
    height: 340px;
    position: relative;
    background: rgba(4, 8, 6, 0.9);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    overflow: hidden;
}

#mock-landing-chart {
    width: 100%;
    height: 100%;
    display: block;
}

/* 3D FLOATING OVERLAY WIDGETS */
.widget-3d {
    position: absolute;
    background: rgba(8, 20, 15, 0.92);
    backdrop-filter: blur(14px);
    border: 1px solid var(--primary-emerald);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-family: var(--font-mono);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 20px rgba(16, 185, 129, 0.4);
    z-index: 10;
    pointer-events: none;
    animation: float3dWidget 4s ease-in-out infinite alternate;
}

.widget-signal {
    top: 20px;
    right: 25px;
}

.widget-rsi {
    bottom: 25px;
    left: 25px;
    animation-delay: -2s;
}

.w3d-head {
    font-size: 10px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.w3d-title {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
}

.w3d-val {
    font-size: 11px;
    font-weight: 700;
}

@keyframes float3dWidget {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-10px) scale(1.03); }
}

/* Step Process Section */
.how-it-works-section {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}

.step-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s ease;
}

.step-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.15);
}

.step-number {
    font-family: var(--font-mono);
    font-size: 28px;
    font-weight: 900;
    color: rgba(16, 185, 129, 0.25);
    position: absolute;
    top: 15px;
    right: 20px;
}

.step-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--primary-emerald);
    color: var(--primary-emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.step-card h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.step-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
}

.faq-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-card h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-card h4 i {
    color: var(--primary-emerald);
}

.faq-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Final CTA Section */
.final-cta-section {
    padding: 60px 0;
}

.cta-card {
    background: linear-gradient(135deg, rgba(8, 20, 15, 0.95), rgba(12, 32, 24, 0.95));
    border: 1px solid var(--primary-emerald);
    border-radius: var(--radius-lg);
    padding: 50px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.25);
}

.cta-card h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: #fff;
}

.cta-card p {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
}

.btn-cta-bottom {
    margin-top: 10px;
    padding: 16px 36px !important;
}

/* SCROLL REVEAL & MICRO ANIMATIONS */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

.float-animated {
    animation: floatCardAnim 4s ease-in-out infinite alternate;
}

@keyframes floatCardAnim {
    0% { transform: translateY(0); }
    100% { transform: translateY(-8px); }
}

.hero-badge {
    animation: pulseBorderGlow 3s ease-in-out infinite alternate;
}

@keyframes pulseBorderGlow {
    0% { border-color: rgba(16, 185, 129, 0.3); box-shadow: 0 0 10px rgba(16, 185, 129, 0.1); }
    100% { border-color: rgba(16, 185, 129, 0.7); box-shadow: 0 0 25px rgba(16, 185, 129, 0.4); }
}

.footer-socials {
    margin-bottom: 10px;
}

.btn-twitter-nav {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.btn-twitter-nav:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: #fff;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

.btn-twitter-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-twitter-footer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 30px;
    transition: all 0.2s ease;
}

.btn-twitter-footer:hover {
    background: #ffffff;
    color: #040806;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   APP TERMINAL STYLING (REVEALED IN FULL APP VIEW)
   ========================================================================== */
.app-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 1920px;
    margin: 0 auto;
    padding: 12px 16px;
    gap: 12px;
}

/* NAVBAR */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 10px 20px;
    height: 64px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(16, 185, 129, 0.15);
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo-img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 1px solid var(--primary-emerald);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

.brand-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #00f2fe 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #040806;
    font-size: 20px;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
}

.brand-text h1 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1;
    color: #ffffff;
}

.brand-text .highlight {
    color: var(--primary-emerald);
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}

.sub-tag {
    font-size: 9px;
    font-family: var(--font-mono);
    color: var(--text-muted);
    letter-spacing: 1.5px;
}

/* TICKER MARQUEE */
.nav-center {
    flex: 1;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.ticker-wrapper {
    display: flex;
    align-items: center;
    gap: 24px;
    white-space: nowrap;
    animation: tickerScroll 40s linear infinite;
}

.ticker-wrapper:hover {
    animation-play-state: paused;
}

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

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-family: var(--font-mono);
    background: rgba(16, 185, 129, 0.05);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(16, 185, 129, 0.12);
    cursor: pointer;
    transition: all 0.2s ease;
}

.ticker-item:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: var(--primary-emerald);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.ticker-symbol { font-weight: 700; color: #fff; }
.ticker-price { color: var(--text-primary); }
.ticker-change.up { color: var(--color-green); font-weight: 700; }
.ticker-change.down { color: var(--color-red); font-weight: 700; }

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.system-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    background: rgba(16, 185, 129, 0.15);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.pulse-green, .status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-green);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--color-green);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}

.btn-icon {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: rgba(16, 185, 129, 0.25);
    color: #fff;
    border-color: var(--primary-emerald);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

/* TERMINAL GRID SYSTEM */
.terminal-grid {
    display: grid;
    grid-template-columns: 1fr 440px;
    grid-template-rows: minmax(420px, 1fr) minmax(280px, 0.7fr);
    gap: 12px;
    flex: 1;
    overflow: hidden;
}

.panel {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.panel:hover {
    border-color: var(--border-glow);
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.15);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(16, 185, 129, 0.03);
    gap: 12px;
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-title h2 {
    font-size: 16px;
    font-weight: 800;
    font-family: var(--font-heading);
    color: #fff;
}

.icon-ai { color: var(--primary-emerald); }

/* CHART PANEL */
.chart-panel {
    grid-column: 1;
    grid-row: 1;
}

.coin-selector-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 10px;
    font-size: 12px;
    color: var(--text-muted);
}

#coin-search {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 10px 6px 28px;
    border-radius: var(--radius-sm);
    width: 140px;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

#coin-search:focus {
    outline: none;
    border-color: var(--primary-emerald);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
    width: 180px;
}

.coin-dropdown {
    position: absolute;
    top: 38px;
    left: 0;
    width: 230px;
    max-height: 220px;
    overflow-y: auto;
    background: rgba(8, 20, 15, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid var(--primary-emerald);
    border-radius: var(--radius-md);
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
}

.coin-dropdown-item {
    padding: 8px 12px;
    font-size: 12px;
    font-family: var(--font-mono);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(16, 185, 129, 0.08);
}

.coin-dropdown-item:hover {
    background: rgba(16, 185, 129, 0.2);
    color: var(--primary-emerald);
}

.quick-pairs {
    display: flex;
    gap: 6px;
}

.pill-pair {
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.pill-pair:hover, .pill-pair.active {
    background: rgba(16, 185, 129, 0.25);
    color: #fff;
    border-color: var(--primary-emerald);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.tf-selector {
    display: flex;
    background: rgba(0, 0, 0, 0.4);
    padding: 2px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.tf-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
}

.tf-btn.active {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #040806;
    font-weight: 800;
}

.coin-summary-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border-color);
    font-family: var(--font-mono);
}

.summary-item {
    display: flex;
    flex-direction: column;
}

.summary-item .label {
    font-size: 10px;
    color: var(--text-muted);
}

.summary-item .value {
    font-size: 13px;
    font-weight: 600;
}

.main-price .value {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary-emerald);
}

.badge-signal {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px !important;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.1);
}

.badge-signal.long {
    background: rgba(16, 185, 129, 0.25);
    color: var(--color-green);
    border: 1px solid var(--color-green);
}

.badge-signal.short {
    background: rgba(244, 63, 94, 0.25);
    color: var(--color-red);
    border: 1px solid var(--color-red);
}

.chart-container {
    flex: 1;
    position: relative;
    width: 100%;
    height: 100%;
    background: rgba(4, 8, 6, 0.85);
}

#trading-chart {
    width: 100%;
    height: 100%;
    display: block;
}

.chart-overlay-info {
    position: absolute;
    top: 10px;
    left: 15px;
    display: flex;
    gap: 15px;
    font-size: 11px;
    font-family: var(--font-mono);
    pointer-events: none;
}

.live-realtime-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    color: var(--primary-emerald);
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    padding: 2px 8px;
    border-radius: 4px;
}

.ema20-label { color: var(--primary-cyan); }
.ema50-label { color: #a855f7; }
.rsi-label { color: var(--color-yellow); }

.chart-loading {
    position: absolute;
    inset: 0;
    background: rgba(4, 8, 6, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--primary-emerald);
    font-size: 14px;
    font-family: var(--font-heading);
}

/* CHAT PANEL */
.chat-panel {
    grid-column: 2;
    grid-row: 1 / span 2;
}

.ai-mode-badge {
    font-size: 10px;
    font-family: var(--font-mono);
    color: var(--color-green);
    display: flex;
    align-items: center;
    gap: 6px;
}

.quick-prompts {
    display: flex;
    gap: 6px;
    padding: 10px 12px;
    overflow-x: auto;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.25);
}

.quick-prompts::-webkit-scrollbar { display: none; }

.prompt-pill {
    white-space: nowrap;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.prompt-pill:hover {
    background: rgba(16, 185, 129, 0.2);
    color: #fff;
    border-color: var(--primary-emerald);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message {
    display: flex;
    gap: 12px;
    max-width: 95%;
}

.message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.msg-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #00f2fe 100%);
    color: #040806;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
    overflow: hidden;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.message.user .msg-avatar {
    background: linear-gradient(135deg, #059669, #34d399);
    color: #fff;
}

.msg-content {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.5;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.message.user .msg-content {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.35);
}

.msg-header {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-emerald);
    margin-bottom: 4px;
    font-family: var(--font-heading);
}

.chat-uploaded-img {
    max-width: 100%;
    max-height: 220px;
    border-radius: var(--radius-md);
    border: 1px solid var(--primary-emerald);
    margin-top: 8px;
    display: block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* SIGNAL CARD STYLING INSIDE CHAT */
.signal-card {
    background: rgba(8, 20, 15, 0.95);
    border: 1px solid var(--primary-emerald);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-top: 10px;
    font-family: var(--font-mono);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.signal-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.signal-pair { font-size: 14px; font-weight: 800; color: #fff; }
.signal-action {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
}
.signal-action.long { background: var(--color-green); color: #040806; }
.signal-action.short { background: var(--color-red); color: #fff; }

.signal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 12px;
}

.signal-field .val { font-weight: 700; }
.text-green { color: var(--color-green); }
.text-red { color: var(--color-red); }
.text-cyan { color: var(--primary-cyan); }

/* ATTACHED IMAGE PREVIEW BAR */
.image-preview-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: rgba(16, 185, 129, 0.1);
    border-top: 1px solid var(--border-color);
}

.img-preview-thumb {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--primary-emerald);
}

.img-preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-preview-name {
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-remove-img {
    background: transparent;
    border: none;
    color: var(--color-red);
    font-size: 14px;
    cursor: pointer;
}

/* CHAT INPUT FORM */
.chat-input-container {
    padding: 12px;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.4);
}

#chat-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-attach {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--border-color);
    color: var(--primary-emerald);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-attach:hover {
    background: rgba(16, 185, 129, 0.25);
    border-color: var(--primary-emerald);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

#chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 13px;
}

#chat-input:focus {
    outline: none;
    border-color: var(--primary-emerald);
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.3);
}

.btn-send {
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #00f2fe 100%);
    border: none;
    color: #040806;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 15px;
    transition: transform 0.2s ease;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.btn-send:hover {
    transform: scale(1.05);
}

/* BOTTOM PANEL (RADAR & CALCULATOR) */
.bottom-panel {
    grid-column: 1;
    grid-row: 2;
}

.tabs {
    display: flex;
    gap: 8px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background: rgba(16, 185, 129, 0.2);
    color: var(--primary-emerald);
    border: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #00f2fe 100%);
    border: none;
    color: #040806;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

.tab-content {
    display: none;
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
}

.tab-content.active {
    display: flex;
    flex-direction: column;
}

.scanner-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.filter-btn {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 11px;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.filter-btn.active {
    background: var(--primary-emerald);
    color: #040806;
    font-weight: 800;
}

.table-responsive {
    flex: 1;
    overflow-y: auto;
}

.scanner-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    font-family: var(--font-mono);
    text-align: left;
}

.scanner-table th {
    background: rgba(0, 0, 0, 0.5);
    color: var(--text-muted);
    padding: 8px 12px;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
}

.scanner-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(16, 185, 129, 0.08);
}

.scanner-table tr:hover {
    background: rgba(16, 185, 129, 0.1);
}

.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 30px !important;
}

/* CALCULATOR STYLING */
.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 10px;
}

.calc-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group label {
    font-size: 11px;
    color: var(--text-muted);
}

.form-group input {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 13px;
}

.calc-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.calc-card {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.calc-card-title {
    font-size: 11px;
    color: var(--text-muted);
}

.calc-card-value {
    font-size: 20px;
    font-weight: 800;
    font-family: var(--font-mono);
}

.hidden { display: none !important; }

/* RESPONSIVE DESIGN FOR LANDING & APP */
@media (max-width: 1200px) {
    .hero-title { font-size: 38px; }
    .features-grid { grid-template-columns: 1fr; }
    .showcase-container { grid-template-columns: 1fr; }
    .hero-stats { flex-direction: column; gap: 15px; }
    .stat-divider { display: none; }
    
    .terminal-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        overflow-y: auto;
    }
    
    .app-wrapper {
        height: auto;
    }
    
    .chat-panel {
        grid-column: 1;
        grid-row: 2;
        height: 520px;
    }
    
    .bottom-panel {
        grid-column: 1;
        grid-row: 3;
        height: 450px;
    }
}
