@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;600;700&family=Source_Code_Pro:wght@400;600&display=swap');

:root {
    /* Nother Network Prime Cybernetic Palette */
    --bg-deep: #020305;
    --st-orange: #FF6B00;
    --st-orange-dim: #FF851A;
    --st-orange-glow: rgba(255, 107, 0, 0.45);
    --st-amber: #FFAA00;
    --st-amber-glow: rgba(255, 170, 0, 0.4);
    --st-violet: #a855f7;
    --st-violet-glow: rgba(168, 85, 247, 0.45);
    --st-purple-deep: #7C3AED;
    --st-cyan: #00f0ff;
    --st-cyan-dim: #06b6d4;
    --st-cyan-glow: rgba(0, 240, 255, 0.35);
    --st-pink: #f43f5e;
    --st-pink-glow: rgba(244, 63, 94, 0.45);
    --st-emerald: #10b981;
    --st-emerald-glow: rgba(16, 185, 129, 0.45);
    --st-gold: #f59e0b;
    --st-gold-glow: rgba(245, 158, 11, 0.45);

    --glass-panel: rgba(12, 10, 18, 0.84);
    --glass-border: rgba(255, 107, 0, 0.22);
    --glass-border-hover: rgba(255, 133, 26, 0.48);

    --neon-orange: #FF6B00;
    --neon-amber: #FFAA00;
    --neon-blue: #00f0ff;
    --neon-purple: #c084fc;
    --neon-pink: #f472b6;
}

/* ==========================================================================
   GLOBAL THEME: NOTHER NETWORK OBSIDIAN & ELECTRIC PURPLE/ORANGE
   ========================================================================== */

.adtarah-theme {
    font-family: 'Inter', sans-serif !important;
    background-color: #020305 !important;
    color: #ffffff !important;
    /* Multi-layered dark orange and purplish deep space gradient */
    background-image:
        radial-gradient(circle at 65% -10%, rgba(255, 107, 0, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 5% 45%, rgba(168, 85, 247, 0.13) 0%, transparent 55%),
        radial-gradient(circle at 95% 85%, rgba(255, 107, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 110%, rgba(147, 51, 234, 0.08) 0%, transparent 50%),
        linear-gradient(165deg, #070810 0%, #020305 100%) !important;
    min-height: 100vh;
    background-attachment: fixed !important;
}

.font-mono {
    font-family: 'JetBrains Mono', 'Source Code Pro', monospace;
}

/* ==========================================================================
   3D ICONS RECOLORING PIPELINE (CSS FILTERS)
   Alters original metallic gold into Electric Cyan, Cyber Violet, & Neon Pink
   ========================================================================== */

.st-icon {
    display: inline-block;
    vertical-align: middle;
    object-fit: contain;
    flex-shrink: 0;
    pointer-events: none;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    /* Default: Electric Cyber Cyan (Hue shifted ~160deg from Gold) */
    filter: hue-rotate(160deg) saturate(1.35) brightness(1.08) drop-shadow(0 2px 8px rgba(6, 182, 212, 0.4));
}

/* Color Shift Variants */
.st-icon-cyan {
    filter: hue-rotate(160deg) saturate(1.35) brightness(1.08) drop-shadow(0 2px 8px rgba(6, 182, 212, 0.45));
}

.st-icon-violet {
    filter: hue-rotate(240deg) saturate(1.4) brightness(1.1) drop-shadow(0 2px 8px rgba(168, 85, 247, 0.45));
}

.st-icon-pink {
    filter: hue-rotate(285deg) saturate(1.45) brightness(1.12) drop-shadow(0 2px 8px rgba(244, 63, 94, 0.45));
}

.st-icon-emerald {
    filter: hue-rotate(85deg) saturate(1.35) brightness(1.05) drop-shadow(0 2px 8px rgba(16, 185, 129, 0.45));
}

.st-icon-gold {
    filter: saturate(1.1) brightness(1.05) drop-shadow(0 2px 8px rgba(245, 158, 11, 0.45));
}

/* Sizing Utilities */
.st-icon-xs {
    width: 18px;
    height: 18px;
}

.st-icon-sm {
    width: 22px;
    height: 22px;
}

.st-icon-md {
    width: 26px;
    height: 26px;
}

.st-icon-lg {
    width: 32px;
    height: 32px;
}

.st-icon-xl {
    width: 40px;
    height: 40px;
}

/* Glowing Holographic Hover & Active States */
.st-icon:hover,
.group:hover .st-icon,
.group:hover .st-icon-cyan,
.nav-item:hover .st-icon,
.nav-item:hover .st-icon-cyan,
.nav-item.active .st-icon,
.nav-item.active .st-icon-cyan {
    transform: scale(1.1) translateY(-1px);
    filter: hue-rotate(160deg) saturate(1.75) brightness(1.25) drop-shadow(0 0 14px rgba(0, 240, 255, 0.85));
}

.group:hover .st-icon-violet,
.nav-item:hover .st-icon-violet,
.nav-item.active .st-icon-violet {
    transform: scale(1.1) translateY(-1px);
    filter: hue-rotate(240deg) saturate(1.8) brightness(1.28) drop-shadow(0 0 14px rgba(168, 85, 247, 0.85));
}

.group:hover .st-icon-pink,
.nav-item:hover .st-icon-pink,
.nav-item.active .st-icon-pink {
    transform: scale(1.1) translateY(-1px);
    filter: hue-rotate(285deg) saturate(1.85) brightness(1.3) drop-shadow(0 0 14px rgba(244, 63, 94, 0.85));
}

.group:hover .st-icon-emerald,
.nav-item:hover .st-icon-emerald,
.nav-item.active .st-icon-emerald {
    transform: scale(1.1) translateY(-1px);
    filter: hue-rotate(85deg) saturate(1.75) brightness(1.22) drop-shadow(0 0 14px rgba(16, 185, 129, 0.85));
}

/* ==========================================================================
   GLASS CARD COMPONENT (Holographic Obsidian & Cyan Sheen)
   ========================================================================== */

.glass-card {
    background:
        linear-gradient(135deg, rgba(56, 189, 248, 0.05) 0%, rgba(168, 85, 247, 0.02) 50%, rgba(0, 0, 0, 0.4) 100%),
        rgba(8, 14, 30, 0.72);
    backdrop-filter: blur(24px) saturate(130%);
    -webkit-backdrop-filter: blur(24px) saturate(130%);

    /* Edge Highlights */
    border-top: 1px solid rgba(56, 189, 248, 0.3);
    border-left: 1px solid rgba(56, 189, 248, 0.12);
    border-right: 1px solid rgba(168, 85, 247, 0.12);
    border-bottom: 1px solid rgba(0, 0, 0, 0.6);

    border-radius: 16px;
    box-shadow:
        0 20px 45px -8px rgba(0, 0, 0, 0.85),
        0 0 1px 0 rgba(56, 189, 248, 0.2) inset,
        0 1px 0 0 rgba(255, 255, 255, 0.08) inset;

    transition: all 0.38s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.08), rgba(168, 85, 247, 0.08), transparent);
    transform: skewX(-25deg);
    transition: 0.6s;
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-3px) scale(1.004);
    background:
        linear-gradient(135deg, rgba(56, 189, 248, 0.09) 0%, rgba(168, 85, 247, 0.04) 50%, rgba(0, 0, 0, 0.5) 100%),
        rgba(10, 18, 40, 0.8);
    border-top-color: rgba(0, 240, 255, 0.55);
    box-shadow:
        0 28px 60px -12px rgba(0, 0, 0, 0.95),
        0 0 25px rgba(6, 182, 212, 0.18),
        0 0 1px 0 rgba(0, 240, 255, 0.35) inset;
}

.glass-card:hover::before {
    left: 150%;
    transition: 1s;
}

/* ==========================================================================
   NAVIGATION & SIDEBAR STYLING
   ========================================================================== */

.nav-item {
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    color: #94a3b8;
}

.nav-item:hover {
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.08) 0%, rgba(168, 85, 247, 0.03) 100%);
    border: 1px solid rgba(56, 189, 248, 0.15);
    color: #ffffff;
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.16) 0%, rgba(168, 85, 247, 0.05) 100%);
    border-left: 3px solid var(--st-cyan) !important;
    border-top: 1px solid rgba(56, 189, 248, 0.2);
    color: #ffffff;
    padding-left: 13px;
    box-shadow: 0 4px 16px rgba(0, 240, 255, 0.15);
}

.nav-item.active span {
    color: #ffffff;
    font-weight: 700;
}

/* ==========================================================================
   INPUTS & BUTTONS
   ========================================================================== */

input,
textarea,
select {
    background: #040814 !important;
    border: 1px solid rgba(56, 189, 248, 0.18) !important;
    color: #ffffff !important;
    border-radius: 12px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.85);
    transition: all 0.25s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--st-cyan) !important;
    background: #060c20 !important;
    box-shadow:
        0 0 0 2px rgba(6, 182, 212, 0.35),
        0 0 20px rgba(6, 182, 212, 0.2) !important;
}

/* ==========================================================================
   MOBILE LAYOUT LOCK & NAVIGATION (The Fix)
   ========================================================================== */

@media (max-width: 768px) {

    /* 1. LOCK THE BODY */
    html,
    body.adtarah-theme,
    body {
        height: 100dvh !important;
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
        background-attachment: scroll !important;
    }

    /* 2. ABSOLUTE MAIN CONTAINER */
    main,
    .locked-main {
        position: absolute !important;
        top: 56px !important;
        bottom: calc(64px + env(safe-area-inset-bottom)) !important;
        left: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        overflow: hidden !important;
    }

    /* 3. SCROLLABLE INNER CONTAINER */
    #main-scroll,
    .scroll-container {
        height: 100%;
        overflow-y: auto;
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
    }

    /* 4. PREMIUM BOTTOM NAV */
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 9999 !important;
        padding-bottom: env(safe-area-inset-bottom);

        background:
            linear-gradient(180deg, rgba(10, 18, 38, 0.92) 0%, rgba(4, 7, 18, 0.98) 100%) !important;
        backdrop-filter: blur(24px) saturate(140%) !important;
        border-top: 1px solid rgba(56, 189, 248, 0.25) !important;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(56, 189, 248, 0.1) !important;
    }

    .mobile-bottom-nav a,
    .mobile-bottom-nav button {
        position: relative;
        color: #94a3b8;
        transition: all 0.25s ease;
    }

    .mobile-bottom-nav a.active,
    .mobile-bottom-nav button.active {
        color: #ffffff;
        text-shadow: 0 0 12px rgba(0, 240, 255, 0.65);
    }

    .mobile-bottom-nav a.active::after,
    .mobile-bottom-nav button.active::after {
        content: '';
        position: absolute;
        top: 5px;
        right: 35%;
        width: 4px;
        height: 4px;
        background: var(--st-cyan);
        border-radius: 50%;
        box-shadow: 0 0 10px var(--st-cyan);
    }
}

/* ==========================================================================
   SCROLLBAR
   ========================================================================== */

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.25);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 240, 255, 0.55);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

.fade-in {
    animation: fadeIn 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.slide-up {
    animation: slideUp 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    transform: translateY(20px);
    opacity: 0;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}