:root {
  --nen: #f1f5f9;
  --the-nen: #ffffff;
  --chu: #0f172a;
  --chu-phu: #64748b;
  --xanh: #087e8b;
  --xanh-dam: #075c69;
  --xanh-nhat: #e0f2f1;
  --vang: #f59e0b;
  --do: #ef4444;
  --vien: #e2e8f0;
  --bong:
    0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --bong-noi:
    0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--nen);
  color: var(--chu);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

/* Header */
.thanh-dau {
  background: rgba(18, 11, 36, 0.94);
  border-bottom: 1px solid rgba(168, 85, 247, 0.25);
  box-shadow: 0 8px 30px rgba(18, 7, 34, 0.35);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
}

.khung-dau {
  width: min(1200px, calc(100% - 32px));
  min-height: 72px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo-kara img {
  width: 90px;
  height: 50px;
  object-fit: cover;
  border-radius: 10px;
}

.ten-thuong-hieu {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.015em;
  white-space: nowrap;
}

.menu-ngang {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-ngang > li {
  position: relative;
}

.menu-con {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 10;
  display: none;
  min-width: 210px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 16px 35px rgba(24, 11, 42, 0.2);
}

.co-menu-con:hover .menu-con,
.co-menu-con:focus-within .menu-con {
  display: block;
}

.menu-ngang .menu-con a {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  padding: 9px 11px;
  color: #1e293b;
  font-size: 0.86rem;
  white-space: nowrap;
  border-radius: 7px;
}

.menu-ngang .menu-con a:hover,
.menu-ngang .menu-con a:focus-visible {
  color: #7c3aed;
  background: #f3e8ff;
}

.menu-ngang a {
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 650;
  color: #e2e8f0;
  transition: all 0.2s;
}

.menu-ngang a:hover,
.menu-ngang a.dang-chon,
.menu-ngang .dang-chon {
  background: rgba(168, 85, 247, 0.22);
  color: #ffffff !important;
}

.menu-ngang .menu-cha {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 650;
  color: #e2e8f0 !important;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

.menu-ngang .co-menu-con:hover > .menu-cha,
.menu-ngang .co-menu-con:focus-within > .menu-cha,
.menu-ngang .co-menu-con.dang-mo > .menu-cha {
  background: rgba(168, 85, 247, 0.25) !important;
  color: #ffffff !important;
  border-color: rgba(168, 85, 247, 0.5) !important;
}

.tai-khoan {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nut-dang-nhap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #ffffff !important;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(168, 85, 247, 0.45);
  background: rgba(168, 85, 247, 0.18);
  transition: all 0.25s ease;
}

.nut-dang-nhap:hover {
  color: #ffffff !important;
  background: rgba(168, 85, 247, 0.35);
  border-color: #c084fc;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.4);
}

.nut-dang-ky {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #a855f7, #7c3aed) !important;
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
  transition: all 0.25s ease;
}

.nut-dang-ky:hover {
  background: linear-gradient(135deg, #9333ea, #6d28d9) !important;
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.55);
}

/* Banner nhỏ giới thiệu diễn đàn */
.banner-cong-dong {
  background: linear-gradient(135deg, #180b2a 0%, #281446 50%, #150926 100%);
  color: #fff;
  padding: 38px 0;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(168, 85, 247, 0.3);
  box-shadow: 0 8px 30px rgba(24, 11, 42, 0.25);
}

.khung-banner {
  width: min(1200px, calc(100% - 32px));
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.banner-chu h1 {
  margin: 0 0 6px;
  font-size: 1.85rem;
  letter-spacing: -0.5px;
}

.banner-chu p {
  margin: 0;
  color: #e2e8f0;
  font-size: 0.98rem;
}

.banner-tag {
  display: inline-block;
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.45);
  color: #c084fc;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
}

/* Bố cục 3 cột của diễn đàn */
.khung-dien-dan {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 60px;
  display: grid;
  grid-template-columns: 260px 1fr 280px;
  gap: 24px;
  align-items: start;
}

/* Cột trái (Sidebar) */
.cot-trai {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 90px;
}

.the-sidebar {
  background: var(--the-nen);
  border: 1px solid var(--vien);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--bong);
}

.the-ho-so {
  text-align: center;
}

.ho-so-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 10px;
  background: linear-gradient(135deg, var(--xanh), #023e4f);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(8, 126, 139, 0.25);
}

.ho-so-avatar img,
.avatar-bai-viet img,
.avatar-binh-luan img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  transform: scale(var(--avatar-zoom, 1.4));
}

.ho-so-ten {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--chu);
  margin-bottom: 4px;
}

.ho-so-email {
  font-size: 0.8rem;
  color: var(--chu-phu);
  margin-bottom: 10px;
  word-break: break-all;
}

.huy-hieu-vip-lon {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  border: 1px solid #f59e0b;
  font-weight: 800;
  font-size: 0.78rem;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.2);
}

.huy-hieu-thuong {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.76rem;
  font-weight: 600;
}

.huy-hieu-vai-tro-lon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.8rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.huy-hieu-ad-lon {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #991b1b;
  border: 1px solid #f87171;
}

.huy-hieu-mn-lon {
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
  color: #3730a3;
  border: 1px solid #818cf8;
}

.huy-hieu-nv-lon {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #166534;
  border: 1px solid #4ade80;
}

.nut-ve-quan-tri {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 7px 16px;
  border-radius: 8px;
  background: var(--xanh);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.82rem;
  transition: background 0.2s;
}

.nut-ve-quan-tri:hover {
  background: var(--xanh-dam);
}

.ho-so-diem {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--vien);
  font-size: 0.84rem;
  color: #334155;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px 12px;
}

.ho-so-diem strong {
  max-width: 68%;
  color: #059669;
  font-weight: 800;
  overflow-wrap: anywhere;
  text-align: right;
}

/* Danh mục chủ đề */
.tieu-de-sidebar {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--chu-phu);
  letter-spacing: 0.5px;
  margin: 0 0 12px;
}

.danh-sach-chu-de {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nut-chu-de {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  width: 100%;
}

.nut-chu-de:hover {
  background: #f1f5f9;
  color: var(--xanh-dam);
}

.nut-chu-de.dang-chon {
  background: var(--xanh-nhat);
  color: var(--xanh-dam);
  font-weight: 700;
}

.nut-chu-de span.icon {
  font-size: 1.15rem;
}

/* Cột giữa (Feed bài viết) */
.cot-giua {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Khung tạo bài viết mới */
.khung-tao-bai-viet {
  background: var(--the-nen);
  border: 1px solid var(--vien);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--bong);
}

.dau-tao-bai {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.o-nhap-tieu-de {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--vien);
  border-radius: 10px;
  font-size: 0.98rem;
  font-weight: 600;
  background: #f8fafc;
  transition: all 0.2s;
  outline: none;
}

.o-nhap-tieu-de:focus {
  background: #fff;
  border-color: var(--xanh);
  box-shadow: 0 0 0 3px rgba(8, 126, 139, 0.12);
}

.o-nhap-noi-dung {
  width: 100%;
  min-height: 95px;
  padding: 12px 16px;
  border: 1px solid var(--vien);
  border-radius: 10px;
  font-size: 0.92rem;
  background: #f8fafc;
  resize: vertical;
  transition: all 0.2s;
  outline: none;
  line-height: 1.5;
}

.o-nhap-noi-dung:focus {
  background: #fff;
  border-color: var(--xanh);
  box-shadow: 0 0 0 3px rgba(8, 126, 139, 0.12);
}

.chan-tao-bai {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.nhom-tuy-chon-dang {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nhom-tuy-chon-dang select {
  padding: 7px 12px;
  border: 1px solid var(--vien);
  border-radius: 8px;
  background: #fff;
  font-size: 0.85rem;
  color: #334155;
  outline: none;
}

.nhom-tuy-chon-dang select:focus {
  border-color: var(--xanh);
}

.nut-dang-bai {
  padding: 9px 22px;
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  color: #fff;
  border: none;
  border-radius: 9px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.28);
  transition: all 0.2s ease;
}

.nut-dang-bai:hover {
  background: linear-gradient(135deg, #9333ea 0%, #6d28d9 100%);
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.42);
  transform: translateY(-1px);
}

.nut-dang-bai:active {
  transform: scale(0.98);
}

.thong-bao-dang-bai {
  font-size: 0.84rem;
  margin-top: 8px;
  min-height: 1.2em;
}

/* Thanh điều hướng và lọc feed */
.thanh-loc-feed {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--the-nen);
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--vien);
  box-shadow: var(--bong);
}

.tab-loc {
  display: flex;
  gap: 8px;
}

.nut-tab-feed {
  padding: 6px 14px;
  border: none;
  background: transparent;
  color: var(--chu-phu);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.nut-tab-feed.dang-chon {
  background: var(--xanh-nhat);
  color: var(--xanh-dam);
}

.o-tim-feed {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--vien);
  border-radius: 8px;
  padding: 4px 10px;
}

.o-tim-feed input {
  border: none;
  background: transparent;
  font-size: 0.85rem;
  outline: none;
  width: 170px;
}

/* Danh sách bài viết (Cards) */
.danh-sach-bai-viet {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.the-bai-viet {
  background: var(--the-nen);
  border: 1px solid var(--vien);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--bong);
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}

.the-bai-viet:hover {
  box-shadow: var(--bong-noi);
}

.dau-the-bai {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.nguoi-dang-thong-tin {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-bai-viet {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--xanh), #035261);
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ten-va-thoi-gian {
  display: flex;
  flex-direction: column;
}

.hang-ten-va-vip {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ten-nguoi-dang {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--chu);
}

.badge-vip-nho {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 999px;
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fcd34d;
  font-weight: 800;
  font-size: 0.68rem;
}

.huy-hieu-vai-tro {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 7px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.68rem;
  line-height: 1.3;
  vertical-align: middle;
}

.huy-hieu-ad {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #991b1b;
  border: 1px solid #f87171;
  box-shadow: 0 1px 4px rgba(239, 68, 68, 0.15);
}

.huy-hieu-mn {
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
  color: #3730a3;
  border: 1px solid #818cf8;
  box-shadow: 0 1px 4px rgba(99, 102, 241, 0.15);
}

.huy-hieu-nv {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #166534;
  border: 1px solid #4ade80;
}

.thoi-gian-dang {
  font-size: 0.78rem;
  color: var(--chu-phu);
}

.nhan-chu-de-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 700;
}

.tag-giao-luu {
  background: #e0f2fe;
  color: #0369a1;
}
.tag-ru-hat {
  background: #fef3c7;
  color: #b45309;
}
.tag-review {
  background: #ecfdf5;
  color: #047857;
}
.tag-hoi-dap {
  background: #f3e8ff;
  color: #7e22ce;
}

.tag-quan-lien-quan {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  margin-top: 6px;
}

/* Thân bài viết */
.tieu-de-bai-viet {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--chu);
  margin: 10px 0 8px;
  line-height: 1.35;
}

.noi-dung-bai-viet {
  font-size: 0.94rem;
  color: #334155;
  white-space: pre-line;
  line-height: 1.6;
  margin: 0 0 14px;
}

/* Tương tác (Thích, Bình luận, Xóa) */
.thanh-tuong-tac {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.nut-tuong-tac {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  border: none;
  background: #f8fafc;
  color: #475569;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.nut-tuong-tac:hover {
  background: #f1f5f9;
  color: var(--chu);
}

.nut-tuong-tac.da-thich {
  background: #fee2e2;
  color: var(--do);
}

.nut-xoa-bai {
  margin-left: auto;
  color: #94a3b8;
  font-size: 0.78rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}

.nut-xoa-bai:hover {
  background: #fee2e2;
  color: #b91c1c;
}

/* Khung bình luận */
.khung-binh-luan {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--vien);
}

.danh-sach-binh-luan-bai {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.cum-binh-luan-thread {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.the-binh-luan-item {
  display: flex;
  gap: 10px;
  background: #f8fafc;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #f1f5f9;
}

.the-binh-luan-item.item-reply {
  background: #ffffff;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.avatar-binh-luan {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #087e8b;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.avatar-binh-luan.avatar-reply {
  width: 26px;
  height: 26px;
  font-size: 0.75rem;
}

.khung-replies-con {
  margin-left: 32px;
  padding-left: 10px;
  border-left: 2px solid #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 2px;
}

.noi-dung-binh-luan-wrap {
  flex: 1;
  min-width: 0;
}

.dau-binh-luan {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.ten-nguoi-binh-luan {
  font-weight: 700;
  font-size: 0.86rem;
  color: #1e293b;
}

.thoi-gian-binh-luan {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-left: auto;
}

.chu-binh-luan {
  font-size: 0.88rem;
  color: #334155;
  margin: 0;
  white-space: pre-line;
  word-break: break-word;
}

.tag-rep-ten {
  color: var(--xanh-dam);
  font-weight: 700;
  background: #e0f2fe;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.8rem;
  margin-right: 4px;
  display: inline-block;
}

.chan-binh-luan {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.nut-tra-loi-cmt {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.74rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.nut-tra-loi-cmt:hover {
  color: var(--xanh);
  text-decoration: underline;
}

.nut-xoa-cmt {
  background: none;
  border: none;
  padding: 0;
  margin-left: 10px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.nut-xoa-cmt:hover {
  color: #ef4444;
  text-decoration: underline;
}

/* Form gửi bình luận */
.form-gui-binh-luan {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.thanh-dang-tra-loi {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 500;
}

.nut-huy-rep {
  background: none;
  border: none;
  color: #047857;
  font-weight: 800;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1;
}

.nut-huy-rep:hover {
  background: #d1fae5;
  color: #065f46;
}

.hang-nhap-binh-luan {
  display: flex;
  gap: 8px;
}

.input-binh-luan {
  flex: 1;
  padding: 8px 14px;
  border: 1px solid var(--vien);
  border-radius: 999px;
  font-size: 0.88rem;
  background: #fff;
  outline: none;
}

.input-binh-luan:focus {
  border-color: var(--xanh);
  box-shadow: 0 0 0 2px rgba(8, 126, 139, 0.15);
}

.nut-gui-binh-luan {
  padding: 8px 16px;
  background: var(--xanh);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.nut-gui-binh-luan:hover {
  background: var(--xanh-dam);
}

/* Cột phải */
.cot-phai {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 90px;
}

/* Widget Nhóm Facebook */
.the-group-fb {
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(24, 119, 242, 0.2);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(24, 119, 242, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.the-group-fb:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(24, 119, 242, 0.14);
}

.anh-bia-nhom-fb {
  position: relative;
  width: 100%;
  height: 124px;
  overflow: hidden;
  background: #180b2a;
}

.anh-bia-nhom-fb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.the-group-fb:hover .anh-bia-nhom-fb img {
  transform: scale(1.04);
}

.tag-nhom-fb {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(24, 11, 42, 0.85);
  color: #a855f7;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(168, 85, 247, 0.4);
  backdrop-filter: blur(6px);
  letter-spacing: 0.03em;
}

.noi-dung-nhom-fb {
  padding: 16px;
}

.hang-ten-nhom {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.icon-fb-tron {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e7f3ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(24, 119, 242, 0.15);
}

.thong-tin-nhom-chinh {
  min-width: 0;
}

.ten-nhom-fb {
  margin: 0 0 2px;
  font-size: 0.96rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
}

.thong-tin-phu-fb {
  margin: 0;
  font-size: 0.78rem;
  color: #64748b;
}

.thong-tin-phu-fb strong {
  color: #1877f2;
}

.mo-ta-nhom-fb {
  margin: 0 0 14px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #475569;
}

.nut-vao-nhom-fb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  background: #1877f2;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.86rem;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.25);
  transition: all 0.2s ease;
}

.nut-vao-nhom-fb:hover {
  background: #1464cc;
  box-shadow: 0 6px 16px rgba(24, 119, 242, 0.35);
  transform: translateY(-1px);
}

.nut-vao-nhom-fb .muiten-vao {
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.nut-vao-nhom-fb:hover .muiten-vao {
  transform: translate(2px, -2px);
}

.danh-sach-quan-hot {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quan-hot-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s;
}

.quan-hot-item:hover {
  background: #f8fafc;
}

.quan-hot-anh {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  background: #e2e8f0;
}

.quan-hot-chu {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.quan-hot-dong-ten {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.quan-hot-ten {
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--chu);
  word-break: break-word;
}

.badge-quan-hot-noibat {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 0.68rem;
  font-weight: 700;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 1px 6px;
  border-radius: 999px;
  line-height: 1.2;
}

.quan-hot-sao {
  color: var(--vang);
  font-size: 0.78rem;
  font-weight: 700;
}

.danh-sach-quy-tac {
  margin: 0;
  padding-left: 18px;
  font-size: 0.84rem;
  color: #475569;
}

.danh-sach-quy-tac li {
  margin-bottom: 6px;
}

/* Responsive */
@media (max-width: 992px) {
  .khung-dien-dan {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .cot-giua {
    min-width: 0;
  }
  .cot-phai {
    display: none;
  }
}

@media (max-width: 768px) {
  .khung-dau {
    width: calc(100% - 20px);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 8px;
    padding: 6px 0;
  }
  .tai-khoan {
    margin-left: auto;
    display: flex;
    gap: 6px;
    align-items: center;
  }
  .tai-khoan a {
    padding: 6px 12px;
    font-size: 0.8rem;
    white-space: nowrap;
    border-radius: 999px;
  }
  .menu-ngang {
    order: 3;
    width: 100%;
    display: flex;
    gap: 6px;
    overflow: visible;
    padding: 4px 2px;
    justify-content: center;
    flex-wrap: wrap;
    border-top: 1px solid rgba(168, 85, 247, 0.18);
  }
  .menu-ngang::-webkit-scrollbar {
    display: none;
  }
  .menu-ngang a,
  .menu-ngang .menu-cha {
    padding: 6px 12px;
    font-size: 0.82rem;
    white-space: nowrap;
    border-radius: 999px;
    color: #e2e8f0;
    background: rgba(168, 85, 247, 0.18);
    border: 1px solid rgba(168, 85, 247, 0.3);
    transition: all 0.2s ease;
  }
  .menu-ngang a:hover,
  .menu-ngang a.dang-chon,
  .menu-ngang .dang-chon {
    color: #ffffff;
    background: rgba(168, 85, 247, 0.38);
    border-color: #a855f7;
  }
  .khung-banner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .khung-dien-dan {
    grid-template-columns: minmax(0, 1fr);
    width: calc(100% - 24px);
  }
  .cot-trai,
  .cot-giua {
    width: 100%;
    min-width: 0;
  }
  .khung-tao-bai-viet,
  .the-bai-viet,
  .thanh-loc-feed {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .thanh-loc-feed {
    flex-wrap: wrap;
    padding: 10px 12px;
  }
  .tab-loc {
    max-width: 100%;
    overflow-x: auto;
  }
  .o-tim-feed {
    flex: 1 1 190px;
    min-width: 0;
  }
  .o-tim-feed input {
    width: 100%;
    min-width: 0;
  }
  .chan-tao-bai,
  .nhom-tuy-chon-dang {
    width: 100%;
  }
  .nhom-tuy-chon-dang select {
    flex: 1 1 180px;
    min-width: 0;
    max-width: 100%;
  }
  .nut-dang-bai {
    width: 100%;
  }
  .the-bai-viet {
    padding: 16px;
  }
  .cot-giua,
  .the-bai-viet,
  .chi-tiet-bai-viet,
  .noi-dung-bai-viet {
    overflow-wrap: anywhere;
  }
  .dau-the-bai {
    gap: 10px;
  }
  .thanh-tuong-tac {
    flex-wrap: wrap;
  }
  .cot-trai {
    position: static;
  }
  .danh-sach-chu-de {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 6px;
  }
  .nut-chu-de {
    white-space: nowrap;
  }
  .khung-replies-con {
    margin-left: 18px;
    padding-left: 8px;
  }
}
