
        * {
            box-sizing: border-box;
        }

        body {
            background-color: #000;
            color: #d1d1d1;
            font-family: 'Geist Mono', monospace;
            margin: 0;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 13px;
            overflow-x: hidden;
            user-select: none;
        }


        body::before {
            content: '';
            position: fixed;
            inset: 0;
            background: repeating-linear-gradient(to bottom,
                    transparent 0px,
                    transparent 2px,
                    rgba(0, 0, 0, 0.08) 2px,
                    rgba(0, 0, 0, 0.08) 4px);
            pointer-events: none;
            z-index: 9999;
        }

        body::after {
            content: '';
            position: fixed;
            inset: 0;
            background: radial-gradient(ellipse at center, transparent 60%, rgba(0, 0, 0, 0.55) 100%);
            pointer-events: none;
            z-index: 9998;
        }

        #grid-canvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            pointer-events: none;
            opacity: 0.35;
        }


        #main-ui {
            width: 100%;
            max-width: 650px;
            padding: 40px 20px;
            opacity: 0;
            transform: translateY(8px);
            transition: opacity 0.5s ease, transform 0.5s ease;
            will-change: transform, opacity;
        }

        body.page-loaded #main-ui {
            opacity: 1;
            transform: translateY(0);
        }

        .notes-list {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .note-item {
            display: flex;
            gap: 15px;
            line-height: 1.5;
        }

        .note-date {
            color: #444;
            flex-shrink: 0;
            white-space: nowrap;
        }

        .note-content {
            color: #d1d1d1;
        }

        .note-content::before {
            content: '"';
        }

        .note-content::after {
            content: '"';
        }

        .bottom-nav {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    padding: 8px;
    display: flex;
    gap: 5px;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}

body.page-loaded .bottom-nav {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.nav-item {
    color: #888;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 50px;
    transition: all 0.3s;
    cursor: pointer;
}

.nav-item:hover,
.nav-item.active {
    color: #fff;
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.08);
}

        .nav-item.active {
            background: rgba(255, 255, 255, 0.08);
        }

        #discord-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(4px);
            z-index: 2000;
            align-items: center;
            justify-content: center;
            animation: fadeIn 0.3s ease;
        }

        .modal-content {
            position: relative;
            width: 600px;
            max-width: calc(100% - 40px);
            border-radius: 18px;
            overflow: hidden;
            background: rgba(10, 10, 10, 0.98);
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85);
        }

        .presence-panel {
            display: flex;
            flex-direction: column;
            gap: 20px;
            padding: 28px;
            color: #e6e6e6;
        }

        .presence-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .presence-row {
            display: flex;
            gap: 18px;
            align-items: center;
        }

        .presence-avatar-wrapper {
            width: 74px;
            height: 74px;
            border-radius: 20px;
            background: #5865f2;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        }

        .presence-avatar {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .presence-info {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .presence-handle {
            font-size: 16px;
            color: #ffffff;
            font-weight: 700;
        }

        .presence-status-row {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .presence-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #43b581;
            display: inline-block;
        }

        .presence-status {
            font-size: 12px;
            color: #888888;
        }

        .presence-close {
            padding: 8px 18px;
            border-radius: 999px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            background: rgba(255, 255, 255, 0.05);
            color: #f4f4f4;
            cursor: pointer;
            font-size: 12px;
            transition: background 0.2s ease, transform 0.2s ease;
        }

        .presence-close:hover {
            background: rgba(255, 255, 255, 0.12);
            transform: translateY(-1px);
        }

        .presence-card {
            display: flex;
            gap: 24px;
            align-items: stretch;
            background: transparent;
            border: none;
            padding: 0;
            margin-top: 4px;
        }

        .presence-card-art {
            flex: 1 1 50%;
            border-radius: 16px;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
            border: 1px solid rgba(255, 255, 255, 0.05);
            padding: 24px;
            display: flex;
            flex-direction: column;
            gap: 8px;
            justify-content: center;
            min-height: 120px;
            box-sizing: border-box;
            position: relative;
            overflow: hidden;
        }

        .presence-card-label {
            font-size: 10px;
            color: #888888;
            letter-spacing: 0.15em;
            font-weight: 700;
        }

        .presence-card-title {
            font-size: 16px;
            font-weight: 700;
            color: #ffffff;
            line-height: 1.3;
        }

        .presence-card-subtitle {
            font-size: 12px;
            color: #888888;
        }

        .presence-card-meta {
            flex: 1 1 50%;
            display: flex;
            flex-direction: column;
            gap: 12px;
            justify-content: center;
            padding: 0 10px;
        }

        .presence-meta-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid rgba(255, 255, 255, 0.03);
            padding-bottom: 8px;
            color: #dddddd;
            font-size: 12px;
        }

        .presence-meta-row:last-child {
            border-bottom: none;
            padding-bottom: 0;
        }

        .presence-meta-label {
            font-size: 11px;
            color: #666666;
            letter-spacing: 0.05em;
            font-weight: 600;
        }

        iframe {
            width: 100%;
            height: 100%;
            border: none;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: scale(0.95);
            }

            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        @keyframes glitch-out {
            0% {
                opacity: 1;
                transform: none;
                filter: none;
            }

            15% {
                opacity: 1;
                transform: skewX(-3deg);
                filter: brightness(1.5);
            }

            20% {
                opacity: 0.8;
                transform: translateX(-4px) skewX(2deg);
                filter: hue-rotate(90deg) brightness(2);
            }

            25% {
                opacity: 1;
                transform: translateX(4px);
                filter: none;
            }

            30% {
                opacity: 0.6;
                transform: skewX(-5deg);
                filter: hue-rotate(-90deg);
            }

            40% {
                opacity: 0;
                transform: translateY(3px);
                filter: blur(2px);
            }

            100% {
                opacity: 0;
            }
        }

        body.glitch-exit #main-ui,
        body.glitch-exit .terminal-window {
            animation: glitch-out 1s forwards;
        }

        .loading-text {
            color: #444;
            font-style: italic;
        }

        /* --- Linux Terminal Windows Styles --- */
        .terminal-window {
            background: rgba(18, 19, 21, 0.85);
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 1px rgba(255, 255, 255, 0.1) inset;
            border-radius: 8px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            width: 360px;
            height: 250px;
            position: fixed;
            z-index: 10;
            opacity: 0;
            transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s ease, box-shadow 0.3s ease;
        }

        .top-left-win {
            top: 40px;
            left: 40px;
        }

        .bottom-right-win {
            bottom: 120px;
            right: 40px;
        }

        body.page-loaded .top-left-win {
            animation: glitch-intro 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s both;
        }

        body.page-loaded .bottom-right-win {
            animation: glitch-intro 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.25s both;
        }

        .terminal-window:hover {
            transform: scale(1.02) translateY(-2px);
            border-color: rgba(255, 255, 255, 0.2);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 255, 255, 0.05);
        }

        .terminal-header {
            background: #18191c;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            padding: 8px 12px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .terminal-dots {
            display: flex;
            gap: 6px;
        }

        .terminal-dots .dot {
            width: 9px;
            height: 9px;
            border-radius: 50%;
            display: inline-block;
        }

        .dot.red { background-color: #e2e0e0; }
        .dot.yellow { background-color: #000000; }
        .dot.green { background-color: #ffffff; }

        .terminal-title {
            font-size: 11px;
            color: #6a6f73;
            font-family: 'Geist Mono', monospace;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            user-select: none;
        }

        .terminal-body {
            flex: 1;
            background: #0f1012;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            position: relative;
        }

        .terminal-body img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            opacity: 0.85;
            filter: brightness(0.9) contrast(1.15) grayscale(0.1);
            transition: opacity 0.3s ease, filter 0.3s ease;
        }

        .terminal-window:hover .terminal-body img {
            opacity: 1;
            filter: brightness(1) contrast(1) grayscale(0);
        }

        @keyframes glitch-intro {
            0% {
                opacity: 0;
                transform: translate(-10px, -5px) skewX(5deg);
                filter: hue-rotate(90deg) brightness(1.5);
            }
            30% {
                opacity: 0.8;
                transform: translate(5px, 2px) skewX(-3deg);
                filter: brightness(2);
            }
            60% {
                opacity: 0.4;
                transform: translate(-2px, -1px) skewX(2deg);
                filter: brightness(1.2);
            }
            80% {
                opacity: 0.9;
                transform: translate(1px, 1px) skewX(-1deg);
                filter: none;
            }
            100% {
                opacity: 1;
                transform: translate(0, 0) skewX(0);
                filter: none;
            }
        }

        @media (max-width: 1024px) {
            body {
                display: flex !important;
                flex-direction: column !important;
                justify-content: flex-start !important;
                align-items: center !important;
                height: auto !important;
                min-height: 100vh !important;
                padding-top: 40px !important;
                padding-bottom: 120px !important;
            }

            .terminal-window {
                display: none !important;
            }
            
            #main-ui {
                padding-top: 20px !important;
                padding-bottom: 20px !important;
            }
        }

        @media (max-width: 600px) {
            .bottom-nav {
                bottom: 20px;
                padding: 6px;
                gap: 2px;
                width: calc(100% - 24px);
                max-width: 380px;
                justify-content: space-between;
            }

            .nav-item {
                padding: 6px 10px;
                font-size: 11px;
            }

            .note-item {
                flex-direction: column;
                gap: 4px;
                border-bottom: 1px solid rgba(255, 255, 255, 0.03);
                padding-bottom: 10px;
            }

            .note-date {
                font-size: 11px;
            }
        }
    

/* Mobile Nav Fix */
@media (max-width: 600px) {
    .bottom-nav {
        bottom: 20px !important;
        padding: 6px !important;
        gap: 2px !important;
        width: calc(100% - 24px) !important;
        max-width: 380px !important;
        justify-content: space-between !important;
        left: 50% !important;
        transform: translateX(-50%) translateY(0) !important;
    }
    .nav-item {
        padding: 6px 10px !important;
        font-size: 11px !important;
    }
}
