/* ================= VARIABLES & BASE ================= */
:root {
    --bg-main: #0f172a; --bg-sidebar: #172033; --bg-card: #1e293b;
    --primary: #7c3aed; --primary-hover: #6d28d9;
    --text-main: #ffffff; --text-muted: #94a3b8;
    --error: #ef4444; --success: #10b981;
    --radius: 16px; --font: 'Segoe UI', system-ui, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; font-family: var(--font); }
body { background-color: var(--bg-main); color: var(--text-main); height: 100vh; overflow: hidden; }

.brand-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
}

.brand-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border-radius: 50%;
    padding: 3px;
    background: radial-gradient(circle at 30% 30%, rgba(56, 189, 248, 0.25), rgba(124, 58, 237, 0.15));
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--text-main);
    font-size: 0.86rem;
    z-index: 1200;
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

body.light-mode {
    --bg-main: #f4f7fb;
    --bg-sidebar: #e8eef6;
    --bg-card: #dfe7f2;
    --text-main: #0f172a;
    --text-muted: #475569;
}

/* ================= UTILITIES & GLASS ================= */
.hidden { display: none !important; }
.relative { position: relative; }
.view { display: flex; opacity: 1; transition: opacity 0.4s ease; }
.view.hidden { opacity: 0; pointer-events: none; }
.glass { background: rgba(30, 41, 59, 0.7); backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, 0.05); }
.glass-dark { background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(20px); border-right: 1px solid rgba(255, 255, 255, 0.05); }

.mt-2 { margin-top: 1rem; } .mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; } .text-left { text-align: left; } .w-full { width: 100%; }
.text-muted { color: var(--text-muted); }

.file-input-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0 0 0 0);
    overflow: hidden;
}

/* ================= BUTTONS & INPUTS ================= */
.btn { padding: 12px; border: none; border-radius: 12px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: var(--transition); }
.primary-btn { background-color: var(--primary); color: white; display: flex; align-items: center; justify-content: center; }
.primary-btn:hover { background-color: var(--primary-hover); transform: translateY(-2px); }
.danger-btn { background-color: rgba(239, 68, 68, 0.2); color: var(--error); border: 1px solid var(--error); }
.icon-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; transition: 0.2s; padding: 8px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.icon-btn:hover { color: white; background: rgba(255,255,255,0.1); }
.glass-btn { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: white; width: 50px; height: 50px; font-size: 1.2rem; }

.input-group { margin-bottom: 1.2rem; display: flex; flex-direction: column; }
.input-group label { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.5rem; }
input[type="text"], input[type="email"], input[type="password"] { width: 100%; padding: 12px 16px; background: rgba(15, 23, 42, 0.8); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; color: white; }
input[type="tel"],
select { width: 100%; padding: 12px 16px; background: rgba(15, 23, 42, 0.8); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; color: white; }
input:focus { outline: none; border-color: var(--primary); }
.password-wrapper { position: relative; display: flex; align-items: center; }
.toggle-pwd { position: absolute; right: 15px; background: none; border: none; cursor: pointer; font-size: 1.2rem; }

.phone-auth-block {
    margin-bottom: 0.9rem;
}

.phone-auth-block h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.phone-auth-block p {
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.35;
}

.phone-row {
    flex-direction: row;
    gap: 10px;
}

.phone-col-code {
    width: 42%;
}

.phone-col-number {
    width: 58%;
}

/* ================= AUTH & SPA ================= */
.auth-layout { height: 100vh; justify-content: center; align-items: center; padding: 20px; }
.auth-card { width: 100%; max-width: 420px; padding: 2.5rem; border-radius: var(--radius); }
.auth-header { text-align: center; margin-bottom: 2rem; }
.form-actions { display: flex; justify-content: space-between; margin-bottom: 1.5rem; }
.checkbox-container { display: flex; align-items: center; font-size: 0.85rem; color: var(--text-muted); cursor: pointer; }
.checkbox-container input { margin-right: 8px; }
.link { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; } .link.primary-text { color: var(--primary); }

.welcome-card {
    width: 100%;
    max-width: 520px;
    padding: 3rem 2.3rem;
    border-radius: 22px;
    text-align: center;
    background: radial-gradient(circle at top, rgba(124, 58, 237, 0.35), rgba(30, 41, 59, 0.86));
}

.welcome-card h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.auth-logo {
    max-width: 170px;
    margin: 0 auto 12px;
    border-radius: 999px;
    padding: 10px 14px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.splash-logo {
    max-width: 220px;
    border-radius: 999px;
}

.welcome-card p {
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.55;
}

.welcome-card .btn {
    margin-left: auto;
    margin-right: auto;
    min-width: 210px;
}

.verification-card {
    max-width: 460px;
}

.verification-text {
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.5;
}

/* ================= SIDEBAR & MENU ================= */
.dashboard-layout { display: flex; height: 100vh; width: 100vw; position: relative; }
#menu-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 99; }
#slide-menu { position: fixed; top: 0; left: 0; height: 100vh; width: 300px; z-index: 100; transform: translateX(-100%); transition: 0.3s; box-shadow: 5px 0 25px rgba(0,0,0,0.5); }
#slide-menu.open { transform: translateX(0); }

.mobile-home-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 120;
    padding: 10px 14px;
    display: none;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-brand-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
}

.mobile-brand h3 {
    font-size: 0.95rem;
}

.mobile-brand p {
    color: var(--text-muted);
    font-size: 0.72rem;
}

.mobile-more-menu {
    position: absolute;
    right: 10px;
    top: 52px;
    min-width: 180px;
    border-radius: 12px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-more-menu button {
    text-align: left;
    background: transparent;
    border: none;
    color: var(--text-main);
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
}

.mobile-more-menu button:hover {
    background: rgba(255, 255, 255, 0.08);
}

.mobile-more-menu button.danger {
    color: var(--error);
}
.menu-header { padding: 25px 20px; background-color: var(--bg-sidebar); border-bottom: 1px solid rgba(255,255,255,0.05); }
.menu-list { list-style: none; overflow-y: auto; }
.menu-list li { padding: 15px 25px; display: flex; align-items: center; gap: 15px; cursor: pointer; font-weight: 500; }
.menu-list li:hover { background: rgba(255,255,255,0.05); } .menu-list li.danger { color: var(--error); }
.menu-toggle-item { justify-content: space-between; }
.menu-toggle-item:hover { background: transparent; }
.menu-toggle-label { display: flex; align-items: center; gap: 15px; }
.menu-list li span {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1rem;
}

.sidebar { width: 340px; background-color: var(--bg-sidebar); border-right: 1px solid rgba(255,255,255,0.05); display: flex; flex-direction: column; z-index: 10; }
.sidebar-header { padding: 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.sidebar-brand {
    display: flex;
    align-items: center;
}

.sidebar-brand-logo {
    max-width: 110px;
    max-height: 28px;
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.user-profile { display: flex; align-items: center; gap: 12px; flex: 1; }
.avatar { width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; background-color: var(--primary); }
.large-avatar { width: 80px; height: 80px; font-size: 2rem; } .bg-1 { background-color: #3b82f6; }
.search-container { padding: 15px 20px; }
.search-input { width: 100%; padding: 10px 15px; border-radius: 20px; border: none; background: rgba(0,0,0,0.2); color: white; }
.chat-list { flex: 1; overflow-y: auto; }
.chat-item { display: flex; padding: 15px 20px; cursor: pointer; border-bottom: 1px solid rgba(255,255,255,0.02); }
.chat-item:hover, .chat-item.active { background-color: rgba(255,255,255,0.05); }
.chat-info { flex: 1; margin-left: 12px; }
.chat-info .typing-text {
    display: block;
    max-width: 190px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-info small {
    display: block;
    max-width: 190px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pin-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: rgba(124, 58, 237, 0.18);
    border: 1px solid rgba(124, 58, 237, 0.4);
    margin-left: 6px;
}
.chat-meta { display: flex; flex-direction: column; align-items: flex-end; }
.badge { background-color: var(--primary); font-size: 0.7rem; padding: 2px 6px; border-radius: 10px; margin-top: 5px; }

.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #64748b;
}

.status.online::before {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.status.typing {
    color: #38bdf8;
}

.status.typing::before {
    background: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

.status.offline::before {
    background: #94a3b8;
}

.typing-text.typing-active {
    color: #38bdf8;
}

/* ================= CHAT WINDOW ================= */
.chat-window { flex: 1; display: flex; flex-direction: column; background-color: var(--bg-main); position: relative; --chat-menu-space: 0px; }
.chat-header { padding: 15px 25px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.05); }
.chat-actions { display: flex; gap: 5px; }

.chat-actions {
    position: relative;
}

.chat-header {
    position: relative;
    z-index: 1010;
}

.chat-more-menu {
    position: fixed;
    right: 24px;
    top: 80px;
    min-width: 220px;
    max-width: 320px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #ffffff;
    padding: 8px;
    display: flex;
    flex-direction: column;
    z-index: 10010;
    max-height: 60vh;
    overflow-y: auto;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.18);
    pointer-events: auto;
}

.chat-more-menu button {
    text-align: left;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: #111827;
    padding: 12px 14px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.chat-more-menu button:hover {
    background: rgba(15, 23, 42, 0.06);
    transform: translateX(2px);
}

.chat-more-menu button.danger {
    color: #b91c1c;
}

.avatar-button {
    border: none;
    cursor: pointer;
}

.messages-area {
    flex: 1;
    padding: 30px;
    padding-bottom: calc(30px + var(--chat-menu-space));
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: padding-bottom 0.22s ease;
}
.message { max-width: 65%; display: flex; flex-direction: column; position: relative; cursor: context-menu; }
.message.received { align-self: flex-start; } .message.sent { align-self: flex-end; }
.msg-bubble { padding: 12px 18px; border-radius: 18px; font-size: 0.95rem; line-height: 1.4; word-wrap: break-word;}
.msg-bubble a { color: var(--link-color, #7dd3fc); text-decoration: underline; word-break: break-all; }
.msg-bubble a:hover, .msg-bubble a:active { color: #a5f3fc; }
.msg-bubble a {
    display: inline-block;
    touch-action: manipulation;
}
.message.received .msg-bubble { background-color: var(--bg-card); border-bottom-left-radius: 4px; }
.message.sent .msg-bubble { background-color: var(--primary); border-bottom-right-radius: 4px; }
.msg-sender {
    font-size: 0.72rem;
    color: #60a5fa;
    margin: 0 0 4px 6px;
    font-weight: 600;
}
.msg-time { font-size: 0.7rem; color: var(--text-muted); margin-top: 4px; display: flex; align-items: center; gap: 5px; }
.message.sent .msg-time { align-self: flex-end; }
.double-tick { color: #38bdf8; }
.reaction-badge { position: absolute; bottom: -10px; right: 10px; background: var(--bg-sidebar); border-radius: 10px; padding: 2px 5px; font-size: 0.8rem; border: 1px solid rgba(255,255,255,0.1); }

/* File & Media Previews in Chat */
.chat-img { max-width: 250px; border-radius: 10px; margin-top: 5px; cursor: zoom-in; }
.chat-video { max-width: 250px; border-radius: 10px; margin-top: 5px; cursor: zoom-in; }
.chat-audio { width: 250px; height: 40px; margin-top: 5px; }
.chat-doc { display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,0.2); padding: 10px; border-radius: 10px; margin-top: 5px; font-size: 0.9rem;}
.chat-doc a { color: #7dd3fc; text-decoration: none; font-weight: 600; }
.chat-doc a:hover { text-decoration: underline; }

.link-preview {
    margin-top: 10px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.08);
}

.link-preview iframe {
    width: 100%;
    height: 200px;
    border: none;
    display: block;
}

.link-preview .link-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    padding: 10px 12px 6px;
    font-size: 0.8rem;
    color: #cbd5e1;
}

.link-preview .link-meta a {
    color: #7dd3fc;
    text-decoration: none;
    font-weight: 600;
}

.link-preview .link-meta a:hover {
    text-decoration: underline;
}

.link-preview .link-url {
    padding: 0 12px 10px;
    font-size: 0.85rem;
    color: #e2e8f0;
    word-break: break-all;
}

.image-viewer-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    background: rgba(2, 6, 23, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.image-viewer-img {
    max-width: min(95vw, 1200px);
    max-height: 90vh;
    border-radius: 14px;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.45);
    object-fit: contain;
}

.image-viewer-video {
    max-width: min(95vw, 1200px);
    max-height: 90vh;
    border-radius: 14px;
    background: #000;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.45);
}

.image-viewer-close {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(15, 23, 42, 0.75);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}

/* ================= INPUT AREA & POPUPS ================= */
.message-input-container { padding: 15px 25px; display: flex; align-items: center; gap: 10px; border-top: 1px solid rgba(255,255,255,0.05); }
.message-input-container input { flex: 1; border-radius: 25px; border: none; background: rgba(30, 41, 59, 0.9); padding: 15px 20px; color: white; }
.send-btn { border-radius: 50%; width: 45px; height: 45px; }
.recording-ui { flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 20px; color: var(--error); font-weight: bold; animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }

/* Attachment Menu */
.popup-menu { position: absolute; bottom: 50px; left: 0; border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 10px; min-width: 150px; z-index: 50; }
.attach-item { display: flex; align-items: center; gap: 10px; padding: 10px; cursor: pointer; border-radius: 8px; transition: 0.2s; font-size: 0.9rem; }
.attach-item:hover { background: rgba(255,255,255,0.1); }

/* Emoji Picker */
.emoji-picker { position: absolute; bottom: 80px; left: 20px; width: 250px; height: 200px; border-radius: 12px; padding: 10px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; overflow-y: auto; z-index: 50; }
.emoji-item { font-size: 1.5rem; text-align: center; cursor: pointer; padding: 5px; border-radius: 5px; transition: 0.2s; }
.emoji-item:hover { background: rgba(255,255,255,0.1); }

/* Context Menu */
.context-menu { position: absolute; border-radius: 12px; padding: 10px; z-index: 200; min-width: 180px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.reactions-bar { display: flex; justify-content: space-around; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 10px; }
.reactions-bar span { font-size: 1.2rem; cursor: pointer; transition: 0.2s; }
.reactions-bar span:hover { transform: scale(1.3); }
.context-menu ul { list-style: none; }
.context-menu li { padding: 8px 10px; cursor: pointer; border-radius: 6px; font-size: 0.9rem; transition: 0.2s; }
.context-menu li:hover { background: rgba(255,255,255,0.1); }
.context-menu li.danger { color: var(--error); }

/* ================= CALL UI MODAL ================= */
.call-modal { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.98); z-index: 1000; display: flex; align-items: center; justify-content: center; text-align: center; }
.pulsing { animation: callPulse 2s infinite; box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.7); }
@keyframes callPulse { 70% { box-shadow: 0 0 0 30px rgba(124, 58, 237, 0); } 100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0); } }
.call-actions { display: flex; justify-content: center; gap: 20px; margin-top: 30px; }
.accept-btn { background-color: var(--success); color: white; border-radius: 30px; padding: 15px 30px; }
.decline-btn { background-color: var(--error); color: white; border-radius: 30px; padding: 15px 30px; }
.disclaimer { font-size: 0.8rem; color: #fbbf24; background: rgba(251, 191, 36, 0.1); padding: 10px; border-radius: 8px; }

#active-actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.call-volume-box {
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(340px, 88vw);
}

.call-volume-box input[type="range"] {
    flex: 1;
}

.call-volume-step {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
}

.call-control-status {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.glass-btn.control-off {
    opacity: 0.65;
    border-color: rgba(239, 68, 68, 0.6);
}

/* ================= STANDARD MODALS ================= */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 500; display: flex; align-items: center; justify-content: center; }
.modal-content { width: 90%; max-width: 400px; border-radius: var(--radius); padding: 25px; transform: translateY(0); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.close-btn { background: none; border: none; color: var(--text-muted); font-size: 1.2rem; cursor: pointer; }

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

.profile-brand-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    margin: 0 auto;
    font-size: 0.84rem;
    color: var(--text-muted);
}

.profile-brand-icon {
    width: 20px;
    height: 20px;
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.profile-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-detail-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.profile-detail-value {
    color: var(--text-main);
    font-weight: 600;
}

.profile-link-row .profile-detail-value {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.82rem;
}

.profile-stories {
    padding: 14px;
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    color: var(--text-muted);
    text-align: center;
    margin-top: 4px;
}

#new-group-modal .modal-content {
    max-width: 430px;
}

#new-group-modal .input-group {
    margin-bottom: 1rem;
}

#settings-modal .modal-content {
    max-width: 460px;
    max-height: 86vh;
    display: flex;
    flex-direction: column;
}

.settings-body {
    overflow-y: auto;
    padding-right: 4px;
}

.settings-profile {
    padding: 12px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 12px;
}

.settings-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 0.84rem;
}

.settings-brand-icon {
    width: 18px;
    height: 18px;
}

.settings-profile h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.settings-profile p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.settings-plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: rgba(124, 58, 237, 0.2);
    border: 1px solid rgba(124, 58, 237, 0.35);
    margin-top: 4px;
}

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

.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.92rem;
}

.settings-item:hover {
    background: rgba(124, 58, 237, 0.12);
}

.settings-value {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.account-view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-weight: 700;
}

.account-card {
    padding: 12px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 10px;
}

.account-status {
    color: #34d399;
    font-size: 0.9rem;
    margin: 4px 0 10px;
}

.account-pill-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.account-pill {
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.8rem;
}

.account-muted,
.account-note {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.account-note {
    margin: 8px 2px;
}

.account-item {
    margin-top: 6px;
}

.settings-subview-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 700;
}

.settings-subview-header-split {
    justify-content: space-between;
}

.back-btn {
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    width: 30px;
    height: 30px;
    border-radius: 8px;
    cursor: pointer;
}

.settings-section-title {
    margin: 12px 2px 6px;
    color: var(--text-muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.mini-switch {
    position: relative;
    width: 36px;
    height: 20px;
    display: inline-flex;
    align-items: center;
}

.mini-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.mini-switch span {
    position: absolute;
    inset: 0;
    background: rgba(148, 163, 184, 0.35);
    border-radius: 999px;
    transition: 0.2s;
}

.mini-switch span::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    left: 3px;
    top: 3px;
    border-radius: 50%;
    background: #fff;
    transition: 0.2s;
}

.mini-switch input:checked + span {
    background: #4ea1ff;
}

.mini-switch input:checked + span::before {
    transform: translateX(16px);
}

.settings-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
}

.secondary-btn {
    background: rgba(148, 163, 184, 0.18);
    color: var(--text-main);
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.profile-photo-label {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.profile-photo-label:hover {
    background: rgba(148, 163, 184, 0.26);
}

.language-search-wrap {
    margin: 6px 0 10px;
}

.language-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 42vh;
    overflow-y: auto;
    padding-right: 4px;
}

.language-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
}

.language-item:hover {
    background: rgba(124, 58, 237, 0.12);
}

.language-meta {
    color: var(--text-muted);
    font-size: 0.84rem;
}

.language-item.active {
    border-color: rgba(124, 58, 237, 0.7);
    background: rgba(124, 58, 237, 0.2);
}

.premium-plans {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 10px 0 12px;
}

.premium-plan {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    padding: 11px 12px;
}

.premium-plan.highlight {
    border-color: rgba(124, 58, 237, 0.6);
    background: rgba(124, 58, 237, 0.16);
}

.premium-plan-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.92rem;
}

.premium-sub {
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 0.86rem;
}

.premium-feature {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin-top: 6px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
}

.right-profile-panel {
    width: 320px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px;
    overflow-y: auto;
}

.right-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.right-panel-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mobile-fab {
    position: fixed;
    right: 20px;
    bottom: 88px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    z-index: 130;
    background: linear-gradient(135deg, #0ea5e9, #7c3aed);
    box-shadow: 0 10px 28px rgba(14, 165, 233, 0.35);
}

.mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 125;
}

.mobile-bottom-nav button {
    border: none;
    border-radius: 10px;
    padding: 10px 6px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    font-size: 0.82rem;
}

.mobile-bottom-nav button.active {
    color: #fff;
    background: rgba(14, 165, 233, 0.28);
    border: 1px solid rgba(14, 165, 233, 0.6);
}

.active-setting-item {
    border-color: rgba(78, 161, 255, 0.75) !important;
    background: rgba(78, 161, 255, 0.16) !important;
}

@media (max-width: 768px) {
    body {
        height: 100dvh;
        min-height: 100dvh;
        overflow: hidden;
    }

    .mobile-home-bar { display: flex; }
    .mobile-bottom-nav { display: grid; }
    .sidebar { position: absolute; top: 62px; height: calc(100% - 122px); transform: translateX(-100%); transition: 0.3s; box-shadow: 5px 0 25px rgba(0,0,0,0.5); width: 100%; }
    .sidebar.open { transform: translateX(0); }
    .sidebar.mobile-panel-open { transform: translateX(0); }
    .chat-window { padding-top: 62px; padding-bottom: 68px; display: none; }
    .chat-window.mobile-panel-open { display: flex; }
    .right-profile-panel {
        position: fixed;
        top: 62px;
        right: 0;
        width: 100%;
        height: calc(100vh - 130px);
        z-index: 126;
    }
    .mobile-toggle { display: block; background: none; border:none; color: white; font-size: 1.5rem; margin-right: 15px;}

    body.android-mobile-ui {
        background: #f6f7fb;
        color: #111827;
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    body.android-mobile-ui .glass,
    body.android-mobile-ui .glass-dark {
        background: transparent;
        backdrop-filter: none;
        border: none;
    }

    body.android-mobile-ui #menu-backdrop {
        background: rgba(3, 8, 20, 0.58);
        z-index: 320;
    }

    body.android-mobile-ui #slide-menu {
        width: min(86vw, 360px);
        z-index: 330;
        background: #ecf0f6;
        border-right: 1px solid #dbe2ef;
        box-shadow: 0 16px 40px rgba(15, 23, 42, 0.35);
    }

    body.android-mobile-ui #slide-menu .menu-header {
        background: linear-gradient(180deg, #eef3fb 0%, #e8edf6 100%);
        border-bottom: 1px solid #d6dfec;
    }

    body.android-mobile-ui #slide-menu .menu-user-info h3 {
        color: #0f172a;
    }

    body.android-mobile-ui #slide-menu .menu-user-info p {
        color: #374151;
    }

    body.android-mobile-ui #slide-menu .menu-list li {
        color: #1f2937;
        padding: 14px 20px;
        border-bottom: 1px solid #e5ebf5;
    }

    body.android-mobile-ui #slide-menu .menu-list li:hover {
        background: #dde8f8;
    }

    body.android-mobile-ui #slide-menu .menu-list li span {
        background: #d8e4f7;
        border: 1px solid #c2d3ef;
        color: #1e3a8a;
    }

    body.android-mobile-ui .chat-more-menu {
        position: fixed;
        right: 8px;
        left: 8px;
        top: auto;
        bottom: 78px;
        min-width: unset;
        width: auto;
        border-radius: 18px;
        padding: 10px;
        max-height: 56vh;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid rgba(15, 23, 42, 0.12);
        box-shadow: 0 22px 45px rgba(15, 23, 42, 0.24);
        z-index: 950;
        color: #111827;
        pointer-events: auto;
    }

    body.android-mobile-ui .chat-more-menu button {
        color: #111827;
        background: #ffffff;
        padding: 14px 16px;
        font-size: 1rem;
        border-radius: 12px;
        margin-bottom: 4px;
    }

    body.android-mobile-ui .chat-more-menu button.danger {
        color: #b91c1c;
    }

    body.android-mobile-ui .chat-more-menu button:hover {
        background: rgba(15, 23, 42, 0.06);
    }

    body.android-mobile-ui .chat-more-menu button:hover {
        background: rgba(15, 23, 42, 0.06);
    }

    body.android-mobile-ui #slide-menu .menu-list li.danger {
        color: #dc2626;
    }

    body.android-mobile-ui .dashboard-layout {
        background: #f6f7fb;
        height: 100dvh;
        min-height: 100dvh;
        overflow: hidden;
    }

    body.android-mobile-ui .mobile-home-bar {
        background: #f6f7fb;
        border-bottom: 1px solid #e7e9f0;
        padding: 12px 16px;
    }

    body.android-mobile-ui .mobile-brand h3 {
        color: #2a9be8;
        font-size: 2rem;
        font-weight: 800;
        letter-spacing: -0.01em;
    }

    body.android-mobile-ui .mobile-brand p {
        display: none;
    }

    body.android-mobile-ui .mobile-brand-icon {
        width: 30px;
        height: 30px;
        border: 1px solid #dce2ef;
        background: #fff;
    }

    body.android-mobile-ui .mobile-home-bar .icon-btn {
        color: #4b5563;
        background: transparent;
    }

    body.android-mobile-ui .sidebar {
        top: 70px;
        height: calc(100% - 142px);
        background: #f6f7fb;
        box-shadow: none;
    }

    body.android-mobile-ui .sidebar-header {
        padding: 12px 16px;
        border-bottom: 1px solid #eceff6;
        background: #f6f7fb;
    }

    body.android-mobile-ui .sidebar-brand {
        display: none;
    }

    body.android-mobile-ui .user-profile .avatar {
        width: 44px;
        height: 44px;
    }

    body.android-mobile-ui .user-info h3 {
        color: #111827;
        font-size: 1.05rem;
        font-weight: 700;
    }

    body.android-mobile-ui .search-container {
        padding: 14px 16px;
    }

    body.android-mobile-ui .search-input {
        background: #eaebef;
        color: #4b5563;
        border-radius: 24px;
        padding: 12px 18px;
    }

    body.android-mobile-ui .search-input::placeholder {
        color: #8b95a5;
    }

    body.android-mobile-ui .chat-list {
        background: #f6f7fb;
    }

    body.android-mobile-ui .chat-item {
        background: #ffffff;
        border-bottom: 1px solid #eef1f7;
        padding: 14px 16px;
    }

    body.android-mobile-ui .chat-item:hover,
    body.android-mobile-ui .chat-item.active {
        background: #f0f4fa;
    }

    body.android-mobile-ui .chat-info h4 {
        color: #111827;
        font-size: 1.05rem;
        font-weight: 700;
    }

    body.android-mobile-ui .chat-info .typing-text {
        color: #4b5563;
        max-width: 220px;
    }

    body.android-mobile-ui .chat-info small {
        color: #2a9be8;
        max-width: 220px;
        font-size: 0.9rem;
    }

    body.android-mobile-ui .chat-meta .time {
        color: #6b7280;
        font-weight: 600;
    }

    body.android-mobile-ui .badge {
        background: #2a9be8;
    }

    body.android-mobile-ui .right-profile-panel {
        background: #f7f9fc;
        border-left: 1px solid #e3e9f3;
    }

    body.android-mobile-ui .right-panel-header {
        border-bottom: 1px solid #e5ebf5;
        padding-bottom: 10px;
    }

    body.android-mobile-ui .profile-detail-row {
        border-bottom: 1px solid #e9eef7;
    }

    body.android-mobile-ui .profile-detail-label {
        color: #6b7280;
    }

    body.android-mobile-ui .profile-detail-value {
        color: #1f2937;
    }

    body.android-mobile-ui .modal {
        background: rgba(17, 24, 39, 0.48);
    }

    body.android-mobile-ui .modal-content {
        background: #f8fafd;
        border: 1px solid #dfe6f2;
        color: #111827;
        box-shadow: 0 18px 42px rgba(15, 23, 42, 0.24);
    }

    body.android-mobile-ui .modal-header {
        border-bottom: 1px solid #e6edf7;
        padding-bottom: 10px;
        margin-bottom: 14px;
    }

    body.android-mobile-ui .modal-header h2,
    body.android-mobile-ui .modal-body h2,
    body.android-mobile-ui .modal-body h3,
    body.android-mobile-ui .modal-body h4 {
        color: #0f172a;
    }

    body.android-mobile-ui .account-note,
    body.android-mobile-ui .text-muted,
    body.android-mobile-ui .settings-value,
    body.android-mobile-ui .settings-profile p {
        color: #5f6b7b;
    }

    body.android-mobile-ui .settings-profile,
    body.android-mobile-ui .account-card,
    body.android-mobile-ui .premium-plan,
    body.android-mobile-ui .premium-feature,
    body.android-mobile-ui .settings-item,
    body.android-mobile-ui .settings-item.account-item {
        background: #ffffff;
        border: 1px solid #e3eaf6;
        color: #0f172a;
    }

    body.android-mobile-ui .settings-item:hover,
    body.android-mobile-ui .settings-item.account-item:hover,
    body.android-mobile-ui .premium-feature:hover {
        background: #f1f6ff;
        border-color: #d3dff3;
    }

    body.android-mobile-ui .settings-section-title,
    body.android-mobile-ui .account-status,
    body.android-mobile-ui .settings-subview-header span {
        color: #334155;
    }

    body.android-mobile-ui .close-btn,
    body.android-mobile-ui .back-btn {
        color: #4b5563;
    }

    body.android-mobile-ui input[type="text"],
    body.android-mobile-ui input[type="email"],
    body.android-mobile-ui input[type="password"],
    body.android-mobile-ui input[type="tel"],
    body.android-mobile-ui select {
        background: #ffffff;
        color: #0f172a;
        border: 1px solid #dbe5f3;
    }

    body.android-mobile-ui input::placeholder {
        color: #8a94a6;
    }

    body.android-mobile-ui .btn.secondary-btn {
        background: #e9f1ff;
        color: #1d4ed8;
        border: 1px solid #cfe0ff;
    }

    body.android-mobile-ui .mobile-bottom-nav {
        background: #ffffff;
        border-top: 1px solid #e5e7ee;
        border-radius: 18px 18px 0 0;
        padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
    }

    body.android-mobile-ui .mobile-bottom-nav button {
        color: #6b7280;
        background: transparent;
        border: none;
        font-weight: 600;
    }

    body.android-mobile-ui .mobile-bottom-nav button.active {
        color: #2a9be8;
        background: #e8f3ff;
        border: none;
    }

    body.android-mobile-ui .mobile-fab {
        background: linear-gradient(135deg, #2a9be8, #2591dc);
        box-shadow: 0 10px 24px rgba(42, 155, 232, 0.35);
    }

    body.android-mobile-ui .chat-window {
        background: #f6f7fb;
    }

    body.android-mobile-ui .chat-header {
        background: #ffffff;
        border-bottom: 1px solid #e8ecf3;
    }

    body.android-mobile-ui .messages-area {
        background: #eef3fb;
    }

    body.android-mobile-ui .message-input-container {
        background: #ffffff;
        border-top: 1px solid #e8ecf3;
    }

    body.android-mobile-ui.mobile-chat-open .mobile-home-bar,
    body.android-mobile-ui.mobile-chat-open .mobile-bottom-nav,
    body.android-mobile-ui.mobile-chat-open .mobile-fab {
        display: none;
    }

    body.android-mobile-ui.mobile-chat-open .chat-window {
        display: flex;
        padding-top: 8px;
        padding-bottom: calc(8px + env(safe-area-inset-bottom));
        background: #8dcf86;
        height: 100dvh;
        max-height: 100dvh;
        min-height: 0;
        overflow: hidden;
    }

    body.android-mobile-ui.mobile-chat-open .chat-header {
        margin: 8px;
        margin-bottom: 6px;
        border: none;
        background: transparent;
        padding: 0;
        gap: 8px;
        align-items: center;
    }

    body.android-mobile-ui.mobile-chat-open .chat-header .mobile-toggle {
        width: 50px;
        height: 50px;
        border-radius: 999px;
        background: #eef3ea;
        color: #1f2937;
        margin: 0;
        font-size: 28px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    body.android-mobile-ui.mobile-chat-open .chat-title-info {
        flex: 1;
        min-width: 0;
        background: #eef3ea;
        border-radius: 999px;
        padding: 8px 14px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    body.android-mobile-ui.mobile-chat-open .chat-title-info .avatar {
        width: 46px;
        height: 46px;
        font-size: 15px;
        border: 2px solid #ffffff;
        color: #0f172a;
        background: #d4dfd0;
    }

    body.android-mobile-ui.mobile-chat-open .chat-title-info h3 {
        color: #111827;
        font-size: 17px;
        line-height: 1.2;
    }

    body.android-mobile-ui.mobile-chat-open .chat-title-info .status {
        color: #5b6573;
        font-size: 13px;
        font-weight: 500;
        letter-spacing: 0;
    }

    body.android-mobile-ui.mobile-chat-open .chat-title-info .status::before {
        display: none;
    }

    body.android-mobile-ui.mobile-chat-open .chat-actions {
        gap: 8px;
        position: relative;
        z-index: 950;
    }

    body.android-mobile-ui.mobile-chat-open .chat-actions .icon-btn {
        width: 50px;
        height: 50px;
        border-radius: 999px;
        background: #eef3ea;
        color: #111827;
    }

    body.android-mobile-ui.mobile-chat-open .chat-actions .icon-btn[title="Video Call"],
    body.android-mobile-ui.mobile-chat-open .chat-actions .icon-btn[title="Search"] {
        display: none;
    }

    body.android-mobile-ui.mobile-chat-open .messages-area {
        margin: 0 8px;
        border-radius: 22px;
        flex: 1;
        min-height: 0;
        padding: 22px 14px;
        background-color: #9dcf8f;
        background-image:
            linear-gradient(140deg, rgba(238, 246, 209, 0.86), rgba(112, 182, 145, 0.42)),
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='none' stroke='%236a9f79' stroke-opacity='0.18' stroke-width='2'%3E%3Ccircle cx='24' cy='22' r='10'/%3E%3Cpath d='M62 25c6 0 11 5 11 11s-5 11-11 11-11-5-11-11 5-11 11-11z'/%3E%3Cpath d='M98 14l14 14m-14 0l14-14'/%3E%3Cpath d='M16 70h18m-9-9v18'/%3E%3Cpath d='M44 82c0-7 6-13 13-13s13 6 13 13-6 13-13 13-13-6-13-13z'/%3E%3Cpath d='M97 70c5 0 9 4 9 9s-4 9-9 9-9-4-9-9 4-9 9-9z'/%3E%3Cpath d='M24 112c7 0 12 5 12 12s-5 12-12 12-12-5-12-12 5-12 12-12z'/%3E%3Cpath d='M72 104l10 8-10 8-10-8z'/%3E%3Cpath d='M112 104h16v16h-16z'/%3E%3C/g%3E%3C/svg%3E");
        background-size: cover, 220px 220px;
        background-repeat: no-repeat, repeat;
        background-position: center, center;
        gap: 12px;
        overflow-y: auto;
    }

    body.android-mobile-ui.mobile-chat-open .message {
        max-width: 82%;
    }

    body.android-mobile-ui.mobile-chat-open .msg-bubble {
        font-size: 15px;
        line-height: 1.35;
        padding: 10px 14px;
        overflow-wrap: anywhere;
    }

    body.android-mobile-ui.mobile-chat-open .msg-bubble a {
        display: inline-block;
        touch-action: manipulation;
        color: #1f2937;
        text-decoration: underline;
    }

    body.android-mobile-ui.mobile-chat-open .message.received .msg-bubble {
        background: #ffffff;
        color: #1f2937;
        border-bottom-left-radius: 6px;
    }

    body.android-mobile-ui.mobile-chat-open .message.sent .msg-bubble {
        background: #d9fdd3;
        color: #1f2937;
        border-bottom-right-radius: 6px;
    }

    body.android-mobile-ui.mobile-chat-open .msg-time {
        color: #4b5563;
        font-size: 11px;
    }

    body.android-mobile-ui.mobile-chat-open .message-input-container {
        margin: 6px 8px 0;
        border: none;
        background: #ffffff;
        border-radius: 999px;
        padding: 6px 8px 6px 10px;
        gap: 8px;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
        flex-shrink: 0;
    }

    body.android-mobile-ui.mobile-chat-open .message-input-container .icon-btn {
        color: #4b5563;
        background: transparent;
    }

    body.android-mobile-ui.mobile-chat-open .message-input-container #msg-input {
        background: transparent;
        color: #3f4b59;
        border-radius: 999px;
        padding: 10px 6px;
        font-size: 16px;
    }

    body.android-mobile-ui.mobile-chat-open .message-input-container #msg-input::placeholder {
        color: #7f8b99;
    }

    body.android-mobile-ui.mobile-chat-open .message-input-container #mic-btn,
    body.android-mobile-ui.mobile-chat-open .message-input-container #send-btn {
        width: 46px;
        height: 46px;
        border-radius: 999px;
        border: none;
        background: #1693f2;
        color: #ffffff;
        box-shadow: 0 8px 18px rgba(22, 147, 242, 0.28);
    }

    body.android-mobile-ui.mobile-chat-open .empty-chat-card {
        margin: auto;
        width: min(92%, 320px);
        border-radius: 20px;
        background: rgba(86, 166, 84, 0.92);
        color: #ecfdf3;
        text-align: center;
        padding: 22px 18px 20px;
        box-shadow: 0 14px 28px rgba(29, 78, 35, 0.2);
    }

    body.android-mobile-ui.mobile-chat-open .empty-chat-card h4 {
        font-size: 33px;
        margin-bottom: 8px;
    }

    body.android-mobile-ui.mobile-chat-open .empty-chat-card p {
        font-size: 19px;
        line-height: 1.35;
        margin-bottom: 14px;
        color: #e7f5e9;
    }

    body.android-mobile-ui.mobile-chat-open .empty-chat-avatar {
        width: 98px;
        height: 98px;
        margin: 0 auto;
        border-radius: 50%;
        display: grid;
        place-items: center;
        background: #d7ebff;
        font-size: 46px;
    }
}
@media (min-width: 769px) { .mobile-toggle { display: none; } }
