/* GLOBAL RESET & APP LOCK */
:root { 
    --green: #1fff87; 
    --purple: #8126ff; 
    --purple-glow: #a044ff; 
    --bg-black: #07030a; 
    --nav-bg: rgba(13, 8, 22, 0.90);
    --nav-height: 85px;
    --border: rgba(160, 68, 255, 0.15);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100vh; 
    background: var(--bg-black); 
    color: #fff; 
    font-family: "Inter", sans-serif; 
    overflow: hidden; /* Prevents double scrollbars */
    -webkit-user-select: none;
    user-select: none;
}

/* --- HEADER DESIGN --- */
header {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 0 50px; 
    height: var(--nav-height); 
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border); 
    z-index: 9999;
    position: relative;
}

.toplogo { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    flex: 1; 
}

.toplogo img { 
    height: 50px; width: 50px; 
    border-radius: 50%; 
    border: 2px solid var(--green);
    box-shadow: 0 0 15px rgba(31, 255, 135, 0.2);
}

.toplogo h1 { 
    font-family: 'Rajdhani', sans-serif; 
    font-size: 1.5rem; 
    font-weight: 800;
    letter-spacing: 2px;
}
.toplogo h1 span { color: var(--purple-glow); }

/* --- NAVIGATION --- */
nav { flex: 2; display: flex; justify-content: center; }
.nav-list { list-style: none; display: flex; gap: 10px; }

.nav-link {
    text-decoration: none; 
    color: #8a81ad; 
    font-weight: 800; 
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    padding: 12px 24px; 
    border-radius: 12px; 
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
}

.nav-link.active {
    color: var(--green);
    background: rgba(31, 255, 135, 0.08);
    border: 1px solid rgba(31, 255, 135, 0.2);
    box-shadow: 0 0 20px rgba(31, 255, 135, 0.05);
}

/* --- STATUS CONTAINER --- */
.header-spacer { flex: 1; display: flex; justify-content: flex-end; }
.status-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(129, 38, 255, 0.1);
    padding: 10px 18px;
    border-radius: 50px;
    text-decoration: none;
    border: 1px solid var(--purple-glow);
    transition: 0.3s;
}

.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
.status-text { font-family: 'Rajdhani'; font-weight: 800; font-size: 0.7rem; color: #fff; letter-spacing: 1px; }

/* --- IFRAME AREA --- */
main { 
    width: 100%; 
    height: calc(100vh - var(--nav-height)); 
    background: #000;
}
iframe { width: 100%; height: 100%; border: none; }

/* --- MOBILE OPTIMIZATION --- */
@media (max-width: 850px) {
    header {
        padding: 0 20px;
        height: 70px;
    }

    /* Logic: Hide non-essential links for mobile thumb-navigation */
    .desktop-only { display: none !important; }

    .toplogo h1 { font-size: 1.1rem; }
    .toplogo img { height: 38px; width: 38px; }

    .status-text { display: none; }
    .status-container { padding: 10px; border-radius: 50%; }

    /* MOVE NAV TO BOTTOM DOCK (App Style) */
    nav {
        position: fixed;
        bottom: 0; left: 0;
        width: 100%;
        height: 75px;
        background: rgba(10, 5, 18, 0.98);
        backdrop-filter: blur(20px);
        border-top: 1px solid var(--border);
        padding: 0 10px;
        z-index: 10000;
        flex: none;
        display: flex;
        align-items: center;
    }

    .nav-list {
        width: 100%;
        justify-content: space-around;
        gap: 0;
    }

    .nav-link {
        font-size: 0.65rem;
        padding: 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        border-radius: 10px;
        background: transparent;
    }

    /* Adjust main height to make room for bottom dock */
    main {
        height: calc(100vh - 145px); 
    }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(31, 255, 135, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(31, 255, 135, 0); }
    100% { box-shadow: 0 0 0 0 rgba(31, 255, 135, 0); }
}