/* BFV Hosting Deals - all rules scoped under .bfvhd (modal/bar live inside it too). */
.bfvhd {
  --ink: #121316; --ink-2: #2a2c33;
  --gold: #ffc21a; --gold-2: #ffd659; --gold-deep: #8a6200; --gold-wash: #fff6d6;
  --red: #e5322d; --red-wash: #fdecea;
  --green: #12965a; --green-wash: #e5f5ec;
  --paper: #faf9f6; --text: #17181c; --muted: #5d6270;
  --border: #e8e6e1; --border-strong: #d4d1c9;
  --r-sm: 6px; --r-lg: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  box-sizing: border-box;
  max-width: 1280px; margin: 0 auto; padding: 16px;
  font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--text);
}
.bfvhd *, .bfvhd *::before, .bfvhd *::after { box-sizing: border-box; }
.bfvhd [hidden] { display: none !important; }
.bfvhd a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 2px; }
.bfvhd a:hover { background: var(--gold-wash); }
.bfvhd :focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 3px; }
.bfvhd-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bfvhd .bfvhd-muted { color: var(--muted); }

/* header */
.bfvhd .bfvhd-h1 { margin: 0 0 8px; font-size: clamp(26px, 4vw, 38px); line-height: 1.15; color: var(--ink); letter-spacing: -0.01em; }
.bfvhd .bfvhd-intro { margin: 0 0 8px; max-width: 78ch; color: var(--ink-2); font-size: 16px; }
.bfvhd .bfvhd-status { margin: 0 0 16px; font-size: 13px; color: var(--muted); }
.bfvhd .bfvhd-status::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--green); vertical-align: 1px; }

/* featured */
.bfvhd .bfvhd-featured { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 0 0 16px; padding: 16px; background: var(--gold-wash); border: 1px solid var(--gold); border-radius: var(--r-lg); }
.bfvhd .bfvhd-featured p { margin: 0; }
.bfvhd .bfvhd-featured-img { max-width: 120px; height: auto; border-radius: var(--r-sm); }
.bfvhd .bfvhd-featured-body { flex: 1 1 280px; }
.bfvhd .bfvhd-featured-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--gold-deep); }
.bfvhd .bfvhd-featured-label em { font-style: normal; font-weight: 500; margin-left: 6px; color: var(--muted); }
.bfvhd .bfvhd-featured-name { font-size: 20px; font-weight: 700; color: var(--ink); }
.bfvhd .bfvhd-featured-tag { font-weight: 600; }
.bfvhd .bfvhd-featured-text { color: var(--ink-2); font-size: 14px; }

.bfvhd .bfvhd-disclosure { margin: 0 0 12px; padding: 8px 12px; font-size: 13px; color: var(--muted); background: var(--paper); border-left: 3px solid var(--gold); }

/* buttons */
.bfvhd .bfvhd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 6px 14px; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); background: #fff; border: 1px solid var(--border-strong); border-radius: var(--r-sm); cursor: pointer; text-decoration: none; }
.bfvhd .bfvhd-btn:hover { background: var(--gold-wash); border-color: var(--gold-deep); }
.bfvhd .bfvhd-btn:disabled { opacity: .5; cursor: not-allowed; }
.bfvhd .bfvhd-btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.bfvhd .bfvhd-btn-primary:hover { background: var(--ink-2); color: var(--gold-2); }
.bfvhd .bfvhd-btn-sm { min-height: 32px; padding: 3px 12px; }
.bfvhd .bfvhd-btn-ghost { background: transparent; }
.bfvhd .bfvhd-btn-ghost-dark { background: transparent; color: #fff; border-color: #555; }
.bfvhd .bfvhd-btn-ghost-dark:hover { background: var(--ink-2); color: var(--gold-2); }

/* toolbar */
.bfvhd .bfvhd-toolbar { margin: 0 0 12px; padding: 12px; background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-lg); }
.bfvhd .bfvhd-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 10px; }
.bfvhd .bfvhd-row:last-child { margin-bottom: 0; }
.bfvhd .bfvhd-field { display: flex; flex-direction: column; gap: 3px; min-width: 130px; flex: 1 1 140px; }
.bfvhd .bfvhd-row:first-child .bfvhd-field { flex: 2 1 260px; }
.bfvhd .bfvhd-field label { font-size: 12px; font-weight: 600; color: var(--muted); }
.bfvhd .bfvhd-input { width: 100%; min-height: 38px; padding: 6px 10px; font: inherit; font-size: 14px; color: var(--text); background: #fff; border: 1px solid var(--border-strong); border-radius: var(--r-sm); }
.bfvhd .bfvhd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bfvhd .bfvhd-chip { min-height: 38px; padding: 4px 12px; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); background: #fff; border: 1px solid var(--border-strong); border-radius: 999px; cursor: pointer; }
.bfvhd .bfvhd-chip:hover { border-color: var(--gold-deep); }
.bfvhd .bfvhd-chip.is-on { background: var(--ink); color: var(--gold-2); border-color: var(--ink); }
.bfvhd .bfvhd-row-toggles { align-items: center; }
.bfvhd .bfvhd-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
.bfvhd .bfvhd-toggle input { width: 18px; height: 18px; accent-color: var(--ink); }
.bfvhd .bfvhd-activen { margin-left: auto; font-size: 13px; color: var(--gold-deep); font-weight: 600; }

/* result bar */
.bfvhd .bfvhd-bar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 0 0 8px; }
.bfvhd .bfvhd-count { margin: 0; flex: 1 1 auto; font-size: 14px; color: var(--muted); }
.bfvhd .bfvhd-sortlabel { font-size: 13px; color: var(--muted); }
.bfvhd .bfvhd-sortsel { width: auto; }
.bfvhd .bfvhd-pill { position: sticky; top: 8px; z-index: 5; display: block; margin: 0 auto 8px; padding: 6px 16px; font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); background: var(--gold); border: 0; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.2); cursor: pointer; }

/* badges */
.bfvhd .bfvhd-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.bfvhd .bfvhd-badge { display: inline-block; padding: 1px 7px; font-size: 11px; font-weight: 700; line-height: 1.6; border-radius: 4px; border: 1px solid transparent; }
.bfvhd .bfvhd-badge-new { background: var(--gold); color: var(--ink); }
.bfvhd .bfvhd-badge-sold { background: var(--red-wash); color: var(--red); border-color: var(--red); }
.bfvhd .bfvhd-badge-real { background: var(--green-wash); color: var(--green); border-color: var(--green); }
.bfvhd .bfvhd-badge-rec { background: #fff; color: var(--ink-2); border-color: var(--border-strong); }
.bfvhd .bfvhd-badge-limit { background: var(--gold-wash); color: var(--gold-deep); }
.bfvhd .bfvhd-coupon { display: inline-flex; align-items: center; gap: 6px; padding: 0 0 0 7px; font: inherit; font-size: 11px; line-height: 1.6; background: #fff; border: 1px dashed var(--gold-deep); border-radius: 4px; cursor: pointer; overflow: hidden; }
.bfvhd .bfvhd-coupon-code { font-family: var(--mono); font-weight: 700; color: var(--ink); }
.bfvhd .bfvhd-coupon-act { padding: 0 7px; background: var(--gold-wash); color: var(--gold-deep); font-weight: 700; }
.bfvhd .bfvhd-coupon.is-copied .bfvhd-coupon-act { background: var(--green-wash); color: var(--green); }

/* deals: table (desktop) and cards (mobile) */
.bfvhd .bfvhd-tablewrap { display: none; }
.bfvhd .bfvhd-cards { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.bfvhd .bfvhd-card { padding: 12px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); }
.bfvhd .bfvhd-card.is-sold { opacity: .6; }
.bfvhd .bfvhd-card-top { display: flex; justify-content: space-between; gap: 8px; }
.bfvhd .bfvhd-card-cmp { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.bfvhd .bfvhd-card-cmp input, .bfvhd .bfvhd-cmp { width: 20px; height: 20px; accent-color: var(--ink); }
.bfvhd .bfvhd-card-price { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 10px 0 4px; }
.bfvhd .bfvhd-card-specs { margin: 0 0 8px; font-size: 14px; color: var(--ink-2); }
.bfvhd .bfvhd-card-meta { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 0 0 10px; font-size: 13px; }
.bfvhd .bfvhd-card-meta dt { color: var(--muted); }
.bfvhd .bfvhd-card-meta dd { margin: 0; }
.bfvhd .bfvhd-card-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.bfvhd .bfvhd-provider { color: var(--ink); font-size: 16px; }
.bfvhd .bfvhd-plan { color: var(--muted); font-size: 14px; }
.bfvhd .bfvhd-price { font-size: 17px; font-weight: 700; color: var(--ink); }
.bfvhd .bfvhd-was { margin-left: 6px; font-size: 13px; color: var(--muted); }
.bfvhd .is-fresh { animation: bfvhd-flash 6s ease-out; }
@keyframes bfvhd-flash { 0%, 40% { background: var(--gold-wash); box-shadow: inset 4px 0 0 var(--gold); } 100% { background: transparent; box-shadow: none; } }
.bfvhd .bfvhd-card.is-fresh { animation-name: bfvhd-flash-card; }
@keyframes bfvhd-flash-card { 0%, 40% { background: var(--gold-wash); border-color: var(--gold); } 100% { background: #fff; } }

@media (min-width: 900px) {
  .bfvhd .bfvhd-cards { display: none; }
  .bfvhd .bfvhd-tablewrap { display: block; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); }
  .bfvhd .bfvhd-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
  .bfvhd .bfvhd-table thead th { position: sticky; top: 0; z-index: 3; padding: 10px 10px; text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #fff; background: var(--ink); white-space: nowrap; }
  .bfvhd .bfvhd-table thead th:first-child { border-top-left-radius: calc(var(--r-lg) - 1px); }
  .bfvhd .bfvhd-table thead th:last-child { border-top-right-radius: calc(var(--r-lg) - 1px); }
  .bfvhd .bfvhd-table td { padding: 10px; vertical-align: top; border-bottom: 1px solid var(--border); }
  .bfvhd .bfvhd-table tbody tr:hover td { background: var(--paper); }
  .bfvhd .bfvhd-table tr.is-sold td { opacity: .6; background: var(--paper); }
  .bfvhd .bfvhd-c-cmp { width: 36px; }
  .bfvhd .bfvhd-c-prov { min-width: 200px; }
  .bfvhd .bfvhd-c-specs .bfvhd-spec { display: block; white-space: nowrap; color: var(--ink-2); }
  .bfvhd .bfvhd-c-price { white-space: nowrap; }
  .bfvhd .bfvhd-num { white-space: nowrap; font-variant-numeric: tabular-nums; }
  .bfvhd .bfvhd-c-found { white-space: nowrap; color: var(--muted); }
  .bfvhd .bfvhd-c-act { white-space: nowrap; }
  .bfvhd .bfvhd-c-act .bfvhd-postlink { display: block; margin-top: 6px; font-size: 13px; }
  .bfvhd .bfvhd-sortbtn { padding: 0; font: inherit; font-weight: inherit; text-transform: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
  .bfvhd .bfvhd-sortbtn:hover { color: var(--gold-2); }
  .bfvhd .bfvhd-sortable.is-sorted .bfvhd-sortbtn { color: var(--gold-2); }
  .bfvhd .bfvhd-table :focus-visible { outline-offset: 0; }
  .bfvhd .bfvhd-sortsel, .bfvhd .bfvhd-sortlabel { display: none; }
}
@media (max-width: 899px) {
  .bfvhd { padding: 12px; }
  .bfvhd .bfvhd-sortbtn { font: inherit; }
}

/* empty / more */
.bfvhd .bfvhd-empty { padding: 32px 16px; text-align: center; color: var(--muted); background: var(--paper); border: 1px dashed var(--border-strong); border-radius: var(--r-lg); }
.bfvhd .bfvhd-empty-title { margin: 0 0 12px; font-size: 18px; font-weight: 700; color: var(--ink); }
.bfvhd .bfvhd-more { margin: 16px 0; text-align: center; }

/* ssr fallback */
.bfvhd .bfvhd-table-ssr { width: 100%; border-collapse: collapse; font-size: 14px; }
.bfvhd .bfvhd-table-ssr caption { text-align: left; padding: 6px 0; font-weight: 700; }
.bfvhd .bfvhd-table-ssr th, .bfvhd .bfvhd-table-ssr td { padding: 8px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.bfvhd .bfvhd-table-ssr thead th { background: var(--ink); color: #fff; }
.bfvhd .bfvhd-ssr { overflow-x: auto; }

/* compare bar and modal */
.bfvhd .bfvhd-cmpbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; color: #fff; background: var(--ink); border-top: 3px solid var(--gold); box-shadow: 0 -4px 16px rgba(0,0,0,.25); }
.bfvhd .bfvhd-cmpbar-in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; max-width: 1280px; margin: 0 auto; padding: 10px 16px; }
.bfvhd .bfvhd-cmphint { font-size: 13px; color: #c9c7c0; }
.bfvhd .bfvhd-spacer { flex: 1 1 auto; }
body.bfvhd-has-bar { padding-bottom: 72px; }
body.bfvhd-modal-open { overflow: hidden; }
.bfvhd .bfvhd-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 12px; background: rgba(18,19,22,.7); }
.bfvhd .bfvhd-modal-box { display: flex; flex-direction: column; width: 100%; max-width: 1100px; max-height: 92vh; padding: 16px; background: #fff; border-radius: var(--r-lg); border-top: 4px solid var(--gold); }
.bfvhd .bfvhd-modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.bfvhd .bfvhd-modal-head h2 { margin: 0; font-size: 22px; color: var(--ink); }
.bfvhd .bfvhd-modal-note { margin: 4px 0 10px; font-size: 13px; }
.bfvhd .bfvhd-cmpscroll { overflow: auto; }
.bfvhd .bfvhd-cmptable { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.bfvhd .bfvhd-cmptable th, .bfvhd .bfvhd-cmptable td { padding: 8px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.bfvhd .bfvhd-cmptable thead th { position: sticky; top: 0; background: var(--ink); color: #fff; z-index: 1; }
.bfvhd .bfvhd-cmptable thead .bfvhd-plan { color: #c9c7c0; font-weight: 400; }
.bfvhd .bfvhd-cmptable tbody th { width: 150px; font-weight: 600; color: var(--muted); background: var(--paper); }
.bfvhd .bfvhd-cmptable td.is-best { background: var(--green-wash); color: var(--green); font-weight: 700; }

/* content */
.bfvhd .bfvhd-content { max-width: 80ch; margin: 40px 0 0; }
.bfvhd .bfvhd-section { margin: 0 0 28px; }
.bfvhd .bfvhd-section h2 { margin: 0 0 10px; padding-bottom: 6px; font-size: 24px; line-height: 1.25; color: var(--ink); border-bottom: 2px solid var(--gold); }
.bfvhd .bfvhd-section p, .bfvhd .bfvhd-section li { color: var(--ink-2); }
.bfvhd .bfvhd-section li { margin-bottom: 6px; }
.bfvhd .bfvhd-faq details { margin: 0 0 8px; background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-sm); }
.bfvhd .bfvhd-faq summary { padding: 10px 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
.bfvhd .bfvhd-faq summary:hover { background: var(--gold-wash); }
.bfvhd .bfvhd-faq-a { padding: 0 14px 4px; }

@media (prefers-reduced-motion: reduce) { .bfvhd .is-fresh { animation: none; background: var(--gold-wash); } }

@media print {
  .bfvhd .bfvhd-toolbar, .bfvhd .bfvhd-cmpbar, .bfvhd .bfvhd-modal, .bfvhd .bfvhd-pill, .bfvhd .bfvhd-more, .bfvhd .bfvhd-bar, .bfvhd .bfvhd-cards, .bfvhd .bfvhd-cmp, .bfvhd .bfvhd-c-cmp, .bfvhd .bfvhd-featured { display: none !important; }
  .bfvhd .bfvhd-tablewrap { display: block !important; border: 0; }
  .bfvhd .bfvhd-table thead th { position: static; color: #000; background: none; border-bottom: 2px solid #000; }
  .bfvhd .bfvhd-table td { border-bottom: 1px solid #999; }
  .bfvhd a { text-decoration: none; color: #000; }
  .bfvhd { max-width: none; padding: 0; }
}
