@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    --bg-gradient-start: #101b2d;
    --bg-gradient-end: #162c3b;
    --accent-primary: #f3a65b;
    --accent-secondary: #e66b55;
    --accent-success: #6ed4b3;
    --accent-danger: #ef7168;
    --text-primary: #f4f1e9;
    --text-secondary: #aebbb8;
    --text-muted: #708783;
    --surface-primary: rgba(18, 34, 48, 0.9);
    --surface-secondary: rgba(35, 57, 68, 0.82);
    --surface-tertiary: rgba(66, 91, 96, 0.65);
    --border-color: rgba(184, 214, 202, 0.16);
    --shadow-sm: 0 2px 8px rgba(3, 11, 18, 0.24);
    --shadow-md: 0 8px 20px rgba(3, 11, 18, 0.3);
    --shadow-lg: 0 16px 36px rgba(3, 11, 18, 0.4);
    --shadow-xl: 0 24px 60px rgba(3, 11, 18, 0.55);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --backdrop-blur: 22px;
    --taskbar-height: 72px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    font-family: 'DM Sans', sans-serif;
    height: 100vh;
    overflow: hidden;
    background: var(--bg-gradient-start);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
    cursor: default;
    user-select: none;
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1),
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    z-index: 9999;
}

.vwok-splash {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 42%, rgba(214, 220, 230, 0.14), transparent 38%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.04), transparent 55%),
        linear-gradient(160deg, #070d15 0%, #101b2d 48%, #162c3b 100%);
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.vwok-splash.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.vwok-splash-brand {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2em 0.35em;
    animation: splashBrandIn 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.vwok-splash-logo {
    position: relative;
    z-index: 1;
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.6rem, 13vw, 5.2rem);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1;
    color: #b8bec8;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.45),
        0 -1px 0 rgba(70, 78, 88, 0.85),
        0 0 18px rgba(255, 255, 255, 0.08),
        0 10px 34px rgba(0, 0, 0, 0.35);
    background: linear-gradient(
        180deg,
        #eef1f6 0%,
        #c3c9d2 22%,
        #8f98a3 48%,
        #d7dce3 72%,
        #f5f7fa 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.vwok-splash-shine {
    position: absolute;
    inset: -20% -30%;
    z-index: 2;
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(255, 255, 255, 0.08) 42%,
        rgba(255, 255, 255, 0.85) 50%,
        rgba(255, 255, 255, 0.08) 58%,
        transparent 70%
    );
    transform: translateX(-130%) skewX(-16deg);
    animation: splashShineSweep 2.4s cubic-bezier(0.4, 0, 0.2, 1) 0.35s forwards;
    pointer-events: none;
    mix-blend-mode: screen;
    filter: blur(0.5px);
}

.vwok-splash-brand::after {
    content: '';
    position: absolute;
    inset: 18% -8%;
    z-index: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 68%);
    opacity: 0;
    animation: splashGlowPulse 2.4s ease-in-out 0.2s forwards;
}

@keyframes splashBrandIn {
    0% {
        opacity: 0;
        transform: scale(0.92) translateY(8px);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

@keyframes splashShineSweep {
    0% { transform: translateX(-130%) skewX(-16deg); opacity: 0; }
    12% { opacity: 1; }
    100% { transform: translateX(130%) skewX(-16deg); opacity: 0; }
}

@keyframes splashGlowPulse {
    0%, 100% { opacity: 0; transform: scale(0.95); }
    35% { opacity: 1; transform: scale(1); }
    70% { opacity: 0.35; transform: scale(1.04); }
}

body.start-menu-open {
    overflow: hidden;
}

.desktop {
    position: relative;
    width: 100%;
    height: calc(100% - var(--taskbar-height));
    overflow: hidden;
    padding: 30px 34px;
    background:
        radial-gradient(circle at 78% 18%, rgba(243, 166, 91, 0.13), transparent 24%),
        radial-gradient(circle at 16% 82%, rgba(110, 212, 179, 0.08), transparent 28%),
        linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
}

.desktop::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.3;
    background-image: linear-gradient(rgba(174, 187, 184, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(174, 187, 184, 0.06) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.desktop-heading {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin: 4px 8px 22px;
}

.desktop-kicker {
    margin-bottom: 6px;
    color: var(--accent-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.desktop-heading h1 {
    color: var(--text-primary);
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 600;
    letter-spacing: -0.03em;
}

.desktop-status {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 13px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: rgba(18, 34, 48, 0.62);
    color: var(--text-secondary);
    font-size: 12px;
    white-space: nowrap;
}

.desktop-status span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-success);
    box-shadow: 0 0 0 4px rgba(110, 212, 179, 0.12);
}

.desktop-status strong {
    color: var(--text-primary);
    font-weight: 600;
}

.desktop-icons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 100px));
    grid-auto-rows: 110px;
    gap: 14px;
    padding: 8px;
    position: relative;
    z-index: 1;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 12px 8px;
    border-radius: var(--radius-md);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.desktop-icon:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.05);
}

.desktop-icon:active {
    transform: scale(0.98);
}

.desktop-icon.selected {
    background: rgba(59, 130, 246, 0.2);
}

.icon-box {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 8px;
    background: linear-gradient(145deg, rgba(47, 72, 79, 0.95), rgba(18, 34, 48, 0.95));
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.icon-label {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    color: var(--text-primary);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.window {
    position: absolute;
    background: var(--surface-primary);
    backdrop-filter: blur(var(--backdrop-blur));
    -webkit-backdrop-filter: blur(var(--backdrop-blur));
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: none;
    flex-direction: column;
    width: 720px;
    height: 520px;
    min-width: 400px;
    min-height: 320px;
    max-width: calc(100% - 48px);
    max-height: calc(100% - 96px);
    z-index: 10;
    animation: windowEnter 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes windowEnter {
    from { opacity: 0; transform: translateY(8px) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.window.active {
    display: flex;
}

.window.maximized {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: calc(100% - var(--taskbar-height)) !important;
    border-radius: 0;
    min-width: 100%;
    min-height: 100%;
    max-width: 100%;
    max-height: 100%;
    z-index: 999;
}

.window.snap-left,
.window.snap-right {
    border-radius: var(--radius-md);
}

.window.snap-left { left: 0 !important; top: 0 !important; width: 50% !important; height: calc(100vh - var(--taskbar-height)) !important; max-height: none !important; }
.window.snap-right { right: 0 !important; left: auto !important; top: 0 !important; width: 50% !important; height: calc(100vh - var(--taskbar-height)) !important; max-height: none !important; }

.resize-handle {
    position: absolute;
    z-index: 5;
}

.resize-n, .resize-s { left: 12px; right: 12px; height: 6px; cursor: ns-resize; }
.resize-n { top: -2px; }
.resize-s { bottom: -2px; }
.resize-e, .resize-w { top: 12px; bottom: 12px; width: 6px; cursor: ew-resize; }
.resize-e { right: -2px; }
.resize-w { left: -2px; }
.resize-ne, .resize-sw, .resize-se, .resize-nw { width: 12px; height: 12px; }
.resize-ne { top: -2px; right: -2px; cursor: nesw-resize; }
.resize-sw { bottom: -2px; left: -2px; cursor: nesw-resize; }
.resize-se { bottom: -2px; right: -2px; cursor: nwse-resize; }
.resize-nw { top: -2px; left: -2px; cursor: nwse-resize; }

.window-title {
    cursor: move;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    touch-action: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 10px 14px;
    background: linear-gradient(180deg, var(--surface-secondary) 0%, var(--surface-primary) 100%);
    border-bottom: 1px solid var(--border-color);
}

.window-title-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.window-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.window-btn {
    width: 30px;
    height: 28px;
    border-radius: 7px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-secondary);
    background: transparent;
}

.window-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.09);
    border-color: var(--border-color);
}

.window-btn.close {
    color: #ff9a8f;
}

.window-btn.minimize {
    color: var(--accent-primary);
}

.window-btn.maximize {
    color: var(--accent-success);
}

.window-btn.new-tab {
    color: var(--accent-primary);
    font-size: 18px;
}

.maximize-control {
    position: relative;
    display: flex;
}

.snap-menu {
    position: absolute;
    top: 22px;
    right: -10px;
    display: grid;
    grid-template-columns: repeat(2, 46px);
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(18, 34, 48, 0.97);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px) scale(0.96);
    transform-origin: top right;
    transition: opacity 0.16s ease, transform 0.16s ease;
    z-index: 10;
}

.maximize-control:hover .snap-menu,
.maximize-control:focus-within .snap-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.snap-menu button {
    width: 46px;
    height: 34px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2px;
    padding: 5px;
    border: 1px solid rgba(184, 214, 202, 0.22);
    border-radius: 5px;
    background: rgba(66, 91, 96, 0.45);
    cursor: pointer;
}

.snap-menu button:hover { background: var(--accent-primary); }
.snap-menu button span { border-radius: 1px; background: var(--text-secondary); }
.snap-menu button:hover span { background: #132534; }
.snap-menu button:nth-child(1) span:first-child,
.snap-menu button:nth-child(2) span:last-child { grid-row: 1 / -1; }
.snap-menu button:nth-child(1) span:last-child,
.snap-menu button:nth-child(2) span:first-child { display: none; }

.window-title-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0;
}

.window-content {
    flex-grow: 1;
    overflow: hidden;
    background: var(--surface-primary);
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--taskbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: var(--surface-primary);
    backdrop-filter: blur(var(--backdrop-blur));
    -webkit-backdrop-filter: blur(var(--backdrop-blur));
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.taskbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.start-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
}

.start-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.start-button:active {
    transform: translateY(0);
}

.start-button.active {
    transform: scale(0.98);
    box-shadow: var(--shadow-sm);
}

.start-button img {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
}

.start-button span {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.dock {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    max-width: min(58vw, 720px);
    overflow-x: auto;
}

.dock-item {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    padding: 6px 9px;
    color: var(--text-primary);
    background: transparent;
    border: 0;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.dock-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.dock-item.minimized { opacity: 0.6; }

.dock-item-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: var(--surface-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.dock-item-label {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 600;
}

.dock-item.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    width: 6px;
    height: 6px;
    background: var(--accent-success);
    border-radius: 50%;
}

.taskbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.system-time-cont {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 4px 12px;
}

.pixel-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.system-date {
    font-size: 11px;
    color: var(--text-secondary);
}

.fullscreen-button {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.fullscreen-button:hover {
    background: var(--surface-secondary);
}

.start-menu {
    position: fixed;
    bottom: calc(var(--taskbar-height) + 16px);
    left: 24px;
    width: min(640px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    max-height: min(520px, calc(100dvh - var(--taskbar-height) - 32px));
    background: var(--surface-primary);
    backdrop-filter: blur(var(--backdrop-blur));
    -webkit-backdrop-filter: blur(var(--backdrop-blur));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    display: none;
    flex-direction: column;
    z-index: 1001;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    box-sizing: border-box;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.start-menu-header {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--surface-secondary) 0%, var(--surface-primary) 100%);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.user-avatar {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    margin-right: 16px;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.user-fullname {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-vwoid {
    font-size: 13px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.start-menu-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    max-height: min(380px, calc(100dvh - var(--taskbar-height) - 150px));
    overflow: hidden;
}

.start-menu-apps {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.start-menu-section {
    margin-bottom: 20px;
}

.start-menu-section-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 10px;
    padding: 0 8px;
}

.pinned-apps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.pinned-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 0;
}

.pinned-app:hover {
    background: rgba(255, 255, 255, 0.06);
}

.pinned-app-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: var(--surface-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.pinned-app-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-radius: var(--radius-md);
    min-width: 0;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.menu-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: var(--surface-secondary);
    border-radius: var(--radius-sm);
}

.menu-item span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.menu-separator {
    height: 1px;
    background: var(--border-color);
    margin: 8px 16px;
}

.logout {
    margin-top: auto;
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(18, 34, 48, 0) 0%, rgba(18, 34, 48, 0.92) 28%, rgba(18, 34, 48, 0.98) 100%);
    padding-top: 10px;
}

.logout:hover {
    background: linear-gradient(180deg, rgba(239, 113, 104, 0.08) 0%, rgba(239, 113, 104, 0.18) 100%);
}

.logout .menu-icon {
    background: rgba(239, 68, 68, 0.2);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal {
    width: 520px;
    background: var(--surface-primary);
    backdrop-filter: blur(var(--backdrop-blur));
    -webkit-backdrop-filter: blur(var(--backdrop-blur));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    animation: modalIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--surface-secondary);
    border-bottom: 1px solid var(--border-color);
}

.title-text {
    display: flex;
    align-items: center;
    gap: 10px;
}

.title-text .icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: var(--radius-md);
}

.title-text span {
    font-size: 16px;
    font-weight: 600;
}

.modal-content {
    padding: 28px 24px;
    text-align: center;
}

.star-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.modal-content > div:nth-child(2) > div:first-child {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.message-box {
    background: var(--surface-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.button-container {
    display: flex;
    gap: 12px;
    padding: 0 24px 24px;
    justify-content: center;
}

.pixel-button {
    flex: 1;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.pixel-button:first-child {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
}

.pixel-button:first-child:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.4);
}

.pixel-button:last-child {
    background: var(--surface-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.pixel-button:last-child:hover {
    background: var(--surface-tertiary);
}

.status-bar {
    padding: 12px 20px;
    background: var(--surface-secondary);
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--surface-tertiary);
    border-radius: 5px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
    background-clip: padding-box;
}

@media (max-width: 768px) {
    :root {
        --taskbar-height: 64px;
    }

    body, html {
        overflow: hidden;
        font-size: 13px;
    }

    .desktop {
        height: calc(100% - var(--taskbar-height));
        padding: 18px 14px 12px;
    }

    .desktop-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        margin: 0 4px 18px;
    }

    .desktop-heading h1 {
        font-size: 27px;
        line-height: 1.08;
    }

    .desktop-status {
        padding: 8px 11px;
        font-size: 11px;
    }

    .desktop-icons {
        grid-template-columns: repeat(3, minmax(76px, 1fr));
        grid-auto-rows: 96px;
        gap: 8px;
        padding: 4px 0;
    }

    .desktop-icon {
        padding: 8px 4px;
    }

    .icon-box {
        width: 48px;
        height: 48px;
        font-size: 23px;
        margin-bottom: 6px;
    }

    .icon-label {
        max-width: 100%;
        font-size: 11px;
    }

    .taskbar {
        height: var(--taskbar-height);
        padding: 7px 10px calc(7px + env(safe-area-inset-bottom, 0px));
    }

    .taskbar-left {
        min-width: 0;
        gap: 6px;
    }

    .start-button {
        width: 44px;
        height: 44px;
        justify-content: center;
        padding: 7px;
        border-radius: 12px;
    }

    .start-button img {
        width: 28px;
        height: 28px;
    }

    .start-button span,
    .dock-item-label {
        display: none;
    }

    .dock {
        gap: 3px;
        padding: 0;
        max-width: calc(100vw - 190px);
    }

    .dock-item {
        padding: 5px;
    }

    .dock-item-icon {
        width: 38px;
        height: 38px;
    }

    .taskbar-right {
        gap: 5px;
    }

    .system-time-cont {
        padding: 3px 5px;
    }

    .pixel-text { font-size: 11px; }
    .system-date { font-size: 10px; }

    .fullscreen-button {
        width: 38px;
        height: 38px;
    }

    .start-menu {
        bottom: calc(var(--taskbar-height) + 10px + env(safe-area-inset-bottom, 0px));
        max-height: min(72dvh, calc(100dvh - var(--taskbar-height) - 20px));
        border-radius: 18px;
    }

    .start-menu-header {
        padding: 16px;
        flex-shrink: 0;
    }

    .user-avatar {
        width: 44px;
        height: 44px;
        margin-right: 12px;
    }

    .user-fullname { font-size: 16px; }

    .start-menu-body {
        max-height: min(320px, calc(100dvh - var(--taskbar-height) - 170px));
    }

    .start-menu-apps {
        padding: 12px;
    }

    .pinned-apps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4px;
    }

    .pinned-app {
        gap: 5px;
        padding: 11px 5px;
    }

    .pinned-app-icon {
        width: 42px;
        height: 42px;
        font-size: 21px;
    }

    .pinned-app-name { font-size: 11px; }

    .menu-item { padding: 9px 10px; }

    .window,
    .window.maximized,
    .window.snap-left,
    .window.snap-right {
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: calc(100dvh - var(--taskbar-height) - env(safe-area-inset-bottom, 0px)) !important;
        min-width: 0;
        min-height: 0;
        max-width: 100%;
        max-height: none;
        border-radius: 0;
    }

    .window-title {
        min-height: 54px;
        padding: 10px 12px;
    }

    .window-controls { gap: 3px; }

    .window-btn {
        width: 34px;
        height: 32px;
    }

    .snap-menu { display: none; }
    .resize-handle { display: none; }

    .window-title-text {
        max-width: 34vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (max-width: 380px) {
    .desktop-icons { grid-template-columns: repeat(3, minmax(68px, 1fr)); }
    .desktop-heading h1 { font-size: 24px; }
    .taskbar-right { gap: 1px; }
    .system-time-cont { padding-inline: 2px; }
    .fullscreen-button { width: 34px; height: 34px; }
}
