:root {
    --bg-dark: #0a0a1a;
    --bg-panel: rgba(26, 26, 62, 0.7);
    --bg-panel-solid: #12122e;
    --primary: #6c5ce7;
    --primary-gradient: linear-gradient(135deg, #6c5ce7, #a855f7);
    --accent: #00d2ff;
    --text-main: #ffffff;
    --text-muted: #a0a0c0;
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-bg-hover: rgba(255, 255, 255, 0.1);
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --seen: #3b82f6;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* ============================================ */
/* LIGHT MODE                                   */
/* ============================================ */
body.light-mode {
    --bg-dark: #f0f2f8;
    --bg-panel: rgba(255, 255, 255, 0.85);
    --bg-panel-solid: #ffffff;
    --text-main: #1a1a2e;
    --text-muted: #5a5a8a;
    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-bg-hover: rgba(255, 255, 255, 0.9);
}

body.light-mode {
    background-color: var(--bg-dark);
    color: var(--text-main);
}

body.light-mode .animated-bg .bg-orb {
    opacity: 0.3;
}

body.light-mode .glass-card,
body.light-mode .glass-panel,
body.light-mode .sidebar,
body.light-mode .chat-area,
body.light-mode .chat-header,
body.light-mode .message-input-area,
body.light-mode .modal-card {
    background: var(--bg-panel);
    border-color: var(--glass-border);
    color: var(--text-main);
}

body.light-mode .contact-item:hover,
body.light-mode .contact-item.active {
    background: rgba(108, 92, 231, 0.12);
}

body.light-mode .contact-name,
body.light-mode .chat-contact-name,
body.light-mode h2, body.light-mode h3, body.light-mode h4 {
    color: var(--text-main);
}

body.light-mode .contact-preview,
body.light-mode .contact-time,
body.light-mode .message-time {
    color: var(--text-muted);
}

body.light-mode input,
body.light-mode .glass-input,
body.light-mode #message-input,
body.light-mode .input-wrapper input {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.12);
    color: var(--text-main);
}

body.light-mode .msg-bubble.received {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-main);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-mode .icon-btn {
    color: var(--text-main);
}

body.light-mode .icon-btn:hover {
    background: rgba(108, 92, 231, 0.15);
}

body.light-mode .theme-panel,
body.light-mode .theme-header h3 {
    color: var(--text-main);
}

body.light-mode .preset-btn {
    color: #fff;
}

body.light-mode .color-picker-group label {
    color: var(--text-muted);
}

body.light-mode .empty-state p {
    color: var(--text-muted);
}

body.light-mode ::-webkit-scrollbar-thumb {
    background: rgba(108, 92, 231, 0.2);
}

/* ============================================ */
/* RESET & BASE                                 */
/* ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

::selection {
    background: rgba(108, 92, 231, 0.4);
    color: #fff;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow: hidden;
    height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--accent);
    transition: color 0.2s ease;
}

a:hover {
    color: #33ddff;
}

/* ============================================ */
/* SCROLLBAR                                    */
/* ============================================ */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(108, 92, 231, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(108, 92, 231, 0.5);
}

/* ============================================ */
/* GLASSMORPHISM UTILITIES                      */
/* ============================================ */
.glass-panel, .glass-card {
    background: var(--bg-panel);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
}

.glass-card {
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255,255,255,0.05);
}

/* ============================================ */
/* BACKGROUND ANIMATION                         */
/* ============================================ */
.animated-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: floatOrb 20s infinite ease-in-out alternate;
}

.bg-orb-1 {
    width: 400px; height: 400px;
    background: #6c5ce7;
    top: -100px; left: -100px;
}

.bg-orb-2 {
    width: 300px; height: 300px;
    background: #00d2ff;
    bottom: -50px; right: -50px;
    animation-delay: -5s;
}

.bg-orb-3 {
    width: 250px; height: 250px;
    background: #a855f7;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 25s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.05); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* ============================================ */
/* VIEWS                                        */
/* ============================================ */
.view {
    display: none;
    height: 100vh;
    width: 100vw;
}

.view.active {
    display: flex;
    animation: viewFadeIn 0.5s ease;
}

@keyframes viewFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================ */
/* AUTH VIEW                                    */
/* ============================================ */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    animation: authSlideUp 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.logo-icon {
    width: 80px; height: 80px;
    margin: 0 auto 16px;
    animation: logoPulse 2s infinite ease-in-out alternate;
}

@keyframes logoPulse {
    from { transform: scale(1); filter: drop-shadow(0 0 10px rgba(108, 92, 231, 0.3)); }
    to { transform: scale(1.05); filter: drop-shadow(0 0 20px rgba(108, 92, 231, 0.5)); }
}

.logo-text {
    font-size: 32px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 4px;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeSlideIn 0.4s ease;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-error {
    display: none;
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    color: #fca5a5;
    font-size: 14px;
    text-align: center;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ============================================ */
/* FORM ELEMENTS                                */
/* ============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

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

.input-icon {
    position: absolute;
    right: 16px;
    width: 20px; height: 20px;
    color: var(--text-muted);
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 44px 14px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 15px;
    transition: all 0.3s ease;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(108, 92, 231, 0.08);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.input-wrapper input::placeholder {
    color: rgba(160, 160, 192, 0.6);
}

.glass-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 15px;
    transition: all 0.3s ease;
}

.glass-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(108, 92, 231, 0.08);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.glass-input[readonly] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================ */
/* BUTTONS                                      */
/* ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: 14px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn:hover::after {
    opacity: 1;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(108, 92, 231, 0.5);
    transform: translateY(-2px);
}

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

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    box-shadow: 0 6px 25px rgba(239, 68, 68, 0.5);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

.btn svg {
    width: 20px; height: 20px;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    width: 40px; height: 40px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.icon-btn:hover {
    background: var(--glass-bg-hover);
    color: var(--text-main);
    transform: scale(1.05);
}

.icon-btn svg {
    width: 20px; height: 20px;
}

.auth-switch {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

.auth-switch a {
    color: var(--accent);
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* ============================================ */
/* AVATAR                                       */
/* ============================================ */
.user-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    user-select: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.user-avatar.small {
    width: 42px; height: 42px;
    font-size: 16px;
}

.avatar-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.avatar-option {
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 2.5px solid transparent;
}

.avatar-option:hover {
    transform: scale(1.15);
}

.avatar-option.selected {
    border-color: white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    transform: scale(1.15);
}

/* ============================================ */
/* APP LAYOUT                                   */
/* ============================================ */
.app-container {
    display: flex;
    width: 100%;
    height: 100%;
}

/* ============================================ */
/* SIDEBAR                                      */
/* ============================================ */
.sidebar {
    width: 360px;
    min-width: 360px;
    height: 100%;
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    background: var(--bg-panel);
}

.sidebar-header {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    gap: 12px;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.user-info {
    min-width: 0;
}

.user-info h3 {
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-status {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.user-status.online::before {
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--success);
    display: inline-block;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.sidebar-actions {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
}

/* Sidebar Search */
.sidebar-search {
    padding: 12px 16px;
}

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

.search-icon {
    position: absolute;
    right: 14px;
    width: 18px; height: 18px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-wrapper input {
    width: 100%;
    padding: 10px 40px 10px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(108, 92, 231, 0.08);
}

.search-wrapper input::placeholder {
    color: rgba(160, 160, 192, 0.5);
}

/* Sidebar Tabs */
.sidebar-tabs {
    display: flex;
    padding: 8px 16px;
    gap: 8px;
    border-bottom: 1px solid var(--glass-border);
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: var(--primary-gradient);
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.tab-btn:hover {
    background: var(--glass-bg);
    color: var(--text-main);
}

.tab-btn.active {
    background: rgba(108, 92, 231, 0.15);
    color: #a78bfa;
}

.tab-btn.active::after {
    transform: translateX(-50%) scaleX(1);
}

.tab-btn svg {
    width: 18px; height: 18px;
}

/* Contact List */
.contact-list, .call-history {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 14px;
    position: relative;
}

.contact-item:hover {
    background: var(--glass-bg-hover);
}

.contact-item.active {
    background: rgba(108, 92, 231, 0.12);
    border: 1px solid rgba(108, 92, 231, 0.2);
}

.contact-info {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.contact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    gap: 8px;
}

.contact-name {
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-time {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.contact-last-message {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.unread-badge {
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    min-width: 22px; height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.4);
}

/* Call History Items */
.call-history-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    gap: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.call-history-item:hover {
    background: var(--glass-bg-hover);
}

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

.call-history-name {
    font-weight: 600;
    font-size: 15px;
}

.call-history-detail {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.call-history-detail svg {
    width: 14px; height: 14px;
}

.call-history-detail.missed {
    color: var(--danger);
}

.call-history-detail.incoming {
    color: var(--success);
}

.call-history-time {
    font-size: 12px;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* ============================================ */
/* CHAT AREA                                    */
/* ============================================ */
.chat-area {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.chat-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-muted);
    padding: 40px;
    gap: 16px;
}

.empty-icon {
    width: 120px; height: 120px;
    animation: emptyFloat 3s infinite ease-in-out alternate;
}

@keyframes emptyFloat {
    from { transform: translateY(0); }
    to { transform: translateY(-10px); }
}

.chat-empty h2 {
    font-size: 24px;
    color: var(--text-main);
}

.chat-empty p {
    font-size: 15px;
    max-width: 300px;
}

/* Active Chat */
.active-chat {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Chat Header */
.chat-header {
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    gap: 12px;
    z-index: 5;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
    cursor: pointer;
}

.header-text {
    min-width: 0;
}

.header-text h3 {
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-status {
    font-size: 12px;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 4px;
}

.contact-status::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--success);
    display: inline-block;
}

.chat-header-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.mobile-back {
    display: none;
}

/* Messages Container */
.messages-container {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.messages-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Messages */
.message {
    max-width: 70%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    animation: msgAppear 0.3s ease;
}

@keyframes msgAppear {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message.sent {
    align-self: flex-start;
}

.message.received {
    align-self: flex-end;
}

.message-bubble {
    padding: 12px 16px;
    border-radius: 20px;
    font-size: 15px;
    line-height: 1.6;
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.message.sent .message-bubble {
    background: var(--primary-gradient);
    border-bottom-right-radius: 6px;
    box-shadow: 0 2px 10px rgba(108, 92, 231, 0.3);
}

.message.received .message-bubble {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    border-bottom-left-radius: 6px;
}

.message-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
    padding: 0 4px;
}

.message.sent .message-meta {
    justify-content: flex-end;
}

.message-status {
    font-size: 14px;
}

.status-sent { color: var(--text-muted); }
.status-delivered { color: var(--text-muted); }
.status-seen { color: var(--seen); }

/* Message Reactions */
.message-reactions {
    display: flex;
    gap: 4px;
    margin-top: 6px;
    font-size: 16px;
}

/* Message Images */
.message-bubble img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 12px;
    margin-top: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.2s ease;
    display: block;
}

.message-bubble img:hover {
    transform: scale(1.02);
}

.message-bubble audio {
    max-width: 100%;
    margin-top: 6px;
    border-radius: 20px;
    filter: invert(1) hue-rotate(180deg);
}

/* ============================================ */
/* MESSAGE INPUT AREA                           */
/* ============================================ */
.message-input-area {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid var(--glass-border);
}

.input-container {
    flex: 1;
}

.input-container input {
    width: 100%;
    padding: 12px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 15px;
    transition: all 0.3s ease;
}

.input-container input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(108, 92, 231, 0.08);
}

.input-container input::placeholder {
    color: rgba(160, 160, 192, 0.5);
}

.send-btn {
    background: var(--primary-gradient) !important;
    color: white !important;
    box-shadow: 0 2px 10px rgba(108, 92, 231, 0.4);
}

.send-btn:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.5) !important;
}

.mic-btn:hover {
    color: #e91e63 !important;
}

/* ============================================ */
/* TYPING INDICATOR                             */
/* ============================================ */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
}

.typing-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    background: var(--primary-gradient);
    flex-shrink: 0;
}

.typing-bubble {
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    border-bottom-left-radius: 6px;
}

.typing-dots {
    display: flex;
    gap: 5px;
    align-items: center;
}

.typing-dots span {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: typingBounce 1.4s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

/* ============================================ */
/* VOICE RECORDING UI                           */
/* ============================================ */
.voice-recording {
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(233, 30, 99, 0.08);
    border-top: 1px solid rgba(233, 30, 99, 0.2);
    animation: recSlideUp 0.3s ease;
}

@keyframes recSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.recording-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.recording-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #e91e63;
}

.rec-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: #e91e63;
    animation: recPulse 1s infinite;
}

@keyframes recPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.recording-waveform {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 30px;
}

.recording-actions {
    display: flex;
    gap: 8px;
}

.cancel-rec:hover {
    color: var(--danger) !important;
}

.send-rec {
    background: #e91e63 !important;
    color: white !important;
    border-radius: 50% !important;
}

/* ============================================ */
/* EMOJI PICKER                                 */
/* ============================================ */
.emoji-picker {
    position: absolute;
    bottom: 80px;
    left: 16px;
    width: 320px;
    max-height: 360px;
    border-radius: 20px;
    padding: 12px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: emojiSlideUp 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

@keyframes emojiSlideUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.emoji-search input {
    width: 100%;
    padding: 8px 14px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 14px;
}

.emoji-search input:focus {
    outline: none;
    border-color: var(--primary);
}

.emoji-categories {
    display: flex;
    gap: 4px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--glass-border);
}

.emoji-cat-btn {
    flex: 1;
    padding: 6px;
    background: transparent;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.emoji-cat-btn:hover {
    background: var(--glass-bg);
    transform: scale(1.15);
}

.emoji-cat-btn.active {
    background: rgba(108, 92, 231, 0.2);
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    overflow-y: auto;
    max-height: 230px;
    padding: 4px 0;
}

.emoji-grid button {
    width: 100%;
    aspect-ratio: 1;
    background: transparent;
    border: none;
    border-radius: 10px;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.emoji-grid button:hover {
    background: var(--glass-bg-hover);
    transform: scale(1.2);
}

/* ============================================ */
/* REACTION PICKER                              */
/* ============================================ */
.reaction-picker {
    position: absolute;
    background: var(--bg-panel);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 6px 10px;
    display: flex;
    gap: 4px;
    z-index: 50;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    animation: reactionPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes reactionPop {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

.reaction-btn {
    width: 36px; height: 36px;
    background: transparent;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.reaction-btn:hover {
    background: var(--glass-bg-hover);
    transform: scale(1.3);
}

/* ============================================ */
/* OVERLAYS & MODALS                            */
/* ============================================ */
.overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100;
    justify-content: center;
    align-items: center;
    animation: overlayFadeIn 0.3s ease;
}

@keyframes overlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-card {
    width: 90%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.05);
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-header h2 {
    font-size: 22px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ============================================ */
/* PROFILE MODAL                                */
/* ============================================ */
.profile-avatar-large {
    width: 100px; height: 100px;
    border-radius: 50%;
    background: var(--primary-gradient);
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    box-shadow: 0 8px 30px rgba(108, 92, 231, 0.4), 0 0 0 3px rgba(255,255,255,0.1);
    user-select: none;
}

/* ============================================ */
/* ADD FRIEND RESULT                            */
/* ============================================ */
.add-friend-result {
    padding: 16px;
    background: var(--glass-bg);
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    margin-top: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    animation: fadeSlideIn 0.3s ease;
}

/* ============================================ */
/* THEME PANEL                                  */
/* ============================================ */
.theme-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    height: 100%;
    z-index: 90;
    padding: 0;
    border-left: 1px solid var(--glass-border);
    border-radius: 0;
    overflow-y: auto;
    animation: themePanelSlide 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
    background: var(--bg-panel-solid) !important;
    backdrop-filter: blur(30px);
}

@keyframes themePanelSlide {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.theme-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
}

.theme-header h3 {
    font-size: 18px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.theme-presets, .theme-custom {
    padding: 20px;
}

.theme-presets h4, .theme-custom h4 {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.preset-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.preset-btn {
    padding: 16px 12px;
    border: 2px solid transparent;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.preset-btn span {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.preset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.preset-btn.active {
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 20px rgba(255,255,255,0.15);
}

.color-picker-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 10px 14px;
    background: var(--glass-bg);
    border-radius: 14px;
    border: 1px solid var(--glass-border);
}

.color-picker-group label {
    font-size: 14px;
    color: var(--text-muted);
}

.color-input {
    width: 40px; height: 40px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    background: transparent;
    padding: 0;
}

.color-input::-webkit-color-swatch-wrapper {
    padding: 2px;
}

.color-input::-webkit-color-swatch {
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%;
}

/* ============================================ */
/* CALL SCREEN                                  */
/* ============================================ */
.call-screen {
    flex-direction: column;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a103c 50%, #0a0a1a 100%) !important;
}

.call-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.call-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
}

.call-bg-orb-1 {
    width: 400px; height: 400px;
    background: #6c5ce7;
    top: -100px; left: -100px;
    animation: callOrbFloat 8s infinite ease-in-out alternate;
}

.call-bg-orb-2 {
    width: 350px; height: 350px;
    background: #00d2ff;
    bottom: -100px; right: -100px;
    animation: callOrbFloat 10s infinite ease-in-out alternate-reverse;
}

@keyframes callOrbFloat {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(50px, 50px) scale(1.2); }
}

.call-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 40px;
    flex: 1;
}

.call-avatar-wrapper {
    position: relative;
    width: 140px; height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.call-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(108, 92, 231, 0.3);
    animation: callRing 2s infinite ease-out;
}

.call-ring-1 {
    width: 160px; height: 160px;
}

.call-ring-2 {
    width: 200px; height: 200px;
    animation-delay: 0.4s;
}

.call-ring-3 {
    width: 240px; height: 240px;
    animation-delay: 0.8s;
}

@keyframes callRing {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.3); opacity: 0; }
}

.call-avatar {
    width: 120px; height: 120px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    box-shadow: 0 10px 40px rgba(108, 92, 231, 0.4);
    z-index: 1;
    user-select: none;
}

.call-name {
    font-size: 28px;
    font-weight: 700;
}

.call-status {
    font-size: 16px;
    color: var(--text-muted);
}

.call-timer {
    font-size: 20px;
    font-weight: 600;
    color: var(--accent);
    font-family: 'Outfit', monospace;
    letter-spacing: 2px;
}

/* Video Call Area */
.call-video-area {
    position: relative;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 16/9;
    border-radius: 20px;
    overflow: hidden;
    margin: 10px 0;
}

.call-video-main {
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    border-radius: 20px;
    overflow: hidden;
}

.call-video-pip {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 120px;
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    border: 2px solid rgba(255,255,255,0.1);
}

.video-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a103c, #0a0a2a);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-placeholder.self {
    background: linear-gradient(135deg, #0a1628, #0a0a2a);
}

.video-wave {
    width: 60px; height: 60px;
    border-radius: 50%;
    border: 3px solid rgba(108, 92, 231, 0.3);
    animation: videoWave 2s infinite ease-out;
}

@keyframes videoWave {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

.call-controls {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.call-control-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
    font-family: var(--font-body);
}

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

.call-control-btn svg {
    width: 24px; height: 24px;
}

.call-control-btn span {
    font-size: 12px;
    color: var(--text-muted);
}

.call-control-btn.end-call {
    background: var(--danger);
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
}

.call-control-btn.end-call:hover {
    background: #dc2626;
    box-shadow: 0 6px 25px rgba(239, 68, 68, 0.6);
}

.call-control-btn.end-call span {
    color: white;
}

.call-control-btn.active {
    background: var(--primary);
    border-color: transparent;
}

/* ============================================ */
/* INCOMING CALL                                */
/* ============================================ */
.incoming-call {
    z-index: 120;
}

.incoming-call-card {
    text-align: center;
    max-width: 360px;
    animation: incomingPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes incomingPop {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.incoming-call-type {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.incoming-call-avatar-wrapper {
    position: relative;
    width: 100px; height: 100px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.incoming-ring {
    position: absolute;
    width: 130px; height: 130px;
    border-radius: 50%;
    border: 2px solid rgba(108, 92, 231, 0.4);
    animation: callRing 1.5s infinite ease-out;
}

.incoming-call-avatar {
    width: 90px; height: 90px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    box-shadow: 0 8px 30px rgba(108, 92, 231, 0.4);
    z-index: 1;
    user-select: none;
}

.incoming-call-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}

.incoming-call-actions {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.call-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px;
    border: none;
    border-radius: 50%;
    width: 64px; height: 64px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.call-action-btn svg {
    width: 28px; height: 28px;
}

.call-action-btn span {
    font-size: 12px;
    position: absolute;
    bottom: -24px;
    white-space: nowrap;
}

.call-action-btn.decline {
    background: var(--danger);
    color: white;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
    animation: declinePulse 1.5s infinite;
}

@keyframes declinePulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(239, 68, 68, 0.7); }
}

.call-action-btn.accept {
    background: var(--success);
    color: white;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    animation: acceptPulse 1.5s infinite;
}

@keyframes acceptPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(16, 185, 129, 0.7); }
}

.call-action-btn:hover {
    transform: scale(1.1);
}

/* ============================================ */
/* LIGHTBOX                                     */
/* ============================================ */
.lightbox {
    z-index: 150;
    cursor: zoom-out;
    flex-direction: column;
    gap: 20px;
}

.lightbox img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    object-fit: contain;
    animation: lightboxZoom 0.3s ease;
}

@keyframes lightboxZoom {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1) !important;
    width: 48px !important; height: 48px !important;
    border-radius: 50% !important;
    z-index: 5;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

/* ============================================ */
/* TOAST NOTIFICATIONS                          */
/* ============================================ */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    padding: 14px 24px;
    background: var(--bg-panel-solid);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
    animation: toastSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 250px;
    max-width: 420px;
}

.toast.toast-exit {
    animation: toastSlideOut 0.3s ease forwards;
}

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastSlideOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(-20px) scale(0.9); }
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast.success {
    border-color: rgba(16, 185, 129, 0.3);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), var(--bg-panel-solid));
}

.toast.error {
    border-color: rgba(239, 68, 68, 0.3);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), var(--bg-panel-solid));
}

.toast.info {
    border-color: rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), var(--bg-panel-solid));
}

/* ============================================ */
/* RESPONSIVE                                   */
/* ============================================ */
@media (max-width: 768px) {
    .app-container {
        position: relative;
    }

    .sidebar {
        width: 100%;
        min-width: unset;
        position: absolute;
        z-index: 10;
        transition: transform 0.3s ease;
        background: var(--bg-dark);
        left: 0;
        top: 0;
    }

    .sidebar.hidden {
        transform: translateX(100%);
        pointer-events: none;
    }

    .chat-area {
        width: 100%;
    }

    .mobile-back {
        display: flex;
        margin-right: 8px;
    }

    .message {
        max-width: 85%;
    }

    .emoji-picker {
        width: calc(100% - 32px);
        left: 16px;
        right: 16px;
    }

    .theme-panel {
        width: 100%;
    }

    .call-avatar-wrapper {
        width: 120px; height: 120px;
    }

    .call-avatar {
        width: 100px; height: 100px;
        font-size: 40px;
    }

    .call-ring-1 { width: 130px; height: 130px; }
    .call-ring-2 { width: 160px; height: 160px; }
    .call-ring-3 { width: 190px; height: 190px; }

    .call-name {
        font-size: 22px;
    }

    .call-controls {
        gap: 12px;
    }

    .call-control-btn {
        min-width: 65px;
        padding: 14px;
    }
}

@media (max-width: 480px) {
    .glass-card {
        padding: 24px;
        border-radius: 20px;
    }

    .sidebar-header {
        padding: 12px 14px;
    }

    .sidebar-actions .icon-btn {
        width: 36px; height: 36px;
    }

    .sidebar-actions .icon-btn svg {
        width: 18px; height: 18px;
    }
}

/* ============================================ */
/* PROFILE IMAGE UPLOAD                         */
/* ============================================ */
.profile-avatar-large-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.profile-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    background: var(--primary-gradient);
    border: 3px solid rgba(255,255,255,0.2);
    overflow: hidden;
}

.profile-upload-btn {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: var(--primary-gradient);
    color: #fff;
    border: 2px solid var(--bg-dark);
    border-radius: 20px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.profile-upload-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.5);
}

/* ============================================ */
/* THEME MODE TOGGLE                            */
/* ============================================ */
.theme-mode-section {
    padding: 16px 0;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 16px;
}

.theme-mode-section h4 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.theme-mode-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-body);
}

.theme-mode-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.theme-mode-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-1px);
}

.theme-mode-btn.active {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    border-color: transparent;
}

/* ============================================ */
/* CALL CONTROL ACTIVE STATE                    */
/* ============================================ */
.call-control-btn.active {
    background: rgba(239, 68, 68, 0.3);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #ef4444;
}

.call-control-btn.active:hover {
    background: rgba(239, 68, 68, 0.5);
}

