* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --glass-bg: rgba(255, 255, 255, 0.08);
            --glass-border: rgba(255, 255, 255, 0.18);
            --glass-shadow: rgba(0, 0, 0, 0.25);
            --accent-primary: rgba(255, 255, 255, 0.9);
            --accent-hover: rgba(255, 255, 255, 1);
            --text-primary: rgba(255, 255, 255, 0.95);
            --text-secondary: rgba(255, 255, 255, 0.75);
            --text-tertiary: rgba(255, 255, 255, 0.55);
            --danger: rgba(255, 255, 255, 0.8);
            --success: rgba(255, 255, 255, 0.8);
            --warning: rgba(255, 255, 255, 0.8);
        }

        body {
            font-family: 'Lexend', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            overflow: hidden;
            height: 100vh;
            background: #000;
            color: var(--text-primary);
        }

        #background-frame {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: none;
            z-index: 0;
        }

        .top-bar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 40px;
            background: rgba(30, 30, 30, 0.85);
            backdrop-filter: blur(30px) saturate(180%);
            -webkit-backdrop-filter: blur(30px) saturate(180%);
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 20px;
            font-size: 13px;
            font-weight: 400;
            z-index: 1000;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
        }

        .top-bar-left {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-shrink: 0;
        }

        .top-bar-center {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 20px;
            min-width: 0;
        }

        .top-bar-logo {
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 600;
            letter-spacing: 0.5px;
        }

        .top-bar-logo svg {
            width: 24px;
            height: 24px;
        }

        .top-bar-right {
            display: flex;
            gap: 8px;
            align-items: center;
            height: 100%;
            flex-shrink: 0;
        }

        .top-bar-item {
            cursor: pointer;
            padding: 6px 14px;
            border-radius: 6px;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            align-items: center;
            gap: 8px;
            height: 32px;
            font-size: 12.5px;
            font-weight: 500;
            background: transparent;
            border: 1px solid transparent;
        }

        .top-bar-item:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.12);
        }

        .top-bar-item:active {
            transform: scale(0.96);
        }

        .top-bar-item svg {
            width: 16px;
            height: 16px;
        }

        .desktop {
            position: fixed;
            top: 40px;
            left: 0;
            right: 0;
            bottom: 80px;
            overflow: hidden;
            z-index: 1;
        }

        .dock-container {
            position: fixed;
            bottom: -80px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 999;
            transition: bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .dock-container.visible {
            bottom: 12px;
        }

        .dock-container.hover {
            bottom: 12px;
        }

        .dock {
            background: rgba(40, 40, 40, 0.75);
            backdrop-filter: blur(40px) saturate(180%);
            -webkit-backdrop-filter: blur(40px) saturate(180%);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 20px;
            padding: 10px 16px;
            display: flex;
            gap: 10px;
            align-items: flex-end;
            box-shadow: 
                0 8px 32px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }

        .dock-trigger {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: 5px;
            z-index: 998;
        }

        /* ── Dock icon bounce keyframe ── */
        @keyframes dockBounce {
            0%   { transform: translateY(0)     scale(1); }
            18%  { transform: translateY(-18px) scale(1.08); }
            36%  { transform: translateY(-2px)  scale(1.01); }
            50%  { transform: translateY(-10px) scale(1.05); }
            64%  { transform: translateY(-1px)  scale(1); }
            76%  { transform: translateY(-5px)  scale(1.02); }
            88%  { transform: translateY(0)     scale(1); }
            94%  { transform: translateY(-2px)  scale(1.01); }
            100% { transform: translateY(0)     scale(1); }
        }

        .dock-icon {
            width: 60px;
            height: 60px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                        box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            box-shadow: 
                0 4px 16px rgba(0, 0, 0, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
        }

        /* Bounce plays once on launch, then stops */
        .dock-icon.bouncing {
            animation: dockBounce 3.3s cubic-bezier(0.33, 1, 0.68, 1) forwards;
        }

        .dock-icon.launch-icon {
            width: 60px;
            height: 60px;
        }

        .dock-icon::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: 16px;
            padding: 1px;
            background: linear-gradient(135deg, rgba(255,255,255,0.3), rgba(255,255,255,0.05));
            -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            opacity: 0;
            transition: opacity 0.3s;
        }

        .dock-icon:hover {
            transform: translateY(-12px) scale(1.15);
        }

        .dock-icon:hover::before {
            opacity: 1;
        }

        .dock-icon svg {
            width: 35px;
            height: 35px;
            fill: white;
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
        }

        .dock-icon.launch-icon img {
            width: 60px !important;
            height: 60px !important;
        }

        .dock-separator {
            width: 1px;
            height: 40px;
            background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.25), transparent);
            margin: 0 6px;
        }

        .dock-indicator {
            position: absolute;
            bottom: -4px;
            left: 50%;
            transform: translateX(-50%);
            width: 32px;
            height: 3px;
            background: rgba(255, 255, 255, 0.8);
            border-radius: 2px;
        }

        .context-menu {
            position: fixed;
            background: rgba(30, 30, 30, 0.95);
            backdrop-filter: blur(40px) saturate(180%);
            -webkit-backdrop-filter: blur(40px) saturate(180%);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 10px;
            padding: 6px;
            min-width: 180px;
            box-shadow: 
                0 12px 40px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
            z-index: 10001;
            display: none;
        }

        .context-menu.active {
            display: block;
        }

        .context-menu-item {
            padding: 10px 14px;
            cursor: pointer;
            border-radius: 6px;
            font-size: 13px;
            font-weight: 500;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 10px;
            color: var(--text-primary);
        }

        .context-menu-item:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .context-menu-item svg {
            width: 16px;
            height: 16px;
            fill: currentColor;
        }

        .context-menu-separator {
            height: 1px;
            background: rgba(255, 255, 255, 0.1);
            margin: 6px 0;
        }

        .launch-menu {
            position: fixed;
            top: 40px;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(20, 20, 20, 0.85);
            backdrop-filter: blur(60px) saturate(180%);
            -webkit-backdrop-filter: blur(60px) saturate(180%);
            z-index: 2000;
            display: none;
            flex-direction: column;
            padding: 60px 80px;
            opacity: 0;
            animation: fadeIn 0.3s forwards;
        }

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

        .launch-menu.active {
            display: flex;
        }

        .launch-menu-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
        }

        .launch-menu-title {
            font-size: 32px;
            font-weight: 300;
            letter-spacing: -0.5px;
        }

        .launch-menu-close {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.15);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
        }

        .launch-menu-close:hover {
            background: rgba(255, 255, 255, 0.12);
            transform: scale(1.05);
        }

        .launch-menu-close svg {
            width: 20px;
            height: 20px;
            fill: white;
        }

        .launch-search-container {
            width: 700px;
            margin: 0 auto 50px;
            position: relative;
        }

        .launch-search {
            width: 100%;
            padding: 18px 24px 18px 56px;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 12px;
            color: white;
            font-size: 16px;
            font-family: 'Lexend', sans-serif;
            outline: none;
            transition: all 0.3s;
        }

        .launch-search:focus {
            background: rgba(255, 255, 255, 0.12);
            border-color: rgba(255, 255, 255, 0.3);
            box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
        }

        .launch-search::placeholder {
            color: var(--text-tertiary);
        }

        .launch-search-icon {
            position: absolute;
            left: 20px;
            top: 50%;
            transform: translateY(-50%);
            width: 20px;
            height: 20px;
            opacity: 0.5;
        }

        .launch-apps {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
            gap: 40px;
            max-width: 1400px;
            margin: 0 auto;
            overflow-y: auto;
            padding: 20px;
        }

        .launch-app {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
            cursor: pointer;
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .launch-app:hover {
            transform: scale(1.08);
        }

        .launch-app-icon {
            width: 96px;
            height: 96px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 
                0 8px 24px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
            position: relative;
            overflow: hidden;
        }

        .launch-app-icon::before {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3), transparent);
            opacity: 0;
            transition: opacity 0.3s;
        }

        .launch-app:hover .launch-app-icon::before {
            opacity: 1;
        }

        .launch-app-icon svg {
            width: 56px;
            height: 56px;
            fill: white;
        }

        .launch-app-name {
            color: var(--text-primary);
            font-size: 13px;
            font-weight: 500;
            text-align: center;
        }

        /* ── Window open / close keyframes ── */
        @keyframes windowOpen {
            0%   { opacity: 0; transform: scale(0.92) translateY(10px); }
            60%  { opacity: 1; transform: scale(1.02) translateY(-2px); }
            100% { opacity: 1; transform: scale(1)    translateY(0); }
        }

        @keyframes windowClose {
            0%   { opacity: 1; transform: scale(1)    translateY(0); }
            100% { opacity: 0; transform: scale(0.92) translateY(10px); }
        }

        @keyframes windowMinimize {
            0%   { opacity: 1; transform: scale(1) translateY(0); }
            100% { opacity: 0; transform: scale(0.5) translateY(60px); }
        }

        .window {
            position: absolute;
            background: transparent;
            backdrop-filter: blur(40px) saturate(180%);
            -webkit-backdrop-filter: blur(40px) saturate(180%);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 12px;
            box-shadow: 
                0 24px 64px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
            overflow: hidden;
            display: none;
            flex-direction: column;
            min-width: 500px;
            min-height: 400px;
            z-index: 100;
        }

        .window::before {
            content: '';
            position: absolute;
            inset: 0;
            background: rgba(30, 30, 30, 0.85);
            z-index: -1;
        }

        .window.active {
            display: flex;
            animation: windowOpen 0.28s cubic-bezier(0.34, 1.26, 0.64, 1) forwards;
        }

        /* Closing class — add via JS, then remove element after 200ms */
        .window.closing {
            display: flex;
            animation: windowClose 0.2s cubic-bezier(0.4, 0, 1, 1) forwards;
            pointer-events: none;
        }

        /* Minimizing class — add via JS, then hide after 220ms */
        .window.minimizing {
            display: flex;
            animation: windowMinimize 0.22s cubic-bezier(0.4, 0, 1, 1) forwards;
            pointer-events: none;
        }

        .window.minimized {
            display: none;
        }

        .window.fullscreen {
            top: 40px !important;
            left: 0 !important;
            right: 0 !important;
            bottom: 0 !important;
            width: 100% !important;
            height: calc(100vh - 40px) !important;
            border-radius: 0;
        }

        .window.snap-ready {
            box-shadow: 
                0 0 0 3px rgba(255, 255, 255, 0.5),
                0 24px 64px rgba(0, 0, 0, 0.4);
            transition: box-shadow 0.2s;
        }

        .window-titlebar {
            height: 48px;
            background: rgba(50, 50, 50, 0.9);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            display: flex;
            align-items: center;
            padding: 0 16px;
            cursor: move;
            user-select: none;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }

        .window-titlebar * {
            pointer-events: auto;
        }

        .window-controls {
            display: flex;
            gap: 10px;
            cursor: default;
        }

        .window-control {
            width: 14px;
            height: 14px;
            border-radius: 50%;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            border: 1px solid rgba(255, 255, 255, 0.2);
            background: rgba(255, 255, 255, 0.15);
        }

        .window-control svg {
            width: 7px;
            height: 7px;
            fill: rgba(255, 255, 255, 0.8);
            opacity: 0;
            transition: opacity 0.2s;
        }

        .window-titlebar:hover .window-control svg {
            opacity: 1;
        }

        .window-control:hover {
            filter: brightness(1.3);
            transform: scale(1.1);
        }

        .window-title {
            flex: 1;
            text-align: center;
            font-size: 13px;
            font-weight: 600;
            color: var(--text-primary);
            letter-spacing: 0.3px;
        }

        .window-content {
            flex: 1;
            overflow: hidden;
            background: transparent;
            display: flex;
            flex-direction: column;
        }

        .app-store-nav {
            background: rgba(40, 40, 40, 0.9);
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            padding: 0 30px;
            display: flex;
            gap: 30px;
            height: 56px;
            align-items: center;
        }

        .app-store-nav-item {
            padding: 8px 16px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 13px;
            font-weight: 500;
            transition: all 0.2s;
            position: relative;
        }

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

        .app-store-nav-item:hover {
            background: rgba(255, 255, 255, 0.05);
        }

        .app-store-hero {
            background: rgba(255, 255, 255, 0.05);
            padding: 60px 40px;
            position: relative;
            overflow: hidden;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .app-store-hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: 
                radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08), transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05), transparent 40%);
        }

        .app-store-hero-content {
            position: relative;
            z-index: 1;
        }

        .app-store-hero h1 {
            font-size: 48px;
            font-weight: 300;
            margin-bottom: 12px;
            letter-spacing: -0.5px;
        }

        .app-store-hero p {
            font-size: 18px;
            opacity: 0.95;
            font-weight: 400;
        }

        .app-store-back {
            position: absolute;
            left: 30px;
            top: 50%;
            transform: translateY(-50%);
            padding: 10px 20px;
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 8px;
            color: white;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.2s;
            backdrop-filter: blur(10px);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .app-store-back:hover {
            background: rgba(0, 0, 0, 0.5);
            transform: translateY(-50%) translateX(-2px);
        }

        .app-store-section {
            padding: 40px;
        }

        .app-store-section-title {
            font-size: 24px;
            font-weight: 600;
            margin-bottom: 24px;
            letter-spacing: -0.3px;
        }

        .app-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
            gap: 28px;
        }

        .app-card {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            padding: 24px;
            cursor: pointer;
            transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
            position: relative;
            overflow: hidden;
        }

        .app-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            opacity: 0;
            transition: opacity 0.3s;
        }

        .app-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.2);
        }

        .app-card:hover::before {
            opacity: 1;
        }

        .app-card-header {
            display: flex;
            gap: 20px;
            margin-bottom: 24px;
        }

        .app-card-icon {
            width: 80px;
            height: 80px;
            border-radius: 16px;
            object-fit: cover;
            flex-shrink: 0;
            box-shadow: 
                0 6px 16px rgba(0, 0, 0, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }

        .app-card-info {
            flex: 1;
            min-width: 0;
        }

        .app-card-name {
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 8px;
            letter-spacing: -0.2px;
        }

        .app-card-category {
            font-size: 12px;
            color: var(--text-tertiary);
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 6px;
        }

        .app-card-desc {
            font-size: 13px;
            color: var(--text-secondary);
            line-height: 1.6;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .app-card-rating {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 8px;
        }

        .app-card-stars {
            display: flex;
            gap: 2px;
        }

        .app-card-stars svg {
            width: 14px;
            height: 14px;
            fill: rgba(255, 255, 255, 0.6);
        }

        .app-card-rating-text {
            font-size: 12px;
            color: var(--text-tertiary);
        }

        .app-card-button {
            width: 100%;
            padding: 14px;
            border: none;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            font-family: 'Lexend', sans-serif;
            position: relative;
            overflow: hidden;
        }

        .app-card-button::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: left 0.5s;
        }

        .app-card-button:hover::before {
            left: 100%;
        }

        .app-card-button.install {
            background: rgba(255, 255, 255, 0.15);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.3);
        }

        .app-card-button.install:hover {
            background: rgba(255, 255, 255, 0.25);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
        }

        .app-card-button.uninstall {
            background: rgba(255, 255, 255, 0.05);
            color: var(--text-secondary);
            border: 1px solid rgba(255, 255, 255, 0.15);
        }

        .app-card-button.uninstall:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.25);
        }

        .app-card-button.open {
            background: rgba(255, 255, 255, 0.1);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.2);
            margin-top: 12px;
        }

        .app-card-button.open:hover {
            background: rgba(255, 255, 255, 0.15);
            border-color: rgba(255, 255, 255, 0.3);
        }

        .app-detail {
            overflow-y: auto;
        }

        .app-detail-hero {
            background: rgba(255, 255, 255, 0.05);
            padding: 80px 60px;
            position: relative;
            overflow: hidden;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .app-detail-hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: 
                radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1), transparent 60%),
                radial-gradient(circle at 70% 30%, rgba(255,255,255,0.08), transparent 50%);
        }

        .app-detail-header {
            position: relative;
            z-index: 1;
            display: flex;
            gap: 40px;
            align-items: flex-start;
            max-width: 1200px;
            margin: 0 auto;
        }

        .app-detail-icon {
            width: 140px;
            height: 140px;
            border-radius: 24px;
            box-shadow: 
                0 12px 40px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
        }

        .app-detail-info {
            flex: 1;
        }

        .app-detail-category {
            font-size: 13px;
            color: rgba(255, 255, 255, 0.8);
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 12px;
        }

        .app-detail-info h2 {
            font-size: 42px;
            font-weight: 300;
            margin-bottom: 16px;
            letter-spacing: -0.5px;
        }

        .app-detail-info p {
            font-size: 16px;
            color: rgba(255, 255, 255, 0.9);
            line-height: 1.7;
            margin-bottom: 24px;
        }

        .app-detail-meta {
            display: flex;
            gap: 32px;
            margin-top: 20px;
        }

        .app-detail-meta-item {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .app-detail-meta-label {
            font-size: 11px;
            color: rgba(255, 255, 255, 0.6);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-weight: 600;
        }

        .app-detail-meta-value {
            font-size: 15px;
            font-weight: 600;
        }

        .app-detail-actions {
            display: flex;
            gap: 16px;
            margin-top: 32px;
        }

        .app-detail-actions button {
            flex: 1;
            max-width: 200px;
            padding: 16px 32px;
            border: none;
            border-radius: 8px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            font-family: 'Lexend', sans-serif;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .app-detail-content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 60px;
        }

        .app-detail-section {
            margin-bottom: 48px;
        }

        .app-detail-section h3 {
            font-size: 22px;
            font-weight: 600;
            margin-bottom: 20px;
            letter-spacing: -0.3px;
        }

        .app-detail-section p {
            font-size: 14px;
            line-height: 1.8;
            color: var(--text-secondary);
        }

        .progress-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(20px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10000;
        }

        .progress-box {
            background: rgba(40, 40, 40, 0.95);
            backdrop-filter: blur(40px);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 16px;
            padding: 50px 70px;
            text-align: center;
            box-shadow: 
                0 24px 64px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }

        .progress-box h3 {
            font-size: 28px;
            font-weight: 300;
            margin-bottom: 16px;
            letter-spacing: -0.3px;
        }

        .progress-status {
            font-size: 14px;
            color: var(--text-secondary);
            margin-bottom: 28px;
        }

        .progress-bar {
            width: 350px;
            height: 6px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 3px;
            overflow: hidden;
            margin: 0 auto;
        }

        .progress-bar-fill {
            height: 100%;
            background: rgba(255, 255, 255, 0.7);
            border-radius: 3px;
            transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 0 16px rgba(255, 255, 255, 0.3);
        }

        .loading {
            text-align: center;
            padding: 80px 60px;
        }

        .loading h3 {
            font-size: 28px;
            font-weight: 300;
            margin-bottom: 16px;
            letter-spacing: -0.3px;
        }

        .loading p {
            color: var(--text-secondary);
            line-height: 1.7;
            margin-top: 12px;
        }

        .settings-content {
            padding: 40px;
        }

        .settings-section {
            margin-bottom: 40px;
        }

        .settings-section h2 {
            font-size: 24px;
            font-weight: 600;
            margin-bottom: 20px;
            letter-spacing: -0.3px;
        }

        .settings-option {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 16px;
            transition: all 0.2s;
        }

        .settings-option:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.15);
        }

        .settings-option h3 {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 8px;
        }

        .settings-option p {
            font-size: 13px;
            color: var(--text-secondary);
            line-height: 1.6;
        }

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

        ::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.05);
        }

        ::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.2);
            border-radius: 5px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.3);
        }


.top-bar-stats {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 26px;
}

.stat-pill {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 8px;
    height: 24px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
    cursor: default;
    user-select: none;
}

.stat-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    color: var(--text-primary);
}

.stat-pill-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
}

.stat-pill-dot.today  { background: rgba(255, 255, 255, 0.85); box-shadow: 0 0 4px rgba(120,220,150,0.5); }
.stat-pill-dot.month  { background: rgba(255, 255, 255, 0.85); box-shadow: 0 0 4px rgba(120,220,150,0.5); }
.stat-pill-dot.total  { background: rgba(255, 255, 255, 0.85); box-shadow: 0 0 4px rgba(120,220,150,0.5); }

.stat-pill-label {
    color: var(--text-tertiary);
    font-size: 10px;
    letter-spacing: 0.3px;
}

.stat-pill-value {
    font-weight: 600;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    min-width: 16px;
    text-align: right;
    font-size: 11px;
}

.top-bar-divider {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 3px;
    flex-shrink: 0;
}

#authBtn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 9px;
    height: 24px;
    border-radius: 5px;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    white-space: nowrap;
    position: relative;
}

#authBtn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

#authBtn:active { transform: scale(0.97); }

#authBtn.logged-in {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    cursor: default;
}

.auth-icon {
    width: 13px;
    height: 13px;
    fill: var(--text-secondary);
    flex-shrink: 0;
}

.auth-name {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 11.5px;
}

.auth-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.auth-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.auth-avatar-initial {
    font-size: 10px;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.auth-signout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    opacity: 0;
    transition: opacity 0.15s, background 0.15s;
    pointer-events: auto;
    flex-shrink: 0;
}

.auth-signout-btn svg {
    width: 11px;
    height: 11px;
    fill: var(--text-secondary);
}

#authBtn:hover .auth-signout-btn {
    opacity: 1;
}

.auth-signout-btn:hover {
    background: rgba(255,255,255,0.12);
}

.auth-signout-btn:hover svg {
    fill: var(--text-primary);
}
.weather-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    height: 24px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    user-select: none;
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
}

.weather-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    color: var(--text-primary);
}

#weatherContent {
    display: flex;
    align-items: center;
    gap: 5px;
}

.weather-pill .w-icon {
    font-size: 12px;
}

.weather-pill .w-temp {
    font-weight: 600;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.weather-pill .w-desc {
    color: var(--text-secondary);
    font-size: 10.5px;
}

.weather-pill .w-wind {
    color: var(--text-tertiary);
    font-size: 10.5px;
}

.network-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 9px;
    height: 24px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: default;
    user-select: none;
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.network-status:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
}

.network-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.3);
    transition: background 0.4s, box-shadow 0.4s;
}

.network-dot.connected {
    background: #4ade80;
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.7);
}

.network-dot.disconnected {
    background: #f87171;
    box-shadow: 0 0 6px rgba(248, 113, 113, 0.7);
}

.network-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
}

.top-bar-logo-box {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 10px;
    height: 26px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    cursor: pointer;
    user-select: none;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: var(--text-primary);
    flex-shrink: 0;
}

.top-bar-logo-box img {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.top-bar-logo-box:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.35);
}

.top-bar-logo-box:active {
    transform: scale(0.96);
}