/*
  AYAN AI HUB - ULTIMATE CYBERPUNK ENGINE
  Version: 2.6.5-PRO | Optimized Layout Fix
*/

:root {
    --bg-color: #060912;
    --card-bg: rgba(17, 24, 39, 0.75);
    --accent-purple: #8b5cf6;
    --neon-blue: #00d4ff;
    --text-muted: #94a3b8;
    --glass-border: rgba(139, 92, 246, 0.25);
    --gradient-cyber: linear-gradient(135deg, #8b5cf6, #6366f1);
    --glow-purple: 0 0 20px rgba(139, 92, 246, 0.3);
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: var(--accent-purple); border-radius: 10px; }

body {
    background: var(--bg-color);
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-image: radial-gradient(circle at 50% 50%, #1e1b4b 0%, #060912 80%);
    min-height: 100vh;
    margin: 0;
    padding: 0; /* Default padding reset */
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* --- RESPONSIVE SPACING LOGIC --- */
@media (max-width: 767px) {
    body {
        /* Mobile par bottom menu ki wajah se space zaroori hai */
        padding-bottom: 90px; 
    }
}

@media (min-width: 768px) {
    body {
        /* Desktop browser par extra space bilkul khatam */
        padding-bottom: 0px !important;
    }
}

/* --- UI COMPONENTS --- */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 25px;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-cyber {
    background: var(--gradient-cyber);
    color: white !important; border: none; font-weight: 800;
    padding: 14px 28px; border-radius: 16px;
    text-transform: uppercase; letter-spacing: 1px;
    transition: 0.3s; text-decoration: none;
    display: inline-block; width: 100%; text-align: center;
    box-shadow: var(--glow-purple);
}
.btn-cyber:hover { transform: translateY(-3px); filter: brightness(1.1); box-shadow: 0 10px 25px rgba(139, 92, 246, 0.6); }

.cyber-input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--glass-border) !important;
    color: white !important; border-radius: 15px !important;
    padding: 15px 20px !important;
    transition: 0.3s;
}
.cyber-input:focus { border-color: var(--neon-blue) !important; box-shadow: 0 0 15px rgba(0, 212, 255, 0.2) !important; }

/* --- HUD & NAVIGATION --- */
.smart-nav {
    background: rgba(6, 9, 18, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 12px 0;
    position: sticky; top: 0; z-index: 1000;
}

/* Mobile Bottom Bar Only */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: rgba(6, 9, 18, 0.96);
    backdrop-filter: blur(25px);
    border-top: 1px solid var(--glass-border);
    display: flex; justify-content: space-around;
    padding: 12px 0; z-index: 2000;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.6);
}

/* --- FOOTER STICKY FIX --- */
.smart-footer {
    margin-top: auto; /* Push footer to bottom on short pages */
    background: rgba(6, 9, 18, 0.98);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.nav-item-mobile {
    color: var(--text-muted); text-decoration: none;
    display: flex; flex-direction: column;
    align-items: center; font-size: 10px; font-weight: 800;
    text-transform: uppercase; transition: 0.3s;
}
.nav-item-mobile.active { color: var(--neon-blue); text-shadow: 0 0 10px var(--neon-blue); }
.nav-item-mobile i { font-size: 24px; margin-bottom: 3px; }

/* --- SIDEBAR --- */
.cyber-sidebar {
    background: rgba(6, 9, 18, 0.98) !important;
    backdrop-filter: blur(25px);
    border-right: 1px solid var(--glass-border) !important;
    width: 300px !important;
}

.sidebar-link {
    color: #94a3b8; text-decoration: none;
    padding: 12px 20px; display: flex; align-items: center; gap: 15px;
    transition: 0.3s; border-radius: 12px; margin: 5px 15px;
    font-size: 14px; font-weight: 700;
}
.sidebar-link:hover, .sidebar-link.active {
    background: rgba(139, 92, 246, 0.1); color: var(--neon-blue);
    border: 1px solid var(--glass-border);
}

/* --- NODES & STATS --- */
.node-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 22px; padding: 20px 10px;
    text-align: center; transition: 0.4s;
    text-decoration: none !important;
    display: flex; flex-direction: column; align-items: center;
    position: relative; overflow: hidden;
}
.node-card:hover { transform: translateY(-5px); border-color: var(--neon-blue); box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2); }