:root {
    --bg-dark: #050505;
    --bg-panel: #16181d;
    --accent: #5865F2;
    --accent-glow: rgba(88, 101, 242, 0.5);
    --text-main: #ffffff;
    --text-muted: #b9bbbe;
    --danger: #ed4245;
    --gold: #f1c40f;
    --glass: rgba(20, 20, 25, 0.6);
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: 'Montserrat', sans-serif; 
}



#earth-corner-img {
    position: absolute;
    bottom: -15vh; 
    right: -10vw;   
    width: 60vmin;   
    z-index: 10;
    transform: rotate(25deg);
    filter: drop-shadow(0 0 50px rgba(66, 135, 245, 0.3));
    pointer-events: none;
   
}


body { 
    background-color: var(--bg-dark); 
    color: var(--text-main); 
    overflow: hidden; 
    height: 100vh; 
    width: 100vw;
    position: fixed;
}


#auth-overlay {
    display: flex;
}
#app {
    display: none;
}

body[data-app-state="app"] #auth-overlay {
    display: none !important;
}
body[data-app-state="app"] #app {
    display: flex !important;
}

body[data-app-state="auth"] #auth-overlay {
    display: flex !important;
}
body[data-app-state="auth"] #app {
    display: none !important;
}


.overlay {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: #000000;
    z-index: 1000; 
    display: flex; 
    justify-content: center; 
    align-items: center;
    overflow: hidden;
}

#auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

#auth-action-btn {
    padding: 15px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0,0,0,0.4), 0 0 20px var(--accent-glow);
    outline: none;
}

#auth-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.6), 0 0 30px var(--accent-glow);
    background: #6a75f5;
}

#auth-action-btn:active {
    transform: translateY(0);
}

#auth-action-btn:disabled {
    background: #2f3136;
    color: #72767d;
    cursor: wait;
    transform: none;
    box-shadow: none;
}

#switch-auth-mode {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 10px;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

#switch-auth-mode:hover {
    color: var(--accent);
    text-decoration: underline;
}


@keyframes earthEntrance { 
    0% { opacity: 0; transform: translateY(150px) rotate(25deg); } 
    100% { opacity: 1; transform: translateY(0) rotate(25deg); } 
}
@keyframes theiaEntrance { 
    0% { opacity: 0; transform: translateY(100px) rotate(45deg); } 
    100% { opacity: 1; transform: translateY(0) rotate(45deg); } 
}
@keyframes moonEntrance { 
    0% { opacity: 0; transform: translateY(-100px) scaleX(-1) rotate(10deg); } 
    100% { opacity: 1; transform: translateY(0) scaleX(-1) rotate(10deg); } 
}
@keyframes sunEntrance { 
    0% { opacity: 0; transform: translate(-50%, -40%); } 
    100% { opacity: 1; transform: translate(-50%, -50%); } 
}
@keyframes contentEntrance { 
    0% { opacity: 0; transform: translateY(30px); } 
    100% { opacity: 1; transform: translateY(0); } 
}

#moon-img {
    position: absolute; 
    top: 5vmin; 
    right: 5vmin; 
    width: 25vmin; 
    z-index: 20; 
    transform: scaleX(-1) rotate(10deg);
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.3)); 
    -webkit-mask-image: radial-gradient(closest-side, black 85%, transparent 96%);
    mask-image: radial-gradient(closest-side, black 85%, transparent 96%);
    opacity: 0; 
    animation: moonEntrance 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; 
    animation-delay: 0.5s;
}

#earth-img {
    position: absolute; 
    bottom: -15vh; 
    left: -10vw; 
    width: 65vmin; 
    z-index: 10;
    transform: rotate(25deg); 
    background: #2e2e2e; 
    border-radius: 50%;
    filter: drop-shadow(0 0 50px rgba(66, 135, 245, 0.3));
    -webkit-mask-image: radial-gradient(closest-side, black 98%, transparent 100%);
    mask-image: radial-gradient(closest-side, black 98%, transparent 100%);
    pointer-events: none; 
    opacity: 0; 
    animation: earthEntrance 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

#theia-img {
    position: absolute; 
    top: 15vmin; 
    left: 2vmin; 
    width: 25vmin; 
    background: #8b4020; 
    border-radius: 50%; 
    z-index: 15; 
    transform: rotate(45deg); 
    filter: drop-shadow(0 0 40px rgba(255, 100, 50, 0.3));
    -webkit-mask-image: radial-gradient(closest-side, black 90%, transparent 100%);
    mask-image: radial-gradient(closest-side, black 90%, transparent 100%);
    pointer-events: none; 
    opacity: 0; 
    animation: theiaEntrance 1.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; 
    animation-delay: 0.3s;
}

#sun-img {
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    width: 60vmin; 
    z-index: 5; 
    -webkit-mask-image: radial-gradient(closest-side, black 90%, transparent 100%);
    mask-image: radial-gradient(closest-side, black 90%, transparent 100%);
    filter: drop-shadow(0 0 100px rgba(255, 200, 50, 1)) drop-shadow(0 0 200px rgba(255, 100, 0, 0.8)) drop-shadow(0 0 300px rgba(255, 140, 0, 0.5));
    pointer-events: none; 
    opacity: 0; 
    animation: sunEntrance 2.5s ease-out forwards;
}

.stars, .stars2 { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    pointer-events: none; 
    z-index: 0; 
}

.stars {
    width: 2px; 
    height: 2px; 
    background: transparent;
    box-shadow: 1744px 122px #FFF, 134px 1321px #FFF, 92px 859px #FFF, 1686px 476px #FFF, 2500px 1500px #FFF, 3200px 800px #FFF, 4100px 200px #FFF, 500px 3200px #FFF, 1532px 421px #FFF, 694px 925px #FFF, 345px 1682px #FFF, 122px 405px #FFF, 3890px 156px #FFF, 1450px 3890px #FFF, 200px 3300px #FFF, 4800px 100px #FFF, 4400px 2900px #FFF, 1200px 2500px #FFF, 50px 4200px #FFF, 2200px 50px #FFF;
    animation: calmPulse 12s infinite ease-in-out;
}

.stars2 {
    width: 3px; 
    height: 3px; 
    background: transparent; 
    box-shadow: 1200px 800px #FFF, 500px 200px #FFF, 900px 1200px #FFF, 2600px 400px #FFF, 4800px 300px #FFF, 3500px 2500px #FFF, 4100px 4100px #FFF;
    animation: calmPulse 15s infinite ease-in-out; 
    animation-delay: 2s; 
    opacity: 0.6;
}

@keyframes calmPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.4; }
}

.landing-content { 
    text-align: center; 
    max-width: 500px; 
    width: 100%; 
    z-index: 100; 
    position: relative; 
    background: var(--glass); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px); 
    padding: 40px; 
    border-radius: 24px; 
    border: 1px solid rgba(255,255,255,0.05); 
    box-shadow: 0 30px 60px rgba(0,0,0,0.8); 
    opacity: 0; 
    animation: contentEntrance 1s ease-out forwards; 
    animation-delay: 1s; 
}

.landing-content h1 { 
    font-size: 3.5rem; 
    margin-bottom: 10px; 
    font-weight: 800; 
    background: linear-gradient(135deg, #fff 0%, #a0a0ff 100%); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    filter: drop-shadow(0 0 20px var(--accent-glow)); 
}

.subtitle { 
    color: var(--text-muted); 
    margin-bottom: 30px; 
    font-size: 1.1rem; 
}


.hidden { 
    display: none !important; 
}

#app {
    width: 100vw;
    height: 100vh;
    display: flex;
    overflow: hidden;
}

.sidebar { 
    width: 90px; 
    background: #121418; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    padding: 30px 0; 
    border-right: 1px solid #202225;
    flex-shrink: 0;
    
   
    height: 100vh;       
    height: 100dvh;      
    padding-bottom: 40px;
    overflow: hidden;    
}


.sidebar nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    flex: 1;
    overflow-y: auto;
    overflow-x: visible !important;
    padding-top: 10px;
    padding-left: 5px; 
    padding-right: 5px;
}

.nav-btn {
    position: relative; 
    overflow: visible !important;
    flex-shrink: 0;
}


.sidebar nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}


.nav-btn {
    flex-shrink: 0; 
}

.nav-btn { 
    width: 55px; 
    height: 55px; 
    border-radius: 50%; 
    background: #2f3136; 
    margin-bottom: 20px; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    font-size: 1.3rem; 
    color: #b9bbbe; 
    transition: 0.2s; 
    border: none; 
    cursor: pointer; 
}

.nav-btn:hover, .nav-btn.active { 
    background: var(--accent); 
    color: white; 
    border-radius: 18px; 
    box-shadow: 0 0 15px var(--accent-glow); 
}

.discord-link img { 
    width: 45px; 
    height: 45px; 
    margin-bottom: 20px; 
    cursor: pointer; 
    transition: 0.2s; 
    border-radius: 50%; 
    object-fit: cover; 
}

#mini-pfp { 
    width: 50px; 
    height: 50px; 
    border-radius: 50%; 
    object-fit: cover; 
    border: 2px solid var(--accent); 
}

.content { 
    flex: 1; 
    background: #1a1c22; 
    position: relative;
    overflow: hidden;
}

.tab-content { 
    width: 100%; 
    height: 100%; 
    display: none; 
    padding: 40px; 
    overflow-y: auto; 
}

.tab-content.active { 
    display: block; 
    animation: fadeIn 0.4s; 
}

@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 1; transform: translateY(0); } 
}


input, textarea { 
    width: 100%; 
    padding: 15px; 
    margin: 8px 0; 
    background: rgba(0,0,0,0.4); 
    border: 1px solid rgba(255,255,255,0.1); 
    color: white; 
    border-radius: 12px; 
    outline: none; 
    transition: 0.3s; 
}

input:focus, textarea:focus { 
    border-color: var(--accent); 
    background: rgba(0,0,0,0.6);
    box-shadow: 0 0 10px var(--accent-glow);
}

.sleek-btn { 
    padding: 14px; 
    background: var(--accent); 
    color: white; 
    border: none; 
    border-radius: 12px; 
    cursor: pointer; 
    width: 100%; 
    font-weight: bold;
    transition: all 0.2s ease;
}

.sleek-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.danger-btn { 
    background: var(--danger); 
    padding: 10px; 
    color: white; 
    border: none; 
    border-radius: 8px; 
    cursor: pointer; 
    transition: all 0.2s ease;
}

.danger-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.2);
}


.admin-tools-container { 
    background: rgba(237, 66, 69, 0.1); 
    border: 1px solid var(--danger); 
    padding: 15px; 
    margin-bottom: 20px; 
    border-radius: 10px; 
}

.admin-text { 
    color: var(--danger); 
    border-bottom: 2px solid var(--danger); 
    display: inline-block; 
    margin-top: 30px; 
    font-weight: 900; 
    letter-spacing: 2px; 
}

.admin-user-list { 
    max-height: 200px; 
    overflow-y: auto; 
    background: rgba(0,0,0,0.3); 
    border-radius: 10px; 
    margin-top: 10px; 
    padding: 10px; 
}

.admin-user-entry { 
    padding: 8px; 
    border-bottom: 1px solid rgba(255,255,255,0.1); 
    font-size: 0.9rem; 
    cursor: pointer; 
}

.admin-user-entry:hover { 
    background: rgba(237, 66, 69, 0.2); 
}


.video-layout { 
    display: flex; 
    gap: 30px; 
    height: 100%;
}

#video-display-area {
    width: 100%;
    max-height: 400px;
    background: #000;
    border-radius: 20px;
    margin-bottom: 20px;
    overflow: hidden;
}

#main-video-display {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

#video-items-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.video-item { 
    padding: 15px; 
    background: #2f3136; 
    margin-bottom: 10px; 
    border-radius: 10px; 
    cursor: pointer; 
    transition: all 0.2s ease;
}

.video-item:hover {
    background: var(--accent);
    transform: translateX(5px);
}


.chat-container { 
    display: flex; 
    flex-direction: column; 
    height: calc(100vh - 80px);
    background: var(--bg-panel); 
    border-radius: 20px; 
    overflow: hidden; 
}

.messages-area { 
    flex: 1; 
    overflow-y: auto; 
    padding: 20px; 
    display: flex; 
    flex-direction: column; 
}

.message { 
    display: flex; 
    gap: 15px; 
    margin-bottom: 15px; 
}

.msg-avatar { 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    object-fit: cover; 
    cursor: pointer;
    flex-shrink: 0;
}

.msg-content h4 { 
    margin: 0 0 5px 0; 
    font-size: 0.9rem; 
    cursor: pointer; 
}

.chat-input-area { 
    padding: 20px; 
    background: #292b2f; 
    display: flex; 
    gap: 10px;
    flex-shrink: 0;
}

.chat-input-area input { 
    margin: 0; 
}

.chat-input-area button { 
    width: auto; 
}


.dm-layout { 
    display: flex; 
    height: calc(100vh - 80px);
    border-radius: 20px; 
    overflow: hidden; 
    background: var(--bg-panel); 
}

.user-list-sidebar { 
    width: 250px; 
    background: #202225; 
    overflow-y: auto; 
    display: flex; 
    flex-direction: column;
    flex-shrink: 0;
}

.user-item { 
    padding: 15px; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    cursor: pointer; 
    border-bottom: 1px solid rgba(255,255,255,0.05); 
    transition: all 0.2s ease;
}

.user-item:hover { 
    background: rgba(88, 101, 242, 0.1); 
}

.dm-chat-area { 
    flex: 1; 
    display: flex; 
    flex-direction: column;
    overflow: hidden;
}


.settings-grid { 
    display: grid; 
    grid-template-columns: 250px 1fr; 
    gap: 50px; 
}

.pfp-editor { 
    width: 200px; 
    height: 200px; 
    margin: 0 auto; 
    cursor: pointer; 
    position: relative; 
}

#settings-pfp-preview { 
    width: 100%; 
    height: 100%; 
    border-radius: 50%; 
    object-fit: cover; 
    border: 5px solid var(--accent); 
}

.pfp-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.5); 
    border-radius: 50%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    opacity: 0; 
    transition: 0.2s; 
    color: white; 
    font-weight: bold; 
}

.pfp-editor:hover .pfp-overlay { 
    opacity: 1; 
}


.color-gacha-section { 
    background: rgba(255,255,255,0.05); 
    padding: 20px; 
    border-radius: 15px; 
    margin: 20px 0; 
    text-align: center; 
}

.gacha-odds { 
    font-size: 0.8rem; 
    margin-bottom: 10px; 
    color: #aaa; 
}

#current-color-display {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 15px 0;
    min-height: 40px;
}


.rainbow-text { 
    background: linear-gradient(90deg, 
        red 0%, 
        orange 14%, 
        yellow 28%, 
        green 42%, 
        cyan 57%, 
        blue 71%, 
        violet 85%, 
        red 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbowAnim 3s linear infinite;
    font-weight: bold;
}

@keyframes rainbowAnim { 
    0% { background-position: 0% 50%; } 
    100% { background-position: 200% 50%; } 
}


.modal { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.8); 
    z-index: 2000; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
}

.modal-content { 
    background: var(--bg-panel); 
    padding: 50px; 
    border-radius: 24px; 
    text-align: center; 
    min-width: 400px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-modal { 
    position: absolute; 
    top: 15px; 
    right: 20px; 
    font-size: 35px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s ease;
    z-index: 9999;
    line-height: 1;
    width: 40px;    
    height: 40px;
    text-align: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

#modal-pfp { 
    width: 120px; 
    height: 120px; 
    border-radius: 50%; 
    object-fit: cover; 
    margin-bottom: 20px; 
    border: 3px solid var(--accent); 
}


input[type="file"] {
    background: rgba(0, 0, 0, 0.4);
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    width: 100%;
    height: auto;
}

input[type="file"]::file-selector-button {
    background-color: #2f3136;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    margin-right: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

input[type="file"]::file-selector-button:hover {
    background-color: var(--accent);
    color: white;
}


button {
    font-family: 'Montserrat', sans-serif;
    border: none;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-tools-container button {
    background-color: var(--accent);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    margin-top: 10px;
    width: 100%;
}

.admin-tools-container button:hover {
    transform: translateY(-2px);
    filter: brightness(1.2);
}

.admin-tools-container button.danger-btn,
button[onclick*="Delete"], 
button[onclick*="Ban"] {
    background-color: var(--danger) !important;
}


::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6a75f5;
}


.leaks-layout {
    display: flex;
    gap: 20px;
    height: calc(100vh - 140px);
}

.leak-player-container {
    flex: 3;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;       
    min-height: 0;          
    padding-right: 10px;    
}

.leak-player {
    width: 100%;
    aspect-ratio: 16/9;   
    flex: 0 0 auto;       
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    min-height: 300px;    
}

.video-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 15px;
    background: var(--bg-panel);
    border-radius: 15px;
}

.nav-video-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}

.nav-video-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.nav-video-btn:disabled {
    background: #2f3136;
    cursor: not-allowed;
    transform: none;
}

#video-counter {
    font-weight: bold;
    color: var(--text-main);
}

.video-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 10px;
    background: var(--bg-panel);
    border-radius: 15px;
}

.action-btn {
    background: #2f3136;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

.action-btn.active-like {
    background: #43b581;
    color: white;
}

.action-btn.active-dislike {
    background: var(--danger);
    color: white;
}

@keyframes buttonPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.button-pulse {
    animation: buttonPulse 0.3s ease;
}

.leak-list {
    flex: 1;
    background: var(--bg-panel);
    border-radius: 20px;
    padding: 20px;
    overflow-y: auto;
}

.leak-list h3 {
    margin-bottom: 15px;
    color: var(--accent);
}

.leak-item {
    background: #2f3136;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.leak-item:hover {
    background: var(--accent);
    transform: translateX(5px);
    border-left-color: #fff;
}

.leak-item.active {
    background: var(--accent);
    border-left-color: #fff;
}

.leak-item-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.leak-item-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.leak-stats {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.leak-stats i {
    margin-right: 5px;
}


.image-leaks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.image-leak-card {
    background: var(--bg-panel);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
    border: 1px solid #2f3136;
}

.image-leak-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.3);
}

.image-leak-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.image-leak-info {
    padding: 15px;
}

.image-leak-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.image-leak-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}


.admin-badge {
    display: inline-block;
    background: var(--danger);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
    font-weight: bold;
    text-transform: uppercase;
}


.cosmic-gradient {
    background-image: linear-gradient(90deg, #ff00ff, #00ffff, #ffea00);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbowAnim 4s ease infinite;
    font-weight: 800;
}

.solar-flare {
    background-image: linear-gradient(45deg, #ff8c00, #ff4500, #ffd700);
    background-size: 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    animation: rainbowAnim 3s linear infinite;
}






.message.discord-style {
    display: flex;
    flex-direction: column;
    margin-top: 18px;      
    padding: 0 16px;
    position: relative;
    overflow: visible;     
}


.msg-main-row {
    display: flex;
    flex-direction: row;
    gap: 12px; 
    align-items: flex-start;
    z-index: 2;
}


.message-reply-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    margin-left: 50px;
    position: relative;
    opacity: 0.8;
    font-size: 0.85rem;
    color: #b9bbbe;
}


.reply-spine {
    position: absolute;
   
    left: -32px; 
    top: 50%;
    bottom: -15px;
    width: 35px;
    border-left: 2px solid #4f545c;
    border-top: 2px solid #4f545c;
    border-top-left-radius: 6px;
    pointer-events: none;
}


.reply-tiny-avatar {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    object-fit: cover;
}

.reply-preview-name {
    font-weight: 700;
    color: white;
    margin-right: 5px;
}

.reply-preview-text {
    color: #b9bbbe;
    cursor: pointer;
}
.reply-preview-text:hover { color: white; }




.msg-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.2s;
}

.msg-avatar:hover {
    opacity: 0.8;
}


.msg-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}


.msg-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
    line-height: 1.375rem;
}


.user-name-text {
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
}

.user-name-text:hover {
    text-decoration: underline;
}


.admin-badge {
    background-color: #5865F2;
    color: white;
    font-size: 0.625rem;
    padding: 1px 4px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.3;
    height: 15px;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin-top: 1px;
}


.msg-timestamp {
    font-size: 0.75rem;
    color: #949BA4;
    margin-left: 0.25rem;
    font-weight: 400;
}


.msg-body {
    font-size: 1rem;
    line-height: 1.375rem;
    color: #DBDEE1;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-weight: 300;
}


.chat-container {
    background-color: #313338;
}

.messages-area {
    padding-top: 10px;
}

.chat-input-area {
    background-color: #313338;
    padding: 0 16px 24px;
}

.chat-input-area input {
    background-color: #383A40;
    border: none;
    color: #DBDEE1;
    border-radius: 8px;
}





.dm-row {
    display: flex;
    align-items: flex-end;
    margin-bottom: 15px;
    gap: 12px;
}


.dm-row.dm-sent {
    flex-direction: row-reverse;
}


.dm-row.dm-received {
    flex-direction: row;
}


.dm-pfp {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    flex-shrink: 0;
}


.dm-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 20px;
    position: relative;
    word-wrap: break-word;
    font-size: 0.95rem;
    line-height: 1.4;
}


.dm-sent .dm-bubble {
    background-color: #5865F2;
    color: white;
    border-bottom-right-radius: 4px;
}


.dm-received .dm-bubble {
    background-color: #383A40;
    color: #DBDEE1;
    border-bottom-left-radius: 4px;
}


.dm-name {
    font-size: 0.7rem;
    font-weight: bold;
    margin-bottom: 4px;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}






.admin-user-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.2s;
}

.admin-user-entry:hover {
    background-color: rgba(255, 255, 255, 0.05);
}


.admin-user-info {
    display: flex;
    flex-direction: column;
}

.admin-user-name {
    font-weight: bold;
    font-size: 0.95rem;
}

.admin-user-id {
    font-size: 0.75rem;
    color: #b9bbbe;
    font-family: monospace;
}


.status-tag {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-admin {
    background-color: #5865F2;
    color: white;
    box-shadow: 0 0 10px rgba(88, 101, 242, 0.4);
}

.tag-banned {
    background-color: #ed4245;
    color: white;
}

.tag-user {
    background-color: #2f3136;
    color: #b9bbbe;
    border: 1px solid rgba(255,255,255,0.1);
}




.comment-section {
    background: var(--bg-panel);
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
}





.comment-input-area {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
    background: rgba(0,0,0,0.2);
    padding: 5px 15px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.comment-input-area input {
    background: transparent;
    border: none;
    margin: 0;
    padding: 10px 0;
    box-shadow: none;
}

.comment-input-area input:focus {
    background: transparent;
    box-shadow: none;
    border: none;
}

.send-icon-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 10px;
    transition: transform 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-icon-btn:hover {
    color: #fff;
    transform: translateX(3px);
}

.load-replies-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 5px;
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.load-replies-btn:hover {
    opacity: 1;
    text-decoration: underline;
}

.replies-container.hidden {
    display: none;
}



.comment-input-area input {
    background: transparent;
    border: none;
    margin: 0;
    padding: 10px 0;
    box-shadow: none;
}

.comment-input-area input:focus {
    background: transparent;
    box-shadow: none;
    border: none;
}

.send-icon-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 10px;
    transition: transform 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-icon-btn:hover {
    color: #fff;
    transform: translateX(3px);
}



.comment-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    animation: fadeIn 0.3s;
}

.comment-pfp {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 5px;
}

.comment-date {
    font-size: 0.7rem;
    color: #72767d;
}

.comment-text {
    font-size: 0.95rem;
    color: #dcddde;
    margin-bottom: 5px;
}

.reply-btn {
    background: none;
    border: none;
    color: #72767d;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0;
}

.reply-btn:hover {
    color: var(--accent);
    text-decoration: underline;
}

.replies-container {
    margin-top: 10px;
    padding-left: 15px;
    border-left: 2px solid #2f3136;
}

.replies-container.hidden {
    display: none;
}

.load-replies-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 5px;
    margin-bottom: 5px;
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.load-replies-btn:hover {
    opacity: 1;
    text-decoration: underline;
}

.reply-input {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.reply-input.hidden {
    display: none;
}

.sleek-btn.small {
    padding: 8px 15px;
    font-size: 0.8rem;
}


.img-like-btn {
    background: #2f3136;
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.2s;
}

.img-like-btn:hover {
    background: rgba(237, 66, 69, 0.2);
    color: #ed4245;
}

.img-wrapper {
    overflow: hidden;
}
.img-wrapper img {
    transition: transform 0.2s;
}
.image-leak-card:hover .img-wrapper img {
    transform: scale(1.05);
}



#rotate-overlay {
    display: none;
}


@media screen and (orientation: portrait) and (max-width: 900px) {
    #rotate-overlay {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #000000;
        z-index: 99999;
        text-align: center;
        padding: 20px;
    }

    #rotate-overlay i {
        font-size: 60px;
        color: var(--accent);
        margin-bottom: 20px;
        animation: rotateIcon 2s infinite ease-in-out;
    }

    #rotate-overlay h2 {
        color: white;
        margin-bottom: 10px;
        font-weight: 800;
        letter-spacing: 1px;
    }

    #rotate-overlay p {
        color: var(--text-muted);
    }

   
    #app, #auth-overlay {
        display: none !important;
    }
}


@keyframes rotateIcon {
    0% { transform: rotate(0deg); }
    30% { transform: rotate(90deg); }
    70% { transform: rotate(90deg); }
    100% { transform: rotate(0deg); }
}


@media screen and (max-width: 900px) {
    
   
    .sidebar {
        width: 65px;
        padding-top: 15px;
    }

    .nav-btn {
        width: 42px;
        height: 42px;
        font-size: 1rem;
        margin-bottom: 12px;
    }

   
    .discord-link img, #mini-pfp {
        width: 35px;
        height: 35px;
        margin-bottom: 10px;
    }

   
    input, textarea, select {
        padding: 10px;
        font-size: 0.9rem;
        margin: 5px 0;
    }

    .sleek-btn, .nav-video-btn, .action-btn {
        padding: 10px;
        font-size: 0.9rem;
    }

   
    .msg-avatar {
        width: 32px;
        height: 32px;
    }

    .msg-body {
        font-size: 0.9rem;
    }

    .chat-input-area {
        padding: 10px;
    }

   
    .leak-item {
        padding: 10px;
    }
    
    .leak-item-title {
        font-size: 0.9rem;
    }

   
    .settings-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

   
    .modal-content {
        padding: 20px;
        width: 95%;
        max-height: 95vh;
    }

   
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
}






.reply-bar-container {
    background: #2b2d31;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.reply-bar-container.hidden { display: none; }
.reply-bar-text { color: #b9bbbe; font-size: 0.9rem; }
.reply-bar-name { font-weight: bold; color: white; }
.reply-cancel-btn { 
    background: transparent; border: none; color: #b9bbbe; cursor: pointer; font-size: 1.2rem; 
}
.reply-cancel-btn:hover { color: #ed4245; }


.message-reply-preview {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 4px;
    position: relative;
    opacity: 0.7;
    margin-left: 18px;
}


.reply-spine {
    position: absolute;
    top: 50%;
    left: -28px;
    width: 35px;
    height: 12px;
    border-left: 2px solid #4e5058;
    border-top: 2px solid #4e5058;
    border-top-left-radius: 6px;
    bottom: 0;
    transform: translateY(-2px);
}

.reply-tiny-avatar {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.reply-preview-name {
    font-size: 0.75rem;
    font-weight: 600;
}

.reply-preview-text {
    font-size: 0.75rem;
    color: #b5bac1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
    cursor: pointer;
}
.reply-preview-text:hover { color: white; }


.msg-hover-actions {
    position: absolute;
    top: -10px;
    right: 10px;
    background: #313338;
    border: 1px solid #232428;
    border-radius: 4px;
    display: none;
    padding: 2px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
}

.message.discord-style:hover .msg-hover-actions {
    display: flex;
}

.action-icon-btn {
    background: transparent;
    border: none;
    color: #b5bac1;
    padding: 5px 8px;
    cursor: pointer;
    font-size: 0.9rem;
}
.action-icon-btn:hover { color: #fff; background: rgba(255,255,255,0.1); }




.chroma-red {
    background: linear-gradient(135deg, #ff0000 0%, #500000 50%, #ff0000 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbowAnim 2s linear infinite;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
    font-weight: 900;
}


.magnet-style {
    background: linear-gradient(90deg, #ff0000 0%, #c0c0c0 50%, #ff0000 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbowAnim 3s linear infinite;
    font-weight: 900;
}


.police-style {
    background: linear-gradient(90deg, red 0%, blue 50%, red 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbowAnim 0.5s linear infinite;
    font-weight: 900;
    text-shadow: 2px 0 blue, -2px 0 red;
}


.glitch-style {
    color: white;
    text-shadow: 2px 0 red, -2px 0 cyan;
    animation: glitchAnim 0.3s infinite;
    font-weight: 900;
}

@keyframes glitchAnim {
    0% { transform: translate(0) }
    20% { transform: translate(-2px, 2px) }
    40% { transform: translate(-2px, -2px) }
    60% { transform: translate(2px, 2px) }
    80% { transform: translate(2px, -2px) }
    100% { transform: translate(0) }
}




.nav-btn {
    position: relative;
}






.notification-badge {
    position: absolute;
    top: 0;       
    right: 0;     
    background-color: #ed4245;
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 5px;
    min-width: 18px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
    z-index: 100;
    border: 2px solid #121418;
    transform: translate(30%, -30%);
}


.nav-btn {
    position: relative;
    overflow: visible !important; 
}


.sidebar nav {
    overflow: visible !important;
}




.nav-btn {
    flex-shrink: 0;
}

.message-mentioned {
    background: rgba(250, 166, 26, 0.1);
    border-left: 3px solid #faa61a;
    padding-left: 13px !important;
}

.mention-highlight {
    background: rgba(250, 166, 26, 0.3);
    color: #ffd983;
    padding: 0 4px;
    border-radius: 4px;
    font-weight: bold;
}

@media screen and (max-width: 900px) {
    .sidebar {
        width: 65px;
        padding-top: 15px;
        z-index: 50;
    }

    .nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        margin-bottom: 15px;
        flex-shrink: 0;
    }

    .sidebar nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        height: 100%;
        overflow-y: auto; 
        overflow-x: hidden;
    }

    .content {
        width: calc(100vw - 65px);
    }
}

