:root {
    --bg-main: #0a0a0c;
    --primary-color: #ff3b3b;
    --primary-glow: rgba(255, 59, 59, 0.4);
    --secondary-glow: rgba(255, 255, 255, 0.2);
    --glass-bg: rgba(10, 10, 12, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 0 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0,0,0,0.6);
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    
    --font-en: 'Orbitron', sans-serif;
    --font-ar: 'Cairo', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-en);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    cursor: none; /* Hide default cursor for custom one */
}

/* Custom Cursor Glow */
.cursor-glow {
    position: fixed;
    top: 0; left: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 20px 10px var(--primary-color);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: width 0.2s, height 0.2s, opacity 0.2s;
    mix-blend-mode: screen;
}

.cursor-trail {
    position: fixed;
    top: 0; left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 10000;
    transition: width 0.1s, height 0.1s; /* Removed top/left transition for instant tracking */
}

.bg-layer {
    position: fixed;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(4px) brightness(0.6);
    z-index: -3;
    animation: drift 12s ease-in-out infinite alternate;
}

@keyframes drift {
    0% { transform: scale(1.1) translate(0, 0); }
    50% { transform: scale(1.25) translate(-3%, 2%); }
    100% { transform: scale(1.15) translate(2%, -4%); }
}

.bg-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.8) 100%);
    z-index: -2;
}

#particles {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Central Hub Container */
.hub-container {
    perspective: 1000px;
    z-index: 10;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--glass-shadow);
    width: 530px;
    max-width: 95vw;
    padding: 50px 40px;
    animation: floatingGlass 4s ease-in-out infinite, fadeUp 1s ease-out;
    position: relative;
    /* overflow: hidden; Removed so 3D elements can pop out of the borders */
    transform-style: preserve-3d; /* Enable true 3D popping effects! */
}

/* Fix inner video clipping since we removed overflow: hidden on the card */
.panel-bg-video {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: -1; opacity: 0.25;
    pointer-events: none;
    border-radius: 20px;
}

.panel-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.25; /* Very subtle so text is completely readable */
    pointer-events: none;
}

/* Add a very subtle gradient reflection */
.glass-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.03), transparent);
    transform: rotate(45deg);
    animation: shine 8s infinite linear;
    pointer-events: none;
}

/* Dynamic Spotlight Torch Effect */
.glass-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 0; 
    background: radial-gradient(circle 400px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 59, 59, 0.15), transparent 80%);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glass-card:hover::after {
    opacity: 1; /* Fade in the spotlight when hovering over card */
}

@keyframes shine {
    0% { left: -150%; }
    100% { left: 150%; }
}

@keyframes floatingGlass {
    0% { transform: translate(0, 0) scale(1); box-shadow: 0 15px 50px rgba(0,0,0,0.6); }
    25% { transform: translate(20px, -15px) scale(1.01); box-shadow: 0 25px 60px rgba(0,0,0,0.8); }
    50% { transform: translate(0, -30px) scale(1.02); box-shadow: 0 35px 80px rgba(0,0,0,0.9), 0 0 25px var(--primary-glow); }
    75% { transform: translate(-20px, -15px) scale(1.01); box-shadow: 0 25px 60px rgba(0,0,0,0.8); }
    100% { transform: translate(0, 0) scale(1); box-shadow: 0 15px 50px rgba(0,0,0,0.6); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(50px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Avatar Ring Animation */
.avatar-ring-container {
    position: relative;
    width: 170px;
    height: 170px;
    margin: 0 auto 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateZ(50px); /* Massive 3D pop under perspective */
    transition: transform 0.3s ease;
}

.avatar-video-wrapper {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 3px solid #222;
    z-index: 2;
    background-color: var(--bg-main);
    box-shadow: inset 0 0 25px rgba(255, 0, 0, 0.5), 0 0 20px rgba(255, 0, 0, 0.3); /* Intense inner & outer glow */
    overflow: hidden;
    position: relative;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.avatar-video-wrapper:hover {
    box-shadow: inset 0 0 40px rgba(255, 0, 0, 0.9), 0 0 50px rgba(255, 0, 0, 0.8);
    transform: scale(1.1);
    border-color: var(--primary-color);
}

.avatar-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(2.4) translateY(2%); /* Massive zoom precisely on the eyes */
    filter: contrast(1.3) saturate(1.4); /* Enhance the blood red of the eyes */
    transition: transform 0.5s ease;
}

.avatar-video-wrapper:hover .avatar-video {
    transform: scale(2.8) translateY(2%); /* Intense zoom when hovered */
}

.avatar-ring {
    position: absolute;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    border-top: 2px solid transparent;
    border-right: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    border-left: 2px solid transparent;
    filter: drop-shadow(0 0 15px var(--primary-glow));
    animation: spinRing 2.5s linear infinite;
    z-index: 1;
    transition: transform 0.1s, filter 0.2s;
}

.avatar-ring.pulsing {
    animation: spinRing 2.5s linear infinite, pulseBeat 1.2s ease-in-out infinite alternate !important;
}

@keyframes pulseBeat {
    0% { filter: drop-shadow(0 0 10px var(--primary-glow)) scale(1); border-right-color: var(--primary-color); }
    100% { filter: drop-shadow(0 0 35px var(--primary-glow)) scale(1.1); border-right-color: #fff; border-bottom-color: #ff9999; }
}

@keyframes spinRing {
    100% { transform: rotate(360deg); }
}

/* Name and Typography */
.username {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 5px;
    letter-spacing: 2px;
    font-family: var(--font-en);
    position: relative;
    display: inline-block;
}

.glowing-text {
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.8), 0 0 20px rgba(255,255,255,0.4), 0 0 30px var(--primary-glow);
    animation: textFlicker 4s infinite;
}

@keyframes textFlicker {
    0%, 19.999%, 22%, 62.999%, 64%, 64.999%, 70%, 100% {
        text-shadow: 0 0 10px rgba(255,255,255,0.8), 0 0 20px rgba(255,255,255,0.4), 0 0 30px var(--primary-glow);
    }
    20%, 21.999%, 63%, 63.999%, 65%, 69.999% {
        text-shadow: none;
    }
}

.slogan {
    font-family: var(--font-ar);
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-weight: 600;
}

.typewriter {
    overflow: hidden;
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: 1px;
    animation: typing 3.5s steps(40, end), blink-caret .75s step-end infinite;
    border-right: 2px solid var(--primary-color);
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}
@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary-color); }
}

/* Status Box */
.status-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 10px 15px;
    margin-bottom: 25px;
    display: inline-block;
}

.status-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mini-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 59, 59, 0.4);
    animation: miniPulse 3s infinite alternate;
}

@keyframes miniPulse {
    0% { box-shadow: 0 0 5px rgba(255, 59, 59, 0.2); transform: scale(1); }
    100% { box-shadow: 0 0 15px rgba(255, 59, 59, 0.6), 0 0 25px rgba(255, 59, 59, 0.3); transform: scale(1.05); }
}

.status-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.discord-tag {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-en);
}

.custom-status {
    font-size: 0.75rem;
    color: #aaa;
    font-family: var(--font-ar);
}

/* Social Buttons Row */
.social-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateZ(20px); /* 3D pop inherently */
}

.social-btn:hover {
    color: #fff;
    transform: translateZ(50px) translateY(-5px) scale(1.15); /* Aggressive 3D pop on hover! */
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.social-btn.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: transparent;
    box-shadow: 0 0 15px rgba(220, 39, 67, 0.5);
}

.social-btn.tiktok:hover {
    background: #000;
    border-color: #69C9D0;
    box-shadow: -3px 3px 0 #EE1D52, 0 0 15px rgba(105, 201, 208, 0.5);
}

.social-btn.discord:hover {
    background: #5865F2;
    border-color: #5865F2;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.5);
}

.social-btn.server:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 59, 59, 0.5);
}

/* View Counter */
.view-counter {
    margin: 15px 0 25px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

/* Login Button */
.login-action-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 25px;
    padding: 12px 0;
    background: rgba(255, 59, 59, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 12px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-ar);
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 10px rgba(255, 59, 59, 0.2);
    position: relative;
    overflow: hidden;
    transform: translateZ(30px); /* 3D depth */
}

.login-action-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: skewX(-20deg);
    animation: buttonShine 4s infinite;
}

@keyframes buttonShine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

.login-action-btn:hover {
    background: var(--primary-color);
    box-shadow: 0 0 25px rgba(255, 59, 59, 0.6);
    transform: translateZ(40px) translateY(-3px) scale(1.02);
    letter-spacing: 1px;
}

/* Discord Profile Header */
#discord-profile-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 10px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    z-index: 100;
    animation: slideDown 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideDown {
    from { top: -100px; opacity: 0; }
    to { top: 20px; opacity: 1; }
}

#discord-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid var(--primary-color);
}

#discord-username {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-en);
}

#logout-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.1rem;
    margin-left: 10px;
    transition: color 0.3s;
}

#logout-btn:hover {
    color: var(--primary-color);
}

/* Music Action Buttons inner styling */
.music-action-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.1rem;
    transition: transform 0.2s, color 0.2s;
    outline: none;
    margin-right: 8px; /* For the volume button spacing */
}

.music-action-btn:hover {
    transform: scale(1.1);
    color: var(--primary-color);
}
.view-counter i {
    font-size: 0.9rem;
}

/* Media Player */
.music-player {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    text-align: left;
    overflow: hidden;
    transform: translateZ(35px); /* Elevates the music player */
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.music-player:hover {
    background: rgba(20, 20, 20, 0.7);
    border-color: rgba(255, 255, 255, 0.2);
}

.status-box {
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    transform: translateZ(30px);
}

.status-box:hover {
    transform: translateZ(45px) translateY(-2px);
    border-color: rgba(255, 59, 59, 0.5);
}

.player-icon {
    width: 35px;
    height: 35px;
    background: var(--glass-bg);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    font-size: 1rem;
    flex-shrink: 0;
}

.player-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.track-name {
    font-size: 0.8rem;
    color: #fff;
    font-family: var(--font-ar);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.progress-bar {
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    position: relative;
}

.progress {
    width: 0%;
    height: 100%;
    background: var(--primary-color);
    border-radius: 2px;
    position: absolute;
    top: 0; left: 0;
    box-shadow: 0 0 8px var(--primary-glow);
    transition: width 0.1s linear;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: #888;
    font-family: var(--font-en);
}

.player-controls button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.2s, color 0.2s;
    outline: none;
}

.player-controls button:hover {
    transform: scale(1.1);
    color: var(--primary-color);
}

/* --- Custom Login Modal Styles --- */
.login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.login-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.login-modal-content {
    background: rgba(15, 5, 5, 0.65); /* Deep sleek crimson-tinted glass */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    position: relative;
    border: 1px solid rgba(255, 59, 59, 0.2); /* Red tinted border */
    transform: translateY(-20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 25px 50px rgba(0,0,0,0.8), 0 0 40px rgba(255, 59, 59, 0.15); /* Deep rich shadow with subtle red ambient glow */
    transform-style: preserve-3d;
}

.login-modal-overlay.active .login-modal-content {
    transform: translateY(0) scale(1);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
}

.close-btn:hover {
    color: var(--primary-color);
    transform: rotate(90deg) scale(1.2);
}

.modal-title {
    font-size: 1.8rem;
    font-family: var(--font-ar);
    color: #fff;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.modal-desc {
    font-size: 0.85rem;
    color: #aaa;
    font-family: var(--font-ar);
    margin-bottom: 25px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group .input-icon {
    position: absolute;
    right: 15px;
    transform: translateY(-50%);
    color: var(--text-secondary);
    transition: all 0.3s ease;
    pointer-events: none; /* Let clicks pass through */
}

.input-group .toggle-password {
    position: absolute;
    left: 15px;
    transform: translateY(-50%);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.input-group .toggle-password:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(255, 59, 59, 0.5);
}

.input-group input:focus ~ .input-icon, 
.input-group input:not(:placeholder-shown) ~ .input-icon {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(255, 59, 59, 0.5); /* Glowing Icon */
}

.input-group input {
    width: 100%;
    padding: 12px 40px 12px 15px; /* Right to left adjust */
    background: rgba(0, 0, 0, 0.4); 
    border: 1px solid rgba(255, 255, 255, 0.08); /* Sophisticated subtle border */
    border-radius: 6px;
    color: #fff;
    font-family: var(--font-ar);
    transition: all 0.3s ease;
    outline: none;
}

.input-group input:focus {
    background: rgba(255, 59, 59, 0.05);
    border-color: rgba(255, 59, 59, 0.4);
    box-shadow: 0 0 15px rgba(255, 59, 59, 0.25);
}

/* --- Professional Form Layout Options --- */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0 5px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: color 0.3s ease;
    user-select: none;
}

.remember-me:hover {
    color: #fff;
}

.remember-me input[type="checkbox"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.remember-me input[type="checkbox"]:checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.remember-me input[type="checkbox"]:checked::after {
    content: '\f00c'; /* FontAwesome Check Icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    color: #fff;
}

.forgot-pass {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.forgot-pass:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(255, 59, 59, 0.4);
}

.login-action-btn, .submit-login-btn {
    width: 100%;
    padding: 12px;
    background: rgba(255, 59, 59, 0.1); /* Subtle premium glass logic */
    border: 1px solid rgba(255, 59, 59, 0.3);
    color: #fff; /* Fix black text issue */
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-ar);
    font-weight: 700;
    cursor: pointer;
    display: flex; /* Ensure center alignment */
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

/* Shine Hover Effect for Submit Buttons */
.submit-login-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewX(-20deg);
    transition: all 0.7s ease;
}

.submit-login-btn:hover::after {
    left: 150%;
}

.login-action-btn:hover, .submit-login-btn:hover {
    background: rgba(255, 59, 59, 0.85); /* Rich solid hover */
    box-shadow: 0 0 25px rgba(255, 59, 59, 0.6); /* Majestic glow */
    transform: translateY(-2px);
    border-color: transparent;
}

/* --- Click Ripple Animation --- */
.click-ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: rippleAnim 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    width: 100px;
    height: 100px;
    margin-left: -50px;
    margin-top: -50px;
    z-index: 20;
}

@keyframes rippleAnim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #666;
    font-size: 0.9rem;
    font-family: var(--font-ar);
}

.divider::before, .divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.2) 50%, transparent); /* Fading gradient border */
}

.divider span {
    padding: 0 15px;
}

.discord-auth-btn {
    background: rgba(88, 101, 242, 0.1);
    border-color: #5865F2;
}

.discord-auth-btn:hover {
    background: #5865F2;
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.6);
}

.switch-auth-text {
    font-size: 0.85rem;
    color: #aaa;
    margin-top: 15px;
    font-family: var(--font-ar);
}

.switch-auth-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s, text-shadow 0.3s;
}

.switch-auth-text a:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--primary-glow);
}

/* --- Floating Premium HUD Island (Top Profile) --- */
#discord-profile-header {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px); /* Start hidden above */
    background: rgba(15, 5, 5, 0.65);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 59, 59, 0.3);
    border-radius: 50px; /* Pill shape */
    padding: 8px 15px 8px 8px; /* Extra padding on right */
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px rgba(255, 59, 59, 0.2);
    z-index: 1000;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

#discord-profile-header.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.hud-avatar-wrapper {
    position: relative;
    width: 45px;
    height: 45px;
}

#discord-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 59, 59, 0.5);
    padding: 2px;
}

.hud-status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background: #23a559; /* Discord active green */
    border: 2px solid #1a1a1a;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(35, 165, 89, 0.5);
}

.hud-user-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hud-welcome {
    font-size: 0.7rem;
    color: var(--text-secondary);
    line-height: 1;
    margin-bottom: 2px;
}

#discord-username {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.hud-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255,255,255,0.1); /* Separator line RTL */
}

/* --- Edit Profile Button & Logout --- */
#edit-profile-btn, #logout-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

#edit-profile-btn:hover {
    color: var(--primary-color);
    transform: scale(1.1);
    text-shadow: 0 0 10px var(--primary-glow);
}

#logout-btn:hover {
    color: var(--primary-color);
    transform: scale(1.1);
    text-shadow: 0 0 10px var(--primary-glow);
}

/* --- Authentic OAuth Button Brand Colors --- */
.google-auth-btn {
    background: rgba(219, 68, 55, 0.1) !important; /* Premium tinted glass */
    border: 1px solid rgba(219, 68, 55, 0.3) !important;
    color: #fff !important;
}

.google-auth-btn:hover {
    background: rgba(219, 68, 55, 0.85) !important;
    border-color: transparent !important;
    box-shadow: 0 0 25px rgba(219, 68, 55, 0.6) !important;
}

.discord-auth-btn {
    background: rgba(88, 101, 242, 0.1) !important;
    border: 1px solid rgba(88, 101, 242, 0.3) !important;
    color: #fff !important;
}

.discord-auth-btn:hover {
    background: rgba(88, 101, 242, 0.85) !important;
    border-color: transparent !important;
    box-shadow: 0 0 25px rgba(88, 101, 242, 0.6) !important;
}

/* --- Background Ghost Falling Users --- */
.ghost-user {
    position: fixed;
    z-index: -2; /* Behind the main content, above background */
    pointer-events: none; /* Ignore clicks */
    animation: dropGhost 6s linear forwards; /* Faster falling */
    opacity: 0;
}

.ghost-user img {
    width: 60px; 
    height: 60px; 
    border-radius: 50%;
    opacity: 0.5; /* Transparent slightly as requested */
    filter: grayscale(10%); 
    box-shadow: 0 0 25px rgba(255,255,255,0.2);
}

@keyframes dropGhost {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0.5) rotate(0deg);
    }
    15% {
        opacity: 0.45; /* Semi-transparent */
        transform: translate(calc(var(--dir-x) * 15px), calc(var(--dir-y) * 30px)) scale(0.8) rotate(45deg);
    }
    65% {
        opacity: 0.45; 
        transform: translate(calc(var(--dir-x) * 45px), calc(var(--dir-y) * 120px)) scale(1) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: translate(calc(var(--dir-x) * 70px), calc(var(--dir-y) * 200px)) scale(0.6) rotate(320deg);
    }
}

/* --- Avatar Upload Area (Drag & Drop) --- */
.upload-area {
    border: 2px dashed rgba(255, 59, 59, 0.3);
    border-radius: 8px;
    padding: 25px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    min-height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(255, 59, 59, 0.05);
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.upload-placeholder i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.upload-placeholder span {
    color: #fff;
    font-size: 0.95rem;
    font-family: var(--font-ar);
    font-weight: 700;
}

.upload-placeholder small {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

#avatar-preview {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6; /* So you can faintly see the background/glow */
    z-index: 1;
}

/* --- Rich Discord Profile Card Modal --- */
.profile-card-container {
    background: #111214;
    width: 340px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.05);
    position: relative;
    animation: modalPop 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    direction: ltr; /* Force LTR for Discord standard look, or keep RTL based on user preference. Let's keep ltr inside the card to match the raw screenshot feel but flip text directions. */
    text-align: left;
}

.profile-card-container h3, .profile-card-container p {
    text-align: right;
    direction: rtl; /* Force RTL for arabic text content */
}

.profile-banner {
    height: 120px;
    width: 100%;
    background: linear-gradient(135deg, #1f0505, #110101, #310000);
    position: relative;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

/* Neon Edge Glow from user screenshot */
.profile-banner::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    box-shadow: inset 0 0 20px rgba(88, 101, 242, 0.4);
    border: 2px solid rgba(88, 101, 242, 0.6);
    border-radius: 12px 12px 0 0;
    pointer-events: none;
}

.profile-card-header {
    position: relative;
    padding: 0 16px 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.profile-avatar-large-wrapper {
    position: relative;
    margin-top: -30px; /* Overlap banner */
    width: 92px;
    height: 92px;
    border-radius: 50%;
    border: 6px solid #111214; /* Match card background */
    background: #111214;
}

#card-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* Custom Avatar Frame effect */
.avatar-decoration-ring {
    position: absolute;
    top: -15px; left: -15px;
    width: 122px; height: 122px;
    /* Simulate a fiery neon ring since we don't have the explicit gif */
    border: 3px solid transparent;
    border-top-color: #ff3b3b;
    border-bottom-color: #ff3b3b;
    border-radius: 50%;
    animation: rotateRing 4s linear infinite;
    pointer-events: none;
    z-index: 2;
    filter: drop-shadow(0 0 10px #ff3b3b);
}

@keyframes rotateRing {
    0% { transform: rotate(0); }
    100% { transform: rotate(360deg); }
}

.profile-avatar-large-wrapper .status-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    background: #23a559;
    border: 4px solid #111214;
    border-radius: 50%;
    z-index: 3;
}

.badges-container {
    background: rgba(0,0,0,0.4);
    border-radius: 8px;
    padding: 6px;
    display: flex;
    gap: 6px;
    margin-top: 10px;
    border: 1px solid rgba(255,255,255,0.05);
}

.badge-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.profile-card-body {
    padding: 16px;
    background: #111214;
    border-radius: 0 0 12px 12px;
}

/* Nameplate style matching "vox steex.b1" */
.profile-nameplate {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    background: linear-gradient(90deg, rgba(82,10,10,0.5), transparent);
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.prefix-vox {
    color: #e0e0e0;
    font-size: 0.85rem;
    font-weight: 800;
}

.nameplate-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ff3b3b;
    font-family: var(--font-ar);
    font-style: normal; /* Italics ruin Arabic cursive */
    text-shadow: 0 0 10px rgba(255, 59, 59, 0.3);
}

.profile-custom-status {
    color: #dbdee1;
    font-size: 0.9rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 8px;
}

.profile-custom-status i {
    color: #ff4d4d;
}

.profile-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 0 8px 12px;
}

.profile-about-me {
    padding: 0 8px;
}

.profile-about-me h3 {
    font-size: 0.75rem;
    color: #b5bac1;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 800;
}

.profile-about-me p {
    font-size: 0.9rem;
    color: #dbdee1;
    line-height: 1.5;
}

.close-card-btn {
    position: absolute;
    top: 10px; right: 10px; /* LTR right */
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    width: 25px; height: 25px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex; justify-content: center; align-items: center;
    transition: background 0.3s ease;
}
.close-card-btn:hover { background: rgba(255, 59, 59, 0.8); }

/* --- Cinematic Preloader --- */
#cinematic-preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: #050505;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s;
}
body.loaded #cinematic-preloader {
    opacity: 0;
    visibility: hidden;
}
.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.glowing-steex-logo {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    font-family: var(--font-en);
    text-transform: uppercase;
    letter-spacing: 5px;
    animation: textFlicker 2s infinite alternate;
}
.loading-bar {
    width: 200px;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}
.loading-progress {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 0%;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-glow);
    animation: loadAnim 0.7s cubic-bezier(0.1, 0.7, 1.0, 0.1) forwards;
}
@keyframes loadAnim {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* --- Custom Glass Context Menu --- */
.glass-context-menu {
    position: fixed;
    background: rgba(15, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 59, 59, 0.2);
    border-radius: 12px;
    padding: 10px 0;
    width: 240px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 15px rgba(255, 59, 59, 0.1);
    z-index: 10000;
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: top left;
}
.glass-context-menu.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}
.context-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #eee;
    font-family: var(--font-ar);
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.context-item:hover {
    background: rgba(255, 59, 59, 0.15);
    color: #fff;
}
.context-item i {
    width: 20px;
    text-align: center;
    color: var(--primary-color);
}
.context-item[style*="color: #5865F2;"] i {
    color: #5865F2; /* Retain discord color */
}
.context-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 8px 0;
}

/* --- MacOS Style Dock --- */
.mac-dock-container {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}
.mac-dock {
    display: flex;
    gap: 15px;
    padding: 12px 20px;
    background: rgba(20, 20, 25, 0.6);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
    align-items: flex-end; /* for pop-up items */
}
.dock-item {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
    position: relative;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: bottom center;
}
.dock-item::after {
    content: attr(data-title);
    position: absolute;
    top: -40px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-family: var(--font-ar);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.2s ease;
    border: 1px solid rgba(255,255,255,0.1);
}
.dock-item:hover {
    transform: scale(1.4) translateY(-10px);
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(255, 59, 59, 0.4);
    z-index: 10;
}
.dock-item:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/* --- Mobile Responsive Layout --- */
@media (max-width: 768px) {
    .glass-card {
        padding: 25px 15px;
        width: 95vw;
        border-radius: 20px;
    }
    .username {
        font-size: 1.6rem;
    }
    .avatar-ring-container {
        width: 120px;
        height: 120px;
    }
    .avatar-video-wrapper {
        width: 100px;
        height: 100px;
    }
    .avatar-ring {
        width: 120px;
        height: 120px;
    }
    .social-row {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .social-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    #discord-profile-header {
        width: 95vw;
        max-width: 380px;
        padding: 8px 10px;
        border-radius: 12px;
    }
    #discord-username {
        font-size: 0.8rem;
    }
    .hud-actions {
        margin-right: auto;
        padding-right: 5px;
        gap: 5px;
    }
    .login-modal-content {
        width: 95%;
        padding: 20px;
    }
    .discord-profile-card {
        width: 95vw;
        max-width: 320px;
    }
    .profile-banner {
        height: 100px;
    }
    .profile-header-card {
        padding: 0 15px;
        margin-top: -40px;
    }
    .card-avatar-container {
        width: 80px;
        height: 80px;
    }
    .profile-body {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .music-player {
        flex-direction: column;
        align-items: stretch;
        width: 90vw;
        left: 5vw;
        bottom: 20px;
    }
    .player-controls {
        display: flex;
        justify-content: center;
        margin-bottom: 10px;
    }
    .social-row {
        gap: 8px;
    }
    .social-btn {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }
    .login-action-btn {
        font-size: 0.9rem;
    }
    .login-action-btn i {
        font-size: 1rem;
    }
}
