/* ══════════════════════════════════════════════════════
   LE STORE — dstyle.css  (Redesign 2026)
   Fonts: Syne (display) · DM Sans (body)
   Palette: #07090f base · #1a1d2e surface · #4f8cff accent · #ff4757 red
   ══════════════════════════════════════════════════════ */

:root {
    --bg:        #07090f;
    --surface:   #0f1120;
    --surface2:  #161928;
    --border:    rgba(255,255,255,0.07);
    --accent:    #4f8cff;
    --accent2:   #7b5fff;
    --red:       #ff4757;
    --green:     #2ecc71;
    --text:      #e8eaf0;
    --text-dim:  rgba(232,234,240,0.45);
    --text-mute: rgba(232,234,240,0.2);
    --header-h:  64px;
    --sidebar-w: 240px;
    --card-w:    280px;
    --card-h:    390px;
    --radius:    14px;
    --radius-sm: 8px;
    --ease:      cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── RESET / BASE ─────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    overflow: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
    -webkit-user-select: none;
    user-select: none;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { text-decoration: none; }
img, video { -webkit-user-drag: none; }

/* No-select on chrome UI elements */
button, nav, .le-box, .sidebar-item, .section-tag,
.arrow-btn, .top-nav, .panel-back, .panel-title,
#menu-toggle, .scroll-text, .dev-name, .dev-tag,
.acct-chevron, #acct-btn {
    -webkit-user-select: none;
    user-select: none;
}

/* ══════════════════════════════════════
   LOADER
══════════════════════════════════════ */
#loader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 999;
    transition: opacity 0.5s ease;
}

#moving-logo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    color: black;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    padding: 14px 32px;
    font-size: 2.8rem;
    z-index: 1001;
    border-radius: 6px;
    letter-spacing: 4px;
    box-shadow: 0 0 0 1px rgba(79,140,255,0.3), 0 0 60px rgba(79,140,255,0.15);
    transition: all 0.8s var(--ease);
    animation: loaderPulse 1.8s ease-in-out infinite;
    white-space: nowrap;
    will-change: top, left, font-size, padding;
}

@keyframes loaderPulse {
    0%, 100% { box-shadow: 0 0 0 1px rgba(79,140,255,0.3), 0 0 40px rgba(79,140,255,0.1); }
    50%       { box-shadow: 0 0 0 1px rgba(79,140,255,0.6), 0 0 80px rgba(79,140,255,0.25); }
}

.motion-blur { filter: blur(5px) !important; opacity: 0.7; }

#virtual-cursor {
    position: fixed;
    width: 36px; height: 36px;
    border: 1.5px solid rgba(79,140,255,0.6);
    border-radius: 50%;
    background: rgba(79,140,255,0.06);
    z-index: 1002;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease, top 0.8s var(--ease), left 0.8s var(--ease);
}

/* ══════════════════════════════════════
   HEADER
══════════════════════════════════════ */
#main-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px 0 16px;
    background: rgba(7,9,15,0.82);
    backdrop-filter: blur(20px) saturate(1.6);
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transition: opacity 0.5s ease;
}
.header-visible { opacity: 1 !important; }

/* Left */
.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

/* Hamburger */
#menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px; height: 36px;
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
    flex-shrink: 0;
}
#menu-toggle:hover { background: rgba(255,255,255,0.06); }
#menu-toggle:active { transform: scale(0.9); transition-duration: 0.06s; }

/* ── Theme Toggle (Full Button 3D Coin Toss) ── */

/* Wrapper holds button + ground shadow as siblings */
#theme-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Ground shadow — sibling so it stays on the "floor" while button flies */
#theme-shadow {
    position: absolute;
    bottom: -5px; left: 50%;
    width: 22px; height: 5px;
    margin-left: -11px;
    border-radius: 50%;
    background: rgba(0,0,0,0.25);
    filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

/* The button itself */
#theme-toggle {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1.5px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    position: relative;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.35s, transform 0.4s var(--ease);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.06),
        0 2px 8px rgba(0,0,0,0.2);
}

/* 3D hover — entire button tilts toward you */
#theme-toggle:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
    box-shadow:
        inset 0 -1px 0 rgba(0,0,0,0.08),
        0 8px 24px rgba(0,0,0,0.35),
        0 0 24px rgba(79,140,255,0.15);
    transform: perspective(400px) rotateY(20deg) rotateX(-10deg) translateZ(6px) scale(1.08);
}

/* Icon wrapper — no animation, just holds icons */
#theme-flipper {
    position: relative;
    width: 16px; height: 16px;
    display: flex; align-items: center; justify-content: center;
}

/* Icons */
.theme-icon {
    width: 16px; height: 16px;
    stroke: var(--text-dim);
    position: absolute;
    transition: transform 0.5s var(--ease), opacity 0.35s;
}
.sun-icon  { transform: rotate(90deg) scale(0); opacity: 0; }
.moon-icon { transform: rotate(0deg) scale(1); opacity: 1; }
body.light .sun-icon  { transform: rotate(0deg) scale(1); opacity: 1; }
body.light .moon-icon { transform: rotate(-90deg) scale(0); opacity: 0; }

/* ══════════════════════════════════════════════════
   FULL BUTTON COIN TOSS
   The ENTIRE circular button launches, spins, lands
   ══════════════════════════════════════════════════ */
#theme-toggle.flipping {
    animation:
        coinToss 0.85s ease-in-out,
        coinFlash 0.85s ease-in-out;
    pointer-events: none;
}
/* Ground shadow animates via sibling selector */
#theme-toggle.flipping ~ #theme-shadow {
    animation: coinShadow 0.85s ease-in-out forwards;
}

@keyframes coinToss {
    0% {
        transform: perspective(800px) translateY(0) translateZ(0) rotateX(0deg) scale(1);
        filter: brightness(1) blur(0px);
    }
    8% {
        transform: perspective(800px) translateY(-6px) translateZ(50px) rotateX(25deg) scale(1.05);
        filter: brightness(1.02) blur(0px);
    }
    18% {
        transform: perspective(800px) translateY(-16px) translateZ(95px) rotateX(80deg) scale(1.12);
        filter: brightness(1.05) blur(1.5px);
    }
    30% {
        transform: perspective(800px) translateY(-24px) translateZ(115px) rotateX(145deg) scale(1.18);
        filter: brightness(1.15) blur(3px);
    }
    42% {
        transform: perspective(800px) translateY(-26px) translateZ(120px) rotateX(175deg) scale(1.2);
        filter: brightness(1.5) blur(2px);
    }
    50% {
        transform: perspective(800px) translateY(-24px) translateZ(110px) rotateX(180deg) scale(1.16);
        filter: brightness(3) blur(0px);
    }
    58% {
        transform: perspective(800px) translateY(-20px) translateZ(90px) rotateX(210deg) scale(1.12);
        filter: brightness(1.4) blur(3px);
    }
    68% {
        transform: perspective(800px) translateY(-14px) translateZ(60px) rotateX(260deg) scale(1.06);
        filter: brightness(1.2) blur(2px);
    }
    78% {
        transform: perspective(800px) translateY(-5px) translateZ(18px) rotateX(320deg) scale(1.01);
        filter: brightness(1.05) blur(1px);
    }
    85% {
        transform: perspective(800px) translateY(3px) translateZ(0) rotateX(348deg) scale(0.92);
        filter: brightness(1) blur(0px);
        box-shadow:
            inset 0 2px 0 rgba(255,255,255,0.04),
            0 1px 3px rgba(0,0,0,0.4);
    }
    90% {
        transform: perspective(800px) translateY(-4px) translateZ(14px) rotateX(354deg) scale(1.04);
        filter: brightness(1) blur(0px);
    }
    95% {
        transform: perspective(800px) translateY(1px) translateZ(0) rotateX(358deg) scale(0.98);
        filter: brightness(1) blur(0px);
    }
    100% {
        transform: perspective(800px) translateY(0) translateZ(0) rotateX(360deg) scale(1);
        filter: brightness(1) blur(0px);
    }
}

@keyframes coinFlash {
    0%, 38%, 62%, 78%, 100% {
        box-shadow:
            inset 0 1px 0 rgba(255,255,255,0.06),
            0 2px 8px rgba(0,0,0,0.2);
    }
    50% {
        box-shadow:
            0 0 40px rgba(255,255,255,0.6),
            0 0 80px rgba(79,140,255,0.4),
            0 0 140px rgba(79,140,255,0.2),
            0 0 220px rgba(79,140,255,0.08);
    }
    85% {
        box-shadow:
            inset 0 2px 0 rgba(255,255,255,0.04),
            0 1px 3px rgba(0,0,0,0.4);
    }
}

@keyframes coinShadow {
    0%   { transform: scale(1);        opacity: 0;    filter: blur(3px); }
    4%   { transform: scale(1);        opacity: 0.5;  filter: blur(3px); }
    12%  { transform: scale(1.9, 0.45); opacity: 0.18; filter: blur(7px); }
    32%  { transform: scale(2.8, 0.2);  opacity: 0.03; filter: blur(12px);}
    50%  { transform: scale(3.2, 0.15); opacity: 0.02; filter: blur(15px);}
    65%  { transform: scale(2.4, 0.35); opacity: 0.06; filter: blur(9px); }
    78%  { transform: scale(0.8, 1.4);  opacity: 0.6;  filter: blur(2px); }
    85%  { transform: scale(1.6, 0.6);  opacity: 0.2;  filter: blur(5px); }
    92%  { transform: scale(1.1, 0.9);  opacity: 0.4;  filter: blur(3px); }
    100% { transform: scale(1);        opacity: 0;    filter: blur(3px); }
}

/* Light mode flash — warm gold burst */
body.light #theme-toggle.flipping {
    animation:
        coinToss 0.85s ease-in-out,
        coinFlashLight 0.85s ease-in-out;
}
@keyframes coinFlashLight {
    0%, 38%, 62%, 78%, 100% {
        box-shadow:
            inset 0 1px 0 rgba(0,0,0,0.04),
            0 2px 8px rgba(0,0,0,0.08);
    }
    50% {
        box-shadow:
            0 0 40px rgba(255,210,60,0.6),
            0 0 80px rgba(255,170,30,0.4),
            0 0 140px rgba(255,170,30,0.2),
            0 0 220px rgba(255,170,30,0.08);
    }
    85% {
        box-shadow:
            inset 0 2px 0 rgba(0,0,0,0.02),
            0 1px 3px rgba(0,0,0,0.15);
    }
}
body.light #theme-shadow { background: rgba(0,0,0,0.12); }

#menu-toggle span {
    display: block;
    width: 18px; height: 1.5px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.35s var(--ease);
    transform-origin: center;
}
#menu-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
#menu-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
#menu-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Logo */
#draggable-header-logo {
    display: flex;
    align-items: center;
    gap: 0;
    cursor: pointer;
    flex-shrink: 0;
    perspective: 300px;
}

@property --logo-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.le-box {
    background: transparent;
    color: white;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 5px 10px;
    border-radius: 6px;
    letter-spacing: 2px;
    display: inline-flex;
    align-items: center;
    z-index: 2;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.4s var(--ease), filter 0.2s, box-shadow 0.4s var(--ease);
    animation: logoBreath 4s ease-in-out infinite;
}

/* Rotating energy border */
.le-box::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 8px;
    background: conic-gradient(
        from var(--logo-angle, 0deg),
        transparent 0%,
        rgba(79,140,255,0.85) 6%,
        rgba(123,95,255,0.7) 12%,
        transparent 20%,
        transparent 100%
    );
    z-index: -2;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: borderSpin 2.8s linear infinite;
    filter: blur(0.5px);
}

/* Solid fill behind the border */
.le-box::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 6px;
    background: var(--accent);
    z-index: -1;
}

@keyframes borderSpin {
    from { --logo-angle: 0deg; }
    to { --logo-angle: 360deg; }
}

@keyframes logoBreath {
    0%, 100% { box-shadow: 0 0 0 0 rgba(79,140,255,0); }
    50% { box-shadow: 0 0 18px rgba(79,140,255,0.12), 0 0 40px rgba(79,140,255,0.05); }
}

@media (hover: hover) {
    #draggable-header-logo:hover .le-box {
        transform: rotateY(-12deg) rotateX(6deg) translateZ(10px);
        box-shadow:
            3px 3px 0 0 rgba(25,55,120,0.55),
            6px 6px 0 0 rgba(18,38,85,0.4),
            9px 9px 0 0 rgba(12,25,60,0.25),
            0 0 35px rgba(79,140,255,0.25);
        filter: brightness(1.15);
        animation: none;
    }
    #draggable-header-logo:hover .le-box::before {
        opacity: 1;
    }
    #draggable-header-logo:hover .le-box::after {
        background: linear-gradient(135deg, var(--accent), rgba(123,95,255,0.9));
    }
}

.text-reveal-container {
    overflow: hidden;
    display: flex;
    align-items: center;
    width: 90px;
}

#header-text-slide {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-dim);
    padding-left: 10px;
    transform: translateX(-110%);
    opacity: 0;
    transition: transform 0.6s var(--ease), opacity 0.4s ease;
    white-space: nowrap;
    position: relative;
}
#header-text-slide.revealed { transform: translateX(0); opacity: 1; }
.text-exit-fade { transform: translateX(0) !important; opacity: 0 !important; transition: opacity 0.25s ease !important; }

/* Center nav */
.header-center { display: flex; align-items: center; }

.top-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-pill {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.4px;
    color: var(--text-dim);
    padding: 6px 14px;
    border-radius: 20px;
    transition: color 0.2s, background 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
    transform: translateZ(0);
}
.nav-pill:hover {
    color: var(--text);
    background: rgba(255,255,255,0.06);
    transform: translateY(-1px) translateZ(2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.nav-pill:active {
    transform: translateY(1px) translateZ(-1px) scale(0.96);
    transition-duration: 0.08s;
}
.nav-pill.active {
    color: white;
    background: rgba(79,140,255,0.14);
    box-shadow: 0 2px 14px rgba(79,140,255,0.15);
    transform: translateZ(1px);
}
.nav-pill.active:hover {
    background: rgba(79,140,255,0.22);
    transform: translateY(-1px) translateZ(3px);
    box-shadow: 0 4px 18px rgba(79,140,255,0.25);
}

/* Right */
.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: flex-end;
}

/* Search */
.search-container {
    position: relative;
    z-index: 101;
    display: flex;
    align-items: center;
    width: 160px;
    transition: width 0.5s var(--ease);
}
.search-container.expanded { width: 360px; }

#app-search {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    padding: 7px 36px 7px 34px;
    border-radius: 20px;
    color: var(--text);
    outline: none;
    font-size: 0.82rem;
    font-family: 'DM Sans', sans-serif;
    transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
#app-search:focus {
    border-color: rgba(79,140,255,0.4);
    background: rgba(79,140,255,0.05);
    box-shadow: 0 0 0 3px rgba(79,140,255,0.08);
}
#app-search::placeholder { color: var(--text-mute); }

.search-icon {
    position: absolute; left: 11px;
    width: 15px; height: 15px;
    stroke: var(--text-dim);
    pointer-events: none;
    z-index: 102;
}

#clear-search {
    position: absolute; right: 11px;
    width: 16px; height: 16px;
    stroke: var(--text-dim);
    cursor: pointer;
    z-index: 103;
    opacity: 0; visibility: hidden;
    transition: 0.2s;
}
#clear-search.visible { opacity: 0.7; visibility: visible; }
#clear-search:hover { opacity: 1; stroke: var(--red); }

#search-history {
    position: absolute;
    top: calc(100% + 8px); left: 0; right: 0;
    background: rgba(10,12,22,0.98);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: none;
    flex-direction: column;
    padding: 6px 0;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    max-height: 260px;
    overflow-y: auto;
}
.history-item {
    padding: 9px 16px;
    font-size: 0.82rem;
    color: var(--text-dim);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    transition: background 0.15s, color 0.15s;
}
.history-item:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.history-item .item-content { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; }
.history-item .item-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-item svg { width: 13px; flex-shrink: 0; opacity: 0.45; }
.history-item .delete-history { padding: 3px; border-radius: 4px; transition: 0.2s; }
.history-item .delete-history:hover { background: rgba(255,71,87,0.15); color: var(--red); }

/* Account */
#acct-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    padding: 5px 10px 5px 5px;
    border-radius: 24px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.04);
    transition: background 0.2s, border-color 0.2s;
    flex-shrink: 0;
}
#acct-btn:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.15); transform: translateZ(1px); }
#acct-btn:active { transform: translateZ(-1px) scale(0.97); transition-duration: 0.06s; }

#acct-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(79,140,255,0.3);
    background: var(--surface2);
}
#acct-name {
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--text-dim);
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.acct-chevron {
    width: 14px; height: 14px;
    stroke: var(--text-mute);
    transition: transform 0.25s;
}
#acct-dropdown.open ~ .acct-chevron,
#acct-btn:has(.open) .acct-chevron { transform: rotate(180deg); }

#acct-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 220px;
    background: rgba(10,12,20,0.98);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 6px 0;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    z-index: 300;
    opacity: 0; visibility: hidden;
    transform: translateY(-6px) scale(0.97);
    transform-origin: top right;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
#acct-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.dd-profile-block {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
}
.dd-profile-block img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(79,140,255,0.3); }
.dd-profile-name { font-weight: 700; font-size: 0.8rem; }
.dd-profile-role { font-size: 0.62rem; color: var(--accent); letter-spacing: 1.5px; text-transform: uppercase; margin-top: 1px; }

.dd-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    font-size: 0.8rem; color: var(--text-dim);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, transform 0.18s var(--ease), padding-left 0.18s var(--ease);
    transform: translateZ(0);
}
.dd-item:hover {
    background: rgba(255,255,255,0.04);
    color: var(--text);
    transform: translateX(3px) translateZ(2px);
    padding-left: 17px;
}
.dd-item:active {
    transform: translateX(1px) translateZ(0) scale(0.97);
    transition-duration: 0.06s;
}
.dd-item svg { width: 15px; height: 15px; stroke: currentColor; flex-shrink: 0; }
.dd-divider { height: 1px; background: var(--border); margin: 4px 0; }
.dd-item.signout { color: var(--red); }
.dd-item.signout:hover { background: rgba(255,71,87,0.07); box-shadow: inset 0 0 20px rgba(255,71,87,0.04); }
.dd-item.signout:active { transform: scale(0.96) !important; }

/* ══════════════════════════════════════
   AMBIENT / OVERLAYS
══════════════════════════════════════ */
.ambient-orb {
    position: fixed; border-radius: 50%;
    pointer-events: none; z-index: 0;
    filter: blur(100px); opacity: 0;
    animation: orbReveal 2s 2s forwards;
}
@keyframes orbReveal { to { opacity: 1; } }

.orb-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(79,140,255,0.22) 0%, transparent 70%);
    top: -15%; left: -10%;
    animation: orbReveal 2s 2s forwards, orbFloat1 22s 4s ease-in-out infinite;
    opacity: 0;
}
.orb-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(123,95,255,0.18) 0%, transparent 70%);
    bottom: -15%; right: -10%;
    animation: orbReveal 2s 2.5s forwards, orbFloat2 28s 4s ease-in-out infinite;
    opacity: 0;
}
.orb-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(255,71,87,0.12) 0%, transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    animation: orbReveal 2s 3s forwards, orbFloat3 20s 4s ease-in-out infinite;
    opacity: 0;
}
@keyframes orbFloat1 { 0%,100%{transform:translate(0,0)}33%{transform:translate(80px,60px)}66%{transform:translate(-40px,100px)} }
@keyframes orbFloat2 { 0%,100%{transform:translate(0,0)}33%{transform:translate(-60px,-80px)}66%{transform:translate(40px,-40px)} }
@keyframes orbFloat3 { 0%,100%{transform:translate(-50%,-50%)scale(1)}50%{transform:translate(-50%,-50%)scale(1.5)} }

#vignette {
    position: fixed; inset: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.55) 100%);
    pointer-events: none; z-index: 0;
}

#grid-overlay {
    position: fixed; inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

/* ══════════════════════════════════════
   3D FLOATING PARTICLES
══════════════════════════════════════ */
#particles-container {
    position: fixed; inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: particleDrift var(--dur) var(--delay) ease-in-out infinite;
    will-change: transform, opacity;
}
.particle.type-dot {
    background: var(--p-color, rgba(79,140,255,0.5));
    box-shadow: 0 0 6px var(--p-color, rgba(79,140,255,0.3)), 0 0 15px var(--p-glow, rgba(79,140,255,0.1));
}
.particle.type-ring {
    background: transparent;
    border: 1px solid var(--p-color, rgba(79,140,255,0.25));
    box-shadow: 0 0 8px var(--p-glow, rgba(79,140,255,0.08));
}
.particle.type-diamond {
    border-radius: 2px;
    background: var(--p-color, rgba(79,140,255,0.4));
    box-shadow: 0 0 6px var(--p-glow, rgba(79,140,255,0.15));
    transform: rotate(45deg);
}

@keyframes particleDrift {
    0%, 100% { transform: translate(0, 0) rotate(var(--rot-start, 0deg)); opacity: var(--p-opacity, 0.3); }
    20% { transform: translate(var(--dx1), var(--dy1)) rotate(var(--rot-mid, 90deg)); opacity: calc(var(--p-opacity, 0.3) * 1.5); }
    50% { transform: translate(var(--dx2), var(--dy2)) rotate(var(--rot-mid, 90deg)); opacity: var(--p-opacity, 0.3); }
    80% { transform: translate(var(--dx3), var(--dy3)) rotate(var(--rot-end, 180deg)); opacity: calc(var(--p-opacity, 0.3) * 1.3); }
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero-slide {
    position: fixed;
    top: 0; left: 0;
    height: 100vh; width: 100vw;
    overflow: hidden;
    z-index: 1;
}

.yt-wrapper {
    position: absolute; inset: 0;
    z-index: -1; background: #000;
}

.video-container {
    position: absolute; inset: 0;
    pointer-events: none; overflow: hidden;
    opacity: 0; transition: opacity 1s ease-in;
}
.video-container.loaded { opacity: 1; }
.video-container video {
    width: 100%; height: 100%;
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    filter: brightness(0.55) saturate(1.1);
    object-fit: cover;
}

.hero-gradient-overlay {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
        linear-gradient(to right, rgba(7,9,15,0.75) 0%, rgba(7,9,15,0.2) 50%, transparent 100%),
        linear-gradient(to top, rgba(7,9,15,0.9) 0%, transparent 50%);
}

.hero-bottom-fade {
    position: absolute; bottom: 0; left: 0; right: 0; height: 180px; z-index: 2;
    background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
    pointer-events: none;
}

/* ══════════════════════════════════════
   3D ORBITAL RINGS
══════════════════════════════════════ */
.hero-orbits {
    position: absolute;
    top: 50%; left: 50%;
    z-index: 3;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.hero-ready .hero-orbits { opacity: 1; }

.hero-orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(79,140,255,0.12);
}

.hero-orbit-1 {
    width: 440px; height: 440px;
    margin: -220px 0 0 -220px;
    transform: rotateX(72deg);
    animation: orbitSpin1 10s linear infinite;
    box-shadow: 0 0 40px rgba(79,140,255,0.05), inset 0 0 40px rgba(79,140,255,0.02);
}
.hero-orbit-2 {
    width: 380px; height: 380px;
    margin: -190px 0 0 -190px;
    transform: rotateX(72deg) rotateY(65deg);
    animation: orbitSpin2 15s linear infinite;
    border-color: rgba(123,95,255,0.1);
    box-shadow: 0 0 40px rgba(123,95,255,0.04), inset 0 0 40px rgba(123,95,255,0.02);
}
.hero-orbit-3 {
    width: 500px; height: 500px;
    margin: -250px 0 0 -250px;
    transform: rotateX(72deg) rotateY(-55deg);
    animation: orbitSpin3 20s linear infinite;
    border-color: rgba(255,71,87,0.08);
    box-shadow: 0 0 40px rgba(255,71,87,0.03), inset 0 0 40px rgba(255,71,87,0.015);
}

/* Orbiting dots */
.orbit-dot {
    position: absolute;
    top: -6px; left: 50%;
    width: 12px; height: 12px;
    margin-left: -6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 16px var(--accent), 0 0 50px rgba(79,140,255,0.5), 0 0 100px rgba(79,140,255,0.2);
    animation: dotPulse 2.5s ease-in-out infinite;
}
.orbit-dot.dot-purple {
    background: var(--accent2);
    box-shadow: 0 0 16px var(--accent2), 0 0 50px rgba(123,95,255,0.5), 0 0 100px rgba(123,95,255,0.2);
    animation-delay: -0.8s;
}
.orbit-dot.dot-red {
    background: var(--red);
    box-shadow: 0 0 16px var(--red), 0 0 50px rgba(255,71,87,0.5), 0 0 100px rgba(255,71,87,0.2);
    animation-delay: -1.6s;
    width: 8px; height: 8px; top: -4px; margin-left: -4px;
}

/* Second dot on each ring (opposite side) */
.hero-orbit::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 50%;
    width: 8px; height: 8px;
    margin-left: -4px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    box-shadow: 0 0 10px rgba(255,255,255,0.4), 0 0 30px rgba(79,140,255,0.3);
    animation: dotPulse 2.5s ease-in-out infinite;
    animation-delay: -1.2s;
}
.hero-orbit-2::after {
    box-shadow: 0 0 10px rgba(255,255,255,0.4), 0 0 30px rgba(123,95,255,0.3);
}
.hero-orbit-3::after {
    width: 5px; height: 5px; bottom: -2.5px; margin-left: -2.5px;
    box-shadow: 0 0 8px rgba(255,255,255,0.3), 0 0 20px rgba(255,71,87,0.2);
}

/* Core glow at center */
.orbit-core-glow {
    position: absolute;
    width: 120px; height: 120px;
    margin: -60px 0 0 -60px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79,140,255,0.08) 0%, transparent 70%);
    animation: corePulse 4s ease-in-out infinite;
    filter: blur(15px);
}

@keyframes orbitSpin1 { from { transform: rotateX(72deg) rotateZ(0deg); } to { transform: rotateX(72deg) rotateZ(360deg); } }
@keyframes orbitSpin2 { from { transform: rotateX(72deg) rotateY(65deg) rotateZ(0deg); } to { transform: rotateX(72deg) rotateY(65deg) rotateZ(360deg); } }
@keyframes orbitSpin3 { from { transform: rotateX(72deg) rotateY(-55deg) rotateZ(0deg); } to { transform: rotateX(72deg) rotateY(-55deg) rotateZ(360deg); } }

@keyframes dotPulse {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.4); filter: brightness(1.5); }
}
@keyframes corePulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.5); opacity: 1; }
}

.center-content {
    position: absolute;
    top: 50%; left: 8%;
    transform: translateY(-50%);
    z-index: 10;
    max-width: 680px;
    will-change: transform, opacity;
}

.hero-eyebrow {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
    opacity: 0.9;
}

.hero-title {
    display: flex;
    align-items: baseline;
    gap: 16px;
    line-height: 1;
    margin-bottom: 16px;
}

.hero-brand {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(3.5rem, 7vw, 7rem);
    background: var(--accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -2px;
}

.text-cycle {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(3.5rem, 7vw, 7rem);
    letter-spacing: -2px;
    color: white;
    display: inline-block;
    position: relative;
    transition: transform 0.7s var(--ease), opacity 0.5s ease, filter 0.5s ease;
}
.text-out { opacity: 0; transform: translateY(40px); filter: blur(8px); }
.text-in  { opacity: 1; transform: translateY(0); filter: blur(0); }
.text-prepare { opacity: 0; transform: translateY(-40px); filter: blur(8px); transition: none !important; }

.hero-sub {
    font-size: 0.88rem;
    color: var(--text-dim);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 32px;
}

.hero-cta-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

.hero-cta-primary {
    background: var(--accent);
    color: white;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 12px 28px;
    border-radius: 24px;
    transition: filter 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(79,140,255,0.3);
}
.hero-cta-primary:hover { filter: brightness(1.12); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(79,140,255,0.45); }
.hero-cta-primary:active { transform: translateY(0); }

.hero-cta-secondary {
    background: rgba(255,255,255,0.07);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 12px 28px;
    border-radius: 24px;
    border: 1px solid var(--border);
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.hero-cta-secondary:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.15); transform: translateY(-2px); }

/* ══════════════════════════════════════
   SECTION DOTS
══════════════════════════════════════ */
#section-dots {
    position: fixed;
    right: 22px; top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}
.sec-dot {
    width: 5px; height: 5px;
    border-radius: 3px;
    background: rgba(255,255,255,0.15);
    cursor: pointer;
    transition: all 0.4s var(--ease);
    position: relative;
}
.sec-dot:hover { background: rgba(255,255,255,0.4); transform: scaleX(1.4); }
.sec-dot.active {
    background: var(--accent);
    width: 5px; height: 22px;
    box-shadow: 0 0 12px rgba(79,140,255,0.5);
}
.sec-dot-label {
    position: absolute;
    right: calc(100% + 12px); top: 50%;
    transform: translateY(-50%) translateX(6px);
    font-size: 0.58rem;
    font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
    color: white; white-space: nowrap;
    opacity: 0; pointer-events: none;
    transition: all 0.25s ease;
    text-shadow: 0 1px 6px black;
}
.sec-dot:hover .sec-dot-label { opacity: 1; transform: translateY(-50%) translateX(0); }

/* ══════════════════════════════════════
   SCROLL HINT
══════════════════════════════════════ */
.scroll-indicator {
    position: fixed; bottom: 28px; left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex; flex-direction: column; align-items: center;
    opacity: 0; transition: opacity 0.5s ease;
    pointer-events: none;
}
.mouse-icon {
    width: 20px; height: 32px;
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: 14px;
    position: relative;
}
.mouse-wheel {
    width: 3px; height: 6px;
    background: white; position: absolute;
    left: 50%; top: 6px;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scrollWheel 1.6s infinite;
}
@keyframes scrollWheel { 0%{opacity:1;top:6px}100%{opacity:0;top:18px} }
.scroll-text {
    font-size: 9px; text-transform: uppercase; letter-spacing: 2.5px;
    margin-top: 9px; font-weight: 500; color: rgba(255,255,255,0.4);
}

/* ══════════════════════════════════════
   SNAP CONTAINER + SECTIONS
══════════════════════════════════════ */
.snap-container {
    scroll-snap-type: y proximity;
    overflow-y: scroll;
    height: 100vh;
    position: relative; z-index: 2;
    scrollbar-width: none;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
}
.snap-container::-webkit-scrollbar { display: none; }
.snap-section { scroll-snap-align: start; height: 100vh; position: relative; }
.snap-section:first-child { pointer-events: none; }

.content-section {
    z-index: 10;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* subtle dot texture */
.content-section::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.025) 1px, transparent 0);
    background-size: 28px 28px;
    pointer-events: none; z-index: 0;
}
.content-section > * { position: relative; z-index: 1; }

/* per-section accent strips */
#section-games::after,
#section-apps::after,
#section-web::after,
#section-developer::after {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    pointer-events: none;
}
#section-games::after    { background: linear-gradient(90deg, transparent, #ff6b6b, transparent); }
#section-apps::after     { background: linear-gradient(90deg, transparent, var(--accent), transparent); }
#section-web::after      { background: linear-gradient(90deg, transparent, var(--green), transparent); }
#section-developer::after { background: linear-gradient(90deg, transparent, var(--accent2), transparent); }

/* Section header row */
.section-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 40px 56px 24px;
    flex-shrink: 0;
}

.section-meta { display: flex; flex-direction: column; gap: 4px; }

.section-tag {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 20px;
    display: inline-block;
    width: fit-content;
    background: rgba(79,140,255,0.12);
    color: var(--accent);
    border: 1px solid rgba(79,140,255,0.2);
}
.section-tag.games  { background: rgba(255,107,107,0.12); color: #ff6b6b; border-color: rgba(255,107,107,0.2); }
.section-tag.apps   { background: rgba(79,140,255,0.12); color: var(--accent); border-color: rgba(79,140,255,0.2); }
.section-tag.web    { background: rgba(46,204,113,0.12); color: var(--green); border-color: rgba(46,204,113,0.2); }
.section-tag.devs   { background: rgba(123,95,255,0.12); color: var(--accent2); border-color: rgba(123,95,255,0.2); }

.section-title {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 2.4rem;
    letter-spacing: -1px;
    color: var(--text);
    line-height: 1;
}

.section-nav-arrows {
    display: flex;
    gap: 8px;
    align-items: center;
    padding-bottom: 6px;
}
.arrow-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    color: var(--text-dim);
}
.arrow-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: white;
    transform: scale(1.08) translateZ(3px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.arrow-btn:active {
    transform: scale(0.9) translateZ(-2px);
    transition-duration: 0.06s;
    background: rgba(255,255,255,0.15);
}
.arrow-btn svg { width: 16px; height: 16px; }

/* ══════════════════════════════════════
   CARD GRID / SCROLLABLE ROW
══════════════════════════════════════ */
.card-grid-container {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    cursor: grab;
    display: flex;
    align-items: center;
    padding-bottom: 32px;
    position: relative;
}
.card-grid-container:active { cursor: grabbing; }
.card-grid-container::-webkit-scrollbar { display: none; }

/* Fade edges */
.card-grid-container::before,
.card-grid-container::after {
    content: '';
    position: absolute; top: 0; bottom: 0;
    width: 56px; pointer-events: none; z-index: 2;
}
.card-grid-container::before { left: 0; background: linear-gradient(to right, var(--surface), transparent); }
.card-grid-container::after  { right: 0; background: linear-gradient(to left, var(--surface), transparent); }

.card-grid {
    display: flex;
    gap: 20px;
    padding: 0 56px;
    width: max-content;
    align-items: center;
}

/* ── APP CARD ── */
.app-card {
    width: var(--card-w);
    height: var(--card-h);
    flex-shrink: 0;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    opacity: 0.35;
    transform: scale(0.94) translateY(6px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), border-color 0.3s, box-shadow 0.5s;
    box-shadow: 0 4px 30px rgba(0,0,0,0.35);
}

/* shimmer line */
.app-card::after {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
    pointer-events: none;
}

/* ── 3D Card Shine Layer ── */
.card-shine {
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.35s ease;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.09) 0%, transparent 55%);
    mix-blend-mode: overlay;
}

.app-card.active-focus {
    opacity: 1;
    transform: scale(1) translateY(0);
    border-color: rgba(79,140,255,0.22);
    box-shadow:
        0 20px 50px rgba(0,0,0,0.5),
        0 0 0 1px rgba(79,140,255,0.12),
        inset 0 1px 0 rgba(255,255,255,0.05);
}
.app-card.active-focus:hover {
    border-color: rgba(79,140,255,0.4);
    box-shadow:
        0 24px 60px rgba(0,0,0,0.55),
        0 0 0 1px rgba(79,140,255,0.25),
        inset 0 1px 0 rgba(255,255,255,0.07);
    transform: scale(1.02) translateY(-4px);
}

/* ── 3D Tilt + Neon Glow (hover devices only) ── */
@media (hover: hover) {
    .app-card.active-focus.tilting {
        transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(1.04) translateY(-8px);
        transition: border-color 0.1s, box-shadow 0.1s;
        border-color: var(--neon-border, rgba(79,140,255,0.5));
        box-shadow:
            0 35px 80px rgba(0,0,0,0.65),
            0 0 0 1px var(--neon-border, rgba(79,140,255,0.25)),
            0 0 22px var(--neon, rgba(79,140,255,0.35)),
            0 0 55px var(--neon, rgba(79,140,255,0.15)),
            0 0 110px var(--neon, rgba(79,140,255,0.07)),
            inset 0 1px 0 rgba(255,255,255,0.12);
        will-change: transform;
    }
    .app-card.active-focus.tilting .card-shine { opacity: 1; }
}

/* ── Card image box ── */
.app-logo-box {
    width: 100%;
    aspect-ratio: 16/9;
    background: #0a0b14;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}
.app-logo-box img,
.app-logo-box video {
    width: 100%; height: 100%;
    object-fit: cover;
    position: absolute; top: 0; left: 0;
    transition: transform 0.5s var(--ease);
}
.app-card.active-focus:hover .app-logo-box img { transform: scale(1.04); }

/* ── Card body ── */
.card-body {
    flex: 1;
    padding: 16px 16px 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.card-category {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 6px;
}

.app-card h3 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.2;
}

.app-card p {
    font-size: 0.78rem;
    color: var(--text-dim);
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Card footer ── */
.card-footer {
    padding: 14px 16px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    margin-top: 12px;
    flex-shrink: 0;
}

.card-dev {
    font-size: 0.68rem;
    color: var(--text-mute);
    font-weight: 500;
    max-width: 90px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Action Button ── */
.action-btn {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 8px 18px;
    border-radius: 20px;
    background: var(--btn-bg, var(--accent));
    color: white;
    display: inline-block;
    text-align: center;
    transition: filter 0.2s, transform 0.15s var(--ease), box-shadow 0.2s;
    box-shadow: 0 2px 12px var(--btn-shadow, rgba(79,140,255,0.25));
    white-space: nowrap;
    transform: translateZ(0);
    position: relative;
}
.action-btn:hover {
    filter: brightness(1.12);
    transform: translateY(-2px) translateZ(3px);
    box-shadow: 0 6px 22px var(--btn-hover, rgba(79,140,255,0.4));
}
.action-btn:active {
    transform: translateY(1px) translateZ(-2px) scale(0.95);
    filter: brightness(0.9);
    box-shadow: 0 1px 6px var(--btn-shadow, rgba(79,140,255,0.2));
    transition-duration: 0.06s;
}

/* not-found */
.not-found-container {
    width: 80vw; height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: var(--text-mute); text-align: center;
    margin: 0 auto; cursor: pointer;
}
.not-found-icon { width: 64px; height: 64px; margin-bottom: 16px; opacity: 0.08; filter: grayscale(1); }
.not-found-text {
    font-family: 'Syne', sans-serif; font-size: 1.2rem;
    letter-spacing: 8px; text-transform: uppercase;
}

.sorry-text {
    position: fixed; font-family: 'Syne', sans-serif;
    font-weight: 800; font-size: 1.4rem; color: var(--red);
    pointer-events: none; z-index: 500;
    animation: sorryPop 1s ease forwards;
    transform: translate(-50%,-50%);
}
@keyframes sorryPop { 0%{opacity:1;transform:translate(-50%,-80%)}100%{opacity:0;transform:translate(-50%,-160%)} }

/* 3D card reveal animation */
@keyframes cardReveal3D {
    0% {
        opacity: 0;
        transform: perspective(700px) rotateY(28deg) translateX(70px) scale(0.88) translateY(10px);
        filter: blur(4px);
    }
    60% {
        opacity: 1;
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}
.card-reveal-3d { animation: cardReveal3D 0.7s var(--ease) forwards; }

/* ══════════════════════════════════════
   DEV PROFILES
══════════════════════════════════════ */
/* ── Dev Carousel Buttons ── */
.dev-carousel-btns {
    display: flex;
    gap: 10px;
}
.dev-prev-btn, .dev-next-btn {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: rgba(123,95,255,0.1);
    border: 1.5px solid rgba(123,95,255,0.25);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.dev-prev-btn:hover, .dev-next-btn:hover {
    background: rgba(123,95,255,0.22);
    border-color: rgba(123,95,255,0.55);
    transform: scale(1.08);
}
.dev-prev-btn:active, .dev-next-btn:active { transform: scale(0.93); transition-duration: 0.06s; }
.dev-prev-btn svg, .dev-next-btn svg { width: 18px; height: 18px; stroke: var(--accent2); }

/* ── Dev Stage (3D perspective container) ── */
.dev-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 900px;
    perspective-origin: 50% 50%;
    overflow: hidden;
    position: relative;
}

.dev-stage-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

/* ── Dev Card (3D Carousel item) ── */
.dev-profile-card {
    width: 200px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px 24px;
    display: flex; flex-direction: column; align-items: center;
    gap: 12px;
    cursor: pointer;
    transform-style: preserve-3d;
    will-change: transform, opacity;
    transition: border-color 0.3s, box-shadow 0.3s;
    -webkit-box-reflect: below 6px linear-gradient(transparent 55%, rgba(123,95,255,0.08) 100%);
}

/* Dev shine layer */
.dev-shine {
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.25s ease;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1) 0%, transparent 60%);
    mix-blend-mode: overlay;
}

/* drag proxy — invisible, used by GSAP Draggable */
.drag-proxy {
    visibility: hidden;
    position: absolute;
    pointer-events: none;
}

.dev-avatar-ring {
    width: 80px; height: 80px;
    border-radius: 50%;
    padding: 2.5px;
    background: linear-gradient(135deg, var(--accent2), var(--accent));
    flex-shrink: 0;
    transition: box-shadow 0.3s;
}
.dev-avatar-ring img {
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 2px solid var(--surface2);
}

.dev-name {
    font-family: 'Syne', sans-serif;
    font-weight: 700; font-size: 0.9rem;
    color: var(--text); text-align: center;
}

.dev-tags {
    display: flex; flex-wrap: wrap; gap: 5px; justify-content: center;
}
.dev-tag {
    font-size: 0.6rem; font-weight: 700; letter-spacing: 0.5px;
    padding: 3px 8px; border-radius: 12px;
    background: rgba(123,95,255,0.1); color: var(--accent2);
    border: 1px solid rgba(123,95,255,0.18);
}

/* ══════════════════════════════════════
   SIDEBAR
══════════════════════════════════════ */
#sidebar-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px);
    z-index: 298;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}
#sidebar-overlay.open { opacity: 1; visibility: visible; }

#sidebar {
    position: fixed;
    top: 0; left: 0;
    width: var(--sidebar-w);
    height: 100vh;
    background: rgba(8,10,18,0.97);
    backdrop-filter: blur(24px) saturate(1.4);
    border-right: 1px solid var(--border);
    z-index: 299;
    display: flex; flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.35s var(--ease);
    overflow: hidden;
}
#sidebar.open { transform: translateX(0); }

.sidebar-header {
    display: flex; align-items: center; gap: 12px;
    padding: 20px 18px 16px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.sidebar-logo {
    background: var(--accent);
    color: white; font-family: 'Syne', sans-serif;
    font-weight: 800; font-size: 0.85rem;
    padding: 4px 8px; border-radius: 5px; letter-spacing: 2px;
}
.sidebar-title {
    font-size: 0.62rem; font-weight: 700; letter-spacing: 3px;
    text-transform: uppercase; color: var(--text-dim);
}

.sidebar-nav { flex: 1; overflow-y: auto; padding: 10px 0; scrollbar-width: none; }
.sidebar-nav::-webkit-scrollbar { display: none; }

.sidebar-section-label {
    font-size: 0.58rem; font-weight: 700; letter-spacing: 3px;
    text-transform: uppercase; color: var(--text-mute);
    padding: 14px 18px 6px;
}

.sidebar-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 18px;
    font-size: 0.82rem; font-weight: 500;
    color: var(--text-dim);
    cursor: pointer;
    border-radius: 0;
    transition: background 0.15s, color 0.15s, transform 0.2s var(--ease), padding-left 0.2s var(--ease);
    position: relative;
    transform: translateZ(0);
}
.sidebar-item:hover {
    background: rgba(255,255,255,0.04);
    color: var(--text);
    transform: translateX(4px) translateZ(2px);
    padding-left: 22px;
}
.sidebar-item:active {
    transform: translateX(2px) translateZ(0) scale(0.98);
    transition-duration: 0.06s;
}
.sidebar-item.active {
    background: rgba(79,140,255,0.1);
    color: var(--accent);
    transform: translateX(2px) translateZ(1px);
    box-shadow: inset 0 0 20px rgba(79,140,255,0.03);
}
.sidebar-item.active::before {
    content: '';
    position: absolute; left: 0; top: 25%; bottom: 25%;
    width: 2px; border-radius: 2px;
    background: var(--accent);
    box-shadow: 0 0 8px rgba(79,140,255,0.4);
}
.sidebar-item svg { width: 16px; height: 16px; stroke: currentColor; flex-shrink: 0; }

.sidebar-divider { height: 1px; background: var(--border); margin: 6px 0; }

.sidebar-footer {
    padding: 14px 18px;
    font-size: 0.6rem;
    color: var(--text-mute);
    letter-spacing: 1px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

/* Sidebar inner panel */
#sidebar-panel {
    position: absolute; inset: 0;
    background: rgba(8,10,18,0.99);
    transform: translateX(100%);
    transition: transform 0.32s var(--ease);
    display: flex; flex-direction: column; z-index: 10;
}
#sidebar-panel.open { transform: translateX(0); }

.panel-header {
    display: flex; align-items: center; gap: 10px;
    padding: 20px 18px 14px;
    border-bottom: 1px solid var(--border);
}
.panel-back {
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; border-radius: 50%;
    transition: background 0.2s;
}
.panel-back:hover { background: rgba(255,255,255,0.08); transform: translateZ(2px) scale(1.05); }
.panel-back:active { transform: translateZ(-1px) scale(0.88); transition-duration: 0.06s; }
.panel-back svg { width: 15px; height: 15px; stroke: white; }
.panel-title {
    font-size: 0.7rem; font-weight: 700; letter-spacing: 3px;
    text-transform: uppercase; color: white;
}

.panel-body {
    flex: 1; overflow-y: auto; padding: 8px 0;
    scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.07) transparent;
}
.panel-empty {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; height: 100%;
    gap: 10px; color: var(--text-mute); font-size: 0.78rem; text-align: center; padding: 0 28px;
}
.panel-empty svg { width: 32px; height: 32px; stroke: rgba(255,255,255,0.12); margin-bottom: 6px; }

.panel-item {
    display: flex; align-items: center; gap: 11px;
    padding: 10px 18px;
    font-size: 0.78rem; color: var(--text-dim);
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: background 0.15s;
}
.panel-item:hover { background: rgba(255,255,255,0.03); color: var(--text); }
.panel-item-img {
    width: 38px; height: 38px; border-radius: var(--radius-sm);
    object-fit: cover; background: #111; flex-shrink: 0;
}
.panel-item-info { flex: 1; min-width: 0; }
.panel-item-name { font-weight: 700; font-size: 0.78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel-item-sub  { font-size: 0.62rem; color: var(--text-mute); margin-top: 2px; }
.panel-item-link {
    font-size: 0.58rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    color: var(--accent); white-space: nowrap; text-decoration: none;
}
.panel-item-link:hover { text-shadow: 0 0 8px var(--accent); }

.panel-clear-btn {
    display: block; margin: 14px auto 8px;
    font-size: 0.62rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
    color: rgba(255,71,87,0.7); cursor: pointer;
    background: none; border: 1px solid rgba(255,71,87,0.25);
    padding: 5px 16px; border-radius: 20px; transition: 0.2s;
    font-family: inherit;
}
.panel-clear-btn:hover { color: var(--red); border-color: var(--red); background: rgba(255,71,87,0.07); transform: translateZ(1px) translateY(-1px); }
.panel-clear-btn:active { transform: translateZ(-1px) scale(0.95); transition-duration: 0.06s; }

/* ══════════════════════════════════════════════════════
   LIGHT THEME
   ══════════════════════════════════════════════════════ */
body.light {
    --bg:        #f0f2f5;
    --surface:   #ffffff;
    --surface2:  #f5f6f8;
    --border:    rgba(0,0,0,0.08);
    --text:      #1a1d2e;
    --text-dim:  rgba(26,29,46,0.5);
    --text-mute: rgba(26,29,46,0.22);
}

/* ── Header ── */
body.light #main-header { background: rgba(240,242,245,0.88); }
body.light #menu-toggle:hover { background: rgba(0,0,0,0.05); }
body.light #menu-toggle span { background: var(--text); }
body.light #theme-toggle { background: rgba(0,0,0,0.04); border-color: var(--border); }
body.light #theme-toggle:hover { background: rgba(0,0,0,0.07); border-color: rgba(0,0,0,0.15); box-shadow: inset 0 -1px 0 rgba(0,0,0,0.05), 0 8px 24px rgba(0,0,0,0.1), 0 0 24px rgba(255,170,30,0.15); }
body.light .theme-icon { stroke: var(--text-dim); }
body.light #acct-btn { background: rgba(0,0,0,0.04); border-color: var(--border); }
body.light #acct-btn:hover { background: rgba(0,0,0,0.07); border-color: rgba(0,0,0,0.15); }

/* ── Search ── */
body.light #app-search { background: rgba(0,0,0,0.04); color: var(--text); }
body.light #app-search:focus { background: rgba(79,140,255,0.05); border-color: rgba(79,140,255,0.4); }
body.light #search-history { background: rgba(255,255,255,0.98); }
body.light .history-item:hover { background: rgba(0,0,0,0.03); }

/* ── Dropdown ── */
body.light #acct-dropdown { background: rgba(255,255,255,0.98); }
body.light .dd-profile-block { border-bottom-color: var(--border); }
body.light .dd-item:hover { background: rgba(0,0,0,0.03); }
body.light .dd-divider { background: var(--border); }

/* ── Nav pills ── */
body.light .nav-pill:hover { background: rgba(0,0,0,0.05); }
body.light .nav-pill.active { background: rgba(79,140,255,0.1); }

/* ── Sidebar ── */
body.light #sidebar { background: rgba(255,255,255,0.97); }
body.light #sidebar-panel { background: rgba(255,255,255,0.99); }
body.light #sidebar-overlay { background: rgba(0,0,0,0.25); backdrop-filter: blur(3px); }
body.light .sidebar-item:hover { background: rgba(0,0,0,0.04); }
body.light .sidebar-item.active { background: rgba(79,140,255,0.08); }
body.light .sidebar-footer { border-top-color: var(--border); }

/* ── Panel ── */
body.light .panel-empty svg { stroke: rgba(0,0,0,0.1); }
body.light .panel-item { border-bottom-color: rgba(0,0,0,0.04); }
body.light .panel-item:hover { background: rgba(0,0,0,0.02); }
body.light .panel-item-img { background: #e8eaef; }

/* ── Content sections ── */
body.light .content-section::before {
    background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,0.035) 1px, transparent 0);
}
body.light .section-tag.games { background: rgba(232,64,64,0.08); color: #dc2626; border-color: rgba(232,64,64,0.15); }
body.light .section-tag.apps  { background: rgba(79,140,255,0.08); color: #2563eb; border-color: rgba(79,140,255,0.15); }
body.light .section-tag.web   { background: rgba(39,174,96,0.08); color: #16a34a; border-color: rgba(39,174,96,0.15); }
body.light .section-tag.devs  { background: rgba(123,95,255,0.08); color: #7c3aed; border-color: rgba(123,95,255,0.15); }

/* ── Card grid fades ── */
body.light .card-grid-container::before { background: linear-gradient(to right, var(--surface), transparent); }
body.light .card-grid-container::after  { background: linear-gradient(to left, var(--surface), transparent); }

/* ── App cards ── */
body.light .app-card { background: #ffffff; }
body.light .app-logo-box { background: #ebedf2; }
body.light .card-category { color: #2563eb; }
body.light .card-footer { border-top-color: var(--border); }
body.light .card-shine { mix-blend-mode: soft-light; }

/* ── Dev cards ── */
body.light .dev-profile-card { background: #ffffff; }
body.light .dev-shine { mix-blend-mode: soft-light; }
body.light .dev-profile-card { -webkit-box-reflect: below 6px linear-gradient(transparent 55%, rgba(123,95,255,0.05) 100%); }

/* ── Hero (stays dark — video is dark) ── */
body.light .hero-gradient-overlay {
    background:
        linear-gradient(to right, rgba(240,242,245,0.9) 0%, rgba(240,242,245,0.35) 50%, transparent 100%),
        linear-gradient(to top, rgba(240,242,245,0.97) 0%, transparent 50%);
}
body.light .hero-bottom-fade { background: linear-gradient(to top, var(--bg) 0%, transparent 100%); }
body.light .hero-eyebrow { color: #2563eb; }
body.light .text-cycle { color: #1a1d2e; }
body.light .hero-sub { color: var(--text-dim); }

/* ── Overlays ── */
body.light .ambient-orb { opacity: 0.25 !important; filter: blur(130px) !important; }
body.light .orb-1 { background: radial-gradient(circle, rgba(79,140,255,0.1) 0%, transparent 70%) !important; }
body.light .orb-2 { background: radial-gradient(circle, rgba(123,95,255,0.07) 0%, transparent 70%) !important; }
body.light .orb-3 { background: radial-gradient(circle, rgba(255,71,87,0.05) 0%, transparent 70%) !important; }
body.light #vignette { background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.06) 100%); }
body.light #grid-overlay {
    background-image:
        linear-gradient(rgba(0,0,0,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.035) 1px, transparent 1px);
}

/* ── Section dots ── */
body.light .sec-dot { background: rgba(0,0,0,0.12); }
body.light .sec-dot:hover { background: rgba(0,0,0,0.3); }
body.light .sec-dot-label { text-shadow: 0 1px 4px rgba(255,255,255,0.9); }

/* ── Scroll hint ── */
body.light .mouse-icon { border-color: rgba(0,0,0,0.2); }
body.light .mouse-wheel { background: var(--text); }
body.light .scroll-text { color: rgba(0,0,0,0.3); }

/* ── Particles ── */
body.light .particle { opacity: 0.4 !important; }

/* ── Modal ── */
body.light #about-modal { background: rgba(0,0,0,0.25); backdrop-filter: blur(8px); }
body.light .modal-content {
    background: #ffffff;
    color: var(--text);
    box-shadow: 0 0 0 1px rgba(79,140,255,0.08), 0 30px 80px rgba(0,0,0,0.12);
}

/* ── Loader ── */
body.light #loader { background: var(--bg); }
body.light #moving-logo {
    background: var(--accent);
    color: white;
    box-shadow: 0 0 0 1px rgba(79,140,255,0.15), 0 0 40px rgba(79,140,255,0.08);
}

/* ══════════════════════════════════════
   ABOUT MODAL
══════════════════════════════════════ */
#about-modal {
    position: fixed; inset: 0; z-index: 400;
    display: none; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.75); backdrop-filter: blur(12px);
}
.modal-content {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 56px;
    font-family: 'Syne', sans-serif;
    font-weight: 800; font-size: 1.1rem;
    letter-spacing: 4px; text-transform: uppercase;
    animation: modalIn 0.35s var(--ease);
    box-shadow: 0 0 0 1px rgba(79,140,255,0.12), 0 30px 80px rgba(0,0,0,0.5);
}
@keyframes modalIn { from{opacity:0;transform:scale(0.85)translateY(10px)}to{opacity:1;transform:scale(1)translateY(0)} }