/* ==========================================
/* 🌌 CORE BASICS & SCREEN VARIABLES
/* ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background: #060608;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    perspective: 1000px;
    transition: background 0.5s ease;
}

/* Ambient Background Radial Glow Accent Layer */
.bg-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(138, 43, 226, 0.12) 0%, transparent 65%);
    z-index: 1;
    pointer-events: none;
    transition: background 0.5s ease;
}

/* Rain Effect Engine Particle Canvas */
#rainCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* ==========================================
/* 🚪 FULLSCREEN WELCOME OVERLAY GATE
/* ========================================== */
.entry-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(6, 6, 8, 0.5); 
    backdrop-filter: blur(12px);    
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;                  
    cursor: pointer;                
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
}

.entry-gate.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.entry-message {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    user-select: none;
    animation: entryPulse 2s infinite ease-in-out;
}

/* ==========================================
/* 🃏 PROFILE CARD DESIGN
/* ========================================== */
.card-container {
    position: relative;
    z-index: 3;
    transition: transform 0.1s ease;
}

.profile-card {
    background: rgba(10, 10, 12, 0.7);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    width: 380px;
    padding: 40px 30px;
    border-radius: 24px;
    border: 1px solid rgba(138, 43, 226, 0.15);
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6),
                0 0 40px rgba(138, 43, 226, 0.05);
    transition: background-color 0.5s ease;
}

/* Avatar Layout & Animations */
.avatar-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
}

.avatar-glow {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, #8a2be2, #4a00e0);
    border-radius: 50%;
    z-index: 1;
    filter: blur(10px);
    opacity: 0.7;
    transition: background 0.5s ease;
}

/* ==========================================
/* 📄 TEXT COMPONENT & BADGE TYPOGRAPHY
/* ========================================== */
.username {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    background: linear-gradient(to right, #fff, #b3b3b3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge {
    display: inline-flex;
    align-items: center;
    background: rgba(138, 43, 226, 0.2);
    border: 1px solid rgba(138, 43, 226, 0.4);
    color: #d6b3ff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.bio {
    font-size: 14px;
    color: #999;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* ==========================================
/* 🎵 AUDIO PLAYER TAB, SEEK SLIDERS & VOLUME
/* ========================================== */
.music-player {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 12px 16px;
    margin-top: 25px;
    text-align: left;
    gap: 12px;
    overflow: hidden;
}

.play-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(138, 43, 226, 0.2);
    border: 1px solid rgba(138, 43, 226, 0.45);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
    flex-shrink: 0;
}

.play-btn:hover {
    background: rgba(138, 43, 226, 0.4);
    border-color: rgba(138, 43, 226, 0.7);
    transform: scale(1.06);
}

.play-btn svg {
    width: 14px;
    height: 14px;
    fill: #ffffff;
}

.play-btn svg.hidden {
    display: none !important;
}

.track-info {
    display: flex;
    flex-direction: column;
    z-index: 5;
    overflow: hidden;
    flex-grow: 1;
}

.track-title {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    margin-bottom: 4px;
}

/* Timeline Seek Bar Engine styling rules */
.timeline-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.timeline-container input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    cursor: pointer;
}

.timeline-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.time-stamps {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #666;
    margin-top: 3px;
}

/* Vertical / Compact Interactive Volume Control Slider Layout Matrix */
.volume-container {
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 5;
    position: relative;
}

.volume-icon {
    width: 16px;
    height: 16px;
    fill: #aaa;
    flex-shrink: 0;
}

.volume-container input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 50px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    cursor: pointer;
}

.volume-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
}

#visualizerCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.25;
}

/* ==========================================
/* ⚙️ FLOATING ADMINISTRATION SETTINGS CONTROL
/* ========================================== */
.settings-toggle {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 48px;
    height: 48px;
    background: rgba(18, 18, 20, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.settings-toggle:hover {
    background: rgba(138, 43, 226, 0.2);
    border-color: rgba(138, 43, 226, 0.5);
    transform: rotate(45deg) scale(1.05);
}

.settings-toggle svg {
    width: 22px;
    height: 22px;
    fill: #ccc;
    transition: fill 0.3s;
}

.settings-toggle:hover svg {
    fill: #fff;
}

.settings-panel {
    position: fixed;
    bottom: 85px;
    left: -350px;
    width: 300px;
    background: rgba(15, 15, 18, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 24px;
    z-index: 99;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 75vh;
    overflow-y: auto;
}

.settings-panel.open {
    left: 25px;
}

.settings-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

.setting-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

.checkbox-group {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.setting-label {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 6px;
    font-weight: 500;
}

.setting-input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
    color: #fff;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
    resize: none;
}

.setting-input:focus {
    border-color: rgba(138, 43, 226, 0.6);
}

.setting-color {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: none;
    border: none;
    width: 100%;
    height: 36px;
    cursor: pointer;
}

.setting-color::-webkit-color-swatch {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
}

/* Power User Dual Columns Grid Layout Utilities */
.setting-group-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    width: 100%;
}

.setting-group-half {
    display: flex;
    flex-direction: column;
    flex: 1;
}

body.bg-solid { background: #060608 !important; }
body.bg-radial { background: #060608 !important; }
body.bg-linear { background: #060608 !important; }

.avatar-glow.glow-pulse { animation: pulse 3s infinite alternate; }
.avatar-glow.glow-steady { animation: none; opacity: 0.85; filter: blur(12px); }
.avatar-glow.glow-none { display: none !important; }

.settings-content.hidden, .password-screen.hidden {
    display: none !important;
}

.password-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s ease;
}

.error-msg {
    color: #ff4a4a;
    font-size: 11px;
    margin-top: 5px;
    font-weight: 500;
    display: none;
}

.error-msg.show {
    display: block;
}

.save-btn {
    width: 100%;
    background: rgba(138, 43, 226, 0.6);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.save-btn:hover {
    background: rgba(138, 43, 226, 0.85);
    box-shadow: 0 0 15px
}