/* =============== VARIABLES =============== */
:root {
    --menu-h: 28px;
    --glass-bg: rgba(255,255,255,0.08);
    --glass-border: rgba(255,255,255,0.14);
    --glass-blur: blur(30px);
    --win-bg: linear-gradient(180deg, rgba(25,31,46,0.74), rgba(13,16,26,0.68));
    --win-radius: 16px;
    --win-shadow: 0 40px 120px rgba(0,0,0,0.55), 0 18px 48px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.05);
    --close: #ff5f57;
    --minimize: #febc2e;
    --maximize: #28c840;
    --sans: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --mono: 'IBM Plex Mono', 'Menlo', 'Monaco', 'Courier New', monospace;
    --accent: #007aff;
    --text-primary: rgba(255,255,255,0.92);
    --text-secondary: rgba(255,255,255,0.55);
    --text-tertiary: rgba(255,255,255,0.35);
    --surface: rgba(255,255,255,0.08);
    --surface-hover: rgba(255,255,255,0.14);
    --border-subtle: rgba(255,255,255,0.1);
}

/* =============== RESET =============== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: 100%;
    overflow: hidden;
    font-family: var(--sans);
    user-select: none;
    -webkit-user-select: none;
}

body {
    background: var(--wallpaper-image, linear-gradient(135deg, #0f0c29 0%, #302b63 40%, #24243e 70%, #0f0c29 100%));
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transition: filter 0.5s ease, background 0.8s ease;
}

@keyframes wallpaper {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* scrollbars */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); border-radius: 3px; transition: background 0.2s; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.3); }
* { scrollbar-color: rgba(255,255,255,0.18) transparent; scrollbar-width: thin; }
::selection { background: var(--accent); color: #fff; }
::-moz-selection { background: var(--accent); color: #fff; }

/* =============== MOBILE FALLBACK =============== */
#mobile-fallback {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    align-items: center;
    justify-content: center;
}
.mobile-dialog {
    background: rgba(40,40,60,0.92);
    backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 48px 40px;
    text-align: center;
    max-width: 380px;
    width: 90%;
    box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}
.mobile-dialog svg { margin-bottom: 20px; opacity: 0.9; }
.mobile-dialog h2 { color: #fff; font-size: 22px; font-weight: 600; margin-bottom: 12px; }
.mobile-dialog p { color: rgba(255,255,255,0.65); font-size: 14px; line-height: 1.6; margin-bottom: 8px; }
.mobile-sub { color: rgba(255,255,255,0.4) !important; font-size: 13px !important; }
.mobile-hint {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 20px; padding: 10px 18px;
    background: rgba(255,255,255,0.06);
    border-radius: 10px; font-size: 13px; color: rgba(255,255,255,0.5);
}
@media (max-width: 1023px) {
    #mobile-fallback { display: flex; }
    #boot-screen, #login-screen, #desktop { display: none !important; }
}

/* =============== SCREEN SAVER =============== */
#screen-saver {
    position: fixed; inset: 0; z-index: 9000;
    background: #03040a;
    cursor: none;
    isolation: isolate;
    opacity: 1; transition: opacity 0.5s ease;
}
#screen-saver.hidden { display: none; }
#saver-canvas,
.saver-video {
    position: absolute; inset: 0; width: 100%; height: 100%; display: block;
}
.saver-video {
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.45s ease;
    filter: saturate(1.05) contrast(1.02) brightness(0.9);
}
#saver-canvas {
    opacity: 0;
    transition: opacity 0.45s ease;
}
#screen-saver.video-mode .saver-video { opacity: 1; }
#screen-saver.fallback-mode #saver-canvas { opacity: 1; }
.saver-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top, rgba(7,16,34,0.15), transparent 45%),
        linear-gradient(180deg, rgba(3,4,10,0.18), rgba(3,4,10,0.52) 70%, rgba(3,4,10,0.85));
    z-index: 1;
}
.saver-overlay {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    z-index: 2; pointer-events: none;
    gap: 4px;
}
.saver-time {
    font-size: clamp(72px, 14vw, 140px);
    font-weight: 300;
    letter-spacing: -0.02em;
    color: rgba(255,255,255,0.96);
    line-height: 1;
    text-shadow:
        0 24px 80px rgba(0,0,0,0.38),
        0 0 80px rgba(0,210,180,0.16),
        0 0 160px rgba(80,40,255,0.18);
    font-family: -apple-system, 'SF Pro Display', 'Helvetica Neue', sans-serif;
}
.saver-date {
    font-size: clamp(14px, 2vw, 22px);
    font-weight: 400;
    color: rgba(255,255,255,0.68);
    margin-top: 10px;
    letter-spacing: 0.04em;
    font-family: -apple-system, 'SF Pro Text', sans-serif;
}
.saver-name {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,0.36);
    margin-top: 18px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    font-family: -apple-system, sans-serif;
}
.saver-hint {
    position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,0.42); font-size: 12px; letter-spacing: 0.5px;
    font-family: var(--sans); z-index: 3; white-space: nowrap;
    animation: saverHintPulse 4s ease-in-out infinite;
    animation-delay: 3s; opacity: 0; animation-fill-mode: forwards;
}
@keyframes saverHintPulse { 0%,100% { opacity:0.18 } 50% { opacity:0.55 } }

#yt-iframe {
    position: fixed;
    width: 200px;
    height: 200px;
    left: -9999px;
    top: -9999px;
    pointer-events: none;
}

/* =============== CUSTOM CURSOR =============== */
* { cursor: none !important; }
#cursor-dot {
    position: fixed; width: 8px; height: 8px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    pointer-events: none; z-index: 99998;
    transform: translate(-50%,-50%);
    transition: transform 0.1s ease, background 0.2s ease;
    mix-blend-mode: difference;
}
#cursor-ring {
    position: fixed; width: 36px; height: 36px;
    border: 1.5px solid rgba(255,255,255,0.4);
    border-radius: 50%;
    pointer-events: none; z-index: 99997;
    transform: translate(-50%,-50%);
    transition: transform 0.15s ease, width 0.2s ease, height 0.2s ease, opacity 0.2s ease;
}
#cursor-ring.hovering { width: 52px; height: 52px; border-color: rgba(255,255,255,0.6); }
#cursor-ring.clicking { width: 24px; height: 24px; }

/* =============== BOOT SCREEN =============== */
#boot-screen {
    position: fixed; inset: 0; z-index: 8000;
    background: #000;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.8s ease, transform 0.8s ease;
    overflow: hidden;
}
#boot-screen.hidden { opacity: 0; pointer-events: none; transform: scale(1.06); }

/* Full-screen aurora canvas sits behind everything */
#boot-canvas {
    position: absolute; inset: 0; width: 100%; height: 100%;
    z-index: 0;
}

/* Central column */
.boot-center {
    position: relative; z-index: 2;
    display: flex; flex-direction: column; align-items: center; gap: 20px;
}

/* Logo + arc share the same space (stacked absolutely) */
.boot-logo-wrap {
    position: relative; width: 120px; height: 120px;
    display: flex; align-items: center; justify-content: center;
}

/* The logo SVG — animates in via opacity + scale */
.boot-logo-svg {
    position: relative; z-index: 2;
    animation: logoReveal 0.8s cubic-bezier(0.34,1.56,0.64,1) 0.3s both;
    filter: drop-shadow(0 0 24px rgba(110,86,207,0.6));
}
@keyframes logoReveal {
    from { opacity:0; transform:scale(0.6) rotate(-15deg); }
    to   { opacity:1; transform:scale(1) rotate(0deg); }
}

/* Hexagon draws itself */
.boot-hex {
    stroke-dasharray: 360;
    stroke-dashoffset: 360;
    animation: drawHex 1.2s ease 0.5s forwards;
}
@keyframes drawHex { to { stroke-dashoffset: 0; } }

/* S letter draws itself */
.boot-s-text {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: drawS 1s ease 0.9s forwards;
    font-style: normal;
}
@keyframes drawS { to { stroke-dashoffset: 0; } }

/* </> hint fades in after S is drawn */
.boot-code-text {
    opacity: 0;
    animation: fadeInCode 0.5s ease 1.7s forwards;
}
@keyframes fadeInCode { to { opacity: 1; } }

/* Arc progress ring — sits on top of logo perfectly */
.boot-arc-wrap {
    position: absolute; inset: 0; z-index: 3; pointer-events: none;
}
.boot-arc-svg { display: block; }
.boot-arc-fill {
    transition: stroke-dashoffset 0.3s ease-out;
    filter: drop-shadow(0 0 6px rgba(0,210,255,0.7));
}

/* "Portfolio OS" typewriter label */
.boot-label {
    font-family: var(--mono); font-size: 13px; font-weight: 400;
    color: rgba(255,255,255,0.5); letter-spacing: 2px;
    text-transform: uppercase; height: 20px;
    animation: fadeInLabel 0.5s ease 1s both;
}
@keyframes fadeInLabel { from { opacity:0 } to { opacity:1 } }

/* Boot kernel log */
.boot-log {
    width: 380px; max-height: 72px; overflow: hidden;
    font-family: var(--mono); font-size: 10.5px;
    line-height: 1.7;
    display: flex; flex-direction: column; justify-content: flex-end;
    animation: fadeInLabel 0.5s ease 1s both;
}
.boot-log p { animation: fadeInLog 0.25s ease; }
.boot-log .log-ts { color: #6e56cf; margin-right: 6px; }
.boot-log .log-ok  { color: #30d158; }
.boot-log .log-txt { color: rgba(255,255,255,0.32); }
@keyframes fadeInLog { from { opacity:0; transform:translateY(3px) } to { opacity:1; transform:none } }

/* =============== LOGIN SCREEN =============== */
#login-screen {
    position: fixed; inset: 0; z-index: 7000;
    background: linear-gradient(145deg, #0f0c29 0%, #302b63 50%, #1a1a2e 100%);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}
#login-screen.hidden { display: none; }
#login-screen.unlocking { opacity: 0; transform: scale(1.05); pointer-events: none; }
#particle-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.login-top-container {
    position: absolute; top: 52px; left: 50%; transform: translateX(-50%);
    text-align: center; color: #fff; z-index: 2; pointer-events: none;
}
.login-date { font-size: 18px; font-weight: 300; opacity: 0.7; letter-spacing: 0.3px; margin-bottom: 4px; }
.login-time { font-size: 96px; font-weight: 200; letter-spacing: -4px; line-height: 1; font-variant-numeric: tabular-nums; }

.login-container {
    position: relative; z-index: 2;
    display: flex; flex-direction: column; align-items: center; gap: 14px;
    margin-top: 60px;
}
.avatar {
    width: 90px; height: 90px; border-radius: 50%;
    overflow: hidden; background: rgba(255,255,255,0.12);
    border: 2px solid rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.login-username { color: #fff; font-size: 20px; font-weight: 400; letter-spacing: -0.3px; }

.password-field {
    display: flex; align-items: center; gap: 0;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 24px; overflow: hidden;
    width: 200px;
}
.password-field input {
    flex: 1; padding: 9px 18px; background: transparent;
    border: none; outline: none; color: #fff; font-size: 14px; cursor: text !important;
}
.password-field input::placeholder { color: rgba(255,255,255,0.4); }
#login-btn {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.2); border: none; color: #fff;
    display: flex; align-items: center; justify-content: center;
    margin-right: 2px; cursor: pointer !important;
    transition: background 0.2s;
}
#login-btn:hover { background: rgba(255,255,255,0.35); }
.login-hint { font-size: 12px; color: rgba(255,255,255,0.4); }

/* ---- Avatar spinning gradient ring ---- */
.avatar-ring-wrap {
    position: relative; width: 100px; height: 100px;
    display: flex; align-items: center; justify-content: center;
}
.avatar-ring {
    position: absolute; inset: -4px; border-radius: 50%;
    background: conic-gradient(from 0deg, #6e56cf, #00d2ff, #30d158, #ff375f, #6e56cf);
    animation: ringRotate 3s linear infinite;
    padding: 3px;
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #fff calc(100% - 3px));
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #fff calc(100% - 3px));
}
@keyframes ringRotate { to { transform: rotate(360deg); } }

/* Make the avatar itself sit on top */
.avatar-ring-wrap .avatar {
    position: relative; z-index: 1;
}

/* ---- Password field shake on wrong entry ---- */
@keyframes shake {
    0%,100% { transform: translateX(0); }
    15%      { transform: translateX(-8px); }
    30%      { transform: translateX(8px); }
    45%      { transform: translateX(-6px); }
    60%      { transform: translateX(6px); }
    75%      { transform: translateX(-3px); }
    90%      { transform: translateX(3px); }
}
.password-field.shake {
    animation: shake 0.5s ease;
    border-color: var(--close) !important;
    background: color-mix(in srgb, var(--close) 8%, transparent) !important;
}
.login-hint.wrong { color: rgba(255,95,87,0.8) !important; }

/* =============== DESKTOP =============== */
#desktop {
    position: fixed; inset: 0; z-index: 1;
    display: flex; flex-direction: column;
}
#desktop.hidden { display: none; }

/* =============== MENU BAR =============== */
#menu-bar {
    height: var(--menu-h); min-height: var(--menu-h);
    width: 100%;
    background: linear-gradient(180deg, rgba(15,18,29,0.82), rgba(20,24,37,0.68));
    backdrop-filter: var(--glass-blur) saturate(180%);
    -webkit-backdrop-filter: var(--glass-blur) saturate(180%);
    border-bottom: 0.5px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 12px; z-index: 5000; position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.menu-left, .menu-right { display: flex; align-items: center; gap: 2px; }

.menu-btn {
    padding: 2px 10px; background: transparent; border: none;
    color: rgba(255,255,255,0.88); font-size: 13px; font-weight: 400;
    font-family: var(--sans); border-radius: 5px;
    cursor: pointer !important; transition: background 0.15s;
    white-space: nowrap;
}
.menu-btn:hover, .menu-btn.open { background: rgba(255,255,255,0.15); }
.apple-btn { padding: 2px 8px; font-size: 16px; }
.menu-app-name { color: rgba(255,255,255,0.88); font-size: 13px; font-weight: 600; padding: 2px 10px; }

.menu-dropdown { position: relative; }
.dropdown-panel {
    display: none; position: absolute; top: calc(100% + 6px); left: 0;
    background: rgba(40,40,40,0.92);
    backdrop-filter: var(--glass-blur) saturate(200%);
    border: 0.5px solid rgba(255,255,255,0.12);
    border-radius: 8px; min-width: 220px; padding: 5px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    z-index: 6000; animation: dropIn 0.15s ease;
}
@keyframes dropIn { from { opacity:0; transform:translateY(-6px) scale(0.97) } to { opacity:1; transform:none } }
.dropdown-panel.open { display: block; }

.dd-item {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 5px 10px; background: transparent; border: none;
    color: rgba(255,255,255,0.85); font-size: 13px; font-family: var(--sans);
    text-align: left; border-radius: 5px; cursor: pointer !important;
    transition: background 0.12s;
}
.dd-item:hover { background: var(--accent); color: #fff; }
.dd-divider { height: 0.5px; background: rgba(255,255,255,0.1); margin: 4px 8px; }
.dd-shortcut { opacity: 0.5; font-size: 12px; }

.bar-icon {
    padding: 3px 7px; color: rgba(255,255,255,0.85); font-size: 12px;
    display: flex; align-items: center; gap: 4px;
    border-radius: 5px; cursor: pointer !important; transition: background 0.15s;
    background: transparent; border: none;
}
.bar-icon:hover { background: rgba(255,255,255,0.12); }
.menu-clock { font-size: 12px; color: rgba(255,255,255,0.85); padding: 2px 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* =============== CONTROL CENTER =============== */
.control-center {
    position: fixed; top: 36px; right: 8px; z-index: 5500;
    width: 300px;
    background: rgba(40,40,44,0.92);
    backdrop-filter: var(--glass-blur) saturate(180%);
    border: 0.5px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: ccIn 0.2s cubic-bezier(0.34,1.56,0.64,1);
}
.control-center.hidden { display: none; }
@keyframes ccIn { from { opacity:0; transform:scale(0.9) translateY(-10px) } to { opacity:1; transform:none } }
@keyframes ccOut { from { opacity:1; transform:scale(1) translateY(0) } to { opacity:0; transform:scale(0.95) translateY(-8px) } }

.cc-section { display: flex; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.cc-section:last-child { margin-bottom: 0; }

.cc-tile {
    flex: 1; min-width: 60px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px; padding: 12px 10px;
    display: flex; flex-direction: column; align-items: center; gap: 5px;
    cursor: pointer !important; transition: background 0.15s, transform 0.1s;
    min-height: 70px; justify-content: center;
}
.cc-tile:hover { background: rgba(255,255,255,0.16); transform: scale(1.03); }
.cc-tile.active { background: rgba(255,255,255,0.85); }
.cc-tile.active .cc-tile-icon, .cc-tile.active .cc-tile-label { color: #000 !important; }
.cc-tile-icon { font-size: 20px; color: rgba(255,255,255,0.85); }
.cc-tile-label { font-size: 11px; color: rgba(255,255,255,0.6); font-weight: 500; text-align: center; }
.cc-tile-sub { font-size: 10px; color: rgba(255,255,255,0.4); }

.cc-wide { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 12px 14px; }
.cc-wide .cc-tile-info { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.cc-wide .cc-tile-label { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.85); }

.cc-bottom-row { flex-wrap: nowrap; }

.cc-slider-row {
    display: flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,0.08);
    border-radius: 10px; padding: 10px 14px;
    width: 100%;
}
.cc-slider-icon { font-size: 16px; flex-shrink: 0; }
.cc-slider {
    flex: 1; -webkit-appearance: none; height: 4px;
    background: rgba(255,255,255,0.2); border-radius: 2px; outline: none; cursor: pointer !important;
}
.cc-slider::-webkit-slider-thumb {
    -webkit-appearance: none; width: 18px; height: 18px;
    background: #fff; border-radius: 50%; cursor: pointer !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* =============== NOTIFICATION CENTER =============== */
.notif-center {
    position: fixed; top: 36px; right: 8px; z-index: 5400;
    width: 320px; max-height: calc(100vh - 60px); overflow-y: auto;
    background: rgba(30,30,34,0.92);
    backdrop-filter: var(--glass-blur) saturate(180%);
    border: 0.5px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: ccIn 0.2s cubic-bezier(0.34,1.56,0.64,1);
}
.notif-center.hidden { display: none; }
.nc-header { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.5); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.nc-date-section { text-align: center; margin-bottom: 16px; }
.nc-big-date { font-size: 32px; font-weight: 200; color: rgba(255,255,255,0.9); }
.nc-big-day { font-size: 18px; color: rgba(255,255,255,0.5); margin-top: 2px; }
.nc-section-label { font-size: 12px; color: rgba(255,255,255,0.35); font-weight: 600; letter-spacing: 0.5px; margin-bottom: 8px; }
.nc-card {
    background: rgba(255,255,255,0.06);
    border-radius: 12px; padding: 12px; margin-bottom: 8px;
    border: 0.5px solid rgba(255,255,255,0.06);
}
.nc-card-header { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.nc-app-icon { font-size: 14px; }
.nc-app-name { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.6); flex: 1; }
.nc-time { font-size: 11px; color: rgba(255,255,255,0.3); }
.nc-card-body { font-size: 13px; color: rgba(255,255,255,0.75); line-height: 1.4; }

/* =============== SPOTLIGHT =============== */
#spotlight {
    position: fixed; top: 80px; left: 50%; transform: translateX(-50%);
    z-index: 6000; width: 640px;
    animation: spotlightIn 0.2s cubic-bezier(0.34,1.56,0.64,1);
}
#spotlight.hidden { display: none; }
@keyframes spotlightIn { from { opacity:0; transform:translateX(-50%) scale(0.96) } to { opacity:1; transform:translateX(-50%) scale(1) } }

.spotlight-box {
    display: flex; align-items: center; gap: 12px; padding: 14px 18px;
    background: rgba(40,40,44,0.92);
    backdrop-filter: var(--glass-blur) saturate(200%);
    border: 0.5px solid rgba(255,255,255,0.14);
    border-radius: 14px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
#spotlight-input {
    flex: 1; background: transparent; border: none; outline: none;
    color: rgba(255,255,255,0.92); font-size: 20px; font-family: var(--sans);
    cursor: text !important;
}
#spotlight-input::placeholder { color: rgba(255,255,255,0.3); }

.spotlight-results {
    margin-top: 6px;
    background: rgba(40,40,44,0.92);
    backdrop-filter: var(--glass-blur);
    border: 0.5px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.spotlight-results:empty { display: none; }
.sl-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 16px; cursor: pointer !important;
    transition: background 0.1s; border-bottom: 0.5px solid rgba(255,255,255,0.05);
}
.sl-item:last-child { border-bottom: none; }
.sl-item:hover, .sl-item.active { background: var(--accent); }
.sl-item:hover .sl-type, .sl-item.active .sl-type { color: rgba(255,255,255,0.7); }
.sl-icon { font-size: 22px; width: 36px; text-align: center; }
.sl-label { flex: 1; font-size: 14px; color: rgba(255,255,255,0.9); }
.sl-type { font-size: 12px; color: rgba(255,255,255,0.4); }

/* =============== CONTEXT MENU =============== */
.context-menu {
    position: fixed; z-index: 5800;
    background: rgba(40,40,44,0.95);
    backdrop-filter: var(--glass-blur);
    border: 0.5px solid rgba(255,255,255,0.12);
    border-radius: 10px; padding: 5px;
    min-width: 200px;
    box-shadow: 0 16px 50px rgba(0,0,0,0.5);
    animation: dropIn 0.15s ease;
}
.context-menu.hidden { display: none; }
.ctx-item {
    display: block; width: 100%; padding: 6px 12px;
    background: transparent; border: none;
    color: rgba(255,255,255,0.85); font-size: 13px; font-family: var(--sans);
    text-align: left; border-radius: 6px; cursor: pointer !important;
    transition: background 0.12s;
}
.ctx-item:hover:not(.disabled) { background: var(--accent); color: #fff; }
.ctx-item.disabled { opacity: 0.4; cursor: default !important; }
.ctx-divider { height: 0.5px; background: rgba(255,255,255,0.1); margin: 4px 6px; }

/* =============== DESKTOP ICONS =============== */
#desktop-icons {
    position: fixed; top: calc(var(--menu-h) + 16px); left: 16px;
    display: flex; flex-direction: column; gap: 20px; z-index: 75;
}
.desktop-icon {
    display: flex; flex-direction: column; align-items: center; gap: 5px;
    cursor: pointer !important; width: 72px;
    transition: transform 0.15s;
}
.desktop-icon:hover { transform: scale(1.08); }
.desktop-icon:active { transform: scale(0.95); }
.dsk-ico {
    width: 56px; height: 56px; border-radius: 12px;
    background: rgba(255,255,255,0.08);
    border: 0.5px solid rgba(255,255,255,0.12);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    backdrop-filter: blur(12px);
    transition: background 0.15s, box-shadow 0.15s;
}
.desktop-icon:hover .dsk-ico { background: rgba(255,255,255,0.14); box-shadow: 0 4px 16px rgba(0,0,0,0.3); }
.desktop-icon span { font-size: 11px; color: rgba(255,255,255,0.85); text-shadow: 0 1px 4px rgba(0,0,0,0.8); text-align: center; word-break: break-all; }

/* =============== NOTIFICATION TOAST =============== */
.notification {
    position: fixed; top: 40px; right: 20px; z-index: 6200;
    width: 320px;
    background: rgba(40,40,44,0.92);
    backdrop-filter: var(--glass-blur);
    border: 0.5px solid rgba(255,255,255,0.1);
    border-radius: 14px; padding: 14px 16px;
    box-shadow: 0 16px 50px rgba(0,0,0,0.4);
    animation: notifSlide 0.4s cubic-bezier(0.34,1.56,0.64,1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.notification.hidden { display: none; }
.notification.hiding { opacity: 0; transform: translateX(100%); }
@keyframes notifSlide { from { opacity:0; transform:translateX(100%) } to { opacity:1; transform:none } }
.notif-header { display: flex; justify-content: space-between; margin-bottom: 6px; }
.notif-app { font-size: 12px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.4px; }
.notif-time { font-size: 11px; color: var(--text-tertiary); }
.notif-body strong { font-size: 13px; color: var(--text-primary); }
.notif-body p { font-size: 12px; color: var(--text-secondary); margin-top: 3px; line-height: 1.4; }

/* =============== WINDOW BASE =============== */
.window {
    position: absolute;
    background: var(--win-bg);
    backdrop-filter: var(--glass-blur) saturate(180%);
    -webkit-backdrop-filter: var(--glass-blur) saturate(180%);
    border-radius: var(--win-radius);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: var(--win-shadow);
    overflow: hidden;
    display: flex; flex-direction: column;
    min-width: 280px; min-height: 180px;
    transition: box-shadow 0.2s ease;
    animation: winOpen 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes winOpen { from { opacity:0; transform:scale(0.9) } to { opacity:1; transform:scale(1) } }
@keyframes winClose { from { opacity:1; transform:scale(1) } to { opacity:0; transform:scale(0.9) } }
.window.closing { animation: winClose 0.18s ease-in forwards; pointer-events: none; }
.window.restoring { animation: winOpen 0.25s cubic-bezier(0.34,1.56,0.64,1) forwards; }
.window:focus-within { box-shadow: 0 40px 120px rgba(0,0,0,0.7), 0 8px 32px rgba(0,0,0,0.4), 0 0 0 0.5px rgba(255,255,255,0.12); }

.window-header {
    height: 40px; min-height: 40px;
    display: flex; align-items: center; padding: 0 14px;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    border-bottom: 0.5px solid rgba(255,255,255,0.09);
    cursor: grab;
    position: relative;
}
.window-header:active { cursor: grabbing; }
.header-title { font-size: 13px; color: rgba(255,255,255,0.65); font-weight: 500; position: absolute; left: 50%; transform: translateX(-50%); pointer-events: none; white-space: nowrap; }

.window-controls { display: flex; gap: 8px; flex-shrink: 0; z-index: 1; }
.ctrl {
    width: 12px; height: 12px; border-radius: 50%; cursor: pointer !important;
    transition: filter 0.15s, transform 0.1s;
    position: relative;
}
.ctrl:hover { filter: brightness(1.2); transform: scale(1.1); }
.ctrl:active { transform: scale(0.88); }
.ctrl.close { background: var(--close); }
.ctrl.minimize { background: var(--minimize); }
.ctrl.maximize { background: var(--maximize); }
.ctrl.disabled { background: rgba(255,255,255,0.15); cursor: default !important; }
.ctrl { position: relative; }
.ctrl::after { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.window-header:hover .ctrl.close::after    { content: '✕'; font-size: 8px; line-height: 1; color: rgba(0,0,0,0.7); }
.window-header:hover .ctrl.minimize::after { content: '−'; font-size: 10px; line-height: 1; color: rgba(0,0,0,0.7); }
.window-header:hover .ctrl.maximize::after { content: '⤢'; font-size: 8px; line-height: 1; color: rgba(0,0,0,0.7); }

.window-body {
    flex: 1; overflow: auto; position: relative;
    color: var(--text-primary);
    min-height: 0; /* required: lets flex child shrink so overflow:auto actually scrolls */
}

/* =============== RESIZE HANDLES =============== */
.resize-handle {
    position: absolute; bottom: 0; right: 0;
    width: 20px; height: 20px; cursor: nwse-resize !important;
    background: transparent;
    z-index: 10;
}
.resize-handle-left {
    position: absolute; bottom: 0; left: 0;
    width: 20px; height: 20px; cursor: nesw-resize !important;
    background: transparent;
    z-index: 10;
}

/* =============== MISSION CONTROL =============== */
#desktop.mission-control { align-items: flex-start; }
#desktop.mission-control .window {
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), box-shadow 0.4s ease;
}
#desktop.mission-control .window:hover {
    box-shadow: 0 0 0 3px var(--accent), var(--win-shadow);
}

/* =============== ABOUT MAC WINDOW =============== */
.about-mac-body {
    display: flex; flex-direction: column; align-items: center;
    padding: 28px 24px; gap: 6px; text-align: center;
    color: var(--text-primary);
}
.about-mac-body svg { opacity: 0.6; margin-bottom: 8px; }
.about-mac-body h3 { font-size: 18px; font-weight: 600; }
.about-mac-body .version { font-size: 13px; color: var(--text-secondary); margin-bottom: 10px; }
.specs p { font-size: 13px; color: var(--text-secondary); margin: 3px 0; }
.specs strong { color: var(--text-primary); }

/* =============== SETTINGS WINDOW =============== */
.settings-body { display: flex; }
.settings-sidebar {
    width: 160px; min-width: 160px;
    background: rgba(255,255,255,0.03);
    border-right: 0.5px solid rgba(255,255,255,0.06);
    padding: 10px 6px;
}
.settings-item {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 10px; border-radius: 7px; font-size: 13px;
    color: var(--text-secondary); cursor: pointer !important; transition: background 0.12s;
}
.settings-item:hover { background: var(--surface-hover); color: var(--text-primary); }
.settings-item.active { background: var(--accent); color: #fff; }
.si-icon { font-size: 16px; }

.settings-main { flex: 1; padding: 18px 20px; overflow-y: auto; }
.settings-pane h3 { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.settings-desc { font-size: 12px; color: var(--text-secondary); margin-bottom: 16px; }
.settings-pane.hidden { display: none; }

.wallpaper-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.wallpaper-opt {
    display: flex; flex-direction: column; align-items: center; gap: 5px;
    cursor: pointer !important; padding: 3px;
    border-radius: 8px; border: 2px solid transparent; transition: border-color 0.15s;
}
.wallpaper-opt.active { border-color: var(--accent); }
.wp-preview { width: 100%; height: 50px; border-radius: 6px; }
.wallpaper-opt span { font-size: 11px; color: var(--text-secondary); }

.setting-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 0; border-bottom: 0.5px solid var(--border-subtle); gap: 12px;
}
.setting-row:last-child { border-bottom: none; }
.setting-row label { font-size: 13px; color: var(--text-primary); flex-shrink: 0; }
.setting-value { font-size: 13px; color: var(--text-secondary); text-align: right; }

.toggle-group { display: flex; background: rgba(255,255,255,0.08); border-radius: 7px; padding: 2px; gap: 2px; }
.toggle-btn {
    padding: 4px 14px; border-radius: 5px; border: none; background: transparent;
    color: var(--text-secondary); font-size: 12px; cursor: pointer !important; transition: background 0.15s, color 0.15s;
    font-family: var(--sans);
}
.toggle-btn.active { background: var(--accent); color: #fff; }

.accent-colors { display: flex; gap: 8px; }
.accent-dot {
    width: 22px; height: 22px; border-radius: 50%; cursor: pointer !important;
    transition: transform 0.1s; border: 2px solid transparent;
}
.accent-dot:hover { transform: scale(1.15); }
.accent-dot.active { border-color: rgba(255,255,255,0.8); transform: scale(1.1); }

.settings-range {
    flex: 1; -webkit-appearance: none; height: 4px;
    background: rgba(255,255,255,0.15); border-radius: 2px; outline: none; cursor: pointer !important;
}
.settings-range::-webkit-slider-thumb {
    -webkit-appearance: none; width: 16px; height: 16px;
    background: var(--accent); border-radius: 50%; cursor: pointer !important;
}
.settings-input {
    background: rgba(255,255,255,0.06); border: 0.5px solid rgba(255,255,255,0.12);
    border-radius: 6px; padding: 5px 10px; color: var(--text-primary); font-size: 13px;
    font-family: var(--sans); outline: none; flex: 1; min-width: 0; cursor: text !important;
}
.settings-input:focus { border-color: var(--accent); }
.settings-input[readonly] { cursor: default !important; color: var(--text-secondary); opacity: 0.65; background: repeating-linear-gradient(45deg,transparent,transparent 4px,rgba(255,255,255,0.02) 4px,rgba(255,255,255,0.02) 8px); user-select: none; }
.settings-input[readonly]:focus { border-color: rgba(255,255,255,0.12); }

/* =============== FINDER WINDOW =============== */
.finder-body { display: flex; height: 100%; }
.finder-sidebar {
    width: 160px; min-width: 160px;
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border-right: 0.5px solid rgba(255,255,255,0.08);
    padding: 14px 8px; overflow-y: auto;
}
.sidebar-label { font-size: 11px; font-weight: 600; color: var(--text-tertiary); padding: 4px 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.sidebar-item {
    display: flex; align-items: center; gap: 7px;
    padding: 6px 8px; border-radius: 6px; font-size: 13px;
    color: var(--text-secondary); cursor: pointer !important; transition: background 0.12s;
}
.sidebar-item:hover { background: var(--surface-hover); color: var(--text-primary); }
.sidebar-item.active { background: var(--accent); color: #fff; }
.finder-main {
    flex: 1; padding: 24px 24px 26px; overflow-y: auto; color: var(--text-primary);
    user-select: text; -webkit-user-select: text;
    min-height: 0;
}
.finder-main h2 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.finder-main p { font-size: 14px; color: var(--text-secondary); line-height: 1.65; margin-bottom: 8px; }
.about-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; user-select: text; -webkit-user-select: text; }
.tag {
    padding: 5px 12px; background: rgba(255,255,255,0.08);
    border: 0.5px solid rgba(255,255,255,0.1); border-radius: 20px;
    font-size: 12px; color: var(--text-secondary); font-weight: 500;
    transition: all 0.2s;
}
.tag:hover {
    background: var(--accent); border-color: var(--accent);
    color: #fff; transform: translateY(-2px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 40%, transparent);
}

/* =============== SAFARI / PROJECTS WINDOW =============== */
.safari-bar { gap: 12px; }
.url-bar {
    flex: 1; display: flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.08); border-radius: 8px; padding: 5px 12px;
    font-size: 12px; color: rgba(255,255,255,0.55);
    border: 0.5px solid rgba(255,255,255,0.08);
}
.safari-body { padding: 16px; overflow-y: auto; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 18px; }
.project-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.04));
    border: 0.5px solid rgba(255,255,255,0.1);
    border-radius: 18px; overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s ease;
}
.project-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 24px 60px rgba(0,0,0,0.45); }
.card-img {
    height: 128px; display: flex; align-items: center; justify-content: center; position: relative;
}
.grad-1 { background: linear-gradient(135deg, #6e56cf, #00d2ff); }
.grad-2 { background: linear-gradient(135deg, #ff375f, #ff9f0a); }
.grad-3 { background: linear-gradient(135deg, #007aff, #30d158); }
.grad-4 { background: linear-gradient(135deg, #ff9f0a, #ff375f); }
.card-emoji { font-size: 40px; transition: transform 0.2s; }
.project-card:hover .card-emoji { transform: rotate(-5deg) scale(1.1); }
.card-info { padding: 16px 16px 18px; }
.card-info h3 { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.card-info p { font-size: 12px; color: rgba(255,255,255,0.62); line-height: 1.6; margin-bottom: 10px; }
.card-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.card-tags span {
    padding: 4px 8px; background: rgba(255,255,255,0.08);
    border-radius: 999px; font-size: 10px; color: rgba(255,255,255,0.46);
}

/* =============== TERMINAL WINDOW =============== */
.terminal .window-header { background: rgba(0,0,0,0.6); }
.terminal-title { font-size: 12px; color: rgba(255,255,255,0.5); font-family: var(--mono); }
.terminal-body {
    background: rgba(10,10,10,0.95); padding: 12px 14px;
    overflow-y: auto; font-family: var(--mono); font-size: 13px;
    color: rgba(255,255,255,0.87); line-height: 1.6; display: flex; flex-direction: column;
    position: relative;
}
/* CRT scanline effect */
.terminal-body::after {
    content: '';
    position: absolute; inset: 0; pointer-events: none;
    background: repeating-linear-gradient(to bottom, transparent 0px, transparent 3px, rgba(0,0,0,0.04) 3px, rgba(0,0,0,0.04) 4px);
    z-index: 1;
}
#terminal-output { user-select: text; -webkit-user-select: text; }
#terminal-output pre { white-space: pre-wrap; }
.g { color: #50fa7b; font-weight: 500; }
.b { color: #8be9fd; }
.term-dim { color: rgba(255,255,255,0.35); font-size: 12px; }
.term-cmd { color: #bd93f9; }
.term-link { color: #8be9fd; text-decoration: underline; cursor: pointer !important; }

.terminal-input-line {
    display: flex; align-items: center; gap: 6px; margin-top: 6px;
    position: relative; z-index: 2;
}
.term-input {
    flex: 1; background: transparent; border: none; outline: none;
    color: rgba(255,255,255,0.87); font-family: var(--mono); font-size: 13px;
    caret-color: rgba(255,255,255,0.6); cursor: text !important;
}

/* Matrix canvas inside terminal */
#matrix-canvas { border-radius: 0; }

/* =============== NOTES WINDOW =============== */
.notes-bar { background: linear-gradient(180deg, rgba(212,160,50,0.28), rgba(180,120,20,0.12)); }
.notes-body { display: flex; height: 100%; }
.notes-sidebar {
    width: 180px; min-width: 180px;
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border-right: 0.5px solid rgba(255,255,255,0.08);
    padding: 10px 0;
}
.note-row {
    padding: 10px 14px; cursor: pointer !important; transition: background 0.12s;
    border-bottom: 0.5px solid rgba(255,255,255,0.04);
}
.note-row:hover { background: var(--surface-hover); }
.note-row.active { background: rgba(255,200,50,0.1); }
.note-row strong { display: block; font-size: 13px; color: var(--text-primary); }
.note-row small { font-size: 11px; color: var(--text-tertiary); }

.notes-main { flex: 1; padding: 22px 22px 24px; overflow-y: auto; color: var(--text-primary); user-select: text; -webkit-user-select: text; min-height: 0; }
.note-pane { display: none; }
.note-pane.active-pane { display: block; }
.notes-date { font-size: 11px; color: var(--text-tertiary); font-weight: 500; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.notes-main h2 { font-size: 21px; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.02em; }
.notes-main p { font-size: 13px; color: var(--text-secondary); line-height: 1.65; margin-bottom: 8px; }
.notes-main a { color: var(--accent); text-decoration: none; }
.notes-main a:hover { text-decoration: underline; }

/* Contact form */
.contact-form { margin-top: 6px; }
.form-input, .form-textarea {
    width: 100%; margin-bottom: 8px; padding: 8px 12px;
    background: rgba(255,255,255,0.06);
    border: 0.5px solid rgba(255,255,255,0.1);
    border-radius: 8px; color: var(--text-primary); font-family: var(--sans); font-size: 13px;
    outline: none; resize: none; cursor: text !important;
    transition: border-color 0.2s;
}
.form-input:focus, .form-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.form-textarea { height: 120px; }
.form-submit {
    width: 100%; padding: 9px; background: var(--accent); border: none; border-radius: 8px;
    color: #fff; font-size: 13px; font-weight: 500; font-family: var(--sans);
    cursor: pointer !important; transition: filter 0.15s, transform 0.1s;
}
.form-submit:hover { filter: brightness(1.15); }
.form-submit:active { transform: scale(0.97); }

/* Social links */
.social-links { display: flex; flex-direction: column; gap: 10px; }
.social-link {
    display: flex; align-items: center; gap: 12px;
    padding: 12px; text-decoration: none;
    background: rgba(255,255,255,0.05);
    border: 0.5px solid rgba(255,255,255,0.08);
    border-radius: 10px; transition: background 0.15s, transform 0.15s;
    color: var(--text-primary);
}
.social-link:hover { background: rgba(255,255,255,0.1); transform: translateX(4px); }
.social-icon { font-size: 22px; }
.social-link strong { display: block; font-size: 13px; }
.social-link small { font-size: 11px; color: var(--text-tertiary); }

/* =============== MUSIC PLAYER =============== */
.music-body {
    display: flex; flex-direction: column; align-items: center;
    padding: 22px 18px 16px; gap: 14px;
    background:
        radial-gradient(circle at top, rgba(110,86,207,0.22), transparent 32%),
        linear-gradient(180deg, rgba(18,18,32,0.95), rgba(11,12,21,0.98));
    overflow: hidden;
}
.music-art {
    width: 200px; height: 200px; border-radius: 20px; overflow: hidden;
    box-shadow: 0 24px 70px rgba(0,0,0,0.72), 0 0 0 0.5px rgba(255,255,255,0.12);
    flex-shrink: 0;
}
.music-art-inner {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #1a1a2e, #6e56cf, #00d2ff);
    display: flex; align-items: center; justify-content: center;
    transition: background 0.8s ease;
    animation: bgShift 8s ease infinite alternate;
}
@keyframes bgShift {
    0%   { background: linear-gradient(135deg, #1a1a2e, #6e56cf, #00d2ff); }
    33%  { background: linear-gradient(135deg, #1a0010, #ff375f, #ff9f0a); }
    66%  { background: linear-gradient(135deg, #001a10, #30d158, #007aff); }
    100% { background: linear-gradient(135deg, #1a0a00, #ff9f0a, #bf5af2); }
}
#music-art-emoji { font-size: 72px; filter: drop-shadow(0 4px 16px rgba(0,0,0,0.5)); animation: musicFloat 3s ease-in-out infinite; }
@keyframes musicFloat { 0%,100% { transform:translateY(0) rotate(-5deg) } 50% { transform:translateY(-10px) rotate(5deg) } }

.music-info { text-align: center; width: 100%; }
.music-track { font-size: 16px; font-weight: 600; color: var(--text-primary); }
.music-artist { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }

.music-visualizer {
    width: 100%; height: 60px; border-radius: 8px;
    background: rgba(255,255,255,0.04);
    border: 0.5px solid rgba(255,255,255,0.06);
}

.music-progress-wrap {
    display: flex; align-items: center; gap: 8px; width: 100%;
}
.music-time { font-size: 11px; color: var(--text-tertiary); font-family: var(--mono); min-width: 32px; }
.music-progress {
    flex: 1; height: 4px; background: rgba(255,255,255,0.15);
    border-radius: 2px; cursor: pointer !important; position: relative;
    transition: height 0.2s;
}
.music-progress:hover { height: 6px; }
.music-fill {
    height: 100%; background: linear-gradient(90deg, var(--accent), #bf5af2);
    border-radius: 2px; position: relative; transition: width 0.4s linear;
}
.music-thumb {
    position: absolute; right: -6px; top: 50%;
    width: 12px; height: 12px; background: #fff; border-radius: 50%;
    transform: translateY(-50%); opacity: 0; transition: opacity 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.music-progress:hover .music-thumb { opacity: 1; }

.music-controls {
    display: flex; align-items: center; gap: 20px;
}
.music-btn {
    background: transparent; border: none; color: rgba(255,255,255,0.7);
    font-size: 24px; cursor: pointer !important; transition: color 0.15s, transform 0.1s;
    padding: 4px; line-height: 1;
}
.music-btn:hover { color: #fff; transform: scale(1.1); }
.music-btn:active { transform: scale(0.9); }
.music-play {
    font-size: 28px !important; width: 52px; height: 52px;
    background: rgba(255,255,255,0.12) !important; border-radius: 50%;
    display: flex !important; align-items: center; justify-content: center;
}
.music-play:hover { background: rgba(255,255,255,0.2) !important; }

.music-playlist { width: 100%; border-top: 0.5px solid rgba(255,255,255,0.07); padding-top: 10px; max-height: 210px; overflow-y: auto; }
.music-playlist::-webkit-scrollbar { width: 3px; }
.music-playlist::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }
.music-yt-badge { text-align: center; font-size: 10px; color: rgba(255,255,255,0.2); padding: 8px 0 2px; letter-spacing: 0.5px; }
.playlist-item {
    display: flex; align-items: center; gap: 10px; padding: 9px 10px;
    border-radius: 12px; cursor: pointer !important; transition: background 0.12s, transform 0.12s;
}
.playlist-item:hover { background: rgba(255,255,255,0.06); transform: translateX(2px); }
.playlist-item.active { background: rgba(255,255,255,0.1); }
.pl-num { font-size: 12px; color: var(--text-tertiary); font-family: var(--mono); min-width: 16px; }
.playlist-item.active .pl-num { color: var(--accent); }
.pl-info { flex: 1; display: flex; justify-content: space-between; align-items: center; }
.pl-info span { font-size: 13px; color: var(--text-primary); }
.pl-info small { font-size: 11px; color: var(--text-tertiary); font-family: var(--mono); }

/* =============== VS CODE WINDOW =============== */
.vscode-bar { background: #323233 !important; border-bottom: 0.5px solid #1e1e1e !important; }
.vscode-title { font-size: 12px; color: rgba(255,255,255,0.5) !important; }
.vscode-body {
    display: flex; flex-direction: column;
    background: #1e1e1e;
    color: #d4d4d4;
    font-family: var(--mono);
    font-size: 13px;
    overflow: hidden;
}
.vscode-main-area {
    display: flex; flex: 1; overflow: hidden; min-height: 0;
}
.vscode-sidebar {
    width: 46px; background: #333333;
    display: flex; flex-direction: column;
    border-right: 0.5px solid #252526;
    flex-shrink: 0;
}
.vscode-sidebar-top {
    display: flex; flex-direction: column;
    align-items: center; gap: 2px; padding: 8px 0;
}
.vscode-sidebar-bottom {
    margin-top: auto;
    display: flex; flex-direction: column;
    align-items: center; gap: 2px; padding: 8px 0;
}
.vscode-sidebar-icon {
    position: relative;
    width: 46px; height: 40px; border-radius: 0;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.4); cursor: pointer !important;
    transition: color 0.15s, background 0.15s;
}
.vscode-sidebar-icon:hover { color: rgba(255,255,255,0.75); background: rgba(255,255,255,0.05); }
.vscode-sidebar-icon.active { color: rgba(255,255,255,0.92); }
.vscode-sidebar-icon.active::before {
    content: ''; position: absolute; left: 0; top: 50%;
    transform: translateY(-50%);
    width: 2px; height: 24px;
    background: rgba(255,255,255,0.9);
    border-radius: 0 2px 2px 0;
}

.vscode-explorer {
    width: 180px; background: #252526;
    border-right: 0.5px solid #1e1e1e;
    overflow-y: auto; padding-top: 4px;
    flex-shrink: 0;
}
.vscode-exp-header {
    font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.4);
    padding: 8px 14px 4px; letter-spacing: 0.8px;
}
.vscode-exp-item {
    display: flex; align-items: center; gap: 6px;
    padding: 4px 12px; font-size: 13px; color: rgba(255,255,255,0.65);
    cursor: pointer !important; transition: background 0.1s;
}
.vscode-exp-item:hover { background: rgba(255,255,255,0.06); }
.vscode-exp-item.open { color: rgba(255,255,255,0.85); cursor: default; }
.vscode-exp-file {
    display: flex; align-items: center; gap: 7px;
    padding: 4px 12px 4px 22px; font-size: 13px; color: rgba(255,255,255,0.55);
    cursor: pointer !important; transition: background 0.1s; position: relative;
}
.vscode-exp-file:hover { background: rgba(255,255,255,0.07); }
.vscode-exp-file.active {
    background: #37373d; color: rgba(255,255,255,0.92);
}
.vscode-exp-file.active::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0;
    width: 2px; background: #007acc; border-radius: 0 1px 1px 0;
}

.file-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 14px; font-size: 7.5px; font-weight: 800;
    border-radius: 2px; flex-shrink: 0; letter-spacing: -0.3px;
    font-family: -apple-system, sans-serif;
}
.fi-js   { background: #f0db4f; color: #323330; }
.fi-css  { background: #264de4; color: #fff; }
.fi-html { background: #e34c26; color: #fff; }
.fi-json { background: #cbcb41; color: #1e1e1e; }
.fi-md   { background: #519aba; color: #fff; }
.fi-git  { background: #f1502f; color: #fff; }

.vscode-panel-input {
    width: 100%; background: #3c3c3c; border: 1px solid #555;
    color: #d4d4d4; font-size: 12px; padding: 4px 8px;
    border-radius: 2px; outline: none; font-family: inherit;
}
.vscode-search-match {
    padding: 2px 12px 2px 20px; font-size: 11px;
    color: rgba(255,255,255,0.45); cursor: pointer;
    font-family: 'SF Mono', 'Menlo', monospace;
    transition: background 0.1s; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
}
.vscode-search-match:hover { background: rgba(255,255,255,0.07); }
.git-badge {
    color: #e2c08d; font-weight: 700; font-size: 12px;
    width: 14px; flex-shrink: 0;
}
.vscode-ext-item {
    display: flex; align-items: center; gap: 10px;
    padding: 7px 12px; cursor: pointer; transition: background 0.1s;
}
.vscode-ext-item:hover { background: rgba(255,255,255,0.06); }
.ext-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 5px;
    color: #fff; font-size: 13px; font-weight: 700; flex-shrink: 0;
}

.vscode-editor { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.vscode-tabs {
    display: flex; background: #2d2d2d; border-bottom: 0.5px solid #1e1e1e; height: 35px;
}
.vscode-tab {
    display: flex; align-items: center; gap: 6px;
    padding: 0 12px; font-size: 12.5px; color: rgba(255,255,255,0.42);
    background: #2d2d2d; border-right: 0.5px solid #252526;
    border-top: 1px solid transparent;
    cursor: pointer !important; transition: color 0.12s, background 0.12s;
    min-width: 0; white-space: nowrap;
}
.vscode-tab:hover { color: rgba(255,255,255,0.72); background: #2a2a2a; }
.vscode-tab.active {
    color: rgba(255,255,255,0.90); background: #1e1e1e;
    border-top-color: #007acc;
}
.vscode-tab-close {
    font-size: 14px; color: rgba(255,255,255,0.0); margin-left: 2px;
    transition: color 0.1s;
}
.vscode-tab:hover .vscode-tab-close,
.vscode-tab.active .vscode-tab-close { color: rgba(255,255,255,0.35); }
.vscode-tab-close:hover { color: rgba(255,255,255,0.8) !important; }

.vscode-code {
    flex: 1; overflow: auto; padding: 14px 0; line-height: 1.6;
    background: #1e1e1e; color: #d4d4d4;
    counter-reset: line-num;
}
.code-line {
    display: flex; padding: 0 14px 0 0;
    white-space: pre; min-height: 20px;
    transition: background 0.1s;
}
.code-line:hover { background: rgba(255,255,255,0.03); }
.line-num {
    min-width: 42px; padding-right: 16px; text-align: right;
    color: rgba(255,255,255,0.2); user-select: none; -webkit-user-select: none;
    font-size: 12px;
}
.code-content { flex: 1; }
/* Syntax highlight colors */
.syn-kw  { color: #569cd6; } /* keyword: let, const, function */
.syn-fn  { color: #dcdcaa; } /* function name */
.syn-str { color: #ce9178; } /* string */
.syn-num { color: #b5cea8; } /* number */
.syn-cmt { color: #6a9955; font-style: italic; } /* comment */
.syn-cls { color: #4ec9b0; } /* class name */
.syn-op  { color: #d4d4d4; } /* operator */
.syn-punc{ color: #d4d4d4; }
.syn-var { color: #9cdcfe; }
.syn-bool{ color: #569cd6; }

.vscode-statusbar { display: flex; justify-content: space-between; align-items: center; background: #007acc; color: #fff; font-size: 11px; padding: 0 10px; height: 22px; font-family: var(--mono); flex-shrink: 0; }
.vsc-sb-left, .vsc-sb-right { opacity: 0.9; }

/* ─── VSCode debug panel ─── */
.vscode-debug-panel {
    background: #1e1e1e; border-top: 1px solid #3a3a3a;
    flex-shrink: 0; display: flex; flex-direction: column; max-height: 140px;
}
.vscode-debug-tabs {
    display: flex; align-items: center; gap: 0;
    background: #252526; border-bottom: 0.5px solid #3a3a3a;
    padding: 0 8px; height: 26px; flex-shrink: 0;
}
.vscode-debug-tab {
    font-size: 11px; font-family: var(--mono); color: rgba(255,255,255,0.4);
    padding: 0 10px; height: 26px; line-height: 26px; cursor: pointer;
    letter-spacing: 0.5px; transition: color 0.1s;
}
.vscode-debug-tab.active { color: rgba(255,255,255,0.85); border-bottom: 1px solid #007acc; }
.vscode-debug-toggle {
    margin-left: auto; background: none; border: none; color: rgba(255,255,255,0.4);
    font-size: 14px; cursor: pointer; padding: 0 6px; line-height: 26px;
    transition: color 0.15s;
}
.vscode-debug-toggle:hover { color: rgba(255,255,255,0.8); }
.vscode-debug-log {
    overflow-y: auto; padding: 6px 12px; flex: 1;
    font-family: var(--mono); font-size: 12px; line-height: 1.6;
}
.vscode-debug-log.vscode-debug-collapsed { display: none; }
.vscode-log-line { white-space: pre-wrap; word-break: break-all; }

/* =============== TEXTEDIT WINDOW =============== */
.textedit-body { display: flex; flex-direction: column; background: #1e1e1e; }
.textedit-toolbar {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 10px; background: #2d2d2d;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.te-font-select, .te-size-select {
    padding: 3px 6px; background: #3a3a3a; border: 1px solid rgba(255,255,255,0.12);
    border-radius: 4px; font-size: 12px; cursor: pointer !important;
    color: rgba(255,255,255,0.85);
}
.te-divider { width: 1px; height: 20px; background: rgba(255,255,255,0.12); margin: 0 4px; }
.te-btn {
    padding: 3px 8px; background: transparent; border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px; font-size: 13px; cursor: pointer !important;
    color: rgba(255,255,255,0.8); transition: background 0.15s;
}
.te-btn:hover { background: rgba(255,255,255,0.08); }
.textedit-content {
    flex: 1; padding: 20px 24px; overflow-y: auto;
    color: rgba(255,255,255,0.88); background: #1e1e1e; font-size: 14px; line-height: 1.7;
}
.te-h1 { font-size: 22px; font-weight: 700; margin-bottom: 4px; color: rgba(255,255,255,0.95); }
.te-h2 { font-size: 16px; font-weight: 600; margin-bottom: 4px; color: rgba(255,255,255,0.9); }
.te-p { margin-bottom: 4px; }
/* TextEdit light-mode overrides */
html.light-mode .textedit-body { background: #fff; }
html.light-mode .textedit-toolbar { background: #f2f2f2; border-bottom: 1px solid #ddd; }
html.light-mode .te-font-select,
html.light-mode .te-size-select { background: #fff; border: 1px solid #ccc; color: #1a1a1a; }
html.light-mode .te-divider { background: #ccc; }
html.light-mode .te-btn { border: 1px solid #ccc; color: #1a1a1a; }
html.light-mode .te-btn:hover { background: #e5e5e5; }
html.light-mode .textedit-content { color: #1a1a1a; background: #fff; }
html.light-mode .te-h1 { color: #111; }
html.light-mode .te-h2 { color: #222; }

/* =============== NODE_MODULES WINDOW =============== */
.nm-header {
    display: flex; align-items: center; gap: 16px; margin-bottom: 14px;
    padding-bottom: 14px; border-bottom: 0.5px solid var(--border-subtle);
}
.nm-icon { font-size: 48px; }
.nm-warning {
    background: rgba(255,159,10,0.15); border: 0.5px solid rgba(255,159,10,0.3);
    border-radius: 8px; padding: 10px 14px; font-size: 13px;
    color: rgba(255,200,80,0.85); margin-bottom: 14px;
}
.nm-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; overflow-y: auto; max-height: 160px; }
.nm-item {
    padding: 7px 10px; background: rgba(255,255,255,0.05);
    border: 0.5px solid rgba(255,255,255,0.07); border-radius: 8px;
    font-size: 12px; color: var(--text-secondary); font-family: var(--mono);
    transition: background 0.12s;
}
.nm-item:hover { background: rgba(255,255,255,0.08); }
.nm-item-more { grid-column: 1/-1; text-align: center; color: var(--text-tertiary); font-style: italic; }

/* =============== TODO WINDOW =============== */
.todo-items { display: flex; flex-direction: column; gap: 10px; }
.todo-item {
    display: flex; align-items: flex-start; gap: 10px; font-size: 13px;
    color: var(--text-secondary); line-height: 1.4; cursor: pointer !important;
}
.todo-item input[type=checkbox] { margin-top: 2px; accent-color: var(--accent); cursor: pointer !important; }
.todo-item:has(input:checked) { color: var(--text-tertiary); text-decoration: line-through; }

/* =============== DOCK =============== */
#dock-wrapper {
    position: fixed; bottom: 8px; left: 50%; transform: translateX(-50%);
    z-index: 4000; padding: 3px 4px;
    background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.1));
    backdrop-filter: var(--glass-blur) saturate(200%);
    border: 0.5px solid rgba(255,255,255,0.24);
    border-radius: 22px;
    box-shadow: 0 16px 50px rgba(0,0,0,0.35), 0 0 0 0.5px rgba(0,0,0,0.2);
}
#dock { display: flex; align-items: flex-end; gap: 4px; min-height: 50px; padding: 0 2px; }

.dock-item {
    width: 48px; height: 48px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; position: relative;
    cursor: pointer !important; transition: width 0.15s ease, height 0.15s ease; flex-shrink: 0;
    border-radius: 14px;
}

.dock-icon-art {
    width: 42px; height: 42px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), width 0.15s ease, height 0.15s ease;
    box-shadow: 0 12px 22px rgba(0,0,0,0.28);
}
.dock-item:hover .dock-icon-art { transform: translateY(-8px) scale(1.15); }
.dock-item:active .dock-icon-art { transform: translateY(-4px) scale(1.05); }

.dock-dot {
    position: absolute; bottom: -6px; width: 4px; height: 4px;
    background: rgba(255,255,255,0.7); border-radius: 50%;
    opacity: 0; transition: opacity 0.2s;
}
.dock-dot.visible { opacity: 1; }

.dock-sep { width: 1px; height: 36px; background: rgba(255,255,255,0.2); margin: 0 4px; align-self: center; }

/* Dock icon arts */
.finder-art {
    background: linear-gradient(180deg, #a8caff 0%, #3478f6 100%);
    position: relative; overflow: hidden;
}
.finder-top { position:absolute;top:0;left:0;right:50%;bottom:0;background:linear-gradient(180deg,#a0c4ff,#5b9cf6); }
.finder-bot { position:absolute;top:0;left:50%;right:0;bottom:0;background:linear-gradient(180deg,#e8e8e8,#bdbdbd); }
.finder-face { position:absolute;inset:0;display:flex;align-items:center;justify-content:center; }
.f-eye { width:5px;height:5px;border-radius:50%;background:#334;position:absolute;top:38%; }
.f-eye.l { left:30%; }
.f-eye.r { right:30%; }
.f-nose { width:2px;height:3px;background:#556;position:absolute;top:52%;left:50%;transform:translateX(-50%); }
.f-mouth { width:12px;height:4px;border-bottom:2px solid #334;border-radius:0 0 7px 7px;position:absolute;bottom:28%;left:50%;transform:translateX(-50%); }

.terminal-art {
    background: linear-gradient(135deg, #1a2744, #0d1f3c);
    color: #50fa7b; font-family: var(--mono); font-size: 16px; font-weight: 700;
    letter-spacing: -1px;
    text-shadow: 0 0 10px rgba(80,250,123,0.8);
    box-shadow: inset 0 0 12px rgba(80,250,123,0.1);
}

.safari-art {
    background: linear-gradient(135deg, #a8d8f0, #0076c8);
    position: relative; overflow: hidden;
}
.compass {
    width: 28px; height: 28px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.7);
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.needle {
    width: 2px; height: 20px; border-radius: 1px;
    background: linear-gradient(to bottom, #ff3b30 50%, #fff 50%);
    position: absolute; transform-origin: center;
    transform: rotate(45deg);
}

.notes-art {
    background: linear-gradient(180deg, #fffde7, #fff9c4);
    flex-direction: column; gap: 2px; padding: 6px 5px;
    justify-content: flex-start;
}
.notes-top-bar { width: 100%; height: 8px; background: #ffb300; border-radius: 2px; margin-bottom: 3px; }
.notes-line { width: 100%; height: 2px; background: rgba(180,140,0,0.3); border-radius: 1px; }

/* Dock-icon-only music (renamed from music-art to avoid collision with player .music-art) */
.music-dock-art {
    background: linear-gradient(145deg, #1a1a2e 0%, #4a2880 50%, #6e56cf 100%);
    font-size: 26px; position: relative; overflow: hidden;
}
.music-dock-art::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.12), transparent 60%);
}

/* VS Code dock icon — proper gradient + depth */
.vscode-art {
    background: linear-gradient(145deg, #0052a3 0%, #007ACC 55%, #2ca3e6 100%);
    position: relative; overflow: hidden;
}
.vscode-art::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.18), transparent 55%);
    pointer-events: none;
}

/* Settings — only the SVG/gear rotates, not the whole rounded-square */
.settings-art {
    background: linear-gradient(145deg, #2c2c2e 0%, #48484a 100%);
    position: relative; overflow: hidden;
}
.settings-art::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.09), transparent 55%);
    pointer-events: none;
}
.settings-art svg { animation: settingsRotate var(--rot-dur, 9s) linear infinite; }
.dock-item:hover .settings-art svg { --rot-dur: 1.6s; }
@keyframes settingsRotate { to { transform: rotate(360deg); } }

/* Trash — silver-glass macOS style */
.trash-art {
    background: linear-gradient(160deg, rgba(180,180,190,0.18) 0%, rgba(100,100,115,0.22) 100%);
    backdrop-filter: blur(12px);
    border: 0.5px solid rgba(255,255,255,0.12);
    position: relative; overflow: hidden;
}
.trash-art::after {
    content: ''; position: absolute;
    top: 3px; left: 6px; right: 6px; height: 35%;
    background: linear-gradient(180deg, rgba(255,255,255,0.14), transparent);
    border-radius: 3px; pointer-events: none;
}
.trash-art svg .trash-lid {
    transform-box: fill-box;
    transform-origin: 0% 100%;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.trash-art.open svg .trash-lid {
    transform: rotate(-32deg);
}

/* Bounce animation for new app open */
@keyframes dockBounce {
    0%   { transform: translateY(0) scale(1); }
    30%  { transform: translateY(-14px) scale(1.18); }
    50%  { transform: translateY(-4px) scale(1.08); }
    70%  { transform: translateY(-10px) scale(1.13); }
    85%  { transform: translateY(-2px) scale(1.05); }
    100% { transform: translateY(0) scale(1); }
}
.dock-icon-art.bouncing { animation: dockBounce 0.6s cubic-bezier(0.34,1.56,0.64,1); }

/* =============== DOCK REFLECTION =============== */
#dock-wrapper::after {
    content: '';
    position: absolute; left: 8px; right: 8px;
    top: calc(100% + 2px); height: 28px;
    background: inherit;
    transform: scaleY(-1) translateY(0);
    opacity: 0.18;
    mask-image: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
    -webkit-mask-image: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
    border-radius: 0 0 16px 16px;
    pointer-events: none;
    filter: blur(1px);
}
#dock-wrapper { overflow: visible; }

/* =============== DESKTOP WALLPAPER PARALLAX =============== */
body::before {
    content: '';
    position: fixed; inset: -20px;
    background: inherit;
    background-attachment: fixed;
    z-index: -1;
}

/* =============== WINDOW BACKDROP OVERLAY =============== */
#desktop-overlay {
    position: fixed; inset: 0; z-index: 50;
    pointer-events: none;
    background: rgba(0,0,0,0);
    transition: background 0.3s ease;
}
#desktop-overlay.active { background: rgba(0,0,0,0.12); backdrop-filter: blur(1px); }

/* =============== LIGHT MODE OVERRIDES =============== */

/* ─── Scrollbar ─── */
html.light-mode ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); }
html.light-mode ::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.32); }
html.light-mode * { scrollbar-color: rgba(0,0,0,0.2) transparent; }

/* ─── Cursor ring (dot uses mix-blend-mode:difference so it auto-inverts) ─── */
html.light-mode #cursor-ring {
    border-color: rgba(0,0,0,0.35);
}
html.light-mode #cursor-ring.hovering { border-color: rgba(0,0,0,0.55); }

/* ─── Menu Bar ─── */
html.light-mode #menu-bar {
    background: rgba(235,235,240,0.88);
    border-bottom: 0.5px solid rgba(0,0,0,0.1);
}
html.light-mode .menu-btn { color: rgba(0,0,0,0.82); }
html.light-mode .menu-btn:hover,
html.light-mode .menu-btn.open { background: rgba(0,0,0,0.09); }
html.light-mode .menu-app-name,
html.light-mode .apple-btn { color: rgba(0,0,0,0.82); }
html.light-mode .bar-icon { color: rgba(0,0,0,0.75); }
html.light-mode .bar-icon:hover { background: rgba(0,0,0,0.08); }
html.light-mode .menu-clock { color: rgba(0,0,0,0.75); }

/* ─── Dropdown panels ─── */
html.light-mode .dropdown-panel {
    background: rgba(248,248,252,0.97);
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.14);
}
html.light-mode .dd-item { color: rgba(0,0,0,0.82); }
html.light-mode .dd-divider { background: rgba(0,0,0,0.08); }

/* ─── Context Menu ─── */
html.light-mode .context-menu {
    background: rgba(248,248,252,0.97);
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 16px 50px rgba(0,0,0,0.14);
}
html.light-mode .ctx-item { color: rgba(0,0,0,0.82); }
html.light-mode .ctx-divider { background: rgba(0,0,0,0.08); }

/* ─── Control Center ─── */
html.light-mode .control-center {
    background: rgba(240,240,245,0.96);
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.14);
}
html.light-mode .cc-tile {
    background: rgba(255,255,255,0.75);
    color: rgba(0,0,0,0.8);
}
html.light-mode .cc-tile:hover { background: rgba(255,255,255,0.9); }
html.light-mode .cc-tile.active { background: var(--accent); color: #fff; }
html.light-mode .cc-tile-icon { color: rgba(0,0,0,0.75); }
html.light-mode .cc-tile.active .cc-tile-icon { color: #fff; }
html.light-mode .cc-tile-label { color: rgba(0,0,0,0.55); }
html.light-mode .cc-tile.active .cc-tile-label { color: rgba(255,255,255,0.85); }
html.light-mode .cc-tile-sub { color: rgba(0,0,0,0.38); }
html.light-mode .cc-wide .cc-tile-label { color: rgba(0,0,0,0.8); }
html.light-mode .cc-wide.active .cc-tile-label { color: rgba(255,255,255,0.9); }
html.light-mode .cc-section-label { color: rgba(0,0,0,0.45); }
html.light-mode .cc-slider-track { background: rgba(0,0,0,0.12); }
html.light-mode input[type="range"].cc-slider {
    background: rgba(0,0,0,0.12);
}

/* ─── Notification Centre panel ─── */
html.light-mode .notif-center {
    background: rgba(240,240,245,0.96);
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.14);
}
html.light-mode .nc-header { color: rgba(0,0,0,0.45); }
html.light-mode .nc-big-date { color: rgba(0,0,0,0.85); }
html.light-mode .nc-big-day { color: rgba(0,0,0,0.5); }
html.light-mode .nc-section-label { color: rgba(0,0,0,0.38); }
html.light-mode .nc-card {
    background: rgba(255,255,255,0.75);
    border-color: rgba(0,0,0,0.07);
}
html.light-mode .nc-app-name { color: rgba(0,0,0,0.6); }
html.light-mode .nc-time { color: rgba(0,0,0,0.35); }
html.light-mode .nc-card-body { color: rgba(0,0,0,0.75); }

/* ─── Notification Toast ─── */
html.light-mode .notification {
    background: rgba(248,248,252,0.97);
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 16px 50px rgba(0,0,0,0.12);
}
html.light-mode .notif-app { color: rgba(0,0,0,0.5); }
html.light-mode .notif-body strong { color: rgba(0,0,0,0.85); }
html.light-mode .notif-body p { color: rgba(0,0,0,0.55); }
html.light-mode .notif-time { color: rgba(0,0,0,0.38); }

/* ─── Spotlight ─── */
html.light-mode .spotlight-box {
    background: rgba(248,248,252,0.97);
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 30px 80px rgba(0,0,0,0.18);
}
html.light-mode #spotlight-input { color: rgba(0,0,0,0.85); }
html.light-mode #spotlight-input::placeholder { color: rgba(0,0,0,0.3); }
html.light-mode .spotlight-results {
    background: rgba(248,248,252,0.97);
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.14);
}
html.light-mode .sl-item { border-bottom-color: rgba(0,0,0,0.05); }
html.light-mode .sl-label { color: rgba(0,0,0,0.85); }
html.light-mode .sl-type { color: rgba(0,0,0,0.4); }

/* ─── Desktop Icons ─── */
html.light-mode .dsk-ico {
    background: rgba(0,0,0,0.07);
    border-color: rgba(0,0,0,0.1);
}
html.light-mode .desktop-icon:hover .dsk-ico {
    background: rgba(0,0,0,0.12);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
html.light-mode .desktop-icon span {
    color: rgba(0,0,0,0.82);
    text-shadow: 0 1px 3px rgba(255,255,255,0.8);
}

/* ─── Window chrome ─── */
html.light-mode .window {
    background: rgba(248,248,255,0.55);
    border-color: rgba(0,0,0,0.1);
}
html.light-mode .window:focus-within {
    box-shadow: 0 40px 120px rgba(0,0,0,0.12), 0 8px 32px rgba(0,0,0,0.08), 0 0 0 0.5px rgba(0,0,0,0.12);
}
html.light-mode .window-header {
    background: rgba(0,0,0,0.04);
    border-bottom-color: rgba(0,0,0,0.08);
}
html.light-mode .header-title { color: rgba(0,0,0,0.5); }

/* ─── Settings window ─── */
html.light-mode .settings-sidebar,
html.light-mode .finder-sidebar {
    background: rgba(0,0,0,0.03);
    border-right-color: rgba(0,0,0,0.08);
}
html.light-mode .toggle-group { background: rgba(0,0,0,0.07); }
html.light-mode .settings-range {
    background: rgba(0,0,0,0.14);
}
html.light-mode .settings-input {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.12);
}
html.light-mode .settings-input::placeholder { color: rgba(0,0,0,0.3); }
html.light-mode .accent-dot.active { border-color: rgba(0,0,0,0.5); }

/* ─── Tags & URL bar ─── */
html.light-mode .tag {
    background: rgba(0,0,0,0.06);
    border-color: rgba(0,0,0,0.1);
}
html.light-mode .url-bar {
    background: rgba(0,0,0,0.06);
    border-color: rgba(0,0,0,0.08);
    color: rgba(0,0,0,0.55);
}

/* ─── Project cards ─── */
html.light-mode .project-card {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.08);
}
html.light-mode .project-card:hover {
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}
html.light-mode .card-tags span {
    background: rgba(0,0,0,0.06);
}

/* ─── Dock ─── */
html.light-mode #dock-wrapper {
    background: rgba(215,215,222,0.80);
    border-color: rgba(0,0,0,0.14);
    box-shadow: 0 8px 32px rgba(0,0,0,0.13), 0 0 0 0.5px rgba(0,0,0,0.07);
}
html.light-mode .dock-sep { background: rgba(0,0,0,0.18); }
html.light-mode .dock-dot { background: rgba(0,0,0,0.45); }
html.light-mode .dock-item::before {
    background: rgba(245,245,250,0.97);
    color: rgba(0,0,0,0.85);
    border: 0.5px solid rgba(0,0,0,0.1);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* ─── Music Player ─── */
html.light-mode .music-body {
    background: linear-gradient(180deg, rgba(250,247,255,0.99), rgba(236,230,252,1));
}
html.light-mode .music-art {
    box-shadow: 0 20px 60px rgba(0,0,0,0.2), 0 0 0 0.5px rgba(0,0,0,0.08);
}
html.light-mode .music-btn { color: rgba(0,0,0,0.6); }
html.light-mode .music-btn:hover { color: rgba(0,0,0,0.88); }
html.light-mode .music-play {
    background: rgba(0,0,0,0.08) !important;
    color: rgba(0,0,0,0.8);
}
html.light-mode .music-play:hover { background: rgba(0,0,0,0.14) !important; }
html.light-mode .music-visualizer { background: rgba(0,0,0,0.05); }
html.light-mode .music-progress { background: rgba(0,0,0,0.12); }
html.light-mode .music-thumb { background: rgba(0,0,0,0.5); }
html.light-mode .music-playlist { border-top-color: rgba(0,0,0,0.08); }
html.light-mode .playlist-item:hover { background: rgba(0,0,0,0.05); }
html.light-mode .playlist-item.active { background: rgba(0,0,0,0.08); }

/* ─── Notes sidebar ─── */
html.light-mode .notes-sidebar {
    background: rgba(0,0,0,0.03);
    border-right-color: rgba(0,0,0,0.08);
}
html.light-mode .note-row { border-bottom-color: rgba(0,0,0,0.05); }
html.light-mode .note-row:hover { background: rgba(0,0,0,0.04); }
html.light-mode .note-row.active { background: rgba(255,180,0,0.12); }
html.light-mode .note-row strong { color: rgba(0,0,0,0.82); }
html.light-mode .note-row small { color: rgba(0,0,0,0.38); }

/* ─── node_modules warning ─── */
html.light-mode .nm-warning {
    background: rgba(255,159,10,0.1);
    border-color: rgba(200,120,0,0.25);
    color: rgba(140,80,0,0.9);
}
html.light-mode .nm-item {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.07);
    color: rgba(0,0,0,0.55);
}
html.light-mode .nm-item:hover { background: rgba(0,0,0,0.07); }
html.light-mode .nm-item-more { color: rgba(0,0,0,0.35); }

/* ─── Todo window ─── */
html.light-mode .todo-item { color: rgba(0,0,0,0.6); }

/* ─── About tags ─── */
html.light-mode .tag { color: rgba(0,0,0,0.6); }
html.light-mode .tag:hover { color: #fff; }

/* ─── Social links ─── */
html.light-mode .social-link {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.08);
    color: rgba(0,0,0,0.82);
}
html.light-mode .social-link:hover { background: rgba(0,0,0,0.08); }
html.light-mode .social-link small { color: rgba(0,0,0,0.38); }

/* ─── Contact form ─── */
html.light-mode .form-input,
html.light-mode .form-textarea {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.12);
    color: rgba(0,0,0,0.85);
}
html.light-mode .form-input::placeholder,
html.light-mode .form-textarea::placeholder { color: rgba(0,0,0,0.35); }
html.light-mode .form-input:focus,
html.light-mode .form-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}

/* ─── Sidebar items (common) ─── */
html.light-mode .sidebar-item { color: rgba(0,0,0,0.55); }
html.light-mode .sidebar-item:hover { color: rgba(0,0,0,0.82); }
html.light-mode .sidebar-item.active { color: #fff; }
html.light-mode .sidebar-label { color: rgba(0,0,0,0.32); }

/* ─── Settings sidebar items ─── */
html.light-mode .settings-item { color: rgba(0,0,0,0.55); }
html.light-mode .settings-item:hover { color: rgba(0,0,0,0.82); }
html.light-mode .settings-item.active { color: #fff; }

/* ─── Card info text ─── */
html.light-mode .card-info h3 { color: rgba(0,0,0,0.85); }
html.light-mode .card-info p  { color: rgba(0,0,0,0.55); }
html.light-mode .card-tags span {
    background: rgba(0,0,0,0.06);
    color: rgba(0,0,0,0.45);
}

/* ─── Window header title ─── */
html.light-mode .header-title { color: rgba(0,0,0,0.5); }

/* ─── About Mac specs ─── */
html.light-mode .specs p { color: rgba(0,0,0,0.55); }
html.light-mode .specs strong { color: rgba(0,0,0,0.85); }

/* ─── Music track/artist ─── */
html.light-mode .music-track  { color: rgba(0,0,0,0.85); }
html.light-mode .music-artist { color: rgba(0,0,0,0.5); }
html.light-mode .music-time   { color: rgba(0,0,0,0.4); }
html.light-mode .pl-info span { color: rgba(0,0,0,0.78); }
html.light-mode .pl-info small { color: rgba(0,0,0,0.4); }
html.light-mode .pl-num       { color: rgba(0,0,0,0.35); }
html.light-mode .playlist-item.active .pl-num { color: var(--accent); }

/* ─── Wallpaper option labels ─── */
html.light-mode .wallpaper-opt span { color: rgba(0,0,0,0.55); }
html.light-mode .settings-pane h3  { color: rgba(0,0,0,0.85); }
html.light-mode .settings-desc     { color: rgba(0,0,0,0.45); }
html.light-mode .setting-row label { color: rgba(0,0,0,0.75); }
html.light-mode .setting-value     { color: rgba(0,0,0,0.45); }
html.light-mode .toggle-btn        { color: rgba(0,0,0,0.55); }
html.light-mode .toggle-btn.active { color: #fff; }

/* ─── Control Center slider row ─── */
html.light-mode .cc-slider-row {
    background: rgba(0,0,0,0.05);
}
html.light-mode .cc-slider-icon { color: rgba(0,0,0,0.6); }

/* ─── Notes bar (keep yellowish tint in light mode too — matches macOS Notes) ─── */
html.light-mode .window-header.notes-bar {
    background: linear-gradient(180deg, rgba(255,196,0,0.18), rgba(200,150,0,0.10));
    border-bottom-color: rgba(200,150,0,0.15);
}

/* =============== MOBILE COMPANION =============== */
#mobile-companion {
    display: none;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(160deg, #0a0a1a 0%, #0f0c29 30%, #1a1040 60%, #0a0a1a 100%);
    color: rgba(255,255,255,0.92);
    font-family: var(--sans);
    overflow: hidden;
    position: relative;
}

@media (max-width: 1023px) {
    #mobile-companion { display: flex; }
    #boot-screen, #login-screen, #desktop, #screen-saver { display: none !important; }
}

.mob-status-bar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 24px 8px;
    font-size: 14px; font-weight: 600;
    position: sticky; top: 0; z-index: 100;
    background: linear-gradient(180deg, rgba(10,10,26,0.95) 60%, transparent);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.mob-notch {
    width: 120px; height: 32px;
    background: #000; border-radius: 0 0 20px 20px;
    position: absolute; left: 50%; transform: translateX(-50%); top: 0;
}
.mob-icons { display: flex; gap: 6px; align-items: center; color: rgba(255,255,255,0.7); }
.mob-time { font-size: 15px; font-weight: 600; }

.mob-scroll {
    flex: 1; overflow-y: auto; overflow-x: hidden;
    padding: 0 20px 40px;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Hero */
.mob-hero {
    display: flex; flex-direction: column; align-items: center;
    padding: 34px 0 24px;
    text-align: center;
}
.mob-avatar-wrap {
    width: 100px; height: 100px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #6e56cf, #00d2ff, #30d158);
    margin-bottom: 16px;
    animation: avatarGlow 4s ease-in-out infinite alternate;
}
@keyframes avatarGlow {
    0% { box-shadow: 0 0 20px rgba(110,86,207,0.3); }
    100% { box-shadow: 0 0 30px rgba(0,210,255,0.4); }
}
.mob-avatar {
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #0a0a1a;
}
.mob-avatar-fallback {
    width: 100%; height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #6e56cf, #00d2ff);
    display: flex; align-items: center; justify-content: center;
    font-size: 36px; font-weight: 700; color: #fff;
    border: 3px solid #0a0a1a;
}
.mob-name {
    font-size: 26px; font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.mob-role {
    font-size: 14px; color: rgba(255,255,255,0.5);
    margin-top: 4px; font-weight: 400;
}
.mob-status-badge {
    display: flex; align-items: center; gap: 8px;
    margin-top: 14px;
    padding: 6px 16px;
    background: rgba(48,209,88,0.1);
    border: 1px solid rgba(48,209,88,0.2);
    border-radius: 20px;
    font-size: 13px; font-weight: 500;
    color: #30d158;
}
.mob-status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #30d158;
    box-shadow: 0 0 8px rgba(48,209,88,0.5);
    animation: statusPulse 2s ease-in-out infinite;
}

/* Sections */
.mob-section {
    margin-top: 24px;
}
.mob-section-title {
    font-size: 18px; font-weight: 600;
    letter-spacing: -0.3px;
    margin-bottom: 12px;
    padding-left: 4px;
}
.mob-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.035));
    border: 0.5px solid rgba(255,255,255,0.1);
    border-radius: 18px;
    padding: 18px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}
.mob-card p {
    font-size: 14px; line-height: 1.6;
    color: rgba(255,255,255,0.65);
    margin-bottom: 6px;
}
.mob-card p:last-child { margin-bottom: 0; }
.mob-card strong { color: rgba(255,255,255,0.9); }

/* Tags */
.mob-tags {
    display: flex; flex-wrap: wrap; gap: 8px;
}
.mob-tag {
    padding: 6px 14px;
    background: rgba(255,255,255,0.06);
    border: 0.5px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    font-size: 13px; font-weight: 500;
    color: rgba(255,255,255,0.7);
    transition: all 0.2s;
}
.mob-tag:active {
    background: var(--accent, #007aff);
    color: #fff;
    transform: scale(0.95);
}

/* Project Cards */
.mob-project-card {
    display: flex; gap: 14px;
    padding: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.035));
    border: 0.5px solid rgba(255,255,255,0.09);
    border-radius: 18px;
    margin-bottom: 12px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s, transform 0.15s, border-color 0.15s;
}
.mob-project-card:active {
    background: rgba(255,255,255,0.08);
    transform: scale(0.98);
}
.mob-project-icon {
    width: 52px; height: 52px; min-width: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
}
.mob-project-info h3 {
    font-size: 15px; font-weight: 600;
    color: rgba(255,255,255,0.92);
    margin-bottom: 3px;
}
.mob-project-info p {
    font-size: 13px; color: rgba(255,255,255,0.5);
    line-height: 1.45;
    margin-bottom: 6px;
}
.mob-project-tags {
    display: flex; gap: 5px;
}
.mob-project-tags span {
    padding: 2px 8px;
    background: rgba(255,255,255,0.07);
    border-radius: 8px;
    font-size: 11px;
    color: rgba(255,255,255,0.4);
}

/* Contact Links */
.mob-contact-link {
    display: flex; gap: 14px; align-items: center;
    padding: 14px 0;
    text-decoration: none;
    color: inherit;
    border-bottom: 0.5px solid rgba(255,255,255,0.06);
}
.mob-contact-link:last-child { border-bottom: none; }
.mob-contact-link span:first-child { font-size: 22px; }
.mob-contact-link strong {
    display: block; font-size: 15px;
    color: rgba(255,255,255,0.9);
}
.mob-contact-link small {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

/* Footer */
.mob-footer {
    text-align: center;
    padding: 24px 0 20px;
    font-size: 12px;
    color: rgba(255,255,255,0.2);
}
.mob-footer p { margin: 2px 0; }

/* CTA */
.mob-cta { margin-bottom: 10px; }

/* =============== DYNAMIC WALLPAPER SUPPORT =============== */
body[data-wallpaper] {
    animation: none;
}

/* =============== IMPROVED WINDOW FOCUS =============== */
.window {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.window.focused {
    box-shadow: 0 40px 120px rgba(0,0,0,0.7), 0 8px 32px rgba(0,0,0,0.4), 0 0 0 0.5px rgba(255,255,255,0.12);
}

/* =============== DOCK TOOLTIP IMPROVEMENT =============== */
.dock-item::before {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: rgba(30,30,34,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: rgba(255,255,255,0.9);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s, transform 0.15s;
    border: 0.5px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 9999;
}
.dock-item:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* =============== IMPROVED BOOT SCREEN =============== */
.boot-center {
    animation: bootFadeIn 1s ease-out;
}
@keyframes bootFadeIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* =============== BETTER SCROLLBAR FOR MOBILE =============== */
.mob-scroll::-webkit-scrollbar { display: none; }
.mob-scroll { -ms-overflow-style: none; scrollbar-width: none; }

/* =============== WINDOW SNAP PREVIEW =============== */
#snap-preview {
    position: fixed;
    z-index: 9998;
    pointer-events: none;
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    border: 2px solid color-mix(in srgb, var(--accent) 40%, transparent);
    border-radius: 12px;
    opacity: 0;
    transition: all 0.2s cubic-bezier(0.34,1.56,0.64,1);
}
#snap-preview.visible {
    opacity: 1;
}

/* =============== VS CODE TYPING CURSOR =============== */
.vscode-cursor {
    display: inline-block;
    width: 2px;
    height: 16px;
    background: #fff;
    margin-left: 2px;
    vertical-align: middle;
    animation: vscodeBlink 1s step-end infinite;
}
@keyframes vscodeBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* =============== ANIMATED GRADIENT TEXT =============== */
.gradient-text {
    background: linear-gradient(90deg, #6e56cf, #00d2ff, #30d158, #ff375f, #6e56cf);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease infinite;
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* =============== FINDER CONTENT UPGRADES =============== */
.about-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 20px 0 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border-subtle);
}

/* Status indicator in Finder */
.about-status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(48,209,88,0.08);
    border: 1px solid rgba(48,209,88,0.2);
    border-radius: 20px;
    font-size: 13px;
    color: #30d158;
    margin-top: 10px;
    margin-bottom: 14px;
}
.about-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #30d158;
    box-shadow: 0 0 6px rgba(48,209,88,0.5);
    animation: statusPulse 2s ease-in-out infinite;
}
@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

/* =============== SKILL BAR ANIMATION =============== */
.skill-bar-wrap {
    margin: 6px 0;
}
.skill-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.skill-bar-track {
    height: 6px;
    background: var(--surface);
    border-radius: 3px;
    overflow: hidden;
}
.skill-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--accent), #bf5af2);
    width: 0;
    transition: width 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* =============== PROJECT CARD LINK =============== */
.card-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    margin-top: 4px;
    transition: gap 0.2s;
}
.card-link:hover {
    gap: 8px;
}
.card-link::after {
    content: '\2192';
    transition: transform 0.2s;
}
.card-link:hover::after {
    transform: translateX(2px);
}

/* =============== ENHANCED WINDOW HEADER DRAG =============== */
.window-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
    pointer-events: none;
}

/* =============== KEYBOARD HINT =============== */
.keyboard-hint {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30,30,34,0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 0.5px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3500;
    animation: hintFadeIn 0.5s ease 2s both, hintFadeOut 0.5s ease 8s both;
}
@keyframes hintFadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes hintFadeOut {
    from { opacity: 1; }
    to   { opacity: 0; pointer-events: none; }
}
.kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    background: rgba(255,255,255,0.12);
    border: 0.5px solid rgba(255,255,255,0.2);
    border-radius: 5px;
    font-family: var(--mono);
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    min-width: 24px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.kbd-hint-text {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

/* Light mode overrides for new elements */
html.light-mode #snap-preview {
    background: color-mix(in srgb, var(--accent) 8%, transparent);
    border-color: color-mix(in srgb, var(--accent) 30%, transparent);
}
html.light-mode .about-status-indicator {
    background: rgba(48,209,88,0.06);
}
html.light-mode .skill-bar-track {
    background: rgba(0,0,0,0.06);
}
html.light-mode .keyboard-hint {
    background: rgba(248,248,252,0.95);
    border-color: rgba(0,0,0,0.1);
}
html.light-mode .kbd {
    background: rgba(0,0,0,0.06);
    border-color: rgba(0,0,0,0.12);
    color: rgba(0,0,0,0.6);
}
html.light-mode .kbd-hint-text {
    color: rgba(0,0,0,0.5);
}

/* =============== RESUME BUTTON =============== */
.resume-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--accent), #bf5af2);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--sans);
    cursor: pointer !important;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
    box-shadow: 0 4px 16px color-mix(in srgb, var(--accent) 40%, transparent);
}
.resume-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 50%, transparent);
    filter: brightness(1.1);
}
.resume-btn:active {
    transform: translateY(0) scale(0.98);
}

/* =============== ENHANCED PROJECT CARDS HOVER =============== */
.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg,
        transparent 0%,
        rgba(255,255,255,0.02) 50%,
        transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.project-card:hover::before {
    opacity: 1;
}
.project-card {
    position: relative;
}

/* =============== SNAKE GAME =============== */
.snake-window-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 12px 8px;
    background: transparent;
    gap: 8px;
    position: relative;
    overflow: hidden;
}
.snake-hud {
    display: flex;
    justify-content: space-between;
    width: 520px;
    font-size: 12px;
    font-family: var(--mono);
    color: var(--text-secondary);
    padding: 0 2px;
}
.snake-hud strong { color: #30d158; }
.snake-pause-btn {
    background: rgba(48,209,88,0.12);
    border: 1px solid rgba(48,209,88,0.3);
    border-radius: 4px;
    color: #30d158;
    font-size: 11px;
    line-height: 1;
    padding: 1px 6px;
    cursor: pointer;
    transition: background 0.15s;
}
.snake-pause-btn:hover { background: rgba(48,209,88,0.25); }
html.light-mode .snake-pause-btn { border-color: rgba(0,150,50,0.3); color: #1a8f3a; background: rgba(0,150,50,0.08); }
#snake-canvas {
    display: block;
    border-radius: 8px;
    border: 1px solid rgba(48,209,88,0.2);
    box-shadow: 0 4px 24px rgba(0,0,0,0.5), inset 0 0 0 0.5px rgba(48,209,88,0.08);
    cursor: crosshair;
}
.snake-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: inherit;
    transition: opacity 0.25s ease;
    z-index: 10;
}
.snake-overlay.hidden { display: none; }
.snake-overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    padding: 24px;
}
.snake-ol-title {
    font-size: 36px;
    font-weight: 800;
    font-family: var(--mono);
    color: #30d158;
    text-shadow: 0 0 30px rgba(48,209,88,0.6), 0 0 60px rgba(48,209,88,0.3);
    letter-spacing: 2px;
}
.snake-ol-msg {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    font-family: var(--mono);
}
.snake-ol-final {
    font-size: 16px;
    font-weight: 700;
    color: #ffd60a;
    font-family: var(--mono);
    text-shadow: 0 0 12px rgba(255,214,10,0.5);
}
.snake-start-btn {
    background: #30d158;
    color: #000;
    border: none;
    padding: 10px 32px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--mono);
    cursor: pointer !important;
    transition: transform 0.1s, filter 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 20px rgba(48,209,88,0.3);
    letter-spacing: 0.5px;
}
.snake-start-btn:hover {
    filter: brightness(1.15);
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(48,209,88,0.5);
}
.snake-start-btn:active { transform: scale(0.97); }
.snake-hint {
    font-size: 10px;
    color: rgba(255,255,255,0.22);
    font-family: var(--mono);
    letter-spacing: 0.3px;
}
/* Dock icon */
.snake-dock-art {
    background: linear-gradient(135deg, #0d3320 0%, #1a5c35 60%, #30d158 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    filter: drop-shadow(0 2px 6px rgba(48,209,88,0.4));
}
/* Light mode: hint text gets darker */
html.light-mode .snake-hint { color: rgba(0,0,0,0.35); }
html.light-mode .snake-hud  { color: rgba(0,0,0,0.6); }

/* =============== CLICK RIPPLE =============== */
.click-ripple {
    position: fixed;
    pointer-events: none;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.5);
    width: 40px; height: 40px;
    margin-left: -20px; margin-top: -20px;
    transform: scale(0);
    opacity: 1;
    animation: ripple-out 0.55s ease-out forwards;
    z-index: 99998;
}
@keyframes ripple-out {
    to { transform: scale(5); opacity: 0; }
}

/* =============== CONFETTI =============== */
@keyframes confetti-fly {
    0%   { transform: translateY(0) rotate(0deg) scale(1); opacity: 1; }
    100% { transform: translateY(-300px) rotate(720deg) scale(0.2); opacity: 0; }
}

/* =============== VSCODE UNSAVED DOT =============== */
.vsc-dirty {
    display: none;
    color: #e5c07b;
    font-size: 9px;
    margin-right: 4px;
    vertical-align: middle;
}

/* =============== TRASH WINDOW =============== */
.trash-body {
    display: flex; flex-direction: column;
    background: var(--surface, #1c1c1e); padding: 0; overflow: hidden;
}
.trash-items-list {
    flex: 1; overflow-y: auto; padding: 8px 0;
}
.trash-item {
    display: flex; align-items: center; gap: 12px;
    padding: 9px 18px; cursor: default;
    transition: background 0.12s;
}
.trash-item:hover { background: rgba(255,255,255,0.05); }
.ti-icon { font-size: 26px; flex-shrink: 0; }
.ti-info {
    display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0;
}
.ti-name {
    font-size: 13px; color: var(--text-primary, rgba(255,255,255,0.85));
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ti-desc {
    font-size: 11px; color: var(--text-tertiary, rgba(255,255,255,0.35));
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ti-sz {
    font-size: 11px; color: var(--text-tertiary, rgba(255,255,255,0.3));
    flex-shrink: 0; font-variant-numeric: tabular-nums;
}
.trash-empty-state {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 8px;
    padding: 20px;
}
.trash-empty-icon { font-size: 64px; opacity: 0.6; }
.trash-empty-title { font-size: 18px; font-weight: 600; color: rgba(255,255,255,0.7); }
.trash-empty-sub { font-size: 13px; color: rgba(255,255,255,0.3); }
.trash-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 18px;
    border-top: 0.5px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    font-size: 12px; color: rgba(255,255,255,0.35);
}
.trash-empty-btn {
    background: #ff3b30; color: #fff;
    border: none; border-radius: 6px;
    padding: 5px 14px; font-size: 12px; font-weight: 600;
    cursor: pointer; transition: background 0.15s, opacity 0.15s;
}
.trash-empty-btn:hover:not(:disabled) { background: #ff6059; }
.trash-empty-btn:disabled { cursor: default; }

/* =============== CONSOLE APP =============== */
.console-dock-art {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border: 0.5px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
}
.console-body {
    display: flex; flex-direction: column; background: #1a1a1a; padding: 0;
}
.console-toolbar {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 10px; background: #252525;
    border-bottom: 1px solid rgba(255,255,255,0.06); flex-shrink: 0;
}
.console-filters { display: flex; gap: 4px; }
.con-filter {
    padding: 3px 10px; border-radius: 5px; border: 0.5px solid rgba(255,255,255,0.12);
    background: transparent; color: rgba(255,255,255,0.5); font-size: 11px;
    cursor: pointer; transition: all 0.15s;
}
.con-filter.active, .con-filter:hover { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.9); }
.console-search {
    flex: 1; background: rgba(255,255,255,0.06); border: 0.5px solid rgba(255,255,255,0.1);
    border-radius: 5px; padding: 3px 9px; color: rgba(255,255,255,0.8);
    font-size: 11px; outline: none; font-family: var(--mono);
}
.console-col-header {
    display: grid; grid-template-columns: 110px 56px 140px 1fr;
    padding: 4px 10px; background: #222;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 10px; color: rgba(255,255,255,0.35);
    text-transform: uppercase; letter-spacing: 0.5px; flex-shrink: 0;
}
.console-log-list {
    flex: 1; overflow-y: auto; font-family: var(--mono); font-size: 11px;
    line-height: 1.6;
}
.console-log-list::-webkit-scrollbar { width: 6px; }
.console-log-list::-webkit-scrollbar-track { background: transparent; }
.console-log-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; }
.con-row {
    display: grid; grid-template-columns: 110px 56px 140px 1fr;
    padding: 2px 10px; border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: background 0.1s;
}
.con-row:hover { background: rgba(255,255,255,0.04); }
.con-col-time  { color: rgba(255,255,255,0.3); white-space: nowrap; }
.con-col-type  { font-weight: 600; }
.con-col-process { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.con-col-msg   { color: rgba(255,255,255,0.75); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.con-type-info  { color: #30d158; }
.con-type-warn  { color: #ffd60a; }
.con-type-error { color: #ff453a; }
.con-type-debug { color: #636366; }
.con-level-error { background: rgba(255,69,58,0.06); }
.con-level-warn  { background: rgba(255,214,10,0.05); }

/* =============== PRESENCE ENGINE =============== */
.presence-cpu {
    font-family: var(--mono);
    transition: color 0.5s;
}
.presence-cpu.hot { color: #ff453a; }

/* =============== KERNEL PANIC =============== */
#kernel-panic {
    position: fixed; inset: 0; z-index: 99999;
    background: #1a1a1a;
    display: flex; align-items: center; justify-content: center;
    opacity: 1; transition: opacity 0.4s;
}
#kernel-panic.hidden { display: none; }
.panic-content {
    text-align: center; color: rgba(255,255,255,0.85);
    max-width: 540px; padding: 40px 32px;
}
.panic-icon { font-size: 64px; margin-bottom: 20px; filter: grayscale(1); }
.panic-content h2 {
    font-size: 20px; font-weight: 400; margin: 0 0 10px;
    color: rgba(255,255,255,0.9);
}
.panic-sub { font-size: 13px; color: rgba(255,255,255,0.4); margin: 0 0 20px; }
.panic-detail {
    background: rgba(0,0,0,0.5); border-radius: 8px;
    padding: 12px 16px; margin-bottom: 24px;
    text-align: left; border: 0.5px solid rgba(255,255,255,0.08);
}
.panic-detail pre {
    font-family: var(--mono); font-size: 10px;
    color: rgba(255,255,255,0.45); margin: 0; line-height: 1.6;
    white-space: pre-wrap;
}
.panic-progress {
    height: 4px; background: rgba(255,255,255,0.08);
    border-radius: 2px; overflow: hidden; margin-bottom: 12px;
}
.panic-progress-fill {
    height: 100%; width: 0;
    background: linear-gradient(90deg, #6e56cf, #00d2ff);
    border-radius: 2px;
}
.panic-restart { font-size: 12px; color: rgba(255,255,255,0.3); margin: 0; }

/* =============== PREMIUM REFRESH ADDITIONS =============== */
.sidebar-label-spaced { margin-top: 14px; }
.tag-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
    box-shadow: 0 0 10px rgba(255,255,255,0.12);
}
.tag-dot-work { background: #ff375f; }
.tag-dot-open { background: #30d158; }

.about-kicker {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(255,255,255,0.42);
    margin-bottom: 10px;
}
.about-hero-title {
    font-size: clamp(24px, 3vw, 30px);
    line-height: 1.14;
    margin-bottom: 14px;
    max-width: 12ch;
}
.about-lead {
    color: rgba(255,255,255,0.72) !important;
    max-width: 58ch;
}
.about-highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin: 22px 0 4px;
}
.about-highlight-card {
    padding: 14px 14px 15px;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.035));
    border: 0.5px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.14);
}
.about-highlight-card strong {
    display: block;
    font-size: 12px;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.about-highlight-card span {
    display: block;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255,255,255,0.55);
}
.about-actions {
    margin-top: 22px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.resume-btn-secondary {
    background: linear-gradient(135deg, #31353f, #4a5161);
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
.resume-btn-tertiary {
    background: linear-gradient(135deg, #007aff, #30d158);
    box-shadow: 0 4px 16px rgba(0,122,255,0.22);
}
.about-shortcuts {
    margin-top: 18px;
    font-size: 12px !important;
    color: var(--text-tertiary) !important;
}
.about-shortcuts strong { color: var(--text-secondary); }

.project-lead {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    margin-bottom: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    border: 0.5px solid rgba(255,255,255,0.08);
    border-radius: 18px;
}
.project-kicker {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(255,255,255,0.42);
    margin-bottom: 8px;
}
.project-lead h2 {
    font-size: 24px;
    line-height: 1.14;
    color: var(--text-primary);
    max-width: 16ch;
}
.project-summary {
    max-width: 32ch;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255,255,255,0.55);
}
.project-card { cursor: pointer !important; }
.card-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(8,12,20,0.52);
    border: 0.5px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.74);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.card-link { margin-top: 10px; }

.note-lead {
    color: rgba(255,255,255,0.74) !important;
    margin-bottom: 16px !important;
}
.note-callout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}
.note-callout {
    padding: 14px 14px 15px;
    background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.035));
    border: 0.5px solid rgba(255,255,255,0.08);
    border-radius: 14px;
}
.note-callout strong {
    display: block;
    font-size: 12px;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.note-callout span {
    display: block;
    font-size: 12px;
    line-height: 1.55;
    color: rgba(255,255,255,0.56);
}
.note-contact-list {
    margin-bottom: 14px;
}
.note-contact-list p { margin-bottom: 6px; }
.contact-helper {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}
.note-quote {
    margin-top: 14px;
    font-style: italic;
    color: rgba(255,255,255,0.52) !important;
}

.mob-kicker {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(255,255,255,0.44);
    margin-bottom: 10px;
}
.mob-summary {
    max-width: 30ch;
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255,255,255,0.62);
}
.mob-quick-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}
.mob-quick-action {
    min-width: 116px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 0.5px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}
.mob-quick-action-primary {
    background: linear-gradient(135deg, var(--accent), #30d158);
    color: #fff;
    border-color: transparent;
}
.mob-hero-stats {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}
.mob-stat-card {
    text-align: left;
    padding: 14px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.035));
    border: 0.5px solid rgba(255,255,255,0.08);
}
.mob-stat-card strong {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.92);
    margin-bottom: 4px;
}
.mob-stat-card span {
    display: block;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255,255,255,0.52);
}
.mob-project-icon-ai { background: linear-gradient(135deg, #6e56cf, #00d2ff); }
.mob-project-icon-commerce { background: linear-gradient(135deg, #ff375f, #ff9f0a); }
.mob-project-icon-portfolio { background: linear-gradient(135deg, #007aff, #30d158); }
.mob-project-icon-analytics { background: linear-gradient(135deg, #ff9f0a, #ff375f); }
.mob-cta-card { text-align: center; }
.mob-cta-icon {
    font-size: 28px !important;
    margin-bottom: 8px !important;
}
.mob-cta-copy {
    font-size: 13px !important;
    color: rgba(255,255,255,0.5) !important;
    margin-top: 4px !important;
}

html.light-mode .about-kicker,
html.light-mode .project-kicker,
html.light-mode .project-summary,
html.light-mode .about-shortcuts,
html.light-mode .contact-helper,
html.light-mode .note-quote {
    color: rgba(0,0,0,0.5) !important;
}
html.light-mode .about-shortcuts strong { color: rgba(0,0,0,0.62); }
html.light-mode .about-highlight-card,
html.light-mode .note-callout,
html.light-mode .project-lead {
    background: linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,255,255,0.56));
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 10px 26px rgba(0,0,0,0.08);
}
html.light-mode .about-highlight-card span,
html.light-mode .note-callout span {
    color: rgba(0,0,0,0.58);
}
html.light-mode .resume-btn-secondary {
    background: linear-gradient(135deg, #e2e5ec, #cfd4dd);
    color: rgba(0,0,0,0.82);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
html.light-mode .project-lead h2,
html.light-mode .about-highlight-card strong,
html.light-mode .note-callout strong {
    color: rgba(0,0,0,0.86);
}
html.light-mode .card-badge {
    background: rgba(255,255,255,0.85);
    border-color: rgba(0,0,0,0.08);
    color: rgba(0,0,0,0.62);
}

/* ======================================================
   DEV MODE — FULL HACKER THEME
   Activated by Konami code ↑↑↓↓←→←→BA
   ====================================================== */
html.dev-mode {
    --hack:      #00ff41;
    --hack-dim:  #00aa2a;
    --hack-dark: #001a00;
    --hack-mid:  #003300;
}

/* CRT scanlines overlay */
html.dev-mode #desktop::after {
    content: '';
    position: fixed; inset: 0; z-index: 8999;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.08) 2px,
        rgba(0,0,0,0.08) 4px
    );
}

/* Desktop wallpaper → black */
html.dev-mode #desktop { background: #000 !important; }
html.dev-mode .wallpaper-layer { opacity: 0 !important; }

/* Menu bar */
html.dev-mode #menu-bar {
    background: rgba(0,10,0,0.97) !important;
    border-bottom: 1px solid var(--hack-dim);
}
html.dev-mode #menu-bar * { color: var(--hack) !important; }
html.dev-mode #menu-bar button { background: transparent !important; }
html.dev-mode .menu-clock { color: var(--hack) !important; font-family: var(--mono) !important; }

/* Dock */
html.dev-mode #dock-wrapper {
    background: transparent !important;
}
html.dev-mode #dock {
    background: rgba(0,15,0,0.92) !important;
    border: 1px solid var(--hack-dim) !important;
    box-shadow: 0 0 20px rgba(0,255,65,0.15), inset 0 0 30px rgba(0,0,0,0.5) !important;
}
html.dev-mode .dock-item:hover .dock-icon-art {
    box-shadow: 0 0 12px rgba(0,255,65,0.5) !important;
}
html.dev-mode .dock-dot { background: var(--hack) !important; }

/* All windows */
html.dev-mode .window {
    background: #000 !important;
    border: 1px solid var(--hack-dim) !important;
    box-shadow: 0 0 30px rgba(0,255,65,0.12), 0 20px 60px rgba(0,0,0,0.8) !important;
}
html.dev-mode .window-header {
    background: var(--hack-dark) !important;
    border-bottom: 1px solid var(--hack-dim) !important;
}
html.dev-mode .header-title {
    color: var(--hack) !important;
    font-family: var(--mono) !important;
}

/* Window body text → green */
html.dev-mode .window-body,
html.dev-mode .finder-main,
html.dev-mode .finder-sidebar,
html.dev-mode .notes-pane,
html.dev-mode .about-mac-body,
html.dev-mode .music-body,
html.dev-mode .settings-body,
html.dev-mode .safari-body,
html.dev-mode .textedit-body,
html.dev-mode .textedit-content,
html.dev-mode .devnotes-body,
html.dev-mode .devnotes-content {
    background: #000 !important;
    color: var(--hack) !important;
}
html.dev-mode .window p,
html.dev-mode .window h1,
html.dev-mode .window h2,
html.dev-mode .window h3,
html.dev-mode .window span,
html.dev-mode .window label,
html.dev-mode .window strong,
html.dev-mode .window li {
    color: var(--hack) !important;
    font-family: var(--mono) !important;
}

/* Scrollbars */
html.dev-mode ::-webkit-scrollbar-thumb { background: var(--hack-dim) !important; }
html.dev-mode ::-webkit-scrollbar-track { background: #000 !important; }

/* Inputs */
html.dev-mode input, html.dev-mode textarea, html.dev-mode select {
    background: #000 !important;
    color: var(--hack) !important;
    border-color: var(--hack-dim) !important;
    caret-color: var(--hack) !important;
}
html.dev-mode ::placeholder { color: var(--hack-dim) !important; }

/* Buttons */
html.dev-mode button:not(.ctrl) {
    background: transparent !important;
    color: var(--hack) !important;
    border-color: var(--hack-dim) !important;
}
html.dev-mode button:not(.ctrl):hover {
    background: var(--hack-dark) !important;
    box-shadow: 0 0 8px rgba(0,255,65,0.3) !important;
}

/* Sidebar items */
html.dev-mode .sidebar-item,
html.dev-mode .finder-sidebar-item { color: var(--hack) !important; }
html.dev-mode .sidebar-item.active,
html.dev-mode .finder-sidebar-item.active {
    background: var(--hack-dark) !important;
    color: var(--hack) !important;
    border-left-color: var(--hack) !important;
}

/* Terminal — already green, but deepen the theme */
html.dev-mode #terminal-body {
    background: #000 !important;
    border: none !important;
}
html.dev-mode #terminal-output { font-size: 13px; }
html.dev-mode #terminal-input {
    background: transparent !important;
    color: var(--hack) !important;
    caret-color: var(--hack) !important;
}

/* Music player */
html.dev-mode .music-art-wrap,
html.dev-mode .music-dock-art { filter: hue-rotate(100deg) saturate(2) !important; }
html.dev-mode .music-fill { background: var(--hack) !important; }
html.dev-mode .music-btn { color: var(--hack) !important; border-color: var(--hack-dim) !important; }

/* Notification center */
html.dev-mode #notif-center {
    background: rgba(0,10,0,0.97) !important;
    border-color: var(--hack-dim) !important;
}
html.dev-mode .nc-card { background: var(--hack-dark) !important; border-color: var(--hack-dim) !important; }
html.dev-mode .nc-card * { color: var(--hack) !important; }

/* Notification toast */
html.dev-mode #notification {
    background: rgba(0,20,0,0.97) !important;
    border: 1px solid var(--hack-dim) !important;
}
html.dev-mode #notification * { color: var(--hack) !important; }

/* VS Code stays mostly the same but tinted */
html.dev-mode #window-vscode .vscode-editor { filter: hue-rotate(90deg) !important; }

/* Presence CPU */
html.dev-mode .presence-cpu { color: var(--hack) !important; }

/* Console app */
html.dev-mode .console-body,
html.dev-mode .console-log-list { background: #000 !important; }
html.dev-mode .console-toolbar { background: #001000 !important; }
html.dev-mode .con-col-msg { color: var(--hack-dim) !important; }

/* Accent color */
html.dev-mode { --accent: #00ff41 !important; }

/* Glow pulse on window focus */
html.dev-mode .window.focused {
    box-shadow: 0 0 40px rgba(0,255,65,0.2), 0 0 2px var(--hack-dim) !important;
}

/* Dev mode dock icon — hidden until unlock */
.dev-mode-item { display: none; }
html.dev-mode .dev-mode-item {
    display: flex;
    animation: devItemSlideIn 0.55s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes devItemSlideIn {
    from { transform: translateY(20px) scale(0.5); opacity: 0; }
    to   { transform: translateY(0)    scale(1);   opacity: 1; }
}
.devnotes-art {
    background: linear-gradient(145deg, #2d0000, #1a0a0a);
    border: 0.5px solid rgba(255,80,80,0.25);
    display: flex; align-items: center; justify-content: center;
}
.devnotes-art:hover { box-shadow: 0 0 14px rgba(255,60,60,0.4); }

/* Developer Notes window */
.devnotes-body { background: #100808; }
.devnotes-content {
    flex: 1; padding: 24px 28px; overflow-y: auto;
    color: rgba(255,255,255,0.82); font-size: 13px; line-height: 1.75;
    background: #100808;
}
.devnotes-stamp {
    font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
    color: #ff453a; text-align: center;
    border: 1px solid rgba(255,69,58,0.3); border-radius: 4px;
    padding: 4px 0; margin-bottom: 18px;
    background: rgba(255,69,58,0.06);
}

/* Dev mode terminal prompt turns red */
html.dev-mode #terminal-output .g { color: #ff453a !important; }
.terminal-prompt-user { color: #ff453a; }

/* ── Dev mode dock icon (hidden until unlocked) ── */
.dev-mode-item {
    display: none !important;
    opacity: 0;
}
html.dev-mode .dev-mode-item {
    display: flex !important;
    opacity: 1;
    animation: devUnlock 0.6s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
@keyframes devUnlock {
    from { opacity: 0; transform: translateY(20px) scale(0.5); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
}
.devnotes-art {
    background: linear-gradient(145deg,#2d0000,#1a0000);
    border: 0.5px solid rgba(255,80,80,0.3);
    box-shadow: 0 0 12px rgba(255,60,60,0.25);
}
html.dev-mode #dock { box-shadow: 0 0 0 1px rgba(255,60,60,0.15), 0 8px 32px rgba(0,0,0,0.6); }

/* ── Developer Notes window ── */
.devnotes-body { background: #0d0d0d; }
.devnotes-content { background: #0d0d0d; color: rgba(255,255,255,0.82); }
.devnotes-stamp {
    text-align: center; font-size: 11px; font-weight: 700; letter-spacing: 2px;
    color: #ff453a; border: 1px solid rgba(255,69,58,0.3); border-radius: 4px;
    padding: 5px; margin-bottom: 18px; background: rgba(255,69,58,0.07);
}

/* ── Root terminal prompt ── */
html.dev-mode .terminal-prompt-user { color: #ff453a !important; }
html.dev-mode #terminal-body { border-top: 1px solid rgba(255,60,60,0.15); }

/* Blinking block cursor for hack sequence */
.term-blink {
    display: inline-block;
    animation: termBlink 1s step-end infinite;
    color: #00ff41;
}
@keyframes termBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}
