:root {
  --nro-orange: #ff9933;
  --nro-dark-orange: #ff6600;
  --nro-light-orange: #ffcc99;
  --nro-brown: #663300;
  --nro-red: #ff4d4d;
  --nro-border: #e67e22;
  --nro-white: #fff;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--nro-brown);
  background: var(--nro-orange);
}

a { color: var(--nro-dark-orange); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; border: 0; }
h1, h2, h3, h4 { margin: 0; }

.wrap { max-width: 1000px; margin: 0 auto; padding: 0 16px; }
.icon-sprite { display: none; }
.ic {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -3px;
}

/* ---------- Header ---------- */

.fr-head {
  position: sticky; top: 0; z-index: 50;
  background: var(--nro-brown);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.fr-head-in {
  max-width: 1000px; margin: 0 auto;
  display: flex; align-items: center; gap: 20px;
  padding: 12px 20px;
}
.fr-logo { display: flex; align-items: center; flex-shrink: 0; }
.fr-logo img { height: 44px; object-fit: contain; }
.fr-nav { display: flex; align-items: center; gap: 8px; margin-left: 14px; }
.fr-nav a {
  color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .3px;
  text-transform: uppercase;
  padding: 8px 16px; border-radius: 8px;
}
.fr-nav a:hover { background: rgba(255,255,255,.12); text-decoration: none; }
.fr-nav a.on { background: var(--nro-orange); color: #fff; }
.fr-head-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.fr-user { display: flex; align-items: center; gap: 8px; }
.fr-user .name { color: #fff; font-weight: 700; font-size: 13px; }
.fr-toggle { display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: 6px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit; font-weight: 700;
  cursor: pointer;
  transition: opacity .15s;
}
.btn:hover { text-decoration: none; opacity: .9; }
.btn-red { background: var(--nro-red); color: #fff; }
.btn-orange { background: var(--nro-dark-orange); color: #fff; }
.btn-ghost { background: #fff; color: var(--nro-brown); border-color: rgba(230,126,34,.3); }
.btn-head { background: rgba(255,255,255,.18); color: #fff; padding: 6px 12px; font-size: 13px; }
.btn-head:hover { background: rgba(255,255,255,.28); }
.fr-actions { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.btn-nap {
  background: linear-gradient(135deg, #ffb300 0%, #ff6d00 100%);
  color: #fff;
  padding: 7px 14px;
  font-size: 13px;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 3px 10px rgba(255,109,0,.35), inset 0 1px 0 rgba(255,255,255,.3);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.btn-nap:hover {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(255,109,0,.45), inset 0 1px 0 rgba(255,255,255,.35);
  filter: brightness(1.05);
}
.btn-mtv {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  padding: 7px 12px;
  font-size: 13px;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 3px 10px rgba(5,150,105,.35), inset 0 1px 0 rgba(255,255,255,.28);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.btn-mtv:hover {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(5,150,105,.45), inset 0 1px 0 rgba(255,255,255,.35);
  filter: brightness(1.05);
}
.btn-mtv .pill {
  background: rgba(0,0,0,.22);
  color: #fef08a;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
  letter-spacing: .2px;
}
.btn-mtv-done {
  background: rgba(16,185,129,.22);
  color: #a7f3d0;
  border: 1px solid rgba(52,211,153,.45);
  padding: 6px 12px;
  font-size: 13px;
  cursor: default;
}
.btn-mtv-done:hover { opacity: 1; }
.btn-block { width: 100%; }
.btn-lg { padding: 12px 18px; font-size: 15px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Card auth (dang nhap / dang ky / quen mk) ---------- */

.auth-screen {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
}
.auth-card {
  width: 100%; max-width: 400px;
  background: var(--nro-light-orange);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(102,51,0,.3);
}
.auth-top {
  position: relative;
  background: var(--nro-dark-orange);
  padding: 22px 24px;
  text-align: center;
}
.auth-top img { height: 48px; object-fit: contain; }
.auth-back {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.2); border: 0; color: #fff;
  width: 32px; height: 32px; border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.auth-body { padding: 28px 26px; }
.auth-title { text-align: center; margin-bottom: 18px; }
.auth-title h2 { font-size: 19px; font-weight: 800; color: var(--nro-brown); }
.auth-title p { font-size: 12px; color: rgba(102,51,0,.6); margin: 4px 0 0; }

.field { position: relative; margin-bottom: 14px; }
.field .lead-ic {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: rgba(102,51,0,.5); pointer-events: none;
}
.field input, .field select {
  width: 100%;
  padding: 11px 12px 11px 38px;
  border: 1px solid rgba(230,126,34,.4);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  color: var(--nro-brown);
}
.field.has-toggle input { padding-right: 40px; }
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--nro-dark-orange);
  box-shadow: 0 0 0 3px rgba(255,102,0,.15);
}
.field .toggle-pw {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; cursor: pointer; color: rgba(102,51,0,.55);
  padding: 4px;
}

.auth-row {
  display: flex; align-items: center; justify-content: space-between;
  margin: 4px 0 16px;
  font-size: 13px;
}
.auth-row label { display: flex; align-items: center; gap: 6px; color: rgba(102,51,0,.75); cursor: pointer; }
.auth-row a { color: var(--nro-red); }

.auth-divider {
  position: relative; text-align: center; margin: 18px 0;
}
.auth-divider::before {
  content: ""; position: absolute; top: 50%; left: 0; right: 0;
  border-top: 1px solid rgba(230,126,34,.25);
}
.auth-divider span {
  position: relative; background: var(--nro-light-orange);
  padding: 0 12px; font-size: 12px; color: rgba(102,51,0,.6);
}
.auth-foot {
  margin: 16px -26px -28px;
  padding: 14px 26px;
  background: rgba(102,51,0,.05);
  border-top: 1px solid rgba(230,126,34,.2);
  text-align: center;
}
.auth-foot p { margin: 0; font-size: 11px; color: rgba(102,51,0,.5); }

.alert { padding: 10px 12px; border-radius: 8px; font-size: 13px; margin-bottom: 14px; }
.alert-error { background: #ffe0e0; border: 1px solid #ffb3b3; color: #b30000; }
.alert-ok { background: #dff5e3; border: 1px solid #aadcb8; color: #1c7a3c; }

/* ---------- Forum listing ---------- */

/* hero: panel trang 1000px, cao 300px, nut dang nhap o day giua */
.hero-panel {
  max-width: 1000px; margin: 0 auto 16px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
  border-radius: 4px;
  overflow: hidden;
}
.fr-hero {
  position: relative;
  width: 100%; height: 300px;
  overflow: hidden;
  background: var(--nro-dark-orange);
}
.hero-bg { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 55%, rgba(0,0,0,.32)); }

.hero-login {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  z-index: 2;
  display: flex; align-items: center; justify-content: center;
}
.hero-login .ring {
  position: absolute; inset: -8px;
  border: 4px solid rgba(255,153,51,.5);
  border-radius: 50%;
  animation: hero-pulse 1.8s ease-in-out infinite;
}
.hero-login .circle {
  width: 96px; height: 96px; border-radius: 50%;
  border: 4px solid var(--nro-light-orange);
  box-shadow: 0 6px 18px rgba(0,0,0,.45);
  overflow: hidden;
  background: radial-gradient(circle at 40% 35%, #ffd98a, #f0a825 60%, #d4780f);
  display: flex; align-items: center; justify-content: center;
}
.hero-login .circle img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-login .circle b { color: #7a2c00; font-weight: 800; font-size: 15px; text-align: center; line-height: 1.1; }
.hero-login:hover { text-decoration: none; }
.hero-login:hover .circle { filter: brightness(1.05); }
@keyframes hero-pulse {
  0%, 100% { transform: scale(1); opacity: .8; }
  50% { transform: scale(1.08); opacity: .35; }
}

.fr-main { padding: 16px 0 40px; }
.fr-grid {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 300px; gap: 16px;
  align-items: start;
  padding: 0 16px;
}

/* feed tabs + filter */
.feed-tabs {
  display: flex; gap: 2px;
  background: var(--nro-light-orange); border: 1px solid var(--nro-border);
  border-radius: 12px; padding: 4px; margin-bottom: 12px;
  overflow: hidden;
}
.feed-tabs a {
  flex: 1; text-align: center; padding: 10px 6px;
  font-weight: 700; font-size: 14px;
  color: rgba(102,51,0,.6); cursor: pointer;
  border-bottom: 3px solid transparent;
}
.feed-tabs a:hover { color: var(--nro-brown); text-decoration: none; }
.feed-tabs a.on { color: var(--nro-brown); border-bottom-color: var(--nro-orange); }

.feed-filter {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 12px; padding: 0 4px;
  font-size: 13px;
}
.ff-left { display: flex; flex-wrap: wrap; gap: 14px; }
.ff-left a { color: rgba(102,51,0,.6); font-weight: 600; }
.ff-left a.on { color: var(--nro-red); }
.ff-right { color: rgba(102,51,0,.6); font-weight: 600; }

/* the bai (post card) */
.post {
  position: relative;
  background: var(--nro-light-orange);
  border: 1px solid var(--nro-border);
  border-radius: 12px;
  margin-bottom: 14px;
  overflow: hidden;
}
.ghim {
  position: absolute; top: 10px; right: 10px; z-index: 1;
  background: var(--nro-red); color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: .3px;
  padding: 3px 8px; border-radius: 6px;
}
.badge-admin { background: var(--nro-red); color: #fff; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 4px; }

.card {
  background: var(--nro-light-orange);
  border: 1px solid var(--nro-border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}
.card-head {
  padding: 12px 16px;
  background: var(--nro-dark-orange);
  color: #fff;
  font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.card-body { padding: 14px 16px; }

.thread {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(230,126,34,.15);
}
.thread:last-child { border-bottom: 0; }
.thread .av {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  background: var(--nro-light-orange);
  display: flex; align-items: center; justify-content: center;
  color: var(--nro-brown); font-weight: 800;
}
.thread .body { flex: 1; min-width: 0; }
.thread .body a.tt { font-weight: 700; color: var(--nro-brown); font-size: 15px; }
.thread .body a.tt:hover { color: var(--nro-dark-orange); }
.thread .meta { font-size: 12px; color: rgba(102,51,0,.55); margin-top: 3px; }
.thread .pin { font-size: 10px; font-weight: 700; color: var(--nro-red); border: 1px solid var(--nro-red); border-radius: 4px; padding: 1px 5px; }
.empty { padding: 18px 16px; color: rgba(102,51,0,.6); }

/* composer */
.composer .card-body { padding: 12px 14px; }
.composer-top { display: flex; gap: 10px; align-items: flex-start; }
.composer-top .av {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: var(--nro-light-orange);
  display: flex; align-items: center; justify-content: center;
  color: var(--nro-brown); font-weight: 800;
}
.composer textarea {
  flex: 1; border: 1px solid rgba(230,126,34,.35); border-radius: 10px;
  padding: 10px 12px; font: inherit; resize: vertical; color: var(--nro-brown);
}
.composer textarea:focus { outline: none; border-color: var(--nro-dark-orange); box-shadow: 0 0 0 3px rgba(255,102,0,.12); }
.composer-bar { display: flex; align-items: center; gap: 14px; margin-top: 10px; padding-left: 50px; }
.composer-bar .tool { display: flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(102,51,0,.7); }
.composer-bar .btn { margin-left: auto; }

/* post card */
.post-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px 8px; }
.post-head .av {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  background: var(--nro-light-orange);
  display: flex; align-items: center; justify-content: center;
  color: var(--nro-brown); font-weight: 800;
}
.post-user { font-weight: 700; }
.post-time { font-size: 12px; color: rgba(102,51,0,.55); }
.post-head .pin { margin-left: auto; font-size: 10px; font-weight: 700; color: var(--nro-red); border: 1px solid var(--nro-red); border-radius: 4px; padding: 1px 5px; }
.post-body { padding: 0 16px 12px; }
.post-title { font-weight: 700; font-size: 16px; color: var(--nro-brown); }
.post-title:hover { color: var(--nro-dark-orange); }
.post-ex { margin: 6px 0 0; color: rgba(102,51,0,.8); }
.post-img { margin-top: 10px; border-radius: 10px; width: 100%; }
.post-actions { display: flex; gap: 6px; border-top: 1px solid rgba(230,126,34,.15); padding: 6px 8px; }
.post-actions .act {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px; border-radius: 8px; font-size: 13px; font-weight: 600;
  color: rgba(102,51,0,.7); cursor: pointer;
}
.post-actions .act:hover { background: var(--nro-light-orange); text-decoration: none; }

/* pager */
.pager { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; padding: 6px 0 4px; }
.pager a {
  min-width: 34px; text-align: center; padding: 7px 10px;
  border: 1px solid rgba(230,126,34,.3); border-radius: 8px;
  background: #fff; color: var(--nro-brown); font-weight: 700;
}
.pager a:hover { background: var(--nro-light-orange); text-decoration: none; }
.pager a.on { background: var(--nro-red); border-color: var(--nro-red); color: #fff; }

/* arena */
.arena { list-style: none; margin: 0; padding: 0; }
.arena li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px dashed rgba(230,126,34,.2); }
.arena li:last-child { border-bottom: 0; }
.arena .rk { width: 22px; height: 22px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; background: var(--nro-light-orange); color: var(--nro-brown); }
.arena .rk-1 { background: #f5c518; color: #4a3300; }
.arena .rk-2 { background: #cfd4da; }
.arena .rk-3 { background: #dda06a; color: #fff; }
.arena .nm { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.side .card-body { font-size: 13px; }
.side .row { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px dashed rgba(230,126,34,.2); }
.side .row:last-child { border-bottom: 0; }
.side .btn { margin-top: 4px; }

.dl-quick { display: flex; flex-direction: column; gap: 8px; }
.dl-quick a {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border: 1px solid rgba(230,126,34,.3);
  border-radius: 8px; color: var(--nro-brown); font-weight: 600;
}
.dl-quick a:hover { background: var(--nro-light-orange); text-decoration: none; }

/* ---------- Profile ---------- */

.crumb { max-width: 1000px; margin: 0 auto 14px; display: flex; align-items: center; gap: 10px; }
.crumb .back { width: 36px; height: 36px; border-radius: 8px; background:#fff; display:flex; align-items:center; justify-content:center; border:1px solid rgba(230,126,34,.3); }
.crumb h1 { font-size: 18px; color: #fff; }

.profile-grid { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: start; }
.profile-card { text-align: center; }
.profile-av {
  width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 10px;
  background: var(--nro-light-orange);
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; font-weight: 800; color: var(--nro-brown);
}
.profile-name { font-size: 18px; font-weight: 800; }
.profile-sub { font-size: 12px; color: rgba(102,51,0,.6); margin-top: 2px; }
.profile-stats { display: grid; gap: 8px; margin-top: 14px; text-align: left; }
.profile-stat {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-radius: 10px;
  border: 1px solid rgba(230,126,34,.35);
  background: #fff8f0;
}
.profile-stat .lbl { font-size: 12px; font-weight: 700; color: rgba(102,51,0,.78); text-transform: uppercase; letter-spacing: .3px; }
.profile-stat .val { font-size: 15px; font-weight: 800; }
.profile-stat-vnd { background: linear-gradient(135deg, #fff4e5, #ffe5c4); border-color: #e67e22; }
.profile-stat-vnd .val { color: #d35400; }
.profile-stat-nap { background: linear-gradient(135deg, #eefaf1, #d8f5e0); border-color: #27ae60; }
.profile-stat-nap .val { color: #1e8449; }
.kv { text-align: left; margin-top: 14px; }
.kv .row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(230,126,34,.15); }
.kv .row:last-child { border-bottom: 0; }
.kv .k { color: rgba(102,51,0,.6); }
.kv .v { font-weight: 700; }

/* ---------- Footer ---------- */

.fr-foot { background: var(--nro-brown); color: rgba(255,255,255,.85); margin-top: 24px; }
.fr-foot-in { max-width: 1000px; margin: 0 auto; padding: 20px 16px; }
.fr-foot .links { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 10px; }
.fr-foot .links a { color: #fff; font-size: 13px; }
.fr-foot .fine { font-size: 11px; opacity: .6; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .fr-grid { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .fr-nav { display: none; width: 100%; flex-direction: column; margin: 0; }
  .fr-nav.open { display: flex; }
  .fr-toggle { display: block; order: 3; margin-left: auto; }
  .fr-head-in { flex-wrap: wrap; }
  .fr-head-right { order: 2; }
}

/* ============ Sidebar card (scard) — nen nhat, header gach chan ============ */
.scard {
  background: var(--nro-light-orange);
  border: 1px solid var(--nro-border);
  border-radius: 12px;
  margin-bottom: 14px;
  overflow: hidden;
}
.scard-head {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px;
  font-size: 13px; font-weight: 800; letter-spacing: .3px;
  color: var(--nro-brown);
  border-bottom: 1px solid var(--nro-border);
}
.scard-head .ic { stroke: var(--nro-dark-orange); }
.scard-body { padding: 12px 14px; }
.scard-body .hi { margin: 0 0 10px; font-size: 13px; }
.scard-body .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.btn-pale { background: var(--nro-light-orange); color: var(--nro-brown); font-size: 12px; padding: 8px 6px; }
.btn-pale:hover { filter: brightness(1.03); }
.support-note { margin: 0 0 10px; font-size: 12px; color: rgba(102,51,0,.65); }

/* nut tai theo nen tang */
.plat {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 10px; border-radius: 8px;
  color: #fff; font-weight: 700; font-size: 13px; margin-bottom: 8px;
}
.plat:hover { text-decoration: none; filter: brightness(1.06); }
.plat .ic { stroke: #fff; }
.plat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.plat-grid .plat { margin-bottom: 0; font-size: 12px; padding: 9px 6px; }
.plat-pc { background: #6b4423; }
.plat-android { background: #2ecc71; }
.plat-ios { background: #2c3e50; }
.plat-java { background: var(--nro-dark-orange); }
.plat-play { background: #6c5ce7; }

/* bang ket qua vo dai */
.arena-tb { width: 100%; border-collapse: collapse; font-size: 12px; }
.arena-tb th {
  text-align: left; padding: 6px 4px; color: rgba(102,51,0,.6);
  font-weight: 700; border-bottom: 1px solid rgba(230,126,34,.25);
}
.arena-tb td { padding: 7px 4px; border-bottom: 1px dashed rgba(230,126,34,.15); }
.arena-tb tr:last-child td { border-bottom: 0; }
.arena-tb .ad { color: #1c7a3c; font-weight: 600; white-space: nowrap; }
.arena-tb .av-s { color: var(--nro-red); font-weight: 800; }
.ta-r { text-align: right; }

/* composer (the .post.composer) */
.composer { padding: 12px 14px; }
.composer .composer-top { display: flex; gap: 10px; align-items: flex-start; }
.composer .av {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: var(--nro-light-orange);
  display: flex; align-items: center; justify-content: center;
  color: var(--nro-brown); font-weight: 800;
}
.composer textarea {
  flex: 1; border: 1px solid rgba(230,126,34,.35); border-radius: 10px;
  padding: 10px 12px; font: inherit; resize: vertical; color: var(--nro-brown);
}
.composer textarea:focus { outline: none; border-color: var(--nro-dark-orange); box-shadow: 0 0 0 3px rgba(255,102,0,.12); }
.composer-bar { display: flex; align-items: center; gap: 16px; margin-top: 10px; padding-left: 50px; }
.composer-bar .tool { display: flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(102,51,0,.7); cursor: pointer; }
.composer-bar .tool .ic { stroke: var(--nro-dark-orange); }
.composer-bar .btn { margin-left: auto; }

/* post action count */
.post-actions .act-count { margin-left: auto; font-size: 12px; color: rgba(102,51,0,.55); display: flex; align-items: center; }

/* avatar bang icon head cua nhan vat (pixel art) */
img.av {
  width: 42px; height: 42px; flex: none;
  border-radius: 50%;
  background: var(--nro-light-orange);
  object-fit: contain;
  image-rendering: pixelated;
}
.composer img.av { width: 40px; height: 40px; }
img.profile-av {
  width: 92px; height: 92px; margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--nro-light-orange);
  object-fit: contain;
  image-rendering: pixelated;
  display: block;
}

/* nut dang nhap tren hero dung anh login_icon (neu co) */
.hero-login.has-img { background: none; border: 0; box-shadow: none; width: auto; height: auto; padding: 0; }
.hero-login.has-img img { width: 110px; height: auto; display: block; filter: drop-shadow(0 4px 10px rgba(0,0,0,.5)); }

/* ---------- Trang chi tiet bai viet ---------- */
.crumb-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.crumb-bar .back { width: 36px; height: 36px; border-radius: 8px; background: #fff; border: 1px solid rgba(230,126,34,.3); display: flex; align-items: center; justify-content: center; }
.crumb-bar span { font-weight: 700; color: var(--nro-brown); }

.post-title-lg { font-size: 20px; font-weight: 800; color: var(--nro-brown); margin: 0 0 10px; }
.post-body .prose { font-size: 14px; line-height: 1.7; color: rgba(102,51,0,.9); }
.post-body .prose p { margin: 0 0 10px; }
.post-body .prose img { border-radius: 10px; margin: 8px 0; }

/* binh luan */
.cmt-head { padding: 12px 16px; font-weight: 800; border-bottom: 1px solid rgba(230,126,34,.2); }
.cmt-form { display: flex; gap: 8px; align-items: flex-start; padding: 12px 16px; border-bottom: 1px solid rgba(230,126,34,.12); }
.cmt-form textarea { flex: 1; border: 1px solid rgba(230,126,34,.35); border-radius: 20px; padding: 9px 14px; font: inherit; resize: none; color: var(--nro-brown); }
.cmt-form textarea:focus { outline: none; border-color: var(--nro-dark-orange); box-shadow: 0 0 0 3px rgba(255,102,0,.12); }
.cmt-form .btn { border-radius: 20px; }
.cmt-guest { padding: 14px 16px; margin: 0; color: rgba(102,51,0,.7); }

img.av.sm, .av.sm { width: 34px; height: 34px; font-size: 14px; }

.cmt-list { list-style: none; margin: 0; padding: 6px 16px 14px; }
.cmt-list li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed rgba(230,126,34,.15); }
.cmt-list li:last-child { border-bottom: 0; }
.cmt-body { flex: 1; min-width: 0; }
.cmt-body .cmt-top { display: flex; align-items: baseline; gap: 10px; }
.cmt-body .cmt-top b { color: var(--nro-brown); }
.cmt-body .cmt-top time { font-size: 11px; color: rgba(102,51,0,.5); }
.cmt-body p { margin: 3px 0 4px; word-break: break-word; }
.cmt-actions { display: flex; gap: 16px; font-size: 12px; color: rgba(102,51,0,.55); font-weight: 600; }
.cmt-actions span { cursor: pointer; }
.cmt-actions span:hover { color: var(--nro-dark-orange); }

/* ---------- Nap tien (SePay) ---------- */
.fr-grid-1 { grid-template-columns: 1fr; }
.btn-xs { padding: 4px 9px; font-size: 12px; }
.mono { font-family: Consolas, "Courier New", monospace; }
.muted { color: rgba(102,51,0,.55); }
.ta-r { text-align: right; }
.strong { font-weight: 800; }

.nap-rate { margin: 0 0 12px; }
.nap-presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.nap-chip {
  cursor: pointer; font: inherit;
  border: 1px solid rgba(230,126,34,.4); border-radius: 10px;
  background: #fff; padding: 10px 6px; text-align: center;
}
.nap-chip span { display: block; font-weight: 800; color: var(--nro-brown); }
.nap-chip em { display: block; font-style: normal; font-size: 11px; color: rgba(102,51,0,.6); margin-top: 2px; }
.nap-chip.on { border-color: var(--nro-red); background: #fff3f3; box-shadow: 0 0 0 3px rgba(255,77,77,.15); }
.nap-preview { margin: 0 0 12px; font-size: 14px; }
.nap-preview b { color: var(--nro-dark-orange); }
.nap-custom { display: block; margin-bottom: 12px; }
.nap-custom span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.nap-custom input { width: 100%; padding: 11px 12px; border: 1px solid rgba(230,126,34,.4); border-radius: 8px; font: inherit; }
.nap-custom input:focus { outline: none; border-color: var(--nro-dark-orange); box-shadow: 0 0 0 3px rgba(255,102,0,.15); }

.nap-tb { width: 100%; border-collapse: collapse; font-size: 13px; }
.nap-tb th { text-align: left; padding: 6px 8px; color: rgba(102,51,0,.6); border-bottom: 1px solid rgba(230,126,34,.25); font-size: 11px; text-transform: uppercase; }
.nap-tb td { padding: 8px; border-bottom: 1px dashed rgba(230,126,34,.15); }
.nap-tb tr:last-child td { border-bottom: 0; }
.bal { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed rgba(230,126,34,.2); }
.bal:last-child { border-bottom: 0; }
.bal b { color: var(--nro-dark-orange); font-variant-numeric: tabular-nums; }
.nap-guide ol { margin: 0 0 8px; padding-left: 18px; font-size: 13px; }
.nap-guide li { margin-bottom: 4px; }

/* QR page */
.qr-body { display: flex; gap: 20px; flex-wrap: wrap; }
.qr-left { text-align: center; flex: none; }
.qr-img { width: 220px; height: 220px; border: 1px solid rgba(230,126,34,.3); border-radius: 12px; background: #fff; }
.qr-left p { margin: 8px 0 0; font-size: 12px; }
.qr-right { flex: 1; min-width: 240px; }
.qr-status { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--nro-dark-orange); margin-bottom: 12px; }
.qr-status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--nro-dark-orange); animation: hero-pulse 1.2s infinite; }
.qr-info { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0 0 12px; }
.qr-info dt { color: rgba(102,51,0,.6); font-size: 13px; }
.qr-info dd { margin: 0; text-align: right; }
.qr-note { font-size: 12px; color: rgba(102,51,0,.7); background: #fff6ec; border: 1px solid rgba(230,126,34,.25); border-radius: 8px; padding: 8px 10px; }
.qr-actions { display: flex; gap: 8px; margin-top: 12px; }
.qr-done { padding: 30px 20px; text-align: center; }
.qr-done .ic-big { width: 64px; height: 64px; stroke: #1c7a3c; margin-bottom: 8px; }
.qr-done h3 { font-size: 20px; color: #1c7a3c; margin-bottom: 6px; }
.qr-done p { margin: 0 0 14px; }
.copy:hover { color: var(--nro-dark-orange); }

@media (max-width: 560px) {
  .nap-presets { grid-template-columns: repeat(2, 1fr); }
  .qr-body { flex-direction: column; align-items: center; }
  .qr-right { width: 100%; }
}
