@font-face { font-family: 'Baloo 2'; font-weight: 800; src: url(baloo2.ttf) format('truetype'); }

:root {
  --crimson: #A3172B; --crimson-dark: #5E0A17; --sender: #8A1224;
  --blue: #2E5C9A; --blue-dark: #1F3F6B; --me: #2F4F8A;
  --ink: #22272B; --muted: #535C63; --ground: #DADDE0; --panel: #EFF1F2;
  --line: #B7BDC2; --shade: #8E959C; --bark: #C6CBCF; --paper: #FAFBFB;
  --soft: #EFD3D6; --emo: #CFDFF2;
  --on: #2E9E4F; --away: #E0A21E; --busy: #C8372D; --off: #8A94A0;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--ground); color: var(--ink); font: 14px Verdana, Tahoma, "DejaVu Sans", sans-serif; overflow: hidden; }
#app, .screen { height: 100%; }
.hidden { display: none !important; }
button { font: inherit; cursor: pointer; }
input { font: inherit; color: var(--ink); }
button:focus-visible, input:focus-visible { outline: 2px solid var(--sender); outline-offset: -2px; }

/* ---------- butoane stil XP ---------- */
.bevel { background: var(--panel); color: var(--ink); border: 1px solid var(--shade); border-radius: 2px; padding: 4px 10px;
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 var(--shade); }
.bevel:hover { background: #F7F8F9; }
.bevel:active, .crimson:active, .blue:active { box-shadow: inset 1px 1px 2px rgba(0,0,0,.35); }
.crimson { background: var(--crimson); color: #fff; font-weight: 700; border: 1px solid var(--crimson-dark); border-radius: 2px; padding: 4px 12px;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.35), inset -1px -1px 0 var(--crimson-dark); }
.crimson:hover { background: #B51C32; }
.blue { background: var(--blue); color: #fff; font-weight: 700; border: 1px solid var(--blue-dark); border-radius: 2px; padding: 4px 12px;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.3), inset -1px -1px 0 var(--blue-dark); }
.blue:hover { background: #3669AE; }
input[type=text], input[type=password] { height: 34px; border: 1px solid var(--shade); border-radius: 2px; padding: 0 10px; background: #fff;
  box-shadow: inset 1px 1px 2px rgba(0,0,0,.15); min-width: 0; }

.logo { font-family: 'Baloo 2', Verdana, sans-serif; font-weight: 800; font-size: 26px; line-height: 1; letter-spacing: .5px; }
.logo.big { font-size: 52px; }
.row { display: flex; align-items: center; gap: 8px; }
.between { justify-content: space-between; }
.grow { flex: 1; }
.small { font-size: 12px; }
.muted { color: var(--muted); }
.panel { background: var(--panel); border: 1px solid var(--shade); border-radius: 2px; box-shadow: inset 1px 1px 0 #fff, 0 2px 6px rgba(0,0,0,.18); }

/* ---------- puncte de stare ---------- */
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot.on { background: var(--on); }
.dot.away { background: var(--away); }
.dot.busy { background: var(--busy); border-radius: 2px; }
.dot.off { background: transparent; border: 2px solid var(--off); }
@keyframes blinkdot { 50% { opacity: .2; } }
.blink { animation: blinkdot .8s infinite; color: var(--crimson); }

/* ---------- intrare ---------- */
#login { display: flex; flex-direction: column; }
.login-top { flex: 0 0 34%; background: var(--crimson); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 3px 6px rgba(40,0,8,.35); position: relative; z-index: 1; }
.tagline { font-size: 12px; letter-spacing: 1px; opacity: .9; }
.login-mid { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 16px; overflow: auto; }
.form { width: 340px; max-width: 100%; display: flex; flex-direction: column; gap: 6px; padding: 14px; }
.form label { font-size: 13px; font-weight: 700; }
.form .row { margin-top: 4px; }
.big-btn { height: 44px; font-size: 15px; margin-top: 6px; }
.waiting { height: 44px; margin-top: 6px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px dashed var(--shade); color: var(--muted); font-size: 13px; }
.err { color: var(--sender); font-size: 12px; }
.hint { font-size: 12px; color: var(--muted); text-align: center; max-width: 340px; line-height: 1.4; }
#lStatus { display: flex; align-items: center; gap: 6px; font-size: 13px; }

/* ---------- aplicația ---------- */
#main { display: flex; flex-direction: column; }
.bar { height: 48px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 12px; background: var(--crimson); color: #fff;
  border-bottom: 1px solid var(--crimson-dark); box-shadow: 0 3px 5px rgba(40,0,8,.35); position: relative; z-index: 3; }
.me { display: flex; align-items: center; gap: 7px; background: rgba(0,0,0,.14); color: #fff; border: 1px solid rgba(0,0,0,.25); border-radius: 2px;
  padding: 4px 10px; max-width: 60%; box-shadow: inset 1px 1px 0 rgba(255,255,255,.18); }
.me .dot.off { border-color: #fff; }
#meName { font-weight: 700; }
.me-msg { opacity: .85; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.net { margin-left: auto; font-size: 12px; opacity: .9; }

.tabs { flex: none; display: flex; gap: 2px; padding: 6px 8px 0; background: var(--bark); border-bottom: 1px solid var(--shade); }
.tab { background: var(--ground); border: 1px solid var(--shade); border-bottom: none; border-radius: 3px 3px 0 0; padding: 6px 14px; color: var(--muted);
  box-shadow: inset 1px 1px 0 #fff; margin-bottom: -1px; }
.tab.active { background: var(--paper); color: var(--ink); font-weight: 700; box-shadow: inset 0 3px 0 var(--crimson); }
.cnt { font-weight: 400; color: var(--muted); font-size: 12px; }

.body { flex: 1; min-height: 0; position: relative; display: flex; background: var(--paper); }
.stage { flex: 1; min-width: 0; display: flex; flex-direction: column; transition: margin-right .22s ease; }
.side { position: absolute; top: 0; right: 0; bottom: 0; width: 300px; background: var(--panel); border-left: 1px solid var(--shade);
  box-shadow: -3px 0 8px rgba(0,0,0,.18); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .22s ease; z-index: 2; }
.list-open .side { transform: translateX(0); }
@media (min-width: 760px) { .list-open .stage { margin-right: 300px; } }
@media (max-width: 759px) { .side { width: 80%; } }

/* mânerul subțire de pe margine */
.handle { position: absolute; top: 50%; right: 0; margin-top: -26px; width: 14px; height: 52px; padding: 0; border: 1px solid var(--crimson-dark); border-right: none;
  border-radius: 6px 0 0 6px; background: var(--crimson); color: #fff; font-size: 10px; line-height: 50px; text-align: center;
  box-shadow: -2px 0 4px rgba(0,0,0,.25), inset 1px 1px 0 rgba(255,255,255,.3); z-index: 4; transition: right .22s ease; }
.list-open .handle { right: 300px; }
@media (max-width: 759px) { .list-open .handle { right: 80%; } }

/* ---------- arborele ---------- */
.tree { flex: 1; overflow-y: auto; }
.thead { display: block; width: 100%; text-align: left; background: linear-gradient(#E4E7EA, #D3D7DB); border: none; border-bottom: 1px solid var(--shade);
  padding: 5px 8px; font-weight: 700; font-size: 12px; color: var(--ink); }
.trow { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; background: transparent; border: none; border-bottom: 1px dotted var(--shade);
  padding: 7px 8px 7px 14px; color: var(--ink); }
.trow:hover { background: #E6EAEE; }
.trow.sel { background: var(--soft); }
.avatar { width: 30px; height: 30px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--bark); color: var(--ink);
  border: 1px solid var(--shade); border-radius: 2px; font-weight: 700; font-size: 13px; }
.trow .txt { flex: 1; min-width: 0; }
.trow .nm { font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow.offl .nm { color: var(--muted); font-weight: 400; }
.trow .sub { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow .dev { font-size: 10px; color: var(--blue); }
.badge { background: var(--crimson); color: #fff; font-size: 11px; font-weight: 700; border-radius: 9px; padding: 1px 6px; }
.member { display: flex; align-items: center; gap: 6px; padding: 3px 8px 3px 50px; font-size: 12px; color: var(--muted); }
.side-foot { flex: none; padding: 8px; border-top: 1px solid var(--shade); display: flex; gap: 6px; }
.side-foot button { flex: 1; }

/* ---------- chat ---------- */
.chat { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.chat-head { flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: var(--panel); border-bottom: 1px solid var(--shade); }
.chat-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chat-title b { font-size: 14px; }
.chat-title span { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x { padding: 4px 8px; }
.log { flex: 1; overflow-y: auto; padding: 8px 12px; background: #fff; }
.line { padding: 3px 0; line-height: 1.45; word-wrap: break-word; }
.line .who { font-weight: 700; color: var(--crimson); }
.line.mine .who { color: var(--me); }
.line .tm { color: var(--muted); font-size: 11px; }
.line .txt { display: block; padding-left: 10px; }
.sys { color: var(--muted); font-size: 12px; text-align: center; padding: 6px 0; }
.sys.buzz { color: var(--crimson); font-weight: 700; letter-spacing: 1px; }
.emo { background: var(--emo); font-weight: 700; padding: 0 3px; border-radius: 2px; white-space: nowrap; }
.media { display: block; margin: 4px 0 2px 10px; position: relative; width: 220px; height: 150px; background: var(--ground) center/cover no-repeat;
  border: 1px solid var(--shade); cursor: zoom-in; }
.media.vid:after { content: '▶'; position: absolute; left: 50%; top: 50%; margin: -18px 0 0 -18px; width: 36px; height: 36px; line-height: 36px; text-align: center;
  border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; }
.compose { flex: none; display: flex; gap: 6px; padding: 8px; background: var(--panel); border-top: 1px solid var(--shade); }
.compose input { flex: 1; }
@keyframes pagershake { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-9px); } 40% { transform: translateX(9px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(6px); } }
.shake { animation: pagershake .5s; }

.empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); padding: 20px; text-align: center; }
.logo.ghost { font-size: 64px; color: var(--bark); }
.keys { font-size: 12px; }

/* ---------- feed ---------- */
.feed { flex: 1; overflow-y: auto; padding: 10px; }
.feed-compose { padding: 10px; display: flex; flex-direction: column; gap: 8px; max-width: 760px; margin: 0 auto 12px; }
.feed-compose input { flex: 1; }
.post { max-width: 760px; margin: 0 auto 10px; background: #fff; border: 1px solid var(--line); border-radius: 2px; display: flex; gap: 12px; padding: 10px; }
.post .ph { width: 300px; height: 225px; flex: none; background: var(--ground) center/cover no-repeat; border: 1px solid var(--shade); cursor: zoom-in; }
.post .pt { flex: 1; min-width: 0; }
.post .au { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.post .au b { color: var(--crimson); }
.post .cap { line-height: 1.5; }
@media (max-width: 620px) { .post { flex-direction: column; } .post .ph { width: 100%; height: 56vw; } }

/* ---------- diverse ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #2A2F34; color: #fff; padding: 8px 14px; border-radius: 3px;
  font-size: 13px; box-shadow: 0 3px 10px rgba(0,0,0,.35); z-index: 20; max-width: 90%; }
.viewer { position: fixed; inset: 0; background: rgba(10,10,12,.88); display: flex; align-items: center; justify-content: center; z-index: 30; cursor: zoom-out; }
.viewer img, .viewer video { max-width: 94%; max-height: 94%; box-shadow: 0 4px 20px rgba(0,0,0,.6); }
@media (prefers-reduced-motion: reduce) { .shake, .blink { animation: none; } .side, .stage, .handle { transition: none; } }

/* ---------- emoticoane animate ---------- */
.emo-i { width: 20px; height: 20px; vertical-align: -5px; margin: 0 1px; image-rendering: auto; }
.emo-btn { padding: 2px 7px; } .emo-btn img { width: 20px; height: 20px; display: block; }
.emo-panel { position: absolute; left: 8px; bottom: 54px; z-index: 5; width: 352px; max-width: calc(100% - 16px); max-height: 260px; overflow-y: auto;
  display: grid; grid-template-columns: repeat(auto-fill, 34px); gap: 2px; padding: 8px; background: var(--panel); border: 1px solid var(--shade);
  box-shadow: inset 1px 1px 0 #fff, 3px 3px 0 rgba(0,0,0,.25); }
.emo-panel .ep { width: 34px; height: 34px; border: 1px solid transparent; background: none; padding: 0; border-radius: 2px; }
.emo-panel .ep:hover, .emo-panel .ep:focus { background: var(--soft); border-color: var(--crimson); }
.emo-panel .ep .emo-i { width: 28px; height: 28px; margin: 0; vertical-align: middle; }
.chat { position: relative; }

/* ---------- „scrie…" ---------- */
.typing { flex: none; padding: 3px 12px 4px; font-size: 12px; color: var(--muted); background: #fff; border-top: 1px dotted var(--line); }
.typing b { color: var(--crimson); }
.dots { display: inline-flex; gap: 3px; margin-left: 2px; vertical-align: middle; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--crimson); animation: dot 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .2s; } .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes dot { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.tree .sub:has(+ .dev) {}

/* ---------- conversație cu fundal (ramă colorată lucioasă) ---------- */
.chat.themed .chat-head, .chat.themed .compose, .chat.themed .typing {
  background: linear-gradient(to bottom, color-mix(in srgb, var(--t-hi) 70%, #fff) 0%, var(--t-mid) 48%, var(--t-lo) 100%); border-color: var(--t-lo); color: #fff; }
.chat.themed .chat-head .chat-title b, .chat.themed .chat-head .chat-title span, .chat.themed .typing, .chat.themed .typing b { color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.35); }
.chat.themed .typing .dots i { background: #fff; }
.chat.themed .log { background: #222 center / cover no-repeat; }
.chat.themed .line { background: var(--t-panel); border-radius: 6px; padding: 4px 10px 5px; margin: 4px 0; max-width: 72%; width: fit-content; }
.chat.themed .line .who { color: var(--t-other); } .chat.themed .line.mine .who { color: var(--t-me); }
.chat.themed .line .tm { color: var(--t-muted); } .chat.themed .line .txt { color: var(--t-text); }
.chat.themed .sys { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.7); }
.chat.themed .compose .crimson { background: linear-gradient(to bottom, color-mix(in srgb, var(--t-mid) 60%, #fff), var(--t-lo)); border-color: var(--t-lo); }

/* ---------- galeria de fundaluri (stil retro) ---------- */
.tp { position: fixed; inset: 0; z-index: 40; background: rgba(10,12,16,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.tp-win { width: 760px; max-width: 100%; max-height: 90vh; display: flex; flex-direction: column; background: var(--ground); border: 1px solid var(--crimson-dark); box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.tp-head { position: relative; background: var(--crimson); color: #fff; padding: 9px 40px 9px 12px; font-size: 13px; border-bottom: 1px solid var(--crimson-dark); }
.tp-x { position: absolute; right: 6px; top: 5px; background: rgba(0,0,0,.2); color: #fff; border: 1px solid rgba(255,255,255,.4); border-radius: 2px; padding: 1px 7px; }
.tp-body { display: flex; min-height: 0; flex: 1; }
.tp-cats { width: 180px; flex: none; background: var(--panel); border-right: 1px solid var(--shade); padding: 8px 4px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.tp-cat { display: flex; align-items: center; gap: 8px; text-align: left; background: none; border: none; padding: 6px 8px; font-size: 13px; color: var(--ink); border-left: 3px solid transparent; }
.tp-cat.on { background: var(--soft); border-left-color: var(--crimson); font-weight: 700; }
.fold { width: 16px; height: 12px; background: #E6BE5A; border: 1px solid #AA8228; border-radius: 1px; position: relative; flex: none; }
.fold:before { content: ''; position: absolute; left: -1px; top: -4px; width: 7px; height: 3px; background: #E6BE5A; border: 1px solid #AA8228; border-bottom: none; }
.tp-note { margin-top: auto; padding: 8px; font-size: 11px; color: var(--muted); }
.tp-grid { flex: 1; overflow-y: auto; padding: 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; align-content: start; }
.tp-item { text-align: left; background: none; border: 2px solid transparent; padding: 4px; border-radius: 3px; }
.tp-item:hover { background: rgba(255,255,255,.5); } .tp-item.on { background: var(--soft); border-color: var(--crimson); }
.tp-ban { display: flex; align-items: center; height: 52px; background: #333 center / cover; border: 1px solid #3C4046; padding: 0 10px; margin-bottom: 5px; }
.tp-ban em { font-style: normal; font-family: 'Baloo 2', Verdana, sans-serif; font-weight: 800; font-size: 19px; color: #fff; text-shadow: 1px 1px 2px #000; }
.tp-ban.none { background: var(--paper); color: var(--muted); font-size: 13px; }
.tp-item b { display: block; font-size: 13px; color: var(--ink); } .tp-item small { font-size: 11px; color: var(--muted); }
@media (max-width: 620px) { .tp-body { flex-direction: column; } .tp-cats { width: auto; flex-direction: row; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--shade); } .tp-cat { white-space: nowrap; } .tp-note { display: none; } }

/* ---------- skin pentru toată aplicația ---------- */
.skin-btn { background: rgba(0,0,0,.18); color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 2px; padding: 3px 9px; font-size: 12px; box-shadow: inset 1px 1px 0 rgba(255,255,255,.2); }
.net { margin-left: auto; }
body.skin .bar, body.skin .login-top { background: linear-gradient(to bottom, color-mix(in srgb, var(--s-hi) 65%, #fff) 0%, var(--s-mid) 50%, var(--s-lo) 100%); border-bottom-color: var(--s-lo); }
body.skin .tabs { background: linear-gradient(to bottom, color-mix(in srgb, var(--s-lo) 55%, #000), var(--s-lo)); border-bottom-color: #000; }
body.skin .tab { background: rgba(255,255,255,.12); color: rgba(255,255,255,.85); border-color: rgba(0,0,0,.45); box-shadow: inset 1px 1px 0 rgba(255,255,255,.2); }
body.skin .tab .cnt { color: rgba(255,255,255,.7); }
body.skin .tab.active { background: var(--s-panel); color: var(--s-text); box-shadow: inset 0 3px 0 var(--s-accent); }
body.skin .tab.active .cnt { color: var(--s-muted); }
body.skin .body { background: #222 var(--s-img) center / cover no-repeat; }
body.skin .stage > .empty, body.skin .feed { background: transparent; }
body.skin .empty { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.7); } body.skin .logo.ghost { color: rgba(255,255,255,.5); }
body.skin .side { background: var(--s-panel); border-left-color: var(--s-lo); }
body.skin .thead { background: linear-gradient(to bottom, color-mix(in srgb, var(--s-mid) 35%, transparent), color-mix(in srgb, var(--s-lo) 35%, transparent)); color: var(--s-text); border-bottom-color: rgba(0,0,0,.3); }
body.skin .trow { color: var(--s-text); border-bottom-color: rgba(128,128,128,.35); }
body.skin .trow .sub, body.skin .member { color: var(--s-muted); }
body.skin .trow:hover { background: rgba(255,255,255,.12); } body.skin .trow.sel { background: color-mix(in srgb, var(--s-accent) 28%, transparent); }
body.skin .side-foot { border-top-color: rgba(0,0,0,.3); }
body.skin .handle { background: var(--s-mid); border-color: var(--s-lo); }
body.skin .feed-compose, body.skin .post { background: var(--s-panel); color: var(--s-text); border-color: rgba(0,0,0,.3); }
body.skin .post .au b { color: var(--s-accent); } body.skin .feed-compose .muted, body.skin .post .muted { color: var(--s-muted); }
body.skin .crimson { background: linear-gradient(to bottom, color-mix(in srgb, var(--s-mid) 60%, #fff), var(--s-lo)); border-color: var(--s-lo); }
body.skin .tp-head { background: linear-gradient(to bottom, var(--s-mid), var(--s-lo)); }

/* ---------- ferestre: profil, profilul unui prieten, meniul postării ---------- */
.modal { position: fixed; inset: 0; background: rgba(20, 22, 26, .55); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.modal.hidden { display: none; }
.mbox { background: var(--paper, #FAFBFB); border: 1px solid #8E959C; box-shadow: 0 10px 30px rgba(0,0,0,.35); width: 100%; max-width: 420px; max-height: 90vh; overflow: auto; padding: 14px 16px; border-radius: 4px; }
.mbox h3 { margin: 0 0 10px; color: var(--crimson, #A3172B); font-size: 17px; }
.mbox label { display: block; font-size: 12px; font-weight: bold; color: #535C63; margin: 10px 0 0; }
.mbox input, .mbox select, .mbox textarea { display: block; width: 100%; box-sizing: border-box; margin-top: 4px; padding: 7px 9px; font: inherit; font-size: 14px; border: 1px solid #8E959C; background: #fff; border-radius: 2px; }
.mbox textarea { resize: vertical; }
.mbtns { display: flex; gap: 8px; margin-top: 14px; align-items: center; }
.mbtns span { flex: 1; }
.mbtns .primary { background: linear-gradient(#D25668, #C41E36 55%, #7A0F20); color: #fff; border-color: #5E0A17; font-weight: bold; }
.mlist { display: flex; flex-direction: column; gap: 8px; }
.mlist .danger { color: #A3172B; font-weight: bold; }
.prow { display: flex; align-items: center; gap: 14px; }
.avatar.big { width: 84px; height: 84px; font-size: 34px; line-height: 84px; flex: none; }
.avatar.img { background-size: cover; background-position: center; color: transparent; }
.fprof { text-align: center; }
.fprof .avatar.big { margin: 0 auto 8px; }
.fprof h3 { margin: 4px 0 2px; }
.fprof .about { margin-top: 10px; text-align: left; white-space: pre-wrap; }
.post .au { position: relative; }
.pmenu { position: absolute; right: 0; top: 0; border: 0; background: none; font-size: 22px; font-weight: bold; color: #535C63; cursor: pointer; padding: 0 8px; line-height: 1; }
.pmenu:hover { color: #A3172B; }
.avatar[data-prof] { cursor: pointer; }

/* invizibil, mesaje editate / șterse */
.dot.invis { background: transparent; border: 2px dotted var(--off); }
.me .dot.invis { border-color: #fff; }
.line[data-mid] { cursor: pointer; }
.line[data-mid]:hover { background: rgba(0, 0, 0, .04); }
.line .gone { font-style: italic; color: var(--muted, #8e959c); }
#cForm.editing #cText { background: #fff3c4; border-color: #c9a400; }
/* D / R */
.dr { display: inline-block; font-weight: 700; font-size: 11px; color: #fff; padding: 0 4px; border-radius: 3px; margin-left: 4px; line-height: 15px; }
.dr1 { background: #8e959c; }
.dr2 { background: #1f8a4c; }

/* postare nouă: poza stânga, descrierea dreapta */
.cmp{display:flex;gap:12px;align-items:stretch;flex-wrap:wrap}
.cmp-pic{flex:0 0 200px;max-width:100%;aspect-ratio:1;background:#e4e7ea;border:1px solid #8e959c;display:flex;align-items:center;justify-content:center;overflow:hidden}
.cmp-pic img,.cmp-pic video{width:100%;height:100%;object-fit:cover}
.cmp-txt{flex:1 1 220px;display:flex;flex-direction:column}
.cmp-txt textarea{flex:1;min-height:140px}

/* plicul de invitații din bară (stil retro) */
.req-btn{margin-left:8px;font:700 13px Tahoma,Verdana,sans-serif;padding:3px 10px;border:1px solid #b07a00;border-radius:8px;background:linear-gradient(#fff3b0,#ffd23f);color:#5e3a00;cursor:pointer}
.req-btn b{display:inline-block;min-width:16px;margin-left:3px;padding:0 4px;border-radius:8px;background:#e0182e;color:#fff;font-size:11px}
.req-btn.hidden{display:none}

/* =====================================================================
   ASPECT NOU 2026 — roșu lucios, bule iPhone vechi, taburi tip dosar
   ===================================================================== */
:root { --g-hi:#B8162F; --g-mid:#8E0C21; --g-lo:#7A0A1C; --ink:#1B1F27; --muted:#4A5260; --ground:#D5DBE2; --paper:#F4F5F7; }
body { font-family: "DejaVu Sans", Verdana, Tahoma, sans-serif; background: linear-gradient(#D5DBE2,#BCC4CE); }
/* intrare */
.login-top { background: repeating-linear-gradient(135deg, rgba(255,255,255,0) 0 7px, rgba(255,255,255,.07) 7px 9px), linear-gradient(#C8243A,#9C1022 55%,#6E0A18); flex-basis: 42%; }
#login { background: linear-gradient(#6E0A18,#4E0612); }
.login-mid { background: repeating-linear-gradient(135deg, rgba(255,255,255,0) 0 7px, rgba(255,255,255,.05) 7px 9px), linear-gradient(#6E0A18,#3E0410); }
.login-top .logo.big { font-family: "DejaVu Sans", Verdana, sans-serif; font-weight: 700; font-size: 44px; text-shadow: 0 2px 0 rgba(0,0,0,.35); }
.tagline { font-size: 16px; letter-spacing: 0; color: #FBE4E8; opacity: 1; }
.login-mid .form { background: linear-gradient(#fff,#ECEFF2); border: 1px solid #7A0A1C; border-radius: 5px; box-shadow: 0 8px 22px rgba(0,0,0,.4), inset 0 0 0 3px rgba(255,255,255,.7); padding: 16px; }
.login-mid .form label[for=lPass] { color: #B0122A; }
.login-mid .hint { color: #FBE4E8; }
.form input[type=text], .form input[type=password] { height: 44px; font-size: 16px; border-radius: 3px; border-color: #A9B0B9; background: linear-gradient(#ECEEF1,#fff 40%); }
.form input:focus { border: 2px solid #C8102E; outline: none; }
/* butoane lucioase */
.bevel { background: linear-gradient(#fff,#E3E6EA); border: 1px solid #A9B0B9; border-radius: 7px; padding: 6px 12px; font-weight: 700; box-shadow: none; }
.bevel:hover { background: linear-gradient(#fff,#EEF0F2); }
.crimson, .mbtns .primary { background: linear-gradient(#E0485C, #C3182F 50%, #A50F24 51%, #B8162F); border: 1px solid #5E0714; border-radius: 9px; color: #fff; text-shadow: 0 -1px 0 rgba(0,0,0,.4); box-shadow: inset 0 1px 0 rgba(255,255,255,.45); padding: 6px 14px; }
.crimson:hover { background: linear-gradient(#E85B6E, #CC2238 50%, #AE1429 51%, #C01C35); }
.blue { background: linear-gradient(#5A95EE, #2F66C8 50%, #1A4FB0 51%, #2A5DBE); border: 1px solid #123C8A; border-radius: 9px; box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
/* bara de sus */
.bar { height: 58px; background: linear-gradient(#B8162F, #8E0C21 55%, #7A0A1C); border-bottom: 1px solid #4E0612; box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 2px 6px rgba(0,0,0,.25); padding: 0 16px; }
.bar .logo { font-family: "DejaVu Sans", Verdana, sans-serif; font-weight: 700; font-size: 26px; text-shadow: 0 2px 0 rgba(0,0,0,.35); letter-spacing: 0; }
.me { background: linear-gradient(#6A0816,#4A0410); border: 1px solid rgba(255,255,255,.35); border-radius: 18px; padding: 6px 14px 6px 10px; box-shadow: none; }
.me .dot { width: 12px; height: 12px; box-shadow: 0 0 0 1px rgba(0,0,0,.3); }
.req-btn { border-radius: 15px; padding: 5px 12px; }
.skin-btn { border-radius: 8px; background: linear-gradient(#A3122A,#6E0918); }
/* puncte lucioase */
.dot.on { background: radial-gradient(circle at 35% 30%, #9BF08B, #2EA32E 55%, #1B7A1B); }
.dot.away { background: radial-gradient(circle at 35% 30%, #FFE58A, #E8B10C 55%, #B38300); }
.dot.busy { background: radial-gradient(circle at 35% 30%, #FF9A9A, #D9232F 55%, #9E0F19); }
/* taburi tip dosar */
.tabs { background: linear-gradient(#C3CAD3,#B3BBC5); border-bottom: 1px solid #8A939E; padding: 10px 16px 0; gap: 4px; }
.tab { display: inline-flex; align-items: center; gap: 8px; min-width: 140px; justify-content: center; height: 44px; padding: 0 20px; border: 1px solid #8A939E; border-bottom: none;
  border-radius: 9px 9px 0 0; background: linear-gradient(#D9DDE2,#C4C9D0); color: #4A5260; font-weight: 700; font-size: 15px; box-shadow: none; }
.tab.active { background: #F4F5F7; color: #1B1F27; box-shadow: inset 0 3px 0 #C8102E; height: 45px; }
@media (max-width: 620px) { .tab { min-width: 0; flex: 1; padding: 0 8px; font-size: 13px; } .tabs { padding: 8px 8px 0; } }
/* corpul: lista în stânga pe ecran mare, feedul pe toată lățimea */
.body { background: transparent; }
@media (min-width: 760px) {
  .body { padding: 14px 16px; gap: 14px; }
  .side { position: static; order: -1; transform: none; width: 320px; flex: none; border: 1px solid #8A939E; border-radius: 10px; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.16); }
  .list-open .stage { margin-right: 0; }
  .stage { border: 1px solid #8A939E; border-radius: 10px; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.16); background: #F4F5F7; }
  .handle { display: none; }
  .body.tab-feed .side { display: none; }
  .body.tab-feed .stage { border: none; box-shadow: none; background: transparent; border-radius: 0; }
}
.side { background: #F4F5F7; }
/* lista de prieteni */
.thead { background: linear-gradient(#DDE1E6,#CBD0D7); border-bottom: 1px solid #B5BBC3; padding: 9px 14px; font-size: 14px; }
.trow { padding: 10px 12px; gap: 11px; border-bottom: 1px dashed #CDD2D9; background: #F7F8FA; }
.trow:hover { background: #FBEFF1; }
.trow.sel { background: #FBE4E8; box-shadow: inset 4px 0 0 #C8102E; }
.avatar { width: 44px; height: 44px; border-radius: 7px; font-size: 19px; background: linear-gradient(#F9D6DB,#F1BBC3); border: 1px solid #D99AA4; color: #8E0C21; }
.trow .nm { font-size: 15px; } .trow .sub { font-size: 13px; color: #4A5260; } .trow .dev { font-size: 12px; color: #4A5260; }
.badge { background: linear-gradient(#3C7BE0,#1A4FB0); border: 1px solid #123C8A; border-radius: 5px; padding: 1px 7px; font-size: 12px; }
.side-foot { background: linear-gradient(#E4E7EB,#CDD2D8); border-top: 1px solid #A9B0B9; }
/* conversația */
.chat-head { background: linear-gradient(#B8162F, #8E0C21 55%, #7A0A1C); border-bottom: 1px solid #4E0612; color: #fff; padding: 8px 12px; min-height: 56px; }
.chat-title b { font-size: 18px; color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.35); }
.chat-title span { color: #FFE6E9; font-size: 12px; }
.chat-head .bevel { background: linear-gradient(#A3122A,#6E0918); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.log { background: linear-gradient(#DCE3EC,#C9D3DF); padding: 12px 16px; }
.line { display: flex; flex-direction: column; align-items: flex-start; padding: 4px 0; max-width: 100%; }
.line.mine { align-items: flex-end; }
.line .hdr { font-size: 12px; padding: 0 10px 2px; text-shadow: 0 1px 0 rgba(255,255,255,.7); }
.line .who { color: #B0122A; } .line.mine .who { color: #1A4FB0; }
.line .tm { color: #4A5260; font-size: 11px; }
.line .txt { display: inline-block; padding: 8px 14px 9px; max-width: min(78%, 560px); border-radius: 18px 18px 18px 6px; line-height: 1.4;
  background: linear-gradient(#FFFFFF, #F1F2F4 50%, #E6E9ED); border: 1px solid #A7AFB9; box-shadow: 0 1px 2px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.8); }
.line.mine .txt { border-radius: 18px 18px 6px 18px; background: linear-gradient(#DDF0FF, #B9DCFB 50%, #A3CFF7); border-color: #6E9CCB; }
.line .txt.big { background: none; border: none; box-shadow: none; padding: 0; }
.line .txt.big .emo-i { width: 64px; height: 64px; }
.line .txt .emo-i { width: 26px; height: 26px; vertical-align: -7px; }
.line .media { margin: 4px 0 2px; border: 3px solid #fff; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.line[data-mid]:hover { background: transparent; } .line[data-mid]:hover .txt { filter: brightness(.97); }
.sys { color: #4A5260; } .sys:not(.buzz) { align-self: center; }
.sys.buzz { margin: 8px 0; padding: 6px 0; background: linear-gradient(#FFF4F5,#FBDDE2); border: 1px solid #E3A9B2; border-radius: 10px; color: #C8102E; letter-spacing: 0; }
.sys.buzz b { font-size: 20px; letter-spacing: 1px; }
.typing { background: #C9D3DF; border-top: none; }
.compose { padding: 8px 10px; gap: 7px; background: linear-gradient(#E8EBEF, #CDD3DA 50%, #BCC3CC 51%, #C8CED6); border-top: 1px solid #7F8894; box-shadow: inset 0 1px 0 #F7F9FB; }
.compose input { height: 40px; border-radius: 20px; border: 1px solid #8A939E; padding: 0 16px; background: linear-gradient(#F2F3F5,#fff 40%); box-shadow: inset 0 2px 3px rgba(0,0,0,.25); }
.compose .bevel { border-radius: 9px; border-color: #7F8894; background: linear-gradient(#fff, #E9ECEF 50%, #D6DBE1 51%, #E2E6EA); min-width: 42px; }
.compose .crimson { font-size: 15px; padding: 0 18px; }
/* feed */
.feed { padding: 14px; }
.feed-compose, .post { max-width: 680px; background: #fff; border: 1px solid #C9CED5; border-radius: 9px; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.post { flex-direction: column; padding: 0; overflow: hidden; gap: 0; }
.post .ph { width: 100%; height: auto; aspect-ratio: 4/3; border: none; border-top: 1px solid #E3E6EA; border-bottom: 1px solid #E3E6EA; order: 2; }
.post .pt { padding: 12px; display: contents; }
.post .au { padding: 12px 12px 8px; margin: 0; order: 1; }
.post .cap { padding: 10px 12px 14px; order: 3; font-size: 15px; }
.post .au b { color: #1B1F27; }
.feed-compose input { height: 40px; border-radius: 20px; padding: 0 16px; }
/* ferestre */
.modal { background: rgba(20,22,26,.55); }
.mbox { padding: 0 16px 14px; border: 1px solid #5E0714; border-radius: 12px; overflow: auto; }
.mbox h3 { margin: 0 -16px 12px; padding: 12px 16px; color: #fff; background: linear-gradient(#C3182F, #8E0C21 55%, #7A0A1C); text-shadow: 0 1px 0 rgba(0,0,0,.35); font-size: 18px; }
.mbtns { margin: 14px -16px -14px; padding: 10px 16px; background: linear-gradient(#E4E7EB,#CDD2D8); border-top: 1px solid #A9B0B9; }
.mbtns button { border-radius: 9px; padding: 8px 14px; }
.mbox input, .mbox select, .mbox textarea { border-radius: 4px; padding: 9px 10px; }
/* notificări sus */
.toast { top: 70px; bottom: auto; background: linear-gradient(#FFFDF2,#F7EDC4); color: #1B1F27; border: 1px solid #C9A12E; border-radius: 12px; padding: 12px 18px; font-size: 15px; box-shadow: 0 8px 22px rgba(0,0,0,.3); }
.toast.buzz { background: linear-gradient(#FFF4F5,#FBDDE2); border: 2px solid #C8102E; color: #A50F24; font-weight: 700; font-size: 17px; }
.empty .logo.ghost { font-family: "DejaVu Sans", Verdana, sans-serif; font-weight: 700; color: #B5BBC3; }
.bubble-logo { line-height: 0; filter: drop-shadow(0 3px 4px rgba(0,0,0,.3)); }

.reg-btn { width: 340px; max-width: 100%; height: 44px; font-size: 15px; }
.mbox .chk input { display: inline; width: auto; margin: 0 6px 0 0; }

/* criptare end-to-end: lacătul din antetul conversației și de pe mesajele necriptate */
.e2e { font-size: 11px; white-space: nowrap; }
.e2e.on { color: #1f7a45; }
.e2e.off { color: #9a6a00; }
.e2e.warn { color: #c8102e; font-weight: 700; cursor: help; }
.chat.dark .e2e.on { color: #7fdc9f; }
.chat.dark .e2e.off { color: #f2c35b; }
