:root {
    --bg-dark: #0A0F1A;
    --card-bg: rgba(22, 28, 45, 0.7);
    --neon-blue: #38bdf8;
    --neon-cyan: #22d3ee;
    --neon-green: #00ff88;
    --neon-red: #ff4444;
    --neon-purple: #a855f7;
    --text-glow: 0 0 12px rgba(56, 189, 248, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: #f1f5f9;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    background-image: radial-gradient(circle at top right, rgba(56, 189, 248, 0.05), transparent 40%);
}

.app-container {
    width: 100%;
    max-width: 500px;
    background: rgba(10, 15, 26, 0.95);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(255,255,255,0.05);
    border-right: 1px solid rgba(255,255,255,0.05);
    position: relative;
    padding-top: 10px;
}

/* Tabs Logic - CRITICAL */
.tab-section {
    display: none;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab-section.active {
    display: block;
    opacity: 1;
}

/* Header */
.app-header {
    padding: 25px 20px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.app-header h1 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    text-shadow: var(--text-glow);
}

.update-badge {
    font-size: 0.7rem;
    color: var(--neon-cyan);
    font-weight: 600;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--neon-green);
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-green);
}

/* Profile Section */
.neon-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px 0 20px;
}

.avatar-glow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(var(--neon-blue), var(--neon-purple));
    margin-bottom: 10px;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #000;
    cursor: pointer;
}

.neon-profile h2 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.neon-text-blue {
    color: var(--neon-blue);
    font-size: 0.8rem;
}

/* Grid & Cards */
.neon-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.neon-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: 0.3s;
}

.neon-card:active {
    transform: scale(0.98);
    background: rgba(255,255,255,0.05);
}

.neon-icon {
    font-size: 1.5rem;
    background: rgba(255,255,255,0.03);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
}

.neon-info {
    flex: 1;
}

.neon-info h3 {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 4px;
}

.neon-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
}

.neon-value.pos { color: var(--neon-green); text-shadow: 0 0 8px rgba(0,255,136,0.3); }
.neon-value.neg { color: var(--neon-red); text-shadow: 0 0 8px rgba(255,68,68,0.3); }
.neon-value.price { color: #facc15; }

/* Economic Intelligence */
.intelligence-header {
    text-align: center;
    margin-bottom: 25px;
}

.ai-orb {
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, var(--neon-cyan), transparent);
    border-radius: 50%;
    margin: 0 auto 10px;
    box-shadow: 0 0 30px var(--neon-cyan);
}

.neon-report {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 24px;
    padding: 20px;
    line-height: 1.8;
}

.report-title {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--neon-cyan);
    margin: 20px 0 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}

.decision-item {
    padding: 12px 15px;
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.text-buy { color: var(--neon-green) !important; font-weight: 700; }
.text-sell { color: var(--neon-red) !important; font-weight: 700; }
.text-luminous { color: #fff; font-family: 'Orbitron', sans-serif; }

/* Navigation */
.bottom-nav {
    margin-top: auto;
    height: 80px;
    background: rgba(15, 23, 42, 0.9);
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.nav-item {
    background: none;
    border: none;
    color: #64748b;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 700;
    gap: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.nav-item.active {
    color: var(--neon-cyan);
}

.nav-icon {
    font-size: 1.5rem;
}

/* Helper */
.hidden { display: none !important; }

@media (max-width: 500px) {
    .app-container { border: none; }
}
