/* ============================================================
   BoostFlow — шапка, подвал, PlatformBar, drawer и секции главной.
   Значения из макета «Открытие главной страницы».
   ============================================================ */

/* ---------- HEADER ---------- */
.bf-header {
  position: sticky; top: 0; z-index: var(--bf-z-header);
  background: var(--bf-header-bg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--bf-border);
}
.bf-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding-top: 15px; padding-bottom: 15px;
}
.bf-logo { display: flex; align-items: center; gap: 11px; }
.bf-logo__img { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 8px 22px rgba(108,92,231,0.5)); }
.bf-logo__txt { font-size: 22px; font-weight: 800; letter-spacing: -0.4px; }

.bf-nav { display: flex; align-items: center; gap: 26px; flex-shrink: 0; }
.bf-nav__link { font-size: 14px; color: var(--bf-text-3); font-weight: 500; }
.bf-nav__link:hover { color: #fff; }

.bf-header__actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.bf-dd { position: relative; }

.bf-cart-btn {
  display: inline-flex; align-items: center; justify-content: center; position: relative;
  width: 42px; height: 42px; border-radius: var(--bf-r-md);
  background: var(--bf-hover-1); border: 1px solid var(--bf-border-2); color: var(--bf-text-2); cursor: pointer;
}
.bf-cart-btn__count {
  position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: #fff; border-radius: var(--bf-r-pill);
  background: var(--bf-grad-cta);
}

.bf-cab-head { display: flex; align-items: center; gap: 11px; padding: 10px 11px 12px; border-bottom: 1px solid var(--bf-border); margin-bottom: 6px; }
.bf-cab-head__ava { display: flex; width: 40px; height: 40px; border-radius: var(--bf-r-md); align-items: center; justify-content: center; background: linear-gradient(135deg,#6366f1,#8b5cf6); flex: none; }
.bf-cab-head__name { font-size: 13.5px; font-weight: 700; }
.bf-cab-head__bal { font-size: 12px; color: var(--bf-text-muted); }

/* ---------- PLATFORM BAR ---------- */
.bf-platformbar {
  position: relative; z-index: 5; margin-top: 16px;
  display: flex; align-items: center; gap: 11px; flex-wrap: wrap;
}

/* ---------- HERO ---------- */
.bf-hero {
  position: relative; z-index: 5; margin-top: 36px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 30px; align-items: center;
}
.bf-hero__title { margin: 0; font-size: 54px; line-height: 1.05; font-weight: 800; letter-spacing: -1.5px; }
.bf-hero__sub { margin-top: 14px; font-size: 34px; font-weight: 800; letter-spacing: -0.5px; }
.bf-hero__lead { margin: 20px 0 0; font-size: 15.5px; line-height: 1.6; color: #a8a4ba; max-width: 430px; }
.bf-hero__cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.bf-hero__feats { display: flex; gap: 30px; margin-top: 34px; flex-wrap: wrap; }
.bf-hero__feat { display: flex; align-items: center; gap: 11px; }
.bf-hero__art { position: relative; height: 460px; display: flex; align-items: center; justify-content: center; }
.bf-hero__glow { position: absolute; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle,rgba(124,108,247,0.28),transparent 65%); }
.bf-hero__img { position: relative; width: 110%; max-width: none; height: auto; object-fit: contain; filter: drop-shadow(0 30px 60px rgba(108,92,231,0.35)); }

/* ---------- STATS ---------- */
.bf-statsbar {
  background: rgba(255,255,255,0.03); border: 1px solid var(--bf-border); border-radius: var(--bf-r-2xl);
  padding: 26px 30px; display: grid; grid-template-columns: repeat(5,1fr); gap: 18px;
}
.bf-stat { display: flex; align-items: center; gap: 13px; }
.bf-stat__ico { display: flex; width: 42px; height: 42px; border-radius: 12px; align-items: center; justify-content: center; flex: none; }

/* ---------- PLATFORM CARDS ---------- */
.bf-plat-card { border-radius: 18px; padding: 20px 16px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.bf-plat-card__ico { display: flex; width: 54px; height: 54px; border-radius: 15px; align-items: center; justify-content: center; margin-bottom: 12px; }
.bf-plat-card__btn { margin-top: auto; width: 100%; box-sizing: border-box; text-align: center; color: #fff; font-size: 13px; font-weight: 700; padding: 9px; border-radius: 10px; cursor: pointer; }

/* ---------- SERVICE CARDS ---------- */
.bf-svc-card {
  background: var(--bf-surface); border: 1px solid var(--bf-border); border-radius: var(--bf-r-xl);
  padding: 16px; display: flex; flex-direction: column; gap: 12px;
}

/* ---------- HOW IT WORKS ---------- */
.bf-how { display: flex; align-items: flex-start; justify-content: center; gap: 8px; flex-wrap: wrap; }
.bf-how__step { flex: 1; max-width: 230px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.bf-how__circle { display: flex; width: 78px; height: 78px; border-radius: 50%; align-items: center; justify-content: center; }
.bf-how__arrow { margin-top: 30px; color: #5a5570; }

/* ---------- WHY + DISCOUNT ---------- */
.bf-why {
  position: relative; z-index: 5; margin-top: 58px;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 20px;
}
.bf-why__box { background: rgba(255,255,255,0.03); border: 1px solid var(--bf-border); border-radius: var(--bf-r-2xl); padding: 30px 32px; }
.bf-why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; }
.bf-why__item { display: flex; align-items: center; gap: 11px; }
.bf-why__check { display: flex; width: 24px; height: 24px; border-radius: 7px; flex: none; align-items: center; justify-content: center; background: rgba(124,108,247,0.18); color: #8b7bf7; }
.bf-discount { background: linear-gradient(150deg,rgba(124,58,237,0.2),rgba(236,72,153,0.12)); border: 1px solid var(--bf-border-2); border-radius: var(--bf-r-2xl); padding: 26px 28px; display: flex; align-items: center; gap: 18px; }
.bf-discount__ico { display: flex; width: 96px; height: 96px; border-radius: var(--bf-r-xl); flex: none; align-items: center; justify-content: center; background: linear-gradient(135deg,#6366f1,#8b5cf6); box-shadow: var(--bf-glow); }

/* ---------- NEWSLETTER ---------- */
.bf-news { background: rgba(255,255,255,0.03); border: 1px solid var(--bf-border); border-radius: var(--bf-r-2xl); padding: 26px 32px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.bf-news__ico { display: flex; width: 62px; height: 62px; border-radius: var(--bf-r-xl); flex: none; align-items: center; justify-content: center; background: linear-gradient(135deg,#6366f1,#8b5cf6); box-shadow: var(--bf-glow); }

/* ---------- FOOTER ---------- */
.bf-footer {
  position: relative; z-index: 5; margin-top: 46px; padding-top: 34px; padding-bottom: 30px;
  border-top: 1px solid var(--bf-border);
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 24px;
}
.bf-footer__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.bf-footer__title { font-size: 13px; font-weight: 800; margin-bottom: 14px; }
.bf-footer__links { display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: #9a96aa; }
.bf-footer__socials { display: flex; gap: 9px; flex-wrap: wrap; }
.bf-soc { display: flex; width: 34px; height: 34px; border-radius: 10px; align-items: center; justify-content: center; }
.bf-copyright { position: relative; z-index: 5; padding: 16px 28px 36px; font-size: 12.5px; color: var(--bf-text-muted-2); border-top: 1px solid rgba(255,255,255,0.05); }

/* ---------- CART DRAWER ---------- */
.bf-drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.bf-drawer__body { min-height: 200px; }
.bf-drawer__empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 0; text-align: center; }
.bf-drawer__foot { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--bf-border); }
.bf-drawer__total { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-size: 15px; }

/* ============================================================
   THANK YOU — промо, купон, features + деталі замовлення
   ============================================================ */
.bf-promo { background: linear-gradient(135deg,rgba(124,58,237,0.12),rgba(236,72,153,0.06)); border: 1px solid var(--bf-border-2); border-radius: 24px; padding: 30px 34px; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.bf-promo__ico { display: flex; width: 72px; height: 72px; border-radius: 20px; flex: none; align-items: center; justify-content: center; background: rgba(124,108,247,0.16); box-shadow: inset 0 0 0 1px rgba(167,139,250,0.25); }
.bf-coupon { position: relative; display: flex; align-items: center; width: 320px; height: 130px; border-radius: 18px; background: linear-gradient(120deg,#4f46e5,#7c3aed,#ec4899); overflow: hidden; }
.bf-coupon__val { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border-right: 2px dashed rgba(255,255,255,0.5); }
.bf-coupon__pct { width: 96px; display: flex; align-items: center; justify-content: center; font-size: 52px; font-weight: 800; color: rgba(255,255,255,0.9); }
.bf-ty-feats { background: rgba(255,255,255,0.02); border: 1px solid var(--bf-border); border-radius: 24px; padding: 26px 30px; display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }

/* Деталі замовлення (розмітку інжектить thankyou.php script) */
.orderResult__head-title { margin: 0 0 12px; }
.orderResult__head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--bf-border); font-size: 13.5px; }
.orderResult__head-name { color: var(--bf-text-muted); }
.orderResult__head-value { color: #fff; font-weight: 600; }
.orderResult__list { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.orderList__item { background: var(--bf-hover-1); border: 1px solid var(--bf-border); border-radius: var(--bf-r-lg); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.orderList__item-row__left { display: flex; align-items: center; gap: 10px; }
.orderList__item-row__service { font-size: 14px; font-weight: 700; }
.orderList__item-row__group { display: flex; flex-direction: column; gap: 5px; }
.orderList__item-row__label { font-size: 12px; color: var(--bf-text-muted); }
.orderList__item-row__link input { width: 100%; background: var(--bf-surface-2); border: 1px solid var(--bf-border-2); border-radius: var(--bf-r-sm); padding: 8px 10px; color: var(--bf-text-2); font-size: 12.5px; }
.orderList__item-row__current-price { font-size: 15px; font-weight: 800; }
.orderList__item-row__old-price { font-size: 12.5px; color: var(--bf-text-muted-2); text-decoration: line-through; }

@media (max-width: 700px) { .bf-promo { grid-template-columns: 1fr; } .bf-coupon { width: 100%; } .bf-ty-feats { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   AUTH — вхід / реєстрація
   ============================================================ */
.bf-auth { position: relative; z-index: 5; max-width: 980px; margin: 20px auto 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.bf-authcard { background: rgba(255,255,255,0.03); border: 1px solid var(--bf-border-2); border-radius: 22px; padding: 34px 32px 30px; }
.bf-authcard__label { font-size: 13px; color: var(--bf-text-3); font-weight: 700; margin-bottom: 9px; }
.bf-field { position: relative; margin-bottom: 16px; }
.bf-field__ico { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--bf-text-muted-2); display: flex; }
.bf-field__eye { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: var(--bf-text-muted); cursor: pointer; display: flex; }
.bf-field .bf-input { border-radius: 13px; }
.bf-auth-err { background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.3); color: #f87171; border-radius: var(--bf-r-md); padding: 11px 14px; font-size: 13.5px; margin-bottom: 18px; }
.bf-auth-or { display: flex; align-items: center; gap: 14px; margin: 20px 0; font-size: 12.5px; color: var(--bf-text-muted); }
.bf-auth-or > span { flex: 1; height: 1px; background: rgba(255,255,255,0.1); }

@media (max-width: 820px) { .bf-auth { grid-template-columns: 1fr; } .bf-auth .bf-hero__art { display: none; } }

/* ============================================================
   ЦІНИ — пакети + таблиця
   ============================================================ */
.bf-plans { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; align-items: stretch; }
.bf-plan { position: relative; border-radius: 22px; padding: 30px 26px; display: flex; flex-direction: column; }
.bf-plan__badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg,#ec4899,#f43f5e); font-size: 12px; font-weight: 800; padding: 6px 16px; border-radius: 100px; white-space: nowrap; box-shadow: 0 8px 20px rgba(236,72,153,0.5); }
.bf-pricetable { background: rgba(255,255,255,0.03); border: 1px solid var(--bf-border); border-radius: 20px; overflow: hidden; }
.bf-pricetable__head { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; padding: 16px 24px; font-size: 12.5px; font-weight: 700; color: var(--bf-text-muted); border-bottom: 1px solid var(--bf-border); text-transform: uppercase; letter-spacing: 0.4px; }
.bf-pricetable__row { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; align-items: center; padding: 15px 24px; border-bottom: 1px solid rgba(255,255,255,0.05); }
@media (max-width: 860px) {
  .bf-plans { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .bf-pricetable__head { display: none; }
  .bf-pricetable__row { grid-template-columns: 1fr auto; gap: 6px 14px; }
  .bf-pricetable__row > div:nth-child(2), .bf-pricetable__row > div:nth-child(3) { display: none; }
}

/* ============================================================
   БЛОГ / СТАТТЯ
   ============================================================ */
.bf-blog-feat { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 0; overflow: hidden; padding: 0; }
@media (max-width: 760px) { .bf-blog-feat { grid-template-columns: 1fr; } }
.bf-article__body { margin-top: 28px; font-size: 16px; line-height: 1.75; color: #d8d4e6; }
.bf-article__body h2 { font-size: 26px; font-weight: 800; margin: 32px 0 14px; color: #fff; letter-spacing: -0.5px; }
.bf-article__body h3 { font-size: 20px; font-weight: 800; margin: 26px 0 12px; color: #fff; }
.bf-article__body p { margin: 0 0 18px; }
.bf-article__body a { color: var(--bf-primary); }
.bf-article__body ul, .bf-article__body ol { margin: 0 0 18px; padding-left: 22px; }
.bf-article__body li { margin-bottom: 8px; }
.bf-article__body img { max-width: 100%; height: auto; border-radius: 14px; margin: 8px 0; }
.bf-article__body blockquote { border-left: 3px solid var(--bf-primary); padding: 6px 18px; margin: 0 0 18px; color: var(--bf-text-3); background: var(--bf-hover-1); border-radius: 0 12px 12px 0; }

/* ============================================================
   ВІДГУКИ
   ============================================================ */
.bf-reviews-grid { columns: 3; column-gap: 20px; }
.bf-review { break-inside: avoid; margin-bottom: 20px; background: rgba(255,255,255,0.03); border: 1px solid var(--bf-border); border-radius: 18px; padding: 22px; }
.bf-review__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.bf-review__ava { display: flex; width: 44px; height: 44px; border-radius: 50%; align-items: center; justify-content: center; background: var(--bf-grad-cta); font-weight: 700; font-size: 16px; flex: none; }
@media (max-width: 900px) { .bf-reviews-grid { columns: 2; } }
@media (max-width: 600px) { .bf-reviews-grid { columns: 1; } }

/* ============================================================
   КОНТАКТИ
   ============================================================ */
.bf-contacts { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 24px; align-items: start; }
@media (max-width: 820px) { .bf-contacts { grid-template-columns: 1fr; } }

/* ============================================================
   FAQ / АКОРДЕОН
   ============================================================ */
.bf-acc-list { display: flex; flex-direction: column; gap: 12px; }
.bf-acc { background: rgba(255,255,255,0.03); border: 1px solid var(--bf-border); border-radius: 16px; overflow: hidden; transition: background .18s ease, border-color .18s ease; }
.bf-acc.is-open { background: rgba(124,108,247,0.08); border-color: rgba(139,123,247,0.4); }
.bf-acc__head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; background: none; border: none; cursor: pointer; text-align: left; font-family: inherit; }
.bf-acc__q { font-size: 16px; font-weight: 700; line-height: 1.35; color: #fff; }
.bf-acc__chev { display: flex; width: 30px; height: 30px; border-radius: 9px; align-items: center; justify-content: center; background: var(--bf-hover-2); flex: none; transition: transform .2s ease; }
.bf-acc.is-open .bf-acc__chev { transform: rotate(180deg); }
.bf-acc__body { display: none; }
.bf-acc.is-open .bf-acc__body { display: block; }
.bf-acc__a { padding: 0 24px 20px; font-size: 14px; line-height: 1.65; color: #a8a4ba; }

/* ============================================================
   КАБІНЕТ
   ============================================================ */
.cab-body { display: flex; min-width: 0; position: relative; z-index: 5; }
.cab-sidebar { width: 240px; flex: none; background: #0c0a16; border-right: 1px solid rgba(255,255,255,0.06); display: flex; flex-direction: column; padding: 22px 16px; min-height: calc(100vh - 90px); }
.cab-nav { display: flex; flex-direction: column; gap: 4px; }
.cab-nav__item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; font-size: 14.5px; font-weight: 600; white-space: nowrap; color: var(--bf-text-3); transition: background .15s ease; }
.cab-nav__item:hover { background: var(--bf-hover-2); color: #fff; }
.cab-nav__item.is-active { color: #fff; background: rgba(124,108,247,0.16); }
.cab-promo { margin-top: auto; border-radius: 18px; background: linear-gradient(160deg,rgba(124,58,237,0.22),rgba(236,72,153,0.12)); border: 1px solid var(--bf-border-2); padding: 18px 16px; }
.cab-main { flex: 1; min-width: 0; }
.cab-topbar { position: sticky; top: 0; z-index: 20; background: rgba(8,6,15,0.82); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,0.06); padding: 18px 34px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cab-bonus { display: flex; align-items: center; gap: 8px; background: rgba(124,108,247,0.12); border: 1px solid rgba(124,108,247,0.28); border-radius: 11px; padding: 8px 14px; }
.cab-content { padding: 26px 34px 40px; }
.cab-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.cab-stat { position: relative; overflow: hidden; background: rgba(255,255,255,0.03); border: 1px solid var(--bf-border); border-radius: 20px; padding: 20px; }
.cab-stat__ico { display: flex; width: 46px; height: 46px; border-radius: 14px; align-items: center; justify-content: center; flex: none; }
.cab-order-row { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--bf-border); }
.cab-order-row__svc { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cab-order-row__date { font-size: 13px; color: var(--bf-text-muted); }
.cab-order-row__total { font-size: 15px; font-weight: 800; white-space: nowrap; }
.cab-badge { font-size: 12px; font-weight: 700; border-radius: 8px; padding: 5px 11px; white-space: nowrap; }

@media (max-width: 900px) {
  .cab-body { flex-direction: column; }
  .cab-sidebar { width: 100%; min-height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .cab-nav { flex-direction: row; flex-wrap: wrap; }
  .cab-promo { display: none; }
  .cab-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .cab-stats { grid-template-columns: 1fr; } .cab-content, .cab-topbar { padding-left: 16px; padding-right: 16px; } }

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 1000px) {
  .bf-hero { grid-template-columns: 1fr; }
  .bf-hero__art { height: 340px; order: -1; }
  .bf-hero__title { font-size: 40px; }
  .bf-hero__sub { font-size: 26px; }
  .bf-statsbar { grid-template-columns: repeat(2,1fr); }
  .bf-why { grid-template-columns: 1fr; }
  .bf-footer { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .bf-nav { display: none; }
  .bf-how { gap: 20px; }
  .bf-how__arrow { display: none; }
  .bf-how__step { max-width: none; flex-basis: 45%; }
  .bf-why__grid { grid-template-columns: 1fr; }
  .bf-news { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .bf-statsbar { grid-template-columns: 1fr; }
  .bf-footer { grid-template-columns: 1fr; }
  .bf-hero__title { font-size: 32px; }
  .bf-hero__feats { gap: 16px; }
}
