/* ========================================
   ChatApp — Full Stylesheet
   ======================================== */

:root {
    --bg-deep: #050a0e;
    --bg: #0a1018;
    --bg-card: #0f1923;
    --bg-hover: #162231;
    --border: #1a2a3a;
    --accent: #00e5c3;
    --accent-dim: #00b89c;
    --accent-glow: rgba(0, 229, 195, 0.15);
    --danger: #ff4d6a;
    --danger-glow: rgba(255, 77, 106, 0.15);
    --warning: #f0a500;
    --success: #00e5c3;
    --text: #e8eff5;
    --text-muted: #5a7a94;
    --text-dim: #3a5568;
    --radius: 12px;
    --radius-lg: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Noto Sans Bengali', 'DM Mono', sans-serif;
    background: var(--bg-deep);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(0,229,195,.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(0,100,180,.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

h1, h2, h3, h4 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--text); }

/* ===== FORMS ===== */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 11px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-input::placeholder { color: var(--text-dim); }

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 11px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all .2s;
    text-align: center;
}

.btn-block { width: 100%; display: block; }

.btn-primary { background: var(--accent); color: #0a1018; }
.btn-primary:hover { background: var(--accent-dim); box-shadow: 0 4px 16px rgba(0,229,195,.25); transform: translateY(-1px); }

.btn-secondary { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { box-shadow: 0 4px 16px var(--danger-glow); transform: translateY(-1px); }

.btn-sm { padding: 7px 14px; font-size: 13px; }

/* ===== AUTH LAYOUT ===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.auth-container {
    width: 100%;
    max-width: 420px;
    animation: fadeUp .5s ease;
}

.auth-brand { text-align: center; margin-bottom: 32px; }
.auth-brand .logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent), #0088cc);
    border-radius: 16px;
    margin-bottom: 14px;
    font-size: 24px;
    font-weight: 800;
    color: #0a1018;
    font-family: 'Syne', sans-serif;
    box-shadow: 0 8px 28px rgba(0,229,195,.2);
}

.auth-brand h1 {
    font-size: 26px;
    background: linear-gradient(135deg, var(--text), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-brand p { color: var(--text-muted); font-size: 13px; margin-top: 4px; }

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.auth-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: var(--bg);
    border-radius: 10px;
    padding: 4px;
}

.auth-tab {
    flex: 1;
    padding: 9px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    transition: all .2s;
    border: none;
    background: none;
    font-family: inherit;
}

.auth-tab.active { background: var(--accent); color: #0a1018; font-weight: 600; }

.auth-form { display: none; }
.auth-form.active { display: block; animation: fadeUp .3s ease; }

.msg {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 14px;
    display: none;
    border: 1px solid;
}

.msg.show { display: block; }
.msg-error { background: var(--danger-glow); color: var(--danger); border-color: rgba(255,77,106,.2); }
.msg-success { background: var(--accent-glow); color: var(--accent); border-color: rgba(0,229,195,.2); }

.auth-link { text-align: center; margin-top: 14px; font-size: 13px; color: var(--text-muted); }

/* ===== APP LAYOUT ===== */
.app-layout {
    display: flex;
    height: 100vh;
    position: relative;
    z-index: 1;
}

/* Sidebar */
.sidebar {
    width: 320px;
    background: var(--bg);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100vh;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 18px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-header h2 {
    font-size: 17px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sidebar-header h2 span { color: var(--accent); }

.sidebar-actions { display: flex; gap: 5px; }

.icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s;
    font-size: 14px;
    text-decoration: none;
}

.icon-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }

.search-box { padding: 12px 18px; }

.search-wrapper { position: relative; }
.search-wrapper::before {
    content: '⌕';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    font-size: 14px;
}

.search-input {
    width: 100%;
    padding: 9px 14px 9px 34px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: border-color .2s;
}

.search-input:focus { border-color: var(--accent); }

.contact-list {
    flex: 1;
    overflow-y: auto;
    padding: 6px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all .2s;
    border: 1px solid transparent;
}

.contact-item:hover { background: var(--bg-hover); }
.contact-item.active { background: var(--accent-glow); border-color: rgba(0,229,195,.15); }

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    position: relative;
    background: linear-gradient(135deg, var(--accent), #0088cc);
    color: #0a1018;
}

.avatar img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.avatar-2 { background: linear-gradient(135deg, #ff6b6b, #ee5a24); color: #fff; }
.avatar-3 { background: linear-gradient(135deg, #a29bfe, #6c5ce7); color: #fff; }
.avatar-4 { background: linear-gradient(135deg, #fdcb6e, #e17055); }
.avatar-5 { background: linear-gradient(135deg, #55a3e8, #4834d4); color: #fff; }

.online-dot {
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
    position: absolute;
    bottom: 0;
    right: 0;
    border: 2px solid var(--bg);
}

.contact-info { flex: 1; min-width: 0; }
.contact-name { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.contact-status {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-meta { text-align: right; flex-shrink: 0; }
.contact-time { font-size: 11px; color: var(--text-dim); display: block; }

.unread-badge {
    display: inline-flex;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: var(--accent);
    color: #0a1018;
    font-size: 10px;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    margin-top: 4px;
}

/* ===== CHAT AREA ===== */
.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: var(--bg-deep);
}

.empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    gap: 14px;
}

.empty-state-icon {
    width: 76px;
    height: 76px;
    border-radius: 22px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.empty-state h3 { font-size: 17px; color: var(--text); }
.empty-state p { font-size: 13px; text-align: center; max-width: 280px; }

/* Chat Header */
.chat-header {
    padding: 14px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header-left { display: flex; align-items: center; gap: 11px; }

.chat-header-info h3 { font-size: 14px; font-weight: 600; }
.chat-header-info p { font-size: 12px; color: var(--accent); }

.chat-header-actions { display: flex; gap: 6px; }

/* Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.message { max-width: 65%; animation: fadeUp .25s ease; }
.message.sent { align-self: flex-end; }
.message.received { align-self: flex-start; }

.message-bubble {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

.message.sent .message-bubble {
    background: var(--accent);
    color: #0a1018;
    border-bottom-right-radius: 4px;
}

.message.received .message-bubble {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}

.message-image {
    max-width: 240px;
    border-radius: 10px;
    margin-top: 6px;
    cursor: pointer;
    display: block;
}

.message-time {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 3px;
    padding: 0 4px;
}

.message.sent .message-time { text-align: right; }

/* Typing Indicator */
.typing-indicator {
    display: none;
    align-self: flex-start;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    border-bottom-left-radius: 4px;
    gap: 4px;
    align-items: center;
}

.typing-indicator.show { display: flex; }

.typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-dim);
    animation: pulse 1.2s ease infinite;
}

.typing-dot:nth-child(2) { animation-delay: .2s; }
.typing-dot:nth-child(3) { animation-delay: .4s; }

/* Chat Input */
.chat-input-area {
    padding: 14px 20px;
    background: var(--bg);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.chat-input {
    flex: 1;
    padding: 11px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    resize: none;
    max-height: 80px;
    min-height: 42px;
    transition: border-color .2s;
}

.chat-input:focus { border-color: var(--accent); }

.img-upload-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s;
    font-size: 16px;
    flex-shrink: 0;
}

.img-upload-btn:hover { border-color: var(--accent); color: var(--accent); }

.send-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--accent);
    color: #0a1018;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s;
    font-size: 16px;
    flex-shrink: 0;
}

.send-btn:hover { background: var(--accent-dim); transform: scale(1.05); }

#imagePreview {
    display: none;
    padding: 8px 20px;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

#imagePreview img {
    max-height: 80px;
    border-radius: 8px;
}

#imagePreview .remove-img {
    display: inline-block;
    margin-left: 8px;
    color: var(--danger);
    cursor: pointer;
    font-size: 18px;
}

/* ===== CALL SCREEN ===== */
.call-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #000;
    display: none;
    flex-direction: column;
}

.call-screen.active { display: flex; }

.call-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #0a0a0a;
}

.call-video-main {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.call-video-main video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.call-video-self {
    position: absolute;
    bottom: 90px;
    right: 20px;
    width: 160px;
    height: 210px;
    background: var(--bg);
    border-radius: 14px;
    border: 2px solid var(--border);
    overflow: hidden;
    display: none;
    z-index: 10;
}

.call-video-self video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}

.call-info {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    background: rgba(0,0,0,.6);
    padding: 10px 22px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.call-info h3 { font-size: 15px; }
.call-info p { font-size: 12px; color: var(--accent); }

.call-controls {
    padding: 20px;
    background: rgba(0,0,0,.85);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    backdrop-filter: blur(10px);
}

.call-ctrl {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s;
    font-size: 20px;
    background: rgba(255,255,255,.1);
    color: #fff;
}

.call-ctrl:hover { background: rgba(255,255,255,.2); transform: scale(1.05); }
.call-ctrl.active { background: var(--accent); color: #0a1018; }
.call-ctrl.end { background: var(--danger); color: #fff; width: 60px; height: 60px; }
.call-ctrl.end:hover { background: #ff3355; }

/* Incoming Call Modal */
.incoming-call {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,.8);
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
}

.incoming-call.show { display: flex; }

.incoming-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    animation: fadeUp .3s ease;
    max-width: 320px;
    width: 90%;
}

.incoming-card .avatar {
    width: 80px;
    height: 80px;
    border-radius: 22px;
    font-size: 28px;
    margin: 0 auto 16px;
    animation: pulse 1.5s ease infinite;
}

.incoming-card h3 { font-size: 18px; margin-bottom: 4px; }
.incoming-card p { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }

.incoming-actions { display: flex; gap: 14px; justify-content: center; }

.incoming-actions .btn { min-width: 100px; border-radius: 14px; }

/* ===== PROFILE PAGE ===== */
.profile-layout {
    height: 100vh;
    overflow-y: auto;
    position: relative;
    z-index: 1;
}

.profile-top {
    padding: 18px 22px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 14px;
}

.profile-top h2 { font-size: 17px; }

.profile-content {
    max-width: 500px;
    margin: 0 auto;
    padding: 28px 22px;
}

.profile-avatar-wrap { text-align: center; margin-bottom: 28px; }

.profile-avatar-lg {
    width: 90px;
    height: 90px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    margin: 0 auto 12px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.profile-avatar-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
}

.profile-avatar-lg .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .2s;
    border-radius: 24px;
    font-size: 14px;
    color: #fff;
}

.profile-avatar-lg:hover .overlay { opacity: 1; }

.profile-name { font-size: 20px; }
.profile-email { color: var(--text-muted); font-size: 13px; }

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    text-align: center;
}

.stat-card h4 { font-size: 20px; color: var(--accent); margin-bottom: 2px; }
.stat-card p { font-size: 11px; color: var(--text-muted); }

.profile-section { margin-bottom: 22px; }
.profile-section h3 {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 10px;
}

.profile-field {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 6px;
}

.profile-field label { font-size: 11px; color: var(--text-dim); display: block; margin-bottom: 3px; }
.profile-field .val { font-size: 14px; font-weight: 500; }

/* ===== ADMIN LAYOUT ===== */
.admin-layout {
    display: flex;
    height: 100vh;
    position: relative;
    z-index: 1;
}

.admin-sidebar {
    width: 250px;
    background: var(--bg);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.admin-sidebar-header {
    padding: 18px;
    border-bottom: 1px solid var(--border);
}

.admin-sidebar-header h2 {
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-sidebar-header h2 span { color: var(--accent); }
.admin-sidebar-header p { font-size: 11px; color: var(--text-dim); margin-top: 2px; }

.admin-nav { flex: 1; padding: 10px 8px; }

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    color: var(--text-muted);
    transition: all .2s;
    cursor: pointer;
    text-decoration: none;
    margin-bottom: 2px;
}

.admin-nav-item:hover { background: var(--bg-hover); color: var(--text); }
.admin-nav-item.active { background: var(--accent-glow); color: var(--accent); }

.admin-nav-item .icon { font-size: 16px; width: 20px; text-align: center; }

.admin-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.admin-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.admin-top h1 { font-size: 22px; }

.admin-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.admin-card h4 { font-size: 24px; color: var(--accent); margin-bottom: 4px; }
.admin-card p { font-size: 13px; color: var(--text-muted); }

/* Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.data-table th {
    background: var(--bg);
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
}

.data-table td {
    padding: 12px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-hover); }

.data-table .badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.badge-admin { background: rgba(0,229,195,.15); color: var(--accent); }
.badge-user { background: rgba(90,122,148,.2); color: var(--text-muted); }
.badge-online { background: rgba(0,229,195,.15); color: var(--accent); }
.badge-offline { background: rgba(255,77,106,.1); color: var(--danger); }

.table-actions { display: flex; gap: 6px; }

/* ===== TOAST ===== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 11px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    animation: fadeUp .3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid;
}

.toast-success { background: rgba(0,229,195,.15); color: var(--accent); border-color: rgba(0,229,195,.3); }
.toast-error { background: rgba(255,77,106,.15); color: var(--danger); border-color: rgba(255,77,106,.3); }
.toast-info { background: rgba(0,136,204,.15); color: #55a3e8; border-color: rgba(0,136,204,.3); }

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal-overlay.show { display: flex; }

.modal-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    max-width: 400px;
    width: 90%;
    animation: fadeUp .3s ease;
}

.modal-box h3 { font-size: 17px; margin-bottom: 12px; }
.modal-box p { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .4; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .sidebar { position: absolute; z-index: 100; width: 100%; left: 0; top: 0; }
    .sidebar.hidden { display: none; }
    .chat-area { width: 100%; }
    .message { max-width: 82%; }
    .call-video-self { width: 110px; height: 145px; }
    .admin-sidebar { width: 60px; }
    .admin-sidebar-header h2 span,
    .admin-sidebar-header p,
    .admin-nav-item span:not(.icon) { display: none; }
    .admin-nav-item { justify-content: center; padding: 12px; }
}

@media (max-width: 480px) {
    .chat-input-area { padding: 10px 14px; }
    .chat-messages { padding: 14px; }
}