:root {
    --bg-color: #05000a;
    --neon-pink: #ff33cc;
    --neon-purple: #9d00ff;
    --neon-blue: #3366ff;
    --neon-green: #00ffcc;
    --text-pink: #ff99cc;
    --text-cyan: #66ccff;
    --font-main: 'M PLUS Rounded 1c', sans-serif;
    --font-sys: 'VT323', monospace;
}

.theme-goth {
    --bg-color: #000000;
    --neon-pink: #ffffff;
    --neon-purple: #777777;
    --neon-blue: #cccccc;
    --neon-green: #ffffff;
    --text-pink: #dddddd;
    --text-cyan: #ffffff;
    --font-main: 'Times New Roman', Times, serif;
    filter: grayscale(100%) contrast(1.2);
}

.theme-goth .border-purple, .theme-goth .border-pink, .theme-goth .border-blue, .theme-goth .border-green {
    border-style: double;
    border-width: 4px;
    border-radius: 0;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.theme-goth .profile-pic, .theme-goth .bio-cat-img {
    border-radius: 0;
}

.theme-grunge {
    --bg-color: #1a1a1a;
    --neon-pink: #8b4513;
    --neon-purple: #556b2f;
    --neon-blue: #8b0000;
    --neon-green: #cd853f;
    --text-pink: #a9a9a9;
    --font-main: 'Courier New', Courier, monospace;
    filter: sepia(0.6) contrast(1.3) brightness(0.8);
}

.theme-grunge .border-purple, .theme-grunge .border-pink, .theme-grunge .border-blue, .theme-grunge .border-green {
    border-style: dashed;
    border-width: 2px;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8);
    border-radius: 2px;
}

.theme-retro {
    --bg-color: #000033;
    --neon-pink: #ff00ff;
    --neon-purple: #00ffff;
    --neon-blue: #ffff00;
    --neon-green: #ff00ff;
    --text-pink: #00ffff;
    --font-main: 'VT323', monospace;
    filter: saturate(1.5);
}

.theme-retro .border-purple, .theme-retro .border-pink, .theme-retro .border-blue, .theme-retro .border-green {
    border-style: outset;
    border-width: 4px;
    border-radius: 0;
}

.theme-retro .stars-bg {
    background-image: repeating-linear-gradient(0deg, transparent 0px, transparent 2px, rgba(0, 255, 255, 0.1) 2px, rgba(0, 255, 255, 0.1) 4px);
    background-size: 100% 100%;
    animation: none;
    opacity: 1;
}

body {
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at bottom right, #1a0022 0%, var(--bg-color) 70%);
    color: var(--text-pink);
    font-family: var(--font-main);
    font-size: 15px;
    margin: 0;
    padding: 30px;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    transition: all 1s ease;
}

.stars-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    background-image: 
        radial-gradient(1px 1px at 10% 20%, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 30% 80%, var(--neon-purple), rgba(0,0,0,0)),
        radial-gradient(1px 1px at 60% 40%, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 80% 10%, var(--neon-pink), rgba(0,0,0,0)),
        radial-gradient(1px 1px at 5% 90%, var(--neon-green), rgba(0,0,0,0));
    background-size: 300px 300px;
    animation: twinkle 3s infinite alternate ease-in-out;
}

@keyframes twinkle {
    0% { opacity: 0.3; transform: scale(1); }
    100% { opacity: 0.8; transform: scale(1.02); }
}

.layout-wrapper { display: flex; gap: 20px; width: 100%; max-width: 1100px; z-index: 1; }

.sys-text { font-family: var(--font-sys); font-size: 18px; letter-spacing: 1px; }

.border-purple { border: 1px solid var(--neon-purple); box-shadow: 0 0 8px rgba(157, 0, 255, 0.4), inset 0 0 5px rgba(157, 0, 255, 0.2); }
.border-pink { border: 1px solid var(--neon-pink); box-shadow: 0 0 8px rgba(255, 51, 204, 0.4), inset 0 0 5px rgba(255, 51, 204, 0.2); }
.border-blue { border: 1px solid var(--neon-blue); box-shadow: 0 0 8px rgba(51, 102, 255, 0.4), inset 0 0 5px rgba(51, 102, 255, 0.2); }
.border-green { border: 1px solid var(--neon-green); box-shadow: 0 0 8px rgba(0, 255, 204, 0.4), inset 0 0 5px rgba(0, 255, 204, 0.2); }

.accent-green { color: var(--neon-green); text-shadow: 0 0 5px var(--neon-green); }

.sidebar { width: 280px; flex-shrink: 0; padding: 20px; display: flex; flex-direction: column; align-items: center; background: rgba(10, 0, 15, 0.6); backdrop-filter: blur(5px); transition: all 1s ease; }

.profile-pic { width: 140px; height: 140px; border-radius: 20px; object-fit: cover; border: 1px solid var(--neon-purple); box-shadow: 0 0 10px rgba(157, 0, 255, 0.5); margin-bottom: 15px; transition: all 1s ease; }

.username { font-size: 20px; color: var(--text-pink); text-shadow: 0 0 5px var(--neon-pink); margin: 10px 0; font-weight: 700; }

.decorative-divider { margin-bottom: 20px; }

.info-box, .now-playing { width: 100%; padding: 15px; box-sizing: border-box; margin-bottom: 20px; text-align: left; transition: all 1s ease; }

.info-box p { margin: 5px 0; }

.social-grid { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; }
.social-link { display: flex; }

.social-icon { width: 25px; height: 25px; object-fit: contain; transition: transform 0.2s; filter: drop-shadow(0 0 3px var(--neon-pink)); }
.social-icon:hover { transform: scale(1.15) translateY(-2px); filter: drop-shadow(0 0 10px var(--neon-green)); }

.green-text { color: var(--neon-green); text-shadow: 0 0 5px var(--neon-green); text-align: center; margin: 5px 0; }

.spotify-embed { width: 100%; height: 70px; border: none; overflow: hidden; margin-top: 10px; background: transparent; }

.visitors { margin-top: auto; text-align: center; }

.core-content { flex-grow: 1; display: flex; flex-direction: column; gap: 20px; }

.banner { padding: 30px; text-align: center; position: relative; background: rgba(157, 0, 255, 0.05); backdrop-filter: blur(5px); transition: all 1s ease; }
.banner h2 { color: var(--text-pink); text-shadow: 0 0 10px var(--neon-purple); font-size: 28px; margin: 0 0 15px 0; font-weight: 700; }

.nav-links a { color: var(--neon-blue); text-decoration: none; margin: 0 10px; font-weight: bold; transition: all 0.2s; font-family: var(--font-sys); font-size: 18px; }
.nav-links a:hover { color: var(--neon-green); text-shadow: 0 0 8px var(--neon-green); }

.star-icon { position: absolute; bottom: 10px; right: 15px; color: var(--neon-green); text-shadow: 0 0 5px var(--neon-green); }

.status-box, .obsessions-box { padding: 20px; background: rgba(255, 51, 204, 0.02); backdrop-filter: blur(5px); transition: all 1s ease; }

.bio-container { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.bio-content { flex: 1; min-width: 0; }
.bio-cat-img { width: 35%; max-width: 160px; min-width: 100px; height: auto; border-radius: 10px; object-fit: cover; flex-shrink: 0; transition: all 1s ease; }
.bio-text { line-height: 1.6; }

.tags { margin-top: 15px; }
.tag { background: rgba(0, 255, 204, 0.1); color: var(--neon-green); padding: 2px 8px; margin-right: 5px; border: 1px solid var(--neon-green); font-size: 14px; font-family: var(--font-sys); transition: all 1s ease; }

.grid-container { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 150px); gap: 15px; }
.grid-item { display: flex; justify-content: center; align-items: center; color: var(--text-pink); font-size: 18px; background: rgba(157, 0, 255, 0.05); transition: all 0.3s; backdrop-filter: blur(5px); }
.grid-item:hover { background: rgba(0, 255, 204, 0.05); color: var(--neon-green); text-shadow: 0 0 8px var(--neon-green); cursor: crosshair; }

.obsessions-box h3 { margin-top: 0; }

.decor-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; overflow: hidden; z-index: 0; }
.floating-item { position: absolute; color: var(--neon-green); font-size: 24px; animation: drift 20s linear infinite; opacity: 0.3; }
@keyframes drift { from { transform: translateY(100vh) rotate(0deg); } to { transform: translateY(-10vh) rotate(360deg); } }
.floating-item:nth-child(1) { left: 40%; animation-delay: 0s; }
.floating-item:nth-child(2) { left: 60%; animation-delay: 5s; }
.floating-item:nth-child(3) { left: 80%; animation-delay: 10s; }
.floating-item:nth-child(4) { left: 90%; animation-delay: 15s; }

.creator-module { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.input-group { display: flex; gap: 15px; width: 100%; justify-content: center; }
.input-group input { background: rgba(10, 0, 15, 0.8); color: var(--text-pink); font-family: var(--font-sys); padding: 10px; outline: none; width: 200px; font-size: 16px; transition: all 1s ease; }
.tools-group { display: flex; gap: 15px; align-items: center; background: rgba(157, 0, 255, 0.05); padding: 10px; border-radius: 8px; transition: all 1s ease; }
.color-picker { background: transparent; border: 1px solid var(--neon-purple); height: 40px; width: 40px; cursor: pointer; padding: 0; transition: all 1s ease; }

.canvas-grid { display: flex; flex-direction: column; align-items: center; gap: 15px; }
.canvas-wrapper { position: relative; }
canvas { background-color: rgba(157, 0, 255, 0.05); cursor: crosshair; display: block; transition: all 1s ease; }
.guide-head { background-image: radial-gradient(circle at 50% 90%, rgba(0, 255, 204, 0.2) 8px, transparent 10px); }
.guide-body { background-image: radial-gradient(circle at 50% 5%, rgba(0, 255, 204, 0.2) 8px, transparent 10px), radial-gradient(circle at 50% 95%, rgba(0, 255, 204, 0.2) 8px, transparent 10px); }
.guide-legs { background-image: radial-gradient(circle at 50% 10%, rgba(0, 255, 204, 0.2) 8px, transparent 10px); }

.action-btn { background: rgba(10, 0, 15, 0.8); color: var(--neon-green); font-family: var(--font-sys); font-size: 16px; padding: 10px 20px; cursor: pointer; font-weight: bold; transition: all 0.2s; border: 1px solid transparent; }
.action-btn:hover, .action-btn.active { background: rgba(0, 255, 204, 0.1); box-shadow: 0 0 10px var(--neon-green); border-color: var(--neon-green); }

.shelf-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; padding: 20px 0; }
.shelf-item { text-decoration: none; padding: 15px; background: rgba(51, 102, 255, 0.05); transition: transform 0.2s; display: flex; flex-direction: column; align-items: center; }
.shelf-item:hover { transform: translateY(-5px); box-shadow: 0 0 15px var(--neon-blue); }
.avatar-composite { display: flex; flex-direction: column; align-items: center; }
.comp-head { width: 100px; height: 100px; }
.comp-body { width: 150px; height: 125px; margin-top: -15px; }
.comp-legs { width: 100px; height: 100px; margin-top: -15px; }