======= ==================== BASE ==================== */
body {
    font-family: 'Inter', sans-serif;
    background-color: #020617;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
}

code, pre, .font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* ==================== NAVIGATION ==================== */
.nav-link {
    color: #94a3b8;
    font-size: 0.875rem;
    font-weight: 500;
}
.nav-link:hover {
    color: #22d3ee;
    background: rgba(15, 23, 42, 0.5);
}
.nav-link.active {
    color: #22d3ee;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.2);
}

/* ==================== STAT CARDS ==================== */
.stat-card {
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

/* ==================== LOADING PULSE ==================== */
@keyframes pulse-slow {
    0%, 100% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.2); opacity: 0.05; }
}
.animate-ping-slow {
    animation: pulse-slow 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* ==================== GRADIENT TEXT PULSE ==================== */
@keyframes gradient-pulse {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.gradient-text-pulse {
    background: linear-gradient(90deg, #22d3ee, #3b82f6, #8b5cf6, #22d3ee);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-pulse 3s linear infinite;
}

/* ==================== MEMORY CARDS ==================== */
.memory-card {
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.memory-card:hover {
    border-color: rgba(34, 211, 238, 0.4);
    transform: translateY(-3px);
}
.memory-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.05), transparent);
    transition: 0.5s;
}
.memory-card:hover::before {
    left: 100%;
}

.mem-status {
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    text-transform: uppercase;
}
.mem-status.active {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}
.mem-status.inactive {
    background: rgba(100, 116, 139, 0.15);
    color: #94a3b8;
    border: 1px solid rgba(100, 116, 139, 0.3);
}

/* Memory bar animation */
@keyframes mem-bar-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(34, 211, 238, 0.3); }
    50% { box-shadow: 0 0 15px rgba(34, 211, 238, 0.6); }
}
.mem-bar {
    animation: mem-bar-glow 2s ease-in-out infinite;
}

/* ==================== FAMILY CARDS ==================== */
.family-card {
    background: rgba(15, 23, 42, 0.5);
    transition: all 0.3s ease;
}
.family-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

/* ==================== HOLOGRAM ==================== */
.hologram-floor {
    background: radial-gradient(ellipse at center, rgba(34, 211, 238, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    box-shadow: 0 0 80px rgba(34, 211, 238, 0.15);
    animation: holo-floor 4s ease-in-out infinite;
}

@keyframes holo-floor {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.95); }
}

.hologram-base {
    background: radial-gradient(ellipse at center, rgba(34, 211, 238, 0.3) 0%, transparent 60%);
    border-radius: 50%;
    filter: blur(8px);
    animation: holo-base 3s ease-in-out infinite;
}
@keyframes holo-base {
    0%, 100% { opacity: 0.6; width: 18rem; }
    50% { opacity: 1; width: 16rem; }
}

/* ==================== FLOW ARROWS ==================== */
.flow-arrow {
    animation: arrow-pulse 1.5s ease-in-out infinite;
}
@keyframes arrow-pulse {
    0%, 100% { opacity: 0.4; transform: translateX(-5px); }
    50% { opacity: 1; transform: translateX(5px); }
}

/* ==================== CHAT ==================== */
.chat-bubble {
    max-width: 85%;
    border-radius: 18px;
    padding: 12px 18px;
    font-size: 14px;
    line-height: 1.6;
    border: 1px solid rgba(51, 65, 85, 0.3);
    animation: chat-appear 0.3s ease;
}
@keyframes chat-appear {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.chat-bubble.user {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(59, 130, 246, 0.08));
    border-color: rgba(34, 211, 238, 0.2);
}
.chat-bubble.bot {
    background: rgba(30, 41, 59, 0.5);
}

/* ==================== TYPING DOTS ==================== */
.typing-dot {
    animation: typing-bounce 1s infinite;
}
@keyframes typing-bounce {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(-6px); opacity: 1; }
}

/* ==================== ACTIVITY FEED ==================== */
.activity-item {
    animation: activity-slide 0.4s ease;
}
@keyframes activity-slide {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #475569;
}
.custom-scroll::-webkit-scrollbar {
    width: 4px;
}
.custom-scroll::-webkit-scrollbar-thumb {
    background: rgba(34, 211, 238, 0.3);
    border-radius: 4px;
}

/* ==================== MOBILE ==================== */
@media (max-width: 768px) {
    #sidebar.active {
        transform: translateX(0);
    }
    #sidebar-overlay.active {
        display: block;
    }
}