* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --primary: #646cff;
    --primary-dark: #545bdf;
    --secondary: #8b5cf6;
    --dark: #1e1e2e;
    --darker: #171724;
    --dark-light: #252536;
    --gray: #a0a0b0;
    --light: #e2e2e2;
    --success: #64ffa3;
    --warning: #ffa364;
    --danger: #ff6464;
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--darker);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}
.left-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 0 0 auto;
}
.logo {
    display: flex;
    align-items: center;
}
.logo-img {
    height: 35px;
    width: auto;
    cursor: pointer;
    transition: var(--transition);
}
.logo-img:hover {
    filter: brightness(1.3);
    transform: scale(1.3);
}
.nav-links {
    display: flex;
    gap: 2rem;
}
.nav-link {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}
.nav-link:hover {
    color: var(--primary);
}
.nav-link.active {
    color: var(--primary);
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}
.auth-buttons {
    display: flex;
    gap: 1rem;
    margin-left: auto;
    flex: 0 0 auto;
}
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(100, 108, 255, 0.3);
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background: rgba(100, 108, 255, 0.1);
}
.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    position: relative;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: var(--transition);
}
.user-profile:hover {
    background: rgba(100, 108, 255, 0.1);
}
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    flex-shrink: 0;
}
.user-profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--dark-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1000;
}
.user-profile:hover .user-profile-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.dropdown-header-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.dropdown-header-info p {
    font-size: 0.85rem;
    color: var(--gray);
}
.dropdown-menu {
    list-style: none;
    padding: 0.5rem 0;
}
.dropdown-item {
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--light);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}
.dropdown-item:hover {
    background: rgba(100, 108, 255, 0.1);
    color: var(--primary);
}
.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 0.5rem 0;
}
.notification-bell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    height: 10%;
    margin-top: 0.8rem;
    transition: var(--transition);
}
.notification-bell:hover {
    background: rgba(100, 108, 255, 0.1);
}
.notification-badge {
    position: absolute;
    top: 7px;
    right: -2px;
    padding: 0.6rem;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(255, 100, 100, 0.4);
}
.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--dark-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    width: 320px;
    max-height: 400px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1001;
}
.notification-bell:hover .notification-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.notification-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.notification-header h4 {
    font-size: 0.95rem;
    font-weight: 600;
}
.notification-list {
    list-style: none;
    padding: 0.5rem 0;
}
.notification-item {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    cursor: pointer;
}
.notification-item:last-child {
    border-bottom: none;
}
.notification-item:hover {
    background: rgba(100, 108, 255, 0.1);
}
.notification-item.unread {
    background: rgba(100, 108, 255, 0.05);
}
.notification-item.unread:hover {
    background: rgba(100, 108, 255, 0.1);
}
.notification-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--light);
}
.notification-message {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0.25rem;
}
.notification-time {
    font-size: 0.75rem;
    color: var(--gray);
}
.notification-empty {
    padding: 2rem 1.25rem;
    text-align: center;
    color: var(--gray);
}
.notification-actions {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: right;
    align-items: right;
}
.message-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0.5rem;
    height: 10%;
    margin-top: 0.8rem;
    border-radius: 8px;
    transition: var(--transition);
}
.message-icon:hover {
    background: rgba(100, 108, 255, 0.1);
}
.message-badge {
    position: absolute;
    top: 7px;
    right: -2px;
    padding: 0.6rem;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(100, 108, 255, 0.4);
}
.message-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--dark-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    width: 320px;
    max-height: 400px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1001;
}
.message-icon:hover .message-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.message-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.message-list {
    list-style: none;
    padding: 0.5rem 0;
}
.message-item {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    cursor: pointer;
}
.message-item:last-child {
    border-bottom: none;
}
.message-item:hover {
    background: rgba(100, 108, 255, 0.1);
}
.message-item.unread {
    background: rgba(100, 108, 255, 0.05);
}
.message-item.unread:hover {
    background: rgba(100, 108, 255, 0.1);
}
.message-sender {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--light);
}
.message-preview {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.message-time {
    font-size: 0.75rem;
    color: var(--gray);
}
.message-empty {
    padding: 2rem 1.25rem;
    text-align: center;
    color: var(--gray);
}
.message-actions {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.chat-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    height: 10%;
    margin-top: 0.8rem;
    transition: var(--transition);
}
.chat-icon:hover {
    background: rgba(100, 108, 255, 0.1);
}
.chat-badge {
    position: absolute;
    top: 7px;
    right: -2px;
    padding: 0.6rem;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(100, 108, 255, 0.4);
}
.copyright {
    text-align: center;
    padding: 2rem 0 0;
    color: var(--gray);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 3rem;
}
.chat-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: var(--dark-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.chat-container.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}
.chat-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--dark);
    border-radius: 12px 12px 0 0;
}
.chat-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.chat-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}
.chat-tab.active {
    border-bottom-color: var(--primary);
    color: var(--primary);
}
.chat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.friends-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
}
.friend-item {
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    animation: fadeInUp 0.4s ease-out;
}
.friend-item:hover {
    background: rgba(100, 108, 255, 0.1);
}
.friend-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    flex-shrink: 0;
}
.friend-info {
    flex: 1;
    min-width: 0;
}
.friend-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--light);
}
.friend-status {
    font-size: 0.8rem;
    color: var(--gray);
}
.status-online {
    color: var(--success);
}
.status-offline {
    color: var(--gray);
}
.chat-window {
    flex: 1;
    display: none;
    flex-direction: column;
}
.chat-window.active {
    display: flex;
}
.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.message-bubble {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    position: relative;
    animation: messageSlideIn 0.3s ease-out;
}
.message-sent {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-bottom-right-radius: 4px;
}
.message-received {
    align-self: flex-start;
    background: var(--dark);
    color: var(--light);
    border-bottom-left-radius: 4px;
}
.message-time {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 0.25rem;
}
.chat-input-container {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 0.5rem;
}
.chat-input {
    flex: 1;
    padding: 0.75rem;
    background: var(--dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--light);
    font-family: inherit;
    resize: none;
    max-height: 100px;
}
.chat-input:focus {
    outline: none;
    border-color: var(--primary);
}
.chat-send-btn {
    padding: 0.75rem 1rem;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}
.chat-send-btn:hover {
    background: var(--primary-dark);
}
.no-friends {
    padding: 2rem 1.25rem;
    text-align: center;
    color: var(--gray);
}
.chat-back-btn {
    background: none;
    border: none;
    color: var(--light);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: var(--transition);
}
.chat-back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    backdrop-filter: blur(5px);
}
.modal {
    background: var(--dark-light);
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--darker);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-title {
    font-size: 1.25rem;
    color: var(--light);
}
.close-btn {
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    font-size: 1.25rem;
    transition: var(--transition);
}
.close-btn:hover {
    color: var(--light);
}
.modal-body {
    padding: 1.5rem;
}
.message-view {
    background: var(--dark-light);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
}
.message-view-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}
.message-view-subject {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--light);
    text-decoration: underline;
}
.message-view-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--gray);
    font-size: 0.9rem;
}
.message-view-sender {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.message-view-body {
    line-height: 1.6;
    color: var(--light);
}