/* ============================================================
   DesiTech OS — Design System CSS v2
   Owner: Babatunde Alabi, CEO @ DesiTech (Ogun State, Nigeria)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ─── CSS Variables ─────────────────────────────────────────── */
:root {
    /* Brand */
    --brand-blue:        #086ad7;
    --brand-blue-glow:   rgba(8, 106, 215, 0.45);
    --brand-blue-dim:    rgba(8, 106, 215, 0.15);
    --brand-cyan:        #22d3ee;
    --brand-violet:      #7c3aed;
    --brand-emerald:     #10b981;
    --brand-amber:       #f59e0b;
    --brand-rose:        #ef4444;

    /* Background */
    --bg-deep:           #060914;
    --bg-space:          #0c1028;
    --bg-navy:           #0f1629;
    --bg-panel:          #111827;
    --bg-titlebar:       #080d1a;

    /* Solid panel colors (no glassmorphism) */
    --panel-bg:          #0f1629;
    --panel-bg-alt:      #111827;
    --panel-border:      rgba(255, 255, 255, 0.08);
    --panel-border-dim:  rgba(255, 255, 255, 0.05);

    /* Text */
    --text-primary:      #f0f4ff;
    --text-secondary:    rgba(240, 244, 255, 0.60);
    --text-muted:        rgba(240, 244, 255, 0.35);
    --text-accent:       #22d3ee;

    /* Shadows */
    --shadow-window:     0 24px 60px rgba(0,0,0,0.6), 0 4px 16px rgba(0,0,0,0.4);
    --shadow-focus:      0 0 0 1px var(--brand-blue), 0 24px 60px rgba(0,0,0,0.65);
    --shadow-dock:       0 20px 60px rgba(0,0,0,0.7), 0 1px 0 rgba(255,255,255,0.06) inset;
    --shadow-glow-blue:  0 0 20px var(--brand-blue-glow);

    /* Typography */
    --font-ui:           'Outfit', system-ui, sans-serif;
    --font-mono:         'JetBrains Mono', monospace;

    /* Motion */
    --ease-spring:       cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-out:          cubic-bezier(0, 0, 0.2, 1);
    --ease-in:           cubic-bezier(0.4, 0, 1, 1);
    --dur-fast:          120ms;
    --dur-normal:        240ms;
    --dur-slow:          400ms;

    /* Dock */
    --dock-height:       64px;
    --dock-icon-size:    44px;

    /* Z-layers */
    --z-bg:              0;
    --z-desktop:         10;
    --z-window:          50;
    --z-window-focus:    100;
    --z-dock:            200;
    --z-context:         300;
    --z-boot:            900;
    --z-overlay:         1000;
}

[data-theme="light"] {
    --bg-deep:           #e8edf5;
    --bg-space:          #f0f4fb;
    --panel-bg:          #ffffff;
    --panel-bg-alt:      #f1f5f9;
    --bg-titlebar:       #e2e8f0;
    --panel-border:      rgba(0,0,0,0.10);
    --panel-border-dim:  rgba(0,0,0,0.05);
    --text-primary:      #0f172a;
    --text-secondary:    rgba(15,23,42,0.65);
    --text-muted:        rgba(15,23,42,0.40);
    --shadow-window:     0 12px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
}

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
body {
    font-family: var(--font-ui);
    background: var(--bg-space);
    color: var(--text-primary);
    width: 100vw;
    height: 100vh;
    position: relative;
    -webkit-font-smoothing: antialiased;
    user-select: none;
    overscroll-behavior: none;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
input, button, textarea, select { font-family: inherit; }
button { cursor: pointer; }

/* Scrollbars */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-blue-glow); }

/* ─── Aurora Background (subtle) ───────────────────────────── */
#aurora-layer {
    position: fixed;
    inset: 0;
    z-index: var(--z-bg);
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(ellipse at 20% 10%, #0a1635 0%, var(--bg-space) 60%);
}

.aurora-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0;
    will-change: transform, opacity;
    pointer-events: none;
}

.aurora-orb-1 {
    width: 600px; height: 600px; top: -150px; left: -80px;
    background: radial-gradient(circle, rgba(8,106,215,0.35) 0%, transparent 70%);
    animation: auroraFloat1 24s ease-in-out infinite;
}
.aurora-orb-2 {
    width: 500px; height: 500px; top: 15%; right: -60px;
    background: radial-gradient(circle, rgba(124,58,237,0.25) 0%, transparent 70%);
    animation: auroraFloat2 30s ease-in-out infinite;
}
.aurora-orb-3 {
    width: 450px; height: 450px; bottom: -80px; left: 35%;
    background: radial-gradient(circle, rgba(34,211,238,0.18) 0%, transparent 70%);
    animation: auroraFloat3 20s ease-in-out infinite;
}
.aurora-orb-4 {
    width: 350px; height: 350px; top: 55%; left: 55%;
    background: radial-gradient(circle, rgba(16,185,129,0.14) 0%, transparent 70%);
    animation: auroraFloat4 26s ease-in-out infinite;
}
.aurora-orb-5 {
    width: 280px; height: 280px; bottom: 20%; right: 22%;
    background: radial-gradient(circle, rgba(245,158,11,0.12) 0%, transparent 70%);
    animation: auroraFloat5 18s ease-in-out infinite;
}

@keyframes auroraFloat1 {
    0%,100% { opacity:0.7; transform:translate(0,0) scale(1); }
    33%      { opacity:0.5; transform:translate(50px,-35px) scale(1.06); }
    66%      { opacity:0.8; transform:translate(-25px,45px) scale(0.96); }
}
@keyframes auroraFloat2 {
    0%,100% { opacity:0.5; transform:translate(0,0) scale(1); }
    40%     { opacity:0.7; transform:translate(-45px,55px) scale(1.10); }
    70%     { opacity:0.4; transform:translate(35px,-25px) scale(0.93); }
}
@keyframes auroraFloat3 {
    0%,100% { opacity:0.4; transform:translate(0,0) scale(1); }
    50%     { opacity:0.6; transform:translate(60px,-45px) scale(1.08); }
}
@keyframes auroraFloat4 {
    0%,100% { opacity:0.35; transform:translate(0,0) scale(1); }
    35%     { opacity:0.55; transform:translate(-55px,35px) scale(1.12); }
    65%     { opacity:0.25; transform:translate(25px,-18px) scale(0.92); }
}
@keyframes auroraFloat5 {
    0%,100% { opacity:0.35; transform:translate(0,0) scale(1); }
    45%     { opacity:0.5;  transform:translate(-35px,-45px) scale(1.18); }
}

#dot-grid {
    position: fixed;
    inset: 0;
    z-index: calc(var(--z-bg) + 1);
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.35) 0%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.35) 0%, transparent 72%);
}

/* ─── Solid Panel Recipe (replaces glassmorphism) ───────────── */
.glass {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
}

.glass-subtle {
    background: var(--panel-bg-alt);
    border: 1px solid var(--panel-border-dim);
}

/* ─── Window System ─────────────────────────────────────────── */
.system-window {
    position: absolute;
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    overflow: hidden;
    z-index: var(--z-window);
    min-width: 340px;
    min-height: 240px;
    box-shadow: var(--shadow-window);
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    transition: box-shadow var(--dur-normal) var(--ease-out),
                border-color var(--dur-normal) var(--ease-out),
                opacity var(--dur-normal) var(--ease-out);
    will-change: transform, opacity;
}

.system-window.active-focus {
    z-index: var(--z-window-focus);
    border-color: rgba(8,106,215,0.3);
    box-shadow: var(--shadow-focus);
}

.system-window.is-opening   { animation: windowOpen var(--dur-slow) var(--ease-spring) forwards; }
.system-window.is-closing   { animation: windowClose var(--dur-normal) var(--ease-in) forwards; }
.system-window.is-minimized { animation: windowMinimize var(--dur-slow) var(--ease-in) forwards; }

@keyframes windowOpen {
    from { opacity:0; transform:scale(0.88) translateY(16px); }
    to   { opacity:1; transform:scale(1) translateY(0); }
}
@keyframes windowClose {
    from { opacity:1; transform:scale(1); }
    to   { opacity:0; transform:scale(0.92) translateY(12px); }
}
@keyframes windowMinimize {
    from { opacity:1; transform:scale(1) translateY(0); }
    to   { opacity:0; transform:scale(0.5) translateY(120px); }
}

.snap-ghost {
    position: fixed;
    border: 2px dashed var(--brand-blue);
    background: var(--brand-blue-dim);
    border-radius: 12px;
    pointer-events: none;
    z-index: calc(var(--z-window-focus) + 1);
    transition: all 80ms var(--ease-out);
}

/* Window titlebar */
.window-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--bg-titlebar);
    border-bottom: 1px solid var(--panel-border-dim);
    cursor: move;
    flex-shrink: 0;
    user-select: none;
}

.window-title {
    font-family: var(--font-mono);
    font-size: 0.80rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.window-title i { color: var(--brand-blue); font-size: 0.85rem; }

/* Traffic lights */
.window-actions { display: flex; align-items: center; gap: 7px; }

.traffic-light {
    width: 13px; height: 13px;
    border-radius: 50%;
    border: none; outline: none;
    cursor: pointer;
    position: relative;
    display: flex; align-items: center; justify-content: center;
    transition: filter var(--dur-fast) var(--ease-out);
}
.traffic-light::after {
    content: '';
    position: absolute; inset: 0;
    border-radius: 50%;
    background: rgba(0,0,0,0.15);
    opacity: 0;
    transition: opacity var(--dur-fast);
}
.traffic-light:hover::after { opacity: 1; }
.traffic-light.tl-close    { background: #ff5f57; box-shadow: 0 0 6px rgba(255,95,87,0.5); }
.traffic-light.tl-minimize { background: #febc2e; box-shadow: 0 0 6px rgba(254,188,46,0.5); }
.traffic-light.tl-maximize { background: #28c840; box-shadow: 0 0 6px rgba(40,200,64,0.5); }

.window-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    position: relative;
}

/* ─── Desktop Layer ─────────────────────────────────────────── */
#desktop-layer {
    position: fixed;
    inset: 0;
    bottom: calc(var(--dock-height) + 20px);
    z-index: var(--z-desktop);
    pointer-events: none;
    overflow: hidden;
}

/* ─── Hero Zone — David-style full hero ─────────────────────── */
.hero-zone {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;  /* photo sits at the bottom */
    padding-bottom: 14px;       /* small gap above dock */
    pointer-events: auto;
    overflow: hidden;
}

/* "Hello!" welcome pill — absolute so it stays at top */
.hello-pill {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.14);
    padding: 7px 24px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255,255,255,0.90);
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    letter-spacing: 0.3px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

/* ── Giant headline — absolute, behind the photo ── */
.hero-headline {
    position: absolute;
    left: 0;
    right: 0;
    /* bottom = photo-col-height + padding-bottom - overlap amount */
    bottom: 285px;
    text-align: center;
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

.hero-name-line {
    font-size: clamp(64px, 9.5vw, 138px);
    font-weight: 900;
    color: #fff;
    letter-spacing: -4px;
    display: block;
    font-family: var(--font-ui);
    line-height: 0.88;
}

.hero-title-line {
    font-size: clamp(22px, 3.4vw, 48px);
    font-weight: 700;
    color: rgba(255,255,255,0.72);
    letter-spacing: -1px;
    display: block;
    font-family: var(--font-ui);
    line-height: 1.15;
    margin-top: 10px;
}

.hero-subtitle-line {
    font-size: clamp(10px, 1.1vw, 14px);
    font-weight: 500;
    color: rgba(255,255,255,0.40);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    display: block;
    font-family: var(--font-mono);
    margin-top: 14px;
}

.name-accent { color: var(--brand-blue); }

/* ── 3-column layout: quote | photo | CTAs ── */
/* This div has z-index:3 so it sits IN FRONT of the headline above */
.hero-content {
    display: grid;
    grid-template-columns: 1fr 320px 1fr;
    gap: 20px;
    width: 100%;
    max-width: 1260px;
    padding: 0 40px;
    align-items: flex-end;
    position: relative;
    z-index: 3;
}

/* Left: quote */
.hero-left {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 20px;
    padding-bottom: 20px;
}

.hero-quote-block { max-width: 270px; }

.hero-quote-mark {
    font-size: 5rem;
    font-weight: 900;
    color: var(--brand-blue);
    line-height: 0.6;
    margin-bottom: 14px;
    display: block;
    font-family: Georgia, serif;
}

.hero-quote-text {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 12px;
}

.hero-quote-author {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Center: photo + animated circle */
.hero-photo-col {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 370px;
    position: relative;
}

.photo-wrapper {
    position: relative;
    width: 300px;
    height: 370px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    cursor: pointer;
}

/* Animated blue circle (behind photo, at bottom) */
.photo-circle-anim {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--brand-blue);
    animation: circleFloat 4s ease-in-out infinite;
    z-index: 0;
}

@keyframes circleFloat {
    0%,100% { transform: translateX(-50%) scale(1) translateY(0); }
    50%      { transform: translateX(-50%) scale(1.05) translateY(-10px); }
}

.photo-circle-anim::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid rgba(8,106,215,0.45);
    animation: ringGlow 4s ease-in-out infinite;
}

@keyframes ringGlow {
    0%,100% { opacity: 0.4; transform: scale(1); }
    50%      { opacity: 0.9; transform: scale(1.06); }
}

/* PNG cutout photo — width fixed, height natural (lets head extend above circle) */
.hero-photo-img {
    position: relative;
    z-index: 1;
    width: 330px;
    height: auto;
    max-height: 440px;
    object-fit: contain;
    object-position: bottom center;
    display: block;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.55));
}

/* Fallback placeholder (no photo uploaded yet) */
.hero-photo-placeholder {
    position: relative;
    z-index: 1;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: #0a1530;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 40px;
}

/* Right: CTA buttons */
.hero-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    padding-left: 20px;
    padding-bottom: 20px;
}

.hero-cta-primary {
    background: var(--brand-blue);
    color: #fff;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-ui);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 120ms, box-shadow 120ms, transform 120ms var(--ease-spring);
}

.hero-cta-primary:hover {
    background: #0975ed;
    box-shadow: 0 8px 28px var(--brand-blue-glow);
    transform: translateY(-2px);
}

.hero-cta-primary:active { transform: scale(0.97); }

.hero-cta-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.32);
    padding: 13px 38px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-ui);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: border-color 120ms, background 120ms, transform 120ms var(--ease-spring);
}

.hero-cta-outline:hover {
    border-color: rgba(255,255,255,0.70);
    background: rgba(255,255,255,0.06);
    transform: translateY(-2px);
}

.hero-cta-outline:active { transform: scale(0.97); }

/* Shortcut pills — vertical strip on the right edge of the screen */
.hint-pills {
    position: fixed;
    right: 14px;
    top: 50%;
    transform: translateY(-58%);
    display: flex;
    flex-direction: column;
    gap: 7px;
    align-items: flex-end;
    opacity: 0.42;
    transition: opacity var(--dur-normal);
    z-index: 11;
    pointer-events: none;
}

.hint-pills:hover { opacity: 0.72; }

.hint-pill {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 5px 11px 5px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.hint-pill kbd {
    background: rgba(255,255,255,0.12);
    padding: 1px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.63rem;
    color: rgba(255,255,255,0.75);
}

/* ─── Desktop Icons ──────────────────────────────────────────── */
.workspace-desktop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: calc(var(--dock-height) + 20px);
    z-index: var(--z-desktop);
    padding: 24px 16px;
    display: grid;
    grid-template-columns: repeat(auto-fill, 78px);
    grid-template-rows: repeat(auto-fill, 88px);
    grid-auto-flow: column;
    gap: 10px;
    align-content: start;
    pointer-events: none;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 4px;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    pointer-events: auto;
    transition: background var(--dur-normal) var(--ease-out),
                border-color var(--dur-normal) var(--ease-out),
                transform var(--dur-normal) var(--ease-spring);
}

.desktop-icon:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.06);
    transform: scale(1.06);
}

.desktop-icon:active { transform: scale(0.96); }

.desktop-icon .icon-img {
    width: 48px; height: 48px;
    border-radius: 13px;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 14px rgba(0,0,0,0.35);
    transition: box-shadow var(--dur-normal) var(--ease-out),
                transform var(--dur-normal) var(--ease-spring);
}

.desktop-icon:hover .icon-img {
    box-shadow: 0 6px 20px rgba(0,0,0,0.45);
    transform: translateY(-2px);
}

/* Individual icon colors */
.desktop-icon:nth-child(1) .icon-img { color: #3b82f6; }  /* Bio - blue */
.desktop-icon:nth-child(2) .icon-img { color: #f59e0b; }  /* Projects - amber */
.desktop-icon:nth-child(3) .icon-img { color: #10b981; }  /* Terminal - green */
.desktop-icon:nth-child(4) .icon-img { color: #8b5cf6; }  /* SmartVina - violet */
.desktop-icon:nth-child(5) .icon-img { color: #f43f5e; }  /* Hire Me - rose */

.desktop-icon .icon-label {
    font-size: 0.70rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9);
    max-width: 70px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* ─── Dock ───────────────────────────────────────────────────── */
.workspace-dock {
    position: fixed;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-dock);
    display: flex;
    align-items: center;
    padding: 8px 20px;
    border-radius: 22px;
    background: rgba(8, 12, 30, 0.94);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid rgba(255,255,255,0.09);
    box-shadow: var(--shadow-dock);
    height: var(--dock-height);
}

.dock-icons-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 16px;
    border-right: 1px solid rgba(255,255,255,0.08);
}

/* CSS :has() magnification */
.dock-icons-wrapper:has(.dock-shortcut:hover) .dock-shortcut {
    transform: scale(0.85);
}
.dock-icons-wrapper .dock-shortcut:hover {
    transform: scale(1.35) translateY(-8px) !important;
}
.dock-icons-wrapper .dock-shortcut:hover + .dock-shortcut,
.dock-icons-wrapper .dock-shortcut:has(+ .dock-shortcut:hover) {
    transform: scale(1.15) translateY(-4px) !important;
}

.dock-shortcut {
    width: var(--dock-icon-size);
    height: var(--dock-icon-size);
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.3rem;
    transition: transform var(--dur-normal) var(--ease-spring),
                background var(--dur-normal) var(--ease-out),
                border-color var(--dur-normal) var(--ease-out);
    position: relative;
    flex-shrink: 0;
}

/* Dock icon individual colors */
#dock-about    { color: #3b82f6; }
#dock-projects { color: #f59e0b; }
#dock-terminal { color: #10b981; }
#dock-chat     { color: #8b5cf6; }
#dock-contact  { color: #f43f5e; }

.dock-shortcut:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.12); }

/* Active dot */
.dock-shortcut.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px; height: 5px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 6px currentColor;
}

/* Tooltip */
.dock-shortcut::before {
    content: attr(data-label);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #0a0e23;
    border: 1px solid var(--panel-border);
    color: var(--text-primary);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur-fast), transform var(--dur-fast) var(--ease-out);
    font-family: var(--font-ui);
}
.dock-shortcut:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* System tray */
.system-tray {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-left: 16px;
    font-family: var(--font-mono);
    font-size: 0.80rem;
    color: var(--text-secondary);
}

.tray-clock { letter-spacing: 0.5px; }

.tray-btn {
    background: none;
    border: none;
    outline: none;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    transition: color var(--dur-fast);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
}

.tray-btn:hover { color: var(--text-primary); }

.notif-badge {
    position: absolute;
    top: 0; right: 0;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--brand-rose);
    box-shadow: 0 0 6px rgba(239,68,68,0.6);
    border: 2px solid var(--bg-space);
}

/* ─── Avatar state hooks (for avatar.js) ────────────────────── */
[data-avatar-state="talking"] .photo-wrapper { animation: avatarTalk 0.4s ease-in-out infinite alternate; }
[data-avatar-state="happy"]   .photo-wrapper { animation: avatarHappy 0.6s var(--ease-spring); }
[data-avatar-state="waving"]  .photo-wrapper { animation: avatarWave 1s var(--ease-spring); }

@keyframes avatarTalk  { from { transform: scale(1); } to { transform: scale(1.02); } }
@keyframes avatarHappy { 0%{transform:scale(1)} 40%{transform:scale(1.06) rotate(-2deg)} 70%{transform:scale(0.98) rotate(1deg)} 100%{transform:scale(1)} }
@keyframes avatarWave  { 0%{transform:rotate(0)} 20%{transform:rotate(-6deg) scale(1.04)} 40%{transform:rotate(6deg) scale(1.04)} 60%{transform:rotate(-4deg)} 80%{transform:rotate(4deg)} 100%{transform:rotate(0)} }

/* ─── Boot Screen ────────────────────────────────────────────── */
#boot-screen {
    position: fixed;
    inset: 0;
    z-index: var(--z-boot);
    background: #060914;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    transition: opacity var(--dur-slow) var(--ease-in);
}

#boot-screen.boot-fading { opacity: 0; pointer-events: none; }
#boot-screen.boot-hidden { display: none; }

.boot-logo {
    font-family: var(--font-mono);
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 6px;
    color: var(--brand-blue);
    text-shadow: 0 0 40px rgba(8,106,215,0.7);
    text-align: center;
}

.boot-logo span {
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 400;
    letter-spacing: 2px;
    display: block;
    margin-top: 4px;
}

.boot-progress-track {
    width: 280px; height: 3px;
    background: rgba(255,255,255,0.06);
    border-radius: 2px;
    overflow: hidden;
}

.boot-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan));
    border-radius: 2px;
    width: 0%;
    transition: width var(--dur-slow) var(--ease-out);
    box-shadow: 0 0 10px var(--brand-blue-glow);
}

.boot-status {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    min-height: 1.4em;
    text-align: center;
}

.boot-greeting {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    max-width: 380px;
    line-height: 1.5;
    opacity: 0;
    animation: bootGreeting 0.6s var(--ease-spring) forwards;
    animation-delay: 0.2s;
}

@keyframes bootGreeting {
    from { opacity:0; transform:translateY(12px); }
    to   { opacity:1; transform:translateY(0); }
}

/* ─── Terminal Window ────────────────────────────────────────── */
.terminal-shell {
    background: #050914;
    border-radius: 8px;
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: #38bdf8;
    overflow-y: auto;
    height: 100%;
    min-height: 300px;
    line-height: 1.7;
}

.terminal-log { margin-bottom: 4px; word-break: break-all; white-space: pre-wrap; }
.terminal-log .t-cmd     { color: #f0f4ff; }
.terminal-log .t-output  { color: #94a3b8; }
.terminal-log .t-success { color: #10b981; }
.terminal-log .t-error   { color: #ef4444; }
.terminal-log .t-accent  { color: var(--brand-cyan); }
.terminal-log .t-blue    { color: var(--brand-blue); }
.terminal-log .t-dim     { color: var(--text-muted); }

.terminal-prompt-row { display: flex; align-items: center; gap: 8px; }
.terminal-prompt-symbol { color: #10b981; font-weight: 700; flex-shrink: 0; }

.terminal-input {
    background: none;
    border: none; outline: none;
    color: #38bdf8;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    flex: 1;
    caret-color: var(--brand-cyan);
}

/* ─── SmartVina Chat ─────────────────────────────────────────── */
.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 300px;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 4px;
    margin-bottom: 16px;
}

.chat-bubble {
    display: flex;
    flex-direction: column;
    max-width: 82%;
    padding: 10px 16px;
    border-radius: 16px;
    line-height: 1.55;
    font-size: 0.90rem;
    word-break: break-word;
    animation: bubblePop var(--dur-normal) var(--ease-spring);
}

@keyframes bubblePop {
    from { opacity:0; transform:translateY(8px) scale(0.97); }
    to   { opacity:1; transform:translateY(0) scale(1); }
}

.chat-bubble.bot {
    background: #1a2240;
    border: 1px solid rgba(255,255,255,0.07);
    color: var(--text-primary);
    align-self: flex-start;
    border-top-left-radius: 4px;
}

.chat-bubble.user {
    background: var(--brand-blue);
    color: #fff;
    align-self: flex-end;
    border-top-right-radius: 4px;
    box-shadow: 0 4px 16px rgba(8,106,215,0.35);
}

.bubble-sender {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 12px 16px;
    background: #1a2240;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    border-top-left-radius: 4px;
    align-self: flex-start;
    width: 60px;
}

.typing-indicator span {
    width: 6px; height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typingBounce 1s ease-in-out infinite alternate;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    from { transform: translateY(0); opacity: 0.5; }
    to   { transform: translateY(-5px); opacity: 1; }
}

.dialogue-chips {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.chip-btn {
    background: var(--brand-blue-dim);
    border: 1px solid rgba(8,106,215,0.30);
    color: var(--brand-blue);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--dur-fast), color var(--dur-fast), box-shadow var(--dur-fast);
}

.chip-btn:hover {
    background: var(--brand-blue);
    color: #fff;
    box-shadow: 0 4px 12px var(--brand-blue-glow);
}

.chat-input-wrapper {
    display: flex;
    gap: 8px;
    background: #080d1a;
    border: 1px solid rgba(255,255,255,0.07);
    padding: 7px 10px;
    border-radius: 12px;
    align-items: center;
}

.chat-input {
    flex: 1;
    background: none;
    border: none; outline: none;
    color: var(--text-primary);
    font-size: 0.90rem;
    padding: 4px;
    caret-color: var(--brand-cyan);
}

.chat-input::placeholder { color: var(--text-muted); }

.btn-send {
    background: var(--brand-blue);
    border: none; outline: none;
    width: 36px; height: 36px;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: background var(--dur-fast), box-shadow var(--dur-fast), transform var(--dur-fast) var(--ease-spring);
    flex-shrink: 0;
}

.btn-send:hover { background: #0975ed; box-shadow: var(--shadow-glow-blue); transform: scale(1.08); }
.btn-send:active { transform: scale(0.95); }

/* ─── Projects Explorer ──────────────────────────────────────── */
.projects-explorer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.project-explorer-card {
    background: #111827;
    border: 1px solid var(--panel-border-dim);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--dur-normal) var(--ease-spring),
                border-color var(--dur-normal) var(--ease-out),
                box-shadow var(--dur-normal) var(--ease-out);
}

.project-explorer-card:hover {
    transform: translateY(-5px);
    border-color: rgba(8,106,215,0.35);
    box-shadow: 0 12px 32px rgba(0,0,0,0.5), var(--shadow-glow-blue);
}

.project-card-banner {
    width: 100%;
    height: 130px;
    background-size: cover;
    background-position: center;
    background-color: #0a1530;
    border-bottom: 1px solid var(--panel-border-dim);
}

.project-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

.project-card-body h3 { font-size: 1.0rem; font-weight: 700; }
.project-card-tagline { font-size: 0.75rem; font-style: italic; color: var(--brand-cyan); font-family: var(--font-mono); }
.project-card-body p { font-size: 0.80rem; color: var(--text-secondary); line-height: 1.5; flex: 1; }

.project-card-tech { display: flex; gap: 5px; flex-wrap: wrap; }

.tech-tag {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--panel-border-dim);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.project-card-actions { display: flex; gap: 10px; margin-top: 4px; }

.explorer-btn {
    flex: 1;
    background: var(--brand-blue-dim);
    border: 1px solid rgba(8,106,215,0.25);
    color: var(--brand-blue);
    padding: 7px;
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    display: block;
    transition: background var(--dur-fast), color var(--dur-fast);
}

.explorer-btn:hover { background: var(--brand-blue); color: #fff; }

/* ─── Skills ─────────────────────────────────────────────────── */
.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.skill-item { display: flex; flex-direction: column; gap: 6px; }

.skill-header { display: flex; align-items: center; justify-content: space-between; }

.skill-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.skill-name i { color: var(--brand-blue); font-size: 0.9rem; }
.skill-pct { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); }

.skill-bar-track {
    height: 4px;
    background: rgba(255,255,255,0.06);
    border-radius: 2px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan));
    border-radius: 2px;
    width: 0%;
    transition: width 1s var(--ease-out);
}

/* ─── Contact Window ─────────────────────────────────────────── */
.contact-split {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 0;
    height: 100%;
}

.contact-info-panel {
    padding: 24px 20px;
    border-right: 1px solid var(--panel-border-dim);
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #080d1a;
}

.contact-info-panel h2 { font-size: 1.3rem; font-weight: 800; line-height: 1.3; }
.contact-info-panel h2 span { color: var(--brand-blue); }
.contact-info-panel p { font-size: 0.83rem; color: var(--text-secondary); line-height: 1.6; }

.contact-links { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }

.contact-link-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    transition: color var(--dur-fast);
    cursor: pointer;
}
.contact-link-item:hover { color: var(--text-primary); }

.contact-link-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: var(--brand-blue-dim);
    border: 1px solid rgba(8,106,215,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--brand-blue);
    flex-shrink: 0;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(37,211,102,0.10);
    border: 1px solid rgba(37,211,102,0.28);
    color: #25d366;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--dur-fast), box-shadow var(--dur-fast);
    text-decoration: none;
    justify-content: center;
}

.whatsapp-btn:hover { background: rgba(37,211,102,0.20); box-shadow: 0 0 16px rgba(37,211,102,0.22); }

.contact-form-panel {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.form-control {
    background: #080d1a;
    border: 1px solid var(--panel-border-dim);
    border-radius: 8px;
    padding: 9px 14px;
    color: var(--text-primary);
    font-size: 0.88rem;
    font-family: var(--font-ui);
    outline: none;
    transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
    width: 100%;
    resize: none;
}

.form-control::placeholder { color: var(--text-muted); }

.form-control:focus {
    border-color: rgba(8,106,215,0.5);
    box-shadow: 0 0 0 3px rgba(8,106,215,0.12);
}

.btn-submit {
    background: var(--brand-blue);
    border: none;
    color: #fff;
    padding: 11px 20px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background var(--dur-fast), box-shadow var(--dur-fast), transform var(--dur-fast) var(--ease-spring);
    margin-top: 4px;
}

.btn-submit:hover { background: #0975ed; box-shadow: var(--shadow-glow-blue); transform: translateY(-1px); }
.btn-submit:active { transform: scale(0.98); }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.form-notice { font-size: 0.72rem; color: var(--text-muted); text-align: center; line-height: 1.5; }

.form-result { padding: 10px 14px; border-radius: 8px; font-size: 0.83rem; display: none; }
.form-result.success { background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.3); color: #10b981; display: block; }
.form-result.error   { background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.3); color: #ef4444; display: block; }

/* ─── Deal Wizard ────────────────────────────────────────────── */
.negotiator-wizard { display: flex; flex-direction: column; gap: 14px; }

.wizard-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--brand-blue);
    border-bottom: 1px solid var(--panel-border-dim);
    padding-bottom: 10px;
}

.wizard-slide { display: none; }

.wizard-slide.active {
    display: block;
    animation: slideInWizard var(--dur-normal) var(--ease-spring);
}

@keyframes slideInWizard {
    from { transform: translateX(20px); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

.form-group-wizard { display: flex; flex-direction: column; gap: 7px; margin-bottom: 12px; }

.form-group-wizard label {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.wizard-btn-row { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; }

.wizard-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--panel-border-dim);
    color: var(--text-primary);
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 0.83rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--dur-fast), color var(--dur-fast);
}

.wizard-btn.primary { background: var(--brand-blue); border-color: transparent; box-shadow: 0 4px 12px var(--brand-blue-glow); }
.wizard-btn:hover { background: var(--brand-blue); color: #fff; }
.wizard-btn:disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

/* ─── Context Menu ───────────────────────────────────────────── */
.context-menu {
    position: fixed;
    z-index: var(--z-context);
    background: #0a0e23;
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 6px;
    min-width: 180px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
    display: none;
    animation: contextPop var(--dur-normal) var(--ease-spring);
}

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

@keyframes contextPop {
    from { opacity:0; transform:scale(0.94) translateY(-4px); }
    to   { opacity:1; transform:scale(1) translateY(0); }
}

.context-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 7px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background var(--dur-fast), color var(--dur-fast);
}

.context-item:hover { background: rgba(8,106,215,0.15); color: var(--text-primary); }
.context-item i { color: var(--brand-blue); width: 14px; text-align: center; }
.context-separator { height: 1px; background: var(--panel-border-dim); margin: 4px 8px; }

/* ─── Mobile Pocket OS ───────────────────────────────────────── */
@media (max-width: 767px) {
    body { overflow: hidden; }

    .workspace-desktop, .workspace-dock, #desktop-layer, .hero-zone { display: none !important; }

    #mobile-header {
        position: fixed;
        top: 0; left: 0; right: 0;
        height: 52px;
        z-index: var(--z-dock);
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 20px;
        background: #080d1a;
        border-bottom: 1px solid var(--panel-border-dim);
    }

    #mobile-header .logo-text {
        font-family: var(--font-mono);
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--brand-blue);
        letter-spacing: 3px;
    }

    #mobile-app-grid {
        position: fixed;
        top: 52px; left: 0; right: 0; bottom: 72px;
        overflow-y: auto;
        padding: 28px 20px;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(auto-fill, 80px);
        gap: 16px;
        align-content: start;
    }

    .mobile-app-icon {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        cursor: pointer;
    }

    .mobile-app-icon .icon-img {
        width: 54px; height: 54px;
        border-radius: 14px;
        background: var(--panel-bg);
        border: 1px solid var(--panel-border);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        box-shadow: 0 4px 16px rgba(0,0,0,0.3);
        transition: transform var(--dur-fast) var(--ease-spring);
    }

    .mobile-app-icon:nth-child(1) .icon-img { color: #3b82f6; }
    .mobile-app-icon:nth-child(2) .icon-img { color: #f59e0b; }
    .mobile-app-icon:nth-child(3) .icon-img { color: #10b981; }
    .mobile-app-icon:nth-child(4) .icon-img { color: #8b5cf6; }
    .mobile-app-icon:nth-child(5) .icon-img { color: #f43f5e; }

    .mobile-app-icon:active .icon-img { transform: scale(0.92); }

    .mobile-app-icon .icon-label {
        font-size: 0.68rem;
        font-weight: 600;
        color: var(--text-secondary);
        text-align: center;
        max-width: 56px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    #mobile-tray {
        position: fixed;
        bottom: 0; left: 0; right: 0;
        height: 72px;
        z-index: var(--z-dock);
        background: #080d1a;
        border-top: 1px solid var(--panel-border-dim);
        display: flex;
        align-items: center;
        justify-content: space-around;
        padding: 0 16px;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    .mobile-tray-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        cursor: pointer;
        padding: 8px 12px;
        border-radius: 10px;
        border: none;
        background: none;
        color: var(--text-secondary);
        min-width: 48px; min-height: 48px;
        justify-content: center;
    }

    .mobile-tray-btn.active { color: var(--brand-blue); }
    .mobile-tray-btn i { font-size: 1.2rem; }
    .mobile-tray-btn span { font-size: 0.60rem; font-weight: 600; }

    .system-window {
        position: fixed !important;
        left: 0 !important; right: 0 !important;
        bottom: 0 !important; top: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: 88vh !important;
        border-radius: 20px 20px 0 0 !important;
        transform: translateY(100%) !important;
        transition: transform var(--dur-slow) var(--ease-spring) !important;
        z-index: var(--z-overlay) !important;
    }

    .system-window.is-open { transform: translateY(0) !important; }

    .window-titlebar::before {
        content: '';
        position: absolute;
        top: 8px; left: 50%;
        transform: translateX(-50%);
        width: 36px; height: 4px;
        background: rgba(255,255,255,0.18);
        border-radius: 2px;
    }

    .window-titlebar { padding-top: 20px; cursor: default; position: relative; }

    .contact-split { grid-template-columns: 1fr; }
    .contact-info-panel { border-right: none; border-bottom: 1px solid var(--panel-border-dim); }
    .skills-grid { grid-template-columns: 1fr; }
}

/* ─── Overlay / backdrop ─────────────────────────────────────── */
#window-overlay {
    position: fixed;
    inset: 0;
    z-index: calc(var(--z-overlay) - 1);
    background: rgba(0,0,0,0.4);
    display: none;
}
#window-overlay.visible { display: block; }

/* ─── Utilities ──────────────────────────────────────────────── */
.hidden    { display: none !important; }
.truncate  { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mt-auto   { margin-top: auto; }
.w-full    { width: 100%; }
.text-blue    { color: var(--brand-blue); }
.text-cyan    { color: var(--brand-cyan); }
.text-emerald { color: var(--brand-emerald); }
.text-amber   { color: var(--brand-amber); }
.text-rose    { color: var(--brand-rose); }
.text-muted   { color: var(--text-muted); }

/* Text scale */
.text-xs  { font-size: 0.70rem; line-height: 1.4; }
.text-sm  { font-size: 0.82rem; line-height: 1.5; }
.text-mono { font-family: var(--font-mono); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
