/* Product page: compact header, screenshot strip, description on the left, details on the right. */
.bgp {
	--bgp-accent: #c8cdd4;
	--bgp-accent-strong: #eef0f3;
	--bgp-text: #d4d8dd;
	--bgp-muted: #8a9099;
	--bgp-line: rgba(255, 255, 255, .07);
	--bgp-line-strong: rgba(255, 255, 255, .12);
	--bgp-card: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .02));
	--bgp-flat: rgba(255, 255, 255, .03);
	--bgp-radius: 14px;
	box-sizing: border-box;
	width: 100%;
	max-width: 1760px;
	margin: 0 auto;
	padding: 14px clamp(16px, 2.2vw, 40px) 64px;
	color: var(--bgp-text);
	font-size: 15px;
}
.bgp *, .bgp *::before, .bgp *::after { box-sizing: border-box; }
.bgp svg, .bgp-mapmodal svg, .bgp-lightbox svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.bgp ul { list-style: none; margin: 0; padding: 0; }
.bgp li { margin: 0; }

/* Breadcrumb */
.bgp-crumbs { font-size: 13px; color: var(--bgp-muted); margin: 0 0 14px; display: flex; flex-wrap: wrap; align-items: center; }
.bgp-crumbs a { color: var(--bgp-muted); text-decoration: none; transition: color .2s; }
.bgp-crumbs a:hover { color: var(--bgp-accent-strong); }
.bgp-crumbs span[aria-hidden] { margin: 0 9px; opacity: .45; }

/* Header */
.bgp-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 28px; align-items: start; margin-bottom: 20px; }
@media (max-width: 900px) { .bgp-head { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
.bgp-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.bgp-cats a { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #111; background: var(--bgp-accent); text-decoration: none; padding: 4px 10px; border-radius: 6px; }
.bgp-cats a:hover { background: var(--bgp-accent-strong); }
.bgp-title { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.08; margin: 0; color: #fff; letter-spacing: -.02em; font-weight: 800; word-break: break-word; }
.bgp-ver { display: inline-block; vertical-align: middle; font-size: 13px; font-weight: 700; letter-spacing: 0; color: var(--bgp-accent); border: 1px solid var(--bgp-line-strong); border-radius: 999px; padding: 3px 10px; margin-left: 10px; position: relative; top: -4px; }
.bgp-head-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 10px; }
.bgp-head-price { font-size: 24px; font-weight: 800; color: #fff; }
.bgp-head-price del { color: var(--bgp-muted); font-size: 16px; font-weight: 500; margin-right: 6px; }
.bgp-head-price ins { text-decoration: none; }
.bgp-rating { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: var(--bgp-muted); text-decoration: none; }
.bgp-rating .star-rating { margin: 0; }
.bgp-head-lead { margin-top: 12px; max-width: 760px; color: #b9bec6; line-height: 1.6; }
.bgp-head-lead p { margin: 0; }
.bgp-head-side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
@media (max-width: 900px) { .bgp-head-side { align-items: flex-start; } }
.bgp-author { display: flex; align-items: center; gap: 12px; text-align: right; }
.bgp-author img { width: 48px; height: 48px; border-radius: 50%; background: #0c0d10; border: 1px solid var(--bgp-line-strong); order: 2; }
.bgp-author span { display: flex; flex-direction: column; font-size: 13px; color: var(--bgp-muted); }
.bgp-author strong { color: #fff; font-size: 15px; }
.bgp-author a { color: var(--bgp-accent); text-decoration: none; font-size: 12px; margin-top: 2px; }
@media (max-width: 900px) { .bgp-author { text-align: left; } .bgp-author img { order: 0; } }
.bgp-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 10px; max-width: 520px; }
@media (max-width: 900px) { .bgp-tags { justify-content: flex-start; } }
.bgp-tags a { font-size: 12px; color: var(--bgp-muted); text-decoration: none; transition: color .2s; }
.bgp-tags a:hover { color: var(--bgp-accent-strong); }

/* Screenshot strip */
.bgp-strip { position: relative; margin: 0 0 14px; }
.bgp-strip-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 30px) / 4); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; border-radius: var(--bgp-radius); }
.bgp-strip-track::-webkit-scrollbar { display: none; }
@media (max-width: 1100px) { .bgp-strip-track { grid-auto-columns: calc((100% - 20px) / 3); } }
@media (max-width: 760px) { .bgp-strip-track { grid-auto-columns: 82%; } }
.bgp .bgp-tile { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: #08090b; scroll-snap-align: start; border: 1px solid var(--bgp-line); padding: 0; margin: 0; cursor: zoom-in; min-height: 0; box-shadow: none; }
.bgp-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease, filter .3s; }
.bgp-tile:hover img { transform: scale(1.045); filter: brightness(1.08); }
.bgp .bgp-tile-video { cursor: pointer; }
.bgp-tile-video img { filter: brightness(.7); }
.bgp-play { position: absolute; inset: 0; display: grid; place-items: center; }
.bgp-play svg { width: 26px; height: 26px; fill: #111; stroke: none; padding: 18px; box-sizing: content-box; border-radius: 50%; background: var(--bgp-accent-strong); box-shadow: 0 0 0 8px rgba(255, 255, 255, .15), 0 10px 30px rgba(0, 0, 0, .5); transition: transform .2s; }
.bgp-tile-video:hover .bgp-play svg { transform: scale(1.08); }
.bgp-tile-tag { position: absolute; left: 10px; top: 10px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #111; background: var(--bgp-accent); padding: 3px 8px; border-radius: 5px; }

.bgp .bgp-nav, .bgp-lightbox .bgp-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 42px; height: 42px; min-height: 0; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); background: rgba(10, 11, 13, .72); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(8px); box-shadow: 0 6px 20px rgba(0, 0, 0, .4); transition: background .2s, border-color .2s; }
.bgp .bgp-nav:hover, .bgp-lightbox .bgp-nav:hover { background: rgba(10, 11, 13, .92); border-color: var(--bgp-accent, #c8cdd4); color: #fff; }
.bgp .bgp-prev, .bgp-lightbox .bgp-prev { left: -10px; right: auto; }
.bgp .bgp-next, .bgp-lightbox .bgp-next { right: -10px; left: auto; }
@media (max-width: 760px) { .bgp .bgp-prev { left: 6px; } .bgp .bgp-next { right: 6px; } }

/* Body: description on the left, details on the right */
.bgp-body { display: grid; grid-template-columns: minmax(0, 1fr) clamp(350px, 24vw, 440px); gap: clamp(22px, 2vw, 36px); align-items: start; margin-top: 6px; }
.bgp-body.has-left { grid-template-columns: 260px minmax(0, 1fr) clamp(350px, 24vw, 440px); }
@media (max-width: 1240px) { .bgp-body { grid-template-columns: minmax(0, 1fr) 350px; } .bgp-body.has-left { grid-template-columns: minmax(0, 1fr) 350px; } .bgp-body.has-left .bgp-theme-sidebar-left { display: none; } }
.bgp-main { min-width: 0; }
.bgp-aside { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* Purchase box */
.bgp-buy { position: relative; padding: 22px; border-radius: var(--bgp-radius); border: 1px solid var(--bgp-line-strong); background: radial-gradient(120% 90% at 100% 0%, rgba(200, 205, 212, .14), transparent 55%), linear-gradient(180deg, #17191d, #101215); box-shadow: 0 24px 60px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06); overflow: hidden; }
.bgp-buy::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(238, 240, 243, .8), transparent); }
.bgp-price { font-size: 36px; font-weight: 800; color: #fff; margin: 0 0 14px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; letter-spacing: -.02em; }
.bgp-price del { font-size: 18px; color: var(--bgp-muted); font-weight: 500; }
.bgp-price ins { text-decoration: none; color: #fff; }
.bgp-cart form.cart { margin: 0 !important; display: flex; flex-direction: column; gap: 10px; }
.bgp-cart .quantity { display: none !important; }
.bgp-cart .single_add_to_cart_button { width: 100%; min-height: 52px; border-radius: 10px !important; font-size: 15px !important; font-weight: 800 !important; letter-spacing: .02em; background: linear-gradient(135deg, #f3f4f6, #b4bac2) !important; color: #111 !important; border: 0 !important; box-shadow: 0 10px 30px rgba(200, 205, 212, .22) !important; transition: filter .2s, transform .1s; }
.bgp-cart .single_add_to_cart_button:hover { filter: brightness(1.07); }
.bgp-cart .single_add_to_cart_button:active { transform: translateY(1px); }
.bgp-cart .wd-buy-now-btn { width: 100%; min-height: 46px; border-radius: 10px !important; background: transparent !important; color: var(--bgp-accent-strong) !important; border: 1px solid rgba(200, 205, 212, .35) !important; font-weight: 700 !important; box-shadow: none !important; }
.bgp-cart .wd-buy-now-btn:hover { background: rgba(200, 205, 212, .1) !important; color: #fff !important; }
.bgp-exclusive { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 10px 12px; border: 1px solid var(--bgp-line-strong); border-radius: 10px; background: rgba(200, 205, 212, .06); }
.bgp-exclusive svg { flex: none; width: 24px; height: 24px; fill: none; stroke: var(--bgp-accent-strong); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bgp-exclusive span { display: grid; gap: 2px; min-width: 0; }
.bgp-exclusive b { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.bgp-exclusive small { font-size: 12.5px; line-height: 1.35; color: var(--bgp-muted); }
.bgl-free-dl { display: flex; flex-direction: column; gap: 10px; }
.bgp-cart .bgl-free-dl .button { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.bgp-cart .bgl-free-dl-more { min-height: 46px; background: transparent !important; color: var(--bgp-accent-strong) !important; border: 1px solid rgba(200, 205, 212, .35) !important; font-weight: 700 !important; box-shadow: none !important; }
.bgp-cart .bgl-free-dl-more:hover { background: rgba(200, 205, 212, .1) !important; color: #fff !important; }
.bgp-trust { margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--bgp-line); display: grid; gap: 9px; }
.bgp-trust li { display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: var(--bgp-text); }
.bgp-trust svg { color: var(--bgp-accent); width: 16px; height: 16px; }

/* Cards on the right */
.bgp-card { padding: 18px; border-radius: var(--bgp-radius); border: 1px solid var(--bgp-line); background: var(--bgp-card); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }
.bgp-card-title { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin: 0 0 14px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.bgp-card-title svg { width: 16px; height: 16px; padding: 6px; box-sizing: content-box; border-radius: 8px; color: var(--bgp-accent-strong); background: rgba(200, 205, 212, .1); border: 1px solid var(--bgp-line-strong); }
.bgp-card-count { margin-left: auto; font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--bgp-muted); }

.bgp-facts { margin: 0; display: grid; }
.bgp-facts > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--bgp-line); }
.bgp-facts > div:first-child { padding-top: 0; }
.bgp-facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
.bgp-facts dt { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 13.5px; color: var(--bgp-muted); font-weight: 500; }
.bgp-facts dt svg { width: 16px; height: 16px; color: var(--bgp-accent); }
.bgp-facts dd { margin: 0; font-size: 14px; font-weight: 700; color: #fff; text-align: right; font-variant-numeric: tabular-nums; }

.bgp .bgp-mapthumb-img { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; margin: 0; min-height: 0; border: 1px solid var(--bgp-line-strong); border-radius: 12px; overflow: hidden; background: #13294b; cursor: zoom-in; box-shadow: 0 14px 40px rgba(0, 0, 0, .45); }
.bgp-mapthumb-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.bgp-mapthumb-img:hover img { transform: scale(1.05); }
.bgp-mapthumb-hint { position: absolute; left: 10px; bottom: 10px; display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 700; color: #fff; background: rgba(8, 9, 11, .78); padding: 7px 11px; border-radius: 8px; backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .12); }
.bgp-mapthumb-hint svg { width: 14px; height: 14px; }
.bgp .bgp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--bgp-accent); background: var(--bgp-accent); color: #111; font-weight: 800; font-size: 14px; text-transform: none; letter-spacing: 0; cursor: pointer; box-shadow: none; transition: filter .2s, transform .1s; }
.bgp .bgp-btn:hover { filter: brightness(1.07); color: #111; }
.bgp .bgp-btn:active { transform: translateY(1px); }
.bgp .bgp-btn-3d { width: 100%; margin: 10px 0 14px; min-height: 48px; background: linear-gradient(135deg, #f3f4f6, #a9afb7); border: 0; box-shadow: 0 10px 28px rgba(200, 205, 212, .2); }
.bgp-btn-ghost, .bgp .bgp-btn-ghost { background: transparent; color: var(--bgp-accent-strong); border-color: rgba(200, 205, 212, .35); }

.bgp-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0; background: var(--bgp-line); border: 1px solid var(--bgp-line); border-radius: 12px; overflow: hidden; }
.bgp-figs > div { background: #111317; padding: 11px 12px; min-width: 0; }
.bgp-figs dt { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bgp-muted); margin: 0 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bgp-figs dd { margin: 0; font-size: 19px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; line-height: 1.15; }

.bgp-biomes { display: grid; gap: 11px; }
.bgp-biome { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 10px; font-size: 13.5px; }
.bgp-biome-name { color: #fff; font-weight: 600; }
.bgp-biome-pct { color: var(--bgp-muted); font-variant-numeric: tabular-nums; }
.bgp-biome-bar { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.bgp-biome-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7d838b, #eef0f3); box-shadow: 0 0 10px rgba(238, 240, 243, .25); }

.bgp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bgp-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; font-size: 12.5px; color: var(--bgp-text); background: rgba(255, 255, 255, .04); border: 1px solid var(--bgp-line); border-radius: 7px; transition: border-color .2s, background .2s; }
.bgp-chips li:hover { border-color: var(--bgp-line-strong); background: rgba(255, 255, 255, .07); }
.bgp-chips b { font-size: 11px; color: #111; background: var(--bgp-accent); border-radius: 4px; padding: 0 5px; font-variant-numeric: tabular-nums; }
.bgp-chips-custom li { border-color: rgba(200, 205, 212, .4); background: rgba(200, 205, 212, .1); color: #fff; font-weight: 600; }
.bgp-chips-custom b { background: var(--bgp-accent-strong); }

.bgp-reqs { display: grid; gap: 8px; }
.bgp-req { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; padding: 11px 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--bgp-line); border-radius: 10px; min-width: 0; }
.bgp-req-name { min-width: 0; font-size: 13.5px; font-weight: 600; color: #fff; line-height: 1.4; overflow-wrap: anywhere; text-decoration: none; }
a.bgp-req-name:hover { color: var(--bgp-accent-strong); text-decoration: underline; }
.bgp-req-name svg { width: 12px; height: 12px; margin-left: 5px; vertical-align: -1px; color: var(--bgp-muted); }
.bgp-req-badge { flex: none; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--bgp-muted); }
.bgp-req-badge.is-required { background: var(--bgp-accent); color: #111; }

/* The theme's product sidebar */
.bgp-theme-sidebar .wd-sidebar { width: 100%; max-width: none; padding: 0; flex: none; }
.bgp-theme-sidebar .widget { padding: 18px; margin: 0 0 16px; border: 1px solid var(--bgp-line); border-radius: var(--bgp-radius); background: var(--bgp-card); }
.bgp-theme-sidebar .widget:last-child { margin-bottom: 0; }
.bgp-theme-sidebar .widget-title { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 12px; }

.bgp-h2 { font-size: 22px; margin: 0; color: #fff; font-weight: 800; display: flex; align-items: center; gap: 12px; }
.bgp-h2::before { content: ""; width: 4px; height: 1.05em; border-radius: 2px; background: var(--bgp-accent); box-shadow: 0 0 12px rgba(200, 205, 212, .5); }

/* Tabs, video, related products */
.bgp-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--bgp-line); margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; }
.bgp-tabs::-webkit-scrollbar { display: none; }
.bgp .bgp-tabs button { flex: 0 0 auto; position: relative; display: inline-flex; gap: 8px; align-items: center; min-height: 0; padding: 12px 18px; background: transparent; border: 0; border-radius: 0; box-shadow: none; color: var(--bgp-muted); font-size: 15px; font-weight: 700; text-transform: none; letter-spacing: 0; cursor: pointer; transition: color .2s; }
.bgp .bgp-tabs button:hover { color: #fff; background: transparent; }
.bgp .bgp-tabs button[aria-selected="true"] { color: #fff; }
.bgp .bgp-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--bgp-accent); box-shadow: 0 0 12px rgba(200, 205, 212, .6); }
.bgp-tabs button span { font-size: 11px; color: #111; background: var(--bgp-accent); border-radius: 999px; padding: 1px 7px; }
.bgp-panel[hidden] { display: none; }
.bgp-video { position: relative; aspect-ratio: 16 / 9; margin: 16px 0 24px; border-radius: var(--bgp-radius); overflow: hidden; border: 1px solid var(--bgp-line); background: #000; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); }
.bgp-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bgp-related { margin-top: 56px; }

/* Description */
.bgp-prose { font-size: 15.5px; line-height: 1.75; color: var(--bgp-text); }
.bgp-prose > :first-child { margin-top: 0; }
.bgp-prose h3 { font-size: 18px; color: #fff; margin: 28px 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--bgp-line); }
.bgp-prose p { margin: 0 0 12px; }
.bgp-prose strong, .bgp-prose b { color: #fff; }
.bgp-prose em { color: #b5bac2; }
.bgp-prose a { color: var(--bgp-accent-strong); text-decoration: underline; text-underline-offset: 3px; }
.bgp-prose ul, .bgp-prose ol { margin: 0 0 16px; }
.bgp-prose li { position: relative; padding: 3px 0 3px 24px; margin: 0; }
.bgp-prose ul > li::before { content: ""; position: absolute; left: 6px; top: 13px; width: 6px; height: 6px; border-radius: 1px; background: var(--bgp-accent); transform: rotate(45deg); }
.bgp-prose img { max-width: 100%; height: auto; border-radius: 10px; margin: 8px 0; }
.bgp-prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 10px; }
.bgp-prose blockquote { margin: 18px 0; padding: 14px 18px; border-left: 3px solid var(--bgp-accent); background: var(--bgp-flat); border-radius: 0 10px 10px 0; font-style: normal; }
.bgp-prose blockquote p:last-child { margin-bottom: 0; }

/* Changelog and reviews */
.bgp-change { background: var(--bgp-card); border: 1px solid var(--bgp-line); border-radius: var(--bgp-radius); padding: 20px 22px; }
.bgp-change header { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.bgp-change-version { font-weight: 800; color: #fff; }
.bgp-change time { color: var(--bgp-muted); font-size: 14px; }

/* Map preview modal */
.bgp-mapmodal { position: fixed; inset: 0; z-index: 99999; background: rgba(5, 6, 7, .96); display: flex; flex-direction: column; padding: 14px 16px 16px; color: #fff; }
.bgp-mapmodal[hidden] { display: none; }
.bgp-mapmodal-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.bgp-mapmodal-bar strong { font-size: 16px; margin-right: auto; }
.bgp-mapmodal .bgp-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid #c8cdd4; background: #c8cdd4; color: #111; font-weight: 800; font-size: 14px; cursor: pointer; text-transform: none; letter-spacing: 0; box-shadow: none; }
.bgp-mapmodal .bgp-btn-ghost { background: transparent; color: #eef0f3; border-color: rgba(200, 205, 212, .35); }
.bgp-switch { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; color: #d4d8dd; }
.bgp-mapmodal-frame { position: relative; flex: 1; min-height: 0; aspect-ratio: 1; max-width: 100%; margin: 0 auto; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .14); }
.bgp-mapmodal-frame img { display: block; width: 100%; height: 100%; object-fit: contain; }
.bgp-pins { position: absolute; inset: 0; pointer-events: none; }
.bgp-pin { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 3px; pointer-events: auto; }
.bgp-pin i { width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 2px solid #111; box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); }
.bgp-pin.is-custom i { background: #c8cdd4; border-color: #fff; }
.bgp-pin span { font-size: 11px; line-height: 1.2; font-weight: 700; color: #fff; white-space: nowrap; padding: 2px 6px; border-radius: 4px; background: rgba(8, 9, 11, .74); text-shadow: 0 1px 2px #000; }
.bgp-mapmodal.no-labels .bgp-pin span { display: none; }
@media (max-width: 720px) { .bgp-pin span { font-size: 9px; padding: 1px 4px; } }

/* Lightbox (images and video) */
.bgp-lightbox { position: fixed; inset: 0; z-index: 100000; background: rgba(4, 5, 6, .95); display: grid; place-items: center; padding: 56px 64px; }
.bgp-lightbox[hidden] { display: none; }
.bgp-lb-stage { width: 100%; height: 100%; display: grid; place-items: center; }
.bgp-lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.bgp-lb-stage iframe { width: min(100%, calc((100vh - 112px) * 16 / 9)); aspect-ratio: 16 / 9; border: 0; border-radius: 10px; }
.bgp-lightbox .bgp-prev { left: 12px; }
.bgp-lightbox .bgp-next { right: 12px; }
.bgp-lightbox .bgp-lb-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; min-height: 0; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: none; }
@media (max-width: 720px) { .bgp-lightbox { padding: 56px 8px; } }

/* 3D viewer */
.bgp-3d { position: fixed; inset: 0; z-index: 100001; background: #0b0d10; color: #fff; overflow: hidden; touch-action: none; user-select: none; }
.bgp-3d canvas { display: block; width: 100%; height: 100%; }
.bgp-3d-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: linear-gradient(180deg, rgba(0, 0, 0, .65), transparent); pointer-events: none; }
.bgp-3d-top > * { pointer-events: auto; }
/* The buttons stay above the big map, so it can always be closed from them too. */
.bgp-3d-top { z-index: 3; }
.bgp-3d-map { z-index: 2; }
.bgp-3d-map.is-open { pointer-events: auto; cursor: pointer; }
/* The theme styles every button: this one keeps its own place and look. */
.bgp-3d .bgp-3d-map-close { position: absolute !important; top: 10px !important; right: 10px !important; z-index: 2; display: inline-flex; align-items: center; gap: 6px; min-height: 0 !important; margin: 0 !important; padding: 8px 12px !important; border: 1px solid rgba(255, 255, 255, .3) !important; border-radius: 6px !important; background: rgba(0, 0, 0, .72) !important; box-shadow: none !important; color: #fff !important; font: 700 13px/1 sans-serif !important; letter-spacing: 0 !important; text-transform: none !important; cursor: pointer; }
.bgp-3d .bgp-3d-map-close:hover { background: rgba(0, 0, 0, .9) !important; }
.bgp-3d-title { font-weight: 800; font-size: 16px; margin-right: auto; text-shadow: 0 1px 3px #000; }
.bgp-3d .bgp-3d-btn { min-height: 38px; padding: 0 14px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(12, 13, 16, .7); color: #fff; font-weight: 700; font-size: 13px; text-transform: none; letter-spacing: 0; box-shadow: none; line-height: 1; cursor: pointer; backdrop-filter: blur(6px); display: inline-flex; align-items: center; gap: 6px; }
.bgp-3d .bgp-3d-btn:hover, .bgp-3d .bgp-3d-btn.is-on { border-color: #c8cdd4; background: rgba(200, 205, 212, .2); color: #fff; }
.bgp-3d-help { position: absolute; left: 16px; bottom: 16px; font-size: 12px; line-height: 1.7; color: rgba(255, 255, 255, .8); background: rgba(10, 11, 13, .62); padding: 10px 14px; border-radius: 8px; pointer-events: none; text-shadow: 0 1px 2px #000; }
.bgp-3d-help kbd { display: inline-block; min-width: 20px; text-align: center; padding: 0 5px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .3); font: 700 11px/18px inherit; margin-right: 2px; }
.bgp-3d-status { position: absolute; inset: 0; display: grid; place-items: center; font-size: 15px; color: rgba(255, 255, 255, .85); pointer-events: none; }
.bgp-3d-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.bgp-3d-label { position: absolute; left: 0; top: 0; transform: translate(-50%, -100%); font-size: 12px; font-weight: 700; white-space: nowrap; color: #fff; background: rgba(8, 9, 11, .7); padding: 2px 7px; border-radius: 4px; text-shadow: 0 1px 2px #000; will-change: transform; }
.bgp-3d-label.is-custom { border-left: 3px solid #c8cdd4; }
.bgp-3d-map { position: absolute; inset: 0; display: none; place-items: center; background: rgba(0, 0, 0, .55); pointer-events: none; }
.bgp-3d-map.is-open { display: grid; }
.bgp-3d-map-inner { position: relative; width: min(82vmin, 900px); aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .25); box-shadow: 0 20px 80px rgba(0, 0, 0, .6); }
.bgp-3d-map-inner img { width: 100%; height: 100%; display: block; }
.bgp-3d-me { position: absolute; width: 0; height: 0; }
.bgp-3d-me::before { content: ""; position: absolute; left: -8px; top: -11px; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 20px solid #ff4d3d; filter: drop-shadow(0 0 3px #000); }
.bgp-3d-pad { position: absolute; bottom: 24px; width: 120px; height: 120px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); display: none; }
.bgp-3d-pad i { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.bgp-3d.is-touch .bgp-3d-pad { display: block; }
.bgp-3d.is-touch .bgp-3d-help { display: none; }
.bgp-3d-pad-move { left: 24px; }

/* Phones: keep the header short so the screenshots show early. */
@media (max-width: 900px) {
	.bgp-tags li:nth-child(n+9) { display: none; }
	.bgp-author img { width: 36px; height: 36px; }
}

/* One column: buy box first, then the description, then the details. */
@media (max-width: 1024px) {
	.bgp-body, .bgp-body.has-left { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.bgp-aside { display: contents; }
	.bgp-buy { order: -1; }
	.bgp-main { order: 0; }
	.bgp-card, .bgp-aside .bgp-theme-sidebar { order: 1; }
}

/* Changelog: every version on a timeline, newest first */
.bgp-timeline { position: relative; margin: 0; padding: 0 0 0 26px; }
.bgp-timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--bgp-accent), rgba(200, 205, 212, .08)); border-radius: 2px; }
.bgp-timeline-item { position: relative; margin: 0 0 16px; padding: 16px 18px; border: 1px solid var(--bgp-line); border-radius: var(--bgp-radius); background: var(--bgp-card); }
.bgp-timeline-item::before { content: ""; position: absolute; left: -25px; top: 20px; width: 12px; height: 12px; border-radius: 50%; background: #1a1c20; border: 2px solid var(--bgp-accent); }
.bgp-timeline-item.is-current { border-color: rgba(200, 205, 212, .35); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.bgp-timeline-item.is-current::before { background: var(--bgp-accent); box-shadow: 0 0 0 4px rgba(200, 205, 212, .18); }
.bgp-timeline-item header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.bgp-timeline-item time { margin-left: auto; font-size: 13px; color: var(--bgp-muted); }
.bgp-timeline-item .bgp-prose { font-size: 14.5px; }
.bgp-change-version { font-weight: 800; color: #fff; font-size: 15px; }
.bgp-latest { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #111; background: var(--bgp-accent); border-radius: 999px; padding: 2px 8px; }

/* Support */
.bgp-help { position: relative; overflow: hidden; text-align: center; padding: 38px 28px 30px; border-radius: var(--bgp-radius); border: 1px solid var(--bgp-line-strong); background: radial-gradient(90% 70% at 50% 0%, rgba(200, 205, 212, .14), transparent 60%), linear-gradient(180deg, #17191d, #101215); }
.bgp-help-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: rgba(200, 205, 212, .12); border: 1px solid var(--bgp-line-strong); color: var(--bgp-accent-strong); box-shadow: 0 0 40px rgba(200, 205, 212, .15); }
.bgp-help-icon svg { width: 30px; height: 30px; }
.bgp-help-title { margin: 16px 0 8px; font-size: 24px; font-weight: 800; color: #fff; }
.bgp-help-lead { max-width: 620px; margin: 0 auto 22px; color: #b9bec6; line-height: 1.65; }
.bgp-help-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 24px; padding: 0; list-style: none; counter-reset: step; text-align: left; }
@media (max-width: 760px) { .bgp-help-steps { grid-template-columns: minmax(0, 1fr); } }
.bgp-help-steps li { position: relative; padding: 16px 16px 16px 54px; border: 1px solid var(--bgp-line); border-radius: 12px; background: rgba(255, 255, 255, .03); counter-increment: step; }
.bgp-help-steps li::before { content: counter(step); position: absolute; left: 16px; top: 16px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #111; background: var(--bgp-accent); }
.bgp-help-steps strong { display: block; color: #fff; margin-bottom: 4px; }
.bgp-help-steps span { font-size: 13.5px; color: var(--bgp-muted); line-height: 1.5; }
.bgp .bgp-help-btn { width: auto; min-width: 280px; }
.bgp-help-note { margin: 18px auto 0; max-width: 560px; font-size: 13px; color: var(--bgp-muted); }

/* Discussion */
.bgp-talk { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 12px; }
.bgp-talk-item { display: flex; gap: 14px; padding: 16px; border: 1px solid var(--bgp-line); border-radius: var(--bgp-radius); background: var(--bgp-card); }
.bgp-talk-item.is-author { border-color: rgba(200, 205, 212, .35); background: linear-gradient(180deg, rgba(200, 205, 212, .08), rgba(255, 255, 255, .02)); margin-left: 34px; }
@media (max-width: 560px) { .bgp-talk-item.is-author { margin-left: 12px; } }
.bgp-talk-avatar { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-weight: 800; color: #111; background: linear-gradient(135deg, #eef0f3, #9aa0a8); }
.bgp-talk-body { min-width: 0; flex: 1; }
.bgp-talk-body header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.bgp-talk-body header strong { color: #fff; }
.bgp-talk-body time { margin-left: auto; font-size: 13px; color: var(--bgp-muted); }
.bgp-talk-body .bgp-prose { font-size: 14.5px; }
.bgp-talk-empty, .bgp-talk-note { padding: 14px 16px; border-radius: 10px; background: rgba(255, 255, 255, .04); color: var(--bgp-text); }
.bgp-talk-note { border-left: 3px solid var(--bgp-accent); }
.bgp-talk-form { display: grid; gap: 10px; padding: 18px; border: 1px solid var(--bgp-line); border-radius: var(--bgp-radius); background: var(--bgp-card); }
.bgp-talk-form label { font-weight: 800; color: #fff; }
.bgp-talk-form textarea { width: 100%; min-height: 110px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--bgp-line-strong); background: #0f1114; color: #fff; font: inherit; resize: vertical; }
.bgp-talk-form textarea:focus { outline: none; border-color: var(--bgp-accent); }
.bgp .bgp-talk-form .bgp-btn { justify-self: start; }
.bgp a.bgp-btn, .bgp-mapmodal a.bgp-btn { text-decoration: none; }

/* Reviews: imported mark and the author's response */
.bgp-imported { display: inline-block; margin: 0 0 6px; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--bgp-muted); background: rgba(255, 255, 255, .06); border: 1px solid var(--bgp-line); }
.bgp-response { margin-top: 10px; padding: 12px 14px; border-left: 3px solid var(--bgp-accent); border-radius: 0 10px 10px 0; background: rgba(255, 255, 255, .04); }
.bgp-response strong { display: block; color: #fff; font-size: 13px; margin-bottom: 4px; }

/* Docs */
.bgp-docs-title { margin: 0 0 12px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--bgp-muted); }
.bgp-docs-own { margin-bottom: 24px; }
.bgp-docs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.bgp-docs a { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 12px; border: 1px solid var(--bgp-line); background: var(--bgp-card); color: #fff; text-decoration: none; font-weight: 700; transition: border-color .2s, transform .15s; }
.bgp-docs a:hover { border-color: rgba(200, 205, 212, .45); transform: translateY(-1px); }
.bgp-docs a span { flex: 1; }
.bgp-docs a svg:first-child { width: 22px; height: 22px; color: var(--bgp-accent); }
.bgp-docs a svg:last-child { color: var(--bgp-muted); }

/* Small phones: the figure labels must fit whole. */
@media (max-width: 420px) {
	.bgp-figs dt { font-size: 9.5px; letter-spacing: .03em; }
	.bgp-figs > div { padding: 10px 9px; }
}

/* Depends on / Works with: two columns above the description, like Codefling */
.bgp-deps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin: 4px 0 30px; padding-bottom: 28px; border-bottom: 1px solid var(--bgp-line); }
.bgp-deps > .bgp-dep:only-child { grid-column: 1 / -1; }
@media (max-width: 760px) { .bgp-deps { grid-template-columns: minmax(0, 1fr); } }
.bgp-dep-title { margin: 0 0 4px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.bgp-dep-sub { margin: 0 0 14px; font-size: 13px; color: var(--bgp-muted); }
.bgp-deps .bgp-req { align-items: center; padding: 10px 12px; gap: 12px; background: var(--bgp-card); transition: border-color .2s, background .2s; }
.bgp-deps .bgp-req:hover { border-color: var(--bgp-line-strong); }
.bgp-req-icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; font-size: 15px; font-weight: 800; color: #111; background: linear-gradient(135deg, #f3f4f6, #9aa0a8); box-shadow: 0 4px 12px rgba(0, 0, 0, .35); }
.bgp-deps .bgp-req-name { flex: 1; font-size: 14px; }

/* Wide screens: one more screenshot per row. */
@media (min-width: 1600px) { .bgp-strip-track { grid-auto-columns: calc((100% - 40px) / 5); } }

/* SUPPORT: last card of the right column, same look as the other buttons */
.bgp-support { display: flex; flex-direction: column; align-items: stretch; gap: 12px; text-align: center; }
.bgp-support-text { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--bgp-muted); }
.bgp .bgp-btn-support { width: 100%; min-height: 50px; padding: 0 20px; font-size: 15px; letter-spacing: .14em; text-decoration: none; border: 0; background: linear-gradient(135deg, #f3f4f6, #a9afb7); color: #111; box-shadow: 0 10px 28px rgba(200, 205, 212, .2); }
.bgp .bgp-btn-support:hover { color: #111; filter: brightness(1.07); }
.bgp .bgp-btn-support svg { width: 19px; height: 19px; }

/* The theme sidebar sits in the column as a normal block, so the cards keep their gap. */
.bgp-theme-sidebar .wd-sidebar { display: block; height: auto; position: static; }
.bgp-theme-sidebar .widget-area { display: flex; flex-direction: column; gap: 16px; }
.bgp-theme-sidebar .widget { margin: 0; }

/* Tags alone (author box off in Theme Settings): a tidy block of chips beside the title. */
.bgp-head-side.is-tags-only { align-self: center; }
.bgp-head-side.is-tags-only .bgp-tags { gap: 6px; }
.bgp-head-side.is-tags-only .bgp-tags a { display: inline-block; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--bgp-line-strong); background: rgba(255, 255, 255, .03); color: var(--bgp-muted); font-size: 12px; line-height: 1.3; transition: color .2s, border-color .2s, background .2s; }
.bgp-head-side.is-tags-only .bgp-tags a:hover { color: #fff; border-color: rgba(200, 205, 212, .45); background: rgba(200, 205, 212, .1); }
@media (max-width: 900px) { .bgp-head-side.is-tags-only { align-self: start; } }
.bgp-req-icon-img { object-fit: cover; padding: 0; background: #1e2020; border: 1px solid var(--bgp-line-strong); }
.bgp-timeline, .bgp-talk { list-style: none; }
.bgp-timeline .bgp-prose h1, .bgp-timeline .bgp-prose h2, .bgp-timeline .bgp-prose h3 { font-size: 17px; margin: 16px 0 8px; padding: 0; border: 0; color: #fff; }
