.nav-brand {
  align-items: center;
  display: flex;
  font-weight: 800;
  gap: 8px;
}

.nav-brand .logo {
  display: none;
}

.nav-brand::before {
  align-items: center;
  background: linear-gradient(135deg, #1363df, #00a884);
  border-radius: 8px;
  color: #fff;
  content: "BF";
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  height: 36px;
  justify-content: center;
  letter-spacing: 0;
  width: 36px;
}

.bf-cat-icon {
  align-items: center;
  background: linear-gradient(135deg, rgba(19, 99, 223, .12), rgba(0, 168, 132, .14));
  border: 1px solid rgba(19, 99, 223, .16);
  border-radius: 14px;
  color: #1363df;
  display: inline-flex;
  font-size: 18px;
  font-weight: 900;
  height: 58px;
  justify-content: center;
  width: 58px;
}

.bf-card-summary {
  color: #6c757d;
  font-size: 13px;
  line-height: 1.65;
  min-height: 42px;
}

.hero-banner {
  background-color: #07152d;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.hero-banner::after {
  background-image:
    linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 34px 34px;
  content: "";
  inset: 0;
  opacity: .25;
  pointer-events: none;
  position: absolute;
}

.hero-banner .container {
  position: relative;
  z-index: 1;
}

.hero-banner h1,
.hero-banner p {
  color: #fff;
}

.hero-banner .banner-search {
  box-shadow: 0 18px 44px rgba(7, 24, 55, .22);
}

.bf-home-page {
  background: #f4f7fb;
}

.bf-home-header {
  background: transparent;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 1000;
}

.bf-nav-container {
  margin: 0 auto;
  max-width: 1440px;
  padding: 14px 28px 0;
}

.bf-home-nav {
  align-items: center;
  backdrop-filter: blur(12px);
  background: rgba(5, 20, 40, .76);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 0;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .18);
  display: flex;
  min-height: 76px;
  padding: 0 26px;
}

.bf-home-nav .nav-header {
  flex: 0 0 auto;
  margin-right: 54px;
}

.bf-home-nav .nav-brand,
.bf-home-nav .nav-brand:hover,
.bf-home-nav .nav-brand:focus {
  color: #fff;
}

.bf-home-nav .nav-brand::before {
  background: linear-gradient(135deg, #10b981, #1363df);
}

.bf-home-nav .nav-menus-wrapper {
  align-items: center;
  display: flex;
  flex: 1;
  justify-content: space-between;
  min-width: 0;
}

.bf-home-nav .nav-menu {
  align-items: center;
  display: flex;
  gap: 38px;
  margin: 0;
}

.bf-home-nav .nav-menu > li > a {
  color: rgba(255,255,255,.82);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  padding: 28px 0 24px;
  position: relative;
}

.bf-home-nav .nav-menu > li.active > a,
.bf-home-nav .nav-menu > li > a:hover {
  color: #69f5c7;
}

.bf-home-nav .nav-menu > li.active > a::after,
.bf-home-nav .nav-menu > li > a:hover::after {
  background: #23d89a;
  border-radius: 999px;
  bottom: 18px;
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
}

.bf-home-nav-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
  margin-left: 42px;
}

.bf-nav-search,
.bf-nav-login,
.bf-nav-join {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 13px;
  font-weight: 850;
  justify-content: center;
  min-height: 38px;
}

.bf-nav-search {
  background: rgba(255,255,255,.08);
  color: #fff;
  width: 38px;
}

.bf-nav-login {
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
  padding: 0 18px;
}

.bf-nav-join {
  background: linear-gradient(135deg, #00a884, #16c784);
  color: #fff;
  padding: 0 20px;
  box-shadow: 0 14px 30px rgba(0, 168, 132, .28);
}

.bf-nav-search:hover,
.bf-nav-login:hover,
.bf-nav-join:hover {
  color: #fff;
  transform: translateY(-1px);
}

.bf-home-hero {
  align-items: center;
  display: flex;
  min-height: 720px;
  padding: 142px 0 82px;
}

.bf-home-hero::before {
  background:
    linear-gradient(180deg, rgba(3, 12, 27, .54), rgba(3, 12, 27, .78)),
    radial-gradient(circle at 50% 34%, rgba(0, 168, 132, .16), transparent 38%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.bf-home-hero .container {
  max-width: 1180px;
}

.bf-home-hero-inner {
  margin: 0 auto;
  max-width: 1040px;
  position: relative;
  text-align: center;
  z-index: 2;
}

.bf-home-hero h1 {
  color: #fff;
  font-size: 58px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0 auto 18px;
  max-width: 1040px;
}

.bf-home-hero .lead {
  color: rgba(255,255,255,.84);
  font-size: 20px !important;
  line-height: 1.7;
  margin: 0 auto 28px;
}

.bf-home-promo-row {
  backdrop-filter: blur(14px);
  background: rgba(8, 28, 54, .58);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  box-shadow: 0 22px 60px rgba(0,0,0,.22);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto 28px;
  max-width: 980px;
  overflow: hidden;
}

.bf-home-promo-card {
  border-right: 1px solid rgba(255,255,255,.12);
  display: grid;
  gap: 7px;
  min-height: 154px;
  padding: 20px 22px;
  text-align: left;
}

.bf-home-promo-card:last-child {
  border-right: 0;
}

.bf-home-promo-card:hover {
  background: rgba(255,255,255,.06);
}

.bf-home-promo-card span {
  align-self: start;
  background: rgba(35, 216, 154, .14);
  border: 1px solid rgba(35, 216, 154, .22);
  border-radius: 999px;
  color: #72f7c9;
  font-size: 12px;
  font-weight: 900;
  justify-self: start;
  padding: 3px 10px;
}

.bf-home-promo-card strong {
  color: #fff;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.35;
}

.bf-home-promo-card p {
  color: rgba(255,255,255,.68);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}

.bf-home-promo-card em {
  color: #7af7cc;
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
}

.bf-home-search {
  align-items: center;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .22);
  display: flex;
  gap: 8px;
  height: 62px;
  margin: 0 auto;
  max-width: 800px;
  padding: 7px;
}

.bf-home-search input {
  border: 0;
  color: #1b2b48;
  flex: 1;
  font-size: 15px;
  min-width: 0;
  padding: 0 18px;
}

.bf-home-search input::placeholder {
  color: #8795aa;
}

.bf-home-search button {
  align-items: center;
  background: linear-gradient(135deg, #1363df, #00a884);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 850;
  gap: 8px;
  height: 48px;
  justify-content: center;
  padding: 0 24px;
  white-space: nowrap;
}

.bf-home-content {
  background:
    linear-gradient(180deg, #f4f7fb 0%, #eef3f8 100%);
  padding: 54px 0 72px;
}

.bf-home-resource-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, .85fr);
}

.bf-home-panel {
  background: #fff;
  border: 1px solid #e2eaf3;
  border-radius: 10px;
  box-shadow: 0 18px 46px rgba(12, 31, 63, .08);
  padding: 24px;
}

.bf-home-panel-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

.bf-home-panel-head span {
  color: #00a884;
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.bf-home-panel-head h2 {
  color: #14233f;
  font-size: 26px;
  font-weight: 900;
  margin: 2px 0 0;
}

.bf-home-panel-head a {
  color: #1363df;
  font-size: 13px;
  font-weight: 850;
}

.bf-latest-module-list {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bf-latest-module-card {
  align-items: start;
  background: linear-gradient(180deg, #f9fbff, #f3f7fc);
  border: 1px solid #e1e9f3;
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-height: 138px;
  padding: 18px;
}

.bf-latest-module-card:hover {
  border-color: #1363df;
  box-shadow: 0 14px 30px rgba(19, 99, 223, .10);
}

.bf-latest-module-card strong {
  color: #14233f;
  display: block;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.3;
}

.bf-latest-module-card p {
  color: #64748b;
  font-size: 13px;
  line-height: 1.65;
  margin: 8px 0 12px;
}

.bf-latest-module-card span {
  background: #eaf7f2;
  border-radius: 999px;
  color: #08745f;
  display: inline-flex;
  font-size: 12px;
  font-weight: 850;
  padding: 4px 9px;
}

.bf-latest-module-card em,
.bf-hot-resource-item em {
  background: #fff1ed;
  border-radius: 999px;
  color: #de5a39;
  flex: 0 0 auto;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  padding: 4px 8px;
}

.bf-hot-resource-list {
  display: grid;
  gap: 10px;
}

.bf-hot-resource-item {
  align-items: center;
  background: #f9fbff;
  border: 1px solid #e5edf6;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  padding: 14px;
}

.bf-hot-resource-item:hover {
  border-color: #00a884;
  box-shadow: 0 12px 26px rgba(0, 168, 132, .10);
}

.bf-hot-resource-item > span {
  align-items: center;
  background: linear-gradient(135deg, rgba(19,99,223,.12), rgba(0,168,132,.16));
  border-radius: 999px;
  color: #1363df;
  display: inline-flex;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.bf-hot-resource-item strong {
  color: #14233f;
  display: block;
  font-size: 15px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bf-hot-resource-item small {
  color: #74839a;
  display: block;
  font-size: 12px;
  margin-top: 2px;
}

.item_group_thumb,
._uy76_gallery {
  background: #f4f7fb;
}

.item_group_thumb .item-figure {
  aspect-ratio: 16 / 10;
  display: block;
  overflow: hidden;
}

.item_group_thumb .item-figure img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.item_title_bmb {
  min-height: 46px;
}

.bf-hot-badge {
  align-items: center;
  background: #fff7f2;
  border: 1px solid #ffd8c8;
  border-radius: 999px;
  color: #e5612d;
  display: inline-flex !important;
  font-size: 11px;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  letter-spacing: 0;
  min-width: 58px;
  padding: 0 12px;
}

.bf-price-paid {
  color: #e3503e !important;
}

.bf-category-filter a {
  cursor: pointer;
}

.bf-upload-card {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 18px rgba(0,0,0,.08);
  padding: 28px;
}

.bf-upload-card .form-control,
.bf-upload-card .custom-select {
  min-height: 46px;
}

.bf-dashboard-list {
  display: grid;
  gap: 12px;
}

.bf-workspace-hero {
  background:
    radial-gradient(circle at 18% 20%, rgba(0, 168, 132, .34), transparent 28%),
    radial-gradient(circle at 86% 12%, rgba(19, 99, 223, .38), transparent 24%),
    linear-gradient(135deg, #071a3f 0%, #0b3d52 52%, #0c6a62 100%),
    url("../img/banner.jpg") center/cover no-repeat;
  color: #fff;
  overflow: hidden;
  padding: 44px 0 54px;
  position: relative;
}

.bf-workspace-hero::after {
  background-image:
    linear-gradient(rgba(255,255,255,.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.11) 1px, transparent 1px);
  background-size: 36px 36px;
  content: "";
  inset: 0;
  opacity: .22;
  pointer-events: none;
  position: absolute;
}

.bf-workspace-hero .container {
  position: relative;
  z-index: 1;
}

.bf-workspace-hero-grid {
  align-items: center;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1fr) 330px;
}

.bf-workspace-hero h1 {
  color: #fff;
  font-size: 38px;
  font-weight: 900;
  line-height: 1.15;
  margin: 10px 0 12px;
}

.bf-workspace-hero p {
  color: rgba(255,255,255,.86);
  font-size: 16px;
  margin: 0;
  max-width: 720px;
}

.bf-kicker {
  color: #9df6d7;
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.bf-hero-card {
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0,0,0,.18);
  padding: 24px;
}

.bf-hero-card span {
  color: #9df6d7;
  display: block;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.bf-hero-card strong {
  color: #fff;
  display: block;
  font-size: 22px;
  line-height: 1.35;
  margin-bottom: 10px;
}

.bf-hero-card p {
  color: rgba(255,255,255,.78);
  font-size: 14px;
}

.bf-workspace-section {
  background:
    linear-gradient(180deg, #f5f8fc 0%, #eef3f8 100%);
  padding-bottom: 56px;
  padding-top: 0;
}

.bf-login-panel,
.bf-module-sidebar,
.bf-editor-panel {
  background: #fff;
  border: 1px solid #e7ecf3;
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(12, 31, 63, .10);
}

.bf-login-panel {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(220px, 1fr) minmax(360px, 560px);
  margin-bottom: 18px;
  margin-top: -38px;
  padding: 24px;
  position: relative;
  z-index: 2;
}

.bf-login-panel.is-authenticated {
  grid-template-columns: minmax(220px, 1fr) minmax(280px, 420px);
}

.bf-login-panel.is-authenticated .bf-login-form {
  display: none;
}

.bf-user-card {
  align-items: center;
  background: linear-gradient(135deg, #f6f9ff, #eefbf7);
  border: 1px solid #dde8f3;
  border-radius: 8px;
  display: none;
  gap: 14px;
  padding: 14px;
}

.bf-user-card.is-visible {
  display: flex;
}

.bf-user-avatar {
  align-items: center;
  background: linear-gradient(135deg, #1363df, #00a884);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 52px;
  font-weight: 900;
  height: 52px;
  justify-content: center;
  width: 52px;
}

.bf-user-card span {
  color: #08745f;
  display: block;
  font-size: 12px;
  font-weight: 850;
}

.bf-user-card strong {
  color: #17233c;
  display: block;
  font-size: 18px;
  margin: 2px 0;
}

.bf-user-card p {
  color: #6c788b;
  font-size: 13px;
  margin: 0;
}

.bf-login-panel h3,
.bf-panel-title h3,
.bf-editor-toolbar h3 {
  color: #17233c;
  font-size: 20px;
  font-weight: 850;
  margin: 0;
}

.bf-login-panel p {
  color: #6c788b;
  margin: 6px 0 0;
}

.bf-login-form {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr auto;
}

.bf-login-form .form-control {
  min-height: 44px;
}

.bf-primary-btn,
.bf-ghost-btn,
.bf-small-btn,
.bf-tab-btn {
  align-items: center;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  letter-spacing: 0;
  min-height: 42px;
  padding: 0 18px;
  transition: .18s ease;
  white-space: nowrap;
}

.bf-primary-btn {
  background: linear-gradient(135deg, #1363df, #00a884);
  border: 0;
  color: #fff;
  box-shadow: 0 14px 28px rgba(19, 99, 223, .24);
}

.bf-primary-btn:hover {
  color: #fff;
  transform: translateY(-1px);
}

.bf-ghost-btn,
.bf-small-btn,
.bf-tab-btn {
  background: #fff;
  border: 1px solid #d8e0eb;
  color: #31415f;
}

.bf-ghost-btn:hover,
.bf-small-btn:hover,
.bf-tab-btn:hover,
.bf-tab-btn.active {
  border-color: #1363df;
  color: #1363df;
}

.bf-workspace-status {
  background: #eef6ff;
  border: 1px solid #d5e9ff;
  border-radius: 8px;
  color: #245784;
  margin-bottom: 18px;
  padding: 13px 16px;
}

.bf-stat-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 22px;
}

.bf-stat-card {
  background: #fff;
  border: 1px solid #e7ecf3;
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(12, 31, 63, .07);
  padding: 18px;
  position: relative;
}

.bf-stat-card span,
.bf-stat-card small {
  color: #7f8ea5;
  display: block;
  font-size: 12px;
  font-weight: 750;
}

.bf-stat-card strong {
  color: #13213b;
  display: block;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  margin: 10px 0 8px;
}

.bf-stat-card > i {
  align-items: center;
  background: linear-gradient(135deg, rgba(19, 99, 223, .12), rgba(0, 168, 132, .16));
  border: 1px solid rgba(19, 99, 223, .12);
  border-radius: 999px;
  color: #1363df;
  display: inline-flex;
  font-size: 15px;
  height: 38px;
  justify-content: center;
  position: absolute;
  right: 16px;
  top: 16px;
  width: 38px;
}

.bf-workspace-status[data-tone="success"] {
  background: #eefbf7;
  border-color: #c9f1e1;
  color: #08745f;
}

.bf-workspace-status[data-tone="error"] {
  background: #fff0ee;
  border-color: #ffd4cd;
  color: #b33625;
}

.bf-workspace-layout {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
}

.bf-module-sidebar {
  overflow: hidden;
  padding: 18px;
  position: sticky;
  top: 16px;
}

.bf-panel-title,
.bf-editor-toolbar {
  align-items: center;
  border-bottom: 1px solid #edf1f6;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin: -18px -18px 18px;
  padding: 18px;
}

.bf-panel-title span,
.bf-editor-toolbar span {
  color: #8090a8;
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.bf-editor-panel {
  min-width: 0;
  overflow: hidden;
  padding: 22px;
}

.bf-editor-body {
  min-width: 0;
}

.bf-tab-actions {
  background: #f4f7fb;
  border: 1px solid #e3eaf4;
  border-radius: 8px;
  display: flex;
  gap: 6px;
  padding: 5px;
}

.bf-editor-view {
  display: none;
}

.bf-editor-view.is-active {
  display: block;
}

.bf-panel-form {
  display: block;
}

.bf-panel-form .bf-section-card {
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(15, 35, 60, 0.08);
  border: 1px solid #e7edf6;
  padding: 24px;
  margin-bottom: 18px;
}

.bf-empty-editor {
  background: linear-gradient(135deg, #f8fbff, #eefbf7);
  border: 1px solid #dce8f3;
  border-radius: 8px;
  display: none;
  margin-bottom: 18px;
  padding: 22px;
}

.bf-empty-editor.active {
  display: block;
}

.bf-empty-editor strong {
  color: #17233c;
  display: block;
  font-size: 18px;
  font-weight: 850;
  margin-bottom: 6px;
}

.bf-empty-editor p {
  color: #65758c;
  margin-bottom: 14px;
}

.bf-toast {
  background: #142746;
  border-radius: 8px;
  bottom: 26px;
  box-shadow: 0 18px 40px rgba(10, 25, 53, .28);
  color: #fff;
  display: grid;
  gap: 3px;
  min-width: 260px;
  opacity: 0;
  padding: 14px 16px;
  pointer-events: none;
  position: fixed;
  right: 26px;
  transform: translateY(16px);
  transition: .22s ease;
  z-index: 1200;
}

.bf-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.bf-toast[data-tone="success"] {
  background: #133a34;
}

.bf-toast[data-tone="error"] {
  background: #5a1f1c;
}

.bf-toast strong {
  font-size: 14px;
  font-weight: 850;
}

.bf-toast span {
  color: rgba(255,255,255,.82);
  font-size: 12px;
}

.bf-form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bf-checkbox-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin-top: 10px;
}

.bf-checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: #2f3f56;
  margin: 0;
}

.bf-form-grid label {
  color: #31415f;
  display: grid;
  font-size: 13px;
  font-weight: 800;
  gap: 7px;
  margin: 0;
  min-width: 0;
}

.bf-form-grid .form-control {
  background: #f8fafd;
  border-color: #dce4ef;
  border-radius: 7px;
  min-height: 48px;
}

.bf-type-control-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.bf-type-control-row .form-control {
  flex: 1;
}

.bf-type-control-row .bf-small-btn {
  min-height: 40px;
  border: 1px solid #cdd8e7;
  background: #fff;
  color: #2f4c72;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  white-space: nowrap;
  padding: 0 12px;
}

.bf-type-manager-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.bf-type-manager-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #dfe7f1;
  border-radius: 10px;
  padding: 8px 12px;
  min-height: 48px;
  background: #f9fbff;
  transition: border-color .18s ease, background-color .18s ease;
}

.bf-type-manager-item:hover {
  border-color: #bdd0ea;
  background: #f4f8fe;
}

.bf-type-manager-item strong {
  flex: 1;
  min-width: 0;
  color: #20385b;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bf-type-manager-item .bf-small-btn {
  min-height: 32px;
  border-radius: 8px;
  border: 1px solid #efc9c9;
  background: #fff6f6;
  color: #a84545;
  font-size: 12px;
  font-weight: 700;
  padding: 0 10px;
}

.bf-type-manager-item .bf-small-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.bf-form-grid textarea.form-control {
  min-height: 118px;
}

.bf-form-section-title {
  border-left: 4px solid #00a884;
  margin: 20px 0 16px;
  padding-left: 12px;
}

.bf-form-section-title:first-child {
  margin-top: 0;
}

.bf-form-section-title span {
  color: #8090a8;
  display: block;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.bf-form-section-title h4 {
  color: #17233c;
  font-size: 18px;
  font-weight: 850;
  margin: 3px 0 0;
}

.bf-upload-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bf-file-card {
  background: linear-gradient(180deg, #f8fbff, #f2f6fb);
  border: 1px dashed #b7c5d8;
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 9px;
  margin: 0;
  min-height: 132px;
  padding: 18px;
}

.bf-file-card span {
  align-items: center;
  background: rgba(19, 99, 223, .10);
  border-radius: 6px;
  color: #1363df;
  display: inline-flex;
  font-size: 12px;
  font-weight: 850;
  justify-content: center;
  min-height: 26px;
  width: 54px;
}

.bf-file-card strong {
  color: #17233c;
  font-size: 15px;
}

.bf-file-card input {
  color: #68758a;
  font-size: 12px;
}

.bf-span-2 {
  grid-column: span 2;
}

.bf-span-3 {
  grid-column: 1 / -1;
}

.bf-form-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.bf-dashboard-item {
  align-items: center;
  background: #f9fbfe;
  border: 1px solid #e7ecf3;
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  padding: 12px;
  text-align: left;
  width: 100%;
}

.bf-dashboard-item:hover,
.bf-dashboard-item.active {
  border-color: #1363df;
  box-shadow: 0 10px 24px rgba(19, 99, 223, .10);
}

.bf-dashboard-item img {
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  object-fit: cover;
  width: 72px;
}

.bf-dashboard-item strong,
.bf-dashboard-item small {
  display: block;
}

.bf-dashboard-item small {
  color: #6c757d;
  margin-top: 3px;
}

.bf-dashboard-item em {
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  padding: 6px 9px;
}

.bf-dashboard-item em.is-paid {
  background: #fff0ec;
  color: #d9482f;
}

.bf-dashboard-item em.is-free {
  background: #edf8f3;
  color: #08745f;
}

.bf-sidebar-note {
  background: linear-gradient(135deg, rgba(19, 99, 223, .08), rgba(0, 168, 132, .10));
  border: 1px solid rgba(19, 99, 223, .12);
  border-radius: 8px;
  margin-top: 16px;
  padding: 15px;
}

.bf-sidebar-note strong {
  color: #17233c;
  display: block;
  font-weight: 850;
  margin-bottom: 5px;
}

.bf-sidebar-note p {
  color: #617087;
  font-size: 13px;
  line-height: 1.65;
  margin: 0;
}

.hero-banner h1,
.title-banner h1 {
  font-weight: 800;
}

.items_price {
  font-weight: 800;
}

._urip_purchase[disabled] {
  cursor: not-allowed;
  opacity: .75;
}

.title-banner {
  background:
    linear-gradient(135deg, rgba(15, 37, 84, .92), rgba(18, 126, 116, .72)),
    url("../img/tag-light.png") center/cover no-repeat !important;
}

.title-banner h1,
.title-banner .lead {
  color: #fff;
}

.bf-page-pricing {
  overflow-y: auto;
}

.bf-page-pricing #main-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.bf-page-pricing section.gray-light {
  flex: 1;
}

.bf-record-footer {
  background: #111a2d;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.82);
  padding: 20px 0;
  text-align: center;
}

.bf-record-footer p {
  font-size: 13px;
  letter-spacing: 0;
  line-height: 1.8;
  margin: 0;
}

.bf-record-footer a {
  color: rgba(255,255,255,.82);
  text-decoration: none;
}

.bf-record-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.bf-user-type-box {
  border: 2px dashed #c9d3e6;
  border-radius: 8px;
  margin: 18px auto 0;
  max-width: 420px;
  padding: 12px 14px;
}

.bf-user-type-box span {
  color: #7a8aa3;
  display: block;
  font-size: 12px;
}

.bf-user-type-box strong {
  color: #1a274e;
  display: block;
  font-size: 17px;
  margin-top: 2px;
}

.bf-auth-pill {
  align-items: center;
  background: rgba(241, 246, 253, .92);
  border: 1px solid #d9e4f2;
  border-radius: 999px;
  display: inline-flex;
  height: 32px;
  line-height: 1;
  padding: 2px 6px 2px 9px;
  vertical-align: middle;
}

.nav-menu.nav-menu-social > li.bf-auth-pill {
  align-items: center;
  display: inline-flex !important;
  margin: 13px 0 0 10px;
}

.nav-menu.nav-menu-social > li.bf-auth-pill::before {
  display: none;
}

.bf-auth-pill > a {
  align-items: center;
  color: #2f3f5e !important;
  display: inline-flex;
  font-size: 14px;
  font-weight: 650;
  height: 28px;
  line-height: 1;
  padding: 0 4px !important;
}

.bf-auth-pill > a:hover {
  color: #1363df !important;
}

.bf-auth-user {
  align-items: center;
  background: #f5f8fc;
  border: 1px solid #dce5f0;
  border-radius: 999px;
  display: inline-flex !important;
  gap: 8px;
  max-width: 420px;
  height: 32px;
  padding: 2px 6px 2px 7px !important;
}

.bf-auth-label {
  background: #e8eff9;
  border-radius: 999px;
  color: #3d4f72;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  padding: 2px 7px;
  white-space: nowrap;
}

.bf-auth-name {
  color: #233453;
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bf-auth-logout {
  background: #fff;
  border: 1px solid #d2dceb;
  border-radius: 999px;
  color: #4a5d80;
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  height: 24px;
  padding: 0 9px;
}

.bf-auth-logout:hover {
  border-color: #1363df;
  color: #1363df;
}

.bf-floating-user {
  height: 96px;
  position: fixed;
  right: 0;
  top: 45%;
  transform: translateY(-45%);
  width: 42px;
  z-index: 5000;
}

.bf-floating-user-trigger {
  align-items: center;
  background: linear-gradient(135deg, #1363df, #00a884);
  border: 0;
  border-radius: 14px 0 0 14px;
  box-shadow: 0 14px 34px rgba(19, 99, 223, .22);
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 16px;
  height: 96px;
  justify-content: center;
  padding: 8px 0;
  position: relative;
  width: 42px;
  z-index: 2;
}

.bf-floating-user-trigger span {
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.1;
  writing-mode: vertical-rl;
}

.bf-floating-user-body {
  background: rgba(255, 255, 255, .96);
  border: 1px solid #dfe8f4;
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(12, 31, 63, .16);
  min-width: 268px;
  opacity: 0;
  padding: 16px;
  pointer-events: none;
  position: absolute;
  right: 42px;
  top: 50%;
  transform: translate(18px, -50%);
  transition: opacity .18s ease, transform .18s ease;
}

.bf-floating-user.is-open .bf-floating-user-body,
.bf-floating-user:hover .bf-floating-user-body {
  opacity: 1;
  pointer-events: auto;
  transform: translate(0, -50%);
}

.bf-floating-user-head {
  border-bottom: 1px solid #edf2f8;
  margin-bottom: 12px;
  padding-bottom: 10px;
}

.bf-floating-user-head strong {
  color: #17233c;
  display: block;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.35;
}

.bf-floating-user-head span {
  color: #7a8aa3;
  display: block;
  font-size: 12px;
  margin-top: 2px;
}

.bf-floating-user-desc {
  color: #5f6f86;
  font-size: 13px;
  line-height: 1.65;
  margin: 0 0 14px;
}

.bf-floating-user-meta {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
}

.bf-floating-user-meta div {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.bf-floating-user-meta dt {
  color: #7a8aa3;
  font-size: 12px;
  font-weight: 750;
}

.bf-floating-user-meta dd {
  color: #26395f;
  font-size: 13px;
  font-weight: 800;
  margin: 0;
  max-width: 150px;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bf-floating-logout,
.bf-floating-login {
  align-items: center;
  background: linear-gradient(135deg, #1363df, #00a884);
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  justify-content: center;
  min-height: 34px;
  width: 100%;
}

.bf-floating-logout:hover,
.bf-floating-login:hover {
  color: #fff;
  transform: translateY(-1px);
}

.bf-user-admin-note {
  align-items: center;
  background: #f7faff;
  border: 1px solid #dfe8f4;
  border-radius: 8px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 12px 14px;
}

.bf-user-admin-note strong {
  color: #17233c;
  font-weight: 850;
}

.bf-user-admin-note span {
  color: #6b7d96;
  font-size: 13px;
}

.bf-user-role-select,
.bf-user-enabled-select {
  min-height: 36px !important;
  min-width: 118px;
}

.bf-user-cards-wrap {
  display: grid;
  gap: 14px;
}

.bf-user-manage-card {
  background: #fff;
  border: 1px solid #dbe6f4;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(9, 33, 66, .06);
  padding: 16px;
}

.bf-user-manage-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bf-user-manage-row + .bf-user-manage-row {
  margin-top: 12px;
}

.bf-user-manage-row label {
  margin: 0;
}

.bf-user-manage-row-bottom {
  align-items: end;
  grid-template-columns: 1.2fr 1fr auto;
}

.bf-user-points-box {
  background: #f3f8ff;
  border: 1px solid #d9e6f6;
  border-radius: 10px;
  padding: 8px 10px;
}

.bf-user-points-main {
  color: #11345f;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.bf-user-points-sub {
  color: #5d7392;
  font-size: 12px;
  margin-top: 4px;
}

.bf-user-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.bf-user-actions .bf-small-btn {
  min-width: 84px;
}

.bf-user-points-edit.is-readonly {
  opacity: .75;
}

.bf-user-save-card-btn {
  min-height: 42px;
  padding: 0 16px;
  width: auto;
}

.bf-no-access-card {
  background: #fff;
  border: 1px solid #e3eaf3;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(14, 35, 68, .10);
  margin: 24px auto 48px;
  max-width: 760px;
  padding: 36px 28px;
  text-align: center;
}

.bf-no-access-icon {
  align-items: center;
  background: linear-gradient(135deg, rgba(19, 99, 223, .14), rgba(0, 168, 132, .16));
  border-radius: 999px;
  color: #1363df;
  display: inline-flex;
  font-size: 28px;
  height: 68px;
  justify-content: center;
  margin-bottom: 14px;
  width: 68px;
}

  .bf-no-access-card h3 {
  color: #17233c;
  font-size: 30px;
  font-weight: 850;
  margin-bottom: 10px;
}

.bf-no-access-card p {
  color: #5f6f86;
  line-height: 1.8;
  margin-bottom: 18px;
}

.bf-no-access-actions {
  display: inline-flex;
  gap: 10px;
}

.bf-modal {
  align-items: center;
  background: rgba(12, 25, 46, .45);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 16px;
  position: fixed;
  z-index: 1500;
}

.bf-modal-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 22px 60px rgba(8, 18, 36, .24);
  max-width: 460px;
  padding: 24px;
  width: 100%;
}

.bf-type-manager-modal-card {
  max-width: 620px;
  width: min(620px, 92vw);
  padding: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: 80vh;
  overflow: hidden;
}

.bf-type-manager-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 1px solid #e7edf6;
  padding: 20px 22px 14px;
  background: #fff;
}

.bf-type-manager-modal-head p {
  margin: 6px 0 0;
  color: #667a96;
  font-size: 13px;
  line-height: 1.5;
}

.bf-modal-close-btn {
  border: 1px solid #d8e2ef;
  background: #fff;
  color: #506784;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.bf-type-manager-modal-body {
  padding: 14px 22px 12px;
  overflow-y: auto;
}

.bf-type-manager-create-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  position: sticky;
  top: 0;
  background: #fff;
  padding-bottom: 10px;
  z-index: 1;
}

.bf-type-manager-create-row .bf-primary-btn {
  min-height: 46px;
  padding: 0 18px;
}

.bf-type-manager-modal-foot {
  border-top: 1px solid #e7edf6;
  padding: 12px 22px 18px;
  background: #fff;
}

.bf-points-adjust-modal-card {
  max-width: 560px;
  width: min(560px, 92vw);
  padding: 0;
  overflow: hidden;
}

.bf-points-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.bf-points-summary > div {
  background: #f7faff;
  border: 1px solid #dbe7f3;
  border-radius: 10px;
  padding: 10px 12px;
}

.bf-points-summary span {
  color: #6a7f9a;
  display: block;
  font-size: 12px;
  font-weight: 700;
}

.bf-points-summary strong {
  color: #10233f;
  display: block;
  font-size: 18px;
  font-weight: 850;
  margin-top: 4px;
}

.bf-checkbox-group {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.bf-checkbox-group label {
  border: 1px solid #dce5f1;
  border-radius: 10px;
  min-height: 40px;
  padding: 0 10px;
  background: #f9fbff;
  font-weight: 650;
}

.bf-checkbox-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.bf-home-settings-grid.is-disabled {
  opacity: .68;
}

.bf-home-settings-grid.is-disabled .form-control,
.bf-home-settings-grid.is-disabled .bf-checkbox-group label {
  background: #f2f5fa;
}

.bf-modal-card h4 {
  color: #1b2a44;
  font-size: 22px;
  font-weight: 850;
  margin-bottom: 8px;
}

.bf-modal-card p {
  color: #4f6282;
  line-height: 1.75;
  margin-bottom: 16px;
}

.bf-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.bf-auth-section {
  min-height: calc(100vh - 220px);
  padding: 56px 0;
}

.bf-auth-wrap {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bf-auth-panel {
  background: #fff;
  border: 1px solid #e4eaf2;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(12, 31, 63, .08);
  padding: 24px;
}

.bf-auth-panel h3 {
  color: #17233c;
  font-size: 24px;
  font-weight: 850;
  margin-bottom: 8px;
}

.bf-auth-panel p {
  color: #6f7d91;
  margin-bottom: 16px;
}

.bf-auth-form {
  display: grid;
  gap: 12px;
}

.bf-auth-form label {
  color: #30415f;
  display: grid;
  font-size: 13px;
  font-weight: 800;
  gap: 6px;
}

.bf-auth-form .form-control {
  min-height: 44px;
}

.pricing_boxes.featured:before {
  content: "推荐方案" !important;
}

.bf-upload-card h4,
.urip_widget_header h4,
.sec-heading h2 {
  letter-spacing: 0;
}

@media (max-width: 767.98px) {
  .bf-nav-container {
    padding: 10px 14px 0;
  }

  .bf-user-manage-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bf-user-manage-row-bottom {
    grid-template-columns: 1fr;
  }

  .bf-user-save-card-btn {
    width: 100%;
  }

  .bf-home-nav {
    min-height: 64px;
    padding: 0 14px;
  }

  .bf-home-nav .nav-header {
    margin-right: 0;
  }

  .bf-home-nav .nav-brand {
    color: #fff !important;
  }

  .bf-home-nav .nav-menus-wrapper {
    background: rgba(5, 20, 40, .96);
  }

  .bf-home-nav .nav-menu {
    align-items: stretch;
    display: block;
    gap: 0;
  }

  .bf-home-nav .nav-menu > li > a {
    color: rgba(255,255,255,.86) !important;
    padding: 14px 20px;
  }

  .bf-home-nav-actions {
    align-items: stretch;
    display: grid;
    gap: 10px;
    margin: 14px 20px 20px;
  }

  .bf-nav-search,
  .bf-nav-login,
  .bf-nav-join {
    width: 100%;
  }

  .bf-home-hero {
    min-height: auto;
    padding: 112px 0 54px;
  }

  .bf-home-hero h1 {
    font-size: 34px;
    line-height: 1.15;
  }

  .bf-home-hero .lead {
    font-size: 16px !important;
  }

  .bf-home-promo-row {
    grid-template-columns: 1fr;
    max-width: 92vw;
  }

  .bf-home-promo-card {
    border-bottom: 1px solid rgba(255,255,255,.12);
    border-right: 0;
    min-height: auto;
  }

  .bf-home-promo-card:last-child {
    border-bottom: 0;
  }

  .bf-home-search {
    border-radius: 16px;
    flex-direction: column;
    height: auto;
    max-width: 92vw;
    padding: 10px;
  }

  .bf-home-search input {
    min-height: 44px;
    width: 100%;
  }

  .bf-home-search button {
    width: 100%;
  }

  .bf-home-resource-grid,
  .bf-latest-module-list {
    grid-template-columns: 1fr;
  }

  .bf-floating-user {
    bottom: 18px;
    height: 42px;
    right: 12px;
    top: auto;
    transform: none;
    width: 42px;
  }

  .bf-floating-user-trigger {
    border-radius: 999px;
    height: 42px;
    width: 42px;
  }

  .bf-floating-user-trigger span {
    display: none;
  }

  .bf-floating-user-body {
    bottom: 52px;
    max-width: calc(100vw - 32px);
    min-width: 260px;
    right: 0;
    top: auto;
    transform: translateY(14px);
  }

  .bf-floating-user.is-open .bf-floating-user-body,
  .bf-floating-user:hover .bf-floating-user-body {
    transform: translateY(0);
  }

  .hero-banner h1 {
    font-size: 32px;
    line-height: 1.2;
  }

  .bf-workspace-hero h1 {
    font-size: 30px;
  }

  .bf-login-panel,
  .bf-login-form,
  .bf-workspace-layout,
  .bf-form-grid,
  .bf-stat-grid,
  .bf-workspace-hero-grid,
  .bf-upload-grid,
  .bf-auth-wrap {
    grid-template-columns: 1fr;
  }

  .bf-login-panel {
    margin-top: -28px;
  }

  .bf-module-sidebar {
    position: static;
  }

  .bf-span-2 {
    grid-column: auto;
  }

  .bf-span-3 {
    grid-column: auto;
  }

  .bf-editor-toolbar,
  .bf-panel-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .bf-tab-actions {
    width: 100%;
  }

  .bf-tab-btn {
    flex: 1;
  }

  .bf-type-control-row,
  .bf-type-manager-create-row {
    grid-template-columns: 1fr;
  }

  .bf-type-control-row .bf-small-btn {
    width: 100%;
  }

  .bf-type-manager-modal-card {
    width: 92vw;
  }

  .bf-toast {
    bottom: 16px;
    left: 16px;
    min-width: 0;
    right: 16px;
  }

  .item_title_bmb {
    min-height: auto;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .bf-home-nav {
    padding: 0 18px;
  }

  .bf-home-nav .nav-header {
    margin-right: 24px;
  }

  .bf-home-nav .nav-menu {
    gap: 18px;
  }

  .bf-home-nav .nav-menu > li > a {
    font-size: 13px;
  }

  .bf-home-nav-actions {
    gap: 8px;
    margin-left: 18px;
  }

  .bf-nav-login,
  .bf-nav-join {
    padding: 0 12px;
  }

  .bf-home-hero h1 {
    font-size: 46px;
  }

  .bf-home-resource-grid {
    grid-template-columns: 1fr;
  }

  .bf-login-panel,
  .bf-workspace-layout,
  .bf-workspace-hero-grid {
    grid-template-columns: 1fr;
  }

  .bf-login-form,
  .bf-form-grid,
  .bf-stat-grid,
  .bf-upload-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bf-module-sidebar {
    position: static;
  }
}

/* Global dark header (all pages) */
.bf-home-page #main-wrapper {
  padding-top: 0;
}

body:not(.bf-home-page) #main-wrapper {
  padding-top: 72px;
}

.bf-site-header {
  background: transparent;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 1100;
}

.bf-site-header .container,
.bf-nav-container {
  margin: 0 auto;
  max-width: 1440px;
  padding: 0 28px;
  width: 100%;
}

.bf-site-nav {
  align-items: center;
  backdrop-filter: blur(12px);
  background: rgba(5, 20, 40, .88);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  min-height: 72px;
  padding: 0 8px;
}

.bf-site-nav .nav-header {
  flex: 0 0 auto;
  margin-right: 40px;
}

.bf-site-nav .nav-brand,
.bf-site-nav .nav-brand:hover,
.bf-site-nav .nav-brand:focus {
  color: #fff;
}

.bf-site-nav .nav-brand::before {
  background: linear-gradient(135deg, #10b981, #1363df);
}

.bf-site-nav .nav-menus-wrapper {
  align-items: center;
  display: flex;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}

.bf-site-nav .nav-menu {
  align-items: center;
  display: flex;
  gap: 40px;
  margin: 0;
}

.bf-site-nav .nav-menu > li > a {
  color: rgba(255, 255, 255, .84);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 72px;
  padding: 0;
  position: relative;
}

.bf-site-nav .nav-menu > li.active > a,
.bf-site-nav .nav-menu > li > a:hover {
  color: #69f5c7;
}

.bf-site-nav .nav-menu > li.active > a::after,
.bf-site-nav .nav-menu > li > a:hover::after {
  background: #23d89a;
  border-radius: 999px;
  bottom: 16px;
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
}

.bf-site-nav .bf-home-nav-actions {
  display: none !important;
}

.title-banner.center {
  background: linear-gradient(135deg, #0c274d, #0f4e57);
  margin-top: 0;
  padding: 72px 0 48px;
}

.bf-help-card {
  background: #fff;
  border: 1px solid rgba(19, 99, 223, .1);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(15, 35, 68, .08);
  padding: 28px;
}

.bf-help-wechat {
  background: #f4f8ff;
  border: 1px dashed rgba(19, 99, 223, .26);
  border-radius: 12px;
  color: #0f3a75;
  font-size: 20px;
  font-weight: 800;
  margin: 10px 0 18px;
  padding: 12px 16px;
  text-align: center;
}

.bf-help-actions {
  display: flex;
  gap: 10px;
}

@media (max-width: 991.98px) {
  .bf-site-header .container,
  .bf-nav-container {
    padding: 0 16px;
  }

  .bf-site-nav {
    min-height: 68px;
    padding: 0;
  }

  .bf-site-nav .nav-header {
    margin-right: 0;
  }

  .bf-site-nav .nav-menus-wrapper {
    justify-content: flex-start;
  }

  .bf-site-nav .nav-menu {
    gap: 10px;
  }

  .bf-site-nav .nav-menu > li > a {
    line-height: 46px;
    padding: 0 12px;
  }
}

/* BuildFPGA unified visual system */
html,
body {
  background: #f4f8fb;
}

.gray,
.gray-light,
.inner-bg,
section.gray-light {
  background: #f4f8fb !important;
}

.header.bf-site-header,
.header.bf-site-header.header-fixed,
.bf-site-header.header-fixed,
.bf-site-header {
  backdrop-filter: blur(12px);
  background: rgba(5, 20, 40, .88) !important;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 16px 38px rgba(0, 0, 0, .18);
  height: 72px;
}

.bf-site-header .container,
.bf-nav-container {
  height: 72px;
  max-width: 1440px;
  padding-left: 32px;
  padding-right: 32px;
}

.bf-site-nav,
.header-fixed .bf-site-nav {
  background: transparent !important;
  border: 0;
  box-shadow: none;
  height: 72px;
  min-height: 72px;
  padding: 0;
}

.bf-site-nav .nav-header {
  align-items: center;
  display: flex;
  height: 72px;
  margin-right: 48px;
}

.bf-site-nav .nav-brand {
  align-items: center;
  color: #fff !important;
  display: inline-flex;
  gap: 10px;
  height: 72px;
  line-height: 1;
}

.nav-brand::before,
.bf-site-nav .nav-brand::before {
  display: none !important;
}

.nav-brand .logo,
.bf-site-nav .nav-brand .logo {
  border-radius: 10px;
  display: block !important;
  height: 40px;
  object-fit: contain;
  width: 40px;
}

.bf-site-nav .nav-menus-wrapper {
  height: 72px;
  justify-content: flex-end;
}

.bf-site-nav .nav-menu {
  gap: 36px;
}

.bf-site-nav .nav-menu > li > a {
  color: rgba(255, 255, 255, .84) !important;
  line-height: 72px;
}

.bf-site-nav .nav-menu > li.active > a,
.bf-site-nav .nav-menu > li > a:hover {
  color: #7ef3d5 !important;
}

.bf-site-nav .nav-menu > li.active > a::after,
.bf-site-nav .nav-menu > li > a:hover::after {
  background: #12d6a0;
}

.bf-home-page #main-wrapper {
  background: #f4f8fb;
  padding-top: 0;
}

body:not(.bf-home-page) #main-wrapper {
  background: #f4f8fb;
  padding-top: 72px;
}

.bf-home-hero {
  background-position: center !important;
  background-size: cover !important;
  min-height: 720px;
}

.bf-home-hero::before {
  background:
    linear-gradient(180deg, rgba(3, 12, 27, .42), rgba(3, 12, 27, .55)),
    radial-gradient(circle at 50% 34%, rgba(18, 214, 160, .14), transparent 40%) !important;
}

.bf-home-hero .container {
  max-width: 1280px;
}

.bf-home-hero-inner {
  max-width: 1280px;
}

.bf-home-hero h1 {
  font-size: clamp(36px, 3.6vw, 52px);
  max-width: 1280px;
}

@media (min-width: 992px) {
  .bf-home-hero h1 {
    white-space: nowrap;
  }
}

.bf-home-promo-row,
.bf-home-search {
  background: rgba(5, 20, 40, .58);
  border-color: rgba(255, 255, 255, .16);
}

.title-banner,
.title-banner.center,
._agt_dash.dark,
.bf-workspace-hero {
  background:
    linear-gradient(135deg, rgba(6, 20, 38, .88), rgba(7, 54, 74, .82)),
    radial-gradient(circle at 16% 18%, rgba(18, 214, 160, .22), transparent 28%),
    radial-gradient(circle at 86% 10%, rgba(22, 119, 255, .24), transparent 26%) !important;
  color: #fff;
  overflow: hidden;
  position: relative;
}

.title-banner.center {
  padding: 72px 0 54px;
}

.title-banner::after,
._agt_dash.dark::after,
.bf-workspace-hero::after {
  background-image:
    linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px);
  background-size: 36px 36px;
  content: "";
  inset: 0;
  opacity: .18;
  pointer-events: none;
  position: absolute;
}

.title-banner .container,
._agt_dash.dark .container,
.bf-workspace-hero .container {
  max-width: 1280px;
  position: relative;
  z-index: 1;
}

.title-banner h1,
.title-banner .lead,
._agt_dash.dark h1,
.bf-workspace-hero h1,
.bf-workspace-hero p {
  color: #fff !important;
}

.title-banner .lead,
.bf-workspace-hero p {
  color: rgba(255,255,255,.84) !important;
}

.bf-workspace-hero {
  padding: 58px 0 58px;
}

.bf-kicker,
.bf-hero-card span {
  color: #7ef3d5;
}

.bf-hero-card {
  background: rgba(5, 20, 40, .42);
  border-color: rgba(255, 255, 255, .16);
}

.theme-bg,
.btn.theme-bg,
.pricing_btn,
.bf-primary-btn {
  background: linear-gradient(135deg, #12d6a0, #1677ff) !important;
  border-color: transparent !important;
}

@media (max-width: 991.98px) {
  .header.bf-site-header,
  .header.bf-site-header.header-fixed,
  .bf-site-header.header-fixed,
  .bf-site-header,
  .bf-site-header .container,
  .bf-nav-container,
  .bf-site-nav,
  .bf-site-nav .nav-header,
  .bf-site-nav .nav-brand {
    min-height: 68px;
  }

  .bf-site-header .container,
  .bf-nav-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .bf-site-nav .nav-menus-wrapper {
    background: rgba(5, 20, 40, .98) !important;
    height: auto;
  }

  .bf-site-nav .nav-menu {
    display: block;
  }

  .bf-site-nav .nav-menu > li > a {
    line-height: 46px;
  }
}

@media (max-width: 767.98px) {
  .bf-home-hero h1 {
    white-space: normal;
  }

  .nav-brand .logo,
  .bf-site-nav .nav-brand .logo {
    height: 36px;
    width: 36px;
  }
}

/* Final header + home search unification */
.bf-site-header {
  background: rgba(5, 20, 40, .15) !important;
  backdrop-filter: blur(2px);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  box-shadow: none;
  transition: background .25s ease, box-shadow .25s ease, backdrop-filter .25s ease, border-color .25s ease;
}

.header.bf-site-header.header-fixed,
.bf-site-header.header-fixed {
  background: rgba(5, 20, 40, .92) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
}

.bf-site-header .container {
  max-width: 1440px;
  padding-left: 32px;
  padding-right: 32px;
}

.bf-site-nav .nav-menu > li > a {
  color: rgba(255, 255, 255, .88) !important;
}

.bf-home-hero {
  padding: 156px 0 82px;
}

.bf-home-hero::before {
  background:
    linear-gradient(180deg, rgba(3, 12, 27, .38), rgba(3, 12, 27, .52)),
    radial-gradient(circle at 50% 34%, rgba(18, 214, 160, .14), transparent 40%) !important;
}

.bf-home-search {
  width: min(800px, 90vw);
  height: 62px;
  display: flex;
  margin: 0 auto;
  border-radius: 999px;
  overflow: hidden;
  background: #fff !important;
  border: 0;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
  gap: 0;
  padding: 0;
}

.bf-home-search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: #fff;
  color: #10233f;
  font-size: 16px;
  height: 100%;
  min-width: 0;
  padding: 0 28px;
}

.bf-home-search input::placeholder {
  color: #7f8ea5;
}

.bf-home-search button {
  width: 150px;
  height: 100%;
  border: 0;
  border-radius: 0;
  color: #fff;
  font-weight: 700;
  justify-content: center;
  background: linear-gradient(135deg, #1677ff, #00c896) !important;
}

.bf-home-search button span {
  white-space: nowrap;
}

@media (max-width: 991.98px) {
  .bf-site-header .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .bf-home-search {
    width: 90%;
    height: 58px;
  }

  .bf-home-search input {
    padding: 0 18px;
  }

  .bf-home-search button {
    width: 136px;
  }
}

/* Header layer fix: full-width outer shell + transparent inner */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  transition: background .25s ease, box-shadow .25s ease, backdrop-filter .25s ease, border-color .25s ease;
}

.site-header.is-top {
  background: rgba(5, 20, 40, .15) !important;
  backdrop-filter: blur(2px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  box-shadow: none;
}

.site-header.is-scrolled {
  background: rgba(5, 20, 40, .92) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .22);
}

.site-header .header-inner {
  max-width: 1440px;
  height: 72px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent !important;
}

.site-header .container,
.site-header .bf-nav-container,
.site-header .header-inner,
.site-header .bf-site-nav,
.site-header .nav-menus-wrapper,
.site-header .nav-header {
  background: transparent !important;
}

.site-header .bf-site-nav {
  width: 100%;
  height: 72px;
  min-height: 72px;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.site-header .bf-site-nav .nav-menu {
  gap: 36px;
}

.site-header .bf-site-nav .nav-menu > li > a {
  line-height: 72px;
}

@media (max-width: 991.98px) {
  .site-header .header-inner {
    height: 68px;
    padding: 0 16px;
  }

  .site-header .bf-site-nav {
    height: 68px;
    min-height: 68px;
  }

  .site-header .bf-site-nav .nav-menus-wrapper {
    background: rgba(5, 20, 40, .98) !important;
  }
}

/* Unified non-home page hero */
.bf-page-with-hero #main-wrapper {
  padding-top: 0 !important;
}

.page-hero {
  min-height: 260px;
  padding-top: 96px;
  padding-bottom: 56px;
  background:
    linear-gradient(135deg, rgba(5, 20, 40, .92), rgba(7, 70, 85, .86)),
    url("../img/背景图.png");
  background-size: cover;
  background-position: center;
  color: #fff;
  position: relative;
}

.page-hero::after {
  background-image:
    linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px);
  background-size: 36px 36px;
  content: "";
  inset: 0;
  opacity: .16;
  pointer-events: none;
  position: absolute;
}

.page-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: #fff;
  font-size: 40px;
  font-weight: 800;
  margin: 0 0 12px;
}

.page-hero p {
  color: rgba(255,255,255,.86);
  font-size: 18px;
  margin: 0;
}

@media (max-width: 991.98px) {
  .page-hero {
    min-height: 230px;
    padding-top: 88px;
    padding-bottom: 44px;
  }

  .page-hero-inner {
    padding: 0 16px;
  }

  .page-hero h1 {
    font-size: 32px;
  }

  .page-hero p {
    font-size: 16px;
  }
}

.bf-profile-card {
  background: #fff;
  border: 1px solid rgba(16, 35, 63, .08);
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(12, 28, 50, .1);
  margin: 0 auto;
  max-width: 980px;
  padding: 28px;
}

.bf-profile-card h3 {
  margin: 0 0 16px;
}

.bf-profile-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bf-profile-grid div {
  background: #f4f8fb;
  border: 1px solid rgba(16, 35, 63, .08);
  border-radius: 10px;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
}

.bf-profile-grid span {
  color: #627389;
  font-size: 12px;
  font-weight: 700;
}

.bf-profile-grid strong {
  color: #10233f;
  font-size: 15px;
}

.bf-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.bf-account-panel {
  background: #fff;
  border: 1px solid rgba(16, 35, 63, .08);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 35, 60, .08);
  margin: 24px auto 0;
  max-width: 980px;
  padding: 26px;
}

.bf-account-panel-head {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.bf-account-panel-head span {
  color: #00a884;
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  margin-bottom: 4px;
}

.bf-account-panel-head h3 {
  color: #10233f;
  font-size: 22px;
  font-weight: 900;
  margin: 0;
}

.bf-order-status-filter {
  max-width: 180px;
}

.bf-account-loading,
.bf-account-empty {
  background: #f4f8fb;
  border: 1px solid rgba(16, 35, 63, .08);
  border-radius: 14px;
  color: #6b7a90;
  padding: 22px;
  text-align: center;
}

.bf-account-empty strong {
  color: #10233f;
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
}

.bf-account-empty p {
  margin: 0 0 16px;
}

.bf-account-resource-list {
  display: grid;
  gap: 14px;
}

.bf-account-resource {
  align-items: center;
  background: #f8fbfe;
  border: 1px solid rgba(16, 35, 63, .08);
  border-radius: 14px;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 18px;
}

.bf-account-resource strong {
  color: #10233f;
  display: block;
  font-size: 17px;
  font-weight: 900;
  margin-bottom: 6px;
}

.bf-account-resource p {
  color: #52637a;
  margin: 0 0 4px;
}

.bf-account-resource span {
  color: #7b8899;
  font-size: 13px;
}

.bf-account-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.bf-account-table-wrap {
  overflow-x: auto;
}

.bf-account-table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 900px;
  width: 100%;
}

.bf-account-table th,
.bf-account-table td {
  border-bottom: 1px solid #e6edf5;
  color: #52637a;
  font-size: 13px;
  padding: 13px 12px;
  text-align: left;
  vertical-align: middle;
}

.bf-account-table th {
  background: #f4f8fb;
  color: #10233f;
  font-weight: 900;
}

.bf-account-table th:first-child {
  border-top-left-radius: 12px;
}

.bf-account-table th:last-child {
  border-top-right-radius: 12px;
}

.bf-account-table code {
  background: #eef6fb;
  border-radius: 7px;
  color: #10233f;
  font-size: 12px;
  padding: 3px 6px;
}

.bf-account-table a {
  color: #1677ff;
  font-weight: 800;
}

.bf-quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bf-quick-nav .bf-primary-btn,
.bf-quick-nav .bf-ghost-btn {
  min-height: 38px;
  padding: 0 14px;
}

.bf-account-layout {
  display: block;
}

.bf-account-main {
  margin: 0 auto;
  max-width: 1120px;
  min-width: 0;
}

.bf-side-quick-nav {
  display: none;
}

.bf-side-quick-nav-card {
  background: #fff;
  border: 1px solid #dce7f4;
  border-radius: 16px;
  box-shadow: 0 12px 26px rgba(9, 33, 66, .08);
  padding: 12px;
}

.bf-inline-quick-nav-card {
  background: #fff;
  border: 1px solid #dce7f4;
  border-radius: 16px;
  box-shadow: 0 12px 26px rgba(9, 33, 66, .06);
  margin-bottom: 14px;
  padding: 10px 12px;
}

.bf-side-quick-nav-title {
  color: #10233f;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 10px;
}

.bf-side-quick-nav .bf-quick-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bf-inline-quick-nav-card .bf-quick-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.bf-side-quick-nav .bf-quick-nav .bf-primary-btn,
.bf-side-quick-nav .bf-quick-nav .bf-ghost-btn {
  justify-content: flex-start;
  min-height: 36px;
  width: 100%;
}

.bf-inline-quick-nav-card .bf-quick-nav .bf-primary-btn,
.bf-inline-quick-nav-card .bf-quick-nav .bf-ghost-btn {
  justify-content: center;
  min-height: 36px;
  min-width: 116px;
  white-space: nowrap;
  width: auto;
}

.bf-side-quick-nav .bf-quick-nav .is-active {
  background: linear-gradient(135deg, #1677ff, #00c896) !important;
  border-color: transparent !important;
  color: #fff !important;
}

.bf-inline-quick-nav-card .bf-quick-nav .is-active {
  background: linear-gradient(135deg, #1677ff, #00c896) !important;
  border-color: transparent !important;
  color: #fff !important;
}

.bf-scroll-section {
  scroll-margin-top: 96px;
}

.bf-link-btn {
  background: transparent;
  border: 0;
  color: #1677ff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  padding: 0;
}

.bf-order-status {
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 8px;
}

.bf-order-status.paid {
  background: rgba(18, 214, 160, .14);
  color: #008f70;
}

.bf-order-status.pending {
  background: rgba(255, 143, 31, .14);
  color: #b35b00;
}

.bf-order-status.closed,
.bf-order-status.failed {
  background: rgba(255, 80, 80, .12);
  color: #c43131;
}

.bf-admin-order-filters {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.bf-admin-order-filters label {
  margin: 0;
}

.bf-admin-order-filters label span {
  color: #667b97;
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
}

.bf-admin-order-search-row {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) 120px;
  margin-bottom: 12px;
}

.bf-admin-order-search-field {
  margin: 0;
}

.bf-admin-order-search-field span {
  color: #667b97;
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
}

.bf-admin-order-search-field .form-control {
  background: #f8fbff;
  border: 1px solid #cddff2;
  height: 46px;
}

.bf-admin-order-search-field .form-control:focus {
  border-color: #16c7a1;
  box-shadow: 0 0 0 3px rgba(22, 199, 161, .12);
}

.bf-admin-order-section {
  border-top: 1px solid #e7eef8;
  margin-top: 16px;
  padding-top: 16px;
}

.bf-admin-order-filters .form-control {
  height: 42px;
}

.bf-admin-order-subtitle {
  color: #6b7a90;
  margin: 6px 0 0;
}

.bf-admin-order-stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bf-admin-order-stats div {
  background: linear-gradient(180deg, #f8fbff 0%, #f1f7ff 100%);
  border: 1px solid rgba(16, 35, 63, .1);
  border-radius: 14px;
  min-height: 86px;
  padding: 12px 14px;
}

.bf-admin-order-stats span {
  color: #6b7a90;
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 4px;
}

.bf-admin-order-stats strong {
  color: #10233f;
  display: block;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0;
}

.bf-order-actions {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 112px;
}

.bf-admin-order-foot {
  align-items: center;
  color: #6b7a90;
  display: flex;
  font-size: 13px;
  justify-content: space-between;
  margin-top: 12px;
}

.bf-admin-order-pagination {
  display: flex;
  gap: 8px;
}

.bf-admin-order-pagination .bf-ghost-btn[disabled] {
  cursor: not-allowed;
  opacity: .5;
}

.bf-admin-order-table .bf-cell-main {
  color: #10233f;
  font-weight: 800;
  line-height: 1.45;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bf-admin-order-table .bf-cell-sub {
  color: #6b7a90;
  font-size: 12px;
  line-height: 1.5;
  margin-top: 4px;
}

.bf-admin-order-table td {
  vertical-align: top;
}

.bf-admin-order-table tbody tr {
  border-bottom: 1px solid #edf2f9;
}

.bf-admin-order-table tbody tr:hover {
  background: #f9fcff;
}

.bf-order-no-pill {
  background: #ecf4ff;
  border-radius: 999px;
  color: #0f3b71;
  display: inline-block;
  font-size: 12px;
  font-weight: 900;
  padding: 4px 10px;
}

.bf-order-amount-main {
  color: #0f3b71;
  font-size: 18px;
  font-weight: 900;
}

.bf-order-type-tag {
  border-radius: 999px;
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  margin-right: 6px;
  margin-bottom: 4px;
  padding: 2px 8px;
}

.bf-order-type-tag.module {
  background: rgba(22, 119, 255, .12);
  color: #0f55b8;
}

.bf-order-type-tag.recharge {
  background: rgba(0, 184, 148, .14);
  color: #007f67;
}

.bf-order-type-tag.points {
  background: rgba(255, 158, 28, .14);
  color: #9e5a00;
}

.bf-order-pay-tag {
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
}

.bf-order-pay-tag.alipay {
  background: rgba(22, 119, 255, .12);
  color: #0f55b8;
}

.bf-order-pay-tag.points {
  background: rgba(0, 184, 148, .14);
  color: #007f67;
}

.bf-order-disabled {
  color: #9aa7b8;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 767.98px) {
  .bf-account-panel {
    padding: 20px;
  }

  .bf-account-panel-head,
  .bf-account-resource {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .bf-account-panel-head {
    flex-direction: column;
  }

  .bf-account-row-actions {
    justify-content: flex-start;
  }

  .bf-admin-order-filters {
    grid-template-columns: 1fr;
  }

  .bf-admin-order-search-row {
    grid-template-columns: 1fr;
  }

  .bf-admin-order-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .bf-admin-order-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .bf-admin-order-table {
    min-width: 680px;
  }

  .bf-account-main {
    max-width: 100%;
  }
}

@media (min-width: 1400px) {
  .bf-side-quick-nav {
    display: block;
    left: max(16px, calc((100vw - 1120px) / 2 - 178px));
    position: fixed;
    top: 118px;
    width: 162px;
    z-index: 50;
  }

  .bf-side-quick-nav-card {
    padding: 12px;
  }

  .bf-inline-quick-nav-card {
    display: none;
  }
}

@media (max-width: 1399.98px) {
  .bf-side-quick-nav {
    display: none !important;
  }

  .bf-inline-quick-nav-card {
    display: block;
  }
}

/* Global sticky footer layout */
html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
}

#main-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.bf-record-footer {
  margin-top: auto;
  background: #071426;
}

/* Alipay return page */
.bf-payment-result-section {
  background: #f4f8fb;
  padding: 42px 24px 78px;
}

.bf-payment-result-card {
  background: #fff;
  border: 1px solid rgba(16, 35, 63, .06);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 35, 60, .08);
  margin: 0 auto;
  max-width: 720px;
  padding: 36px;
  text-align: center;
}

.bf-payment-result-icon {
  align-items: center;
  background: linear-gradient(135deg, rgba(22, 119, 255, .12), rgba(0, 200, 150, .16));
  border: 1px solid rgba(0, 200, 150, .22);
  border-radius: 50%;
  color: #00a884;
  display: inline-flex;
  font-size: 30px;
  height: 76px;
  justify-content: center;
  margin-bottom: 18px;
  width: 76px;
}

.bf-payment-result-card[data-status="paid"] .bf-payment-result-icon {
  background: linear-gradient(135deg, #1677ff, #00c896);
  color: #fff;
}

.bf-payment-result-card[data-status="failed"] .bf-payment-result-icon {
  background: rgba(255, 80, 80, .12);
  border-color: rgba(255, 80, 80, .2);
  color: #e54848;
}

.bf-payment-result-kicker {
  color: #00a884;
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  margin-bottom: 8px;
}

.bf-payment-result-card h2 {
  color: #10233f;
  font-size: 30px;
  font-weight: 900;
  margin: 0 0 12px;
}

.bf-payment-result-card > p {
  color: #6b7a90;
  font-size: 15px;
  line-height: 1.75;
  margin: 0 auto 22px;
  max-width: 560px;
}

.bf-payment-order-info {
  background: #f4f8fb;
  border: 1px solid rgba(16, 35, 63, .08);
  border-radius: 16px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 24px 0;
  padding: 16px;
  text-align: left;
}

.bf-payment-order-info div {
  min-width: 0;
}

.bf-payment-order-info span {
  color: #6b7a90;
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
}

.bf-payment-order-info strong {
  color: #10233f;
  display: block;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.bf-payment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

.bf-payment-help {
  color: #8a97a8 !important;
  font-size: 13px !important;
  margin-top: 20px !important;
}

@media (max-width: 767.98px) {
  .bf-payment-result-section {
    padding: 30px 16px 62px;
  }

  .bf-payment-result-card {
    padding: 28px 20px;
  }

  .bf-payment-order-info {
    grid-template-columns: 1fr;
  }

  .bf-payment-actions a,
  .bf-payment-actions button {
    justify-content: center;
    width: 100%;
  }
}

/* Resource library redesign */
.bf-resource-library-section {
  background: #f4f8fb;
  padding: 34px 0 72px;
}

.bf-resource-library {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
}

.bf-resource-filters {
  background: #fff;
  border: 1px solid rgba(16, 35, 63, .08);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 35, 60, .08);
  padding: 24px;
  align-self: start;
  position: sticky;
  top: 92px;
}

.bf-resource-filters h3 {
  margin: 0 0 16px;
  color: #10233f;
  font-size: 20px;
  font-weight: 850;
}

.bf-filter-block + .bf-filter-block {
  margin-top: 18px;
}

.bf-filter-block label,
.bf-filter-block p {
  margin: 0 0 10px;
  color: #203555;
  font-size: 14px;
  font-weight: 850;
}

.bf-filter-block input,
.bf-filter-block select {
  width: 100%;
  height: 44px;
  border-radius: 10px;
  border: 1px solid #d6e0ed;
  padding: 0 14px;
  color: #10233f;
  background: #fbfdff;
}

.bf-search-box {
  position: relative;
}

.bf-search-box i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #5b79a1;
  pointer-events: none;
}

.bf-search-box input {
  height: 46px;
  padding-left: 40px;
  border: 1px solid #cfe0f2;
  border-radius: 12px;
  background: #f8fbff;
}

.bf-search-box input:focus {
  border-color: #16c7a1;
  box-shadow: 0 0 0 3px rgba(22, 199, 161, .12);
  outline: none;
}

.bf-filter-block:first-of-type {
  margin-bottom: 10px;
}

.bf-filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bf-filter-options button {
  border: 1px solid #d8e3f0;
  background: #f8fbff;
  color: #355073;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 750;
  transition: .2s ease;
}

.bf-filter-options button:hover {
  border-color: #93c3ff;
  background: #f0f7ff;
}

.bf-filter-options button.active {
  border-color: #12d6a0;
  color: #0a7d60;
  background: rgba(18, 214, 160, .12);
}

.bf-resource-content {
  min-width: 0;
}

.bf-resource-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 16px;
  gap: 14px;
}

.bf-resource-toolbar h2 {
  margin: 0 0 3px;
  color: #10233f;
  font-size: 28px;
  font-weight: 850;
}

.bf-resource-toolbar p {
  margin: 0;
  color: #6b7a90;
  font-size: 14px;
}

.bf-toolbar-sort {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bf-toolbar-sort label {
  margin: 0;
  color: #415977;
  font-size: 14px;
  font-weight: 700;
}

.bf-toolbar-sort select {
  border: 1px solid #d6e0ed;
  border-radius: 10px;
  height: 42px;
  padding: 0 12px;
  background: #fff;
  color: #163252;
}

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

.bf-quick-stat {
  background: #fff;
  border: 1px solid rgba(16, 35, 63, .08);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(10, 35, 75, .06);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bf-quick-stat span {
  display: block;
  color: #6b7a90;
  font-size: 12px;
  font-weight: 700;
}

.bf-quick-stat strong {
  display: block;
  margin-top: 6px;
  color: #10233f;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.bf-quick-stat i {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(22, 119, 255, .12);
  color: #2f6bff;
  font-size: 17px;
  flex-shrink: 0;
}

.bf-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.bf-resource-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(16, 35, 63, .06);
  box-shadow: 0 10px 30px rgba(15, 35, 60, .08);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: unset;
  max-height: none;
}

.bf-resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(15, 35, 60, .12);
}

.bf-resource-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  height: auto;
  overflow: hidden;
  background: #eef5ff;
  margin: 0;
  border-radius: 16px 16px 0 0;
}

.bf-resource-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bf-resource-fallback-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  background:
    linear-gradient(140deg, rgba(5, 20, 40, .88), rgba(7, 70, 85, .75)),
    radial-gradient(circle at 18% 20%, rgba(18, 214, 160, .28), transparent 34%);
}

.bf-resource-fallback-thumb strong {
  color: #fff;
  font-size: 18px;
  line-height: 1.3;
}

.bf-resource-fallback-thumb span {
  color: rgba(255,255,255,.82);
  font-size: 13px;
  margin-top: 4px;
}

.bf-resource-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  max-width: 100%;
  margin: 0 0 10px;
  padding: 0;
}

.resource-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 0;
  min-height: 24px;
  margin: 0 0 10px;
}

.bf-badge {
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 26px;
  white-space: nowrap;
}

.bf-badge.free {
  background: rgba(18, 214, 160, .95);
  color: #fff;
}

.bf-badge.paid {
  background: rgba(255, 120, 72, .95);
  color: #fff;
}

.bf-badge.vip {
  background: rgba(22, 119, 255, .95);
  color: #fff;
}

.bf-badge.login {
  background: rgba(62, 121, 255, .95);
  color: #fff;
}

.bf-badge.hot {
  background: rgba(255, 80, 80, .95);
  color: #fff;
}

.bf-badge.new {
  background: rgba(18, 214, 160, .95);
  color: #fff;
}

.bf-badge.recommend,
.bf-badge.featured,
.bf-badge.official {
  background: rgba(22, 119, 255, .95);
  color: #fff;
}

.bf-badge.type {
  background: #eef4ff;
  border: 1px solid #d6e6ff;
  color: #214368;
}

.bf-resource-card-body {
  padding: 14px 18px 14px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.bf-resource-card-body .resource-card-title {
  margin: 0 0 6px;
  font-size: 19px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bf-resource-card-body .resource-card-desc {
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.55;
  font-size: 14px;
  color: #5f6f86;
}

.bf-resource-card-body h3:not(.resource-card-title) {
  margin: 0;
  font-size: 20px;
  font-weight: 850;
  line-height: 1.35;
}

.bf-resource-card-body h3:not(.resource-card-title) a {
  color: #10233f;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 54px;
}

.bf-resource-card-body p:not(.resource-card-desc) {
  color: #6b7a90;
  font-size: 14px;
  line-height: 1.65;
  margin: 10px 0 12px;
  min-height: 70px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bf-resource-meta {
  display: grid;
  gap: 5px;
  margin-bottom: 6px;
  min-height: auto;
  max-height: none;
  margin-top: 10px;
  padding-left: 8px;
  line-height: 1.65;
  font-size: 13px;
  overflow: visible;
  padding-bottom: 6px;
}

.resource-card-meta > div {
  color: #5f6f8f;
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: visible;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.4;
}

.resource-card-meta-row > span {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
  white-space: nowrap;
}

.meta-icon {
  width: 14px;
  height: 14px;
  color: currentColor;
  flex: 0 0 14px;
  font-size: 13px;
  line-height: 14px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: .95;
  overflow: visible;
}

.meta-icon-type,
.meta-icon-download {
  color: currentColor;
}

.resource-card-meta .resource-card-meta-row,
.resource-card-meta > div {
  margin: 0;
}

.resource-card-meta .resource-card-meta-row + .resource-card-meta-row,
.resource-card-meta > div + .resource-card-meta-line {
  margin-top: 2px;
}

.bf-resource-actions {
  border-top: 1px solid #e7eef7;
  margin-top: 0;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: nowrap;
  min-height: 44px;
}

.bf-resource-price {
  color: #10233f;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  flex-shrink: 0;
  white-space: nowrap;
}

.bf-resource-price.paid { color: #d04d2d; }
.bf-resource-price.vip { color: #1363df; font-size: 20px; }
.bf-resource-price.free { color: #0a916f; font-size: 20px; }

.bf-resource-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  flex-shrink: 0;
}

.resource-card-footer {
  margin-top: 6px;
  padding-top: 10px;
  min-height: 42px;
}

.bf-btn-primary,
.bf-btn-secondary {
  height: 32px;
  border-radius: 999px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
}

.bf-btn-primary {
  background: linear-gradient(135deg, #1677ff, #00c896);
  color: #fff;
}

.bf-btn-secondary {
  border: 1px solid #d5e1ef;
  color: #27486f;
  background: #fff;
}

.bf-resource-empty {
  background: #fff;
  border: 1px solid #dce5f1;
  border-radius: 14px;
  color: #4c607f;
  padding: 28px;
  text-align: center;
  font-size: 15px;
}

.bf-resource-pagination {
  margin-top: 22px;
  display: flex;
  gap: 8px;
  justify-content: center;
}

.bf-resource-pagination button {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid #d5e2f0;
  background: #fff;
  color: #2c466b;
  font-size: 14px;
  font-weight: 700;
}

.bf-resource-pagination button.active {
  border-color: #12d6a0;
  background: rgba(18, 214, 160, .14);
  color: #08745f;
}

.bf-home-promo-editor {
  background: #f8fbff;
  border: 1px solid #dce6f2;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}

.bf-home-promo-editor h5 {
  margin: 0 0 12px;
  font-size: 16px;
  color: #163252;
  font-weight: 800;
}

.bf-markdown-input {
  min-height: 380px;
  resize: vertical;
  font-family: "Consolas", "SFMono-Regular", "Courier New", monospace;
}

.bf-markdown-preview-wrap {
  background: #f8fbff;
  border: 1px solid #dce6f2;
  border-radius: 12px;
  padding: 12px;
}

.bf-section-card {
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  border: 1px solid rgba(16, 35, 63, 0.06);
  box-shadow: 0 10px 30px rgba(15, 35, 60, 0.06);
  margin-bottom: 24px;
}

.bf-markdown-note {
  color: #61748d;
  margin: -6px 0 14px;
}

.bf-markdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.bf-file-inline {
  display: grid;
  gap: 7px;
}

.bf-file-inline input[type="file"] {
  background: #f8fafd;
  border: 1px solid #dce4ef;
  border-radius: 7px;
  min-height: 46px;
  padding: 10px 12px;
}

.bf-field-note {
  display: block;
  margin-top: 6px;
  color: #6d7e95;
  font-size: 12px;
  line-height: 1.5;
}

.bf-preview-gallery-editor {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.bf-traffic-subtitle {
  color: #63748d;
  margin: -6px 0 16px;
}

.bf-traffic-state {
  background: #f7faff;
  border: 1px solid #dfe8f4;
  border-radius: 8px;
  color: #60718a;
  padding: 12px 14px;
}

.bf-traffic-state[data-tone="error"] {
  background: #fff7f7;
  border-color: #f0c9c9;
  color: #9a3838;
}

.bf-traffic-content {
  display: grid;
  gap: 16px;
}

.bf-traffic-summary {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bf-traffic-metric {
  background: #f8fbff;
  border: 1px solid #e0e8f3;
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 15px;
}

.bf-traffic-metric span,
.bf-traffic-metric small {
  color: #697a92;
  font-size: 12px;
  font-weight: 750;
}

.bf-traffic-metric strong {
  color: #152844;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.1;
}

.bf-traffic-table-card {
  background: #fff;
  border: 1px solid #dfe8f4;
  border-radius: 8px;
  padding: 14px;
}

.bf-traffic-table-head {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.bf-traffic-table-head strong {
  color: #1b2f4e;
  font-size: 15px;
  font-weight: 850;
}

.bf-traffic-table-head p {
  color: #6a7b93;
  font-size: 12px;
  margin: 4px 0 0;
}

.bf-traffic-days-filter {
  align-items: center;
  color: #5d6f87;
  display: inline-flex;
  font-size: 12px;
  font-weight: 750;
  gap: 7px;
  margin: 0;
  white-space: nowrap;
}

.bf-traffic-days-filter .form-control {
  min-height: 38px;
  width: 96px;
}

.bf-traffic-table-wrap {
  overflow-x: auto;
  width: 100%;
}

.bf-traffic-table {
  border-collapse: collapse;
  min-width: 640px;
  width: 100%;
}

.bf-traffic-table th {
  background: #eef3fb;
  border-bottom: 1px solid #dbe5f2;
  color: #2e425e;
  font-size: 12px;
  font-weight: 800;
  padding: 10px 12px;
}

.bf-traffic-table td {
  border-bottom: 1px solid #ebf0f7;
  color: #263a57;
  font-size: 13px;
  padding: 10px 12px;
}

.bf-traffic-table td.is-number,
.bf-traffic-table th:nth-child(n+2) {
  text-align: center;
}

.bf-traffic-rate-tag {
  background: #eef8f1;
  border: 1px solid #cde7d5;
  border-radius: 999px;
  color: #1c7e43;
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  min-width: 60px;
  padding: 3px 8px;
}

.bf-traffic-table-empty {
  color: #6b7c93;
  text-align: center;
}

.bf-traffic-conversion-tip {
  background: #f7faff;
  border: 1px solid #dfe8f4;
  border-radius: 8px;
  color: #5f7088;
  font-size: 12px;
  line-height: 1.65;
  margin-top: 10px;
  padding: 10px 12px;
}

.bf-traffic-chart-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.bf-traffic-chart-head strong {
  color: #1b2f4e;
  font-size: 15px;
  font-weight: 850;
}

.bf-traffic-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.bf-traffic-legend span {
  align-items: center;
  color: #5d6e86;
  display: inline-flex;
  font-size: 12px;
  font-weight: 750;
  gap: 6px;
}

.bf-traffic-legend i {
  border-radius: 50%;
  display: inline-block;
  height: 9px;
  width: 9px;
}

.bf-traffic-legend i.is-view {
  background: #2563eb;
}

.bf-traffic-legend i.is-download {
  background: #16a34a;
}

.bf-traffic-legend i.is-paid {
  background: #f97316;
}

.bf-traffic-chart-wrap {
  background: #fff;
  border: 1px solid #e1e9f4;
  border-radius: 8px;
  min-height: 260px;
  overflow: hidden;
  position: relative;
}

.bf-traffic-chart {
  display: block;
  height: auto;
  width: 100%;
}

.bf-traffic-grid line {
  stroke: #e8eef6;
  stroke-width: 1;
}

.bf-traffic-grid text,
.bf-traffic-axis text {
  fill: #76869b;
  font-size: 11px;
}

.bf-traffic-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.bf-traffic-line.is-view,
.bf-traffic-hover circle.is-view {
  stroke: #2563eb;
}

.bf-traffic-line.is-download,
.bf-traffic-hover circle.is-download {
  stroke: #16a34a;
}

.bf-traffic-line.is-paid,
.bf-traffic-hover circle.is-paid {
  stroke: #f97316;
}

.bf-traffic-hover circle {
  fill: #fff;
  opacity: .92;
  stroke-width: 2;
}

.bf-traffic-tooltip {
  background: rgba(20, 39, 70, .94);
  border-radius: 7px;
  color: #fff;
  font-size: 12px;
  line-height: 1.6;
  min-width: 112px;
  padding: 8px 10px;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.bf-traffic-empty {
  background: #f7faff;
  border: 1px dashed #ccd8e8;
  border-radius: 8px;
  color: #65758b;
  padding: 12px 14px;
  text-align: center;
}

.bf-traffic-note {
  background: #f5fbf8;
  border-left: 4px solid #16a34a;
  border-radius: 7px;
  color: #53657d;
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
  padding: 11px 13px;
}

.bf-preview-gallery-empty {
  grid-column: 1 / -1;
  border: 1px dashed #d6e3f2;
  border-radius: 10px;
  padding: 10px 12px;
  color: #6e7f94;
  font-size: 12px;
}

.bf-preview-gallery-item {
  border: 1px solid #d9e6f5;
  border-radius: 10px;
  background: #f8fbff;
  padding: 6px;
  position: relative;
}

.bf-preview-gallery-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.bf-preview-gallery-item.is-local {
  border-style: dashed;
}

.bf-preview-gallery-item .bf-preview-item-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 0;
  background: rgba(13, 30, 53, .74);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
}

.bf-preview-gallery-item .bf-preview-item-label {
  margin-top: 6px;
  color: #4c607b;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bf-external-download-fields[hidden] {
  display: none !important;
}

.bf-markdown-preview-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.bf-markdown-preview-head span {
  color: #183150;
  font-size: 13px;
  font-weight: 800;
}

.bf-markdown-preview {
  max-height: 360px;
  overflow: auto;
  background: #fff;
  border: 1px solid #e3ecf7;
  border-radius: 10px;
  padding: 14px;
}

.module-markdown {
  background: #fff;
  border-radius: 18px;
  padding: 8px 0 0;
  color: #10233f;
  line-height: 1.8;
}

.module-markdown h2 {
  margin-top: 22px;
  margin-bottom: 10px;
  font-size: 24px;
  color: #081f3d;
  border-bottom: 1px solid #e4edf5;
  padding-bottom: 8px;
}

.module-markdown h3 {
  margin-top: 18px;
  margin-bottom: 8px;
  font-size: 20px;
  color: #0d2a50;
}

.module-markdown p,
.module-markdown li {
  color: #52637a;
}

.module-markdown ul,
.module-markdown ol {
  padding-left: 24px;
}

.module-markdown code {
  background: #eef6fb;
  padding: 2px 6px;
  border-radius: 6px;
  color: #0a2953;
}

.module-markdown pre {
  background: #071426;
  color: #d8f7ff;
  padding: 18px;
  border-radius: 12px;
  overflow-x: auto;
}

.module-markdown pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.module-markdown a {
  color: #00a884;
}

/* Module detail redesign */
.bf-module-detail-section {
  background: #f4f8fb;
  padding: 40px 0 72px;
}

.bf-module-detail-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
}

.bf-module-main {
  display: grid;
  gap: 18px;
}

.bf-module-card,
.bf-module-side-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 35, 60, 0.08);
  border: 1px solid rgba(16, 35, 63, 0.06);
  padding: 22px;
}

.resource-buy-card {
  padding: 24px;
}

.bf-module-card h2 {
  color: #10233f;
  font-size: 30px;
  margin: 0 0 8px;
}

.bf-module-summary {
  color: #5f7088;
  line-height: 1.75;
  margin: 0 0 14px;
}

.bf-module-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 14px;
}

.bf-module-meta-grid span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #304868;
  font-size: 14px;
  background: #f7faff;
  border: 1px solid #e4edf7;
  border-radius: 10px;
  padding: 8px 10px;
}

.bf-module-meta-grid span i {
  color: #2f6bff;
  font-size: 13px;
  width: 14px;
  text-align: center;
  flex: 0 0 14px;
}

.bf-module-preview {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0d2749;
}

.bf-module-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.module-preview-gallery {
  display: grid;
  gap: 12px;
}

.preview-main {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #061a33 0%, #0b2340 100%);
}

.preview-main-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
  background: transparent;
}

.preview-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 0;
  background: rgba(6, 26, 54, .68);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.preview-nav-prev { left: 10px; }
.preview-nav-next { right: 10px; }

.preview-zoom-btn {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 0;
  background: rgba(6, 26, 54, .68);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.preview-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.preview-thumb {
  width: 88px;
  height: 56px;
  border-radius: 10px;
  border: 2px solid transparent;
  background: #f4f8ff;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  flex: 0 0 auto;
}

.preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  display: block;
}

.preview-thumb.preview-thumb-active {
  border-color: #1677ff;
  box-shadow: 0 0 0 2px rgba(22, 119, 255, .16);
}

.preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #5e7088;
  font-size: 12px;
}

.preview-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 16, 32, .82);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.preview-lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  background: linear-gradient(135deg, #061a33 0%, #0b2340 100%);
  border-radius: 12px;
}

.preview-lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.bf-module-tip {
  border-radius: 12px;
  border: 1px solid #bdebdc;
  background: #effcf7;
  color: #0f6d55;
  font-size: 14px;
  line-height: 1.7;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.bf-module-tip-main {
  margin: 0;
}

.bf-module-tip-statement {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.8;
}

.bf-module-tip.paid {
  border-color: #ffd7c8;
  background: #fff6f1;
  color: #b34b2f;
}

.bf-module-tip.vip {
  border-color: #b9d7ff;
  background: #f2f8ff;
  color: #1f5eb4;
}

.bf-module-tip.login {
  border-color: #c7d8ff;
  background: #f3f7ff;
  color: #2954a2;
}

.bf-module-doc-section + .bf-module-doc-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #edf2f8;
}

.bf-module-doc-section h3 {
  color: #10233f;
  font-size: 20px;
  margin: 0 0 8px;
}

.bf-module-doc-section p,
.bf-module-doc-section li {
  color: #556883;
  line-height: 1.8;
  font-size: 14px;
}

.bf-module-doc-section ul {
  margin: 0;
  padding-left: 18px;
}

.bf-module-side {
  align-self: start;
  position: sticky;
  top: 92px;
}

.bf-side-status {
  display: inline-flex;
  background: rgba(18, 214, 160, .14);
  color: #0a7d60;
  border: 1px solid rgba(18, 214, 160, .32);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
}

.resource-status-badge.paid {
  background: rgba(22, 119, 255, .12);
  border-color: rgba(22, 119, 255, .28);
  color: #1654b8;
}

.resource-status-badge.unlocked,
.resource-status-badge.vip-open {
  background: rgba(0, 200, 150, .14);
  border-color: rgba(0, 200, 150, .30);
  color: #08745f;
}

.resource-status-badge.free {
  background: rgba(34, 197, 94, .14);
  border-color: rgba(34, 197, 94, .30);
  color: #0f6a41;
}

.resource-status-badge.vip {
  background: rgba(19, 99, 223, .14);
  border-color: rgba(19, 99, 223, .30);
  color: #14489d;
}

.resource-status-badge.login {
  background: rgba(109, 117, 141, .14);
  border-color: rgba(109, 117, 141, .28);
  color: #44566d;
}

.bf-module-side-card h3 {
  margin: 12px 0 8px;
  color: #10233f;
  font-size: 24px;
  line-height: 1.25;
}

.bf-module-side-card p {
  color: #61748d;
  line-height: 1.7;
  margin: 0 0 14px;
}

.resource-summary-brief {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.resource-price-panel {
  background: linear-gradient(135deg, rgba(22, 119, 255, .10), rgba(0, 200, 150, .10));
  border: 1px solid rgba(22, 119, 255, .20);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 10px 24px rgba(19, 99, 223, .08);
}

.resource-price-panel.is-clickable {
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.resource-price-panel.is-clickable:hover {
  border-color: rgba(22, 119, 255, .40);
  box-shadow: 0 14px 30px rgba(19, 99, 223, .14);
  transform: translateY(-1px);
}

.resource-price-panel.is-clickable:active {
  transform: translateY(0);
  box-shadow: 0 9px 20px rgba(19, 99, 223, .10);
}

.resource-price-panel.is-clickable:focus-visible {
  outline: none;
  border-color: #16c7a1;
  box-shadow: 0 0 0 3px rgba(22, 199, 161, .14), 0 12px 26px rgba(19, 99, 223, .12);
}

.unlock-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(8, 22, 40, .50);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.unlock-modal-card {
  width: min(800px, 92vw);
  max-height: 84vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 20px;
  padding: 14px 14px 12px;
  box-shadow: 0 20px 56px rgba(8, 22, 40, .30);
}

.unlock-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.unlock-modal-title {
  color: #10233f;
  font-size: 22px;
  line-height: 1.2;
}

.unlock-modal-subtitle {
  margin: 3px 0 0;
  color: #5e7390;
  font-size: 13px;
}

.unlock-modal-close {
  border: none;
  background: transparent;
  color: #6b7a90;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.unlock-summary {
  margin-top: 8px;
  background: #f7fbff;
  border: 1px solid #dce8f7;
  border-radius: 12px;
  padding: 9px 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.unlock-summary span {
  display: block;
  color: #6b7a90;
  font-size: 12px;
  margin-bottom: 2px;
}

.unlock-summary strong {
  color: #10233f;
  font-size: 13px;
}

.unlock-notice {
  margin-top: 8px;
  background: #f1f8ff;
  border: 1px solid #d3e6fb;
  border-radius: 12px;
  padding: 9px 10px;
  color: #315b89;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  line-height: 1.6;
  font-size: 12px;
}

.payment-options {
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
}

.payment-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #7b8ea8;
  font-size: 12px;
  font-weight: 700;
}

.payment-divider::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 1px solid #dbe7f3;
}

.payment-divider span {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid #d9e6f4;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.payment-card {
  background: #fff;
  border: 1px solid #dce8f7;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(14, 34, 58, .08);
  padding: 12px;
  display: grid;
  gap: 7px;
  grid-template-rows: auto auto auto 1fr auto;
  text-align: center;
  align-items: center;
  justify-items: center;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.payment-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(14, 34, 58, .14);
}

.payment-card-alipay {
  border-color: rgba(22, 119, 255, .28);
}

.payment-card-points {
  border-color: rgba(22, 199, 161, .26);
}

.payment-icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto;
}

.payment-icon-alipay {
  background: linear-gradient(135deg, #1f7bff, #1667e6);
  color: #fff;
  box-shadow: 0 8px 20px rgba(22, 103, 230, .30);
}

.payment-icon-alipay span {
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.payment-icon-points {
  background: linear-gradient(135deg, rgba(255, 214, 120, .42), rgba(255, 241, 198, .52));
  color: #9f6a07;
  box-shadow: 0 8px 18px rgba(225, 173, 50, .20);
}

.payment-points-svg {
  width: 27px;
  height: 27px;
}

.payment-points-svg rect {
  fill: #f1b83f;
}

.payment-points-svg path,
.payment-points-svg circle {
  stroke: #ffffff;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.payment-title {
  margin: 0;
  color: #10233f;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
}

.payment-main {
  color: #0f2d57;
  font-size: 20px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
}

.payment-price {
  font-style: normal;
  color: #1b68db;
}

.payment-desc {
  margin: 0;
  color: #55708f;
  font-size: 12px;
  line-height: 1.7;
  min-height: 40px;
  text-align: center;
}

.payment-action {
  height: 40px;
  width: 100%;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
}

.payment-action-primary {
  color: #fff;
  background: linear-gradient(135deg, #1677ff, #00c896);
}

.payment-action-secondary {
  color: #1e456e;
  background: #fff;
  border-color: #c9d9ec;
}

.unlock-safe-tip {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e6eef8;
  color: #607895;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-align: center;
}

.unlock-safe-tip i {
  color: #11a585;
}

@media (max-width: 680px) {
  .unlock-modal-card {
    width: 92vw;
    max-height: 86vh;
    border-radius: 16px;
    padding: 12px;
  }

  .unlock-summary {
    grid-template-columns: 1fr;
  }

  .payment-options {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .payment-divider {
    order: 2;
    position: relative;
    min-height: 20px;
  }

  .payment-divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    bottom: auto;
    transform: none;
    border-left: 0;
    border-top: 1px solid #e0e9f3;
  }

  .payment-divider span {
    position: relative;
    z-index: 1;
    background: #fff;
  }
}

.resource-price-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.resource-price-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(22, 119, 255, .16);
  color: #1866db;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 22px;
}

.resource-price-main-wrap {
  min-width: 0;
}

.resource-price-main {
  color: #0f2d57;
  font-size: 44px;
  line-height: 1.05;
  font-weight: 850;
  letter-spacing: 0;
}

.resource-price-desc {
  color: #1a4f8e;
  font-size: 14px;
  font-weight: 750;
  margin-top: 5px;
}

.resource-price-note {
  color: #436482;
  font-size: 13px;
  line-height: 1.6;
  margin-top: 8px;
}

.access-panel-free .resource-price-icon {
  background: rgba(22, 199, 161, .14);
  color: #0b9f80;
}

.access-panel-paid .resource-price-icon {
  background: rgba(22, 119, 255, .14);
  color: #1a63d6;
}

.access-panel-unlocked .resource-price-icon,
.access-panel-vip-open .resource-price-icon {
  background: rgba(0, 184, 148, .14);
  color: #0a8f74;
}

.access-panel-vip .resource-price-icon {
  background: rgba(255, 197, 79, .20);
  color: #ac7a12;
}

.access-panel-login .resource-price-icon {
  background: rgba(105, 117, 141, .16);
  color: #4c5d78;
}

.unlock-benefits {
  background: #f8fbff;
  border: 1px solid #e2ebf5;
  border-radius: 12px;
  padding: 13px 14px;
  margin-top: 4px;
}

.unlock-benefits h4 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
  color: #10233f;
  font-size: 14px;
  font-weight: 850;
}

.unlock-benefits h4 i {
  color: #00a884;
  font-size: 14px;
}

.unlock-benefit-list {
  display: grid;
  gap: 8px;
}

.unlock-benefit-item {
  color: #365577;
  font-size: 13px;
  line-height: 1.4;
  position: relative;
  padding-left: 18px;
}

.unlock-benefit-item::before {
  content: "✓";
  color: #00a884;
  font-weight: 850;
  position: absolute;
  left: 0;
  top: 0;
}

.resource-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 2px;
  margin-bottom: 12px;
}

.resource-meta-grid span {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  border: 1px solid #dbe7f3;
  border-radius: 11px;
  padding: 10px 12px;
  background: #f8fbff;
  min-height: 72px;
}

.resource-meta-grid b {
  color: #6b7a90;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  line-height: 1.2;
}

.resource-meta-grid b i {
  color: #2f72d8;
  font-size: 12px;
}

.resource-meta-grid em {
  color: #10233f;
  font-style: normal;
  font-size: clamp(12px, 1.4vw, 14px);
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.resource-meta-grid .meta-value {
  display: block;
}

.resource-action-stack {
  margin-top: 6px;
  margin-bottom: 8px;
}

.resource-primary-action {
  width: 100%;
  height: 54px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1677ff, #00c896);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

.resource-secondary-action {
  width: 100%;
  height: 48px;
}

.bf-side-meta {
  display: grid;
  gap: 8px;
}

.bf-side-meta span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #e7eef6;
  border-radius: 10px;
  padding: 9px 10px;
}

.bf-side-meta b {
  color: #385170;
  font-size: 13px;
}

.bf-side-meta em {
  color: #10233f;
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
}

.bf-side-actions {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.bf-side-btn {
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}

.bf-side-btn.primary {
  background: linear-gradient(135deg, #1677ff, #00c896);
  color: #fff;
}

.bf-side-btn.secondary {
  background: #fff;
  border: 1px solid #d4e1ef;
  color: #1f3e63;
}

.bf-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.bf-related-item {
  background: #f9fbff;
  border: 1px solid #e5edf7;
  border-radius: 12px;
  padding: 12px;
}

.bf-related-item strong {
  color: #10233f;
  display: block;
  font-size: 16px;
}

.bf-related-item span {
  color: #63778f;
  font-size: 12px;
}

.bf-module-hero-tags {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

#bfModuleHeroDesc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bf-module-hero-tags span {
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .28);
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
}

@media (max-width: 991.98px) {
  .bf-module-detail-layout {
    padding: 0 16px;
    grid-template-columns: 1fr;
  }

  .bf-module-side {
    position: static;
  }

  .bf-related-grid,
  .bf-module-meta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .resource-meta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .bf-resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .bf-resource-library {
    padding: 0 16px;
    grid-template-columns: 1fr;
  }

  .bf-resource-filters {
    position: static;
  }

  .bf-quick-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bf-markdown-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .bf-resource-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .bf-toolbar-sort {
    width: 100%;
  }

  .bf-toolbar-sort select {
    flex: 1;
  }

  .bf-resource-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .bf-resource-actions {
    flex-direction: row;
    align-items: center;
  }

  .preview-nav-btn {
    width: 32px;
    height: 32px;
  }

  .preview-thumb {
    width: 76px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .bf-resource-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .bf-resource-buttons {
    width: 100%;
    justify-content: stretch;
  }

  .bf-resource-buttons .bf-btn-primary,
  .bf-resource-buttons .bf-btn-secondary {
    flex: 1 1 auto;
    width: 100%;
  }
}
.bf-upload-note {
  margin-top: 10px;
  margin-bottom: 0;
  color: #5d7090;
  font-size: 13px;
  line-height: 1.6;
}

.bf-upload-progress {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(16, 119, 255, 0.14);
  background: rgba(21, 120, 255, 0.06);
}

.bf-upload-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #0d3a70;
  margin-bottom: 8px;
}

.bf-upload-progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #e8eef6;
  overflow: hidden;
}

.bf-upload-progress-track i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(135deg, #1677ff, #00c896);
  transition: width 0.2s ease;
}

.bf-upload-progress p {
  margin: 8px 0 0;
  font-size: 12px;
  color: #527194;
}

/* =========================
   Responsive hardening (site-wide)
   ========================= */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
  width: 100%;
}

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

img,
video,
canvas,
svg {
  height: auto;
  max-width: 100%;
}

#main-wrapper {
  max-width: 100%;
}

/* restore centered container rhythm (no full-bleed stretching) */
.container {
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
  width: min(100% - 32px, 1200px);
}

.bf-resource-card,
.bf-module-card,
.bf-module-side-card,
.bf-account-panel,
.bf-section-card,
.bf-user-manage-card {
  min-width: 0;
}

.bf-tab-actions,
.bf-profile-actions,
.bf-no-access-actions,
.bf-form-actions,
.bf-filter-options,
.bf-resource-actions,
.bf-admin-order-filters,
.bf-admin-order-search-row {
  flex-wrap: wrap;
}

.bf-home-hero h1 {
  font-size: clamp(30px, 5.1vw, 58px);
  line-height: 1.15;
  white-space: normal !important;
  word-break: break-word;
}

.bf-home-hero .lead {
  font-size: clamp(15px, 2.1vw, 20px) !important;
}

.bf-home-search-wrap {
  max-width: min(100%, 980px);
}

.bf-nav-container {
  padding-left: 16px;
  padding-right: 16px;
}

.bf-home-nav {
  min-width: 0;
  padding-left: 16px;
  padding-right: 16px;
}

.bf-home-nav .nav-menus-wrapper,
.bf-home-nav .nav-menu,
.bf-home-nav-actions,
.bf-resource-content,
.bf-module-main,
.bf-module-side,
.bf-editor-panel {
  min-width: 0;
}

.bf-home-nav .nav-menu {
  gap: clamp(14px, 2.2vw, 32px);
}

.bf-home-nav-actions {
  margin-left: 16px;
}

.bf-resource-library {
  margin-left: auto;
  margin-right: auto;
  max-width: 1400px;
  width: min(100% - 48px, 1400px);
}

.bf-resource-toolbar,
.bf-toolbar-sort,
.bf-resource-grid,
.bf-module-detail-layout,
.resource-meta-grid,
.bf-module-meta-grid,
.bf-workspace-layout,
.bf-workspace-hero-grid,
.bf-module-sidebar,
.bf-form-grid {
  min-width: 0;
}

.meta-value,
.resource-meta-value,
.bf-module-meta-grid span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bf-account-table-wrap,
.bf-admin-order-table-wrap {
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  overflow-x: auto;
  width: 100%;
}

.bf-account-table,
.bf-admin-order-table {
  width: 100%;
}

.unlock-modal-card {
  max-height: min(86vh, 760px);
  max-width: min(900px, 92vw);
  overflow: auto;
}

@media (max-width: 1280px) {
  .bf-resource-library,
  .bf-module-detail-layout,
  .bf-workspace-hero .container,
  .bf-workspace-layout,
  .bf-home-hero .container,
  .page-hero-inner {
    padding-left: 18px;
    padding-right: 18px;
  }

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

@media (max-width: 1100px) {
  .bf-workspace-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .bf-resource-library {
    grid-template-columns: 1fr;
  }

  .bf-resource-filters {
    position: static;
    top: auto;
  }

  .bf-module-detail-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .bf-form-grid {
    grid-template-columns: 1fr;
  }

  .bf-home-resource-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .bf-home-hero {
    padding-top: 122px;
  }

  .page-hero h1,
  .bf-workspace-hero h1 {
    font-size: clamp(24px, 7vw, 32px);
  }

  .bf-home-nav {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* Home hero title (single-line, lighter visual weight) */
.bf-home-page .bf-home-hero h1 {
  font-size: clamp(24px, 4.6vw, 52px);
  font-weight: 900;
  line-height: 1.12;
  white-space: nowrap !important;
}

/* ----- visual balance overrides after hardening ----- */
.bf-home-hero .container,
.bf-workspace-hero .container,
.page-hero-inner {
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
  width: min(100% - 32px, 1200px);
}

.bf-home-hero-inner {
  max-width: 980px;
}

.bf-home-search-wrap,
.hero-banner .banner-search {
  margin-left: auto;
  margin-right: auto;
  max-width: 760px;
  width: min(100%, 760px);
}

.bf-home-resource-grid {
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
  width: 100%;
}

.bf-module-detail-layout {
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
  width: min(100% - 32px, 1200px);
}

.bf-module-detail-layout .resource-buy-card {
  max-width: 360px;
  width: 100%;
}

.bf-account-main {
  margin-left: auto;
  margin-right: auto;
  max-width: 1120px;
  width: 100%;
}

.bf-workspace-layout {
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
  width: 100%;
}

@media (max-width: 1024px) {
  .container,
  .bf-resource-library,
  .bf-module-detail-layout,
  .bf-home-hero .container,
  .bf-workspace-hero .container,
  .page-hero-inner {
    width: min(100% - 24px, 1200px);
  }
}

@media (max-width: 768px) {
  .bf-traffic-summary {
    grid-template-columns: 1fr;
  }

  .bf-traffic-table-head {
    align-items: stretch;
    flex-direction: column;
  }

  .bf-traffic-chart-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
