/*
 * NeuralOS - Ultra Modern Design System
 * Clean, Minimal, Professional
 */

/* ═══════════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════════ */
:root {
    /* Refined Dark Theme */
    --bg-deep: #08090d;
    --bg-elevated: #0f1117;
    --bg-surface: #161922;
    --bg-hover: #1c2029;
    --bg-active: #22262f;
    
    /* Accent - Single refined cyan */
    --accent: #0ea5e9;
    --accent-dim: rgba(14, 165, 233, 0.15);
    --accent-glow: rgba(14, 165, 233, 0.4);
    
    /* Semantic Colors */
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    
    /* Typography */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;
    --text-disabled: #475569;
    
    /* Borders */
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --border-focus: var(--accent);
    
    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    
    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 20px var(--accent-glow);
    
    /* Typography */
    --font-sans: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', 'Consolas', monospace;
    
    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 150ms;
    --duration-normal: 250ms;
    --duration-slow: 400ms;
}

/* Light Theme */
[data-theme="light"] {
    --bg-deep: #f8fafc;
    --bg-elevated: #ffffff;
    --bg-surface: #ffffff;
    --bg-hover: #f1f5f9;
    --bg-active: #e2e8f0;
    --accent: #0284c7;
    --accent-dim: rgba(2, 132, 199, 0.1);
    --accent-glow: rgba(2, 132, 199, 0.25);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #64748b;
    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Matrix Theme */
[data-theme="matrix"] {
    --bg-deep: #000000;
    --bg-elevated: #0a0f0a;
    --bg-surface: #0d140d;
    --accent: #22c55e;
    --accent-dim: rgba(34, 197, 94, 0.15);
    --accent-glow: rgba(34, 197, 94, 0.4);
    --text-primary: #4ade80;
    --text-secondary: #22c55e;
    --text-tertiary: #166534;
    --border: rgba(34, 197, 94, 0.15);
}

/* Vapor Theme */
[data-theme="vapor"] {
    --bg-deep: #0f0a1a;
    --bg-elevated: #1a1025;
    --bg-surface: #241530;
    --accent: #e879f9;
    --accent-dim: rgba(232, 121, 249, 0.15);
    --accent-glow: rgba(232, 121, 249, 0.4);
    --text-primary: #fdf4ff;
    --text-secondary: #d8b4fe;
    --text-tertiary: #a855f7;
    --border: rgba(232, 121, 249, 0.15);
}

/* ═══════════════════════════════════════════
   BASE RESET
   ═══════════════════════════════════════════ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.5;
    background: var(--bg-deep);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--accent);
    color: white;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.hidden { display: none !important; }

/* ═══════════════════════════════════════════
   NEBULA BACKGROUND
   ═══════════════════════════════════════════ */
#nebula {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

/* ═══════════════════════════════════════════
   BOOT SCREEN
   ═══════════════════════════════════════════ */
#boot-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--duration-slow) var(--ease-out),
                transform var(--duration-slow) var(--ease-out);
}

#boot-screen.fade-out {
    opacity: 0;
    transform: scale(1.02);
}

.neural-container {
    text-align: center;
}

.neural-network {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
}

.neural-network .nodes circle {
    fill: var(--accent);
    filter: drop-shadow(0 0 6px var(--accent-glow));
}

.neural-network .connections line {
    stroke: var(--accent);
    stroke-width: 0.5;
    opacity: 0.3;
}

.boot-text {
    color: var(--text-primary);
}

.glitch-text {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text-primary);
}

.boot-status {
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-tertiary);
    letter-spacing: 0.05em;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* ═══════════════════════════════════════════
   DESKTOP
   ═══════════════════════════════════════════ */
#desktop {
    position: fixed;
    inset: 0;
    bottom: 52px;
    z-index: 1;
    padding: var(--space-5);
}

#desktop-icons {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: var(--space-3);
    height: 100%;
    align-content: flex-start;
}

.desktop-icon {
    width: 80px;
    padding: var(--space-3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    text-align: center;
}

.desktop-icon:hover {
    background: var(--bg-hover);
}

.desktop-icon:active {
    transform: scale(0.96);
}

.desktop-icon .icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--duration-normal) var(--ease-out);
}

.desktop-icon:hover .icon {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.desktop-icon .label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* ═══════════════════════════════════════════
   WINDOWS - Clean Glass Design
   ═══════════════════════════════════════════ */
.window {
    position: absolute;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    min-width: 320px;
    min-height: 200px;
    overflow: hidden;
    animation: windowOpen var(--duration-normal) var(--ease-spring);
}

.window.focused {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-xl), 0 0 0 1px var(--border-hover);
}

@keyframes windowOpen {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.window.closing {
    animation: windowClose var(--duration-fast) var(--ease-out) forwards;
}

@keyframes windowClose {
    to {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
}

.window.minimizing {
    animation: windowMinimize var(--duration-normal) var(--ease-out) forwards;
}

@keyframes windowMinimize {
    to {
        opacity: 0;
        transform: scale(0.8) translateY(50vh);
    }
}

.window.maximized {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: calc(100vh - 52px) !important;
    border-radius: 0;
}

.window-header {
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 var(--space-4);
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    user-select: none;
    gap: var(--space-3);
}

.window-controls {
    display: flex;
    gap: 8px;
}

.win-btn {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    opacity: 0.8;
}

.win-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.win-btn.close { 
    background: #ef4444;
}

.win-btn.minimize { 
    background: #f59e0b;
}

.win-btn.maximize { 
    background: #22c55e;
}

.window-title {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    overflow: hidden;
}

.window-title .icon {
    font-size: 14px;
    flex-shrink: 0;
}

.window-title span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.window-body {
    flex: 1;
    overflow: auto;
    padding: var(--space-4);
    color: var(--text-primary);
}

/* Scrollbar */
.window-body::-webkit-scrollbar {
    width: 6px;
}

.window-body::-webkit-scrollbar-track {
    background: transparent;
}

.window-body::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.window-body::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
}

/* ═══════════════════════════════════════════
   TASKBAR - Minimal Dock
   ═══════════════════════════════════════════ */
#taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 52px;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 var(--space-3);
    z-index: 1000;
    gap: var(--space-2);
}

#start-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-surface);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-fast) var(--ease-out);
}

#start-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
}

#start-btn.active {
    background: var(--accent-dim);
    border-color: var(--accent);
}

.neural-icon {
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: var(--radius-full);
    opacity: 0.9;
}

#start-btn.active .neural-icon {
    opacity: 1;
    box-shadow: 0 0 10px var(--accent-glow);
}

#open-windows {
    flex: 1;
    display: flex;
    gap: var(--space-2);
    overflow-x: auto;
    padding: var(--space-1) 0;
}

.taskbar-item {
    height: 36px;
    min-width: 40px;
    max-width: 160px;
    padding: 0 var(--space-3);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    font-size: 12px;
    color: var(--text-secondary);
}

.taskbar-item:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
}

.taskbar-item.active {
    background: var(--accent-dim);
    border-color: var(--accent);
    color: var(--text-primary);
}

.taskbar-item .icon {
    font-size: 14px;
    flex-shrink: 0;
}

.taskbar-item span:not(.icon) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#system-tray {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding-left: var(--space-3);
    border-left: 1px solid var(--border);
}

.tray-item {
    font-size: 14px;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius-sm);
    transition: all var(--duration-fast) var(--ease-out);
}

.tray-item:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

#time {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: var(--space-2) var(--space-3);
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    font-variant-numeric: tabular-nums;
}

/* ═══════════════════════════════════════════
   START MENU - Modern Grid
   ═══════════════════════════════════════════ */
#start-menu {
    position: fixed;
    bottom: 60px;
    left: var(--space-3);
    width: 380px;
    z-index: 999;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: var(--space-5);
    animation: menuOpen var(--duration-normal) var(--ease-spring);
}

#start-menu.hidden {
    display: none;
}

.menu-center {
    position: relative;
}

@keyframes menuOpen {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.menu-center {
    text-align: center;
    margin-bottom: var(--space-5);
}

.menu-avatar {
    width: 56px;
    height: 56px;
    background: var(--accent);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    color: white;
    margin: 0 auto var(--space-3);
    box-shadow: var(--shadow-glow);
}

.menu-search {
    margin-top: var(--space-3);
}

.menu-search input {
    width: 100%;
    max-width: 200px;
    padding: var(--space-2) var(--space-4);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 13px;
    text-align: center;
    outline: none;
    transition: all var(--duration-fast) var(--ease-out);
}

.menu-search input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.menu-search input::placeholder {
    color: var(--text-tertiary);
}

.menu-orbit {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-3);
}

.orbit-item {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: auto;
    height: auto;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    opacity: 1 !important;
    transform: none !important;
}

.orbit-item:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px) !important;
}

.orbit-item:active {
    transform: scale(0.97) !important;
}

.orbit-item .icon {
    font-size: 22px;
}

.orbit-item .label {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-tertiary);
}

/* ═══════════════════════════════════════════
   NOTIFICATIONS - Minimal Toast
   ═══════════════════════════════════════════ */
#notifications {
    position: fixed;
    top: var(--space-5);
    right: var(--space-5);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    pointer-events: none;
}

.notification {
    padding: var(--space-3) var(--space-4);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--text-primary);
    box-shadow: var(--shadow-lg);
    animation: notifIn var(--duration-normal) var(--ease-spring);
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.notification::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.notification.success::before { background: var(--success); }
.notification.warning::before { background: var(--warning); }
.notification.error::before { background: var(--error); }

@keyframes notifIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ═══════════════════════════════════════════
   CLICK RIPPLE - Subtle
   ═══════════════════════════════════════════ */
#ripple-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

.ripple {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: var(--radius-full);
    transform: translate(-50%, -50%) scale(0);
    animation: ripple var(--duration-slow) var(--ease-out) forwards;
    opacity: 0.3;
}

@keyframes ripple {
    to {
        transform: translate(-50%, -50%) scale(6);
        opacity: 0;
    }
}

/* ═══════════════════════════════════════════
   APP: EXPLORER - Card Grid
   ═══════════════════════════════════════════ */
.neural-explorer {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: var(--space-4);
}

.explorer-tabs {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.explorer-tab {
    padding: var(--space-2) var(--space-4);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.explorer-tab:hover {
    color: var(--text-secondary);
    border-color: var(--border-hover);
}

.explorer-tab.active {
    background: var(--accent-dim);
    border-color: var(--accent);
    color: var(--accent);
}

.explorer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-4);
    flex: 1;
    overflow-y: auto;
    padding-right: var(--space-2);
}

.project-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.project-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.project-card .title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-card .desc {
    font-size: 12px;
    color: var(--text-tertiary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: var(--space-3);
}

.project-card .meta {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.tag {
    padding: 2px 8px;
    background: var(--bg-hover);
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 500;
    color: var(--text-tertiary);
}

.tag.status {
    background: var(--accent-dim);
    color: var(--accent);
}

/* ═══════════════════════════════════════════
   APP: TERMINAL - Clean Mono
   ═══════════════════════════════════════════ */
.terminal {
    background: #0a0a0c;
    font-family: var(--font-mono);
    font-size: 13px;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.terminal-output {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-4);
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-break: break-all;
}

.terminal-output .prompt {
    color: var(--accent);
}

.terminal-output .response {
    color: var(--text-tertiary);
}

.terminal-input-line {
    display: flex;
    padding: var(--space-3) var(--space-4);
    background: rgba(14, 165, 233, 0.05);
    border-top: 1px solid var(--border);
}

.terminal-input-line .prompt {
    color: var(--accent);
    margin-right: var(--space-2);
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

/* ═══════════════════════════════════════════
   APP: GISTS - Clean List
   ═══════════════════════════════════════════ */
.gist-stream {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: var(--space-4);
}

.gist-search input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
    transition: all var(--duration-fast) var(--ease-out);
}

.gist-search input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.gist-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.gist-item {
    padding: var(--space-3) var(--space-4);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.gist-item:hover {
    border-color: var(--border-hover);
    background: var(--bg-hover);
}

.gist-item .title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.gist-item .meta {
    display: flex;
    gap: var(--space-3);
    font-size: 11px;
    color: var(--text-tertiary);
}

/* ═══════════════════════════════════════════
   APP: ABOUT - Centered Profile
   ═══════════════════════════════════════════ */
.about-panel {
    text-align: center;
    padding: var(--space-6);
}

.about-avatar {
    width: 80px;
    height: 80px;
    background: var(--accent);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 600;
    color: white;
    margin: 0 auto var(--space-5);
    box-shadow: var(--shadow-glow);
}

.about-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: var(--space-2);
    color: var(--text-primary);
}

.about-subtitle {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: var(--space-6);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.stat {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-4);
}

.stat .value {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
}

.stat .label {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-top: var(--space-1);
}

.about-links {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.about-link {
    padding: var(--space-3) var(--space-5);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all var(--duration-fast) var(--ease-out);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.about-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
}

/* ═══════════════════════════════════════════
   APP: PROJECT DETAIL
   ═══════════════════════════════════════════ */
.project-detail {
    padding: var(--space-2);
}

.project-detail .header {
    margin-bottom: var(--space-5);
}

.project-detail .title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: var(--space-3);
    color: var(--text-primary);
}

.project-detail .badges {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.project-detail .description {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
}

.project-detail .cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: var(--accent);
    border-radius: var(--radius-md);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all var(--duration-fast) var(--ease-out);
}

.project-detail .cta:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

/* ═══════════════════════════════════════════
   SEARCH RESULTS
   ═══════════════════════════════════════════ */
.search-results {
    position: absolute;
    top: calc(100% + var(--space-3));
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-3);
    width: 280px;
    max-height: 260px;
    overflow-y: auto;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all var(--duration-fast) var(--ease-out);
    box-shadow: var(--shadow-lg);
}

.search-results.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.results-section {
    margin-bottom: var(--space-3);
}

.results-section:last-child {
    margin-bottom: 0;
}

.results-header {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    margin-bottom: var(--space-2);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--border);
}

.result-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.result-item:hover {
    background: var(--bg-hover);
}

.result-icon {
    font-size: 12px;
}

.result-title {
    flex: 1;
    font-size: 12px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-meta {
    font-size: 10px;
    color: var(--accent);
    background: var(--accent-dim);
    padding: 2px 6px;
    border-radius: var(--radius-full);
}

.no-results {
    text-align: center;
    color: var(--text-tertiary);
    font-size: 12px;
    padding: var(--space-5);
}

/* ═══════════════════════════════════════════
   GAME: QUANTUM DODGE
   ═══════════════════════════════════════════ */
.game-container {
    width: 100%;
    height: 100%;
    position: relative;
    background: #08090d;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.game-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.game-ui {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.game-hud {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    right: var(--space-3);
    display: flex;
    gap: var(--space-5);
}

.hud-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hud-label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
    text-transform: uppercase;
}

.hud-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
}

.game-overlay,
.game-over-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(8, 9, 13, 0.95);
    text-align: center;
    padding: var(--space-5);
    pointer-events: auto;
}

.game-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: var(--space-2);
}

.game-subtitle {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: var(--space-6);
}

.game-instructions {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 2;
    margin-bottom: var(--space-6);
}

.game-instructions p {
    margin: 0;
}

.game-start-btn {
    padding: var(--space-3) var(--space-6);
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.game-start-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

.game-hint {
    margin-top: var(--space-4);
    font-size: 11px;
    color: var(--text-tertiary);
}

.game-over-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--error);
    margin-bottom: var(--space-4);
}

.game-over-score {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
}

.game-over-score span {
    color: var(--accent);
    font-weight: 700;
}

.game-over-high {
    font-size: 13px;
    color: var(--warning);
    margin-bottom: var(--space-5);
}

/* ═══════════════════════════════════════════
   MOBILE RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
    #start-menu {
        left: var(--space-3);
        right: var(--space-3);
        width: auto;
        bottom: 60px;
    }
    
    .menu-orbit {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .window {
        width: 100% !important;
        height: calc(100vh - 100px) !important;
        top: 0 !important;
        left: 0 !important;
        border-radius: 0;
    }
    
    .explorer-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
}
