/* =========================================================================
   InvictusBoost — invictus-pages
   Reviews, cart, status, legal pages, the merchant-addable faq / text-block /
   features / feedbacks / categories components, the customer login modal and
   pagination — ported from the site stylesheet (public/assets/css/site.css).

   Everything is scoped under .ibp (set on the root of each of those templates)
   so nothing here can collide with Bootstrap, pro.css or the .ib homepage port.
   Dark theme only, same as the rest of the port.
   ========================================================================= */

/* ---------------------------------------------------------------- tokens */
.ibp {
  --bg: var(--cl-background-primary, #05080f);
  --bg-soft: #0a101c;
  --panel: var(--cl-background-secondary, #0e1524);
  --panel-2: #121b2e;
  --panel-3: #172338;
  --ink: #05080f;
  --ink-fg: #fff;
  --line: rgba(120, 170, 255, 0.12);
  --line-strong: rgba(110, 168, 255, 0.28);
  --text: #f4f7ff;
  --text-dim: #9aadc8;
  --muted: #6d7f99;
  --accent: var(--cl-accent, #4f8cff);
  --accent-rgb: var(--cl-accent-rgb, 79, 140, 255);
  --accent-2: #7eb0ff;
  --accent-2: color-mix(in srgb, var(--accent) 73%, #ffffff);
  --accent-deep: #2f6df0;
  --accent-deep: color-mix(in srgb, var(--accent) 80%, #0020c8);
  --pos: #34d399;
  --warn: #fbbf24;
  --neg: #fb7185;
  --star: var(--accent-2);
  --star-off: #1a2740;
  --track: #0c1422;
  --input-bg: #0c1422;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 20px 44px -28px rgba(0, 0, 0, 0.72);
  --font: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Outfit', 'Work Sans', sans-serif;

  font-family: var(--font);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.ibp *,
.ibp *::before,
.ibp *::after { box-sizing: border-box; }
:where(.ibp) a { color: inherit; text-decoration: none; }
:where(.ibp) img { max-width: 100%; }
:where(.ibp) :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* The site dims the page behind dialogs with a blue-black veil, not pure black. */
.modal-backdrop {
  --bs-backdrop-bg: #02040a;
  --bs-backdrop-opacity: .68;
}

/* ---------------------------------------------------------------- layout */
/* The header (announcement + fixed pill) already reserves the site's
   .site-nav-offset in the flow, so the page starts right under it and
   .ibp-head adds the site's 46px. --ibp-nav-gap is there for a header that
   does not reserve that space. */
.ibp-page {
  padding: var(--ibp-nav-gap, 0px) 0 70px;
  position: relative;
}
.ibp-wrap {
  width: min(1180px, calc(100% - clamp(20px, 4.5vw, 40px)));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}
.ibp-head { padding: 2.875em 0 0.5em; }
.ibp-head h1 {
  font-family: var(--font);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.55;
  letter-spacing: -1.6px;
  margin: 0 0 8px;
  font-weight: 800;
  color: var(--text);
}
.ibp-head p { color: var(--text-dim); margin: 0; font-size: 0.9375rem; }

.ibp-stack { display: grid; gap: 22px; align-content: start; min-width: 0; }
.ibp-grid-2 { display: grid; gap: 22px; grid-template-columns: 1.35fr .9fr; align-items: start; }
.ibp-sticky { position: sticky; top: 90px; }

/* Merchant-addable sections (faq, text block, features, feedbacks, categories). */
.ibp-section { padding: 3.5em 0; position: relative; z-index: 1; }
.ibp-section.bg-block-primary { background: transparent; }
.ibp-section.bg-block-secondary {
  background: color-mix(in srgb, var(--panel) 55%, transparent);
  border-block: 1px solid var(--line);
}
.ibp-section-head { text-align: center; margin-bottom: 26px; }
.ibp-section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.55;
  letter-spacing: -0.04em;
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--text);
  text-wrap: balance;
}
.ibp-section-head p { color: var(--text-dim); margin: 0; font-size: 0.9375rem; }
.ibp-section.alignment-left .ibp-section-head,
.ibp-section.alignment-left .ibp-section-body { text-align: left; }
.ibp-section.alignment-right .ibp-section-head,
.ibp-section.alignment-right .ibp-section-body { text-align: right; }
.ibp-section.alignment-center .ibp-section-body { text-align: center; }
.ibp-section-body { max-width: 780px; margin-inline: auto; }
.ibp-section.alignment-left .ibp-section-body { margin-inline: 0 auto; }
.ibp-section.alignment-right .ibp-section-body { margin-inline: auto 0; }
.ibp-section-body p { color: var(--text-dim); font-size: 0.9375rem; margin: 0; white-space: pre-line; }
.ibp-section-body .btn { margin-top: 22px; }

/* ----------------------------------------------------------------- panel */
.ibp-panel {
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  padding: 1.625em;
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: box-shadow .28s ease, transform .28s cubic-bezier(.2, .8, .2, 1);
  min-width: 0;
}
.ibp-panel > h3,
.ibp-panel form > h3,
.ibp-panel__title {
  font-family: var(--font);
  margin: 0 0 4px;
  font-size: 1.125rem;
  line-height: 1.55;
  font-weight: 800;
  letter-spacing: -.3px;
  color: var(--text);
}
.ibp-panel-sub { color: var(--text-dim); font-size: 13.5px; margin: 0 0 20px; }
.ibp-panel--tight { padding: 18px; }

.ibp-notice {
  padding: 0.8125em 0.9375em;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  border: 1px solid var(--line-strong);
  background: var(--panel-3);
  color: var(--text);
}
.ibp-notice p { margin: 0; }
.ibp-notice p + p { margin-top: 6px; }
.ibp-notice a { color: var(--accent-2); }
.ibp-notice--info { background: var(--panel); color: var(--text-dim); }
.ibp-notice--err { border-color: rgba(194, 24, 43, .35); background: rgba(194, 24, 43, .07); color: var(--neg); }
.ibp-notice--warn { border-color: rgba(163, 90, 0, .3); background: rgba(163, 90, 0, .08); color: var(--warn); }

.ibp-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0.25em 0.625em; border-radius: 999px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .3px;
  background: var(--panel-3); border: 1px solid var(--line-strong); color: var(--text-dim);
}
.ibp-chip--blue { background: var(--text); border-color: var(--text); color: var(--bg); }
.ibp-chip--green { background: rgba(12, 122, 78, .08); border-color: rgba(12, 122, 78, .3); color: var(--pos); }

.ibp-empty { text-align: center; padding: 2.875em 1.25em; color: var(--muted); }
.ibp-empty svg { width: 40px; height: 40px; margin-bottom: 12px; opacity: .35; }
.ibp-empty p { margin: 0 0 14px; }

.ibp-icon-tile {
  width: 44px; height: 44px; border-radius: 10px; flex: none;
  background: var(--text); border: 1px solid var(--text); color: var(--bg);
  display: grid; place-items: center; overflow: hidden;
  transition: background .2s ease, border-color .2s ease;
}
.ibp-icon-tile svg { width: 19px; height: 19px; }
.ibp-icon-tile i { font-size: 18px; line-height: 1; }

/* --------------------------------------------------------------- buttons */
.ibp .btn {
  --bs-btn-focus-shadow-rgb: var(--accent-rgb);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 0.75em 1.25em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 14.5px; font-weight: 700; line-height: 1.55;
  min-height: 44px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: none;
  transition: box-shadow .22s ease, background .2s ease, border-color .2s ease, color .2s ease, filter .18s ease, transform .2s ease;
}
.ibp .btn:hover { filter: brightness(1.06); }
.ibp .btn:active { filter: brightness(.97); }
.ibp .btn > * { position: relative; z-index: 1; }
/* Cursor-following glow (invictus.js sets --btn-x / --btn-y on every .btn, like the site's app.js). */
.ibp .btn {
  --btn-x: 50%;
  --btn-y: 50%;
  --btn-glow: rgba(var(--accent-rgb), 0.42);
  --btn-glow-soft: rgba(255, 255, 255, 0.22);
}
.ibp .btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity .22s ease;
  background: radial-gradient(140px circle at var(--btn-x) var(--btn-y), var(--btn-glow), transparent 58%);
}
.ibp .btn:hover::after,
.ibp .btn:focus-visible::after { opacity: 1; }
.ibp .btn-primary {
  --btn-glow: rgba(var(--accent-rgb), 0.55);
  --btn-glow-soft: rgba(255, 255, 255, 0.28);
}
.ibp .btn-primary::after {
  background:
    radial-gradient(160px circle at var(--btn-x) var(--btn-y), var(--btn-glow-soft), transparent 45%),
    radial-gradient(180px circle at var(--btn-x) var(--btn-y), var(--btn-glow), transparent 62%);
  mix-blend-mode: soft-light;
}
.ibp .btn-ghost { --btn-glow: rgba(var(--accent-rgb), 0.28); }
.ibp .btn[disabled]::after,
.ibp .btn.disabled::after { display: none; }
.ibp .btn svg { width: 16px; height: 16px; flex: none; }
.ibp .btn-lg svg { width: 18px; height: 18px; }
.ibp .btn-sm svg { width: 14px; height: 14px; }

.ibp .btn-primary,
.ibp .btn-primary:focus,
.ibp .btn-primary:disabled,
.ibp .btn-primary.disabled {
  --bs-btn-active-bg: var(--accent);
  --bs-btn-active-border-color: var(--accent);
  --bs-btn-active-color: #fff;
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
  box-shadow: 0 10px 24px -14px rgba(11, 11, 12, 0.9);
}
.ibp .btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.18) 50%, transparent 80%);
  transform: skewX(-12deg) translateX(-140%);
  transition: transform 0s;
}
.ibp .btn-primary:hover::before {
  transform: skewX(-12deg) translateX(240%);
  transition: transform .55s cubic-bezier(.4, 0, .2, 1);
}
.ibp .btn-primary:hover,
.ibp .btn-primary:active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 14px 30px -14px rgba(var(--accent-rgb), 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  transform: translateY(-2px);
}
.ibp .btn-primary:hover svg { transform: translateX(4px); }
.ibp .btn-primary svg { transition: transform .22s cubic-bezier(.2, .8, .2, 1); }
.ibp .btn-primary:active { transform: translateY(0) scale(0.97); transition-duration: 0.08s; }

.ibp .btn-ghost,
.ibp .btn-ghost:focus {
  --bs-btn-active-bg: rgba(var(--accent-rgb), 0.06);
  --bs-btn-active-border-color: var(--accent);
  --bs-btn-active-color: var(--accent-deep);
  background: var(--panel);
  border-color: var(--line-strong);
  color: var(--text);
}
.ibp .btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
  background: rgba(var(--accent-rgb), 0.06);
}

.ibp .btn-block { width: 100%; }
.ibp .btn-lg { padding: 0.9375em 1.625em; font-size: 15.5px; min-height: 50px; }
.ibp .btn-sm { padding: 0.5em 0.8125em; font-size: 0.8125rem; border-radius: 8px; }
.ibp .btn:disabled,
.ibp .btn.disabled,
.ibp .btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; filter: none; }
.ibp .btn:disabled::before,
.ibp .btn.disabled::before { display: none; }

/* Quiet text button ("Continue browsing as guest" on the site). */
.ibp .btn-quiet,
.ibp .btn-quiet:focus {
  width: 100%;
  min-height: 0;
  border: 0;
  background: transparent;
  color: #7f93ae;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.5em;
}
.ibp .btn-quiet:hover { color: var(--text); background: transparent; filter: none; }
.ibp .btn-quiet::after { display: none; }

.ibp-icon-btn {
  background: none; border: 0; color: var(--muted); cursor: pointer;
  padding: 0.375em; border-radius: 7px;
  min-width: 44px; min-height: 44px;
  display: inline-grid; place-items: center;
  transition: color .18s ease, background .18s ease;
}
.ibp-icon-btn:hover { color: var(--neg); background: rgba(194, 24, 43, .08); }
.ibp-icon-btn svg { width: 16px; height: 16px; }

/* ----------------------------------------------------------------- forms */
.ibp .form-control,
.ibp .form-select,
.ibp :where(input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea) {
  width: 100%;
  padding: 0.75em 0.875em;
  border-radius: var(--radius-sm);
  background: var(--input-bg);
  border: 1px solid var(--line-strong);
  color: var(--text);
  outline: none;
  box-shadow: none;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.55;
  transition: border-color .18s, box-shadow .18s;
}
.ibp .form-control::placeholder { color: #b0b0b9; opacity: 1; }
.ibp .form-control:focus,
.ibp .form-select:focus {
  background: var(--input-bg);
  color: var(--text);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .16);
}
.ibp .form-label {
  display: block;
  margin: 0;
  font-size: 12.5px; font-weight: 800; color: var(--text-dim); letter-spacing: .2px;
}
.ibp .form-text { margin: 0; font-size: 0.75rem; color: var(--muted); }
.ibp .form-text.text-danger { color: var(--neg) !important; margin-top: 8px; }
.ibp .ibp-field { display: grid; gap: 7px; }

/* ----------------------------------------------------------------- stars */
.ibp-stars { display: inline-flex; gap: 2px; color: var(--star); line-height: 0; }
.ibp-stars svg { width: 15px; height: 15px; }
.ibp-stars .is-off { color: var(--star-off); }

/* --------------------------------------------------------------- reviews */
.ibp-review-card {
  display: flex; flex-direction: column;
  height: 100%;
  padding: 1.25em;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--panel);
  box-shadow: var(--shadow);
  text-align: left;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.ibp-review-card:hover {
  border-color: rgba(var(--accent-rgb), 0.35);
  background: color-mix(in srgb, var(--accent) 3%, var(--panel));
}
.ibp-review-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ibp-review-date { font-size: 12px; color: var(--muted); white-space: nowrap; }
/* Reviews page: date top-right, chip in the buyer row. Homepage strip (.ibp-rm--home): chip top-right, no date. */
.ibp-review-card .ibp-verified-chip--top { display: none; }
.ibp-rm--home .ibp-review-card .ibp-review-date,
.ibp-rm--home .ibp-review-card .ibp-verified-chip--meta { display: none; }
.ibp-rm--home .ibp-review-card .ibp-verified-chip--top { display: inline-flex; }
.ibp-review-body {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--text-dim);
  overflow-wrap: anywhere;
  white-space: normal;
}
.ibp-review-body--none { color: var(--muted); font-style: italic; }
.ibp-review-more { color: var(--accent-2); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.ibp-review-more:hover { color: var(--text); }
.ibp-review-image { margin-top: 12px; }
.ibp-review-image img {
  display: block; width: 100%; max-height: 16rem; object-fit: cover;
  border-radius: var(--radius-sm); border: 1px solid var(--line);
}
.ibp-review-reply {
  margin-top: 12px;
  padding: 0.6875em 0.8125em;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  background: var(--panel-3);
  border-left: 3px solid var(--accent);
  color: var(--text-dim);
  overflow-wrap: anywhere;
}
.ibp-review-reply p { margin: 0; }
.ibp-review-reply b { color: var(--accent-2); margin-right: 6px; }
.ibp-review-reply__date { display: block; margin-top: 4px; font-size: 11.5px; color: var(--muted); }
.ibp-review-meta { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 14px; }
.ibp-review-who { flex: 1; min-width: 0; }
.ibp-review-who__name { font-size: 13.5px; font-weight: 700; color: var(--text); }
.ibp-review-who__product {
  font-size: 12px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ibp-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--ink); color: #fff;
  font-weight: 800; font-size: 0.8125rem;
}
.ibp-avatar svg { width: 15px; height: 15px; }
.ibp-verified-chip {
  display: inline-flex; align-items: center; gap: 5px; flex: none;
  font-size: 10.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
  color: var(--pos); background: rgba(12, 122, 78, .08); border: 1px solid rgba(12, 122, 78, .28);
  padding: 0.1875em 0.5em; border-radius: 999px;
}

.ibp-review-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* One-row review strip — auto scrolls right to left, pauses on hover, drag to pan. */
.ibp-rm { position: relative; width: 100%; }
.ibp-rm__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  touch-action: pan-y;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.ibp-rm__viewport::-webkit-scrollbar { display: none; }
.ibp-rm.is-live .ibp-rm__viewport { overflow: hidden; cursor: grab; user-select: none; }
.ibp-rm.is-live .ibp-rm__viewport.is-dragging { cursor: grabbing; }
.ibp-rm__track { display: flex; width: max-content; will-change: transform; }
.ibp-rm__set { display: flex; gap: 16px; padding-right: 1em; }
.ibp-rm__item { flex: 0 0 auto; width: min(300px, 78vw); }
.ibp-rm .ibp-review-card { min-height: 168px; }

/* Rating summary panel on the reviews page. */
.ibp-summary { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.ibp-stat-xl {
  font-size: clamp(42px, 6vw, 56px); font-weight: 800; letter-spacing: -2px; line-height: 1;
  color: var(--text); font-variant-numeric: tabular-nums;
}
.ibp-summary__count { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.ibp-summary__bars { flex: 1; min-width: 220px; display: grid; gap: 6px; }
.ibp-bar { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.ibp-bar__label { width: 26px; }
.ibp-bar__track { flex: 1; height: 7px; border-radius: 99px; background: var(--track); overflow: hidden; }
.ibp-bar__track > span { display: block; height: 100%; background: var(--ink); border-radius: inherit; }
.ibp-bar__count { width: 34px; text-align: right; font-variant-numeric: tabular-nums; }
.ibp-summary__note { margin: 2px 0 0; font-size: 11.5px; color: var(--muted); text-align: right; }

/* "What customers say" row above the strip (feedbacks component). */
.ibp-reviews-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.ibp-reviews-head h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 34px);
  line-height: 1.55;
  letter-spacing: -0.04em;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text);
}
.ibp-reviews-head__sub { color: var(--text-dim); font-size: 0.9375rem; margin: 0 0 6px; }
.ibp-rating-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--text-dim); font-size: 14px; }
.ibp-rating-row b { color: var(--text); }
.ibp-section--tight { padding: 2.125em 0; }

/* ------------------------------------------------------------------ cart */
.ibp-grid-2.is-empty { grid-template-columns: 1fr; }
.ibp-cart-lines { display: grid; gap: 10px; }
.ibp-cart-line {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 0.75em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--panel);
}
.ibp-cart-thumb { width: 44px; height: 44px; }
.ibp-cart-thumb--img { background: var(--bg); border-color: var(--line); }
.ibp-cart-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ibp-cart-info { flex: 1 1 170px; min-width: 0; }
.ibp-cart-name {
  display: block;
  font-size: 13.5px; font-weight: 700; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ibp-cart-name:hover { color: var(--accent-2); }
.ibp-cart-sub { margin: 0; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ibp-cart-hint { margin-top: 4px; font-size: 12px; color: var(--text-dim); }
.ibp-cart-hint--ok { display: flex; align-items: center; gap: 5px; color: var(--pos); }
.ibp-cart-hint svg { width: 14px; height: 14px; flex: none; }
.ibp-cart-addons { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.ibp-cart-controls { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.ibp-cart-price { min-width: 64px; text-align: right; font-size: 13.5px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }

.ibp-qty {
  display: inline-flex; align-items: center; flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 8px; overflow: hidden; background: var(--panel);
}
.ibp-qty button {
  width: 44px; height: 44px; padding: 0;
  display: grid; place-items: center;
  background: none; border: 0; border-radius: 0;
  color: var(--text-dim); cursor: pointer; font-size: 1rem; line-height: 1;
  transition: background .18s ease, color .18s ease;
}
.ibp-qty button:hover:not(:disabled) { background: var(--text); color: var(--bg); }
.ibp-qty button:disabled { opacity: .4; cursor: not-allowed; }
.ibp .ibp-qty input {
  min-width: 42px; width: 52px; height: 44px;
  padding: 0 0.25em;
  text-align: center; font-weight: 800; font-size: 1rem;
  border: 0; border-radius: 0; background: transparent; color: var(--text);
  outline: none; box-shadow: none;
  -moz-appearance: textfield;
}
.ibp .ibp-qty input:focus { background: color-mix(in srgb, var(--accent-2) 12%, transparent); box-shadow: none; }
.ibp .ibp-qty input::-webkit-outer-spin-button,
.ibp .ibp-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.ibp-totals { display: grid; gap: 8px; font-size: 13.5px; }
.ibp-totals > div { display: flex; justify-content: space-between; gap: 12px; color: var(--text-dim); }
.ibp-totals > div.ibp-totals__grand {
  font-size: 1.125rem; font-weight: 800; color: var(--text);
  padding-top: 0.625em; border-top: 1px solid var(--line-strong);
}
.ibp-totals__off { color: var(--pos); }
.ibp-cart-submit { margin-top: 18px; }
.ibp-cart-loading { text-align: center; padding: 2.875em 1.25em; }
.ibp-cart-loading .spinner-border { color: var(--accent) !important; }
.ibp-trust { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-dim); }
.ibp-trust svg { width: 18px; height: 18px; flex: none; color: var(--pos); }

.ibp-bundle { display: grid; gap: 12px; }
.ibp-bundle__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ibp-bundle__name { font-size: 13.5px; font-weight: 700; }
.ibp-bundle__ends { font-size: 11.5px; color: var(--muted); }
.ibp-bundle__items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ibp-bundle__items li { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.ibp-bundle__items img,
.ibp-bundle__ph { width: 32px; height: 32px; border-radius: 8px; flex: none; object-fit: cover; background: var(--panel-3); }
.ibp-bundle__item-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.ibp-bundle__ok { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--pos); }
.ibp-bundle__ok svg { width: 14px; height: 14px; }
.ibp-bundle .btn-sm { min-height: 0; padding: 0.3em 0.7em; font-size: 0.75rem; }

/* ---------------------------------------------------------------- status */
.ibp-status-list { display: grid; gap: 12px; }
.ibp-status-group .ibp-status-list { gap: 10px; margin-top: 14px; }
.ibp .status-card {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 0.75em 0.875em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--panel);
  text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease;
}
.ibp .status-card:hover {
  border-color: rgba(var(--accent-rgb), 0.35);
  background: color-mix(in srgb, var(--accent) 3%, var(--panel));
}
.ibp .status-card h3 {
  margin: 0;
  font-family: var(--font);
  font-size: 13.5px; font-weight: 700; line-height: 1.55; letter-spacing: 0;
  color: var(--text);
  min-width: 0; overflow-wrap: anywhere;
}
.ibp .status-card .status {
  flex: none;
  gap: 7px;
  padding: 0.25em 0.625em;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--panel-3);
  font-size: 11.5px; letter-spacing: .3px;
}
.ibp .status-card .status .indicator { width: 7px; height: 7px; }
.ibp .status-card .status .label { font-weight: 800; }
/* Products that are not in a group sit straight on the page, so they get the panel shell. */
.ibp-status > .ibp-status-list > .status-card {
  padding: 1.125em 1.25em;
  border-radius: var(--radius);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

/* ----------------------------------------------------------------- prose */
.ibp-prose { max-width: 820px; overflow-wrap: anywhere; }
.ibp-prose h1, .ibp-prose h2, .ibp-prose h3, .ibp-prose h4, .ibp-prose h5, .ibp-prose h6,
.ibp-prose .e-heading-h1, .ibp-prose .e-heading-h2, .ibp-prose .e-heading-h3 {
  font-family: var(--font);
  margin: 26px 0 4px;
  font-size: 1.125rem;
  line-height: 1.55;
  font-weight: 800;
  letter-spacing: -.3px;
  color: var(--text);
}
.ibp-prose h1, .ibp-prose .e-heading-h1 { font-size: 1.375rem; }
.ibp-prose h2, .ibp-prose .e-heading-h2 { font-size: 1.25rem; }
.ibp-prose p, .ibp-prose li, .ibp-prose .e-paragraph, .ibp-prose td, .ibp-prose th {
  color: var(--text-dim); font-size: 14.5px; line-height: 1.55;
}
.ibp-prose p, .ibp-prose .e-paragraph { margin: 14.5px 0; }
.ibp-prose ul, .ibp-prose ol { margin: 14.5px 0; padding-left: 1.25em; }
.ibp-prose li + li { margin-top: 4px; }
.ibp-prose a { color: var(--accent-2); }
.ibp-prose a:hover { color: var(--text); }
.ibp-prose strong, .ibp-prose b { color: var(--text); font-weight: 700; }
.ibp-prose hr, .ibp-prose .e-hr { height: 1px; border: 0; background: var(--line-strong); margin: 22px 0; opacity: 1; }
.ibp-prose blockquote, .ibp-prose .e-quote {
  margin: 14.5px 0; padding: 0.6875em 0.8125em;
  border-radius: var(--radius-sm); background: var(--panel-3);
  border-left: 3px solid var(--accent); color: var(--text-dim); font-size: 14.5px;
}
.ibp-prose img { border-radius: var(--radius-sm); height: auto; }
.ibp-prose > :first-child { margin-top: 0; }
.ibp-prose > :last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------- faq */
.ibp-faq {
  --bs-accordion-bg: transparent;
  --bs-accordion-border-width: 0;
  display: grid; gap: 10px;
  max-width: 780px; margin-inline: auto;
}
.ibp-faq .accordion-item {
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--text);
  overflow: hidden;
  transition: border-color .2s ease, background-color .2s ease;
}
.ibp-faq .accordion-item:has(.accordion-button:not(.collapsed)) {
  background: color-mix(in srgb, var(--accent) 3%, var(--panel));
}
.ibp-faq .accordion-header { margin: 0; font-size: inherit; line-height: inherit; letter-spacing: 0; }
.ibp-faq .accordion-button {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  width: 100%;
  padding: 1em 1.125em;
  border: 0; border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 14.5px; font-weight: 700; line-height: 1.55;
  text-align: left;
}
.ibp-faq .accordion-button:not(.collapsed) { background: transparent; color: var(--text); box-shadow: none; }
.ibp-faq .accordion-button:focus { box-shadow: none; }
.ibp-faq .accordion-button:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.ibp-faq .accordion-button::after {
  content: '+';
  width: auto; height: auto; margin-left: auto;
  background: none;
  transform: none;
  transition: none;
  color: var(--accent);
  font-size: 1.1875rem; font-weight: 800; line-height: 1.55;
}
.ibp-faq .accordion-button:not(.collapsed)::after { content: '\2212'; background: none; transform: none; }
.ibp-faq .accordion-body {
  padding: 0 1.125em 1em;
  color: var(--text-dim);
  font-size: 0.875rem;
}
.ibp-faq .accordion-body span { white-space: pre-line; }

/* -------------------------------------------------------------- features */
/* The site's .premium-section / .premium-tile ("Premium features" on the homepage). */
.ibp-premium { isolation: isolate; }
.ibp-premium::before {
  content: '';
  position: absolute;
  inset: 8% 4% auto;
  height: 58%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 55% 70% at 18% 40%, rgba(var(--accent-rgb), 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 55% at 88% 30%, rgba(126, 176, 255, 0.08) 0%, transparent 68%),
    linear-gradient(90deg, transparent 0%, rgba(var(--accent-rgb), 0.04) 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 78%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 78%, transparent);
}
.ibp-premium__head { text-align: left; max-width: 640px; margin-bottom: 22px; }
.ibp-premium__head h2 { margin: 0 0 8px; letter-spacing: -0.03em; }
.ibp-premium__head p { margin: 0; max-width: 52ch; }
.ibp-feature-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(var(--ibp-cols, 3), minmax(0, 1fr));
}
.ibp-feature-card {
  position: relative;
  overflow: hidden;
  padding: 1.375em 1.375em 1.25em;
  border-radius: 14px;
  border: 1px solid rgba(120, 170, 255, 0.16);
  background: linear-gradient(165deg, rgba(18, 27, 46, 0.92) 0%, rgba(10, 16, 28, 0.96) 100%);
  box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.7);
  transition: transform .28s cubic-bezier(.2, .8, .2, 1), border-color .22s ease, box-shadow .28s ease;
}
.ibp-feature-card__glow {
  position: absolute;
  inset: auto -20% -40% auto;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.18) 0%, transparent 68%);
  pointer-events: none;
}
.ibp-feature-card:hover {
  border-color: rgba(var(--accent-rgb), 0.42);
  box-shadow: 0 22px 44px -26px rgba(var(--accent-rgb), 0.35);
  transform: translateY(-2px);
}
.ibp-feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.07) 50%, transparent 80%);
  transform: skewX(-10deg) translateX(-130%);
  transition: transform 0s;
}
.ibp-feature-card:hover::before {
  transform: skewX(-10deg) translateX(220%);
  transition: transform .6s cubic-bezier(.4, 0, .2, 1);
}
.ibp-feature-card .ibp-icon-tile { position: relative; z-index: 1; margin-bottom: 12px; width: 40px; height: 40px; }
.ibp-feature-card .ibp-icon-tile > * { transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
.ibp-feature-card:hover .ibp-icon-tile > * { animation: ibpIconBoost .65s cubic-bezier(.2, .85, .2, 1) both; }
@keyframes ibpIconBoost {
  0%   { transform: translateY(0) rotate(0) scale(1); }
  35%  { transform: translateY(-4px) rotate(-14deg) scale(1.12); }
  70%  { transform: translateY(-1px) rotate(-8deg) scale(1.05); }
  100% { transform: translateY(-2px) rotate(-10deg) scale(1.06); }
}
.ibp-feature-card h3 {
  position: relative; z-index: 1;
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.0625rem; font-weight: 700; line-height: 1.55; letter-spacing: -0.02em;
  color: var(--text);
}
.ibp-feature-card p { position: relative; z-index: 1; margin: 0; color: var(--text-dim); font-size: 13.5px; line-height: 1.5; }
.ibp-feature-card p > span { white-space: pre-line; }

/* ------------------------------------------------------------ categories */
.ibp-cat-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.ibp-cat-grid.is-centered { display: flex; flex-wrap: wrap; justify-content: center; }
.ibp-cat-grid.is-centered > * { flex: 0 1 280px; }
.ibp-cat-card {
  display: flex; flex-direction: column;
  height: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .28s cubic-bezier(.2, .8, .2, 1), border-color .22s ease, box-shadow .28s ease;
}
.ibp-cat-card:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
  box-shadow: 0 16px 36px -28px rgba(var(--accent-rgb), 0.4), var(--shadow);
  transform: translateY(-3px);
}
.ibp-cat-card__media {
  aspect-ratio: 16 / 9;
  display: grid; place-items: center;
  background:
    radial-gradient(58% 52% at 40% 34%, rgba(var(--accent-rgb), .28) 0%, transparent 70%),
    linear-gradient(165deg, var(--panel-3) 0%, var(--panel) 46%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  color: var(--text-dim);
}
.ibp-cat-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ibp-cat-card__media svg { width: 56px; height: 56px; opacity: .45; }
.ibp-cat-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 1.125em 1.25em 1.25em; flex: 1; }
.ibp-cat-card__body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.0625rem; font-weight: 700; line-height: 1.55; letter-spacing: -0.02em;
  color: var(--text);
}
.ibp-cat-card__body p { margin: 0; color: var(--text-dim); font-size: 0.875rem; }
.ibp-cat-card__body .btn { margin-top: auto; }
.ibp-cat-card__body p + .btn { margin-top: 10px; }

/* ------------------------------------------------------------ pagination */
.ibp-pager { margin-top: 26px; }
.ibp-pager__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
.ibp-pager__info { margin: 0; font-size: 12.5px; color: var(--muted); }
.ibp-pager__info span { color: var(--text-dim); font-weight: 700; }
.ibp-pager .pagination { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ibp-pager .pagination .page-item .page-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px;
  margin: 0;
  padding: 0 0.875em;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--text-dim);
  font-size: 0.875rem; font-weight: 700; line-height: 1;
  box-shadow: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .18s ease;
}
.ibp-pager .pagination .page-item a.page-link:hover {
  color: var(--accent-deep);
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.07);
}
.ibp-pager .pagination .page-item a.page-link:active { transform: scale(.97); }
.ibp-pager .pagination .page-item.active .page-link {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
  box-shadow: 0 10px 24px -14px rgba(11, 11, 12, 0.9);
  transform: translateY(-1px);
}
.ibp-pager .pagination .page-item.disabled .page-link { opacity: .45; }

/* ----------------------------------------------------------- login modal */
.ibp-modal {
  --bs-modal-width: 440px;
  --bs-modal-bg: var(--panel);
  --bs-modal-color: var(--text);
  --bs-modal-border-color: var(--line-strong);
  --bs-modal-border-radius: var(--radius);
  --bs-modal-padding: 0;
  --bs-modal-header-padding: 0;
  --bs-modal-header-border-width: 0;
  --bs-modal-margin: 12px;
}
.ibp-modal .modal-content {
  position: relative;
  padding: 1.75em 1.625em 1.375em;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .5);
  color: var(--text);
}
.ibp-modal .modal-header { display: block; padding: 0 44px 0 0; border: 0; margin: 0 0 16px; }
.ibp-modal__kicker {
  font-size: 0.6875rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 10px;
}
.ibp-modal .modal-title {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.02em;
  color: var(--text);
}
.ibp-modal .btn-close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; padding: 0; margin: 0;
  border-radius: 10px;
  border: 1px solid var(--line);
  background-color: transparent;
  background-size: 11px;
  opacity: .6;
  box-shadow: none;
  transition: opacity .18s ease, border-color .18s ease;
}
.ibp-modal .btn-close:hover { opacity: 1; border-color: var(--line-strong); }
.ibp-modal .modal-body { padding: 0; }
.ibp-modal .ibp-modal__hint { display: block; margin: 4px 0 0; font-size: 0.75rem; color: var(--muted); }
.ibp-modal .ibp-modal__hint span { color: var(--text-dim); font-weight: 600; }
.ibp-modal .form-control { margin-top: 10px; }
.ibp-modal .btn-primary { margin-top: 18px; }
.ibp-modal .btn-quiet { margin-top: 10px; }
.ibp-modal .btn svg { width: 18px; height: 18px; }
.ibp-modal__otp { display: flex; gap: 8px; margin-top: 10px; }
.ibp-modal__otp .form-control {
  flex: 1 1 0; min-width: 0; height: 52px; margin: 0; padding: 0;
  text-align: center; font-size: 1.25rem; font-weight: 700;
}
.ibp-modal__or { display: flex; align-items: center; gap: 10px; margin: 16px 0 12px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.ibp-modal__or::before,
.ibp-modal__or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.ibp-modal altcha-widget { display: block; margin-top: 12px; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 900px) {
  .ibp-grid-2 { grid-template-columns: 1fr; }
  .ibp-sticky { position: static; }
  .ibp .btn { min-height: 44px; padding: 0.6875em 1em; }
  .ibp .btn-lg { min-height: 48px; padding: 0.875em 1.25em; font-size: 0.9375rem; }
  .ibp .btn-sm { padding: 0.5em 0.8125em; }
  .ibp-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .ibp-panel { padding: 1.25em 1em; }
  .ibp-panel--tight { padding: 16px; }
  .ibp-section { padding: 2.5em 0; }
  .ibp .btn-lg { width: 100%; }
  .ibp-modal .modal-content { padding: 1.375em 1.125em; }
}
@media (max-width: 640px) {
  .ibp-feature-grid { grid-template-columns: 1fr; }
  .ibp-cat-grid.is-centered > * { flex-basis: 100%; }
  .ibp-reviews-head { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 480px) {
  .ibp-cart-controls { width: 100%; justify-content: space-between; margin-left: 0; padding-left: 56px; }
  .ibp-pager__row { justify-content: center; }
  .ibp-pager .pagination { justify-content: center; }
  .ibp-pager .pagination .page-item .page-link { min-width: 36px; height: 36px; padding: 0 0.7em; }
}
@media (prefers-reduced-motion: reduce) {
  .ibp .btn-primary:hover,
  .ibp-feature-card:hover,
  .ibp-cat-card:hover { transform: none; }
  .ibp .btn-primary::before,
  .ibp-feature-card::before { display: none; }
  .ibp-feature-card:hover .ibp-icon-tile > * { animation: none; }
}