:root {
    --bg-color: #000000;
    --card-bg: rgba(24, 24, 27, 0.8);
    --text-primary: #efeff1;
    --text-secondary: #adadb8;
    --accent: #00bfff; /* Deep Sky Blue */
    --accent-hover: #0099cc;
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --accent-rgb: 0, 191, 255;
}

h1, h2, h3, h4 {
    margin: 0 0 1rem 0;
    font-weight: 800;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; letter-spacing: -1px; }
h2 { font-size: 1.8rem; letter-spacing: -0.5px; }
h3 { font-size: 1.2rem; }

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-family);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    margin: 0;
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.main-layout {
    display: flex;
    flex: 1;
}

.sidebar {
    width: 240px;
    background: #0e0e10;
    border-right: 1px solid var(--glass-border);
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    height: calc(100vh - 80px); /* Adjust based on header height */
    position: sticky;
    top: 80px;
}

.main-content {
    flex: 1;
    padding: 2rem;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .main-layout { flex-direction: column; }
    .sidebar { 
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: 85vw;
        max-width: 350px;
        z-index: 3000;
        background: #0e0e10;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-right: 1px solid var(--glass-border);
        box-shadow: 10px 0 30px rgba(0,0,0,0.5);
        height: 100vh;
        display: flex !important;
    }
    .sidebar.active { transform: translateX(0); }
    
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.6);
        backdrop-filter: blur(4px);
        z-index: 2501;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    .sidebar-overlay.active { display: block; opacity: 1; }

    .sidebar-section { padding: 1rem; }
    .sidebar-title { display: block; padding-left: 1rem; margin-bottom: 1rem; }
    .sidebar-item { padding: 0.8rem 1rem; }
    .main-content { padding: 1rem; }
    
    header { padding: 0.5rem 1rem !important; }
    .mobile-menu-btn { display: flex !important; align-items: center; justify-content: center; visibility: visible !important; }
}

@media (max-width: 1024px) {
    .sidebar { width: 60px; }
    .sidebar .sidebar-label, .sidebar .sidebar-meta { display: none; }
    .sidebar .sidebar-item { justify-content: center; padding: 0.5rem; }
}

footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(20px);
    z-index: 2000;
}

.mobile-menu-btn { display: none; }

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    max-height: 160px;
    width: auto;
    transition: transform 0.2s ease;
}

@media (max-width: 480px) {
    .logo img { max-height: 35px; }
}

.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 8px; /* Slightly rounder */
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* --- Premium Slider Toggle (Nexus Switch) --- */
.nexus-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
}

.nexus-switch input { 
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.nexus-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 34px;
    border: 1px solid var(--glass-border);
}

.nexus-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

input:checked + .nexus-slider {
    background-color: var(--accent);
    border-color: var(--accent);
}

input:checked + .nexus-slider:before {
    transform: translateX(22px);
}

.status-offline { background: #444; color: #ccc; }
.status-banned { background: #ff4b4b; color: #fff; }

/* Tabs System */
.tabs { 
    display: flex; 
    gap: 0.5rem; 
    border-bottom: 1px solid rgba(255,255,255,0.05); 
    margin-bottom: 2.5rem; 
    overflow-x: auto; 
    padding-bottom: 5px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}

.tabs::-webkit-scrollbar {
    height: 4px;
}

.tabs::-webkit-scrollbar-track {
    background: transparent;
}

.tabs::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.tabs::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

.tab-btn { 
    background: transparent; 
    color: var(--text-secondary); 
    border: none; 
    padding: 0.7rem 1.2rem; 
    font-size: 0.9rem; 
    font-weight: 700; 
    cursor: pointer; 
    border-bottom: 2px solid transparent; 
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); 
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tab-btn:hover { 
    color: var(--text-primary); 
    background: rgba(255,255,255,0.03);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.tab-btn.active { 
    color: var(--accent); 
    border-bottom-color: var(--accent); 
    background: rgba(var(--accent-rgb), 0.05);
}

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.btn-primary {
    background-color: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.content-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--accent);
}

.card-image {
    width: 100%;
    aspect-ratio: 16/9;
    background: #1f1f23;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.live-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 5;
}

.pulse {
    animation: pulse-red 2s infinite;
    box-shadow: 0 0 0 0 rgba(111, 66, 251, 0.7);
}

@keyframes pulse-red {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(111, 66, 251, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(111, 66, 251, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(111, 66, 251, 0); }
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-image img {
    transition: transform 0.3s ease;
}

.card-content {
    padding: 1rem;
}

.card-title {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.card-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Authentication Forms */
.auth-container {
    max-width: 400px;
    margin: 100px auto;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    background: #050505;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
}

/* Player Styles */
#video-player {
    width: 100%;
    aspect-ratio: 16/9;
    background: black;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.stream-info {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
}

/* Chat Sidebar */
.chat-sidebar {
    width: 320px;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    /* Ensure it has a fixed height that pushes the input to bottom */
    height: 600px; 
    align-self: flex-start;
}

.chat-header {
    padding: 1.2rem;
    font-weight: 700;
    border-bottom: 1px solid var(--glass-border);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.chat-messages {
    flex: 1; /* This will take all available space */
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.chat-message {
    font-size: 0.9rem;
    line-height: 1.4;
    word-break: break-word;
}

.chat-time {
    color: var(--text-secondary);
    font-size: 0.7rem;
    margin-right: 6px;
}

.chat-user {
    font-weight: 700;
    color: var(--accent);
    margin-right: 6px;
}

.chat-input-area {
    padding: 1rem;
    border-top: 1px solid var(--glass-border);
    background: rgba(0,0,0,0.2);
}

.chat-input-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
}

.chat-input-area input {
    flex: 1;
    min-width: 0;
    background: #050505;
    border: 1px solid var(--glass-border);
    padding: 0.6rem;
    border-radius: 6px;
    color: white;
    font-family: inherit;
    font-size: 0.9rem;
}

.chat-messages::-webkit-scrollbar {
    width: 5px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}
/* --- NSFW / Mature Content Shield --- */
.nsfw-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.nsfw-blur {
    filter: blur(40px);
    pointer-events: none;
    user-select: none;
}

.nsfw-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    color: white;
    text-align: center;
    padding: 1rem;
    transition: opacity 0.3s ease;
}

.nsfw-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.nsfw-text {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-nsfw {
    background: white;
    color: black;
    font-size: 0.75rem;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-nsfw:hover {
    background: var(--accent);
    color: white;
    transform: scale(1.05);
}

/* --- Admin Panel Styles --- */
.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 1rem;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.admin-table th, .admin-table td {
    padding: 1.2rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.admin-table th {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

.status-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.status-live {
    background: rgba(255, 75, 75, 0.15);
    color: #ff4b4b;
    border: 1px solid rgba(255, 75, 75, 0.2);
}

.status-offline {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-banned {
    background: rgba(255, 0, 0, 0.2);
    color: #ff4444;
    border: 1px solid rgba(255, 0, 0, 0.2);
}
/* --- Watch Page Grid --- */
.watch-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    align-items: flex-start;
}

@media (max-width: 1100px) {
    .watch-grid {
        grid-template-columns: 1fr;
    }
}

.player-column {
    min-width: 0;
}

/* Sidebar Elements */
.sidebar-section { margin-bottom: 2rem; }
.sidebar-title { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; color: var(--text-secondary); padding: 0 1rem 0.5rem; letter-spacing: 0.5px; }
.sidebar-item { 
    display: flex !important; 
    align-items: center; 
    gap: 10px; 
    padding: 0.5rem 1rem; 
    text-decoration: none !important; 
    color: var(--text-primary) !important; 
    transition: background 0.2s; 
}
.sidebar-item:hover { background: rgba(255, 255, 255, 0.05); text-decoration: none !important; }
.sidebar-avatar { 
    width: 30px !important; 
    height: 30px !important; 
    min-width: 30px;
    min-height: 30px;
    border-radius: 50%; 
    object-fit: cover; 
    flex-shrink: 0;
}
.sidebar-meta { flex: 1; min-width: 0; }
.sidebar-label { font-size: 0.85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.sidebar-sub { font-size: 0.75rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.sidebar-status { font-size: 0.7rem; color: var(--text-secondary); }
.sidebar-live-dot { width: 8px; height: 8px; background: #ff4b4b; border-radius: 50%; box-shadow: 0 0 5px #ff4b4b; }

/* Category Bar */
.category-bar { display: flex; gap: 0.8rem; margin-bottom: 2rem; overflow-x: auto; padding-bottom: 0.5rem; }
.category-tag { background: rgba(255, 255, 255, 0.05); padding: 0.5rem 1rem; border-radius: 20px; font-weight: 600; font-size: 0.85rem; text-decoration: none; color: var(--text-primary); transition: all 0.2s; white-space: nowrap; border: 1px solid transparent; }
.category-tag:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--accent); }
.category-tag.active { background: var(--accent); color: black; }

/* Search System */
.search-container {
    flex: 1;
    max-width: 500px;
    margin: 0 2rem;
}

.search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 10px 18px;
    padding-right: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(191, 148, 255, 0.2);
}

.search-btn {
    position: absolute;
    right: 4px;
    background: var(--accent);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: black;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
    font-size: 0.9rem;
}

.search-btn:hover {
    transform: scale(1.1);
    background: var(--accent-hover);
}
/* Responsive Search */
@media (max-width: 768px) {
    .search-container {
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        margin: 0;
        padding: 0.5rem 1rem;
        background: var(--bg-color);
        z-index: 1000;
        max-width: none;
        display: none; /* Collapsed by default on mobile, triggered by JS if we add a toggle */
    }
    .search-container.active { display: block; }

    header { padding: 0.5rem 1rem; }
    .logo img { max-height: 40px; } 
}

/* Search Suggestions Dropdown */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-top: 10px;
    padding: 0.5rem;
    z-index: 1000;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    display: none;
    overflow: hidden;
}

.suggest-header {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-secondary);
    padding: 10px 12px 5px;
    letter-spacing: 1px;
}

.suggest-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    text-decoration: none;
    color: var(--text-primary);
    border-radius: 8px;
    transition: background 0.2s ease;
    font-size: 0.9rem;
}

.suggest-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent);
}

.suggest-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}
/* --- PROFESSIONAL UI: CONTEXT MENU & DM TASKBAR --- */
.nexus-ctx-menu {
    position: fixed;
    z-index: 10000;
    background: rgba(18, 18, 21, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    padding: 6px;
    min-width: 170px;
    display: none;
    animation: nexusCtxIn 0.15s ease-out;
}

@keyframes nexusCtxIn {
    from { opacity: 0; transform: scale(0.95) translateY(-5px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.nexus-ctx-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}

.nexus-ctx-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent);
}

.nexus-ctx-sep {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 4px 6px;
}

.nexus-dm-taskbar {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    gap: 12px;
    z-index: 9999;
}

.nexus-dm-chip {
    background: rgba(25, 25, 30, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(145, 71, 255, 0.3);
    padding: 10px 20px;
    border-radius: 30px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    position: relative;
}

.nexus-dm-chip.unread {
    border-color: var(--accent);
    animation: nexusGlow 2s infinite;
}

.dm-unread-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4b4b;
    color: white;
    font-size: 0.7rem;
    min-width: 18px;
    height: 18px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #000;
    font-weight: 800;
}

@keyframes nexusGlow {
    0% { box-shadow: 0 0 5px rgba(0, 191, 255, 0.2); }
    50% { box-shadow: 0 0 20px rgba(0, 191, 255, 0.5); }
    100% { box-shadow: 0 0 5px rgba(0, 191, 255, 0.2); }
}

.nexus-dm-window {
    position: fixed;
    bottom: 85px;
    right: 25px;
    width: 320px;
    height: 480px;
    background: rgba(18, 18, 21, 0.95);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    z-index: 9998;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    overflow: hidden;
}

.dm-head {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dm-title {
    font-weight: 800;
    color: var(--accent);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.dm-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dm-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.4;
    position: relative;
}

.dm-msg.received {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border-bottom-left-radius: 2px;
}

.dm-msg.sent {
    align-self: flex-end;
    background: var(--accent);
    color: white;
    border-bottom-right-radius: 2px;
}

.dm-foot {
    padding: 15px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.dm-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
    color: white;
    outline: none;
}

/* --- GUARDIAN LINK CARDS --- */
.guardian-card {
    margin-top: 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 12px;
    font-size: 0.8rem;
    backdrop-filter: blur(10px);
}

.guardian-card.scanning {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
}

.guardian-card.safe {
    border-color: rgba(0, 255, 127, 0.3);
}

.guardian-card.unsafe {
    border-color: rgba(255, 75, 75, 0.4);
    background: rgba(255, 0, 0, 0.05);
}

.guardian-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    margin-bottom: 4px;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

.link-title {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
}

.link-reason {
    color: var(--text-secondary);
    line-height: 1.3;
}
/* --- GUARDIAN INBOX STYLES --- */
.inbox-container {
    display: flex;
    height: calc(100vh - 80px);
    background: rgba(0, 0, 0, 0.2);
    margin: 0;
    overflow: hidden;
    position: relative;
    border-top: 1px solid var(--glass-border);
}

.inbox-sidebar {
    width: 380px;
    background: rgba(10, 10, 12, 0.6);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
}

.sidebar-head {
    padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.sidebar-head h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
}

.sidebar-list {
    flex: 1;
    overflow-y: auto;
}

.inbox-chip {
    display: flex;
    padding: 1.2rem;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
    cursor: pointer;
}

.inbox-chip:hover {
    background: rgba(255, 255, 255, 0.05);
}

.inbox-chip.active {
    background: rgba(0, 191, 255, 0.1);
    border-left: 3px solid var(--accent);
}

.chip-avatar {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.chip-info {
    flex: 1;
    min-width: 0;
}

.chip-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.chip-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.unread-badge {
    background: #ff4b4b;
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.chip-preview {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inbox-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.1);
}

.chat-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0.6;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.chat-head {
    padding: 1.2rem 2rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.chat-title {
    font-size: 1.1rem;
}

.chat-body {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-foot {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.3);
}

#inbox-input {
    width: 100%;
    background: #050505;
    border: 1px solid var(--glass-border);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

#inbox-input:focus {
    border-color: var(--accent);
}

.msg-time {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 4px;
    display: block;
    text-align: right;
}

@media (max-width: 900px) {
    .inbox-sidebar { width: 80px; }
    .chip-info { display: none; }
    .inbox-chip { justify-content: center; padding: 1rem 0; }
    .sidebar-head { text-align: center; }
}

/* --- Inbox Button in Taskbar --- */
.nexus-inbox-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    height: 40px;
    background: rgba(0, 191, 255, 0.2);
    border: 1px solid var(--accent);
    border-radius: 20px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    margin-right: 15px;
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.2);
}

.nexus-inbox-btn:hover {
    background: var(--accent);
    color: black;
    transform: translateY(-2px);
}
