/* ============================================================
   FRUTIGER AERO ERA ENHANCEMENTS
   Authentic 2006-2013 Windows Vista aesthetic
   Layer this last — it overrides defaults intentionally.
   ============================================================ */

/* ── 1. PALETTE: Signature purple restored (with personality) ────────── */
/* Both button variants use the purple the user loves.                    */
.vista-glass-button,
.vista-glass-button-primary,
.btn-primary {
    background: linear-gradient(to bottom,
        rgba(180, 130, 230, 0.90) 0%,
        rgba(160, 110, 210, 0.85) 55%,
        rgba(140,  90, 190, 0.80) 55%,
        rgba(120,  70, 170, 0.90) 100%
    ) !important;
    box-shadow:
        0 2px 5px rgba(0,0,0,0.28),
        inset 0  1px 0 rgba(255,255,255,0.55),
        inset 0 -1px 0 rgba(0,0,0,0.28),
        0 0 16px rgba(160, 110, 210, 0.45) !important;
    border: 1px solid rgba(255,255,255,0.45) !important;
    color: rgba(255,255,255,0.97) !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.35) !important;
}

.vista-glass-button:hover,
.vista-glass-button-primary:hover,
.btn-primary:hover {
    background: linear-gradient(to bottom,
        rgba(200, 150, 250, 0.95) 0%,
        rgba(180, 130, 230, 0.90) 55%,
        rgba(160, 110, 210, 0.85) 55%,
        rgba(140,  90, 190, 0.95) 100%
    ) !important;
    box-shadow:
        0 3px 10px rgba(0,0,0,0.32),
        inset 0  1px 0 rgba(255,255,255,0.65),
        inset 0 -1px 0 rgba(0,0,0,0.30),
        0 0 24px rgba(180, 130, 230, 0.55) !important;
    transform: translateY(-1px);
}

/* ── 2. TITLEBAR: Remove blur — let the gradient be crisp ───────────── */
.vista-glass-titlebar {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* ── 3. WINDOW: 4-sided inner specular edge (physical glass thickness) ─ */
.vista-glass-window {
    box-shadow:
        0 14px 40px rgba(0,0,0,0.28),
        inset  0  1px 0 rgba(255,255,255,0.92),
        inset  1px 0  0 rgba(255,255,255,0.38),
        inset -1px 0  0 rgba(255,255,255,0.26),
        inset  0 -1px 0 rgba(255,255,255,0.14),
        0 0 0 1px rgba(255,255,255,0.55) inset,
        0 0 50px rgba(255,255,255,0.06) !important;
}

.vista-glass-window.focused {
    box-shadow:
        0 18px 52px rgba(0,0,0,0.35),
        inset  0  1px 0 rgba(255,255,255,0.96),
        inset  1px 0  0 rgba(255,255,255,0.45),
        inset -1px 0  0 rgba(255,255,255,0.32),
        inset  0 -1px 0 rgba(255,255,255,0.18),
        0 0 0 1px rgba(100,180,255,0.58) inset,
        0 0 40px rgba(80,160,255,0.22) !important;
}

/* ── 4. WINDOW CONTENT: glass-edge gloss stripe just below titlebar ─── */
.vista-glass-content {
    position: relative;
}
.vista-glass-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 6%;
    right: 6%;
    height: 1px;
    background: linear-gradient(to right,
        transparent       0%,
        rgba(255,255,255,0.65) 20%,
        rgba(255,255,255,0.90) 50%,
        rgba(255,255,255,0.65) 80%,
        transparent       100%
    );
    pointer-events: none;
    z-index: 1;
}

/* ── 5. BUBBLES & FISH: lift above background GIF ─────────────────────── */
.bubbles-container { z-index: 4 !important; pointer-events: none; }
.fish-container    { z-index: 4 !important; pointer-events: none; }

/* ── 6. DESKTOP ICONS: clarity-first (no bleed onto stacked icons) ─── */
#vista-desktop-icons {
    gap: 12px !important;
}

#vista-desktop-icons .vista-desktop-icon {
    gap: 4px;
    padding: 4px 6px;
    width: 88px;
    isolation: isolate;
}

#vista-desktop-icons img {
    -webkit-box-reflect: none !important;
    filter: none !important;
    box-shadow: none !important;
}

#vista-desktop-icons .vista-desktop-icon .icon-img,
#vista-desktop-icons .vista-desktop-icon .vista-icon-img {
    width: 48px !important;
    height: 48px !important;
    padding: 0 !important;
    margin: 0;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    filter: none !important;
    -webkit-box-reflect: none !important;
    animation: none !important;
    transition: transform 0.12s ease;
    object-fit: contain;
}

#vista-desktop-icons .vista-desktop-icon:hover .icon-img,
#vista-desktop-icons .vista-desktop-icon:hover .vista-icon-img {
    transform: scale(1.06);
    filter: none !important;
    animation: none !important;
}

#vista-desktop-icons .vista-desktop-icon span {
    display: inline-block;
    max-width: none;
    width: max-content;
    padding: 2px 6px;
    border-radius: 3px;
    color: #fff;
    font-family: 'Segoe UI', sans-serif;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.25;
    text-align: center;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.58);
    text-shadow: none;
    box-shadow: none;
    -webkit-box-reflect: none !important;
}

#vista-desktop-icons .vista-desktop-icon:hover span,
#vista-desktop-icons .vista-desktop-icon.selected span {
    background: rgba(0, 45, 95, 0.72);
}

#vista-desktop-icons .vista-desktop-icon-recycle::after {
    display: none !important;
}

@media (prefers-reduced-motion: reduce) {
    #vista-desktop-icons .vista-desktop-icon .icon-img,
    #vista-desktop-icons .vista-desktop-icon .vista-icon-img,
    #vista-desktop-icons .vista-desktop-icon:hover .icon-img,
    #vista-desktop-icons .vista-desktop-icon:hover .vista-icon-img {
        animation: none !important;
        transition: none;
    }
}

/* ── 7. AERO SKILL BARS ──────────────────────────────────────────────── */
.aero-skill-section-title {
    font-family: 'Segoe UI', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: rgba(0,60,120,0.75);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 18px 0 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(0,120,215,0.15);
}

.aero-skill-item {
    margin-bottom: 11px;
}

.aero-skill-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #1a1a1a;
    text-shadow: 0 1px 0 rgba(255,255,255,0.85);
}

.aero-skill-label .skill-pct {
    font-size: 10px;
    font-weight: 400;
    color: rgba(0,80,160,0.70);
}

.aero-skill-track {
    height: 15px;
    background: rgba(0,0,0,0.07);
    border-radius: 7px;
    border: 1px solid rgba(0,0,0,0.11);
    box-shadow:
        inset 0 2px 4px rgba(0,0,0,0.10),
        inset 0 -1px 0  rgba(255,255,255,0.55);
    overflow: hidden;
    position: relative;
}

.aero-skill-fill {
    height: 100%;
    width: 0;
    border-radius: 6px;
    background: linear-gradient(to bottom,
        rgba(0,160,220,0.93) 0%,
        rgba(0,120,198,0.91) 48%,
        rgba(0, 90,172,0.91) 48%,
        rgba(0, 65,148,0.93) 100%
    );
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.55),
        0 0 10px rgba(0,130,210,0.40);
    position: relative;
    transition: width 1.3s cubic-bezier(0.22,1,0.36,1);
}

/* Gloss shine stripe on bar */
.aero-skill-fill::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(to bottom,
        rgba(255,255,255,0.42) 0%,
        rgba(255,255,255,0.12) 100%
    );
    border-radius: 6px 6px 0 0;
    pointer-events: none;
}

/* Creative bar variant — teal */
.aero-skill-fill.teal {
    background: linear-gradient(to bottom,
        rgba(0,165,185,0.93) 0%,
        rgba(0,138,160,0.91) 48%,
        rgba(0,108,130,0.91) 48%,
        rgba(0, 82,105,0.93) 100%
    );
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.55),
        0 0 10px rgba(0,150,170,0.40);
}

/* Automation bar variant — green */
.aero-skill-fill.green {
    background: linear-gradient(to bottom,
        rgba(0,185,80,0.93)  0%,
        rgba(0,160,65,0.91)  48%,
        rgba(0,128,50,0.91)  48%,
        rgba(0, 98,38,0.93)  100%
    );
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.55),
        0 0 10px rgba(0,170,70,0.40);
}

/* ── 8. STATUS BAR ───────────────────────────────────────────────────── */
.vista-status-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 12px;
    background: linear-gradient(to bottom,
        rgba(215,232,252,0.88) 0%,
        rgba(195,218,248,0.90) 100%
    );
    border-top: 1px solid rgba(140,190,235,0.50);
    font-family: 'Segoe UI', sans-serif;
    font-size: 10px;
    color: rgba(0,55,115,0.82);
    letter-spacing: 0.1px;
    flex-shrink: 0;
    user-select: none;
}

.vista-status-bar i { font-size: 9px; opacity: 0.65; }

/* ── 9. BOOT SCREEN — Frutiger Aero startup ritual ───────────────────── */
#vista-boot {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    background: #000818;
    isolation: isolate;
}

#vista-boot.boot-exit {
    animation: bootRevealOut 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    pointer-events: none;
}

#vista-boot.boot-exit .boot-content {
    animation: bootContentOut 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ── Sky layers ── */
.boot-sky {
    --mx: 0;
    --my: 0;
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 100% 70% at calc(50% + var(--mx) * 4%) calc(105% + var(--my) * 2%), rgba(60, 220, 90, 0.42) 0%, transparent 52%),
        radial-gradient(ellipse 80% 55% at calc(18% + var(--mx) * 3%) calc(22% + var(--my) * 2%), rgba(255, 120, 220, 0.28) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at calc(82% - var(--mx) * 3%) calc(28% - var(--my) * 2%), rgba(80, 200, 255, 0.32) 0%, transparent 50%),
        linear-gradient(180deg, #0044aa 0%, #002868 38%, #001040 68%, #000818 100%);
}

.boot-sun {
    position: absolute;
    top: 8%;
    left: 50%;
    width: 140px;
    height: 140px;
    transform: translateX(-50%);
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 32%, #fffef0 0%, #ffe680 25%, #ffb040 55%, rgba(255, 120, 40, 0) 72%);
    box-shadow:
        0 0 60px rgba(255, 200, 80, 0.55),
        0 0 120px rgba(255, 160, 40, 0.35),
        0 0 200px rgba(255, 100, 60, 0.2);
    animation: bootSunPulse 4s ease-in-out infinite;
    opacity: 0;
    animation: bootSunIn 1s ease 0.1s forwards, bootSunPulse 4s ease-in-out 1.1s infinite;
}

.boot-aurora {
    position: absolute;
    inset: -20%;
    filter: blur(52px);
    mix-blend-mode: screen;
    will-change: transform;
}

.boot-aurora-a {
    opacity: 0.72;
    background:
        radial-gradient(ellipse 50% 38% at 22% 62%, rgba(0, 255, 200, 0.55), transparent 68%),
        radial-gradient(ellipse 42% 32% at 78% 28%, rgba(100, 180, 255, 0.6), transparent 62%);
    animation: bootAuroraDrift 8s ease-in-out infinite alternate;
    transform: translate(calc(var(--mx) * 12px), calc(var(--my) * 8px));
}

.boot-aurora-b {
    opacity: 0.65;
    background:
        radial-gradient(ellipse 48% 40% at 58% 72%, rgba(200, 100, 255, 0.5), transparent 68%),
        radial-gradient(ellipse 38% 28% at 32% 22%, rgba(0, 220, 255, 0.45), transparent 62%);
    animation: bootAuroraDrift 10s ease-in-out 1.2s infinite alternate-reverse;
    transform: translate(calc(var(--mx) * -10px), calc(var(--my) * 6px));
}

.boot-aurora-c {
    opacity: 0.55;
    background:
        radial-gradient(ellipse 45% 35% at 70% 45%, rgba(255, 220, 80, 0.4), transparent 65%),
        radial-gradient(ellipse 40% 30% at 15% 75%, rgba(80, 255, 120, 0.45), transparent 60%);
    animation: bootAuroraDrift 12s ease-in-out 0.6s infinite alternate;
    transform: translate(calc(var(--mx) * 8px), calc(var(--my) * -10px));
}

.boot-color-wash {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        125deg,
        rgba(255, 0, 128, 0.08) 0%,
        rgba(0, 200, 255, 0.1) 25%,
        rgba(120, 255, 80, 0.08) 50%,
        rgba(180, 80, 255, 0.1) 75%,
        rgba(255, 180, 0, 0.07) 100%
    );
    background-size: 300% 300%;
    animation: bootColorWash 10s ease-in-out infinite;
    mix-blend-mode: screen;
    pointer-events: none;
}

.boot-rays {
    position: absolute;
    inset: 0;
    background: conic-gradient(from 195deg at 50% -5%,
        transparent 0deg,
        rgba(255, 255, 200, 0.07) 18deg,
        transparent 38deg,
        rgba(120, 220, 255, 0.09) 62deg,
        transparent 88deg,
        rgba(200, 140, 255, 0.06) 110deg,
        transparent 140deg
    );
    animation: bootRaysSpin 18s linear infinite;
    opacity: 0.85;
}

.boot-streak {
    position: absolute;
    height: 2px;
    border-radius: 2px;
    filter: blur(1px);
    opacity: 0;
    animation: bootStreakFly 3.5s ease-in-out infinite;
}

.boot-streak-a {
    top: 32%;
    left: -20%;
    width: 45%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 220, 0.7), transparent);
    animation-delay: 0.5s;
}

.boot-streak-b {
    top: 58%;
    left: -15%;
    width: 38%;
    background: linear-gradient(90deg, transparent, rgba(255, 140, 220, 0.65), transparent);
    animation-delay: 2.1s;
}

.boot-horizon {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 32%;
    background: linear-gradient(to top,
        rgba(40, 180, 70, 0.45) 0%,
        rgba(30, 140, 55, 0.22) 35%,
        rgba(0, 80, 160, 0.08) 65%,
        transparent 100%
    );
    animation: bootHorizonGlow 3.5s ease-in-out infinite alternate;
}

.boot-grass {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 18%;
    background:
        repeating-linear-gradient(95deg, transparent 0px, transparent 8px, rgba(60, 200, 80, 0.15) 8px, rgba(60, 200, 80, 0.15) 9px),
        repeating-linear-gradient(85deg, transparent 0px, transparent 12px, rgba(40, 160, 60, 0.12) 12px, rgba(40, 160, 60, 0.12) 13px);
    mask-image: linear-gradient(to top, black 0%, transparent 100%);
    animation: bootGrassSway 5s ease-in-out infinite alternate;
}

.boot-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.boot-particle {
    position: absolute;
    left: var(--px);
    top: var(--py);
    width: var(--ps);
    height: var(--ps);
    border-radius: 50%;
    background: hsla(var(--ph), 90%, 65%, 0.85);
    box-shadow: 0 0 calc(var(--ps) * 2) hsla(var(--ph), 90%, 55%, 0.7);
    animation: bootParticleFloat var(--pt) ease-in-out var(--pd) infinite alternate;
}

.boot-bubbles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.boot-bubble {
    position: absolute;
    bottom: -40px;
    left: var(--x);
    width: var(--s);
    height: var(--s);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow:
        inset 0 -2px 6px rgba(0, 0, 0, 0.15),
        0 0 14px var(--bubble-glow, rgba(100, 200, 255, 0.35));
    animation: bootBubbleRise 5s ease-in-out var(--d) infinite;
}

.boot-bubble-cyan {
    --bubble-glow: rgba(0, 220, 255, 0.45);
    background:
        radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.9) 0%, transparent 40%),
        radial-gradient(circle at 50% 65%, rgba(0, 210, 255, 0.55) 0%, rgba(0, 100, 180, 0.2) 100%);
}

.boot-bubble-lime {
    --bubble-glow: rgba(120, 255, 80, 0.45);
    background:
        radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.9) 0%, transparent 40%),
        radial-gradient(circle at 50% 65%, rgba(140, 255, 100, 0.5) 0%, rgba(40, 140, 40, 0.2) 100%);
}

.boot-bubble-magenta {
    --bubble-glow: rgba(255, 100, 220, 0.45);
    background:
        radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.9) 0%, transparent 40%),
        radial-gradient(circle at 50% 65%, rgba(255, 120, 220, 0.5) 0%, rgba(140, 40, 120, 0.2) 100%);
}

.boot-bubble-gold {
    --bubble-glow: rgba(255, 200, 60, 0.5);
    background:
        radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.9) 0%, transparent 40%),
        radial-gradient(circle at 50% 65%, rgba(255, 220, 80, 0.55) 0%, rgba(180, 120, 20, 0.2) 100%);
}

.boot-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 75% 65% at 50% 45%, transparent 25%, rgba(0, 5, 25, 0.5) 100%);
    pointer-events: none;
}

.boot-lens-flare {
    position: absolute;
    pointer-events: none;
    filter: blur(6px);
}

.boot-lens-flare-a {
    top: 14%;
    left: 50%;
    width: 380px;
    height: 140px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(255, 240, 180, 0.2) 0%, rgba(255, 180, 80, 0.08) 40%, transparent 70%);
    opacity: 0;
    animation: bootFlareIn 1s ease 0.3s forwards, bootFlarePulseA 3s ease-in-out 1.3s infinite;
}

.boot-lens-flare-b {
    top: 42%;
    left: 72%;
    width: 200px;
    height: 80px;
    background: radial-gradient(ellipse at center, rgba(180, 120, 255, 0.25) 0%, transparent 70%);
    opacity: 0;
    animation: bootFlareIn 1.2s ease 0.8s forwards, bootFlarePulse 4s ease-in-out 2s infinite;
}

/* ── Center content ── */
.boot-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 0 24px;
    animation: bootContentIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.boot-orb {
    position: relative;
    width: 92px;
    height: 92px;
    margin-bottom: 6px;
}

.boot-orb-ring {
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    background: conic-gradient(from 0deg,
        rgba(0, 220, 255, 0.7),
        rgba(120, 255, 80, 0.7),
        rgba(255, 200, 60, 0.7),
        rgba(255, 100, 200, 0.7),
        rgba(140, 100, 255, 0.7),
        rgba(0, 220, 255, 0.7)
    );
    mask: radial-gradient(circle, transparent 58%, black 60%);
    -webkit-mask: radial-gradient(circle, transparent 58%, black 60%);
    animation: bootRingSpin 4s linear infinite;
    opacity: 0.85;
}

.boot-orb-halo {
    position: absolute;
    inset: -24px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 220, 255, 0.4) 0%, transparent 70%);
    animation: bootOrbPulse 2.5s ease-in-out infinite;
}

.boot-orb-halo-b {
    inset: -32px;
    background: radial-gradient(circle, rgba(200, 100, 255, 0.28) 0%, transparent 70%);
    animation: bootOrbPulse 3.2s ease-in-out 0.8s infinite reverse;
}

.boot-orb-glass {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.1) 22%, transparent 45%),
        radial-gradient(circle at 50% 80%, rgba(0, 160, 255, 0.55) 0%, rgba(120, 60, 200, 0.35) 100%);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow:
        0 8px 40px rgba(0, 180, 255, 0.5),
        0 0 60px rgba(180, 80, 255, 0.25),
        inset 0 2px 5px rgba(255, 255, 255, 0.65),
        inset 0 -3px 8px rgba(0, 40, 120, 0.35);
    animation: bootOrbFloat 3.5s ease-in-out infinite, bootOrbHue 6s ease-in-out infinite;
}

.boot-orb-mark {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    font-size: 27px;
    font-weight: 300;
    letter-spacing: -1px;
    color: rgba(255, 255, 255, 0.98);
    text-shadow:
        0 0 12px rgba(0, 200, 255, 0.8),
        0 1px 3px rgba(0, 60, 120, 0.5);
}

.boot-orb-shine {
    position: absolute;
    top: 10%;
    left: 16%;
    width: 40%;
    height: 24%;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.85) 0%, transparent 70%);
    transform: rotate(-25deg);
}

.boot-logo-text {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    font-size: 33px;
    font-weight: 200;
    letter-spacing: 9px;
    text-transform: lowercase;
    background: linear-gradient(135deg, #ffffff 0%, #80e8ff 30%, #a0ff90 55%, #ffb0f0 80%, #ffffff 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 20px rgba(100, 220, 255, 0.7)) drop-shadow(0 0 40px rgba(180, 100, 255, 0.35));
    animation: bootIn 0.7s ease 0.55s forwards, bootLogoShimmer 4s ease-in-out 1.2s infinite;
    opacity: 0;
}

.boot-logo-sub {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: rgba(180, 240, 255, 0.75);
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-top: -10px;
    text-shadow: 0 0 10px rgba(0, 200, 255, 0.4);
    opacity: 0;
    animation: bootIn 0.6s ease 0.85s forwards;
}

.boot-progress-wrap {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 10px;
    width: min(300px, 78vw);
}

.boot-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    opacity: 0;
    animation: bootIn 0.4s ease 1s forwards;
}

.boot-progress-label {
    font-family: 'Segoe UI', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: rgba(160, 220, 255, 0.65);
}

.boot-percent {
    font-family: 'Segoe UI', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: rgba(120, 255, 200, 0.95);
    text-shadow: 0 0 10px rgba(0, 255, 180, 0.5);
    font-variant-numeric: tabular-nums;
}

.boot-progress-track {
    position: relative;
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    opacity: 0;
    animation: bootIn 0.45s ease 1.05s forwards;
}

.boot-progress-fill {
    position: relative;
    height: 100%;
    width: 0%;
    border-radius: 3px;
    background: linear-gradient(90deg,
        #00c8ff 0%,
        #50ff90 25%,
        #ffe040 50%,
        #ff80d0 75%,
        #9080ff 100%
    );
    background-size: 200% 100%;
    box-shadow:
        0 0 20px rgba(0, 220, 255, 0.9),
        0 0 40px rgba(120, 255, 100, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    animation:
        bootBar 2.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.15s forwards,
        bootProgressHue 2s linear 1.15s infinite;
}

.boot-progress-glow {
    position: absolute;
    top: -4px;
    left: 0;
    height: 14px;
    width: 0%;
    border-radius: 8px;
    background: radial-gradient(ellipse at right, rgba(0, 255, 220, 0.6) 0%, transparent 70%);
    filter: blur(4px);
    animation: bootBar 2.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.15s forwards;
    pointer-events: none;
}

.boot-progress-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg,
        transparent 0%,
        transparent 38%,
        rgba(255, 255, 255, 0.55) 50%,
        transparent 62%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: bootShimmer 1.1s ease-in-out 1.2s infinite;
    pointer-events: none;
}

.boot-status-text {
    font-family: 'Segoe UI', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: rgba(160, 220, 255, 0.9);
    letter-spacing: 0.3px;
    min-height: 16px;
    text-align: center;
    opacity: 0;
    animation: bootIn 0.5s ease 1.15s forwards;
    transition: opacity 0.2s ease, color 0.3s ease, text-shadow 0.3s ease;
}

.boot-skip-hint {
    font-family: 'Segoe UI', sans-serif;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.28);
    letter-spacing: 0.5px;
    margin-top: 4px;
    opacity: 0;
    animation: bootIn 0.5s ease 2.2s forwards;
}

/* ── Boot keyframes ── */
@keyframes bootIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes bootBar {
    0%   { width: 0%; }
    18%  { width: 18%; }
    38%  { width: 42%; }
    58%  { width: 63%; }
    78%  { width: 82%; }
    92%  { width: 94%; }
    100% { width: 100%; }
}

@keyframes bootShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes bootProgressHue {
    0%   { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

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

@keyframes bootBubbleRise {
    0%   { transform: translateY(0) scale(1) translateX(0); opacity: 0; }
    8%   { opacity: 0.9; }
    50%  { transform: translateY(-52vh) scale(1.05) translateX(8px); }
    85%  { opacity: 0.55; }
    100% { transform: translateY(-108vh) scale(1.1) translateX(-6px); opacity: 0; }
}

@keyframes bootParticleFloat {
    from { transform: translate(0, 0) scale(1); opacity: 0.4; }
    to   { transform: translate(12px, -18px) scale(1.4); opacity: 0.95; }
}

@keyframes bootAuroraDrift {
    from { transform: translate(calc(var(--mx) * 12px), calc(var(--my) * 8px)) scale(1); }
    to   { transform: translate(calc(3% + var(--mx) * 12px), calc(-2% + var(--my) * 8px)) scale(1.08); }
}

@keyframes bootRaysSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes bootRaysPulse {
    0%, 100% { opacity: 0.7; }
    50%      { opacity: 1; }
}

@keyframes bootHorizonGlow {
    from { opacity: 0.75; filter: brightness(1); }
    to   { opacity: 1; filter: brightness(1.15); }
}

@keyframes bootGrassSway {
    from { transform: skewX(-1deg); }
    to   { transform: skewX(1deg); }
}

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

@keyframes bootStreakFly {
    0%   { transform: translateX(0); opacity: 0; }
    15%  { opacity: 0.8; }
    85%  { opacity: 0.6; }
    100% { transform: translateX(280vw); opacity: 0; }
}

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

@keyframes bootSunPulse {
    0%, 100% { transform: translateX(-50%) scale(1); filter: brightness(1); }
    50%      { transform: translateX(-50%) scale(1.06); filter: brightness(1.12); }
}

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

@keyframes bootFlarePulseA {
    0%, 100% { opacity: 0.65; transform: translateX(-50%) scale(1); }
    50%      { opacity: 1; transform: translateX(-50%) scale(1.06); }
}

@keyframes bootFlarePulse {
    0%, 100% { opacity: 0.65; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.06); }
}

@keyframes bootRingSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes bootOrbFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

@keyframes bootOrbPulse {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.14); }
}

@keyframes bootOrbHue {
    0%, 100% { filter: hue-rotate(0deg); }
    50%      { filter: hue-rotate(25deg); }
}

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

@keyframes bootContentOut {
    to { opacity: 0; transform: scale(0.96) translateY(-8px); }
}

@keyframes bootRevealOut {
    0% {
        clip-path: circle(150% at 50% 45%);
        opacity: 1;
    }
    100% {
        clip-path: circle(0% at 50% 42%);
        opacity: 0;
    }
}

@keyframes bootFadeOut {
    to { opacity: 0; }
}

@keyframes bootBarReduced {
    to { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    #vista-boot.boot-exit {
        animation: bootFadeOut 0.35s ease forwards;
    }

    .boot-aurora,
    .boot-bubble,
    .boot-particle,
    .boot-orb-glass,
    .boot-orb-halo,
    .boot-orb-ring,
    .boot-lens-flare,
    .boot-rays,
    .boot-color-wash,
    .boot-streak,
    .boot-sun,
    .boot-grass,
    .boot-progress-shimmer,
    .boot-logo-text {
        animation: none !important;
    }

    .boot-logo-text {
        opacity: 1;
        background: #fff;
        -webkit-background-clip: text;
        background-clip: text;
    }

    .boot-content {
        animation: bootIn 0.3s ease forwards;
    }

    .boot-progress-fill,
    .boot-progress-glow {
        animation: bootBarReduced 1.2s ease 0.3s forwards;
    }
}

/* ── 10. RIGHT-CLICK CONTEXT MENU ────────────────────────────────────── */
.vista-context-menu {
    position: fixed;
    z-index: 50000;
    min-width: 186px;
    background: rgba(28,28,28,0.95);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    border: 1px solid rgba(255,255,255,0.11);
    box-shadow:
        0 8px 28px rgba(0,0,0,0.50),
        inset 0 1px 0 rgba(255,255,255,0.07);
    padding: 3px 0;
    display: none;
}
.vista-context-menu.show {
    display: block;
    animation: ctxIn 0.13s ease-out;
}
@keyframes ctxIn {
    from { opacity:0; transform: scale(0.96) translateY(-5px); }
    to   { opacity:1; transform: scale(1)    translateY(0);    }
}

.vista-ctx-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 14px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 12px;
    color: rgba(255,255,255,0.88);
    cursor: pointer;
    transition: background 0.08s;
    user-select: none;
}
.vista-ctx-item:hover {
    background: rgba(0,120,215,0.78);
    color: white;
}
.vista-ctx-item i {
    width: 14px;
    text-align: center;
    font-size: 11px;
    opacity: 0.75;
    flex-shrink: 0;
}
.vista-ctx-sep {
    height: 1px;
    background: rgba(255,255,255,0.09);
    margin: 3px 0;
}

/* ── 11. TOOLTIP ─────────────────────────────────────────────────────── */
#vista-tooltip {
    position: fixed;
    z-index: 60000;
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(170,210,245,0.80);
    border-radius: 3px;
    padding: 4px 9px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 11px;
    color: #1a1a1a;
    box-shadow:
        0 3px 10px rgba(0,0,0,0.18),
        inset 0 1px 0 rgba(255,255,255,0.80);
    pointer-events: none;
    white-space: nowrap;
    display: none;
    transform: translateX(-50%);
}
#vista-tooltip.show { display: block; animation: tipIn 0.12s ease; }
@keyframes tipIn { from { opacity:0; } to { opacity:1; } }

/* ── 12. TASKBAR SEPARATOR GROOVE ───────────────────────────────────── */
.vista-taskbar-sep {
    width: 1px;
    height: 28px;
    flex-shrink: 0;
    margin: 0 3px;
    background: linear-gradient(to bottom,
        transparent            0%,
        rgba(255,255,255,0.18) 25%,
        rgba(255,255,255,0.18) 75%,
        transparent            100%
    );
    position: relative;
}
.vista-taskbar-sep::after {
    content: '';
    position: absolute;
    top: 0; left: 1px; bottom: 0; width: 1px;
    background: linear-gradient(to bottom,
        transparent           0%,
        rgba(0,0,0,0.12)      25%,
        rgba(0,0,0,0.12)      75%,
        transparent           100%
    );
}

/* ── 13. PORTFOLIO VIDEO: Aero media-player chrome ───────────────────── */
.aero-media-frame {
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    background: #000;
    box-shadow:
        0 5px 22px rgba(0,0,0,0.45),
        0 0 0 1px rgba(255,255,255,0.09),
        inset 0 1px 0 rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.10);
}
.aero-media-frame::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(to bottom,
        rgba(255,255,255,0.14), transparent
    );
    z-index: 2;
    pointer-events: none;
}

/* ── 14. CLOCK DATE ──────────────────────────────────────────────────── */
#vista-time {
    line-height: 1.35;
    text-align: center;
}
#vista-time small {
    font-size: 9px;
    opacity: 0.72;
    display: block;
    font-weight: 400;
}

/* ── 15. WELCOME WINDOW: entrance animation ──────────────────────────── */
#welcome-window {
    animation: vistaWindowOpen 0.30s cubic-bezier(0.22,1,0.36,1) both;
}

/* ── 16. EMAIL SHIELD — Vista desktop widget ─────────────────────────── */
.email-shield {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    vertical-align: middle;
}

/* Reveal button — same purple as site buttons */
.email-reveal-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    background: linear-gradient(to bottom,
        rgba(180,130,230,0.90) 0%,
        rgba(160,110,210,0.85) 55%,
        rgba(140,90,190,0.80)  55%,
        rgba(120,70,170,0.90)  100%
    );
    border: 1px solid rgba(255,255,255,0.40);
    border-radius: 4px;
    color: rgba(255,255,255,0.97);
    font-family: 'Segoe UI', sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-shadow: 0 1px 2px rgba(0,0,0,0.32);
    box-shadow:
        0 2px 4px rgba(0,0,0,0.24),
        inset 0 1px 0 rgba(255,255,255,0.50);
    transition: transform 0.12s ease, opacity 0.12s ease;
    white-space: nowrap;
}
.email-reveal-btn:hover { transform: translateY(-1px); opacity: 0.90; }
.email-reveal-btn i { font-size: 10px; opacity: 0.85; }

/* Challenge row */
.email-challenge {
    display: none;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(180,210,240,0.70);
    border-radius: 6px;
    padding: 4px 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    font-family: 'Segoe UI', sans-serif;
    font-size: 12px;
    color: #1a1a1a;
    white-space: nowrap;
}

.challenge-text {
    font-weight: 600;
    letter-spacing: 0.1px;
}

.challenge-input {
    width: 50px;
    padding: 3px 6px;
    border: 1px solid rgba(0,120,215,0.40);
    border-radius: 3px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 12px;
    text-align: center;
    background: white;
    color: #1a1a1a;
    outline: none;
    /* Hide number spin arrows */
    -moz-appearance: textfield;
}
.challenge-input::-webkit-outer-spin-button,
.challenge-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.challenge-input:focus {
    border-color: #0078D7;
    box-shadow: 0 0 0 2px rgba(0,120,215,0.18);
}

/* Arrow submit button */
.challenge-submit {
    width: 22px;
    height: 22px;
    background: linear-gradient(to bottom,
        rgba(0,120,215,0.92), rgba(0,80,175,0.92)
    );
    border: none;
    border-radius: 3px;
    color: white;
    cursor: pointer;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.30);
    transition: opacity 0.12s ease;
}
.challenge-submit:hover { opacity: 0.86; }

.challenge-error {
    color: #c53030;
    font-size: 11px;
    font-weight: 700;
}

/* Revealed email */
.email-revealed {
    display: none;
    align-items: center;
    gap: 7px;
}

.email-link {
    font-family: 'Segoe UI', sans-serif;
    font-size: 13px;
    color: #0078D7;
    text-decoration: none;
    font-weight: 300;
}
.email-link:hover { text-decoration: underline; }

.email-copy {
    width: 20px;
    height: 20px;
    background: rgba(0,120,215,0.10);
    border: 1px solid rgba(0,120,215,0.28);
    border-radius: 3px;
    color: #0078D7;
    cursor: pointer;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.12s ease;
    flex-shrink: 0;
}
.email-copy:hover { background: rgba(0,120,215,0.20); }

/* ── Mobile iOS variant (inside .ios-row-detail) ────────────────────── */
.email-shield-ios { display: flex; flex-direction: column; gap: 4px; }

.ios-reveal-btn {
    background: none;
    border: none;
    padding: 0;
    color: #007AFF;
    font-size: 13px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    cursor: pointer;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
}
.ios-reveal-btn:active { opacity: 0.6; }
