/* =============================================
   SITE POLISH + INSTAGRAM SECTION
   barghfani.ir
   ============================================= */

/* ---------------------------------------------
   1) Anchor offset — the navbar is sticky (68px),
      so #courses/#articles/#about used to land
      underneath it when clicked from the menu.
   --------------------------------------------- */
section[id] { scroll-margin-top: 88px; }
@media (max-width: 768px) { section[id] { scroll-margin-top: 72px; } }

/* ---------------------------------------------
   2) Accessibility & text polish
   --------------------------------------------- */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(255,59,59,.22); color: #2b1013; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #ff3b3b;
  outline-offset: 2px;
  border-radius: 8px;
}

img { max-width: 100%; }

/* The hero banner has no intrinsic size in the markup, which made the page
   jump once it finished loading. Reserve its *real* ratio (1536x1024 = 3:2)
   so the space is held without ever cropping the artwork. */
img[src*="hero-banner"] {
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: transparent;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------------------------------------------
   3) Loading skeletons for the course grid
   --------------------------------------------- */
.bf-skel-row {
  display: flex;
  gap: 20px;
  overflow: hidden;
  padding-bottom: 12px;
}
.bf-skel-card {
  width: 280px;
  height: 340px;
  flex-shrink: 0;
  border-radius: 20px;
  border: 1px solid rgba(43,16,19,.06);
  background: linear-gradient(100deg, #fff 30%, #ffeef0 50%, #fff 70%);
  background-size: 250% 100%;
  animation: bf-shimmer 1.4s ease-in-out infinite;
}
@keyframes bf-shimmer {
  0%   { background-position: 150% 0; }
  100% { background-position: -50% 0; }
}

/* ---------------------------------------------
   3b) Course card
   --------------------------------------------- */
.bf-cc {
  display: flex;
  flex-direction: column;
  height: 414px;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(43,16,19,.07);
  box-shadow: 0 4px 18px rgba(43,16,19,.06);
  direction: rtl;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  transition: transform .32s cubic-bezier(.4,0,.2,1), box-shadow .32s, border-color .32s;
}
.bf-cc:hover {
  transform: translateY(-8px);
  border-color: rgba(255,59,59,.28);
  box-shadow: 0 24px 46px rgba(43,16,19,.14);
}
.bf-cc.is-cart   { border-color: rgba(31,157,85,.45); box-shadow: 0 0 0 1px rgba(31,157,85,.16), 0 6px 20px rgba(31,157,85,.14); }
.bf-cc.is-owned  { border-color: rgba(31,157,85,.32); }

/* --- media ---
   Most courses only carry an emoji, so the artwork has to do the work: each
   course gets one of six palettes (picked from its id) plus a circuit-board
   motif, so a row of cards reads as a set instead of six identical tiles. */
.bf-cc__media {
  position: relative;
  height: 146px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  overflow: hidden;
  --c1: #7a1220;
  --c2: #c4272b;
  --c3: #ff6a5e;
  background:
    radial-gradient(circle at 76% 16%, rgba(255,255,255,.30) 0%, transparent 52%),
    linear-gradient(140deg, var(--c1) 0%, var(--c2) 52%, var(--c3) 100%);
}
.bf-cc__media--0 { --c1: #7a1220; --c2: #c4272b; --c3: #ff7a6b; }
.bf-cc__media--1 { --c1: #0d3b2e; --c2: #14785a; --c3: #4fc48c; }
.bf-cc__media--2 { --c1: #1a2a5e; --c2: #2f4fa8; --c3: #6d95f0; }
.bf-cc__media--3 { --c1: #4a2270; --c2: #7b3fb5; --c3: #b98af0; }
.bf-cc__media--4 { --c1: #6b3410; --c2: #c26a1c; --c3: #f5ad5a; }
.bf-cc__media--5 { --c1: #0e3f4a; --c2: #14808f; --c3: #52c6cf; }

/* circuit traces + solder pads, drawn in CSS so there is no extra request */
.bf-cc__art {
  position: absolute;
  inset: 0;
  opacity: .5;
  pointer-events: none;
  background-image:
    /* horizontal traces */
    linear-gradient(90deg, transparent 0 8%, rgba(255,255,255,.5) 8% 44%, transparent 44%),
    linear-gradient(90deg, transparent 0 56%, rgba(255,255,255,.38) 56% 92%, transparent 92%),
    /* vertical risers */
    linear-gradient(0deg, transparent 0 22%, rgba(255,255,255,.34) 22% 78%, transparent 78%),
    linear-gradient(0deg, transparent 0 40%, rgba(255,255,255,.26) 40% 96%, transparent 96%),
    /* solder pads */
    radial-gradient(circle, rgba(255,255,255,.85) 0 2.4px, transparent 2.6px),
    radial-gradient(circle, rgba(255,255,255,.6)  0 2px,   transparent 2.2px),
    radial-gradient(circle, rgba(255,255,255,.5)  0 1.8px, transparent 2px);
  background-repeat: no-repeat;
  background-size:
    100% 1.4px, 100% 1.4px,
    1.4px 100%, 1.4px 100%,
    100% 100%, 100% 100%, 100% 100%;
  background-position:
    0 30%, 0 70%,
    22% 0, 74% 0,
    22% 30%, 74% 70%, 74% 30%;
  transition: opacity .35s, transform .5s cubic-bezier(.4,0,.2,1);
}
.bf-cc:hover .bf-cc__art { opacity: .72; transform: scale(1.05); }

.bf-cc__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.bf-cc:hover .bf-cc__media img { transform: scale(1.07); }

.bf-cc__emoji {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 74px; height: 74px;
  border-radius: 22px;
  font-size: 36px;
  line-height: 1;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.3);
  box-shadow: 0 10px 26px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.34);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), box-shadow .4s;
}
.bf-cc:hover .bf-cc__emoji {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 16px 34px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.4);
}

.bf-cc__level, .bf-cc__off, .bf-cc__flag {
  position: absolute;
  z-index: 2;
  border-radius: 20px;
  padding: 4px 11px;
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
/* the media is dark now, so the level chip reads as light glass —
   the 🟢/🟡/🔴 icon already carries the level colour */
.bf-cc__level {
  top: 10px; right: 10px;
  color: #fff;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.32);
  text-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.bf-cc__off {
  top: 10px; left: 10px;
  color: #fff;
  background: linear-gradient(135deg, #ff3b3b, #c4272b);
  box-shadow: 0 4px 12px rgba(196,39,43,.36);
}
.bf-cc__flag {
  bottom: 10px; left: 10px;
  color: #0f7a3d;
  background: rgba(255,255,255,.94);
  box-shadow: 0 3px 10px rgba(0,0,0,.12);
}

/* --- body --- */
.bf-cc__body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 14px 16px 0;
}
.bf-cc__title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.7;
  color: #2b1013;
  cursor: pointer;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s;
}
.bf-cc__title:hover { color: #c4272b; }
.bf-cc__tags { display: flex; flex-wrap: wrap; gap: 5px; }
.bf-cc__tags span {
  padding: 3px 9px;
  border-radius: 7px;
  font-size: 10.5px;
  color: #8b5a5e;
  background: rgba(43,16,19,.04);
  border: 1px solid rgba(43,16,19,.07);
}
.bf-cc__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
  padding: 10px 0;
  border-top: 1px solid rgba(43,16,19,.06);
  font-size: 11px;
  color: #8b5a5e;
}

/* --- footer --- */
.bf-cc__foot {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 16px 14px;
  border-top: 1px solid rgba(43,16,19,.06);
  background: linear-gradient(180deg, transparent, rgba(255,59,59,.03));
}
.bf-cc__price { display: flex; flex-direction: column; line-height: 1.35; }
.bf-cc__old {
  font-size: 11px;
  color: #b9868a;
  text-decoration: line-through;
}
.bf-cc__now { font-size: 15px; font-weight: 900; color: #c4272b; white-space: nowrap; }
.bf-cc__now i { font-style: normal; font-size: 10px; font-weight: 700; color: #8b5a5e; margin-right: 3px; }
.bf-cc__now--free { color: #1f9d55; }

.bf-cc__actions { display: flex; gap: 6px; flex-shrink: 0; }
.bf-cc__btn {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s, box-shadow .18s, background .18s, color .18s;
}
.bf-cc__btn:hover { transform: translateY(-2px); }
.bf-cc__btn--ghost {
  color: #8b5a5e;
  background: rgba(43,16,19,.04);
  border-color: rgba(43,16,19,.1);
}
.bf-cc__btn--ghost:hover { color: #c4272b; border-color: rgba(196,39,43,.3); }
.bf-cc__btn--buy {
  color: #fff;
  background: linear-gradient(135deg, #ff3b3b, #c4272b);
  box-shadow: 0 5px 15px rgba(255,59,59,.32);
}
.bf-cc__btn--buy:hover { box-shadow: 0 9px 22px rgba(255,59,59,.42); }
.bf-cc__btn--del {
  color: #ef4444;
  background: rgba(239,68,68,.09);
  border-color: rgba(239,68,68,.28);
}
.bf-cc__btn--del:hover { background: rgba(239,68,68,.17); }
.bf-cc__btn--own {
  color: #fff;
  background: linear-gradient(135deg, #1f9d55, #0f7a3d);
  box-shadow: 0 5px 15px rgba(31,157,85,.32);
}
.bf-cc__btn--own:hover { box-shadow: 0 9px 22px rgba(31,157,85,.42); }

@media (max-width: 768px) {
  .bf-cc { height: 398px; }
  .bf-cc__media { height: 132px; }
  .bf-cc__emoji { width: 66px; height: 66px; font-size: 32px; border-radius: 20px; }
  .bf-cc__title { font-size: 14px; }
}

/* ---------------------------------------------
   4) Instagram section
   --------------------------------------------- */
.bf-ig {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 32px;
  direction: rtl;
  border-top: 1px solid rgba(43,16,19,.05);
  font-family: 'Vazirmatn', Tahoma, sans-serif;
}
.bf-ig__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.bf-ig__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 6px;
  font-size: 21px;
  font-weight: 900;
  color: #2b1013;
}
.bf-ig__glyph {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  font-size: 19px;
  background: linear-gradient(45deg, #f9ce34 0%, #ee2a7b 50%, #6228d7 100%);
  box-shadow: 0 6px 18px rgba(238,42,123,.28);
}
.bf-ig__sub { margin: 0; font-size: 13px; color: #8b5a5e; line-height: 1.9; }
.bf-ig__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 10px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(45deg, #f9ce34 0%, #ee2a7b 55%, #6228d7 100%);
  box-shadow: 0 8px 22px rgba(238,42,123,.26);
  transition: transform .2s, box-shadow .2s;
}
.bf-ig__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(238,42,123,.34);
}

.bf-ig__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(224px, 1fr));
  gap: 18px;
}
.bf-ig__card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(43,16,19,.07);
  box-shadow: 0 4px 16px rgba(43,16,19,.05);
  transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s, border-color .3s;
}
.bf-ig__card:hover {
  transform: translateY(-6px);
  border-color: rgba(238,42,123,.3);
  box-shadow: 0 18px 38px rgba(43,16,19,.13);
}
.bf-ig__cover {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  /* stays visible as a graceful fallback if the cover image fails to load */
  background: linear-gradient(45deg, #f9ce34 0%, #ee2a7b 50%, #6228d7 100%);
}
.bf-ig__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
}
.bf-ig__card:hover .bf-ig__cover img { transform: scale(1.06); }
.bf-ig__badge {
  position: absolute;
  top: 10px; left: 10px;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 9px;
  font-size: 14px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 3px 10px rgba(0,0,0,.16);
}
.bf-ig__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  padding: 14px 16px 16px;
}
.bf-ig__cardTitle {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.65;
  color: #2b1013;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bf-ig__cardText {
  margin: 0;
  font-size: 12px;
  line-height: 1.9;
  color: #8b5a5e;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bf-ig__open {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  padding-top: 8px;
  font-size: 11.5px;
  font-weight: 800;
  color: #ee2a7b;
}

@media (max-width: 768px) {
  .bf-ig { padding: 34px 14px; }
  .bf-ig__head { align-items: flex-start; gap: 14px; }
  .bf-ig__title { font-size: 18px; }
  .bf-ig__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .bf-ig__body { padding: 11px 12px 13px; }
  .bf-ig__cardTitle { font-size: 12.5px; }
  .bf-ig__cardText { display: none; }
}

/* ---------------------------------------------
   4b) Support tickets (profile › پشتیبانی)
   --------------------------------------------- */
.bf-tk {
  direction: rtl;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  animation: bf-pop .3s ease;
}
.bf-tk__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.bf-tk__intro h3 { margin: 0 0 4px; font-size: 17px; font-weight: 900; color: #2b1013; }
.bf-tk__intro p  { margin: 0; font-size: 12.5px; color: #8b5a5e; }

.bf-tk__btn {
  padding: 11px 20px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff3b3b, #c4272b);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(255,59,59,.28);
  transition: transform .18s, box-shadow .18s, opacity .18s;
}
.bf-tk__btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255,59,59,.36); }
.bf-tk__btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.bf-tk__btn--ghost {
  background: rgba(43,16,19,.05);
  color: #8b5a5e;
  border: 1px solid rgba(43,16,19,.1);
  box-shadow: none;
}
.bf-tk__btn--ghost:hover:not(:disabled) { color: #c4272b; box-shadow: none; }

.bf-tk__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(43,16,19,.1);
  background: rgba(43,16,19,.03);
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: #8b5a5e;
  cursor: pointer;
  transition: all .2s;
}
.bf-tk__back:hover { color: #c4272b; border-color: rgba(196,39,43,.3); }

/* --- new ticket form --- */
.bf-tk__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  padding: 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(43,16,19,.08);
  box-shadow: 0 8px 24px rgba(43,16,19,.06);
  animation: bf-pop .25s ease;
}
.bf-tk__input, .bf-tk__area {
  width: 100%;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1.5px solid rgba(43,16,19,.1);
  background: #fff7f7;
  font: inherit;
  font-size: 14px;
  color: #2b1013;
  outline: none;
  resize: vertical;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.bf-tk__input::placeholder, .bf-tk__area::placeholder { color: #c08f93; }
.bf-tk__input:focus, .bf-tk__area:focus {
  background: #fff;
  border-color: #ff3b3b;
  box-shadow: 0 0 0 4px rgba(255,59,59,.12);
}
.bf-tk__area { line-height: 1.9; min-height: 92px; }
.bf-tk__form .bf-tk__btn { align-self: flex-start; }

/* --- ticket list --- */
.bf-tk__list { display: flex; flex-direction: column; gap: 10px; }
.bf-tk__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 15px 17px;
  border-radius: 14px;
  border: 1px solid rgba(43,16,19,.08);
  background: #fff;
  font: inherit;
  text-align: right;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.bf-tk__item:hover {
  transform: translateY(-2px);
  border-color: rgba(255,59,59,.28);
  box-shadow: 0 10px 26px rgba(43,16,19,.09);
}
.bf-tk__item.has-new { border-color: rgba(31,157,85,.4); background: #f6fffa; }
.bf-tk__itemMain { min-width: 0; }
.bf-tk__itemTitle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  font-size: 14px;
  font-weight: 800;
  color: #2b1013;
}
.bf-tk__dot {
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  background: #1f9d55;
}
.bf-tk__itemMeta { display: flex; gap: 12px; font-size: 11.5px; color: #a67a7e; }

.bf-tk__badge {
  flex-shrink: 0;
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  border: 1px solid;
}
.bf-tk__badge.is-open     { color: #b58900; background: rgba(234,179,8,.1);  border-color: rgba(234,179,8,.3); }
.bf-tk__badge.is-answered { color: #0f7a3d; background: rgba(31,157,85,.1);  border-color: rgba(31,157,85,.3); }
.bf-tk__badge.is-closed   { color: #8b5a5e; background: rgba(43,16,19,.05);  border-color: rgba(43,16,19,.12); }

/* --- thread --- */
.bf-tk__head {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(43,16,19,.07);
}
.bf-tk__head h3   { margin: 0 0 5px; font-size: 17px; font-weight: 900; color: #2b1013; }
.bf-tk__head span { font-size: 12px; color: #a67a7e; }

.bf-tk__thread { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.bf-tk__msg {
  max-width: 82%;
  padding: 13px 16px;
  border-radius: 16px;
  font-size: 13.5px;
  animation: bf-pop .25s ease;
}
.bf-tk__msg p {
  margin: 0;
  line-height: 2;
  color: #2b1013;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.bf-tk__msgTop {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 11px;
}
.bf-tk__msgTop strong { font-size: 12px; font-weight: 800; }
.bf-tk__msgTop span   { color: #a67a7e; }

.bf-tk__msg--user {
  align-self: flex-start;
  background: #fff;
  border: 1px solid rgba(43,16,19,.09);
}
.bf-tk__msg--user .bf-tk__msgTop strong { color: #8b5a5e; }
.bf-tk__msg--admin {
  align-self: flex-end;
  background: linear-gradient(135deg, #fff1f1, #ffe4e6);
  border: 1px solid rgba(255,59,59,.22);
}
.bf-tk__msg--admin .bf-tk__msgTop strong { color: #c4272b; }

.bf-tk__replyBox { display: flex; flex-direction: column; gap: 10px; }
.bf-tk__replyActions { display: flex; gap: 8px; flex-wrap: wrap; }
.bf-tk__closed {
  padding: 15px 18px;
  border-radius: 12px;
  font-size: 13px;
  color: #8b5a5e;
  background: rgba(43,16,19,.03);
  border: 1px dashed rgba(43,16,19,.14);
  text-align: center;
}
.bf-tk__err {
  margin: 12px 0;
  padding: 12px 15px;
  border-radius: 12px;
  font-size: 13px;
  color: #b91c1c;
  background: #fff1f1;
  border: 1px solid rgba(239,68,68,.28);
}
.bf-tk__empty {
  padding: 64px 30px;
  text-align: center;
  border-radius: 16px;
  background: rgba(43,16,19,.02);
  border: 1px solid rgba(43,16,19,.06);
}
.bf-tk__empty > div { font-size: 54px; opacity: .55; margin-bottom: 12px; }
.bf-tk__empty h3    { margin: 0 0 6px; font-size: 17px; font-weight: 800; color: #2b1013; }
.bf-tk__empty p     { margin: 0; font-size: 13px; color: #8b5a5e; }

@media (max-width: 768px) {
  .bf-tk__msg { max-width: 94%; }
  .bf-tk__item { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ---------------------------------------------
   5) Back-to-top button
   --------------------------------------------- */
#bf-top {
  position: fixed;
  bottom: 24px; left: 24px;
  z-index: 120;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  color: #fff;
  background: linear-gradient(135deg, #ff3b3b, #c4272b);
  box-shadow: 0 8px 24px rgba(255,59,59,.34);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .25s, transform .25s, visibility .25s, box-shadow .25s;
}
#bf-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
#bf-top:hover { box-shadow: 0 12px 30px rgba(255,59,59,.44); }

@media (max-width: 768px) {
  #bf-top { bottom: 16px; left: 16px; width: 42px; height: 42px; font-size: 16px; }
}