/* --- SIDECHAT: 15 Commercial Themes --- */

/* 1. Theme Light (Classic) */
body.theme-light { --primary: #4318FF; --secondary: #05CD99; --bg-base: #F4F7FE; --bg-surface: rgba(255, 255, 255, 0.7); --border: rgba(0, 0, 0, 0.05); --text-main: #1B254B; --text-muted: #A3AED0; --accent-red: #FF6B6B; --blur: blur(20px); }

/* 2. Theme Dark (Default) */
body.theme-dark { --primary: #7048E8; --secondary: #05CD99; --bg-base: #0B0E14; --bg-surface: rgba(20, 24, 33, 0.6); --border: rgba(255, 255, 255, 0.05); --text-main: #FFFFFF; --text-muted: #8F9BBA; --accent-red: #FF5252; --blur: blur(20px); }

/* 3. Midnight Neon */
body.theme-midnight-neon { --primary: #FF00FF; --secondary: #00FFFF; --bg-base: #090014; --bg-surface: rgba(25, 0, 40, 0.7); --border: rgba(255, 0, 255, 0.2); --text-main: #FFFFFF; --text-muted: #B388FF; --accent-red: #FF1744; --blur: blur(15px); }

/* 4. Slack Classic */
body.theme-slack-classic { --primary: #4A154B; --secondary: #2BAC76; --bg-base: #FFFFFF; --bg-surface: rgba(248, 248, 250, 0.9); --border: rgba(0, 0, 0, 0.1); --text-main: #1D1C1D; --text-muted: #616061; --accent-red: #E01E5A; --blur: blur(10px); }

/* 5. Solarized Dark */
body.theme-solarized-dark { --primary: #268BD2; --secondary: #2AA198; --bg-base: #002B36; --bg-surface: rgba(7, 54, 66, 0.8); --border: rgba(88, 110, 117, 0.3); --text-main: #839496; --text-muted: #586E75; --accent-red: #DC322F; --blur: blur(12px); }

/* 6. Ocean Depth */
body.theme-ocean { --primary: #00B4D8; --secondary: #48CAE4; --bg-base: #03045E; --bg-surface: rgba(2, 62, 138, 0.6); --border: rgba(255, 255, 255, 0.1); --text-main: #CAF0F8; --text-muted: #90E0EF; --accent-red: #FF4D6D; --blur: blur(25px); }

/* 7. Emerald Forest */
body.theme-forest { --primary: #2D6A4F; --secondary: #52B788; --bg-base: #081C15; --bg-surface: rgba(27, 67, 50, 0.7); --border: rgba(116, 198, 157, 0.2); --text-main: #D8F3DC; --text-muted: #95D5B2; --accent-red: #E63946; --blur: blur(15px); }

/* 8. Monochrome Executive */
body.theme-monochrome { --primary: #000000; --secondary: #404040; --bg-base: #FFFFFF; --bg-surface: rgba(245, 245, 245, 0.8); --border: rgba(0, 0, 0, 0.1); --text-main: #111111; --text-muted: #666666; --accent-red: #000000; --blur: blur(10px); }

/* 9. Cyberpunk 2077 */
body.theme-cyberpunk { --primary: #F3E600; --secondary: #00F0FF; --bg-base: #111111; --bg-surface: rgba(34, 34, 34, 0.8); --border: rgba(243, 230, 0, 0.3); --text-main: #F3E600; --text-muted: #FF003C; --accent-red: #FF003C; --blur: blur(5px); }

/* 10. Dracula */
body.theme-dracula { --primary: #FF79C6; --secondary: #50FA7B; --bg-base: #282A36; --bg-surface: rgba(68, 71, 90, 0.6); --border: rgba(98, 114, 164, 0.3); --text-main: #F8F8F2; --text-muted: #6272A4; --accent-red: #FF5555; --blur: blur(18px); }

/* 11. Nord Arctic */
body.theme-nord { --primary: #88C0D0; --secondary: #A3BE8C; --bg-base: #2E3440; --bg-surface: rgba(59, 66, 82, 0.7); --border: rgba(76, 86, 106, 0.4); --text-main: #ECEFF4; --text-muted: #D8DEE9; --accent-red: #BF616A; --blur: blur(20px); }

/* 12. Sunset Peach */
body.theme-sunset { --primary: #FF9A9E; --secondary: #FECFEF; --bg-base: #2B1836; --bg-surface: rgba(63, 31, 71, 0.7); --border: rgba(255, 154, 158, 0.2); --text-main: #FFFFFF; --text-muted: #FFC3A0; --accent-red: #FF6A88; --blur: blur(22px); }

/* 13. Terminal Hacker */
body.theme-hacker { --primary: #00FF00; --secondary: #008800; --bg-base: #000000; --bg-surface: rgba(0, 20, 0, 0.8); --border: rgba(0, 255, 0, 0.3); --text-main: #00FF00; --text-muted: #005500; --accent-red: #00FF00; --blur: blur(0px); }

/* 14. Royal Gold */
body.theme-royal { --primary: #D4AF37; --secondary: #FFD700; --bg-base: #1A0B2E; --bg-surface: rgba(43, 20, 74, 0.7); --border: rgba(212, 175, 55, 0.2); --text-main: #FFFFFF; --text-muted: #9D84B7; --accent-red: #E63946; --blur: blur(25px); }

/* 15. Discord Blurple */
body.theme-discord { --primary: #5865F2; --secondary: #57F287; --bg-base: #36393F; --bg-surface: rgba(47, 49, 54, 0.9); --border: rgba(32, 34, 37, 0.5); --text-main: #FFFFFF; --text-muted: #B9BBBE; --accent-red: #ED4245; --blur: blur(8px); }


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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    height: 100vh;
    overflow: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
    /* Subtle glowing orbs in background */
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(67, 24, 255, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(5, 205, 153, 0.08), transparent 25%);
}

.app-container {
    display: flex;
    height: 100%;
    width: 100%;
    position: relative;
}

/* Glassmorphism utility */
.glass {
    background: var(--bg-surface);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--border);
}

/* Sidebar */
.sidebar {
    width: 280px;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--bg-surface);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-right: 1px solid var(--border);
    transition: all 0.3s ease;
    z-index: 10;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), #8B5CF6);
    box-shadow: 0 4px 15px rgba(67, 24, 255, 0.3);
}

.logo h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--text-main), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 20px 12px;
}

.nav-section {
    margin-bottom: 24px;
}

.nav-section h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
    padding-left: 8px;
    font-weight: 600;
}

.nav-list {
    list-style: none;
}

.nav-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.2s ease;
    margin-bottom: 2px;
}

.nav-list li:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    transform: translateX(4px);
}

.nav-list li.active {
    background: linear-gradient(90deg, rgba(67, 24, 255, 0.1), transparent);
    color: var(--primary);
    font-weight: 600;
    border-left: 3px solid var(--primary);
    border-radius: 0 12px 12px 0;
}

.hash {
    font-size: 1.2rem;
    opacity: 0.5;
}

.avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #A3AED0, #8F9BBA);
    position: relative;
}

.status-online::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border: 2px solid var(--bg-base);
    border-radius: 50%;
}

.status-offline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: var(--text-muted);
    border: 2px solid var(--bg-base);
    border-radius: 50%;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-profile .avatar {
    width: 36px;
    height: 36px;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.user-status {
    font-size: 0.75rem;
    color: var(--secondary);
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    transform: scale(1.05);
}

/* Chat Area */
.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.chat-header {
    padding: 20px 30px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-surface);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    z-index: 5;
}

.channel-info h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.channel-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.btn {
    padding: 10px 20px;
    border-radius: 12px;
    border: none;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #8B5CF6);
    color: white;
    box-shadow: 0 4px 15px rgba(67, 24, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 24, 255, 0.4);
}

.btn-primary:active {
    transform: translateY(1px);
}

.messages-container {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.message {
    display: flex;
    gap: 16px;
    animation: slideUp 0.4s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.message-content {
    flex: 1;
}

.message-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 4px;
}

.message-author {
    font-weight: 600;
    color: var(--text-main);
}

.message-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.message-bubble {
    display: inline-block;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 0 16px 16px 16px;
    color: var(--text-main);
    line-height: 1.5;
    font-size: 0.95rem;
}

.message.self {
    flex-direction: row-reverse;
}

.message.self .message-header {
    flex-direction: row-reverse;
}

.message.self .message-bubble {
    background: linear-gradient(135deg, var(--primary), #8B5CF6);
    color: white;
    border-radius: 16px 0 16px 16px;
    border: none;
    box-shadow: 0 4px 15px rgba(67, 24, 255, 0.2);
}

.input-area {
    padding: 20px 30px;
    background: linear-gradient(to top, var(--bg-base) 80%, transparent);
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-surface);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 8px 16px;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(67, 24, 255, 0.1);
}

#message-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    padding: 12px 0;
    outline: none;
}

#message-input::placeholder {
    color: var(--text-muted);
}

.ai-btn {
    color: var(--primary);
    background: rgba(67, 24, 255, 0.1);
}

/* Call Overlay (Glassmorphism) */
.call-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 14, 20, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.call-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.call-window {
    width: 90%;
    max-width: 1000px;
    height: 85%;
    background: rgba(20, 24, 33, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.call-overlay.active .call-window {
    transform: scale(1);
}

.call-header {
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.call-header h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: white;
}

.video-grid {
    flex: 1;
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    overflow-y: auto;
}

.video-tile {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.video-tile.active-speaker {
    border-color: var(--secondary);
    box-shadow: 0 0 20px rgba(5, 205, 153, 0.2);
}

.video-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: white;
}

.participant-name {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: white;
}

.call-controls {
    padding: 20px;
    display: flex;
    justify-content: center;
    gap: 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
}

.control-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.control-btn.active {
    background: var(--text-main);
    color: var(--bg-base);
}

.control-btn.end-call {
    background: var(--accent-red);
}

.control-btn.end-call:hover {
    background: #FF5252;
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.5);
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Theme Selector Dropdown */
.theme-selector-container {
    position: relative;
}

.theme-dropdown {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 220px;
    background: var(--bg-surface);
    backdrop-filter: blur(25px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 300px;
    overflow-y: auto;
}

.theme-dropdown.hidden {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    pointer-events: none;
}

.theme-dropdown h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    padding-left: 8px;
}

.theme-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.theme-option {
    background: transparent;
    border: none;
    color: var(--text-main);
    text-align: left;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s ease, transform 0.1s ease;
}

.theme-option:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

/* Auth Lock Screen */
.auth-lock-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-base);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.auth-lock-overlay.hidden {
    display: none;
}

.auth-card {
    background: var(--bg-surface);
    backdrop-filter: blur(25px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.auth-card h2 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    margin-bottom: 12px;
}

.auth-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.auth-card input {
    width: 100%;
    padding: 14px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    margin-bottom: 20px;
}

.auth-card .primary-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.auth-card .primary-btn:hover {
    background: var(--secondary);
}

.auth-error {
    color: var(--accent-red);
    font-size: 0.85rem;
    margin-top: 12px;
    display: block;
}

.auth-error.hidden {
    display: none;
}

/* Context Menu */
.context-menu {
    position: absolute;
    background: var(--bg-surface);
    backdrop-filter: blur(25px);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px 0;
    min-width: 160px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.1s ease, transform 0.1s ease;
}

.context-menu.hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

.context-menu-item {
    padding: 10px 16px;
    font-size: 0.9rem;
    color: var(--text-main);
    cursor: pointer;
    transition: background 0.2s ease;
}

.context-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.context-menu-item.delete {
    color: var(--accent-red);
}

.context-menu-item.delete:hover {
    background: rgba(255, 82, 82, 0.1);
}

/* Message Metadata (Context & Notes) */
.message-edited {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-style: italic;
    margin-left: 6px;
}

.message-meta {
    margin-top: 6px;
    font-size: 0.8rem;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.message-context, .message-notes {
    margin-top: 4px;
}

.meta-label {
    font-weight: 600;
    color: var(--primary);
    margin-right: 4px;
}

/* ══════════════════════════════════════════════
   NAV SECTION HEADER + ADD BUTTON
══════════════════════════════════════════════ */
.nav-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px 8px;
}
.nav-section-header h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 600;
    margin: 0;
    padding: 0;
}
.add-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 22px;
    height: 22px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.add-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: scale(1.1);
}
.channel-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.channel-color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}
.nav-list li .ch-color-strip {
    width: 4px;
    height: 20px;
    border-radius: 4px;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════
   MODAL SYSTEM
══════════════════════════════════════════════ */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.15s ease;
}
.modal-overlay.hidden { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
    background: var(--bg-surface);
    backdrop-filter: blur(30px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
    animation: modalPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes modalPop { from { opacity:0; transform: scale(0.9) translateY(20px); } to { opacity:1; transform: scale(1) translateY(0); } }
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.modal-header h3 { font-family: 'Outfit', sans-serif; font-size: 1.2rem; font-weight: 700; }
.modal-card label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
    margin-top: 14px;
}
.modal-input {
    width: 100%;
    padding: 12px 14px;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.modal-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(112,72,232,0.15); }
.modal-input::placeholder { color: var(--text-muted); }
.modal-select {
    width: 100%;
    padding: 12px 14px;
    background: rgba(0,0,0,0.25);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    cursor: pointer;
}
.modal-select option { background: #1a1a2e; }
.modal-feedback { margin-top: 12px; font-size: 0.85rem; color: var(--secondary); min-height: 18px; }
.modal-error { margin-top: 10px; font-size: 0.85rem; color: var(--accent-red); background: rgba(255,82,82,0.08); padding: 8px 12px; border-radius: 8px; }
.modal-error.hidden { display: none; }
.modal-warning {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(255,82,82,0.06);
    border: 1px solid rgba(255,82,82,0.2);
    border-radius: 10px;
}
.modal-warning strong { color: var(--accent-red); }
.modal-warning code { background: rgba(255,82,82,0.15); padding: 2px 6px; border-radius: 4px; font-family: monospace; color: var(--accent-red); }
.btn-danger {
    background: linear-gradient(135deg, #FF5252, #FF1744);
    color: white;
    box-shadow: 0 4px 15px rgba(255,82,82,0.3);
    padding: 10px 20px;
    border-radius: 12px;
    border: none;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-danger:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,82,82,0.5); }
.btn-danger:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* ══════════════════════════════════════════════
   COLOR SWATCH GRID
══════════════════════════════════════════════ */
.color-swatch-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.color-swatch {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid transparent;
}
.color-swatch:hover { transform: scale(1.2); }
.color-swatch.selected { border-color: white; box-shadow: 0 0 0 3px rgba(255,255,255,0.4), 0 4px 12px rgba(0,0,0,0.4); transform: scale(1.15); }

/* ══════════════════════════════════════════════
   DM USER LIST
══════════════════════════════════════════════ */
.dm-user-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-muted);
    list-style: none;
}
.dm-user-item:hover { background: rgba(255,255,255,0.05); color: var(--text-main); transform: translateX(4px); }
.dm-user-item.active { background: rgba(112,72,232,0.1); color: var(--primary); font-weight: 600; }
.dm-user-item .dm-name { font-size: 0.9rem; font-weight: 500; }
.dm-role-badge { font-size: 0.65rem; padding: 2px 6px; border-radius: 10px; margin-left: auto; }
.dm-role-badge.admin { background: rgba(212,175,55,0.15); color: #D4AF37; }
.dm-role-badge.user { background: rgba(5,205,153,0.1); color: var(--secondary); }
#dm-message-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    padding: 12px 0;
    outline: none;
}
#dm-message-input::placeholder { color: var(--text-muted); }

/* ══════════════════════════════════════════════
   AUTH ENHANCEMENTS
══════════════════════════════════════════════ */
.auth-logo { display: flex; justify-content: center; margin-bottom: 16px; }
.auth-logo .logo-icon { width: 48px; height: 48px; border-radius: 14px; }
.auth-card h2 { font-size: 2rem; font-weight: 800; letter-spacing: -1px; }
.ctx-item {
    padding: 10px 16px;
    font-size: 0.9rem;
    color: var(--text-main);
    cursor: pointer;
    transition: background 0.15s ease;
    border-radius: 6px;
    margin: 2px 4px;
}
.ctx-item:hover { background: rgba(255,255,255,0.08); }
.ctx-separator { height: 1px; background: var(--border); margin: 4px 12px; }

/* ══════════════════════════════════════════════
   SCROLLBARS
══════════════════════════════════════════════ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
