/* ===== Trang con & tài khoản — đồng bộ giao diện TOPAPP ===== */

body.site-page #col_920,
body.site-page #container {
  float: none;
  width: 100%;
  max-width: 1180px;
}

body.site-page .col_920_right {
  float: none;
  width: 100%;
}

/* ----- Layout tài khoản ----- */
body.site-page .taikhoan,
body.site-page .taikhoan.account-page,
.sp-account .taikhoan {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  float: none;
  width: 100%;
  margin: 0;
}

body.site-page .taikhoan .left,
body.site-page .taikhoan .right,
body.site-page .account-page__sidebar,
body.site-page .account-page__main,
.sp-account .taikhoan .left,
.sp-account .taikhoan .right {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  background: transparent;
  font-family: inherit;
  font-weight: 400;
}

body.site-page .account-page__sidebar {
  min-width: 0;
}

body.site-page .account-page__sidebar .account-sidebar {
  width: 100%;
}

body.site-page #col_920 nav.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--small-shadow);
  font-size: 13px;
  line-height: 1.5;
}

body.site-page #col_920 nav.breadcrumb a,
body.site-page #col_920 nav.breadcrumb .current {
  display: inline;
}

body.site-page #col_920 nav.breadcrumb .sep {
  margin: 0 2px;
  color: #c5cdd8;
  font-weight: 500;
}

body.site-page .taikhoan .left.left_moblie,
.sp-account .taikhoan .left.left_moblie {
  display: none;
}

body.site-page .taikhoan .right,
.sp-account .taikhoan .right {
  min-width: 0;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--small-shadow);
}

body.site-page .taikhoan .right > .main-tit,
.sp-account .taikhoan .right > .main-tit,
body.site-page .taikhoan .right .w-tttk > .main-tit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #edf2f4;
}

body.site-page .taikhoan .right .main-tit h2,
.sp-account .taikhoan .right .main-tit h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

body.site-page .taikhoan .right .main-tit span,
.sp-account .taikhoan .right .main-tit span {
  float: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 700;
  border: 1px solid rgba(18, 184, 134, 0.28);
  border-radius: 999px;
  background: linear-gradient(135deg, #f0fbf7, #e8f8ff);
}

body.site-page .taikhoan .right .main-tit span .ten,
.sp-account .taikhoan .right .main-tit span .ten {
  color: var(--muted);
  font-weight: 600;
}

body.site-page .taikhoan .right section.content,
.sp-account .taikhoan .right section.content {
  margin: 0;
  padding: 0;
}

body.site-page .taikhoan .right .box.box-info,
.sp-account .taikhoan .right .box.box-info {
  margin: 0;
  /* border: 1px solid var(--line); */
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  overflow: hidden;
}

body.site-page .taikhoan .right .table,
.sp-account .taikhoan .right .table {
  margin: 0;
}

body.site-page .taikhoan .right .table > thead > tr > th,
body.site-page .taikhoan .right .table > tbody > tr > th,
.sp-account .taikhoan .right .table > thead > tr > th,
.sp-account .taikhoan .right .table > tbody > tr > th {
  padding: 14px 16px;
  color: #243046;
  font-size: 13px;
  font-weight: 700;
  border-color: #edf2f4;
  background: #f8fbfc;
}

body.site-page .taikhoan .right .table > tbody > tr > td,
.sp-account .taikhoan .right .table > tbody > tr > td {
  padding: 14px 16px;
  vertical-align: middle;
  border-color: #edf2f4;
  font-size: 14px;
}

body.site-page .taikhoan .right .table > tbody > tr:hover,
.sp-account .taikhoan .right .table > tbody > tr:hover {
  background: #fafcfd;
}

body.site-page .taikhoan .right .btn,
body.site-page .taikhoan .right .button,
.sp-account .taikhoan .right .btn,
.sp-account .taikhoan .right .button {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 700;
}

body.site-page .taikhoan .right .btn-info,
body.site-page .taikhoan .right .button,
.sp-account .taikhoan .right .btn-info {
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 8px 18px rgba(18, 184, 134, 0.22);
}

body.site-page .taikhoan .right .btn-danger,
.sp-account .taikhoan .right .btn-danger {
  border: 0;
  background: linear-gradient(135deg, #ff6b6b, #e03131);
}

body.site-page .taikhoan .right .w-tttk .input,
body.site-page .taikhoan .right .form-control,
.sp-account .taikhoan .right .w-tttk .input,
.sp-account .taikhoan .right .form-control {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
}

body.site-page .taikhoan .right .w-tttk .dk-l,
.sp-account .taikhoan .right .w-tttk .dk-l {
  color: #243046;
  font-size: 14px;
  font-weight: 600;
}

body.site-page .taikhoan .right .alert,
.sp-account .taikhoan .right .alert {
  border-radius: 10px;
}

.account-sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--small-shadow);
}

.account-sidebar__profile {
  padding: 22px 18px 18px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 55%),
    linear-gradient(135deg, #00804a 0%, #00804a 48%, #00804a 100%);
}

.account-sidebar__avatar {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  margin-bottom: 12px;
  overflow: hidden;
  color: var(--primary-dark);
  font-size: 24px;
  font-weight: 700;
  border: 3px solid rgba(255, 255, 255, 0.85);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 32, 51, 0.18);
}

.account-sidebar__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-sidebar__identity {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.account-sidebar__identity strong {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.account-sidebar__identity span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 500;
}

.account-sidebar__wallet {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.account-sidebar__wallet span {
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.account-sidebar__wallet strong {
  font-size: 16px;
  font-weight: 700;
}

.account-sidebar__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  margin-top: 14px;
  padding: 0 14px;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(15, 32, 51, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.account-sidebar__cta:hover {
  color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15, 32, 51, 0.2);
}

.account-sidebar__cta.is-active {
  outline: 2px solid rgba(255, 255, 255, 0.75);
  outline-offset: 2px;
}

.account-sidebar__nav {
  padding: 16px 14px 8px;
}

.account-sidebar__group + .account-sidebar__group {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #edf2f4;
}

.account-sidebar__title {
  margin: 0 0 8px;
  padding: 0 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-sidebar__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.account-sidebar__list li + li {
  margin-top: 4px;
}

.account-sidebar__link,
.account-sidebar__logout {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 10px;
  color: #243046;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.account-sidebar__link:hover,
.account-sidebar__logout:hover {
  color: var(--primary-dark);
  background: #f4fbf8;
}

.account-sidebar__link.is-active {
  color: var(--primary-dark);
  background: linear-gradient(135deg, #edfbf6, #f2f8ff);
  /* box-shadow: inset 3px 0 0 var(--primary); */
}

.account-sidebar__icon {
  display: grid;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: #f3f8f9;
}

.account-sidebar__link.is-active .account-sidebar__icon {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.account-sidebar__icon i {
  font-size: 14px;
}

.account-sidebar__label {
  flex: 1;
  min-width: 0;
}

.account-sidebar__badge {
  min-width: 24px;
  padding: 2px 8px;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  border-radius: 999px;
  background: #e1f8f1;
}

.account-sidebar__footer {
  margin-top: auto;
  padding: 10px 14px 14px;
  border-top: 1px solid #edf2f4;
}

.account-sidebar__logout {
  color: #c92a2a;
}

.account-sidebar__logout:hover {
  color: #a61e1e;
  background: #fff5f5;
}

.account-sidebar__logout .account-sidebar__icon {
  color: #c92a2a;
  background: #ffe8e8;
}

/* ----- Page head & cards ----- */
.sp-page-head {
  margin-bottom: 20px;
}

.sp-page-head__title {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.sp-page-head__desc {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.sp-card,
.sp-form-box {
  /* border: 1px solid var(--line) !important; */
  /* border-radius: 12px !important; */
  /* background: #fff !important; */
  /* box-shadow: var(--small-shadow) !important; */
}

.sp-form-box .box-body {
  padding: 24px !important;
}

.sp-alert {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.6;
}

.sp-alert--warning {
  color: #856404;
  background: #fff8e6;
  border: 1px solid #ffe08a;
}

.sp-alert--error {
  color: #a12622;
  background: #fff1f0;
  border: 1px solid #ffc9c9;
  font-weight: 600;
}

/* ----- Forms ----- */
body.site-page .form-horizontal .control-label {
  padding-top: 10px;
  margin-bottom: 0;
  text-align: left;
  color: #243046;
  font-size: 14px;
  font-weight: 600;
}

body.site-page .form-control,
body.site-page select.form-control,
body.site-page textarea.form-control {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.site-page .form-control:focus {
  border-color: rgba(18, 184, 134, 0.55);
  box-shadow: 0 0 0 3px rgba(18, 184, 134, 0.12);
}

body.site-page textarea.form-control {
  min-height: 96px;
}

body.site-page .sp-btn-primary,
body.site-page .btn-info {
  min-height: 44px;
  padding: 0 22px;
  color: #fff !important;
  font-weight: 700;
  border: 0 !important;
  border-radius: 8px !important;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
  box-shadow: 0 10px 22px rgba(18, 184, 134, 0.24);
}

body.site-page .sp-btn-primary:hover,
body.site-page .btn-info:hover {
  color: #fff !important;
  transform: translateY(-1px);
}

body.site-page .custom-file-upload {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  color: var(--primary-dark);
  font-weight: 600;
  border: 1px dashed rgba(18, 184, 134, 0.45);
  border-radius: 8px;
  background: #f7fffd;
  cursor: pointer;
}

body.site-page .file-upload-element em {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

body.site-page .anhdaidien_form .avatar-preview {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
}

/* ----- Login / register ----- */
body.site-page .form-container {
  max-width: 460px;
  margin: 0 auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--small-shadow);
}

body.site-page .form-title {
  margin-bottom: 18px;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  color: var(--text);
}

body.site-page .btn-login {
  width: 100%;
  min-height: 44px;
  color: #fff;
  font-weight: 700;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

/* ----- Nội dung trang con chung ----- */
body.site-page #col_920 .box,
body.site-page #col_920 .content,
body.site-page .intro-product,
body.site-page .row_box {
  border-radius: 10px;
}

body.site-page .fab-dock {
  z-index: 99990;
}

@media (max-width: 991px) {
  body.site-page .taikhoan,
  .sp-account .taikhoan {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  body.site-page .taikhoan .left.left_desktops,
  .sp-account .taikhoan .left.left_desktops {
    display: none;
  }

  body.site-page .taikhoan .left.left_moblie,
  .sp-account .taikhoan .left.left_moblie {
    display: block;
    margin-bottom: 0;
  }

  body.site-page .taikhoan .left.left_moblie .account-sidebar,
  .sp-account .taikhoan .left.left_moblie .account-sidebar {
    position: static;
  }

  body.site-page .taikhoan .right,
  .sp-account .taikhoan .right {
    padding: 18px 16px;
    border-radius: 14px;
  }

  .account-sidebar__profile {
    display: grid;
    grid-template-columns: 64px 1fr;
    grid-template-areas:
      "avatar identity"
      "wallet wallet"
      "cta cta";
    gap: 10px 12px;
    align-items: center;
  }

  .account-sidebar__avatar {
    grid-area: avatar;
    margin: 0;
  }

  .account-sidebar__identity {
    grid-area: identity;
  }

  .account-sidebar__wallet {
    grid-area: wallet;
    margin-top: 0;
  }

  .account-sidebar__cta {
    grid-area: cta;
    margin-top: 0;
  }

  .account-sidebar__nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    padding-top: 12px;
  }

  .account-sidebar__group {
    margin: 0;
    padding: 0;
    border: 0;
  }

  .account-sidebar__group + .account-sidebar__group {
    margin: 0;
    padding: 0;
    border: 0;
  }

  .sp-form-box .box-body {
    padding: 18px !important;
  }

  body.site-page .form-horizontal .control-label {
    text-align: left;
    padding-bottom: 6px;
  }
}

@media (max-width: 700px) {
  body.site-page .form-horizontal .form-group {
    margin-bottom: 16px;
  }

  body.site-page .form-horizontal .control-label,
  body.site-page .form-horizontal .col-sm-9,
  body.site-page .form-horizontal .col-sm-3 {
    width: 100%;
    float: none;
  }
}

/* ===== Danh mục, listing, tìm kiếm ===== */
.catalog-page {
  display: block;
}

.catalog-hero {
  margin-bottom: 28px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(18, 184, 134, 0.08), rgba(57, 119, 243, 0.06)),
    #fff;
  box-shadow: var(--small-shadow);
}

.catalog-hero--compact {
  padding: 22px 24px;
}

.catalog-hero__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.catalog-hero__title i {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  flex-shrink: 0;
  color: var(--primary-dark);
  font-size: 18px;
  border-radius: 12px;
  background: #def8f1;
}

.catalog-hero__desc {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.catalog-hero__desc--html {
  color: #354258;
}

.catalog-hero__desc--html p:last-child {
  margin-bottom: 0;
}

.catalog-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.catalog-hero__meta a {
  color: var(--primary-dark);
  font-weight: 700;
}

.catalog-hero__meta a:hover {
  text-decoration: underline;
}

.catalog-all-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.catalog-parent-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--small-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.catalog-parent-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(31, 49, 64, 0.1);
}

.catalog-parent-card__head {
  margin: 0;
}

.catalog-parent-card__head .category-icon i {
  font-size: 20px;
}

.catalog-children {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  color: #243046;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fbfc;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.catalog-chip em {
  min-width: 22px;
  padding: 2px 7px;
  color: var(--primary-dark);
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  border-radius: 999px;
  background: #e1f8f1;
}

.catalog-chip:hover {
  color: var(--primary-dark);
  border-color: rgba(18, 184, 134, 0.45);
  background: #f0fbf7;
}

.catalog-subcats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.catalog-subcats__item {
  min-height: 36px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  color: #354258;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.catalog-subcats__item:hover,
.catalog-subcats__item.active {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.catalog-toolbar__count {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.catalog-sort.sort-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  color: #354258;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.catalog-sort.sort-tabs a:hover,
.catalog-sort.sort-tabs a.active {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}

.catalog-product-grid {
  margin-bottom: 8px;
}

.catalog-product-card {
  position: relative;
}

.catalog-product-card .product-card__link {
  padding-bottom: 8px;
}

.catalog-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 18px 14px;
  border-top: 1px solid #f0f4f6;
}

.catalog-card-actions .voted_post,
.catalog-card-actions .bookmark_tin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  color: #697386;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.catalog-card-actions .voted_post.voted,
.catalog-card-actions .bookmark_tin.saved {
  color: var(--primary-dark);
  border-color: rgba(18, 184, 134, 0.35);
  background: #f0fbf7;
}

.catalog-search-form {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  max-width: 560px;
  margin-top: 18px;
  padding: 8px 8px 8px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(31, 49, 64, 0.04);
}

.catalog-search-form i {
  color: var(--muted);
}

.catalog-search-form input {
  min-height: 40px;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 15px;
}

.catalog-search-form .primary-btn {
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  cursor: pointer;
}

.catalog-pagination {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.catalog-pagination.phantrang {
  float: none;
  width: auto;
  padding: 0;
  text-align: center;
}

.catalog-pagination.phantrang a,
.catalog-pagination.phantrang span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  margin: 0 3px;
  padding: 0 10px;
  color: #354258;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.catalog-pagination.phantrang a:hover {
  color: var(--primary-dark);
  border-color: rgba(18, 184, 134, 0.45);
  background: #f0fbf7;
}

.catalog-pagination.phantrang .paginate_active,
.catalog-pagination.phantrang .paginate_active:hover {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}

.catalog-empty {
  margin-top: 8px;
  padding: 36px 24px;
  text-align: center;
}

.catalog-empty strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.catalog-empty p {
  margin: 0 0 18px;
  color: var(--muted);
}

.catalog-empty__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

@media (max-width: 991px) {
  .catalog-all-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .catalog-hero {
    padding: 20px 18px;
  }

  .catalog-hero__title {
    flex-wrap: wrap;
  }

  .catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .catalog-sort.sort-tabs {
    width: 100%;
  }

  .catalog-search-form {
    grid-template-columns: auto 1fr;
  }

  .catalog-search-form .primary-btn {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* ----- Trang quản lý app (chon-app) ----- */
.account-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid #edf2f4;
}

.account-page-head__title {
  margin: 6px 0 0;
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.account-page-head__desc {
  max-width: 560px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.account-page-head__balance {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 150px;
  padding: 12px 16px;
  text-align: right;
  border: 1px solid rgba(18, 184, 134, 0.28);
  border-radius: 12px;
  background: linear-gradient(135deg, #f0fbf7, #eef7ff);
}

.account-page-head__balance span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.account-page-head__balance strong {
  color: var(--primary-dark);
  font-size: 18px;
  font-weight: 700;
}

.account-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.account-stats__item {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.account-stats__item strong {
  display: block;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
}

.account-stats__item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.account-stats__item--pending {
  border-color: #ffe08a;
  background: #fffdf5;
}

.account-stats__item--pending strong {
  color: #b78103;
}

.account-stats__item--approved {
  border-color: #b7e4c7;
  background: #f6fff9;
}

.account-stats__item--approved strong {
  color: #2b8a3e;
}

.account-flash {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.6;
}

.account-flash i {
  margin-top: 2px;
  font-size: 18px;
}

.account-flash--success {
  color: #155724;
  border: 1px solid #c3e6cb;
  background: #edfbf1;
}

.account-flash--warning {
  color: #856404;
  border: 1px solid #ffeeba;
  background: #fff9e8;
}

.account-app-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbfc;
}

.account-select-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #243046;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.account-app-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.account-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 700;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.account-btn:hover {
  transform: translateY(-1px);
}

.account-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 8px 18px rgba(18, 184, 134, 0.22);
}

.account-btn--danger {
  color: #fff;
  background: linear-gradient(135deg, #ff6b6b, #e03131);
}

.account-app-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.account-app-item {
  display: grid;
  grid-template-columns: auto 72px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.account-app-item:hover {
  border-color: rgba(18, 184, 134, 0.35);
  box-shadow: 0 10px 24px rgba(31, 49, 64, 0.06);
}

.account-app-item__check {
  display: grid;
  place-items: center;
  margin: 0;
  cursor: pointer;
}

.account-app-item__thumb {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  overflow: hidden;
  color: var(--primary-dark);
  font-size: 24px;
  font-weight: 700;
  border-radius: 14px;
  background: linear-gradient(145deg, #e7fff6, #bdf6df);
}

.account-app-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-app-item__body {
  min-width: 0;
}

.account-app-item__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
}

.account-app-item__title-row h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
}

.account-app-item__title-row a {
  color: var(--text);
  font-weight: 700;
}

.account-app-item__title-row a:hover {
  color: var(--primary-dark);
}

.account-app-item__flags {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.account-app-item__flags img {
  height: 16px;
  width: auto;
}

.account-app-item__status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.account-app-item__time {
  color: var(--muted);
  font-size: 12px;
}

.user-tin-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.user-tin-status--pending {
  color: #856404;
  border: 1px solid #ffeeba;
  background: #fff3cd;
}

.user-tin-status--approved {
  color: #155724;
  border: 1px solid #c3e6cb;
  background: #d4edda;
}

.user-tin-status--hidden {
  color: #495057;
  border: 1px solid #dee2e6;
  background: #e9ecef;
}

.account-app-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.account-icon-btn {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #354258;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.account-icon-btn:hover {
  color: var(--primary-dark);
  border-color: rgba(18, 184, 134, 0.4);
  background: #f0fbf7;
}

.account-icon-btn--danger:hover {
  color: #c92a2a;
  border-color: #ffc9c9;
  background: #fff5f5;
}

.account-icon-btn--view:hover {
  color: #1864ab;
  border-color: #a5d8ff;
  background: #f3f9ff;
}

.account-app-pagination {
  margin-top: 22px;
}

.account-app-empty {
  margin-top: 4px;
}

/* ----- Trang app đã lưu ----- */
.account-page-head__balance--saved {
  text-align: center;
}

.account-saved-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.account-saved-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.account-saved-item:hover {
  border-color: rgba(18, 184, 134, 0.35);
  box-shadow: 0 12px 28px rgba(31, 49, 64, 0.07);
}

.account-saved-item__thumb {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  overflow: hidden;
  color: var(--primary-dark);
  font-size: 28px;
  font-weight: 700;
  border-radius: 16px;
  background: linear-gradient(145deg, #e7fff6, #bdf6df);
}

.account-saved-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-saved-item__body {
  min-width: 0;
}

.account-saved-item__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.account-saved-item__cat {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(18, 184, 134, 0.28);
  border-radius: 999px;
  background: #f0fbf7;
}

.account-saved-item__flags {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.account-saved-item__flags img {
  height: 16px;
  width: auto;
}

.account-saved-item__title {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

.account-saved-item__title a {
  color: var(--text);
  font-weight: 700;
}

.account-saved-item__title a:hover {
  color: var(--primary-dark);
}

.account-saved-item__desc {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.account-saved-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.account-saved-item__meta i {
  margin-right: 4px;
  color: #9aa5b5;
}

.account-saved-item__meta a {
  color: inherit;
}

.account-saved-item__meta a:hover {
  color: var(--primary-dark);
}

.account-saved-item__price {
  color: var(--primary-dark);
  font-size: 15px;
  font-weight: 700;
}

.account-saved-item__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  min-width: 148px;
}

.account-saved-item__view {
  width: 100%;
  justify-content: center;
}

.account-saved-item__quick {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
}

.account-saved-item__quick .voted_post,
.account-saved-item__quick .bookmark_tin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  color: #697386;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.account-saved-item__quick .voted_post.voted,
.account-saved-item__quick .bookmark_tin.saved {
  color: var(--primary-dark);
  border-color: rgba(18, 184, 134, 0.35);
  background: #f0fbf7;
}

.account-saved-empty {
  margin-top: 4px;
}

@media (max-width: 900px) {
  .account-saved-item {
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-areas:
      "thumb body"
      "actions actions";
  }

  .account-saved-item__thumb {
    grid-area: thumb;
    width: 72px;
    height: 72px;
  }

  .account-saved-item__body {
    grid-area: body;
  }

  .account-saved-item__actions {
    grid-area: actions;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
  }

  .account-saved-item__view {
    width: auto;
  }

  .account-saved-item__quick {
    width: auto;
  }
}

@media (max-width: 900px) {
  .account-app-item {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "check body"
      "thumb body"
      "actions actions";
  }

  .account-app-item__check {
    grid-area: check;
  }

  .account-app-item__thumb {
    grid-area: thumb;
  }

  .account-app-item__body {
    grid-area: body;
  }

  .account-app-item__actions {
    grid-area: actions;
    justify-content: flex-end;
  }
}

/* ----- Form sửa / đăng app ----- */
.account-page-head__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.account-btn--ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  color: #354258;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.account-btn--ghost:hover {
  color: var(--primary-dark);
  border-color: rgba(18, 184, 134, 0.4);
  background: #f0fbf7;
}

.account-form-panel {
  padding: 0 !important;
  overflow: hidden;
}

.account-form-panel .box-body {
  padding: 24px !important;
}

.account-form-section + .account-form-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #edf2f4;
}

.account-form-section__title {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.account-form .req {
  color: #e03131;
  font-weight: 700;
}

.account-form-check label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
  color: #354258;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.account-form-actions {
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid #edf2f4;
}

.account-form-actions .sp-btn-primary,
.account-form-actions .btn-info {
  min-width: 150px;
  margin-right: 8px;
}

.account-btn-cancel {
  min-height: 44px;
  padding: 0 20px;
  color: #354258 !important;
  font-weight: 700;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  background: #fff !important;
}

.account-form .note,
.account-form .file-upload-element em {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.account-form .list_current_img_upload {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.account-form .post_img_upload {
  position: relative;
  width: 120px;
  height: 80px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbfc;
}

.account-form .post_img_upload img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-form .remove_img_upload {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #fff;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}

/* ----- Form đổi mật khẩu ----- */
.account-password-panel .box-body {
  padding: 24px !important;
}

.account-password-tips {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
  padding: 16px 18px;
  border: 1px solid rgba(18, 184, 134, 0.22);
  border-radius: 12px;
  background: linear-gradient(135deg, #f0fbf7, #f7fbff);
}

.account-password-tips__icon {
  display: grid;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--primary-dark);
  font-size: 20px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(18, 184, 134, 0.12);
}

.account-password-tips strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 14px;
}

.account-password-tips ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.account-password-form .form-group {
  margin-bottom: 18px;
}

.account-password-form .control-label {
  display: block;
  margin-bottom: 8px;
  color: #243046;
  font-size: 14px;
  font-weight: 700;
}

.account-password-input {
  position: relative;
}

.account-password-input .form-control {
  min-height: 46px;
  padding-right: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: none;
}

.account-password-input .form-control:focus {
  border-color: rgba(18, 184, 134, 0.55);
  box-shadow: 0 0 0 3px rgba(18, 184, 134, 0.12);
}

.account-password-input .form-control.is-invalid {
  border-color: #ff8787;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.12);
}

.account-password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #8b95a7;
  border: 0;
  border-radius: 8px;
  background: transparent;
  transform: translateY(-50%);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.account-password-toggle:hover {
  color: var(--primary-dark);
  background: #f0fbf7;
}

.account-field-error {
  display: block;
  min-height: 18px;
  margin-top: 6px;
  color: #e03131;
  font-size: 13px;
  font-weight: 600;
}

.account-password-strength {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.account-password-strength__bar {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: #e9eef2;
  transition: background 0.2s ease;
}

.account-password-strength__bar.is-active {
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
}

.account-password-strength[data-level="1"] .account-password-strength__bar.is-active {
  background: linear-gradient(90deg, #ffd43b, #fab005);
}

.account-password-strength[data-level="2"] .account-password-strength__bar.is-active {
  background: linear-gradient(90deg, #74c0fc, #1c7ed6);
}

.account-password-hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.account-password-form .account-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.account-password-form .account-form-actions .account-btn {
  min-width: 180px;
}

@media (max-width: 700px) {
  .account-stats {
    grid-template-columns: 1fr;
  }

  .account-page-head__balance {
    width: 100%;
    text-align: left;
  }

  .account-page-head__actions {
    width: 100%;
  }

  .account-form-panel .box-body {
    padding: 18px !important;
  }

  .account-form-actions .sp-btn-primary,
  .account-form-actions .btn-info,
  .account-btn-cancel {
    width: 100%;
    margin: 0 0 8px;
  }

  .account-app-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .account-app-toolbar__actions {
    width: 100%;
  }

  .account-app-toolbar__actions .account-btn {
    flex: 1;
    justify-content: center;
  }

  .account-password-tips {
    flex-direction: column;
  }

  .account-password-form .account-form-actions .account-btn {
    width: 100%;
    min-width: 0;
  }
}

/* ===== Trang tin tức / blog ===== */
body.site-page .blog-page {
  --blog-radius: 14px;
}

body.site-page .blog-page__head {
  margin-bottom: 28px;
}

body.site-page .blog-page__title,
body.site-page .blog-article__title {
  margin: 8px 0 0;
  color: var(--text, #172033);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

body.site-page .blog-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

body.site-page .blog-page__grid {
  margin-bottom: 8px;
}

body.site-page .blog-page .article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

body.site-page .blog-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line, #dfe8ea);
  border-radius: var(--blog-radius);
  background: #fff;
  box-shadow: 0 8px 24px rgba(31, 49, 64, 0.06);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

body.site-page .blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(31, 49, 64, 0.1);
}

body.site-page .blog-card__image {
  display: block;
  height: 190px;
  background: linear-gradient(145deg, #11203d, #46c7a5);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

body.site-page .blog-card__tag {
  display: inline-block;
  width: max-content;
  margin: 14px 16px 0;
  padding: 6px 10px;
  color: var(--primary-dark, #069a72);
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  background: #e1f8f1;
}

body.site-page .blog-card__title {
  margin: 12px 16px 8px;
  font-size: 18px;
  line-height: 1.45;
}

body.site-page .blog-card__title a {
  color: inherit;
  text-decoration: none;
}

body.site-page .blog-card__title a:hover {
  color: var(--primary-dark, #069a72);
}

body.site-page .blog-card__excerpt {
  margin: 0 16px 12px;
  color: var(--muted, #697386);
  font-size: 14px;
  line-height: 1.65;
}

body.site-page .blog-card__date {
  display: block;
  margin: 0 16px 18px;
  color: #8a94a6;
  font-size: 12px;
}

body.site-page .blog-empty {
  padding: 48px 24px;
  border: 1px dashed var(--line, #dfe8ea);
  border-radius: var(--blog-radius);
  background: #fff;
  color: var(--muted, #697386);
  text-align: center;
}

body.site-page .blog-pagination {
  margin-top: 24px;
  padding-top: 8px;
}

body.site-page .blog-pagination a,
body.site-page .blog-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  margin: 0 4px 8px 0;
  padding: 0 12px;
  border: 1px solid var(--line, #dfe8ea);
  border-radius: 10px;
  background: #fff;
  color: var(--text, #172033);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body.site-page .blog-pagination a:hover {
  border-color: var(--primary, #12b886);
  color: var(--primary-dark, #069a72);
}

body.site-page .blog-pagination span.current,
body.site-page .blog-pagination .current {
  border-color: var(--primary, #12b886);
  background: var(--primary, #12b886);
  color: #fff;
}

body.site-page .blog-article {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line, #dfe8ea);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(31, 49, 64, 0.06);
  overflow: hidden;
}

body.site-page .blog-article::after {
  content: "";
  display: block;
  clear: both;
}

body.site-page .blog-article__head {
  padding: 28px 32px 0;
}

body.site-page .blog-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
  color: var(--muted, #697386);
  font-size: 14px;
}

body.site-page .blog-article__meta i {
  margin-right: 6px;
  color: var(--primary, #12b886);
}

body.site-page .blog-article__body {
  float: none;
  width: auto;
  padding: 24px 32px 32px;
  color: var(--text, #172033);
  font-size: 16px;
  line-height: 1.75;
}

body.site-page .blog-article__body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

body.site-page .blog-article__body h2,
body.site-page .blog-article__body h3,
body.site-page .blog-article__body h4 {
  margin: 1.4em 0 0.6em;
  line-height: 1.35;
}

body.site-page .blog-article__body p {
  margin: 0 0 1em;
}

body.site-page .blog-article__body a {
  color: var(--primary-dark, #069a72);
}

body.site-page .blog-related {
  flex-shrink: 0;
  margin: 0 32px 32px;
  padding: 22px 24px;
  border: 1px solid var(--line, #dfe8ea);
  border-radius: var(--blog-radius);
  background: var(--surface-soft, #eefaf7);
  min-height: 0;
}

body.site-page .blog-related__title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
}

body.site-page .blog-related__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.site-page .blog-related__list li + li {
  margin-top: 8px;
}

body.site-page .blog-related__list a {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text, #172033);
  font-size: 15px;
  line-height: 1.5;
  text-decoration: none;
}

body.site-page .blog-related__list a:hover {
  color: var(--primary-dark, #069a72);
}

body.site-page .blog-related__list i {
  margin-top: 3px;
  color: var(--primary, #12b886);
}

body.site-page .blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

body.site-page .blog-widget {
  border: 1px solid var(--line, #dfe8ea);
  border-radius: var(--blog-radius);
  background: #fff;
  box-shadow: 0 8px 24px rgba(31, 49, 64, 0.06);
  overflow: hidden;
}

body.site-page .blog-widget__title {
  margin: 0;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line, #dfe8ea);
  font-size: 17px;
  font-weight: 700;
}

body.site-page .blog-widget__title a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

body.site-page .blog-widget__title a:hover {
  color: var(--primary-dark, #069a72);
}

body.site-page .blog-cat-list {
  margin: 0;
  padding: 8px 0;
  list-style: none;
}

body.site-page .blog-cat-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  color: var(--text, #172033);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

body.site-page .blog-cat-list a:hover {
  background: var(--surface-soft, #eefaf7);
  color: var(--primary-dark, #069a72);
}

body.site-page .blog-cat-list i {
  width: 18px;
  color: var(--primary, #12b886);
  text-align: center;
}

body.site-page .blog-recent-list {
  padding: 4px 0 8px;
}

body.site-page .blog-recent-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line, #dfe8ea);
  color: inherit;
  text-decoration: none;
  transition: background 0.2s ease;
}

body.site-page .blog-recent-item:last-child {
  border-bottom: none;
}

body.site-page .blog-recent-item:hover {
  background: var(--surface-soft, #eefaf7);
}

body.site-page .blog-recent-item strong {
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}

body.site-page .blog-recent-item .thumb {
  display: block;
  width: 58px;
  height: 58px;
  border-radius: 10px;
}

body.site-page .blog-recent-item .thumb-one {
  background: linear-gradient(145deg, #111827, #12b886);
}

body.site-page .blog-recent-item .thumb-two {
  background: linear-gradient(145deg, #133d73, #86c8ff);
}

body.site-page .blog-recent-item .thumb-three {
  background: linear-gradient(145deg, #7b61ff, #f0a325);
}

body.site-page .blog-widget__link {
  display: block;
  padding: 0 18px 16px;
  color: var(--primary-dark, #069a72);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

body.site-page .blog-widget__link:hover {
  text-decoration: underline;
}

body.site-page .site-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

body.site-page .site-sidebar__nav,
body.site-page .site-sidebar__ads {
  border: 1px solid var(--line, #dfe8ea);
  border-radius: var(--blog-radius);
  background: #fff;
  box-shadow: 0 8px 24px rgba(31, 49, 64, 0.06);
}

body.site-page .site-sidebar__menu {
  margin: 0;
  padding: 8px 0;
  list-style: none;
}

body.site-page .site-sidebar__menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  color: var(--text, #172033);
  font-weight: 600;
  text-decoration: none;
}

body.site-page .site-sidebar__menu li.is-active a,
body.site-page .site-sidebar__menu a:hover {
  background: var(--surface-soft, #eefaf7);
  color: var(--primary-dark, #069a72);
}

body.site-page .site-sidebar__menu i {
  width: 18px;
  color: var(--primary, #12b886);
  text-align: center;
}

body.site-page #col_610,
body.site-page #col_300 {
  float: none;
  width: auto;
  max-width: none;
}

/* ----- Trang nội dung tĩnh (baiviet) ----- */
body.site-page .page-details {
  margin: 8px 0 36px;
}

body.site-page .page-details__article {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line, #dfe8ea);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(18, 184, 134, 0.08), transparent 36%),
    radial-gradient(circle at 0% 100%, rgba(57, 119, 243, 0.06), transparent 32%),
    #fff;
  box-shadow:
    0 16px 40px rgba(31, 49, 64, 0.07),
    0 2px 8px rgba(31, 49, 64, 0.04);
}

body.site-page .page-details__article::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--primary, #12b886), #20d5b0 45%, #3977f3);
}

body.site-page .page-details__head {
  padding: 30px 36px 0;
}

body.site-page .page-details__kicker {
  margin: 0 0 10px;
  color: var(--primary-dark, #069a72);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.site-page .page-details__title {
  margin: 0;
  max-width: 820px;
  color: var(--text, #172033);
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

body.site-page .page-details__body {
  float: none;
  width: auto;
  padding: 26px 36px 38px;
  padding-left: 36px;
  text-align: left;
  color: var(--text, #172033);
  font-size: 16px;
  line-height: 1.8;
}

body.site-page .page-details__body > *:first-child {
  margin-top: 0;
}

body.site-page .page-details__body p {
  margin: 0 0 1.05em;
}

body.site-page .page-details__body h2,
body.site-page .page-details__body h3,
body.site-page .page-details__body h4 {
  margin: 1.6em 0 0.65em;
  color: var(--text, #172033);
  line-height: 1.35;
}

body.site-page .page-details__body h2 {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(18, 184, 134, 0.16);
  font-size: 1.35em;
}

body.site-page .page-details__body h3 {
  font-size: 1.15em;
}

body.site-page .page-details__body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.25em auto;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(31, 49, 64, 0.08);
}

body.site-page .page-details__body a {
  color: var(--primary-dark, #069a72);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(18, 184, 134, 0.35);
  text-underline-offset: 3px;
}

body.site-page .page-details__body a:hover {
  color: var(--primary, #12b886);
  text-decoration-color: var(--primary, #12b886);
}

body.site-page .page-details__body ul,
body.site-page .page-details__body ol {
  margin: 0 0 1.2em;
  padding-left: 1.35em;
}

body.site-page .page-details__body li + li {
  margin-top: 0.45em;
}

body.site-page .page-details__body blockquote {
  margin: 1.4em 0;
  padding: 16px 20px;
  border-left: 4px solid var(--primary, #12b886);
  border-radius: 0 12px 12px 0;
  background: rgba(18, 184, 134, 0.08);
  color: var(--muted, #697386);
  font-style: italic;
}

body.site-page .page-details__body table {
  width: 100%;
  margin: 1.5em 0;
  border: 1px solid var(--line, #dfe8ea);
  border-radius: 14px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 16px rgba(31, 49, 64, 0.05);
}

body.site-page .page-details__body table th,
body.site-page .page-details__body table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line, #dfe8ea);
  text-align: left;
  vertical-align: top;
}

body.site-page .page-details__body table tr:last-child th,
body.site-page .page-details__body table tr:last-child td {
  border-bottom: none;
}

body.site-page .page-details__body table th {
  background: linear-gradient(180deg, #f4fffb, #eefaf7);
  color: var(--primary-dark, #069a72);
  font-size: 14px;
  font-weight: 700;
}

body.site-page .page-details__body iframe {
  display: block;
  max-width: 100%;
  margin: 1.25em 0;
  border: 0;
  border-radius: 12px;
}

/* ----- Trang liên hệ ----- */
body.site-page .contact-page {
  float: none;
  width: 100%;
  max-width: 100%;
  margin: 8px 0 40px;
  box-sizing: border-box;
}

body.site-page .contact-page__head,
body.site-page .contact-page__layout,
body.site-page .contact-page__aside,
body.site-page .contact-page__form-wrap,
body.site-page .contact-info-card,
body.site-page .contact-form {
  float: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

body.site-page .contact-page__head {
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  padding: 0;
  border: 1px solid var(--line, #dfe8ea);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(18, 184, 134, 0.1), transparent 42%),
    linear-gradient(135deg, #f8fffd, #fff);
  box-shadow: 0 12px 32px rgba(31, 49, 64, 0.06);
}

body.site-page .contact-page__head::before {
  content: "";
  display: block;
  height: 4px;
  /* background: linear-gradient(90deg, var(--primary, #12b886), #20d5b0 45%, #3977f3); */
}

body.site-page .contact-page__head-inner {
  padding: 26px 30px 28px;
  /* border-left: 3px solid var(--primary, #12b886); */
}

body.site-page .contact-page__kicker {
  margin: 0 0 8px;
  color: var(--primary-dark, #069a72);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.site-page .contact-page__title {
  margin: 0;
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

body.site-page .contact-page__lead,
body.site-page .contact-page__richtext {
  float: none;
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted, #697386);
  font-size: 16px;
  line-height: 1.75;
}

body.site-page .contact-page__richtext p {
  margin: 0 0 0.75em;
}

body.site-page .contact-page__richtext p:last-child {
  margin-bottom: 0;
}

body.site-page .contact-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

body.site-page .contact-info-card,
body.site-page .contact-form {
  height: 100%;
  border: 1px solid var(--line, #dfe8ea);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(31, 49, 64, 0.06);
}

body.site-page .contact-info-card {
  padding: 24px 22px;
}

body.site-page .contact-info-card h2,
body.site-page .contact-form h2 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
}

body.site-page .contact-info-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.site-page .contact-info-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(223, 232, 234, 0.9);
}

body.site-page .contact-info-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

body.site-page .contact-info-list__empty {
  display: block;
  padding: 12px 14px;
  border: 1px dashed var(--line, #dfe8ea);
  border-radius: 12px;
  background: #f8fbfc;
  color: var(--muted, #697386);
  font-size: 14px;
  line-height: 1.6;
}

body.site-page .contact-info-list__icon {
  display: grid !important;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: rgba(18, 184, 134, 0.12);
  color: var(--primary-dark, #069a72);
  font-size: 16px;
}

body.site-page .contact-info-list li > div {
  min-width: 0;
  flex: 1 1 auto;
}

body.site-page .contact-info-list strong {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted, #697386);
}

body.site-page .contact-info-list a,
body.site-page .contact-info-list span {
  display: block;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: var(--text, #172033);
  font-size: 15px;
  line-height: 1.5;
}

body.site-page .contact-info-list a {
  font-weight: 600;
  text-decoration: none;
}

body.site-page .contact-info-list a:hover {
  color: var(--primary-dark, #069a72);
}

body.site-page .contact-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

body.site-page .contact-quick-links__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(18, 184, 134, 0.12);
  color: var(--primary-dark, #069a72);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

body.site-page .contact-quick-links__btn:hover {
  transform: translateY(-1px);
  background: rgba(18, 184, 134, 0.2);
}

body.site-page .contact-quick-links__btn--messenger {
  background: rgba(57, 119, 243, 0.12);
  color: #2f5fd1;
}

body.site-page .contact-quick-links__btn--messenger:hover {
  background: rgba(57, 119, 243, 0.2);
}

body.site-page .contact-form {
  padding: 26px 28px 28px;
}

body.site-page .contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

body.site-page .contact-form__grid .contact-field {
  margin-bottom: 0;
}

body.site-page .contact-field {
  display: block;
  margin-bottom: 16px;
}

body.site-page .contact-field span {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text, #172033);
}

body.site-page .contact-field span em {
  color: #e03131;
  font-style: normal;
}

body.site-page .contact-input {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line, #dfe8ea);
  border-radius: 12px;
  background: #fff;
  color: var(--text, #172033);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.4;
  box-shadow: none;
  appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.site-page .contact-input:focus {
  outline: none;
  border-color: rgba(18, 184, 134, 0.55);
  box-shadow: 0 0 0 3px rgba(18, 184, 134, 0.12);
}

body.site-page .contact-textarea {
  min-height: 148px;
  resize: vertical;
}

body.site-page .contact-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

body.site-page .contact-submit,
body.site-page .contact-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.site-page .contact-submit {
  background: linear-gradient(135deg, var(--primary, #12b886), #20d5b0);
  color: #fff;
  box-shadow: 0 8px 20px rgba(18, 184, 134, 0.22);
}

body.site-page .contact-submit:hover {
  transform: translateY(-1px);
}

body.site-page .contact-reset {
  background: #f4f7f8;
  color: var(--muted, #697386);
}

body.site-page .contact-reset:hover {
  background: #e9eef0;
}

@media (max-width: 991px) {
  body.site-page .blog-page__layout {
    grid-template-columns: 1fr;
  }

  body.site-page .blog-page .article-grid {
    grid-template-columns: 1fr;
  }

  body.site-page .blog-article__head,
  body.site-page .blog-article__body,
  body.site-page .blog-related {
    padding-left: 20px;
    padding-right: 20px;
  }

  body.site-page .blog-related {
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 24px;
  }

  body.site-page .page-details__head,
  body.site-page .page-details__body {
    padding-left: 22px;
    padding-right: 22px;
  }

  body.site-page .page-details__body {
    padding-bottom: 28px;
  }

  body.site-page .contact-page__head-inner,
  body.site-page .contact-info-card,
  body.site-page .contact-form {
    padding-left: 20px;
    padding-right: 20px;
  }

  body.site-page .contact-page__layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  body.site-page .contact-form__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  body.site-page .contact-form__grid .contact-field {
    margin-bottom: 16px;
  }

  body.site-page .contact-form__actions {
    flex-direction: column;
  }

  body.site-page .contact-submit,
  body.site-page .contact-reset {
    width: 100%;
  }
}

@media (max-width: 575px) {
  body.site-page .contact-page__head-inner {
    padding: 20px 16px 22px;
  }

  body.site-page .contact-info-card,
  body.site-page .contact-form {
    padding: 20px 16px;
    border-radius: 16px;
  }
}

/* ----- Trang hồ sơ thành viên ----- */
body.site-page .member-page {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  float: none;
  width: 100%;
  margin: 0;
}

body.site-page .member-page__sidebar,
body.site-page .member-page__main {
  float: none;
  width: auto;
  min-width: 0;
}

.member-sidebar {
  position: sticky;
  top: 88px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--small-shadow);
}

.member-sidebar__hero {
  padding: 22px 18px 18px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 55%),
    linear-gradient(135deg, #0f9f78 0%, #12b886 48%, #3977f3 100%);
}

.member-sidebar__avatar {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  margin-bottom: 12px;
  color: var(--primary-dark);
  font-size: 28px;
  font-weight: 800;
  border: 3px solid rgba(255, 255, 255, 0.88);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 32, 51, 0.18);
}

.member-sidebar__identity {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.member-sidebar__identity strong {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.member-sidebar__identity span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 500;
}

.member-sidebar__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.member-sidebar__stat {
  padding: 10px 8px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.member-sidebar__stat b {
  display: block;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.member-sidebar__stat span {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.member-sidebar__follow {
  padding: 14px 16px 0;
}

.member-sidebar__follow .follow-user {
  float: none;
  width: 100%;
  margin: 0;
}

.member-sidebar__follow .follow-user > button,
.member-sidebar__follow .follow-user-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 0 16px;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 700;
  border: 0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 32, 51, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.member-sidebar__follow .follow-user > button:hover,
.member-sidebar__follow .follow-user-action:hover {
  color: #fff;
  background: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(18, 184, 134, 0.28);
}

.member-sidebar__meta {
  list-style: none;
  margin: 0;
  padding: 16px 18px 20px;
}

.member-sidebar__meta li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.member-sidebar__meta li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.member-sidebar__meta li > i {
  display: grid;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  place-items: center;
  color: var(--primary-dark);
  font-size: 14px;
  border-radius: 10px;
  background: #e8faf4;
}

.member-sidebar__meta-label {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.member-sidebar__meta strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  word-break: break-word;
}

.member-page__main {
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--small-shadow);
}

.member-posts-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.member-posts-head__kicker {
  margin: 0 0 4px;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.member-posts-head h2 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
}

.member-posts-head__badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  background: #e8faf4;
}

.member-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.member-post-card {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(31, 49, 64, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.member-post-card:hover {
  transform: translateY(-3px);
  border-color: rgba(18, 184, 134, 0.35);
  box-shadow: 0 16px 36px rgba(31, 49, 64, 0.1);
}

.member-post-card--vip {
  border-color: rgba(237, 28, 36, 0.25);
}

.member-post-card__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f3f6f9;
}

.member-post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.member-post-card:hover .member-post-card__thumb img {
  transform: scale(1.04);
}

.member-post-card__vip {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 10px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  border-radius: 999px;
  background: linear-gradient(135deg, #ed1c24, #ff6b35);
  box-shadow: 0 6px 16px rgba(237, 28, 36, 0.28);
}

.member-post-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 14px 14px 16px;
}

.member-post-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.member-post-card__title a {
  color: var(--text);
  transition: color 0.2s ease;
}

.member-post-card__title a:hover {
  color: var(--primary-dark);
}

.member-post-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
}

.member-post-card__meta li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.member-post-card__meta a {
  color: var(--muted);
  font-weight: 600;
}

.member-post-card__meta a:hover {
  color: var(--primary-dark);
}

.member-post-card__price {
  margin-top: auto;
  padding-top: 8px;
  color: #ed1c24;
  font-size: 15px;
  font-weight: 800;
}

.member-posts-paging {
  margin-top: 24px;
  padding-top: 8px;
}

.member-posts-empty,
.member-page__notfound {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 48px 24px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #fafcfd 0%, #fff 100%);
}

.member-posts-empty__icon,
.member-page__notfound-icon {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  color: var(--primary-dark);
  font-size: 28px;
  border-radius: 20px;
  background: #e8faf4;
}

.member-posts-empty h3,
.member-page__notfound h2 {
  margin: 8px 0 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}

.member-posts-empty p,
.member-page__notfound p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.member-page__notfound-btn {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-top: 8px;
  padding: 0 20px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 10px 24px rgba(18, 184, 134, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.member-page__notfound-btn:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(18, 184, 134, 0.3);
}

.member-page__notfound {
  grid-column: 1 / -1;
}

@media (max-width: 991px) {
  body.site-page .member-page {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .member-sidebar {
    position: static;
  }

  .member-posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .member-page__main {
    padding: 18px 16px;
    border-radius: 14px;
  }

  .member-posts-grid {
    grid-template-columns: 1fr;
  }

  .member-sidebar__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
