/* ==========================================================================
   Netchat — εφαρμογή συνομιλιών (mobile-first)
   ========================================================================== */

html, body.nc-app-body { height: 100%; }
body.nc-app-body {
	background: var(--nc-sky-light);
	overflow: hidden;
	overscroll-behavior: none;
}
.nc-app { height: 100vh; height: 100dvh; display: flex; flex-direction: column; }

.nc-splash { margin: auto; text-align: center; color: var(--nc-blue); font-weight: 700; font-size: 22px; }
.nc-splash img { animation: nc-pulse 1.4s ease-in-out infinite; border-radius: 18px; }
@keyframes nc-pulse { 50% { transform: scale(.92); opacity: .8; } }
.nc-noscript { padding: 20px; text-align: center; }

.nc-ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nc-btn-reset { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.nc-muted { color: var(--nc-muted); font-size: 14px; }
.nc-center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.nc-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.nc-danger { color: var(--nc-danger) !important; }
.nc-btn-danger { background: var(--nc-danger); color: #fff; }
.nc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ---------- Είσοδος / ρύθμιση κλειδιών ---------- */
.nc-auth {
	flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
	display: flex; flex-direction: column; align-items: center;
	padding: calc(28px + var(--safe-top)) 16px calc(28px + var(--safe-bottom));
	background: linear-gradient(160deg, var(--nc-blue) 0%, var(--nc-blue-dark) 45%, var(--nc-sky-light) 45.1%);
}
.nc-auth-brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-size: 28px; margin: 8px 0 24px; }
.nc-auth-brand strong { color: var(--nc-orange); }
.nc-auth-brand img { border-radius: 14px; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.nc-auth-card { width: 100%; max-width: 420px; }
.nc-auth-card h2 { margin: 6px 0 10px; text-align: center; }
.nc-auth-card > p { color: var(--nc-muted); text-align: center; }
.nc-auth-card .btn-ghost { border-color: transparent; margin-top: 6px; }
.nc-auth-foot { color: var(--nc-muted); font-size: 14px; margin-top: 18px; }
.nc-key-icon { font-size: 44px; text-align: center; }

.nc-card { background: #fff; border-radius: var(--nc-radius); box-shadow: var(--nc-shadow-sm); padding: 20px; margin-bottom: 14px; }
.nc-card h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 17px; }
.nc-card .btn-block + .btn-block { margin-top: 8px; }

.nc-tabs { display: flex; background: var(--nc-sky-light); border-radius: 999px; padding: 4px; margin-bottom: 18px; }
.nc-tab { flex: 1; text-align: center; padding: 10px; border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--nc-muted); }
.nc-tab.active { background: #fff; color: var(--nc-blue); box-shadow: var(--nc-shadow-sm); }

.nc-form { display: flex; flex-direction: column; gap: 14px; }
.nc-field { display: flex; flex-direction: column; gap: 6px; }
.nc-label { font-size: 14px; font-weight: 600; color: var(--nc-blue-dark); }
.nc-hint { color: var(--nc-muted); font-size: 13px; }
.nc-app input[type=text], .nc-app input[type=email], .nc-app input[type=password], .nc-app input[type=tel], .nc-app input[type=search], .nc-app textarea,
.nc-modal input[type=text], .nc-modal input[type=password], .nc-modal input[type=search] {
	width: 100%; min-height: 48px; padding: 12px 14px;
	border: 2px solid var(--nc-border); border-radius: var(--nc-radius-sm);
	background: #fff; color: var(--nc-text);
	font: inherit; font-size: 16px; /* 16px: αποτρέπει το zoom του iOS */
	transition: border-color .15s, box-shadow .15s;
	-webkit-appearance: none; appearance: none;
}
.nc-app input:focus, .nc-app textarea:focus, .nc-modal input:focus { outline: none; border-color: var(--nc-sky); box-shadow: 0 0 0 4px rgba(47,168,224,.18); }
.nc-form-msg { min-height: 1px; font-size: 14px; color: var(--nc-muted); }
.nc-form-msg.err { color: var(--nc-danger); }
.nc-form-msg.ok { color: var(--nc-ok); }
.nc-link-small { text-align: center; font-size: 14px; }
.nc-inline-form { display: flex; gap: 8px; width: 100%; }
.nc-inline-form input { flex: 1; min-width: 0; }

.nc-alert { border-radius: var(--nc-radius-sm); padding: 12px 14px; font-size: 14px; margin-bottom: 14px; }
.nc-alert-info { background: var(--nc-sky-light); color: var(--nc-blue-dark); }
.nc-alert-ok { background: #e3f7ee; color: #0c6b44; }
.nc-alert-err { background: #fde8e8; color: #9e1f1f; }
.nc-alert-warn { background: #fff3e6; color: #8a4500; border: 1px solid #ffd2a6; }

/* ---------- Κέλυφος ---------- */
/* Header σε όλο το πλάτος */
.nc-top {
	display: flex; align-items: center; gap: 10px; flex: none;
	padding: calc(8px + var(--safe-top)) 12px 8px; min-height: calc(60px + var(--safe-top));
	background: var(--nc-blue); color: #fff; position: relative; z-index: 30;
	box-shadow: 0 2px 10px rgba(13,43,107,.18);
}
.nc-top .nc-icon-btn { color: #fff; }
.nc-top .nc-icon-btn:hover { background: rgba(255,255,255,.15); }
.nc-top-brand { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-size: 21px; flex: none; }
.nc-top-brand strong { color: var(--nc-orange); }
.nc-top-brand img { border-radius: 9px; background: #fff; }
.nc-top-search {
	flex: 1; min-width: 0; max-width: 560px; margin: 0 auto;
	display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 16px;
	border-radius: 999px; background: rgba(255,255,255,.16); color: rgba(255,255,255,.85);
	text-decoration: none; font-size: 15px; transition: background .15s;
}
.nc-top-search:hover, .nc-top-search.active { background: rgba(255,255,255,.26); color: #fff; }
.nc-top-search .nc-ico { width: 20px; height: 20px; }
.nc-top-search-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nc-top-me { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; flex: none; padding: 3px; border-radius: 999px; }
.nc-top-me:hover { background: rgba(255,255,255,.15); }
.nc-top-me .nc-avatar-sm { box-shadow: 0 0 0 2px #fff; }
.nc-top-me-name { display: none; font-weight: 600; max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nc-shell { flex: 1; display: flex; min-height: 0; position: relative; }
.nc-side, .nc-main { min-height: 0; display: flex; flex-direction: column; }
.nc-main { flex: 1; width: 100%; background: var(--nc-sky-light); }
.nc-scrim { display: none; }

/* Κινητό: το μενού ως συρτάρι */
.nc-side {
	position: fixed; top: 0; bottom: 0; left: 0; z-index: 60;
	width: min(320px, 86vw); background: #fff;
	padding-top: var(--safe-top);
	transform: translateX(-102%); transition: transform .22s ease, visibility .22s;
	visibility: hidden;
}
.nc-app.menu-open .nc-side { transform: none; visibility: visible; box-shadow: 0 0 40px rgba(13,43,107,.25); }
.nc-app.menu-open .nc-scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(13,43,107,.45); }
/* Κινητό: μέσα σε συνομιλία κρύβεται ο header */
.nc-app.in-chat .nc-top { display: none; }
@media (max-width: 599px) {
	.nc-top-search { flex: none; width: 42px; padding: 0; justify-content: center; margin: 0 0 0 auto; background: transparent; }
	.nc-top-search-text { display: none; }
	.nc-top-brand { font-size: 19px; }
}

.nc-icon-btn {
	display: inline-grid; place-items: center; width: 42px; height: 42px; flex: none;
	border: 0; border-radius: 50%; background: transparent; color: var(--nc-blue); cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.nc-icon-btn:hover { background: var(--nc-sky-light); }
.nc-icon-btn:focus-visible { outline: 3px solid var(--nc-sky); }

.nc-badge {
	display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px;
	border-radius: 999px; background: var(--nc-orange); color: #fff; font-size: 12px; font-weight: 700;
}
.nc-badge-accent { background: var(--nc-sky); }

/* ---------- Λίστες ---------- */
.nc-list { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: calc(90px + var(--safe-bottom)); }
.nc-list-plain { padding-bottom: 0; overflow: visible; }
.nc-list-label { padding: 16px 16px 6px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--nc-muted); }
.nc-item {
	display: flex; align-items: center; gap: 12px; width: 100%;
	padding: 10px 16px; min-height: 68px;
	text-decoration: none; color: var(--nc-text);
	border-bottom: 1px solid #f0f5fb; background: #fff;
	-webkit-tap-highlight-color: transparent;
}
a.nc-item:hover, .nc-item-check:hover { background: #f6faff; }
.nc-item.active { background: var(--nc-sky-light); box-shadow: inset 4px 0 0 var(--nc-orange); }
.nc-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nc-item-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nc-item-sub { font-size: 14px; color: var(--nc-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nc-item.unread .nc-item-title { color: var(--nc-blue-dark); }
.nc-item.unread .nc-item-sub { color: var(--nc-text); font-weight: 600; }
.nc-item-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.nc-item-time { font-size: 12px; color: var(--nc-muted); }
.nc-item.unread .nc-item-time { color: var(--nc-orange-dark); font-weight: 600; }
.nc-item-actions { display: flex; gap: 6px; align-items: center; }
.nc-item-muted { opacity: .75; }
.nc-item-request { background: #fffaf4; }
.nc-item-check { cursor: pointer; }
.nc-item-check input { width: 22px; height: 22px; accent-color: var(--nc-orange); flex: none; }
.nc-item-plain { padding-left: 0; padding-right: 0; min-height: 56px; }
.nc-picker { max-height: 46vh; overflow-y: auto; border: 1px solid var(--nc-border); border-radius: var(--nc-radius-sm); margin-bottom: 14px; }
.nc-search { margin-bottom: 10px; }

.nc-avatar {
	display: inline-grid; place-items: center; flex: none;
	width: 48px; height: 48px; border-radius: 50%;
	color: #fff; font-weight: 700; font-size: 19px; user-select: none;
}
.nc-avatar-group { background: linear-gradient(135deg, var(--nc-sky), var(--nc-blue)); font-size: 22px; }
.nc-avatar-sm { width: 36px; height: 36px; font-size: 15px; }
.nc-avatar-xs { width: 28px; height: 28px; font-size: 12px; align-self: flex-end; }
.nc-avatar-lg { width: 88px; height: 88px; font-size: 36px; box-shadow: var(--nc-shadow); }
.nc-avatar-spacer { width: 28px; flex: none; }

.nc-empty { text-align: center; padding: 48px 24px; color: var(--nc-muted); }
.nc-empty-sm { padding: 20px; }
.nc-empty-icon { font-size: 48px; }
.nc-loading { text-align: center; padding: 24px; color: var(--nc-muted); }

.nc-fab {
	position: absolute; right: 18px; bottom: calc(18px + var(--safe-bottom));
	width: 58px; height: 58px; border-radius: 50%; border: 0;
	background: var(--nc-orange); color: #fff; cursor: pointer;
	display: grid; place-items: center;
	box-shadow: 0 10px 24px rgba(255,138,31,.45);
}
.nc-fab .nc-ico { width: 28px; height: 28px; stroke-width: 2.5; }
.nc-fab:active { transform: scale(.95); }

/* ---------- Κύριο τμήμα ---------- */
.nc-pane-head {
	display: flex; align-items: center; gap: 6px;
	padding: calc(8px + var(--safe-top)) 8px 8px;
	background: #fff; border-bottom: 1px solid var(--nc-border);
	min-height: calc(60px + var(--safe-top));
}
.nc-pane-title { margin: 0; font-size: 18px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nc-pane-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px 14px calc(24px + var(--safe-bottom)); }
.nc-pane-body > * { max-width: 640px; margin-left: auto; margin-right: auto; }
.nc-pane-body > .nc-center { margin-bottom: 18px; }
.nc-pane-body h2 { margin: 6px 0; }

.nc-welcome { margin: auto; text-align: center; padding: 24px; color: var(--nc-muted); }
.nc-welcome img { border-radius: 24px; box-shadow: var(--nc-shadow); }

/* ---------- Συνομιλία ---------- */
.nc-chat { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.nc-chat-head { gap: 4px; }
.nc-chat-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 4px; border-radius: 10px; }
.nc-chat-who-text { min-width: 0; display: flex; flex-direction: column; }
.nc-chat-title { font-weight: 700; color: var(--nc-blue-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nc-chat-sub { font-size: 12px; color: var(--nc-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nc-messages {
	flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
	padding: 12px 10px 34px; /* σταθερός χώρος κάτω για την ένδειξη «γράφει» */
	background-color: var(--nc-sky-light);
	background-image: radial-gradient(rgba(30,91,216,.06) 1px, transparent 1px);
	background-size: 18px 18px;
}
.nc-e2e-note {
	max-width: 420px; margin: 4px auto 14px; padding: 10px 14px; border-radius: 12px;
	background: #fff8ec; color: #7a4a00; font-size: 13px; text-align: center; border: 1px solid #ffe1b8;
}
.nc-day { text-align: center; margin: 14px 0 8px; }
.nc-day { font-size: 12px; font-weight: 600; color: var(--nc-muted); }
.nc-sys { text-align: center; font-size: 13px; color: var(--nc-muted); margin: 8px auto; padding: 4px 12px; background: rgba(255,255,255,.7); border-radius: 999px; width: fit-content; max-width: 90%; }

.nc-msg { display: flex; gap: 6px; margin: 2px 0; align-items: flex-end; }
.nc-msg.out { justify-content: flex-end; }
.nc-bubble {
	max-width: min(78%, 560px); padding: 7px 12px 5px; border-radius: 18px;
	background: #fff; box-shadow: 0 1px 2px rgba(13,43,107,.10);
	word-wrap: break-word; overflow-wrap: anywhere;
}
.nc-msg.in .nc-bubble { border-bottom-left-radius: 6px; }
.nc-msg.out .nc-bubble { background: var(--nc-blue); color: #fff; border-bottom-right-radius: 6px; }
.nc-msg.out .nc-bubble a { color: #fff; }
.nc-msg.pending .nc-bubble { opacity: .7; }
.nc-msg.failed .nc-bubble { background: var(--nc-danger); cursor: pointer; }
.nc-msg-name { font-size: 13px; font-weight: 700; margin-bottom: 1px; }
.nc-msg-text { white-space: pre-wrap; font-size: 16px; line-height: 1.4; }
.nc-msg-meta { font-size: 11px; text-align: right; opacity: .65; margin-top: 2px; display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.nc-msg.out .nc-msg-meta { opacity: 1; color: rgba(255,255,255,.72); }
/* Ενδείξεις ανάγνωσης */
.nc-tick { display: inline-grid; place-items: center; line-height: 0; }
.nc-tick .nc-ico { width: 16px; height: 16px; stroke-width: 2.4; }
.nc-tick-sent { color: rgba(255,255,255,.55); }           /* γκρι: δεν διαβάστηκε */
.nc-msg.in .nc-tick-sent { color: #9aa8bd; }
.nc-tick-read { color: #6ff7cf; filter: drop-shadow(0 0 3px rgba(111,247,207,.55)); } /* διαβάστηκε */
.nc-tick-new { animation: nc-tick-pop .4s ease-out; }
.nc-tick-read .nc-ico { width: 19px; }
.nc-tick-pending .nc-ico { width: 13px; height: 13px; opacity: .7; }
@keyframes nc-tick-pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.25); } 100% { transform: scale(1); opacity: 1; } }
.nc-msg-deleted { font-style: italic; opacity: .7; }
.nc-msg-error { font-style: italic; color: var(--nc-orange-dark); font-size: 14px; }
.nc-msg.out .nc-msg-error { color: #ffe0c2; }

.nc-composer {
	display: flex; align-items: flex-end; gap: 8px;
	padding: 8px 10px calc(8px + var(--safe-bottom));
	background: #fff; border-top: 1px solid var(--nc-border);
}
.nc-app .nc-composer-input {
	flex: 1; resize: none; min-height: 44px; max-height: 140px;
	padding: 10px 16px; border-radius: 22px; line-height: 1.4;
	background: var(--nc-sky-light); border-color: transparent;
}
.nc-send {
	width: 46px; height: 46px; flex: none; border: 0; border-radius: 50%;
	background: var(--nc-orange); color: #fff; cursor: pointer; display: grid; place-items: center;
	box-shadow: 0 4px 12px rgba(255,138,31,.4);
}
.nc-send:active { transform: scale(.94); }
.nc-send .nc-ico { width: 22px; height: 22px; fill: #fff; stroke: #fff; }

/* ---------- Αρχεία (απευθείας αποστολή) ---------- */
.nc-attach { width: 44px; height: 44px; align-self: flex-end; }
.nc-chat { position: relative; }
.nc-chat.nc-drop::after {
	content: "Αφήστε εδώ για απευθείας αποστολή"; position: absolute; inset: 8px; z-index: 5;
	display: grid; place-items: center; border: 3px dashed var(--nc-sky); border-radius: 18px;
	background: rgba(234,246,253,.92); color: var(--nc-blue); font-weight: 700; font-size: 18px; pointer-events: none;
}
.nc-file { min-width: 220px; max-width: 320px; }
.nc-file-media { display: block; margin: -2px -6px 6px; border-radius: 14px; overflow: hidden; background: rgba(0,0,0,.06); }
.nc-file-media img, video.nc-file-media { display: block; width: 100%; max-height: 360px; object-fit: contain; }
video.nc-file-media { margin: -2px 0 6px; width: 100%; }
.nc-file audio { width: 100%; margin-bottom: 4px; }
.nc-file-row { display: flex; align-items: center; gap: 10px; }
.nc-file-icon { width: 42px; height: 42px; flex: none; border-radius: 10px; display: grid; place-items: center; background: rgba(30,91,216,.1); color: var(--nc-blue); }
.nc-msg.out .nc-file-icon { background: rgba(255,255,255,.18); color: #fff; }
.nc-file-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nc-file-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nc-file-size { font-size: 12px; opacity: .7; }
.nc-file-dl { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; color: inherit; background: rgba(30,91,216,.1); }
.nc-msg.out .nc-file-dl { background: rgba(255,255,255,.18); color: #fff; }
.nc-file-dl .nc-ico { width: 18px; height: 18px; }
.nc-file-get { background: var(--nc-orange); color: #fff; flex: none; }
.nc-file-get .nc-ico { width: 16px; height: 16px; vertical-align: -3px; }
.nc-file-status { font-size: 12px; margin-top: 6px; opacity: .8; line-height: 1.35; }
.nc-file-err { color: var(--nc-danger); opacity: 1; }
.nc-msg.out .nc-file-err { color: #ffe0c2; }
.nc-file-bar { height: 5px; border-radius: 3px; background: rgba(30,91,216,.15); margin-top: 8px; overflow: hidden; }
.nc-file-bar span { display: block; height: 100%; width: 0; background: var(--nc-orange); transition: width .2s; }
.nc-file-caption { margin-top: 6px; }

.nc-msg-warn { margin-top: 4px; font-size: 12px; font-style: italic; color: var(--nc-orange-dark); }
.nc-msg.out .nc-msg-warn { color: #ffe0c2; }
.nc-gen:empty { display: none; }
.nc-gen { display: flex; flex-direction: column; gap: 6px; }
.nc-gen .nc-fp { margin: 0; font-size: 17px; text-align: center; user-select: all; }

.nc-checklist { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.nc-checklist li { position: relative; padding-left: 26px; }
.nc-checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: #e3f7ee; color: var(--nc-ok); font-size: 12px; font-weight: 700; display: grid; place-items: center; }

.nc-avatar-photo { background: #e8eef7; overflow: hidden; }
.nc-avatar-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nc-profile-head { align-items: flex-start; }
.nc-profile-head .nc-row-start { justify-content: flex-start; margin: 10px 0 6px; }
.nc-row-start .btn .nc-ico { width: 16px; height: 16px; vertical-align: -3px; }
.nc-profile-head .nc-hint { display: block; line-height: 1.45; }
@media (max-width: 520px) {
	.nc-profile-head { flex-direction: column; align-items: center; text-align: center; }
	.nc-profile-head .nc-row-start { justify-content: center; }
}

/* ---------- «Γράφει…» ---------- */
.nc-typing { color: var(--nc-ok) !important; font-weight: 600; font-style: normal; display: inline-flex; align-items: center; gap: 3px; }
.nc-item .nc-typing { font-size: 13px; }
.nc-dots { display: inline-flex; gap: 3px; margin-left: 2px; }
.nc-dots i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; animation: nc-dot 1.2s infinite ease-in-out; }
.nc-dots i:nth-child(2) { animation-delay: .15s; }
.nc-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes nc-dot { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .nc-dots i { animation: none; opacity: .8; } }

.nc-typing-bar {
	position: absolute; left: 12px; bottom: calc(66px + var(--safe-bottom)); z-index: 3;
	display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 24px);
	padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.92);
	color: var(--nc-ok); font-size: 12px; font-weight: 600; box-shadow: 0 1px 4px rgba(13,43,107,.12);
	opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity .2s, transform .2s;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nc-typing-bar.show { opacity: 1; transform: none; }
.nc-typing-bar .nc-dots i { width: 3px; height: 3px; }
.nc-unread-divider { display: flex; align-items: center; gap: 10px; margin: 14px 0 8px; color: var(--nc-orange-dark); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.nc-unread-divider::before, .nc-unread-divider::after { content: ""; flex: 1; height: 1px; background: #ffc994; }
.nc-unread-divider span { background: #fff3e6; padding: 3px 10px; border-radius: 999px; }
.nc-new-pill {
	position: absolute; left: 50%; bottom: calc(76px + var(--safe-bottom)); z-index: 4;
	transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
	display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 0; border-radius: 999px;
	background: var(--nc-orange); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
	box-shadow: 0 6px 18px rgba(255,138,31,.4); transition: opacity .2s, transform .2s;
}
.nc-new-pill.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.nc-new-pill .nc-ico { width: 18px; height: 18px; }

/* ---------- Προβολή εικόνας ---------- */
button.nc-file-media { display: block; width: calc(100% + 12px); cursor: zoom-in; }
.nc-viewer { position: fixed; inset: 0; z-index: 3000; background: rgba(5,12,30,.97); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: flex; flex-direction: column; animation: nc-fade .15s ease-out; }
.nc-viewer-bar { display: flex; align-items: center; gap: 6px; padding: calc(8px + var(--safe-top)) 10px 8px 16px; color: #fff; }
.nc-viewer-bar .nc-icon-btn { color: #fff; }
.nc-viewer-bar .nc-icon-btn:hover { background: rgba(255,255,255,.15); }
.nc-viewer-name { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nc-viewer-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 8px 8px calc(16px + var(--safe-bottom)); overflow: auto; }
.nc-viewer-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.5); cursor: zoom-in; }
.nc-viewer-img.zoom { max-width: none; max-height: none; cursor: zoom-out; }
body.nc-noscroll { overflow: hidden; }

/* ---------- Αποτύπωμα ---------- */
.nc-fp {
	display: block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 15px; letter-spacing: .05em; line-height: 1.8;
	background: var(--nc-sky-light); border-radius: 10px; padding: 10px 12px; margin: 4px 0 10px;
	word-spacing: .3em; color: var(--nc-blue-dark);
}
.nc-fp-label { font-size: 13px; font-weight: 700; color: var(--nc-muted); margin-top: 6px; }

.nc-invite-out { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.nc-invite-out:empty { display: none; }
.nc-picked { margin-top: 12px; }

/* ---------- Modal ---------- */
.nc-modal {
	position: fixed; inset: 0; z-index: 1000;
	background: rgba(13,43,107,.45);
	display: flex; align-items: flex-end; justify-content: center;
	animation: nc-fade .15s ease-out;
}
.nc-modal-card {
	width: 100%; max-width: 480px; max-height: 88vh; overflow-y: auto;
	background: #fff; border-radius: 22px 22px 0 0;
	padding: 6px 18px calc(18px + var(--safe-bottom));
	animation: nc-up .2s ease-out;
}
.nc-modal-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: #fff; padding: 8px 0; }
.nc-modal-head h3 { margin: 0; font-size: 18px; }
.nc-modal-body .nc-card { box-shadow: none; padding: 0; }
.nc-modal-body .btn-block + .btn-block { margin-top: 8px; }
@keyframes nc-fade { from { opacity: 0; } }
@keyframes nc-up { from { transform: translateY(40px); } }

.nc-conn {
	position: fixed; top: calc(64px + var(--safe-top)); left: 50%; transform: translateX(-50%); z-index: 1500;
	display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px;
	background: var(--nc-orange-dark); color: #fff; font-size: 14px; font-weight: 600; box-shadow: var(--nc-shadow);
}
.nc-conn-retry { border: 0; border-radius: 999px; padding: 4px 10px; background: rgba(255,255,255,.25); color: #fff; font: inherit; font-size: 13px; cursor: pointer; }

/* ---------- Toast ---------- */
.nc-toast {
	position: fixed; left: 50%; bottom: calc(90px + var(--safe-bottom)); z-index: 2000;
	transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
	max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px;
	background: var(--nc-blue-dark); color: #fff; font-size: 15px; box-shadow: var(--nc-shadow);
	transition: opacity .2s, transform .2s;
}
.nc-toast.show { opacity: 1; transform: translate(-50%, 0); }
.nc-toast.ok { background: var(--nc-ok); }
.nc-toast.err { background: var(--nc-danger); }
.nc-toast.warn { background: var(--nc-orange-dark); }

/* ---------- Αριστερό κάθετο μενού ---------- */
.nc-vnav {
	flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
	background: #fff; padding: 6px 0 calc(16px + var(--safe-bottom));
	display: flex; flex-direction: column;
}
.nc-vnav-user {
	display: flex; align-items: center; gap: 12px; padding: 14px 18px 16px; margin-bottom: 2px;
	border-bottom: 1px solid var(--nc-border); color: var(--nc-text); text-decoration: none;
}
.nc-vnav-user:hover { background: #f6faff; }
.nc-vnav-user-text { min-width: 0; display: flex; flex-direction: column; }
.nc-vnav-user-text strong { color: var(--nc-blue-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nc-vnav-user-text span { font-size: 13px; color: var(--nc-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nc-vnav-label-group { padding: 16px 22px 6px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--nc-muted); }
.nc-vnav-item {
	position: relative; display: flex; align-items: center; gap: 14px;
	margin: 1px 10px; padding: 10px 12px; min-height: 50px;
	border-radius: 12px; color: var(--nc-text); text-decoration: none; font-weight: 600;
	-webkit-tap-highlight-color: transparent;
}
.nc-vnav-item > .nc-ico:first-child { color: var(--nc-blue); }
.nc-vnav-item > .nc-ico:last-child { width: 18px; height: 18px; color: var(--nc-muted); }
.nc-vnav-item:hover { background: #f3f8fe; }
.nc-vnav-item:focus-visible { outline: 3px solid var(--nc-sky); outline-offset: -3px; }
.nc-vnav-item.active { background: var(--nc-sky-light); box-shadow: inset 4px 0 0 var(--nc-orange); }
.nc-vnav-item.active .nc-vnav-label { color: var(--nc-blue); }
.nc-vnav-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Αναζήτηση ---------- */
.nc-vnav-search {
	display: flex; align-items: center; gap: 10px;
	margin: 12px 14px 2px; padding: 0 14px; min-height: 46px;
	border: 2px solid var(--nc-border); border-radius: 999px; background: var(--nc-sky-light);
	color: var(--nc-muted); text-decoration: none; font-size: 15px;
}
.nc-vnav-search .nc-ico { width: 20px; height: 20px; color: var(--nc-blue); }
.nc-vnav-search:hover, .nc-vnav-search.active { border-color: var(--nc-sky); background: #fff; }
.nc-vnav-search-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nc-search-box { position: relative; margin-bottom: 14px; }
.nc-search-box > .nc-ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--nc-muted); pointer-events: none; }
.nc-app .nc-search-box input.nc-search-input { padding-left: 48px; border-radius: 999px; min-height: 52px; background: #fff; }
.nc-book-card .btn .nc-ico { width: 20px; height: 20px; vertical-align: -4px; }
.nc-book-card p { margin-top: 0; }
.nc-search .nc-list-label { padding-left: 4px; }
.nc-card-list { padding: 0; overflow: hidden; }
.nc-card-list .nc-item:last-child, .nc-card-list .nc-book-off:last-child .nc-item { border-bottom: 0; }
.nc-book-off .nc-invite-out { padding: 0 16px 12px 76px; margin-top: 0; }
.nc-avatar-icon { background: var(--nc-sky-light); color: var(--nc-blue); }
.nc-avatar-icon .nc-ico { width: 22px; height: 22px; }
.nc-avatar-muted { background: #c5d3e6; }
.nc-chip { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--nc-sky-light); color: var(--nc-muted); font-size: 13px; font-weight: 600; }

/* ---------- Διακόπτης ---------- */
.nc-switch { display: flex; align-items: center; gap: 12px; padding: 8px 0 14px; cursor: pointer; font-weight: 600; }
.nc-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nc-switch-ui { position: relative; width: 50px; height: 30px; flex: none; border-radius: 999px; background: #c5d3e6; transition: background .2s; }
.nc-switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.nc-switch input:checked + .nc-switch-ui { background: var(--nc-ok); }
.nc-switch input:checked + .nc-switch-ui::after { transform: translateX(20px); }
.nc-switch input:focus-visible + .nc-switch-ui { outline: 3px solid var(--nc-sky); outline-offset: 2px; }
.nc-card .btn .nc-ico { width: 20px; height: 20px; vertical-align: -4px; }

/* ---------- Λίστα + λεπτομέρεια ---------- */
.nc-split { flex: 1; min-height: 0; display: flex; }
.nc-listcol { width: 100%; min-height: 0; display: flex; flex-direction: column; background: #fff; position: relative; }
.nc-detail { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.nc-split.list-only .nc-detail { display: none; }
.nc-split.detail-only .nc-listcol { display: none; }
.nc-settings-content { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px 14px calc(24px + var(--safe-bottom)); }
.nc-settings-content > * { max-width: 720px; margin-left: auto; margin-right: auto; }

.nc-avatar-md { width: 44px; height: 44px; font-size: 18px; }
.nc-profile-head { display: flex; align-items: center; gap: 18px; }
.nc-profile-head-text { min-width: 0; }
.nc-profile-head-text h3 { margin: 0; font-size: 20px; }
.nc-profile-head-text p { margin: 2px 0 0; }
.nc-card h3 .nc-ico { color: var(--nc-blue); }
.nc-card > .nc-muted:first-of-type { margin-top: 0; }
.nc-grid-2 { display: grid; grid-template-columns: 1fr; gap: 14px; }
.nc-form-actions { display: flex; justify-content: flex-end; }
.nc-form-actions .btn { min-width: 180px; }
.nc-card-danger { border: 1px solid #f6d0d0; }
.nc-pending { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0; }

.nc-prefixed { display: flex; align-items: stretch; }
.nc-prefixed > span {
	display: grid; place-items: center; padding: 0 12px;
	background: var(--nc-sky-light); color: var(--nc-muted); font-weight: 700;
	border: 2px solid var(--nc-border); border-right: 0; border-radius: var(--nc-radius-sm) 0 0 var(--nc-radius-sm);
}
.nc-app .nc-prefixed input { border-radius: 0 var(--nc-radius-sm) var(--nc-radius-sm) 0; }

.nc-phone-field { display: flex; gap: 8px; }
.nc-phone-field input { flex: 1; min-width: 0; }
.nc-app select.nc-cc {
	width: 132px; flex: none; min-height: 48px; padding: 10px 28px 10px 10px;
	border: 2px solid var(--nc-border); border-radius: var(--nc-radius-sm);
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f6f8c' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center / 16px;
	color: var(--nc-text); font: inherit; font-size: 16px;
	-webkit-appearance: none; appearance: none; cursor: pointer;
	text-overflow: ellipsis;
}
.nc-app select.nc-cc:focus { outline: none; border-color: var(--nc-sky); box-shadow: 0 0 0 4px rgba(47,168,224,.18); }

.nc-meter { height: 6px; border-radius: 3px; background: var(--nc-border); margin-top: 8px; overflow: hidden; }
.nc-meter span { display: block; height: 100%; width: 0; border-radius: 3px; transition: width .2s, background .2s; }
.nc-meter[data-s="1"] span { width: 25%; background: var(--nc-danger); }
.nc-meter[data-s="2"] span { width: 50%; background: var(--nc-orange); }
.nc-meter[data-s="3"] span { width: 75%; background: var(--nc-sky); }
.nc-meter[data-s="4"] span { width: 100%; background: var(--nc-ok); }

@media (min-width: 600px) {
	.nc-grid-2 { grid-template-columns: 1fr 1fr; }
	.nc-app select.nc-cc { width: 190px; }
}

/* ---------- Tablet / Desktop: δύο στήλες ---------- */
@media (min-width: 900px) {
	.nc-app { padding: 0; }
	/* Στενό κάθετο μενού μόνο με εικονίδια, πλήρες από 1200px */
	.nc-side { position: static; transform: none; box-shadow: none; padding-top: 0; transition: none; visibility: visible; width: 76px; flex: none; border-right: 1px solid var(--nc-border); z-index: auto; }
	.nc-burger { display: none; }
	.nc-app.in-chat .nc-top { display: flex; }
	.nc-app.menu-open .nc-scrim { display: none; }
	.nc-top { padding-left: 20px; padding-right: 16px; }
	.nc-top-me-name { display: block; }
	.nc-vnav-label, .nc-vnav-user-text, .nc-vnav-label-group, .nc-vnav-item > .nc-ico:last-child { display: none; }
	.nc-vnav-user { justify-content: center; padding: 14px 6px; }
	.nc-vnav-search { justify-content: center; margin: 10px 8px 2px; padding: 0; border-radius: 12px; }
	.nc-vnav-search-text { display: none; }
	.nc-vnav-item { justify-content: center; margin: 2px 8px; padding: 12px 0; }
	.nc-vnav-label-group + .nc-vnav-item { margin-top: 10px; }
	.nc-vnav-item .nc-badge { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; font-size: 11px; }
	.nc-split .nc-listcol, .nc-split .nc-detail,
	.nc-split.list-only .nc-detail, .nc-split.detail-only .nc-listcol { display: flex; }
	/* Μεσαία στήλη (λίστα συνομιλιών/επαφών): στενή και πιο μικρά γράμματα */
	.nc-listcol { width: 280px; flex: none; border-right: 1px solid var(--nc-border); }
	.nc-listcol .nc-pane-head { min-height: calc(52px + var(--safe-top)); padding-top: calc(4px + var(--safe-top)); padding-bottom: 4px; }
	.nc-listcol .nc-pane-title { font-size: 16px; padding-left: 6px; }
	.nc-listcol .nc-item { gap: 10px; padding: 8px 12px; min-height: 58px; }
	.nc-listcol .nc-avatar { width: 38px; height: 38px; font-size: 15px; }
	.nc-listcol .nc-avatar-group { font-size: 17px; }
	.nc-listcol .nc-item-title { font-size: 14px; }
	.nc-listcol .nc-item-sub { font-size: 12.5px; }
	.nc-listcol .nc-item-time { font-size: 11px; }
	.nc-listcol .nc-badge { min-width: 19px; height: 19px; padding: 0 6px; font-size: 11px; }
	.nc-listcol .nc-list-label { font-size: 11px; padding: 12px 12px 4px; }
	.nc-listcol .nc-item-actions .btn-sm { min-height: 30px; padding: 4px 10px; font-size: 13px; }
	.nc-listcol .nc-item-actions .nc-icon-btn { width: 34px; height: 34px; }
	.nc-listcol .nc-empty { padding: 36px 16px; font-size: 14px; }
	.nc-listcol .nc-fab { width: 50px; height: 50px; right: 14px; bottom: calc(14px + var(--safe-bottom)); }
	.nc-listcol .nc-fab .nc-ico { width: 24px; height: 24px; }
	.nc-main { display: flex; flex: 1; }
	.nc-back { display: none; }
	.nc-chat-head .nc-back { display: none; }
	.nc-modal { align-items: center; }
	.nc-modal-card { border-radius: 22px; padding-bottom: 18px; }
	.nc-toast { bottom: 32px; }
	.nc-messages { padding: 18px 6% 34px; }
	.nc-settings-content { padding: 24px 28px; }
}
@media (min-width: 1200px) {
	.nc-side { width: 250px; }
	.nc-vnav-user-text, .nc-vnav-label-group { display: block; }
	.nc-vnav-user-text { display: flex; }
	.nc-vnav-label { display: block; }
	.nc-vnav-user { justify-content: flex-start; padding: 14px 18px 16px; }
	.nc-vnav-search { justify-content: flex-start; margin: 12px 14px 2px; padding: 0 14px; border-radius: 999px; }
	.nc-vnav-search-text { display: block; }
	.nc-vnav-item { justify-content: flex-start; margin: 1px 10px; padding: 10px 12px; }
	.nc-vnav-label-group + .nc-vnav-item { margin-top: 1px; }
	.nc-vnav-item .nc-badge { position: static; min-width: 22px; height: 22px; padding: 0 7px; font-size: 12px; }
}
@media (min-width: 1400px) {
	.nc-listcol { width: 300px; }
}
