:root{
    --page-bg:#f3f6fb;
    --surface:#fff;
    --border:#dfe6ef;
    --text:#172b4d;
    --muted:#6a7a90;
    --blue:#1676ed;
    --blue-dark:#102a56;
    --blue-soft:#eaf3ff;
    --shadow:0 12px 35px rgba(32,57,89,.07);
}

*{box-sizing:border-box}
html{font-family:Arial,"Noto Sans Georgian",sans-serif;color:var(--text);background:var(--page-bg)}
body{margin:0;background:var(--page-bg)}
button,input,textarea,select{font:inherit}
.container{width:min(1180px,calc(100% - 40px));margin-inline:auto}
.site-header{background:#fff;border-bottom:1px solid #e1e7ef;position:sticky;top:0;z-index:20}
.nav-wrap{min-height:74px;display:flex;align-items:center;justify-content:space-between}
.brand{font-size:1.4rem;font-weight:800;color:var(--blue-dark);text-decoration:none}
.guest-nav{display:flex;align-items:center;gap:18px}
.guest-nav a{color:#344a67;text-decoration:none;font-weight:700}
.header-actions{display:flex;align-items:center;gap:18px}
.inline-form{display:inline;margin:0}
.notification-button,.logout-button{border:0;background:none;color:#344a67;cursor:pointer}
.notification-button{width:40px;height:40px;border-radius:50%;display:grid;place-items:center}
.notification-button:hover{background:#f0f5fb}
.notification-button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.logout-button{padding:8px 2px;font-weight:700}
.logout-button:hover{color:var(--blue)}

.page{padding:48px 0 80px}
.app-shell{display:grid;grid-template-columns:265px minmax(0,1fr);gap:24px;align-items:start;padding:26px 0 80px}
.app-content{min-width:0}
.account-sidebar{position:sticky;top:100px;background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:16px;box-shadow:var(--shadow)}
.sidebar-identity{display:flex;align-items:center;gap:12px;padding:2px 2px 15px}
.sidebar-user-avatar{width:52px;height:52px;border-radius:50%;object-fit:cover;display:grid;place-items:center;flex:0 0 auto}
.avatar-placeholder{background:#e9f2ff;color:#1878e8;font-size:1.4rem;font-weight:800}
.sidebar-user-copy{min-width:0;display:grid;gap:4px}
.sidebar-user-copy strong{font-size:.96rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sidebar-user-copy span{font-size:.74rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sidebar-divider{height:1px;background:#e5eaf2;margin:0 0 12px}
.sidebar-nav{display:grid;gap:7px}
.sidebar-nav-link{display:flex;align-items:center;gap:11px;min-height:48px;padding:9px 11px;border-radius:11px;color:#344a67;text-decoration:none;font-weight:700;font-size:.9rem}
.sidebar-nav-link:hover{background:#f2f7fd;color:#1766c5}
.sidebar-nav-link.is-active{background:#eaf3ff;color:#1766c5}
.sidebar-nav-icon{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#edf6ff;color:#1977dc;flex:0 0 auto}
.sidebar-nav-link.is-active .sidebar-nav-icon{background:#1680ed;color:#fff}
.sidebar-nav-icon svg{width:17px;height:17px;fill:currentColor}

.card{background:var(--surface);border:1px solid var(--border);border-radius:18px;padding:30px;box-shadow:var(--shadow)}
.hero{padding:70px;max-width:850px}
.hero h1{font-size:clamp(2.5rem,6vw,5rem);margin:10px 0}
.eyebrow{font-size:.8rem;letter-spacing:.13em;text-transform:uppercase;color:#1878e8;font-weight:800}
.muted{color:var(--muted)}
.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}
.button{display:inline-flex;align-items:center;justify-content:center;background:var(--blue);color:#fff;border:0;border-radius:10px;padding:13px 20px;text-decoration:none;font-weight:800;cursor:pointer}
.button:hover{filter:brightness(.96)}
.button:disabled{opacity:.65;cursor:not-allowed}
.button.secondary{background:#edf4ff;color:#1766c5}
.button.full{width:100%}
.button.small{padding:10px 14px}
.button.danger{background:#c83d3d}
.auth-grid{max-width:560px;margin:auto}
.auth-grid h1{margin-top:0}
form{display:grid;gap:16px}
label{display:grid;gap:7px;font-weight:700}
input,textarea,select{width:100%;border:1px solid #cad4e1;border-radius:10px;padding:13px;background:#fff;color:var(--text)}
input:focus,textarea:focus,select:focus{outline:3px solid rgba(22,118,237,.12);border-color:#6aa8ef}
.alert{padding:14px 16px;border-radius:10px;margin-bottom:20px}
.alert.success{background:#e9f8ef;color:#136c36}
.alert.error{background:#fff0f0;color:#9d2020}
.alert ul{margin:0;padding-left:20px}
.narrow{max-width:620px;margin:auto}

.profile-grid{display:grid;grid-template-columns:320px minmax(0,1fr);gap:24px}
.stack{display:grid;gap:24px}
.profile-card{text-align:center;height:max-content}
.avatar{width:112px;height:112px;border-radius:50%;object-fit:cover;margin:auto}
.avatar.placeholder{display:grid;place-items:center;background:#e9f2ff;color:#1878e8;font-size:2.5rem;font-weight:800}
.post-list{display:grid;gap:14px}
.post-item{border:1px solid #e2e8f0;border-radius:12px;padding:16px}
.status-badge{display:inline-block;padding:5px 9px;border-radius:999px;font-size:.75rem;font-weight:800;text-transform:uppercase;background:#edf1f5}
.status-badge.approved,.status-badge.active{background:#e5f8ec;color:#15733a}
.status-badge.rejected,.status-badge.blocked{background:#ffeaea;color:#9c2222}
.status-badge.pending{background:#fff4d7;color:#805d00}

.feed-column{width:100%;max-width:840px;display:grid;gap:20px;margin:0 auto}
.composer-card{padding:20px}
.composer-row{display:flex;gap:12px;align-items:flex-start}
.composer-row textarea{border:0;background:#f2f5f9;resize:vertical;min-height:90px}
.composer-actions{display:flex;gap:12px;align-items:center;justify-content:flex-end;margin-top:12px;border-top:1px solid #e6ebf2;padding-top:12px}
.upload-button{display:inline-flex;grid-auto-flow:column;align-items:center;gap:7px;color:#2f6f42;cursor:pointer;margin-right:auto}
.upload-button svg{width:18px;height:18px;fill:currentColor}
.selected-file{font-size:.85rem;max-width:230px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.form-message{margin-top:10px;font-weight:700}
.form-message.success{color:#15733a}
.form-message.error{color:#a32626}
.mini-avatar,.comment-avatar{width:44px;height:44px;border-radius:50%;object-fit:cover;display:grid;place-items:center;flex:0 0 auto;background:#e9f2ff;color:#1878e8;font-weight:800}
.comment-avatar{width:36px;height:36px}
.feed-post{padding:0;overflow:hidden}
.post-header{display:flex;gap:12px;align-items:center;padding:20px}
.post-header small{display:block;color:#77869b;margin-top:3px}
.post-body{padding:0 20px 18px;line-height:1.65;overflow-wrap:anywhere}
.post-image{display:block;width:100%;max-height:700px;object-fit:contain;background:#f5f7fa}
.comment-count{padding:13px 20px;border-bottom:1px solid #e6ebf2;color:#6a7a90;text-align:right}
.comments{padding:14px 20px 4px;display:grid;gap:10px}
.comment{display:flex;align-items:flex-start;gap:9px}
.comment.reply{margin-left:44px}
.comment-bubble{background:#f2f5f9;border-radius:13px;padding:9px 12px;min-width:0}
.comment-bubble strong{font-size:.9rem}
.comment-bubble p{margin:4px 0;line-height:1.45;overflow-wrap:anywhere}
.comment-bubble small{color:#7b8899}
.comment-form{display:grid;grid-template-columns:1fr auto;gap:10px;padding:14px 20px 20px}
.empty-state{text-align:center;padding:70px 30px}
.empty-icon{width:58px;height:58px;border-radius:50%;margin:0 auto 15px;display:grid;place-items:center;background:#eaf4ff;color:#1680eb}
.empty-icon svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}

.admin-header{display:flex;align-items:end;justify-content:space-between;margin-bottom:22px}
.admin-header h1{margin:6px 0 0}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:22px}
.stat-card{display:grid;gap:5px}
.stat-card strong{font-size:2rem}
.stat-card span{color:#6a7a90}
.admin-section{margin-bottom:22px}
.moderation-list{display:grid;gap:18px}
.moderation-item{border:1px solid #e1e7ef;border-radius:14px;padding-bottom:18px;overflow:hidden}
.moderation-item>p{padding:0 20px}
.admin-post-image{width:min(100%,620px);max-height:430px;object-fit:contain;display:block;margin:0 20px 18px;background:#f4f6f9;border-radius:12px}
.moderation-form{display:grid;grid-template-columns:minmax(180px,1fr) auto auto;gap:10px;padding:0 20px}
.table-wrap{overflow:auto}
table{width:100%;border-collapse:collapse}
th,td{text-align:left;padding:12px;border-bottom:1px solid #e3e9f1;white-space:nowrap}
th{color:#64748b;font-size:.82rem}
.table-action{border:0;background:none;color:#1766c5;font-weight:800;cursor:pointer}
.danger-text{color:#b42f2f}

@media(max-width:900px){
    .container{width:min(100% - 24px,760px)}
    .app-shell{grid-template-columns:1fr;padding-top:16px}
    .account-sidebar{position:static}
    .sidebar-nav{grid-template-columns:repeat(2,minmax(0,1fr))}
    .profile-grid{grid-template-columns:1fr}
    .stats-grid{grid-template-columns:repeat(2,1fr)}
}

@media(max-width:650px){
    .container{width:calc(100% - 20px)}
    .nav-wrap{min-height:64px}
    .brand{font-size:1.18rem}
    .header-actions{gap:10px}
    .page{padding-top:22px}
    .account-sidebar{padding:14px}
    .sidebar-nav{grid-template-columns:1fr}
    .composer-card,.post-header,.comments,.comment-form{padding-left:14px;padding-right:14px}
    .composer-actions{align-items:flex-start;flex-wrap:wrap}
    .selected-file{max-width:100%}
    .comment-form{grid-template-columns:1fr}
    .moderation-form{grid-template-columns:1fr}
    .stats-grid{grid-template-columns:1fr 1fr}
    .admin-header{align-items:flex-start;gap:14px}
}

/* Phase 3: notifications and profile security */
.notification-button{position:relative;text-decoration:none}
.notification-button.is-active{background:#eaf3ff;color:#1766c5}
.notification-badge{position:absolute;top:1px;right:0;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#e43b45;color:#fff;border:2px solid #fff;display:grid;place-items:center;font-size:.67rem;font-weight:800;line-height:1}
.notification-page{max-width:840px;margin:0 auto}
.notification-page-header{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:20px}
.notification-page-header h1{margin:6px 0 0}
.notification-page-header form{display:block}
.notification-list{display:grid;gap:10px}
.notification-item{display:flex;align-items:flex-start;gap:12px;padding:18px 20px;background:#fff;border:1px solid #dfe6ef;border-radius:14px;box-shadow:0 8px 24px rgba(32,57,89,.05);color:#233a59;text-decoration:none}
.notification-item:hover{border-color:#aacbf2}
.notification-item.is-unread{background:#f4f9ff;border-color:#c7def8}
.notification-dot{width:9px;height:9px;border-radius:50%;background:#b9c6d5;flex:0 0 auto;margin-top:6px}
.notification-item.is-unread .notification-dot{background:#1676ed}
.notification-copy{display:grid;gap:5px;min-width:0}
.notification-copy strong{font-size:.95rem}
.notification-copy span{color:#586b84;line-height:1.45}
.notification-copy small{color:#7b8899}
.profile-locked-note{padding:10px 12px;border-radius:10px;background:#f4f7fb;color:#5c6e86;font-size:.82rem;line-height:1.45}
.password-hint{margin:0;font-size:.84rem}
.moderation-note{padding:10px 12px;border-radius:10px;background:#fff7df;color:#6d5712}
@media(max-width:650px){.notification-page-header{align-items:flex-start;flex-direction:column}.notification-page-header form,.notification-page-header .button{width:100%}}

/* Phase 4: direct messages */
.sidebar-count-badge{margin-left:auto;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#e43b45;color:#fff;display:grid;place-items:center;font-size:.7rem;font-weight:800;line-height:1}
.sidebar-count-badge[hidden]{display:none}
.messages-page{display:grid;grid-template-columns:300px minmax(0,1fr);gap:20px;max-width:980px;margin:0 auto;align-items:stretch}
.messages-sidebar{padding:0;overflow:hidden;min-height:650px}
.messages-sidebar-header{padding:22px 22px 12px}
.messages-sidebar-header h1{margin:6px 0 0;font-size:1.45rem}
.message-search{padding:0 18px 18px;border-bottom:1px solid #e6ebf2;gap:8px}
.message-search label{font-size:.82rem;color:#5f7189}
.message-search-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.message-search-row input{padding:10px 11px}
.message-search-results{padding:14px 14px 4px;border-bottom:1px solid #e6ebf2}
.messages-section-title{padding:0 4px 9px;color:#687a91;font-size:.76rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase}
.message-no-results{margin:0 4px 14px;font-size:.86rem}
.message-user-result{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 8px;border-radius:11px}
.message-user-result:hover{background:#f4f8fd}
.message-user-copy,.conversation-copy{display:grid;gap:3px;min-width:0}
.message-user-copy strong,.conversation-copy strong{font-size:.88rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.message-user-copy small,.conversation-copy small{color:#75859a;font-size:.73rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.message-start-button{width:34px;height:34px;border:0;border-radius:50%;background:#eaf3ff;color:#1766c5;display:grid;place-items:center;cursor:pointer}
.message-start-button:hover{background:#1766c5;color:#fff}
.message-start-button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.message-list-avatar,.chat-header-avatar,.chat-message-avatar{border-radius:50%;object-fit:cover;display:grid;place-items:center;flex:0 0 auto}
.message-list-avatar{width:42px;height:42px;font-size:1rem}
.chat-header-avatar{width:46px;height:46px;font-size:1.1rem}
.chat-message-avatar{width:32px;height:32px;font-size:.82rem;margin-top:auto}
.conversation-list-wrap{padding:14px}
.conversation-list{display:grid;gap:5px}
.conversation-link{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 9px;border-radius:12px;color:#263b59;text-decoration:none}
.conversation-link:hover{background:#f4f8fd}
.conversation-link.is-active{background:#eaf3ff}
.conversation-unread{min-width:21px;height:21px;padding:0 6px;border-radius:999px;background:#1676ed;color:#fff;display:grid;place-items:center;font-size:.68rem;font-weight:800}
.message-empty-list{padding:18px 8px;color:#687a91;text-align:center}
.message-empty-list p{margin:0 0 5px;font-weight:700;color:#40536d}
.message-empty-list small{line-height:1.45}
.chat-card{padding:0;overflow:hidden;min-height:650px;display:flex;flex-direction:column}
.chat-header{display:flex;align-items:center;gap:12px;padding:17px 20px;border-bottom:1px solid #e6ebf2;background:#fff}
.chat-header div{display:grid;gap:4px}
.chat-header strong{font-size:.98rem}
.chat-header span{font-size:.76rem;color:#6f8095}
.chat-stream{flex:1;min-height:430px;max-height:560px;overflow-y:auto;padding:20px;display:flex;flex-direction:column;gap:12px;background:#f7f9fc;scroll-behavior:smooth}
.chat-message{display:flex;align-items:flex-end;gap:8px;max-width:82%}
.chat-message.is-own{margin-left:auto;justify-content:flex-end}
.chat-message.is-other{margin-right:auto}
.chat-message-content{display:grid;gap:4px;min-width:0}
.chat-message.is-own .chat-message-content{justify-items:end}
.chat-bubble{padding:10px 13px;border-radius:15px;background:#fff;border:1px solid #e2e8f0;line-height:1.45;overflow-wrap:anywhere;white-space:pre-wrap}
.chat-message.is-own .chat-bubble{background:#1676ed;color:#fff;border-color:#1676ed;border-bottom-right-radius:5px}
.chat-message.is-other .chat-bubble{border-bottom-left-radius:5px}
.chat-message-content small{color:#8190a3;font-size:.68rem;padding:0 3px}
.chat-first-message{margin:auto;text-align:center;color:#6f8095}
.chat-first-message p{margin:0 0 4px;font-weight:700;color:#40536d}
.chat-empty-state{margin:auto;max-width:360px;text-align:center;padding:40px 24px}
.chat-empty-state h2{margin:16px 0 8px}
.chat-empty-state p{line-height:1.55}
.chat-empty-icon{width:68px;height:68px;border-radius:50%;display:grid;place-items:center;margin:auto;background:#eaf3ff;color:#1766c5}
.chat-empty-icon svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.chat-compose{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:14px 16px;border-top:1px solid #e6ebf2;background:#fff}
.chat-compose textarea{min-height:48px;max-height:150px;resize:vertical;padding:12px 14px;padding-right:14px}
.chat-send-button{width:48px;height:48px;border:0;border-radius:50%;background:#1676ed;color:#fff;display:grid;place-items:center;cursor:pointer;align-self:end}
.chat-send-button:hover{filter:brightness(.95)}
.chat-send-button:disabled{opacity:.6;cursor:not-allowed}
.chat-send-button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.chat-compose .form-message{grid-column:1/-1;margin:0;font-size:.82rem}
.chat-disabled-note{padding:17px 20px;border-top:1px solid #e6ebf2;background:#fff7df;color:#6d5712;text-align:center}
@media(max-width:1080px){.messages-page{grid-template-columns:270px minmax(0,1fr)}}
@media(max-width:900px){.messages-page{grid-template-columns:1fr}.messages-sidebar{min-height:0}.chat-card{min-height:600px}.chat-stream{max-height:500px}}
@media(max-width:650px){.messages-page{gap:14px}.messages-sidebar-header{padding:18px 16px 10px}.message-search{padding:0 12px 14px}.conversation-list-wrap,.message-search-results{padding-left:10px;padding-right:10px}.chat-card{min-height:540px}.chat-stream{min-height:350px;padding:14px}.chat-message{max-width:92%}.chat-compose{padding:11px}.message-search-row{grid-template-columns:1fr}.message-search-row .button{width:100%}}

/* === MESSENGER_UNIFIED_START === */

/*
 * ერთიანი Messenger-ის მსგავსი ფანჯარა.
 * მარცხენა საუბრები და მარჯვენა ჩატი ერთ საერთო ბლოკშია.
 */
.messages-page{
    display:grid !important;
    grid-template-columns:330px minmax(0,1fr) !important;
    gap:0 !important;
    width:100% !important;
    max-width:1180px !important;
    min-height:700px;
    margin:0 auto !important;
    background:#fff;
    border:1px solid #dfe3e9;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 10px 32px rgba(31,49,74,.08);
}

/* ვაუქმებთ ორივე შიდა პანელის ცალკე card იერსახეს */
.messages-page > .messages-sidebar,
.messages-page > .chat-card{
    margin:0 !important;
    border:0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
    min-height:700px !important;
}

/* მარცხენა პანელი */
.messages-page > .messages-sidebar{
    border-right:1px solid #e4e6eb !important;
    background:#fff;
    overflow-y:auto;
}

.messages-sidebar-header{
    padding:22px 20px 12px !important;
}

.messages-sidebar-header .eyebrow{
    display:none;
}

.messages-sidebar-header h1{
    margin:0 !important;
    font-size:1.65rem !important;
    line-height:1.2;
    color:#050505;
}

/* ძებნა — Facebook/Messenger-ის მსგავსი რბილი ველი */
.message-search{
    padding:8px 14px 16px !important;
    border-bottom:1px solid #e4e6eb !important;
}

.message-search > label{
    display:none;
}

.message-search-row{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    gap:8px !important;
}

.message-search-row input{
    height:42px;
    padding:0 15px !important;
    border:0 !important;
    border-radius:999px !important;
    background:#f0f2f5 !important;
    box-shadow:none !important;
}

.message-search-row input:focus{
    outline:2px solid rgba(24,119,242,.22);
    background:#fff !important;
}

.message-search-row .button{
    min-width:76px;
    height:42px;
    padding:0 15px !important;
    border-radius:999px !important;
}

/* საუბრები */
.conversation-list-wrap{
    padding:12px 8px 18px !important;
}

.messages-section-title{
    padding:5px 10px 9px !important;
    color:#65676b !important;
    font-size:.75rem !important;
}

.conversation-list{
    gap:2px !important;
}

.conversation-link{
    min-height:66px;
    padding:9px 10px !important;
    border-radius:10px !important;
    color:#050505 !important;
}

.conversation-link:hover{
    background:#f2f2f2 !important;
}

.conversation-link.is-active{
    background:#e7f3ff !important;
}

.message-list-avatar{
    width:48px !important;
    height:48px !important;
}

.conversation-copy strong{
    color:#050505;
    font-size:.92rem !important;
}

.conversation-copy small{
    color:#65676b !important;
    font-size:.76rem !important;
}

.conversation-unread{
    background:#1877f2 !important;
}

/* მარჯვენა ჩატი */
.messages-page > .chat-card{
    background:#fff !important;
    overflow:hidden;
}

.chat-header{
    min-height:72px;
    padding:12px 18px !important;
    border-bottom:1px solid #e4e6eb !important;
    box-shadow:0 1px 2px rgba(0,0,0,.04);
}

.chat-header-avatar{
    width:44px !important;
    height:44px !important;
}

.chat-header strong{
    color:#050505;
    font-size:1rem !important;
}

.chat-header span{
    color:#65676b !important;
}

/* შეტყობინებების არე */
.chat-stream{
    flex:1;
    min-height:520px !important;
    max-height:620px !important;
    padding:20px 18px !important;
    gap:8px !important;
    background:#fff !important;
}

.chat-message{
    max-width:72% !important;
}

.chat-bubble{
    padding:9px 13px !important;
    border:0 !important;
    border-radius:18px !important;
    background:#e4e6eb !important;
    color:#050505;
    line-height:1.42;
}

.chat-message.is-own .chat-bubble{
    background:#1877f2 !important;
    color:#fff !important;
    border-radius:18px !important;
    border-bottom-right-radius:5px !important;
}

.chat-message.is-other .chat-bubble{
    border-bottom-left-radius:5px !important;
}

.chat-message-content small{
    color:#8a8d91 !important;
}

/* ქვედა ტექსტის ველი */
.chat-compose{
    grid-template-columns:minmax(0,1fr) 44px !important;
    gap:9px !important;
    padding:12px 14px !important;
    border-top:1px solid #e4e6eb !important;
    background:#fff !important;
}

.chat-compose textarea{
    min-height:44px !important;
    max-height:120px !important;
    padding:11px 16px !important;
    border:0 !important;
    border-radius:22px !important;
    background:#f0f2f5 !important;
    resize:none !important;
    box-shadow:none !important;
}

.chat-compose textarea:focus{
    outline:2px solid rgba(24,119,242,.18);
    background:#fff !important;
}

.chat-send-button{
    width:44px !important;
    height:44px !important;
    background:#1877f2 !important;
}

/* ცარიელი ჩატი */
.chat-empty-state{
    margin:auto !important;
}

.chat-empty-icon{
    background:#e7f3ff !important;
    color:#1877f2 !important;
}

.chat-empty-state h2{
    color:#050505;
}

/* ძიების შედეგები */
.message-search-results{
    padding:12px 8px !important;
    border-bottom:1px solid #e4e6eb !important;
}

.message-user-result{
    padding:9px 10px !important;
}

.message-user-result:hover{
    background:#f2f2f2 !important;
}

/* ტაბლეტი */
@media(max-width:1050px){
    .messages-page{
        grid-template-columns:290px minmax(0,1fr) !important;
    }

    .chat-message{
        max-width:82% !important;
    }
}

/* მობილური */
@media(max-width:760px){
    .messages-page{
        grid-template-columns:1fr !important;
        min-height:0;
        border-radius:14px;
    }

    .messages-page > .messages-sidebar{
        min-height:0 !important;
        border-right:0 !important;
        border-bottom:1px solid #e4e6eb !important;
    }

    .messages-page > .chat-card{
        min-height:560px !important;
    }

    .chat-stream{
        min-height:390px !important;
        max-height:500px !important;
    }

    .chat-message{
        max-width:88% !important;
    }
}

/* === MESSENGER_UNIFIED_END === */
