/* Single2Double v3 - FB-Style UI */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Hind+Siliguri:wght@400;500;600;700&display=swap');

:root {
  --pink: #e91e8c;
  --pink2: #c2185b;
  --gold: #f59e0b;
  --blue: #1877f2;
  --green: #42b883;
  --bg: #f0f2f5;
  --card: #ffffff;
  --border: #dde0e4;
  --text: #050505;
  --text2: #65676b;
  --text3: #8a8d91;
  --nav-h: 56px;
  --side-w: 280px;
  --right-w: 280px;
  --shadow: 0 1px 2px rgba(0,0,0,.1), 0 0 0 1px rgba(0,0,0,.05);
  --shadow2: 0 2px 12px rgba(0,0,0,.12);
  --r: 12px;
  --r2: 8px;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

body {
  font-family: 'Inter', 'Hind Siliguri', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.5;
}

body.font-bangla { font-family: 'Hind Siliguri', 'Inter', sans-serif; }
body.font-english { font-family: 'Inter', sans-serif; }

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c5c6c7; border-radius: 10px; }

/* ── TOP NAVBAR ─────────────────────────────────── */
.topnav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 16px; gap: 8px;
  z-index: 300;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.tn-logo {
  font-size: 1.5rem; font-weight: 800;
  background: linear-gradient(135deg, var(--pink), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  text-decoration: none; white-space: nowrap; flex-shrink: 0;
  letter-spacing: -.5px;
}
.tn-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg); border-radius: 20px;
  padding: 8px 14px; flex: 0 0 240px;
}
.tn-search input {
  background: none; border: none; outline: none;
  font-size: .9rem; font-family: inherit; color: var(--text);
  width: 100%;
}
.tn-search input::placeholder { color: var(--text2); }
.tn-center {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 2px;
}
.tn-tab {
  display: flex; align-items: center; justify-content: center;
  width: 112px; height: 48px; border-radius: 10px;
  text-decoration: none; color: var(--text2); font-size: 1.4rem;
  transition: background .15s, color .15s; position: relative;
  border-bottom: 3px solid transparent;
}
.tn-tab:hover { background: var(--bg); color: var(--pink); }
.tn-tab.active { color: var(--pink); border-bottom-color: var(--pink); }
.tn-tab .notif-dot {
  position: absolute; top: 8px; right: 22px;
  width: 18px; height: 18px; background: #e41e3f;
  border-radius: 50%; border: 2px solid #fff;
  font-size: .65rem; font-weight: 700; color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.tn-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.tn-icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg); border: none; cursor: pointer;
  font-size: 1.1rem; display: flex; align-items: center;
  justify-content: center; transition: background .15s;
  text-decoration: none; color: var(--text); position: relative;
}
.tn-icon-btn:hover { background: #e4e6eb; }
.tn-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover; cursor: pointer;
  border: 3px solid transparent;
  background: linear-gradient(#fff,#fff) padding-box,
              linear-gradient(135deg,var(--pink),var(--gold)) border-box;
  text-decoration: none; display: flex; align-items: center;
  justify-content: center; font-size: 1.1rem; overflow: hidden;
  flex-shrink: 0;
}
.tn-avatar img { width:100%; height:100%; object-fit:cover; border-radius:50%; }

/* ── LAYOUT ──────────────────────────────────────── */
.app-layout {
  display: flex;
  padding-top: var(--nav-h);
  min-height: 100vh;
}

/* LEFT SIDEBAR */
.left-sidebar {
  width: var(--side-w); flex-shrink: 0;
  position: sticky; top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto; padding: 8px 0;
}
.sb-user {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--r);
  text-decoration: none; color: var(--text); font-weight: 600;
  font-size: .95rem; margin: 0 4px;
  transition: background .15s;
}
.sb-user:hover { background: var(--bg); }
.sb-user-av {
  width: 36px; height: 36px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  background: linear-gradient(135deg, #fce4ec, #fff8e1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.sb-user-av img { width:100%; height:100%; object-fit:cover; }
.sb-sep { height: 1px; background: var(--border); margin: 6px 12px; }
.sb-label { font-size: .8rem; font-weight: 700; color: var(--text2); padding: 6px 16px; text-transform: uppercase; letter-spacing: .05em; }
.sb-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; border-radius: var(--r);
  text-decoration: none; color: var(--text); font-weight: 500;
  font-size: .95rem; margin: 0 4px; transition: background .15s;
  cursor: pointer;
}
.sb-item:hover, .sb-item.active { background: var(--bg); }
.sb-item.active { color: var(--pink); font-weight: 700; }
.sb-item-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #fce4ec, #fff8e1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.sb-item.active .sb-item-icon { background: linear-gradient(135deg, var(--pink), var(--gold)); }
.sb-item-label { flex: 1; }
.sb-item-badge {
  background: #e41e3f; color: #fff;
  font-size: .7rem; font-weight: 700;
  padding: 2px 7px; border-radius: 20px;
}

/* CENTER FEED */
.center-feed {
  flex: 1; padding: 16px;
  max-width: 680px; margin: 0 auto;
}

/* RIGHT SIDEBAR */
.right-sidebar {
  width: var(--right-w); flex-shrink: 0;
  position: sticky; top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto; padding: 16px 8px;
}

/* ── STORY ROW ────────────────────────────────────── */
.story-row {
  display: flex; gap: 10px; overflow-x: auto;
  background: var(--card); border-radius: var(--r);
  padding: 12px; margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.story-row::-webkit-scrollbar { display: none; }
.story-card {
  width: 110px; height: 170px; border-radius: 10px;
  flex-shrink: 0; position: relative; cursor: pointer;
  overflow: hidden;
  background: linear-gradient(160deg, #fce4ec, #fff8e1);
  transition: transform .2s;
}
.story-card:hover { transform: scale(1.03); }
.story-card-bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #e91e8c33, #f8b73933);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.8rem;
}
.story-card-av {
  position: absolute; top: 10px; left: 10px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid var(--pink);
  background: #fff; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.story-card-av img { width:100%; height:100%; object-fit:cover; }
.story-card-name {
  position: absolute; bottom: 10px; left: 6px; right: 6px;
  font-size: .75rem; font-weight: 700; color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
}
.story-add {
  width: 110px; height: 170px; border-radius: 10px;
  flex-shrink: 0; background: var(--card);
  border: 2px dashed var(--border);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px; cursor: pointer; color: var(--text2);
  font-size: .82rem; font-weight: 600; transition: border-color .2s;
}
.story-add:hover { border-color: var(--pink); color: var(--pink); }
.story-add-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: #fff;
}

/* ── POST CREATE BOX ──────────────────────────────── */
.post-box {
  background: var(--card); border-radius: var(--r);
  padding: 14px 16px; margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.post-box-top {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.post-box-av {
  width: 40px; height: 40px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  background: linear-gradient(135deg,#fce4ec,#fff8e1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; border: 2px solid var(--border);
}
.post-box-av img { width:100%; height:100%; object-fit:cover; }
.post-fake-input {
  flex: 1; padding: 10px 14px;
  background: var(--bg); border-radius: 20px;
  color: var(--text2); font-size: .95rem;
  cursor: pointer; border: none; font-family: inherit;
  text-align: left; transition: background .15s;
}
.post-fake-input:hover { background: #e4e6eb; }
.post-box-divider { height: 1px; background: var(--border); margin-bottom: 10px; }
.post-box-actions {
  display: flex; gap: 4px;
}
.post-box-btn {
  flex: 1; display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 8px 4px; border-radius: var(--r2);
  border: none; background: none; cursor: pointer;
  font-family: inherit; font-size: .85rem; font-weight: 600;
  color: var(--text2); transition: background .15s;
}
.post-box-btn:hover { background: var(--bg); }

/* ── POST CARD ────────────────────────────────────── */
.post-card {
  background: var(--card); border-radius: var(--r);
  margin-bottom: 14px; box-shadow: var(--shadow);
  overflow: hidden;
}
.post-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px 10px;
}
.post-head-av {
  width: 40px; height: 40px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  background: linear-gradient(135deg,#fce4ec,#fff8e1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; text-decoration: none;
}
.post-head-av img { width:100%; height:100%; object-fit:cover; }
.post-head-info { flex: 1; }
.post-head-name {
  font-weight: 700; font-size: .95rem;
  text-decoration: none; color: var(--text);
}
.post-head-name:hover { text-decoration: underline; }
.post-head-meta { font-size: .78rem; color: var(--text2); display: flex; align-items: center; gap: 4px; }
.post-head-more {
  width: 36px; height: 36px; border-radius: 50%;
  background: none; border: none; cursor: pointer;
  font-size: 1.1rem; display: flex; align-items: center;
  justify-content: center; color: var(--text2);
  transition: background .15s;
}
.post-head-more:hover { background: var(--bg); }
.post-content {
  padding: 0 16px 12px;
  font-size: .97rem; line-height: 1.65;
  color: var(--text); word-break: break-word;
}
.post-img {
  width: 100%; max-height: 500px;
  object-fit: cover; display: block;
}
.post-stats {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 16px; border-bottom: 1px solid var(--border);
  font-size: .85rem; color: var(--text2);
}
.post-stats-left { display: flex; align-items: center; gap: 4px; }
.post-like-faces { display: flex; }
.post-like-face {
  width: 18px; height: 18px; border-radius: 50%;
  background: linear-gradient(135deg, #e91e8c, #f8b739);
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem; margin-right: -4px; border: 1.5px solid #fff;
}
.post-actions {
  display: flex; border-top: 1px solid var(--border);
  padding: 4px 8px;
}
.post-act-btn {
  flex: 1; display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 8px 4px; border-radius: var(--r2);
  border: none; background: none; cursor: pointer;
  font-family: inherit; font-size: .9rem; font-weight: 600;
  color: var(--text2); transition: background .15s;
}
.post-act-btn:hover { background: var(--bg); }
.post-act-btn.liked { color: var(--pink); }
.post-act-btn.liked svg, .post-act-btn.liked span { color: var(--pink); }

/* ── COMMENTS ─────────────────────────────────────── */
.comments-section { padding: 4px 16px 8px; }
.comment-input-row {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.comment-av {
  width: 32px; height: 32px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  background: linear-gradient(135deg,#fce4ec,#fff8e1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.comment-av img { width:100%; height:100%; object-fit:cover; }
.comment-input {
  flex: 1; padding: 8px 14px;
  background: var(--bg); border-radius: 20px;
  border: none; outline: none; font-family: inherit;
  font-size: .875rem; color: var(--text);
}
.comment-item {
  display: flex; gap: 8px; margin-bottom: 8px;
}
.comment-bubble {
  background: var(--bg); border-radius: 12px;
  padding: 8px 12px; flex: 1;
}
.comment-bubble-name { font-weight: 700; font-size: .82rem; }
.comment-bubble-text { font-size: .88rem; line-height: 1.5; }
.comment-bubble-time { font-size: .72rem; color: var(--text2); margin-top: 2px; }

/* ── RIGHT SIDEBAR WIDGETS ────────────────────────── */
.widget {
  background: var(--card); border-radius: var(--r);
  padding: 14px; margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.widget-title {
  font-size: .9rem; font-weight: 700;
  color: var(--text2); margin-bottom: 12px;
  display: flex; align-items: center; gap: 6px;
}
.online-person {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 0; cursor: pointer;
  text-decoration: none; color: var(--text);
}
.online-person:hover .op-name { text-decoration: underline; }
.op-av {
  width: 36px; height: 36px; border-radius: 50%;
  overflow: hidden; background: linear-gradient(135deg,#fce4ec,#fff8e1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; position: relative; flex-shrink: 0;
}
.op-av img { width:100%; height:100%; object-fit:cover; }
.op-dot {
  position: absolute; bottom: 1px; right: 1px;
  width: 10px; height: 10px; background: #42b883;
  border-radius: 50%; border: 2px solid #fff;
}
.op-name { font-size: .9rem; font-weight: 600; flex: 1; }
.op-flag { font-size: 1.1rem; }

/* ── FULL-SCREEN CHAT ─────────────────────────────── */
.chat-page {
  position: fixed; inset: var(--nav-h) 0 0 0;
  display: grid; grid-template-columns: 320px 1fr;
  background: var(--bg); z-index: 10;
}
.chat-sidebar {
  background: var(--card); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; overflow: hidden;
}
.cs-header {
  padding: 18px 16px 10px;
  font-size: 1.4rem; font-weight: 800; color: var(--text);
  border-bottom: 1px solid var(--border);
}
.chat-tabs {
  display: flex; border-bottom: 1px solid var(--border);
}
.chat-tab {
  flex: 1; padding: 12px 8px; text-align: center;
  font-size: .82rem; font-weight: 700; color: var(--text2);
  cursor: pointer; border-bottom: 3px solid transparent;
  transition: all .2s; border: none; background: none;
  font-family: inherit;
}
.chat-tab.active { color: var(--pink); border-bottom-color: var(--pink); }
.chat-tab:hover { background: var(--bg); }
.chat-search {
  padding: 10px 12px; border-bottom: 1px solid var(--border);
}
.chat-search input {
  width: 100%; padding: 9px 14px;
  background: var(--bg); border: none; border-radius: 20px;
  font-family: inherit; font-size: .88rem; outline: none;
  color: var(--text);
}
.chat-list { flex: 1; overflow-y: auto; }
.chat-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; cursor: pointer; transition: background .15s;
  text-decoration: none; color: var(--text);
}
.chat-item:hover { background: var(--bg); }
.chat-item.active { background: #fce4ec; }
.ci-av {
  width: 48px; height: 48px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  background: linear-gradient(135deg,#fce4ec,#fff8e1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; position: relative;
}
.ci-av img { width:100%; height:100%; object-fit:cover; }
.ci-online {
  position: absolute; bottom: 2px; right: 2px;
  width: 12px; height: 12px; background: #42b883;
  border-radius: 50%; border: 2px solid #fff;
}
.ci-body { flex: 1; min-width: 0; }
.ci-name { font-weight: 700; font-size: .92rem; }
.ci-preview {
  font-size: .8rem; color: var(--text2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ci-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.ci-time { font-size: .72rem; color: var(--text2); }
.ci-unread {
  background: var(--pink); color: #fff;
  font-size: .68rem; font-weight: 700;
  padding: 2px 6px; border-radius: 20px; min-width: 18px; text-align: center;
}

/* Chat main area */
.chat-main {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--card);
}
.chat-main-header {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  background: var(--card); flex-shrink: 0;
}
.cmh-av {
  width: 42px; height: 42px; border-radius: 50%;
  overflow: hidden; background: linear-gradient(135deg,#fce4ec,#fff8e1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.cmh-av img { width:100%; height:100%; object-fit:cover; }
.cmh-info { flex: 1; }
.cmh-name { font-weight: 700; font-size: .98rem; }
.cmh-status { font-size: .77rem; color: var(--text2); }
.cmh-actions { display: flex; gap: 6px; }
.cmh-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg); border: none; cursor: pointer;
  font-size: 1rem; display: flex; align-items: center;
  justify-content: center; transition: background .15s;
}
.cmh-btn:hover { background: #e4e6eb; }

.chat-messages {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 6px;
}
.msg-group { display: flex; flex-direction: column; gap: 2px; }
.msg-row { display: flex; align-items: flex-end; gap: 6px; }
.msg-row.mine { flex-direction: row-reverse; }
.msg-av-small {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg,#fce4ec,#fff8e1);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; flex-shrink: 0; overflow: hidden;
}
.msg-av-small img { width:100%; height:100%; object-fit:cover; }
.bubble {
  max-width: 65%; padding: 9px 13px;
  border-radius: 18px; font-size: .9rem; line-height: 1.5;
  word-break: break-word;
}
.bubble.sent {
  background: linear-gradient(135deg, var(--pink), #f06292);
  color: #fff; border-bottom-right-radius: 4px;
}
.bubble.recv {
  background: var(--bg); color: var(--text);
  border-bottom-left-radius: 4px;
}
.bubble-time {
  font-size: .68rem; opacity: .65;
  display: block; margin-top: 2px;
}
.bubble.sent .bubble-time { text-align: right; }
.chat-input-area {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-top: 1px solid var(--border);
  background: var(--card); flex-shrink: 0;
}
.chat-input-emoji {
  width: 36px; height: 36px; border-radius: 50%;
  background: none; border: none; cursor: pointer;
  font-size: 1.2rem; display: flex; align-items: center;
  justify-content: center; color: var(--gold); flex-shrink: 0;
}
.chat-input-field {
  flex: 1; padding: 10px 16px;
  background: var(--bg); border: none; border-radius: 20px;
  font-family: inherit; font-size: .95rem; outline: none; color: var(--text);
  max-height: 120px; resize: none;
}
.chat-send-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--gold));
  border: none; cursor: pointer; color: #fff; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s; flex-shrink: 0;
}
.chat-send-btn:hover { transform: scale(1.1); }
.chat-empty-state {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px; color: var(--text2); text-align: center; padding: 20px;
}
.chat-empty-state .big { font-size: 5rem; }
.chat-empty-state h3 { font-size: 1.1rem; color: var(--text); }

/* World/Country chat styling */
.world-msg {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 8px 0;
}
.world-msg-av {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg,#fce4ec,#fff8e1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0; overflow: hidden;
}
.world-msg-av img { width:100%; height:100%; object-fit:cover; }
.world-msg-body { flex: 1; }
.world-msg-meta { font-size: .82rem; margin-bottom: 2px; }
.world-msg-meta .wm-name { font-weight: 700; color: var(--text); }
.world-msg-meta .wm-flag { margin: 0 3px; }
.world-msg-meta .wm-time { color: var(--text2); margin-left: 6px; }
.world-msg-text { font-size: .9rem; line-height: 1.5; color: var(--text); }

/* ── PROFILE PAGE ─────────────────────────────────── */
.profile-cover {
  height: 200px; border-radius: var(--r);
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #e91e8c, #f8b739);
  margin-bottom: 56px;
}
.profile-cover-img { width:100%; height:100%; object-fit:cover; }
.profile-av-wrap {
  position: absolute; bottom: -48px; left: 20px;
  width: 96px; height: 96px; border-radius: 50%;
  border: 4px solid var(--card);
  overflow: hidden; background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; box-shadow: var(--shadow2);
  cursor: pointer;
}
.profile-av-wrap img { width:100%; height:100%; object-fit:cover; }
.profile-cam-btn {
  position: absolute; bottom: 0; right: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: #fff; border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; cursor: pointer; box-shadow: var(--shadow);
}
.profile-info {
  background: var(--card); border-radius: var(--r);
  padding: 20px; margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.profile-name { font-size: 1.5rem; font-weight: 800; color: var(--text); }
.profile-handle { color: var(--text2); font-size: .9rem; margin-bottom: 8px; }
.profile-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.p-tag {
  padding: 4px 12px; border-radius: 20px;
  font-size: .78rem; font-weight: 600;
}
.p-tag-pink { background: #fce4ec; color: var(--pink2); }
.p-tag-blue { background: #e3f2fd; color: #1565c0; }
.p-tag-green { background: #e8f5e9; color: #2e7d32; }
.p-tag-gold { background: #fff8e1; color: #e65100; }
.profile-bio { font-size: .92rem; color: var(--text); line-height: 1.7; margin-bottom: 12px; }
.profile-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-primary {
  padding: 9px 20px; border-radius: var(--r2);
  background: linear-gradient(135deg, var(--pink), var(--gold));
  color: #fff; border: none; font-family: inherit;
  font-size: .9rem; font-weight: 700; cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  text-decoration: none; display: inline-flex;
  align-items: center; gap: 6px;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(233,30,140,.3); }
.btn-secondary {
  padding: 9px 20px; border-radius: var(--r2);
  background: var(--bg); color: var(--text);
  border: none; font-family: inherit;
  font-size: .9rem; font-weight: 700; cursor: pointer;
  transition: background .15s;
  text-decoration: none; display: inline-flex;
  align-items: center; gap: 6px;
}
.btn-secondary:hover { background: #e4e6eb; }

/* ── DISCOVER / PEOPLE ────────────────────────────── */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.people-card {
  background: var(--card); border-radius: var(--r);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.people-card:hover { transform: translateY(-3px); box-shadow: var(--shadow2); }
.people-card-cover {
  height: 80px;
  background: linear-gradient(135deg, #fce4ec, #fff8e1);
  position: relative;
}
.people-card-av {
  position: absolute; bottom: -22px; left: 50%;
  transform: translateX(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  border: 3px solid var(--card); overflow: hidden;
  background: linear-gradient(135deg,#fce4ec,#fff8e1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.people-card-av img { width:100%; height:100%; object-fit:cover; }
.people-card-body {
  padding: 28px 12px 14px; text-align: center;
}
.people-card-name { font-weight: 700; font-size: .92rem; margin-bottom: 4px; }
.people-card-meta { font-size: .77rem; color: var(--text2); margin-bottom: 8px; }
.people-card-tag {
  display: inline-block; padding: 3px 10px;
  background: #fce4ec; color: var(--pink2);
  border-radius: 20px; font-size: .72rem; font-weight: 700;
  margin-bottom: 10px;
}
.people-card-actions { display: flex; gap: 6px; justify-content: center; }
.btn-like-sm {
  flex: 1; padding: 7px 6px; border-radius: var(--r2);
  background: linear-gradient(135deg, var(--pink), #f06292);
  color: #fff; border: none; font-family: inherit;
  font-size: .8rem; font-weight: 700; cursor: pointer;
  transition: transform .15s;
}
.btn-like-sm:hover { transform: scale(1.04); }
.btn-liked-sm {
  flex: 1; padding: 7px 6px; border-radius: var(--r2);
  background: var(--bg); color: var(--text2);
  border: none; font-family: inherit;
  font-size: .8rem; cursor: default;
}
.btn-msg-sm {
  flex: 1; padding: 7px 6px; border-radius: var(--r2);
  background: #e3f2fd; color: #1565c0;
  border: none; font-family: inherit;
  font-size: .8rem; font-weight: 700; cursor: pointer;
  text-decoration: none; display: block; text-align: center;
  transition: background .15s;
}
.btn-msg-sm:hover { background: #bbdefb; }
.btn-match-sm {
  width: 100%; padding: 8px; border-radius: var(--r2);
  background: linear-gradient(135deg, #ff6b9d, var(--gold));
  color: #fff; border: none; font-family: inherit;
  font-size: .8rem; font-weight: 700; cursor: pointer;
  text-decoration: none; display: block; text-align: center;
  animation: matchPulse 1.5s ease infinite;
}
@keyframes matchPulse {
  0%,100%{box-shadow:0 0 0 0 rgba(233,30,140,.4)}
  50%{box-shadow:0 0 0 8px rgba(233,30,140,0)}
}

/* ── AUTH PAGES ───────────────────────────────────── */
.auth-page {
  min-height: 100vh; display: flex;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #e91e8c 100%);
  padding: 20px;
}
.auth-card {
  background: var(--card); border-radius: 16px;
  padding: 36px 32px; width: 100%; max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.auth-logo {
  font-size: 2rem; font-weight: 800;
  background: linear-gradient(135deg, var(--pink), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  display: block; margin-bottom: 4px;
}
.auth-sub { color: var(--text2); font-size: .88rem; margin-bottom: 24px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: .82rem; font-weight: 700; color: var(--text2); margin-bottom: 5px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: var(--r2);
  font-family: inherit; font-size: .93rem; outline: none;
  color: var(--text); background: var(--card);
  transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--pink); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn-auth {
  width: 100%; padding: 13px;
  background: linear-gradient(135deg, var(--pink), var(--gold));
  color: #fff; border: none; border-radius: var(--r2);
  font-family: inherit; font-size: 1rem; font-weight: 700;
  cursor: pointer; margin-top: 6px;
  transition: transform .2s, box-shadow .2s;
}
.btn-auth:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(233,30,140,.3); }
.auth-link { margin-top: 14px; text-align: center; font-size: .88rem; color: var(--text2); }
.auth-link a { color: var(--pink); font-weight: 700; text-decoration: none; }
.err-box { background: #fff0f5; border: 1px solid #ffc1d5; border-radius: var(--r2); padding: 10px 14px; color: var(--pink2); font-size: .85rem; margin-bottom: 12px; }

/* ── MODAL ────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 500; display: flex; align-items: center;
  justify-content: center; padding: 16px;
  backdrop-filter: blur(3px);
}
.modal-card {
  background: var(--card); border-radius: 16px;
  width: 100%; max-width: 520px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
}
.modal-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--card); z-index: 1;
}
.modal-title { font-size: 1.1rem; font-weight: 800; }
.modal-close {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg); border: none; cursor: pointer;
  font-size: 1rem; display: flex; align-items: center;
  justify-content: center; transition: background .15s;
}
.modal-close:hover { background: #e4e6eb; }
.modal-body { padding: 20px; }

/* ── TOAST ────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #1c1e21; color: #fff;
  padding: 12px 24px; border-radius: 12px;
  font-weight: 600; z-index: 9999;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 6px 24px rgba(0,0,0,.3); white-space: nowrap;
  font-size: .9rem;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ── FONT SWITCHER ────────────────────────────────── */
.font-switcher {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg); border-radius: 20px;
  padding: 4px 6px;
}
.font-btn {
  padding: 4px 12px; border-radius: 14px; border: none;
  cursor: pointer; font-size: .78rem; font-weight: 700;
  background: none; color: var(--text2); transition: all .2s;
}
.font-btn.active { background: var(--card); color: var(--pink); box-shadow: var(--shadow); }

/* ── EMPTY STATES ─────────────────────────────────── */
.empty { text-align: center; padding: 48px 20px; color: var(--text2); }
.empty-icon { font-size: 4rem; margin-bottom: 12px; }
.empty h3 { font-size: 1.1rem; color: var(--text); margin-bottom: 6px; }

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 1100px) {
  .right-sidebar { display: none; }
}
@media (max-width: 860px) {
  .left-sidebar { display: none; }
  .center-feed { max-width: 100%; }
  .chat-page { grid-template-columns: 1fr; }
  .chat-sidebar { display: none; }
  .chat-sidebar.show { display: flex; }
}
@media (max-width: 620px) {
  .tn-search, .tn-center { display: none; }
  .center-feed { padding: 10px 8px; }
  .people-grid { grid-template-columns: repeat(2,1fr); }
}

/* ── PROFILE PAGE EXTRA ───────────────────────────────── */
@media (max-width: 700px) {
  .prof-body { grid-template-columns: 1fr !important; }
}
@media (max-width: 620px) {
  .tn-center { display: flex !important; }
  .tn-tab { width: 44px !important; font-size: 1.1rem; }
  .prof-av-row { padding: 0 12px; margin-top: -40px; }
  .prof-av-circle { width: 80px !important; height: 80px !important; font-size: 2rem !important; }
  .prof-name-quick h1 { font-size: 1.05rem; }
  .prof-cover-wrap { height: 160px !important; }
}
