:root {
    --bg-dark: #0f0f0f;
    --card-bg: rgba(15, 15, 15, 0.9);
    --item-bg: rgba(20, 20, 20, 0.7);
    --text-white: #ffffff;
    --text-dim: #909090;
    --border: rgba(255, 255, 255, 0.03);
    
    --online: #23a55a;
    --idle: #f0b232;
    --dnd: #f23f43;
    --offline: #80848e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
}

body {
    background: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    height: 100vh;
}

/* --- Background --- */
.bg-wrapper {
    position: fixed;
    inset: 0;
    z-index: -1;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.35);
}

.bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.2);
}

/* --- Custom Cursor --- */
.cursor {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s linear;
}

.cursor-follower {
    width: 24px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    mix-blend-mode: difference;
    transition: transform 0.15s ease-out;
}

.cursor.hover { transform: translate(-50%, -50%) scale(0.5); }
.cursor-follower.hover { transform: translate(-50%, -50%) scale(1.6); background: rgba(255, 255, 255, 0.1); }

/* --- Entry Screen --- */
.entry-screen {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.entry-screen.fade-out { opacity: 0; visibility: hidden; transition: 0.8s; }

.entry-btn {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
    animation: entryPulse 2.5s infinite ease-in-out;
}

@keyframes entryPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* --- Main Layout --- */
.main-content {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.layout-container {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
}

/* --- Widgets Side --- */
.widgets-side {
    width: 280px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.widget {
    padding: 18px 22px;
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-white);
}

.widget-header i { font-size: 1rem; color: var(--text-dim); }

.header-dot {
    margin-left: auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--offline);
}

.divider-mini {
    height: 1px;
    background: var(--border);
    margin: 0 -22px 14px -22px;
}

.discord-mini-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mini-avatar-wrapper {
    position: relative;
    width: 48px;
    height: 48px;
}

.mini-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.mini-status-icon {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #0f0f0f;
    background: var(--offline);
}

.mini-info h4 { font-size: 1rem; font-weight: 700; }
.mini-info p { font-size: 0.8rem; color: var(--text-dim); font-style: italic; }

.spotify-mini-content h4 { font-size: 1rem; font-weight: 700; margin-bottom: 2px; }
.spotify-mini-content p { font-size: 0.8rem; color: var(--text-dim); }

/* --- Profile Side --- */
.profile-side {
    width: 550px;
}

.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.profile-card {
    padding: 40px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 35px;
}

.avatar-container {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border);
    flex-shrink: 0;
}

.main-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info-text {
    flex: 1;
}

.username {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.bio {
    font-size: 1.05rem;
    color: var(--text-dim);
    margin-bottom: 14px;
    height: 1.3rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    background: rgba(255,255,255,0.03);
    border-radius: 15px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dim);
}

/* --- Social Grid --- */
.social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 35px;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-white);
    transition: 0.2s;
}

.social-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.social-icon-box {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    font-size: 1.1rem;
    color: var(--text-dim);
}

.social-label {
    font-weight: 600;
    font-size: 1rem;
}

/* --- Footer --- */
.footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-dim);
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.footer-right { font-family: 'JetBrains Mono', monospace; }

/* --- Volume Button --- */
.volume-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 100;
}

/* --- Status Colors --- */
.status-dot.online, .mini-status-icon.online, .header-dot.online { background: var(--online); box-shadow: 0 0 6px var(--online); }
.status-dot.idle, .mini-status-icon.idle, .header-dot.idle { background: var(--idle); }
.status-dot.dnd, .mini-status-icon.dnd, .header-dot.dnd { background: var(--dnd); }
.status-dot.offline, .mini-status-icon.offline, .header-dot.offline { background: var(--offline); }

/* --- Responsive --- */
@media (max-width: 900px) {
    * { cursor: auto !important; }
    .cursor, .cursor-follower { display: none; }
    
    body { overflow-y: auto; height: auto; }
    .main-content { padding: 40px 20px; align-items: flex-start; }
    
    .layout-container {
        flex-direction: column;
        width: 100%;
        max-width: 550px;
        gap: 20px;
    }
    
    .widgets-side { width: 100%; order: 2; }
    .profile-side { width: 100%; order: 1; }
    
    .profile-header { gap: 20px; }
    .avatar-container { width: 90px; height: 90px; }
    .username { font-size: 2rem; }
    
    .social-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .profile-card { padding: 25px; }
    .profile-header { flex-direction: column; text-align: center; }
    .avatar-container { margin: 0 auto; }
}
