:root {
    --bg-primary: #36393f; --bg-secondary: #2f3136; --bg-tertiary: #202225;
    --bg-accent: #4f545c; --bg-floating: #18191c;
    --text-normal: #dcddde; --text-muted: #72767d; --text-link: #00aff4;
    --text-strong: #ffffff;
    --interactive-normal: #b9bbbe; --interactive-hover: #dcddde;
    --blurple: #5865F2; --blurple-hover: #4752c4;
    --green: #3ba55c; --yellow: #faa61a; --red: #ed4245;
    --d-bg: #1e1f22; --d-tile: #2b2d31; --d-panel: #313338; --d-input: #383a40;
    --d-green: #23a55a; --d-red: #f23f43; --d-text: #f2f3f5; --d-muted: #949ba4; --d-icon: #b5bac1;
    --header-height: 48px; --nav-height: 56px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ============ СВЕТЛАЯ ТЕМА ============ */
body.light {
    --bg-primary: #ffffff; --bg-secondary: #f2f3f5; --bg-tertiary: #e3e5e8;
    --bg-accent: #ebedef; --bg-floating: #ffffff;
    --text-normal: #2e3338; --text-muted: #80848e;
    --text-strong: #060607;
    --interactive-normal: #4e5058; --interactive-hover: #060607;
    --d-bg: #ffffff; --d-tile: #f2f3f5; --d-panel: #ffffff; --d-input: #ebedef;
    --d-text: #060607; --d-muted: #5c5e66; --d-icon: #4e5058;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
body { background: var(--bg-primary); color: var(--text-normal); font-family: 'gg sans','Helvetica Neue',Helvetica,Arial,sans-serif; height: 100vh; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; font-size: 14px; }

/* ============ AUTH ============ */
.auth-wrapper { position: fixed; inset: 0; z-index: 500; background: var(--blurple); display: flex; flex-direction: column; transition: opacity .4s, transform .4s; }
.auth-wrapper.hidden { opacity: 0; pointer-events: none; transform: scale(1.05); }
.auth-splash { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; transition: opacity .5s; }
.auth-splash.fade-out { opacity: 0; pointer-events: none; }
.splash-logo { width: 120px; height: 120px; animation: splashPulse 2s ease-in-out infinite; }
@keyframes splashPulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.08);opacity:.85} }
.splash-loader { width: 48px; height: 4px; background: rgba(255,255,255,.3); border-radius: 2px; overflow: hidden; }
.splash-loader-bar { height: 100%; width: 30%; background: #fff; animation: splashLoad 1.2s ease-in-out infinite; }
@keyframes splashLoad { 0%{transform:translateX(-100%)} 100%{transform:translateX(250%)} }
.auth-pages { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .4s; }
.auth-pages.visible { opacity: 1; pointer-events: all; }
.auth-page { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 0 28px; overflow-y: auto; transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .35s; }
.auth-page.slide-left { transform: translateX(-100%); opacity: 0; pointer-events: none; }
.auth-page.slide-right { transform: translateX(100%); opacity: 0; pointer-events: none; }
.auth-page.center { transform: translateX(0); opacity: 1; pointer-events: all; }
.auth-header { padding-top: max(48px, env(safe-area-inset-top, 48px)); text-align: center; margin-bottom: 28px; }
.auth-header h1 { font-size: 26px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.auth-header p { font-size: 15px; color: rgba(255,255,255,.75); }
.auth-back { position: absolute; top: max(16px, env(safe-area-inset-top,16px)); left: 16px; background: rgba(255,255,255,.15); border: none; border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10; }
.auth-back svg { width: 20px; height: 20px; fill: #fff; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.field-group { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 11px; font-weight: 700; text-transform: uppercase; color: rgba(255,255,255,.7); }
.field-label .required { color: #fa777c; }
.field-input-wrap { position: relative; }
.field-input { width: 100%; background: rgba(0,0,0,.15); border: 1px solid rgba(255,255,255,.15); border-radius: 8px; padding: 12px 14px; color: #fff; font-size: 16px; outline: none; font-family: inherit; }
.field-input:focus { border-color: rgba(255,255,255,.5); }
.field-input.error { border-color: #fa777c; }
.field-error { font-size: 12px; color: #fa777c; display: none; }
.field-error.show { display: block; }
.password-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: rgba(255,255,255,.5); display: flex; }
.password-toggle svg { width: 20px; height: 20px; fill: currentColor; }
.dob-row { display: flex; gap: 8px; }
.dob-select { flex: 1; background: rgba(0,0,0,.15); border: 1px solid rgba(255,255,255,.15); border-radius: 8px; padding: 12px 10px; color: #fff; font-size: 15px; outline: none; font-family: inherit; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='rgba(255,255,255,0.5)'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.dob-select option { background: var(--bg-secondary); }
.btn-auth { width: 100%; padding: 14px; border-radius: 8px; border: none; font-size: 16px; font-weight: 600; cursor: pointer; font-family: inherit; display: flex; align-items: center; justify-content: center; }
.btn-auth-white { background: #fff; color: var(--blurple); }
.btn-auth:disabled { opacity: .5; }
.btn-spinner { width: 20px; height: 20px; border: 2px solid rgba(88,101,242,.3); border-top-color: var(--blurple); border-radius: 50%; animation: spin .7s linear infinite; display: none; }
.btn-auth.loading .btn-spinner { display: block; }
.btn-auth.loading .btn-label { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.auth-divider { display: flex; align-items: center; gap: 12px; }
.auth-divider::before,.auth-divider::after { content:''; flex:1; height:1px; background:rgba(255,255,255,.2); }
.auth-divider span { font-size: 12px; color: rgba(255,255,255,.5); font-weight: 600; }
.social-row { display: flex; gap: 10px; }
.btn-social { flex: 1; padding: 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; color: #fff; font-size: 13px; font-weight: 600; font-family: inherit; }
.btn-social svg { width: 20px; height: 20px; }
.auth-footer { padding: 20px 0 max(28px, env(safe-area-inset-bottom,28px)); text-align: center; }
.auth-footer span { font-size: 14px; color: rgba(255,255,255,.65); }
.auth-footer a { color: #fff; font-weight: 600; cursor: pointer; border-bottom: 1px solid rgba(255,255,255,.4); }
.terms-text { font-size: 11px; color: rgba(255,255,255,.45); text-align: center; line-height: 1.5; }
.terms-text a { color: rgba(255,255,255,.7); }
.forgot-link { font-size: 13px; color: rgba(255,255,255,.7); text-align: right; cursor: pointer; }
.str-bars { display: flex; gap: 4px; margin-top: 4px; }
.str-bars div { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.2); transition: background .3s; }
.auth-success { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; opacity: 0; pointer-events: none; transition: opacity .4s; }
.auth-success.visible { opacity: 1; }
.success-circle { width: 80px; height: 80px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; animation: successPop .5s cubic-bezier(.175,.885,.32,1.275); }
@keyframes successPop { from{transform:scale(0)} to{transform:scale(1)} }
.success-circle svg { width: 40px; height: 40px; fill: #fff; }
.success-text { font-size: 20px; font-weight: 700; color: #fff; }
.success-sub { font-size: 14px; color: rgba(255,255,255,.7); }

/* ============ APP ============ */
.app-wrapper { display: none; flex-direction: column; flex: 1; overflow: hidden; opacity: 0; transition: opacity .4s; }
.app-wrapper.visible { display: flex; opacity: 1; }
.screen { display: none; flex-direction: column; flex: 1; overflow: hidden; }
.screen.active { display: flex; }
.header { height: var(--header-height); background: var(--bg-secondary); display: flex; align-items: center; padding: 0 16px; border-bottom: 1px solid rgba(0,0,0,.25); z-index: 10; flex-shrink: 0; gap: 8px; }
.header-title { font-weight: 700; font-size: 16px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hashtag { color: var(--text-muted); font-size: 18px; }
.header-actions { display: flex; gap: 12px; align-items: center; }
.header-action-btn { background: none; border: none; cursor: pointer; color: var(--interactive-normal); display: flex; }
.header-action-btn svg { width: 22px; height: 22px; fill: currentColor; }
.header-back { background: none; border: none; cursor: pointer; color: var(--interactive-normal); display: flex; padding: 4px; margin-left: -8px; }
.header-back svg { width: 22px; height: 22px; fill: currentColor; }
.header-dm-avatar { width: 28px; height: 28px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bottom-nav { height: calc(var(--nav-height) + var(--safe-bottom)); background: var(--bg-tertiary); display: flex; justify-content: space-around; align-items: flex-start; padding-top: 8px; flex-shrink: 0; border-top: 1px solid rgba(0,0,0,.3); }
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--text-muted); font-size: 10px; font-weight: 600; background: none; border: none; cursor: pointer; padding: 4px 16px; position: relative; }
.nav-item.active { color: var(--text-normal); }
.nav-icon { width: 24px; height: 24px; fill: currentColor; }
.nav-badge { position: absolute; top: 0; right: 8px; background: var(--red); color: #fff; font-size: 9px; font-weight: 700; min-width: 14px; height: 14px; border-radius: 7px; display: flex; align-items: center; justify-content: center; padding: 0 3px; }
::-webkit-scrollbar { width: 4px; } ::-webkit-scrollbar-thumb { background: rgba(0,0,0,.3); border-radius: 2px; }

.typing-indicator { display: flex; align-items: center; gap: 6px; padding: 0 16px 4px; font-size: 12px; color: var(--text-muted); flex-shrink: 0; }
.typing-dots { display: inline-flex; gap: 3px; }
.typing-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); animation: typ 1s infinite; }
.typing-dots i:nth-child(2){animation-delay:.2s} .typing-dots i:nth-child(3){animation-delay:.4s}
@keyframes typ { 0%,100%{opacity:.3} 50%{opacity:1} }

.chat-container { flex: 1; overflow-y: auto; padding: 16px 16px 8px; display: flex; flex-direction: column; }
.chat-welcome { margin-top: auto; padding: 24px 0 32px; text-align: center; color: var(--text-muted); }
.chat-welcome-icon { font-size: 48px; margin-bottom: 12px; }
.chat-welcome h2 { color: var(--text-strong); font-size: 20px; margin-bottom: 8px; }
.message-group { margin-top: 14px; display: flex; gap: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; color: #fff; }
.msg-content { flex: 1; min-width: 0; }
.msg-header { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.username { font-weight: 600; color: var(--text-strong); font-size: 15px; }
.timestamp { font-size: 11px; color: var(--text-muted); }
.msg-text { line-height: 1.45; word-wrap: break-word; font-size: 15px; }
.input-area { padding: 8px 12px calc(8px + var(--safe-bottom)); flex-shrink: 0; }
.input-wrapper { background: var(--bg-accent); border-radius: 24px; display: flex; align-items: center; padding: 4px 6px 4px 16px; min-height: 44px; }
.msg-input { flex: 1; background: none; border: none; color: var(--text-normal); font-size: 15px; outline: none; padding: 8px 0; font-family: inherit; }
.msg-input::placeholder { color: var(--text-muted); }
.send-btn { width: 36px; height: 36px; background: var(--blurple); border-radius: 50%; border: none; margin-left: 6px; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: .4; pointer-events: none; }
.send-btn.active { opacity: 1; pointer-events: all; }
.send-btn svg { fill: #fff; width: 18px; height: 18px; }

.servers-screen-body { flex: 1; display: flex; overflow: hidden; }
.server-rail { width: 72px; background: var(--bg-tertiary); display: flex; flex-direction: column; align-items: center; padding: 12px 0; gap: 8px; overflow-y: auto; flex-shrink: 0; }
.server-icon-wrap { position: relative; cursor: pointer; }
.server-icon { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; color: #fff; transition: border-radius .2s; }
.server-icon-wrap.active .server-icon { border-radius: 16px; }
.server-pill { position: absolute; left: -16px; top: 50%; transform: translateY(-50%); width: 4px; height: 8px; background: #fff; border-radius: 0 4px 4px 0; }
.server-icon-wrap.active .server-pill { display: none; }
.server-icon-wrap.active::before { content:''; position: absolute; left: -16px; top: 50%; transform: translateY(-50%); width: 4px; height: 36px; background: #fff; border-radius: 0 4px 4px 0; }
.server-divider { width: 32px; height: 2px; background: var(--bg-accent); border-radius: 1px; margin: 4px 0; }
.server-add { width: 48px; height: 48px; border-radius: 50%; background: var(--bg-primary); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--green); font-size: 24px; }
.notif-dot { position: absolute; bottom: -2px; right: -2px; width: 16px; height: 16px; background: var(--red); border-radius: 50%; border: 3px solid var(--bg-tertiary); font-size: 8px; font-weight: 700; display: flex; align-items: center; justify-content: center; color: #fff; }
.channel-panel { flex: 1; display: flex; flex-direction: column; background: var(--bg-secondary); overflow: hidden; }
.channel-panel-header { height: var(--header-height); display: flex; align-items: center; padding: 0 16px; border-bottom: 1px solid rgba(0,0,0,.25); }
.channel-server-name { font-weight: 700; font-size: 15px; flex: 1; }
.channel-list { flex: 1; overflow-y: auto; padding: 8px 0; }
.channel-category { padding: 16px 16px 4px; display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--text-muted); }
.channel-category svg { width: 12px; height: 12px; fill: currentColor; }
.channel-item { display: flex; align-items: center; gap: 8px; padding: 7px 16px; cursor: pointer; color: var(--text-muted); font-size: 15px; }
.channel-item:hover { background: rgba(128,132,142,.14); color: var(--interactive-hover); }
.channel-item.active { background: rgba(79,84,92,.6); color: var(--text-strong); }
.channel-item.connected { color: var(--d-green); }
.channel-item svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }
.channel-item-name { flex: 1; }
.channel-unread { width: 8px; height: 8px; background: #fff; border-radius: 50%; }
.voice-members { padding-left: 28px; }
.voice-member { display: flex; align-items: center; gap: 8px; padding: 4px 16px; font-size: 14px; color: var(--text-muted); }
.voice-member-avatar { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: #fff; }

.friends-body { flex: 1; overflow-y: auto; }
.friends-tabs { display: flex; gap: 8px; padding: 12px 16px 0; border-bottom: 1px solid rgba(0,0,0,.2); background: var(--bg-secondary); }
.friends-tab { padding: 8px 12px; border-radius: 8px 8px 0 0; background: none; border: none; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--text-muted); font-family: inherit; }
.friends-tab.active { background: var(--bg-primary); color: var(--text-strong); }
.friends-tab.add-friend { color: var(--green); }
.friends-tab.add-friend.active { background: var(--green); color: #fff; }
.friends-section-title { padding: 16px 16px 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--text-muted); }
.dm-item { display: flex; align-items: center; gap: 12px; padding: 10px 16px; cursor: pointer; }
.dm-item:hover { background: rgba(128,132,142,.14); }
.dm-avatar-wrap { position: relative; }
.dm-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; color: #fff; }
.status-dot { position: absolute; bottom: -1px; right: -1px; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--bg-primary); }
.status-online{background:var(--green)} .status-idle{background:var(--yellow)} .status-dnd{background:var(--red)} .status-offline{background:var(--text-muted)}
.dm-info { flex: 1; min-width: 0; }
.dm-name { font-weight: 600; font-size: 15px; color: var(--text-strong); }
.dm-preview { font-size: 13px; color: var(--text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-time { font-size: 11px; color: var(--text-muted); align-self: flex-start; margin-top: 2px; }
.dm-unread-badge { background: var(--red); color: #fff; font-size: 10px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.add-friend-panel { padding: 24px 16px; }
.add-friend-panel h2 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.add-friend-panel p { color: var(--text-muted); margin-bottom: 20px; }
.add-friend-input-wrap { display: flex; gap: 8px; }
.add-friend-input { flex: 1; background: var(--bg-tertiary); border: 1px solid rgba(0,0,0,.3); border-radius: 8px; padding: 10px 12px; color: var(--text-normal); font-size: 15px; outline: none; font-family: inherit; }
.btn-blurple { background: var(--blurple); color: #fff; border: none; border-radius: 8px; padding: 10px 20px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; }

/* ============ ЭКРАН СООБЩЕНИЙ (mobile) ============ */
.add-friend-pill { display: flex; align-items: center; gap: 6px; background: var(--bg-accent); color: var(--text-normal); border: none; border-radius: 8px; padding: 7px 12px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; }
.add-friend-pill svg { width: 16px; height: 16px; fill: currentColor; }
.activity-row { display: flex; gap: 10px; overflow-x: auto; padding: 12px 16px 4px; flex-shrink: 0; }
.activity-card { min-width: 230px; background: var(--bg-secondary); border-radius: 12px; padding: 10px; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.activity-icon { width: 52px; height: 52px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.activity-title { font-weight: 700; font-size: 14px; color: var(--text-strong); }
.activity-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.dm-row { position: relative; }
.dm-row .unread-dot { position: absolute; left: 5px; top: 50%; transform: translateY(-50%); width: 8px; height: 8px; background: #fff; border-radius: 50%; }
.name-badge { display: inline-flex; align-items: center; gap: 4px; background: var(--bg-accent); border-radius: 6px; padding: 1px 6px; font-size: 11px; font-weight: 600; color: var(--text-normal); margin-left: 6px; }
.dm-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.dm-side svg { width: 14px; height: 14px; fill: var(--text-muted); }
.dm-avatar-stack { position: relative; width: 40px; height: 40px; flex-shrink: 0; }
.dm-avatar-stack .dm-avatar { position: absolute; width: 26px; height: 26px; font-size: 11px; border: 2px solid var(--bg-primary); }
.dm-avatar-stack .dm-avatar:first-child { top: 0; left: 0; }
.dm-avatar-stack .dm-avatar:last-child { bottom: 0; right: 0; }

.profile-body { flex: 1; overflow-y: auto; }
.profile-banner { height: 100px; background: linear-gradient(135deg,#5865F2,#eb459e); }
.profile-card { background: var(--bg-secondary); margin: -40px 12px 0; border-radius: 12px; padding: 48px 16px 16px; position: relative; }
.profile-avatar-large { width: 80px; height: 80px; border-radius: 50%; border: 6px solid var(--bg-secondary); position: absolute; top: -40px; left: 16px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 28px; color: #fff; }
.profile-display-name { font-size: 20px; font-weight: 700; color: var(--text-strong); }
.profile-username { font-size: 14px; color: var(--text-muted); margin-top: 2px; }
.profile-divider { height: 1px; background: rgba(128,132,142,.2); margin: 12px 0; }
.profile-section-title { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.profile-about { font-size: 14px; line-height: 1.5; }
.profile-close { display: none; background: none; border: none; color: var(--interactive-normal); font-size: 16px; cursor: pointer; width: 32px; height: 32px; border-radius: 8px; align-items: center; justify-content: center; }
.profile-close:hover { background: var(--bg-accent); }
.settings-group-title { padding: 16px 16px 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--text-muted); }
.settings-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; }
.settings-item:hover { background: rgba(128,132,142,.14); }
.settings-item-icon svg { width: 20px; height: 20px; fill: var(--interactive-normal); }
.settings-item-label { flex: 1; font-size: 15px; }
.settings-item-arrow { color: var(--text-muted); font-size: 18px; }
.settings-item.danger .settings-item-label { color: var(--red); }
.settings-item.danger .settings-item-icon svg { fill: var(--red); }
.toggle { width: 40px; height: 22px; background: var(--text-muted); border-radius: 11px; position: relative; cursor: pointer; }
.toggle.on { background: var(--green); }
.toggle::after { content:''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: transform .2s; }
.toggle.on::after { transform: translateX(18px); }

.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 100; align-items: flex-end; }
.modal-overlay.open { display: flex; }
.modal-sheet { background: var(--bg-secondary); border-radius: 16px 16px 0 0; width: 100%; max-height: 80vh; overflow-y: auto; padding: 8px 0 calc(16px + var(--safe-bottom)); animation: slideUp .25s ease; }
@keyframes slideUp { from{transform:translateY(100%)} to{transform:translateY(0)} }
.modal-handle { width: 36px; height: 4px; background: var(--bg-accent); border-radius: 2px; margin: 0 auto 12px; }
.modal-title { font-size: 18px; font-weight: 700; padding: 0 16px 12px; color: var(--text-strong); }
.modal-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; }
.modal-item svg { width: 22px; height: 22px; fill: var(--interactive-normal); }
.modal-item.danger span { color: var(--red); } .modal-item.danger svg { fill: var(--red); }

/* ============ DESKTOP FRAME ============ */
.desktop-frame { display: none; flex: 1; overflow: hidden; }
.df-rail { width: 72px; background: var(--bg-tertiary); display: flex; flex-direction: column; align-items: center; padding: 12px 0; gap: 8px; overflow-y: auto; flex-shrink: 0; }
.df-channels { width: 240px; background: var(--bg-secondary); display: flex; flex-direction: column; flex-shrink: 0; }
.df-server-header { height: var(--header-height); display: flex; align-items: center; padding: 0 16px; font-weight: 700; font-size: 15px; border-bottom: 1px solid rgba(0,0,0,.25); flex-shrink: 0; }
.df-user-panel { height: 56px; background: var(--bg-tertiary); display: flex; align-items: center; gap: 8px; padding: 0 8px; cursor: pointer; flex-shrink: 0; }
.df-user-panel:hover { background: var(--bg-accent); }
.df-user-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--blurple); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.df-user-info { flex: 1; min-width: 0; }
.df-user-name { font-size: 13px; font-weight: 600; color: var(--text-strong); }
.df-user-status { font-size: 11px; color: var(--text-muted); }
.df-user-btn { width: 32px; height: 32px; border-radius: 6px; background: none; border: none; cursor: pointer; color: var(--interactive-normal); display: flex; align-items: center; justify-content: center; }
.df-user-btn:hover { background: var(--bg-primary); color: var(--text-strong); }
.df-user-btn svg { width: 18px; height: 18px; fill: currentColor; }
.df-main { flex: 1; display: flex; flex-direction: column; min-width: 0; background: var(--bg-primary); }
.df-chat-wrap { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.df-chat-header { height: var(--header-height); display: flex; align-items: center; gap: 8px; padding: 0 16px; border-bottom: 1px solid rgba(0,0,0,.25); flex-shrink: 0; }
.df-members { width: 240px; background: var(--bg-secondary); overflow-y: auto; flex-shrink: 0; padding: 8px 0; }
.df-member { display: flex; align-items: center; gap: 10px; padding: 6px 16px; cursor: pointer; }
.df-member:hover { background: rgba(128,132,142,.14); }
.df-member-avatar { position: relative; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: #fff; flex-shrink: 0; }
.df-member .status-dot { border-color: var(--bg-secondary); width: 12px; height: 12px; }
.df-member-name { font-size: 14px; font-weight: 600; color: var(--text-normal); }

/* Домашняя страница друзей (десктоп) */
.df-home { flex: 1; display: none; flex-direction: column; min-height: 0; background: var(--bg-primary); }
.dfhome-top { display: flex; align-items: center; gap: 10px; padding: 0 16px; height: var(--header-height); border-bottom: 1px solid rgba(0,0,0,.25); flex-shrink: 0; }
.dfhome-title { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; color: var(--text-strong); }
.dfhome-title svg { width: 20px; height: 20px; fill: var(--text-strong); }
.dfhome-tabs { display: flex; gap: 8px; margin-left: 8px; }
.dfhome-tab { background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 6px; font-family: inherit; display: flex; align-items: center; gap: 6px; }
.dfhome-tab:hover { background: var(--bg-accent); color: var(--text-strong); }
.dfhome-tab.active { background: var(--bg-accent); color: var(--text-strong); }
.dfhome-tab.add { background: var(--blurple); color: #fff; }
.dfhome-tab.add:hover { background: var(--blurple-hover); }
.dfhome-badge { background: var(--red); color: #fff; border-radius: 8px; font-size: 10px; min-width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.dfhome-body { flex: 1; display: flex; min-height: 0; }
.dfhome-list { flex: 1; overflow-y: auto; padding: 4px 8px; }
.dfhome-row { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-top: 1px solid rgba(128,132,142,.15); cursor: pointer; }
.dfhome-row:hover { background: rgba(128,132,142,.08); border-radius: 8px; }
.dfhome-row-info { flex: 1; min-width: 0; }
.dfhome-act { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-tertiary); border: none; cursor: pointer; color: var(--interactive-normal); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dfhome-act:hover { color: var(--text-strong); }
.dfhome-act svg { width: 18px; height: 18px; fill: currentColor; }
.dfhome-active { width: 280px; flex-shrink: 0; overflow-y: auto; padding: 8px 12px; border-left: 1px solid rgba(0,0,0,.15); }
.dfhome-active .activity-card { min-width: 0; width: 100%; margin-bottom: 8px; }

/* ============ ДЕСКТОП (>=900px) ============ */
@media (min-width: 900px) {
    .bottom-nav { display: none; }
    .screen { display: none !important; }
    .desktop-frame { display: flex; }
    .profile-close { display: flex; }
    #screen-profile.active {
        display: flex !important;
        position: fixed; inset: 0; margin: auto;
        width: 460px; height: 80%; max-height: 80%;
        border-radius: 12px; z-index: 90;
        box-shadow: 0 12px 40px rgba(0,0,0,.5);
        overflow: hidden;
    }
    .voice-pill { left: auto; right: 16px; bottom: 16px; width: 320px; }
    .modal-overlay { align-items: center; }
    .modal-sheet { border-radius: 12px; width: 460px; max-height: 70vh; padding-bottom: 16px; }
    .modal-handle { display: none; }
}

/* ============ VOICE CALL ============ */
.voice-pill {
    position: fixed; left: 12px; right: 12px;
    bottom: calc(var(--nav-height) + var(--safe-bottom) + 8px);
    background: var(--d-green); border-radius: 8px; z-index: 60;
    display: none; align-items: center; gap: 10px; padding: 10px 12px;
    cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.4); animation: pillIn .3s ease;
}
@keyframes pillIn { from{transform:translateY(20px);opacity:0} to{transform:translateY(0);opacity:1} }
.voice-pill.visible { display: flex; }
.voice-pill-icon { width: 18px; height: 18px; fill: #fff; flex-shrink: 0; animation: pillPulse 2s infinite; }
@keyframes pillPulse { 0%,100%{opacity:1} 50%{opacity:.5} }
.voice-pill-info { flex: 1; min-width: 0; }
.voice-pill-title { color: #fff; font-weight: 700; font-size: 13px; }
.voice-pill-sub { color: rgba(255,255,255,.8); font-size: 11px; margin-top: 1px; }
.voice-pill-leave { background: rgba(0,0,0,.25); border: none; border-radius: 6px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.voice-pill-leave svg { width: 18px; height: 18px; fill: #fff; }

.call-overlay { position: fixed; inset: 0; z-index: 300; background: var(--d-bg); display: none; flex-direction: column; }
.call-overlay.visible { display: flex; }

.call-connecting { position: absolute; inset: 0; background: var(--d-bg); z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.call-connecting.hidden { display: none; }
.connect-spinner { width: 48px; height: 48px; border-radius: 50%; border: 4px solid rgba(128,132,142,.2); border-top-color: var(--d-green); animation: spin .9s linear infinite; }
.connect-title { font-size: 18px; font-weight: 700; color: var(--d-text); }
.connect-sub { font-size: 14px; color: var(--d-muted); }
.connect-cancel { margin-top: 10px; background: var(--d-tile); border: none; color: var(--d-text); border-radius: 8px; padding: 10px 24px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; }
.connect-cancel:hover { background: var(--d-panel); }

.dcall-topbar { height: 52px; display: flex; align-items: center; gap: 6px; padding: 0 10px; flex-shrink: 0; }
.dcall-topbtn {
    background: none; border: none; cursor: pointer; color: var(--d-icon);
    display: flex; align-items: center; justify-content: center; gap: 5px;
    width: 36px; height: 36px; border-radius: 8px; position: relative;
    font-family: inherit; font-size: 12px; font-weight: 700;
}
.dcall-topbtn:hover { background: var(--d-tile); color: var(--d-text); }
.dcall-topbtn svg { width: 20px; height: 20px; fill: currentColor; }
.dcall-topbtn.ping { color: var(--d-green); width: auto; padding: 0 8px; }
.dcall-topbtn.ping.warn { color: var(--yellow); }
.dcall-topbtn.ping.bad { color: var(--d-red); }
.dcall-chaninfo { flex: 1; min-width: 0; }
.dcall-chantitle { font-weight: 700; font-size: 15px; color: var(--d-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dcall-chansub { font-size: 11px; color: var(--d-muted); display: flex; align-items: center; gap: 6px; }
.call-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--d-green); animation: pillPulse 1.5s infinite; flex-shrink: 0; }
.ctrl-badge {
    position: absolute; top: 2px; right: 2px;
    background: var(--d-red); color: #fff; font-size: 9px; font-weight: 700;
    min-width: 15px; height: 15px; border-radius: 8px;
    display: none; align-items: center; justify-content: center; padding: 0 3px;
}
.ctrl-badge.show { display: flex; }

.conn-panel {
    position: absolute; top: 54px; right: 10px; width: 250px;
    background: var(--d-panel); border-radius: 8px; z-index: 20;
    box-shadow: 0 8px 24px rgba(0,0,0,.5); padding: 14px; display: none;
}
.conn-panel.open { display: block; animation: panelIn .15s ease; }
@keyframes panelIn { from{transform:translateY(-6px);opacity:0} to{transform:translateY(0);opacity:1} }
.conn-panel-title { color: var(--d-green); font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.conn-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--d-muted); padding: 4px 0; }
.conn-row b { color: var(--d-text); font-weight: 600; max-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conn-row b.good { color: var(--d-green); } .conn-row b.warn { color: var(--yellow); } .conn-row b.bad { color: var(--d-red); }
.conn-disconnect {
    margin-top: 12px; width: 100%; background: var(--d-red); border: none; border-radius: 6px;
    color: #fff; font-weight: 700; font-size: 13px; padding: 10px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px; font-family: inherit;
}
.conn-disconnect:hover { background: #d83136; }
.conn-disconnect svg { width: 16px; height: 16px; fill: #fff; }

.dcall-grid {
    flex: 1; overflow-y: auto; padding: 4px 10px 10px;
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; align-content: start;
}
@media (min-width: 700px) { .dcall-grid { grid-template-columns: repeat(3, 1fr); } }
.dcall-tile {
    position: relative; background: var(--d-tile); border-radius: 8px;
    border: 2px solid transparent; min-height: 160px;
    display: flex; align-items: center; justify-content: center;
    transition: border-color .12s, box-shadow .12s; overflow: hidden;
    animation: tileIn .25s ease;
}
@keyframes tileIn { from{transform:scale(.85);opacity:0} to{transform:scale(1);opacity:1} }
.dcall-tile.speaking { border-color: var(--d-green); box-shadow: 0 0 14px rgba(35,165,90,.3); }
.dcall-avatar {
    width: 68px; height: 68px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 26px; color: #fff;
}
.dcall-tile.speaking .dcall-avatar { animation: avTalk 1s ease-in-out infinite; }
@keyframes avTalk { 0%,100%{transform:scale(1)} 50%{transform:scale(1.05)} }
.dcall-name {
    position: absolute; left: 8px; bottom: 7px;
    display: flex; align-items: center; gap: 5px;
    font-size: 13px; font-weight: 600; color: var(--d-text);
    text-shadow: 0 1px 3px rgba(0,0,0,.3); max-width: calc(100% - 16px);
}
.dcall-name span.nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dcall-micicon { display: flex; flex-shrink: 0; }
.dcall-micicon svg { width: 14px; height: 14px; fill: var(--d-icon); }
.dcall-tile.muted .dcall-micicon svg { fill: var(--d-muted); }

.dcall-controls {
    display: flex; justify-content: center; align-items: center; gap: 10px;
    padding: 10px 12px calc(12px + var(--safe-bottom)); flex-shrink: 0;
}
.dcall-ctrl {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--d-tile); border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--d-icon); transition: background .12s, color .12s, transform .1s;
}
.dcall-ctrl:hover { background: var(--d-panel); color: var(--d-text); box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.dcall-ctrl:active { transform: scale(.92); }
.dcall-ctrl svg { width: 22px; height: 22px; fill: currentColor; }
.dcall-ctrl.active { background: var(--d-text); color: var(--d-bg); }
.dcall-ctrl.leave { background: var(--d-red); color: #fff; }
.dcall-ctrl.leave:hover { background: #d83136; }

.call-chat {
    position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 88%);
    background: var(--d-panel); z-index: 15;
    transform: translateX(100%); transition: transform .25s cubic-bezier(.4,0,.2,1);
    display: flex; flex-direction: column; border-left: 1px solid rgba(0,0,0,.2);
}
.call-chat.open { transform: translateX(0); }
.call-chat-header {
    height: 52px; display: flex; align-items: center; padding: 0 14px;
    border-bottom: 1px solid rgba(0,0,0,.2); font-weight: 700; font-size: 14px;
    color: var(--d-text); flex-shrink: 0;
}
.call-chat-header span { flex: 1; }
.call-chat-close { background: none; border: none; color: var(--d-icon); cursor: pointer; display: flex; width: 32px; height: 32px; border-radius: 6px; align-items: center; justify-content: center; }
.call-chat-close:hover { background: var(--d-tile); color: var(--d-text); }
.call-chat-close svg { width: 20px; height: 20px; fill: currentColor; }
.call-chat-list { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 14px; }
.cc-msg { display: flex; gap: 10px; }
.cc-avatar { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #fff; }
.cc-body { min-width: 0; }
.cc-head { display: flex; gap: 6px; align-items: baseline; }
.cc-name { font-size: 14px; font-weight: 600; color: var(--d-text); }
.cc-time { font-size: 10px; color: var(--d-muted); }
.cc-text { font-size: 14px; line-height: 1.4; color: var(--d-text); word-wrap: break-word; opacity: .9; }
.cc-system { text-align: center; font-size: 12px; color: var(--d-muted); padding: 2px 0; }
.call-chat-input { display: flex; align-items: center; gap: 8px; padding: 0 12px calc(12px + var(--safe-bottom)); flex-shrink: 0; }
.call-chat-input input {
    flex: 1; background: var(--d-input); border: none; border-radius: 8px;
    padding: 11px 12px; color: var(--d-text); font-size: 14px; outline: none; font-family: inherit;
}
.call-chat-input input::placeholder { color: var(--d-muted); }
.call-chat-input button {
    width: 38px; height: 38px; border-radius: 8px; background: var(--blurple);
    border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.call-chat-input button svg { width: 16px; height: 16px; fill: #fff; }
/* ============ МОДАЛКА СОЗДАНИЯ СЕРВЕРА ============ */
.srv-modal-bg {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.7);
  display: flex; align-items: center; justify-content: center;
  z-index: 200;
  animation: srvFade .15s ease;
}
@keyframes srvFade { from{opacity:0} to{opacity:1} }
.srv-modal {
  background: #313338;
  border-radius: 8px;
  width: 480px; max-width: 95vw;
  padding: 24px;
  position: relative;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
  color: #f2f3f5;
  font-family: 'gg sans', 'Segoe UI', sans-serif;
}
.srv-modal-close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: none;
  color: #b5bac1; font-size: 24px; line-height: 1;
  cursor: pointer; padding: 4px 8px;
  border-radius: 4px;
}
.srv-modal-close:hover { color: #fff; background: rgba(255,255,255,.06); }
.srv-modal-title {
  margin: 0 0 8px; font-size: 20px; font-weight: 700; color: #f2f3f5;
}
.srv-modal-sub {
  margin: 0 0 20px; font-size: 14px; color: #b5bac1; line-height: 1.4;
}
.srv-modal-label {
  display: block;
  font-size: 12px; font-weight: 700; color: #b5bac1;
  letter-spacing: .5px;
  margin: 16px 0 6px;
  text-transform: uppercase;
}
.srv-modal-input {
  width: 100%;
  background: #1e1f22;
  border: 1px solid #1e1f22;
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 14px;
  color: #f2f3f5;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
}
.srv-modal-input:focus { border-color: #5865F2; }
.srv-modal-colors {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.srv-color-opt {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  transition: transform .15s ease;
  border: 3px solid transparent;
}
.srv-color-opt:hover { transform: scale(1.1); }
.srv-color-opt.active {
  border-color: #fff;
}
.srv-modal-preview {
  display: flex; justify-content: center;
  padding: 16px 0;
}
.srv-modal-actions {
  display: flex; justify-content: flex-end; gap: 8px;
  margin-top: 20px;
  background: #2b2d31;
  margin: 20px -24px -24px;
  padding: 16px 24px;
  border-radius: 0 0 8px 8px;
}
.srv-btn-cancel, .srv-btn-create {
  padding: 10px 16px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit;
  min-width: 96px;
  transition: background .15s ease;
}
.srv-btn-cancel {
  background: transparent;
  color: #fff;
}
.srv-btn-cancel:hover { text-decoration: underline; }
.srv-btn-create {
  background: #5865F2;
  color: #fff;
}
.srv-btn-create:hover { background: #4752c4; }
.srv-btn-create:disabled {
  background: #4f545c; cursor: not-allowed;
}
.srv-modal-input.error {
  border-color: #ed4245;
}

/* ============ ПОПАП ПРОФИЛЯ ============ */
.pp-bg {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.65);
  display: flex; align-items: center; justify-content: center;
  z-index: 210;
  animation: ppFade .15s ease;
}
@keyframes ppFade { from{opacity:0} to{opacity:1} }
.pp-card {
  width: 360px; max-width: 92vw;
  background: #232428;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,.55);
  animation: ppPop .18s ease;
}
@keyframes ppPop { from{transform:scale(.92);opacity:.5} to{transform:scale(1);opacity:1} }
.pp-banner { height: 100px; width: 100%; }
.pp-head {
  display: flex; align-items: flex-end; gap: 16px;
  padding: 0 16px;
  margin-top: -36px;
  position: relative;
}
.pp-avatar {
  width: 88px; height: 88px; border-radius: 50%;
  border: 6px solid #232428;
  background: #5865F2;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; font-weight: 700; color: #fff;
  flex-shrink: 0;
  box-sizing: border-box;
}
.pp-names { padding-bottom: 6px; min-width: 0; }
.pp-display { font-size: 20px; font-weight: 700; color: #f2f3f5; }
.pp-username { font-size: 14px; color: #b5bac1; margin-top: 2px; }
.pp-divider { height: 1px; background: rgba(255,255,255,.06); margin: 14px 16px; }
.pp-status {
  display: flex; align-items: center; gap: 8px;
  padding: 0 16px; font-size: 14px; color: #dbdee1;
}
.pp-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.pp-dot.status-online { background: #23a55a; }
.pp-dot.status-idle { background: #f0b232; }
.pp-dot.status-dnd { background: #f23f43; }
.pp-dot.status-offline { background: #80848e; }
.pp-bio-label {
  padding: 0 16px; font-size: 12px; font-weight: 700;
  color: #b5bac1; text-transform: uppercase; letter-spacing: .3px;
  margin-bottom: 6px;
}
.pp-bio { padding: 0 16px; font-size: 14px; color: #dbdee1; line-height: 1.45; white-space: pre-wrap; }
.pp-actions {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 0 16px 16px;
}
.pp-btn {
  flex: 1; min-width: 120px;
  padding: 9px 12px;
  border: none; border-radius: 3px;
  font-size: 14px; font-weight: 500;
  font-family: inherit; cursor: pointer;
  background: #4e5058; color: #fff;
  transition: background .15s ease;
}
.pp-btn:hover { background: #6d6f78; }
.pp-btn:disabled { opacity: .5; cursor: not-allowed; }
.pp-btn-primary { background: #5865F2; }
.pp-btn-primary:hover { background: #4752c4; }
.pp-btn-green { background: #248046; }
.pp-btn-green:hover { background: #1a6334; }
.pp-btn-danger { background: #da373c; }
.pp-btn-danger:hover { background: #a12828; }

/* ============ ВХОДЯЩИЙ ЗВОНОК ============ */
.ic-bg {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.7);
  display: flex; align-items: center; justify-content: center;
  z-index: 220;
  animation: ppFade .15s ease;
}
.ic-card {
  width: 320px;
  background: #232428;
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 12px 32px rgba(0,0,0,.55);
  animation: ppPop .18s ease;
}
.ic-avatar-wrap { margin-bottom: 14px; }
.ic-avatar {
  width: 84px; height: 84px; border-radius: 50%;
  margin: 0 auto;
  background: #5865F2;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 700; color: #fff;
  animation: icRing 1.2s ease-in-out infinite;
}
@keyframes icRing {
  0%,100% { box-shadow: 0 0 0 0 rgba(88,101,242,.5); }
  50% { box-shadow: 0 0 0 14px rgba(88,101,242,0); }
}
.ic-name { font-size: 20px; font-weight: 700; color: #f2f3f5; }
.ic-sub { font-size: 13px; color: #b5bac1; margin: 6px 0 20px; }
.ic-actions { display: flex; gap: 12px; justify-content: center; }
.ic-btn {
  width: 60px; height: 60px; border-radius: 50%;
  border: none; cursor: pointer;
  font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  transition: transform .12s ease;
}
.ic-btn:hover { transform: scale(1.08); }
.ic-accept { background: #248046; color: #fff; }
.ic-decline { background: #da373c; color: #fff; }
.dm-unread-badge {
  background: var(--red,#ed4245); color: #fff;
  border-radius: 10px; min-width: 18px; height: 18px;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px; margin-left: auto; flex-shrink: 0;
}

/* фикс обрезки последнего сообщения */
.chat-container { padding-bottom: 28px; }
.call-chat-list { padding-bottom: 24px; }
.cc-fix {}
