/* =========================================================
   JLHSteel Community — Clean editorial theme
   ========================================================= */

/* ── Variables ── */
:root {
  --bg: #f8f9fa;
  --card: #ffffff;
  --ink: #1a202c;
  --ink2: #4a5568;
  --muted: #a0aec0;
  --accent: #2563eb;
  --accent-light: #eff6ff;
  --border: #e2e8f0;
  --shadow: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --radius: 10px;
  --sidebar-w: 272px;
}

/* ── Reset ── */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
button { font-family: inherit; }

/* ── Header ── */
.blog-header {
  background: var(--ink);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.blog-bar {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.blog-logo {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: -.2px;
}
.blog-logo b { color: #60a5fa; }
.blog-links {
  display: flex;
  gap: 2px;
  flex: 1;
}
.blog-links a {
  color: #94a3b8;
  padding: 6px 13px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 500;
  transition: color .15s, background .15s;
}
.blog-links a:hover { background: rgba(255,255,255,.07); color: #fff; text-decoration: none; }
.blog-links a.on { background: rgba(37,99,235,.35); color: #93c5fd; font-weight: 600; }
.blog-account { display: flex; align-items: center; gap: 12px; position: relative; }
.blog-msg-btn { position: relative; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,.1); color: #94a3b8; transition: background .15s, color .15s; flex-shrink: 0; }
.blog-msg-btn:hover { background: rgba(255,255,255,.2); color: #fff; text-decoration: none; }
.blog-login {
  background: var(--accent);
  color: #fff;
  padding: 7px 15px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  transition: background .15s;
}
.blog-login:hover { background: #1d4ed8; text-decoration: none; }
.blog-user { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 14px; }
.blog-av, .blog-av-t {
  width: 30px; height: 30px; border-radius: 50%;
  object-fit: cover; background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 13px; flex-shrink: 0;
}
.blog-uname { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Layout ── */
.container {
  max-width: 1160px;
  margin: 28px auto;
  padding: 0 24px;
}
.container.home { grid-template-columns: 1fr; }

/* ── Feed ── */
.feed { display: flex; flex-direction: column; gap: 16px; }

/* Hot carousel */
.hot-carousel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px 14px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.hc-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.hc-window { overflow: hidden; border-radius: 8px; }
.hc-track { display: flex; transition: transform .45s ease; }
.hc-slide {
  display: flex;
  gap: 0;
  width: 100%;
  flex: 0 0 100%;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  min-height: 200px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
}
.hc-img {
  width: 280px;
  flex-shrink: 0;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hc-img img { width: 100%; height: 100%; object-fit: cover; }
.hc-placeholder { font-size: 56px; color: var(--accent); opacity: .25; }
.hc-info {
  flex: 1;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.hc-title { font-size: 22px; font-weight: 800; color: var(--ink); line-height: 1.25; }
.hc-excerpt { font-size: 14px; color: var(--ink2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hc-meta { font-size: 12px; color: var(--muted); display: flex; gap: 14px; }
.hc-prev, .hc-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(4px);
  color: #fff;
  border: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  z-index: 3;
  transition: background .15s;
}
.hc-prev { left: 10px; }
.hc-next { right: 10px; }
.hc-prev:hover, .hc-next:hover { background: rgba(255,255,255,.3); }
.hc-dots { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
.hc-dots span { width: 7px; height: 7px; border-radius: 50%; background: #cbd5e0; cursor: pointer; transition: background .2s; }
.hc-dots span.on { background: var(--accent); }

/* Post card */
.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  transition: box-shadow .2s, transform .15s;
  box-shadow: var(--shadow);
}
.post-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); transform: translateY(-1px); }
.post-thumb {
  width: 200px;
  flex-shrink: 0;
  background: #f1f5f9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-card:hover .post-thumb img { transform: scale(1.04); }
.post-thumb-ph { font-size: 36px; color: #cbd5e0; }
.post-body { flex: 1; padding: 20px 22px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.post-top { display: flex; align-items: center; gap: 10px; }
.cat-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 2px 9px;
  border-radius: 4px;
}
.post-meta { font-size: 12px; color: var(--muted); }
.post-title { font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.post-title a { color: inherit; }
.post-title a:hover { color: var(--accent); text-decoration: none; }
.post-excerpt {
  color: var(--ink2);
  font-size: 13.5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.55;
}
.post-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--muted);
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}
.post-author { font-weight: 600; color: var(--ink2); font-size: 13px; }
.post-author a { color: var(--accent); }

/* Sidebar */
.side { display: flex; flex-direction: column; gap: 14px; }
.side-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
}
.side-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.search-box {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  font-size: 14px;
  outline: none;
  transition: border-color .15s;
}
.search-box:focus { border-color: var(--accent); }
.cat-item { display: block; padding: 7px 10px; border-radius: 6px; color: var(--ink2); font-size: 14px; transition: background .12s; }
.cat-item:hover { background: var(--accent-light); color: var(--accent); text-decoration: none; }
.cat-item.on { background: var(--accent-light); color: var(--accent); font-weight: 600; }
.stat-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink2); padding: 3px 0; }
.stat-row span:last-child { font-weight: 600; color: var(--ink); }

/* Write button */
.btn-write {
  display: block;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  margin-bottom: 16px;
  transition: background .15s;
}
.btn-write:hover { background: #1d4ed8; text-decoration: none; }

/* Empty state */
.empty, .pg-empty {
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  color: var(--muted);
}

/* ── Single Post Page ── */
.pg-wrap { max-width: 1060px; margin: 0 auto; padding: 28px 24px 48px; }

.pg-hero {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
  max-height: 460px;
  box-shadow: var(--shadow);
}
.pg-hero-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pg-layout {
  margin-bottom: 32px;
}

/* Article */
.pg-article {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.pg-article-head {
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--border);
}
.pg-breadcrumb {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pg-breadcrumb a { color: var(--accent); }
.pg-sep { color: var(--border); }
.pg-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -.3px;
  margin-bottom: 16px;
}
.pg-meta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.pg-author { display: flex; align-items: center; gap: 10px; }
.pg-av {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.pg-av-t { background: var(--accent); }
.pg-author-name { font-weight: 700; font-size: 14px; color: var(--ink); }
.pg-author-name:hover { color: var(--accent); text-decoration: none; }
.pg-meta-info { display: flex; gap: 16px; }
.pg-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--muted);
}
.pg-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.pg-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  padding: 3px 10px;
  border-radius: 20px;
  transition: background .15s;
}
.pg-tag:hover { background: #dbeafe; text-decoration: none; }

/* Tags bar at bottom of article */
.pg-tags-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 32px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.pg-tags-inline svg { color: var(--muted); flex-shrink: 0; }
.pg-tag-inline {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  padding: 3px 10px;
  border-radius: 20px;
  transition: background .15s;
}
.pg-tag-inline:hover { background: #dbeafe; text-decoration: none; }

.pg-body {
  padding: 28px 32px;
  font-size: 15.5px;
  color: #2d3748;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}
.pg-body p { margin-bottom: 16px; }
.pg-body p:last-child { margin-bottom: 0; }

.pg-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 32px;
  border-top: 1px solid var(--border);
}
.pg-like-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1.5px solid var(--border);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink2);
  cursor: pointer;
  transition: all .2s;
}
.pg-like-btn:hover { border-color: #e53e3e; color: #e53e3e; }
.pg-like-btn.liked { background: #fff5f5; border-color: #e53e3e; color: #e53e3e; }
.pg-share-hint { font-size: 13px; color: var(--muted); }
.pg-edit-btn {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.pg-source {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  padding: 12px 32px 20px;
}
.pg-source-link { color: var(--accent); font-weight: 600; }

/* Sidebar */
.pg-sidebar { display: flex; flex-direction: column; gap: 16px; }
.sb-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.sb-card-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.sb-author { display: flex; align-items: center; gap: 12px; }
.sb-av {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; flex-shrink: 0;
}
.sb-av-t { background: var(--accent); }
.sb-author-name { font-weight: 700; font-size: 15px; color: var(--ink); display: block; }
.sb-author-name:hover { color: var(--accent); text-decoration: none; }
.sb-author-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.sb-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sb-tag {
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-light);
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 500;
  transition: background .15s;
}
.sb-tag:hover { background: #dbeafe; text-decoration: none; }
.sb-empty { font-size: 13px; color: var(--muted); }

/* ── Comments ── */
.pg-comments-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.pg-comments-head {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
}
.pg-comments-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pg-comment-list { padding: 4px 0; }

.pg-comment {
  display: flex;
  gap: 14px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  transition: background .12s;
}
.pg-comment:last-child { border-bottom: none; }
.pg-comment:hover { background: #fafafa; }

.pg-cmt-av { flex-shrink: 0; }
.pg-cmt-av-img {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.pg-cmt-av-tl {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
}
.pg-cmt-body { flex: 1; min-width: 0; }
.pg-cmt-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.pg-cmt-name { font-weight: 700; font-size: 14px; color: var(--ink); }
.pg-cmt-name:hover { color: var(--accent); text-decoration: none; }
.pg-cmt-time { font-size: 12px; color: var(--muted); }
.pg-cmt-del {
  margin-left: auto;
  background: none;
  border: none;
  color: #e53e3e;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background .12s;
}
.pg-cmt-del:hover { background: #fff5f5; }
.cmt-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: #e53e3e;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background .12s;
}
.cmt-like-btn:hover { background: #fff5f5; }
.cmt-like-btn.liked { color: #e53e3e; }
.pg-cmt-text {
  font-size: 14px;
  color: #2d3748;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}
.pg-cmt-imgs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pg-cmt-img {
  max-width: 180px;
  max-height: 180px;
  border-radius: 7px;
  border: 1px solid var(--border);
  cursor: zoom-in;
  object-fit: cover;
}

.pg-cmt-empty {
  padding: 40px;
  text-align: center;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.pg-cmt-empty p { font-size: 14px; }

/* Comment form */
.pg-cmt-form { padding: 20px 24px; border-top: 1px solid var(--border); }
.pg-cmt-form-title { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.pg-cmt-user { margin-bottom: 12px; font-size: 13px; color: var(--ink2); }
.pg-cmt-logged strong { color: var(--accent); }
.pg-cmt-guest { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.pg-input {
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s;
}
.pg-input:focus { border-color: var(--accent); }

.pg-cmt-img-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.pg-cmt-img-previews { display: flex; gap: 8px; flex-wrap: wrap; }
.pg-prev-item { position: relative; }
.pg-prev-thumb {
  width: 70px; height: 70px;
  border-radius: 7px;
  object-fit: cover;
  border: 1px solid var(--border);
}
.pg-prev-rm {
  position: absolute;
  top: -6px; right: -6px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #e53e3e;
  color: #fff;
  font-size: 11px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  line-height: 1;
}
.pg-cmt-rm-img {
  background: none;
  border: 1.5px solid var(--border);
  color: var(--ink2);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all .15s;
}
.pg-cmt-rm-img:hover { border-color: #e53e3e; color: #e53e3e; }

.pg-cmt-textarea-wrap {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color .15s;
}
.pg-cmt-textarea-wrap:focus-within { border-color: var(--accent); }
.pg-textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px 14px;
  border: none;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  display: block;
}
.pg-cmt-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  background: #fafbfc;
}
.pg-upload-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink2);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background .12s, color .12s;
}
.pg-upload-btn:hover { background: var(--accent-light); color: var(--accent); }
.pg-submit-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
.pg-submit-btn:hover { background: #1d4ed8; }
.pg-submit-btn:disabled { opacity: .55; cursor: not-allowed; }

.pg-hint { font-size: 13px; padding: 8px 12px; border-radius: 7px; margin-top: 8px; }
.pg-hint-ok { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.pg-hint-err { background: #fff5f5; color: #9b1c1c; border: 1px solid #fecaca; }

/* ── Write / Edit ── */
.write-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  max-width: 780px;
  margin: 28px auto;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.field input[type=text], .field select, .field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { min-height: 300px; resize: vertical; }
.img-prev { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.img-prev img { max-width: 120px; border-radius: 7px; border: 1px solid var(--border); }
.note { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; padding: 12px 14px; border-radius: 7px; font-size: 13px; margin-bottom: 16px; }
.post-source { font-size: 13px; color: var(--ink2); padding: 10px 14px; background: #f7fafc; border: 1px solid var(--border); border-radius: 7px; }
.post-source b { color: var(--ink); }
.post-source a { color: var(--accent); font-weight: 600; }

/* ── Pager ── */
.feed-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 12px; flex-wrap: wrap; }
.feed-tabs { display: flex; gap: 6px; }
.feed-tabs a { padding: 7px 16px; border-radius: 7px; font-size: 14px; font-weight: 600; color: var(--ink2); background: var(--card); border: 1px solid var(--border); transition: all .15s; }
.feed-tabs a.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.feed-tabs a:hover:not(.on) { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.feed-sub { color: var(--muted); font-size: 13px; }
.pager { display: flex; gap: 6px; justify-content: center; margin: 28px 0; flex-wrap: wrap; }
.pager a, .pager span { padding: 7px 13px; border-radius: 7px; font-size: 14px; background: var(--card); border: 1px solid var(--border); color: var(--ink2); transition: all .15s; }
.pager a:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }
.pager .cur { background: var(--accent); color: #fff; border-color: var(--accent); }
.pager .gap { background: none; border-color: transparent; cursor: default; }
.pager-jump { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; }
.pager-jump label { font-size: 13px; color: var(--muted); }
.pager-input { width: 56px; padding: 5px 8px; border: 1.5px solid var(--border); border-radius: 6px; font-size: 13px; text-align: center; }
.pager-go { background: var(--accent); color: #fff; border: none; padding: 5px 10px; border-radius: 6px; font-size: 13px; cursor: pointer; font-weight: 700; }

/* ── Like button (feed) ── */
.lk-btn { display: inline-flex; align-items: center; gap: 5px; background: none; border: 1.5px solid var(--border); padding: 4px 12px; border-radius: 20px; font-size: 13px; color: var(--muted); cursor: pointer; font-weight: 600; transition: all .15s; font-family: inherit; }
.lk-btn:hover { border-color: #e53e3e; color: #e53e3e; }
.lk-btn.liked { background: #fff5f5; border-color: #e53e3e; color: #e53e3e; }
.lk-btn.sm { padding: 3px 10px; font-size: 12px; }
.lk-btn:disabled { opacity: .6; cursor: not-allowed; }

/* ── Author card / Follow / Tags ── */
.author-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; box-shadow: var(--shadow); }
.author-cover { height: 80px; background: linear-gradient(120deg, var(--ink), #1c3a63); }
.author-avatar {
  width: 76px; height: 76px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800;
  margin: -38px 0 0 18px;
  overflow: hidden;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-body { padding: 12px 18px 16px; }
.author-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.author-name { font-size: 20px; font-weight: 800; color: var(--ink); display: flex; align-items: center; flex-wrap: wrap; }
.author-meta { font-size: 13px; color: var(--muted); margin-top: 4px; }
.author-stats { display: flex; gap: 18px; margin-top: 10px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.author-stats b { color: var(--ink); }
.author-stat-link { color: var(--muted); text-decoration: none; }
.author-stat-link:hover { color: var(--accent); text-decoration: none; }
.author-top { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.follow-btn { background: var(--accent); color: #fff; border: none; padding: 7px 16px; border-radius: 20px; font-weight: 700; font-size: 13px; cursor: pointer; text-decoration: none; display: inline-block; transition: background .15s; }
.follow-btn:hover { background: #1d4ed8; text-decoration: none; }
.follow-btn.following { background: var(--bg); color: var(--ink2); border: 1.5px solid var(--border); }
.follow-btn.following:hover { background: #fff5f5; border-color: #e53e3e; color: #e53e3e; }
.follow-btn:disabled { opacity: .6; cursor: default; }

/* Follow icon button (+ / ✓) — appears inline after author name */
.follow-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid #e53e3e;
  background: transparent; color: #e53e3e;
  font-size: 16px; font-weight: 700; line-height: 1;
  cursor: pointer; vertical-align: middle; margin-left: 8px;
  transition: background .15s, color .15s, border-color .15s;
  padding: 0; flex-shrink: 0;
}
.follow-icon-btn:hover { background: #e53e3e; color: #fff; }
.follow-icon-btn.followed {
  background: #e53e3e; color: #fff; border-color: #e53e3e;
}
.follow-icon-btn.followed:hover { background: #c53030; border-color: #c53030; }
.follow-icon-btn:disabled { opacity: .6; cursor: default; }

/* ── Side collapsible ── */
.side-section { margin-bottom: 14px; }
.side-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  padding: 9px 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 13px; font-weight: 600;
  color: var(--ink2);
  cursor: pointer;
  text-align: left;
  transition: all .15s;
  font-family: inherit;
}
.side-toggle:hover { border-color: var(--accent); color: var(--accent); }
.side-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0; }
.side-tag { font-size: 12px; color: var(--ink2); background: var(--bg); padding: 3px 10px; border-radius: 20px; text-decoration: none; border: 1px solid var(--border); transition: all .12s; }
.side-tag:hover, .side-tag.on { background: var(--accent); color: #fff; border-color: var(--accent); text-decoration: none; }

/* ── My page ── */
.my-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.my-head h1 { margin: 0; font-size: 22px; font-weight: 800; }
.my-head-actions { display: flex; gap: 10px; }
.blog-btn { display: inline-block; background: var(--accent); color: #fff; padding: 8px 16px; border-radius: 7px; font-weight: 700; font-size: 14px; transition: background .15s; }
.blog-btn:hover { background: #1d4ed8; text-decoration: none; }
.blog-btn.ghost { background: #fff; color: var(--accent); border: 1.5px solid var(--accent); }
.my-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.my-list li { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.my-title { font-size: 16px; font-weight: 700; }
.my-title a:hover { color: var(--accent); }
.my-meta { color: var(--muted); font-size: 13px; margin: 4px 0 8px; }
.my-actions { display: flex; gap: 16px; }
.my-actions a { color: var(--accent); font-weight: 600; font-size: 14px; }
.my-actions a:last-child { color: #e53e3e; }
.blog-ok { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; padding: 10px 14px; border-radius: 7px; margin-bottom: 16px; font-size: 14px; }
.blog-err { background: #fff5f5; border: 1px solid #fecaca; color: #9b1c1c; padding: 10px 14px; border-radius: 7px; margin-bottom: 16px; font-size: 14px; }

/* ── Stats ── */
.my-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0; }
.my-stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; text-align: center; box-shadow: var(--shadow); }
.my-stat-link { text-decoration: none; }
.my-stat-link:hover .my-stat { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.my-stat b { display: block; font-size: 26px; color: var(--accent); }
.my-stat span { font-size: 12px; color: var(--muted); }
@media (max-width: 560px) { .my-stats { grid-template-columns: repeat(2, 1fr); } }

/* ── Mention / Hashtag ── */
.mention { color: var(--accent); font-weight: 600; }
.hashtag { color: #2563eb; font-weight: 600; cursor: pointer; }
.hashtag:hover { text-decoration: underline; }

/* Following / Followers page */
.back-link { display: inline-block; margin-bottom: 16px; color: var(--accent); font-size: 14px; font-weight: 600; }
.back-link:hover { text-decoration: none; }
.fl-head { margin-bottom: 20px; }
.fl-title { font-size: 22px; font-weight: 800; }
.fl-user-link { color: var(--accent); }
.fl-count { font-size: 16px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.fl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.fl-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  color: inherit;
}
.fl-card:hover { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); transform: translateY(-1px); text-decoration: none; }
.fl-av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--accent); flex-shrink: 0; }
.fl-av-t { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; flex-shrink: 0; }
.fl-info { min-width: 0; }
.fl-name { font-weight: 600; font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-meta { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-pages { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 24px; }
.fl-page-btn { padding: 5px 12px; background: var(--card); border: 1px solid var(--border); border-radius: 7px; font-size: 14px; font-weight: 600; color: var(--ink2); text-decoration: none; transition: background .15s, border-color .15s; }
.fl-page-btn:hover { background: var(--accent-light); border-color: var(--accent); color: var(--accent); text-decoration: none; }
.fl-page-cur { padding: 5px 12px; background: var(--accent); color: #fff; border-radius: 7px; font-size: 14px; font-weight: 700; }

/* ── Responsive ── */
@media (max-width: 860px) {
  .pg-layout { grid-template-columns: 1fr; }
  .pg-sidebar { display: none; }
  .pg-meta-row { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (max-width: 640px) {
  .hot-carousel { padding: 12px 14px 10px; }
  .hc-img { width: 140px; }
  .hc-title { font-size: 17px; }
  .hc-info { padding: 14px 16px; }
  .post-thumb { width: 120px; }
  .post-title { font-size: 15px; }
  .pg-title { font-size: 22px; }
  .pg-body { padding: 20px; font-size: 14.5px; }
  .pg-article-head { padding: 18px 20px 14px; }
  .pg-actions { padding: 14px 20px; }
  .pg-source { padding: 10px 20px 16px; }
  .pg-cmt-form { padding: 16px; }
  .pg-cmt-guest { grid-template-columns: 1fr; }
  .blog-bar { padding: 0 14px; }
  .container { padding: 0 14px; margin: 16px auto; }
  .pg-wrap { padding: 16px 14px 36px; }
}
@media (max-width: 480px) {
  .post-thumb { display: none; }
  .post-card { flex-direction: column; }
  .pg-title { font-size: 20px; }
  .hc-img { display: none; }
  .my-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════════
   MESSAGES / INBOX
   ══════════════════════════════════════════ */

/* ── Inbox page ── */
.inbox-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 0 40px;
}

/* Header */
.inbox-header {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px 18px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.inbox-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.inbox-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--accent-light);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.inbox-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 2px;
}
.inbox-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.inbox-new-btn {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px; font-weight: 600;
  text-decoration: none;
  transition: background .15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.inbox-new-btn:hover { background: #1d4ed8; text-decoration: none; }

/* Empty state */
.inbox-empty {
  text-align: center;
  padding: 56px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.inbox-empty-icon { margin-bottom: 16px; }
.inbox-empty-title { font-size: 18px; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.inbox-empty-sub { font-size: 14px; color: var(--muted); max-width: 340px; margin: 0 auto 22px; line-height: 1.6; }
.inbox-empty-cta {
  display: inline-block;
  background: var(--accent);
  color: #fff; padding: 9px 22px;
  border-radius: 20px; font-size: 14px; font-weight: 600;
  text-decoration: none;
  transition: background .15s;
}
.inbox-empty-cta:hover { background: #1d4ed8; text-decoration: none; }

/* Inbox list */
.inbox-list { display: flex; flex-direction: column; gap: 8px; }

.inbox-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: border-color .18s, box-shadow .18s, transform .12s;
}
.inbox-item:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
  text-decoration: none;
  transform: translateY(-1px);
}
.inbox-item.unread {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border-left: 3px solid var(--accent);
}

.inbox-av-wrap { position: relative; flex-shrink: 0; }
.inbox-av { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; display: block; }
.inbox-av-tl {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 20px;
}
.inbox-av-dot {
  position: absolute; bottom: 1px; right: 1px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--accent);
  border: 2.5px solid var(--card);
}

.inbox-body { flex: 1; min-width: 0; }
.inbox-row1 { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.inbox-name { font-weight: 700; font-size: 15px; color: var(--ink); }
.unread .inbox-name { color: var(--accent); }
.inbox-time { font-size: 12px; color: var(--muted); flex-shrink: 0; }
.inbox-row2 { display: flex; align-items: center; gap: 6px; }
.inbox-preview {
  font-size: 13px; color: var(--ink2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.inbox-preview.mine { color: var(--muted); }
.inbox-img-preview { color: var(--accent); font-weight: 600; }

.inbox-arrow { color: var(--border); flex-shrink: 0; transition: color .15s; }
.inbox-item:hover .inbox-arrow { color: var(--accent); }

/* ══════════════════════════════════════════
   CHAT PAGE
   ══════════════════════════════════════════ */

.chat-page {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 28px 0 40px;
}

/* Top bar */
.chat-topbar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
}
.chat-back {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink2);
  transition: background .15s, color .15s;
  flex-shrink: 0;
  text-decoration: none;
}
.chat-back:hover { background: var(--accent-light); color: var(--accent); text-decoration: none; }
.chat-user-link {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  flex: 1; min-width: 0;
}
.chat-user-link:hover .chat-bar-name { color: var(--accent); }
.chat-bar-av {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.chat-bar-av-tl {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; flex-shrink: 0;
}
.chat-bar-info { min-width: 0; }
.chat-bar-name { font-weight: 700; font-size: 15px; color: var(--ink); transition: color .15s; }
.chat-bar-sub { font-size: 12px; color: var(--muted); }

/* Messages area */
.chat-msgs {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-top: none;
  padding: 24px 20px;
  min-height: 420px;
  max-height: 58vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.chat-loading, .chat-start-hint {
  text-align: center; color: var(--muted); font-size: 14px;
  padding: 60px 0;
  display: flex; align-items: center; justify-content: center;
}

/* Message rows */
.chat-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 80%;
  margin-bottom: 4px;
}
.chat-row.mine { align-self: flex-end; flex-direction: row-reverse; }
.chat-row.theirs { align-self: flex-start; }

.chat-av-chip { flex-shrink: 0; }
.chat-av-chip-img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.chat-av-chip-tl {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
}

.chat-bubble {
  max-width: 100%;
  border-radius: 16px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.55;
  word-break: break-word;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.chat-bubble.theirs {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--ink);
  border-bottom-left-radius: 5px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.chat-bubble.mine {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  border-bottom-right-radius: 5px;
  box-shadow: 0 2px 8px rgba(59,130,246,.3);
}

.chat-msg-img {
  max-width: 240px;
  max-height: 200px;
  border-radius: 10px;
  object-fit: cover;
  cursor: zoom-in;
  display: block;
}
.chat-msg-time {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  padding: 0 4px;
  align-self: flex-end;
}
.chat-row.mine .chat-msg-time { align-self: flex-end; }
.chat-row.theirs .chat-msg-time { align-self: flex-start; }

/* Image preview strip */
.chat-img-preview-row {
  background: var(--card);
  border: 1px solid var(--border);
  border-top: none;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-img-wrap { position: relative; display: inline-block; }
.chat-img-wrap img {
  height: 64px; width: auto; border-radius: 8px; object-fit: cover;
  border: 1px solid var(--border);
}
.chat-img-remove {
  position: absolute; top: -7px; right: -7px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #ef4444; color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
  transition: background .12s;
}
.chat-img-remove:hover { background: #dc2626; }

/* Input row (bottom bar) */
.chat-bottom {
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 1px solid #e2e8f0;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 12px 16px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.chat-img-btn {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink2);
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s, border-color .15s, color .15s;
}
.chat-img-btn:hover { background: var(--accent-light); border-color: var(--accent); color: var(--accent); }
.chat-input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 9px 14px;
  font-size: 14px;
  font-family: inherit;
  resize: none;
  outline: none;
  line-height: 1.5;
  transition: border-color .15s;
  max-height: 120px;
  overflow-y: auto;
}
.chat-input:focus { border-color: var(--accent); }
.chat-input::placeholder { color: #94a3b8; }
.chat-send-btn {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .15s, transform .1s;
  flex-shrink: 0;
}
.chat-send-btn:hover { background: linear-gradient(135deg, #2563eb, #1d4ed8); transform: scale(1.05); }
.chat-send-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ══════════════════════════════════════════
   MESSAGE BUTTON / BADGE
   ══════════════════════════════════════════ */
.msg-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: linear-gradient(135deg, var(--accent), #2563eb);
  color: #fff; padding: 6px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 600;
  transition: background .15s, transform .1s;
  white-space: nowrap; border: none; cursor: pointer;
}
.msg-btn:hover { background: linear-gradient(135deg, #2563eb, #1d4ed8); text-decoration: none; transform: translateY(-1px); }
.msg-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: #ef4444; color: #fff; border-radius: 9px;
  font-size: 11px; font-weight: 700;
  vertical-align: middle;
}
.blog-nav-msg-link {
  position: relative;
  display: flex; align-items: center; gap: 2px;
  padding: 6px 10px; border-radius: 7px;
  font-size: 14px; font-weight: 500; color: #94a3b8;
  transition: color .15s, background .15s; white-space: nowrap;
}
.blog-nav-msg-link:hover { background: rgba(255,255,255,.07); color: #fff; text-decoration: none; }

/* Chat extras */
.chat-loading {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 60px 0; color: #94a3b8; font-size: 14px;
}
.chat-spinner {
  width: 32px; height: 32px;
  border: 3px solid #e2e8f0;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.chat-spinner-sm {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.chat-hint {
  text-align: center; padding: 60px 24px; font-size: 14px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.chat-img-strip {
  background: var(--card);
  border: 1px solid var(--border);
  border-top: none;
  padding: 8px 20px;
  display: flex; align-items: center; gap: 10px;
}
.chat-img-thumb-wrap { position: relative; display: inline-block; }
.chat-img-thumb-wrap img {
  height: 56px; width: auto; border-radius: 7px; object-fit: cover;
  border: 1px solid var(--border);
}
.chat-img-remove {
  position: absolute; top: -6px; right: -6px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #ef4444; color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
}
.chat-img-remove:hover { background: #dc2626; }
.chat-img-name { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.chat-bubble-text { word-break: break-word; }
.chat-msg-time { font-size: 11px; color: #94a3b8; white-space: nowrap; margin: 0 4px; align-self: flex-end; }
.chat-row.mine .chat-msg-time { order: -1; }
.chat-row.theirs .chat-msg-time { order: 1; }

/* Responsive */
@media (max-width: 600px) {
  .inbox-page, .chat-page { padding: 16px 0 24px; }
  .inbox-item { padding: 13px 14px; gap: 10px; }
  .inbox-av, .inbox-av-tl { width: 44px; height: 44px; font-size: 17px; }
  .inbox-name { font-size: 14px; }
  .chat-msgs { max-height: 50vh; padding: 16px 14px; }
  .chat-row { max-width: 90%; }
  .chat-msg-img { max-width: 180px; max-height: 150px; }
  .inbox-new-btn { display: none; }
}

/* ── Mobile nav (<=768px): hamburger + dropdown ── */
.blog-toggle { display: none; }
.blog-mobile { display: none; }
@media (max-width: 768px) {
  .blog-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; margin-left: auto; flex-shrink: 0;
    border-radius: 8px; background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15); color: #fff; cursor: pointer;
  }
  .blog-toggle svg { width: 22px; height: 22px; }
  .blog-links, .blog-account { display: none !important; }
  .blog-bar { gap: 12px; padding: 0 14px; }
  .blog-mobile { display: block; max-height: 0; overflow: hidden; transition: max-height .25s ease; }
  .blog-mobile.open { max-height: 520px; overflow: auto; }
  .blog-mobile-inner {
    padding: 10px 14px 16px; display: flex; flex-direction: column; gap: 6px;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .blog-mobile-links { display: flex; flex-direction: column; gap: 2px; }
  .blog-mobile-links a { padding: 12px 14px; border-radius: 8px; font-size: 15px; }
  .blog-mobile-account {
    position: relative; display: flex; align-items: center; gap: 12px;
    margin-top: 10px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08);
  }
  .blog-mobile-account .blog-login { margin-left: auto; }
}
