/*
 * BuyBackEmpire — "Nexus" design
 * One stylesheet for the whole customer-facing site. Responsive refinements live in mediaqueries.css.
 * Entrance animations come from animate.css (static/css/animate.min.css, MIT licence) and are
 * triggered from static/js/slider.js through data-animate="name" attributes.
 *
 * Palette   deep navy #070b18 · lime #8fd82b (the main action) · electric blue #3b82ff
 * Type      Barlow Condensed (bold capitals for headlines) + Barlow (text)
 * Idea      A sleek phone-buyback look: navy surfaces, thin dividers, circular icon badges,
 *           a glowing ring behind floating devices, a category carousel, and content that
 *           arrives from every direction as you scroll.
 */
:root {
  --bb-bg: #070b18;
  --bb-surface: #0d1324;
  --bb-surface-2: #131b33;
  --bb-surface-3: #1b2547;
  --bb-ink: #f2f5fc;
  --bb-ink-muted: #9aa5c4;
  --bb-blue: #3b82ff;
  --bb-blue-hover: #6ba0ff;
  --bb-blue-press: #2668e0;
  --bb-green: #8fd82b;
  --bb-green-hover: #a6e64a;
  --bb-green-press: #74b81d;
  --bb-red: #ff5470;
  --bb-on-neon: #071204;
  --bb-line: rgba(255, 255, 255, 0.09);
  --bb-line-strong: rgba(255, 255, 255, 0.22);
  --bb-line-inv: rgba(255, 255, 255, 0.14);
  --bb-success: #7ee8a2;
  --bb-success-bg: #178a48;
  --bb-danger: #ff7c92;
  --bb-danger-bg: #d0203a;
  --bb-warning: #ffc94a;
  --bb-check: #8fd82b;
  --bb-glass: linear-gradient(160deg, rgba(22, 30, 58, 0.85), rgba(11, 16, 33, 0.92));
  /* Legacy token names, kept so any older markup keeps resolving */
  --bb-paper: var(--bb-surface);
  --bb-cream: var(--bb-bg);
  --bb-plum: var(--bb-surface-2);
  --bb-plum-soft: var(--bb-surface-3);
  --bb-lilac: var(--bb-surface-2);
  --bb-blush: var(--bb-surface-2);
  --bb-teal-tint: var(--bb-surface-2);
  --bb-tomato: var(--bb-green);
  --bb-tomato-hover: var(--bb-green-hover);
  --bb-tomato-press: var(--bb-green-press);
  --bb-sun: var(--bb-blue);
  --bb-sun-hover: var(--bb-blue-hover);
  --bb-sun-press: var(--bb-blue-press);
  --bb-teal: var(--bb-blue);
  --bb-ink-deep: var(--bb-bg);
  --bb-surface-soft: var(--bb-surface-2);
  --bb-border: var(--bb-line);
  --bb-border-strong: var(--bb-line-strong);
  --bb-brand: var(--bb-green);
  --bb-accent: var(--bb-green);
  --bb-font-display: "Barlow Condensed", "Arial Narrow", "Segoe UI", system-ui, -apple-system, sans-serif;
  --bb-font-body: "Barlow", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bb-shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.4);
  --bb-shadow-md: 0 24px 60px rgba(0, 0, 0, 0.6);
  --bb-radius-sm: 10px;
  --bb-radius: 16px;
  --bb-radius-lg: 24px;
  --bb-container: 1200px;
  --bb-ease: cubic-bezier(0.22, 0.8, 0.2, 1);
  --bb-smooth: cubic-bezier(0.22, 0.8, 0.2, 1);
  --animate-duration: 0.9s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  scrollbar-width: thin;
  scrollbar-color: var(--bb-green) var(--bb-bg);
}

/* Custom scrollbar: WebKit/Blink get the styled version, Firefox uses the standard properties above */
@supports selector(::-webkit-scrollbar) {
  html {
    scrollbar-width: auto;
    scrollbar-color: auto;
  }

  ::-webkit-scrollbar {
    width: 12px;
    height: 12px;
  }

  ::-webkit-scrollbar-track {
    background: #050813;
    border-left: 1px solid var(--bb-line);
  }

  ::-webkit-scrollbar-thumb {
    min-height: 56px;
    border: 3px solid #050813;
    border-radius: 999px;
    background: linear-gradient(180deg, #3b82ff, #8fd82b);
  }

  ::-webkit-scrollbar-thumb:hover,
  ::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, #6ba0ff, #a6e64a);
  }

  ::-webkit-scrollbar-corner {
    background: #050813;
  }
}

body.body-text {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(1100px 700px at 80% -10%, rgba(59, 130, 255, 0.14), transparent 60%),
    radial-gradient(900px 600px at 0% 40%, rgba(143, 216, 43, 0.06), transparent 60%),
    var(--bb-bg);
  color: var(--bb-ink);
  font-family: var(--bb-font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.cbp-spmenu-push-toleft {
  overflow: hidden;
}

body .container {
  width: 100%;
  max-width: var(--bb-container);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--bb-ink);
  font-family: var(--bb-font-display);
  font-weight: 700;
  letter-spacing: 0.005em;
  line-height: 1.08;
}

img {
  max-width: 100%;
}

a {
  color: var(--bb-green);
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 240ms ease, transform 260ms var(--bb-ease);
}

a:hover,
a:focus {
  color: var(--bb-green-hover);
}

button,
input,
textarea,
select {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--bb-green);
  outline-offset: 3px;
}

::selection {
  background: var(--bb-green);
  color: var(--bb-on-neon);
}

.lime {
  color: var(--bb-green);
}

/* animate.css triggers: hidden until slider.js plays the named animation, then left in place */
html.js [data-animate]:not(.animate__animated):not(.is-done) {
  opacity: 0;
}

[data-animate].is-done {
  opacity: 1;
}

/* Scroll parallax: slider.js sets --py on elements marked data-parallax */
[data-parallax] {
  transform: translate3d(0, var(--py, 0px), 0);
  will-change: transform;
}

/* Form controls on dark surfaces */
input,
select,
textarea,
.form-control {
  color-scheme: dark;
}

.form-control,
select.form-control,
textarea.form-control {
  border: 1px solid var(--bb-line-strong);
  background-color: var(--bb-surface-2);
  color: var(--bb-ink);
}

.form-control:focus {
  border-color: var(--bb-green);
  background-color: var(--bb-surface-3);
  box-shadow: 0 0 0 3px rgba(143, 216, 43, 0.22);
  color: var(--bb-ink);
}

.form-control::placeholder {
  color: var(--bb-ink-muted);
}

.text-muted {
  color: var(--bb-ink-muted) !important;
}

hr {
  border-top-color: var(--bb-line);
}

/* ------------------------------------------------------------------
   Loading screen (dismissed by slider.js; CSS fallback if JS fails)
   ------------------------------------------------------------------ */
.page-loader {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background:
    radial-gradient(520px 320px at 50% 45%, rgba(59, 130, 255, 0.2), transparent 70%),
    #050813;
  transition: opacity 500ms ease, transform 700ms cubic-bezier(0.7, 0, 0.2, 1), visibility 0s linear 700ms;
  animation: nx-loader-failsafe 0.01s linear 3.4s forwards;
}

.page-loader-ring {
  position: relative;
  display: block;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 40%, #3b82ff 65%, #8fd82b 95%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
  animation: nx-spin 1s linear infinite;
  filter: drop-shadow(0 0 14px rgba(143, 216, 43, 0.6));
}

.page-loader-bar {
  position: relative;
  display: block;
  width: 150px;
  height: 3px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
}

.page-loader-bar::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  border-radius: 3px;
  background: linear-gradient(90deg, #3b82ff, #8fd82b);
  content: "";
  animation: nx-slide 1s ease-in-out infinite;
}

html.is-ready .page-loader {
  visibility: hidden;
  opacity: 0;
  transform: scale(1.06);
}

@keyframes nx-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(260%); }
}

@keyframes nx-loader-failsafe {
  to { visibility: hidden; opacity: 0; pointer-events: none; }
}

@keyframes nx-float {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-14px) rotate(calc(var(--rot, 0deg) + 0.8deg)); }
}

@keyframes nx-glow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.95; transform: scale(1.12); }
}

@keyframes nx-spin {
  to { transform: rotate(360deg); }
}

@keyframes nx-tag-in {
  from { opacity: 0; transform: translateY(8px); }
}

@keyframes nx-caret {
  50% { opacity: 0; }
}

@keyframes nx-dash {
  to { background-position: 24px 0; }
}

/* ------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------ */
.btn {
  border-radius: 12px;
  font-family: var(--bb-font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 260ms ease, transform 260ms var(--bb-ease);
}

.btn:active {
  transform: translateY(1px) scale(0.985);
}

.btn-primary,
.home-search-form .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 0.7rem 1.7rem;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #a6e64a, #7fcc1f);
  box-shadow: 0 10px 30px rgba(143, 216, 43, 0.25);
  color: var(--bb-on-neon);
  font-size: 1.05rem;
  line-height: 1.2;
  white-space: nowrap;
}

.btn-primary:hover,
.btn-primary:focus,
.home-search-form .btn-primary:hover,
.home-search-form .btn-primary:focus {
  border: 0;
  background: linear-gradient(135deg, #b8f05e, #8fd82b);
  box-shadow: 0 14px 44px rgba(143, 216, 43, 0.45);
  color: var(--bb-on-neon);
  transform: translateY(-3px);
}

.btn-primary:active,
.btn-primary:not(:disabled):not(.disabled):active {
  border: 0;
  background: var(--bb-green-press);
  box-shadow: none;
  color: var(--bb-on-neon);
  transform: translateY(0) scale(0.98);
}

.btn-primary:disabled,
.btn-primary.disabled {
  opacity: 0.45;
  transform: none;
}

.btn-ink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0.75rem 2rem;
  border: 0;
  background: linear-gradient(135deg, #a6e64a, #7fcc1f);
  box-shadow: 0 10px 30px rgba(143, 216, 43, 0.25);
  color: var(--bb-on-neon);
  font-size: 1.1rem;
}

.btn-ink:hover,
.btn-ink:focus {
  box-shadow: 0 14px 44px rgba(143, 216, 43, 0.45);
  color: var(--bb-on-neon);
  transform: translateY(-3px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.6rem 1.5rem;
  border: 1.5px solid var(--bb-green);
  background: transparent;
  color: var(--bb-green);
  font-size: 0.95rem;
}

.btn-outline:hover,
.btn-outline:focus {
  background: rgba(143, 216, 43, 0.12);
  box-shadow: 0 0 26px rgba(143, 216, 43, 0.3);
  color: var(--bb-green-hover);
  transform: translateY(-2px);
}

/* ------------------------------------------------------------------
   Header
   ------------------------------------------------------------------ */
header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(7, 11, 24, 0.55);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: background-color 240ms ease, box-shadow 240ms ease;
}

/* A thin gradient progress line grows along the bottom edge as you scroll */
header::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: calc(var(--progress, 0) * 1%);
  height: 2px;
  background: linear-gradient(90deg, #3b82ff, #8fd82b);
  box-shadow: 0 0 12px rgba(143, 216, 43, 0.7);
  content: "";
  transition: width 120ms linear;
}

header.is-scrolled {
  background: rgba(7, 11, 24, 0.92);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

.navbar {
  min-height: 0;
  padding: 0;
  background: transparent;
}

.navbar > .container {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 24px;
}

.logo,
.logo:hover {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

/* The logo sits on a light tile so any supplied logo reads on the navy header */
.logo-padding {
  padding: 8px 18px;
  border-radius: 12px;
  background: #eef2fb;
  transition: box-shadow 260ms ease, transform 300ms var(--bb-ease);
}

.logo-padding:hover {
  box-shadow: 0 0 0 1px var(--bb-green), 0 0 30px rgba(143, 216, 43, 0.4);
  transform: translateY(-2px);
}

.logo-img-lg,
.logo-img-default {
  display: block;
  width: auto;
  height: auto;
  max-width: 200px;
  max-height: 42px;
}

.nav-links {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  gap: 34px;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}

.nav-links a {
  position: relative;
  display: block;
  padding: 8px 0;
  color: var(--bb-ink);
  font-family: var(--bb-font-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 200ms ease;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--bb-green);
  box-shadow: 0 0 12px rgba(143, 216, 43, 0.7);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms var(--bb-ease);
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links li.active a {
  color: var(--bb-green);
}

.nav-links a:hover::after,
.nav-links a:focus::after,
.nav-links li.active a::after {
  transform: scaleX(1);
}

.icon-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.navbar .icon-menu {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.icon-menu > li {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0;
}

.icon-menu > li:not(.nav-cta) > a,
.icon-menu .toggle-btn button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--bb-ink);
  cursor: pointer;
  text-decoration: none;
}

.icon-menu > li:not(.nav-cta) > a:hover,
.icon-menu > li:not(.nav-cta) > a:focus,
.icon-menu .toggle-btn button:hover,
.icon-menu .toggle-btn button:focus {
  border-color: rgba(143, 216, 43, 0.6);
  background: rgba(143, 216, 43, 0.1);
  box-shadow: 0 0 20px rgba(143, 216, 43, 0.3);
  color: var(--bb-green);
}

.icon-user,
.icon-search,
.icon-cart {
  width: 22px;
  height: 22px;
  font-size: 1.05rem;
  line-height: 22px;
  text-align: center;
  object-fit: contain;
}

.icon-menu > li:not(.nav-cta) > a.sale-link {
  width: auto;
  height: 42px;
  gap: 8px;
  padding: 0 10px 0 13px;
  font-family: var(--bb-font-display);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.icon-menu .cart {
  position: relative;
}

.icon-menu .cart .sale-link-text {
  position: static;
  display: inline;
  min-width: 0;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1;
}

.icon-menu .cart span:not(.sale-link-text) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--bb-green);
  color: var(--bb-on-neon);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
}

.icon-menu .cart span:empty {
  display: none;
}

.icon-menu .nav-cta {
  margin-left: 14px;
}

/* Outlined pill with an arrow, as in the mock-up */
.btn-nav,
.btn-nav:hover {
  min-height: 46px;
  padding: 0.5rem 1.4rem;
  font-size: 0.98rem;
  text-decoration: none;
}

.icon-menu .nav-cta .btn-nav {
  border: 1.5px solid var(--bb-green);
  border-radius: 999px;
  background: rgba(143, 216, 43, 0.05);
  box-shadow: inset 0 0 20px rgba(143, 216, 43, 0.06);
  color: var(--bb-green);
}

.icon-menu .nav-cta .btn-nav:hover,
.icon-menu .nav-cta .btn-nav:focus {
  background: var(--bb-green);
  box-shadow: 0 0 30px rgba(143, 216, 43, 0.5);
  color: var(--bb-on-neon);
}

.btn-nav::after {
  font-family: "Font Awesome 6 Free";
  font-size: 0.8rem;
  font-weight: 900;
  content: "\f061";
  transition: transform 240ms var(--bb-ease);
}

.btn-nav:hover::after {
  transform: translateX(5px);
}

.icon-menu .submenu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 5;
  display: none;
  min-width: 210px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border: 1px solid var(--bb-line-strong);
  border-radius: 16px;
  background: rgba(13, 19, 36, 0.98);
  box-shadow: var(--bb-shadow-md);
}

.icon-menu .submenu::before {
  position: absolute;
  top: -16px;
  right: 0;
  left: 0;
  height: 16px;
  content: "";
}

.icon-menu .user:hover .submenu,
.icon-menu .user:focus-within .submenu,
.icon-menu .user.is-open .submenu {
  display: block;
  animation: nx-tag-in 220ms var(--bb-smooth);
}

.icon-menu .submenu a {
  display: block;
  padding: 11px 14px;
  border-radius: 10px;
  color: var(--bb-ink);
  font-family: var(--bb-font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
}

.icon-menu .submenu a:hover,
.icon-menu .submenu a:focus {
  background: rgba(143, 216, 43, 0.12);
  color: var(--bb-green);
}

.icon-menu .submenu .cart {
  display: none;
}

.toggle-btn {
  display: none !important;
}

/* ------------------------------------------------------------------
   Demo notice
   ------------------------------------------------------------------ */
.demo-banner {
  position: relative;
  z-index: 1035;
  padding: 7px 0;
  border-bottom: 1px solid var(--bb-line-strong);
  background: var(--bb-surface-2);
  color: var(--bb-ink);
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
}

.demo-banner p {
  position: relative;
  max-width: var(--bb-container);
  margin: 0 auto;
  padding: 0 36px 0 20px;
}

.demo-banner strong {
  font-weight: 800;
}

.demo-banner .close-banner {
  position: absolute;
  top: 50%;
  right: 20px;
  color: var(--bb-ink);
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  transform: translateY(-50%);
}

.demo-banner .close-banner:hover {
  color: var(--bb-danger);
}









/* Header search retains the JavaScript IDs */
.search-form-top {
  position: absolute;
  top: calc(100% + 8px);
  right: 15px;
  display: none;
  width: min(460px, calc(100vw - 30px));
  padding: 12px;
  border: 1px solid var(--bb-line);
  border-radius: var(--bb-radius);
  background: var(--bb-surface);
  box-shadow: var(--bb-shadow-md);
}

.search-form-top.active {
  display: block;
}

.search-form-top .input-group {
  display: flex;
  flex-wrap: nowrap;
}

.search-form-top .form-control {
  height: 48px;
  min-width: 0;
  padding-left: 18px;
  border: 2px solid var(--bb-line);
  border-right: 0;
  border-radius: 18px 0 0 18px;
  background: var(--bb-bg);
  box-shadow: none;
  color: var(--bb-ink);
  font-size: 0.95rem;
}

.search-form-top .form-control:focus {
  border-color: var(--bb-line-strong);
  background: var(--bb-surface);
}

.search-form-top .input-group-append {
  display: flex;
}

.search-form-top .input-group-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 48px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0 18px 18px 0;
  background: var(--bb-blue);
  color: var(--bb-on-neon);
  box-shadow: none;
}

.search-form-top .input-group-text:hover,
.search-form-top .input-group-text:focus {
  background: var(--bb-blue-hover);
  color: var(--bb-on-neon);
  transform: none;
  box-shadow: none;
}

#suggestions-list2,
#suggestions-list {
  position: absolute;
  z-index: 1040;
  right: 0;
  left: 0;
  max-height: 264px;
  margin: 6px 0 0;
  padding: 6px;
  overflow-y: auto;
  list-style: none;
  border: 1px solid var(--bb-line);
  border-radius: var(--bb-radius);
  background: var(--bb-surface);
  box-shadow: var(--bb-shadow-md);
  text-align: left;
}

#suggestions-list2:empty,
#suggestions-list:empty {
  display: none;
}

#suggestions-list2 li,
#suggestions-list li {
  padding: 10px 12px;
  border-radius: 18px;
  color: var(--bb-ink);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
}

#suggestions-list2 li:hover,
#suggestions-list li:hover {
  background: var(--bb-surface-2);
}

#suggestions-list2 a,
#suggestions-list a {
  display: block;
  margin: -10px -12px;
  padding: 10px 12px;
  color: inherit;
  text-decoration: none;
}

.error-message,
.error-message2 {
  display: none;
  margin-top: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 42, 85, 0.5);
  border-radius: 18px;
  background: rgba(255, 42, 85, 0.12);
  color: var(--bb-danger);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Mobile drawer keeps the legacy classes and IDs */
.nav-scrim {
  position: fixed;
  z-index: 1090;
  inset: 0;
  visibility: hidden;
  background: rgba(0, 0, 0, 0.62);
  opacity: 0;
  transition: opacity 300ms ease, visibility 0s linear 300ms;
}

body.cbp-spmenu-push-toleft .nav-scrim {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.cbp-spmenu {
  position: fixed;
  top: 0;
  height: 100%;
  background: var(--bb-surface-2);
  visibility: hidden;
  transition: left 320ms var(--bb-ease), visibility 0s linear 320ms;
}

.cbp-spmenu.cbp-spmenu-right {
  z-index: 1100;
  right: auto;
  left: -360px;
  display: flex;
  flex-direction: column;
  width: 340px;
  padding: 22px 26px 30px;
  overflow-y: auto;
  box-shadow: 18px 0 50px rgba(43, 24, 70, 0.25);
}

.cbp-spmenu.cbp-spmenu-right.cbp-spmenu-open {
  left: 0;
  visibility: visible;
  transition-delay: 0s;
}

/* The page no longer slides sideways when the drawer opens; the scrim carries the transition */
.cbp-spmenu-push {
  position: relative;
  left: 0;
}

.cbp-spmenu-push-toleft {
  left: 0;
}

.cbp-spmenu .close-menu {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0 0 18px auto;
  border: 1px solid var(--bb-line-inv);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 0;
  transition: background-color 180ms ease, transform 260ms var(--bb-ease);
}

.cbp-spmenu .close-menu:hover {
  background: var(--bb-surface-2);
  transform: rotate(90deg);
}

.cbp-spmenu .close-menu::before {
  content: "×";
  font-size: 1.6rem;
  line-height: 1;
}

.cbp-spmenu a {
  display: block;
  padding: 14px 4px;
  border-bottom: 1px solid var(--bb-line-inv);
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--bb-font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.cbp-spmenu a:hover,
.cbp-spmenu a:focus,
.cbp-spmenu a.active {
  color: #fff;
}

.cbp-spmenu a.active {
  color: var(--bb-green);
}

.cbp-spmenu a.drawer-sub {
  padding: 11px 4px;
  color: rgba(239, 239, 241, 0.7);
  font-family: var(--bb-font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
}

.cbp-spmenu a.drawer-cta {
  margin-top: 26px;
  padding: 15px 22px;
  border: 0;
  border-radius: 18px;
  background: var(--bb-blue);
  color: var(--bb-on-neon);
  font-family: var(--bb-font-body);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
  text-align: center;
}

.cbp-spmenu a.drawer-cta:hover,
.cbp-spmenu a.drawer-cta:focus {
  background: var(--bb-blue-hover);
  color: var(--bb-on-neon);
}

/* ------------------------------------------------------------------
   Feedback messages
   ------------------------------------------------------------------ */
.messages {
  position: relative;
  z-index: 1020;
  max-width: var(--bb-container);
  margin: 18px auto 0;
  padding: 0 15px;
}

.message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  padding: 13px 16px;
  border: 1px solid var(--bb-line);
  border-left: 5px solid var(--bb-line-strong);
  border-radius: var(--bb-radius-sm);
  background: var(--bb-surface);
  box-shadow: var(--bb-shadow-sm);
  color: var(--bb-ink);
  font-size: 0.93rem;
  font-weight: 600;
  transition: opacity 300ms ease, transform 300ms ease;
}

.message-success { border-left-color: var(--bb-success); }
.message-error { border-left-color: var(--bb-danger); }
.message-warning { border-left-color: var(--bb-warning); }

.message-icon { color: var(--bb-ink); }
.message-success .message-icon { color: var(--bb-success); }
.message-error .message-icon { color: var(--bb-danger); }
.message-warning .message-icon { color: var(--bb-warning); }

.message-text {
  flex: 1 1 auto;
}

.message .close-button {
  margin: -3px -4px -3px 0;
  padding: 2px 6px;
  border: 0;
  background: transparent;
  color: var(--bb-ink-muted);
  cursor: pointer;
}









/* ------------------------------------------------------------------
   Homepage: hero
   ------------------------------------------------------------------ */
.hero {
  position: relative;
  padding: 70px 0 96px;
  overflow: hidden;
  border-bottom: 1px solid var(--bb-line);
  background:
    radial-gradient(760px 480px at 75% 30%, rgba(59, 130, 255, 0.2), transparent 70%),
    radial-gradient(600px 400px at 92% 90%, rgba(143, 216, 43, 0.12), transparent 70%),
    linear-gradient(180deg, #080d1d, #060a16);
}

.hero > .container {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 7px 18px 7px 12px;
  border: 1px solid var(--bb-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--bb-ink);
  font-family: var(--bb-font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-badge::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bb-green);
  box-shadow: 0 0 12px rgba(143, 216, 43, 0.9);
  content: "";
  animation: nx-glow 2.4s ease-in-out infinite;
}

.hero-title {
  margin: 0 0 22px;
  font-size: clamp(3.2rem, 7.4vw, 6.2rem);
  font-weight: 700;
  letter-spacing: 0.005em;
  line-height: 0.92;
  text-transform: uppercase;
}

.hero-title .line {
  display: block;
}

.hero-title .line--lime {
  color: var(--bb-green);
}

/* Typing word: reserves its widest width, with a caret that blinks when idle */
.hero-title .type-word {
  display: inline-block;
  min-width: min(var(--tw-w, 0px), 100%);
}

html.js .hero-title .type-word::after {
  display: inline-block;
  width: 0.06em;
  height: 0.78em;
  margin-left: 0.06em;
  background: currentColor;
  content: "";
  vertical-align: -0.02em;
  animation: nx-caret 1s steps(1) infinite;
}

html.js .hero-title .type-word.is-typing::after {
  animation: none;
}

.hero-subtitle {
  max-width: 27em;
  margin: 0 0 26px;
  color: var(--bb-ink);
  font-size: 1.15rem;
  font-weight: 400;
}

.search-box-wrapper {
  position: relative;
  max-width: 560px;
}

.home-search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.home-search-form {
  position: relative;
}

.home-search-form .input-group {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  padding: 6px 6px 6px 20px;
  border: 1px solid var(--bb-line-strong);
  border-radius: 16px;
  background: rgba(13, 19, 36, 0.85);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  transition: border-color 200ms ease, box-shadow 260ms ease;
}

.home-search-form .input-group:focus-within {
  border-color: var(--bb-green);
  box-shadow: 0 0 0 3px rgba(143, 216, 43, 0.2), 0 0 44px rgba(143, 216, 43, 0.22), 0 18px 44px rgba(0, 0, 0, 0.5);
}

.home-search-form .input-group::before {
  flex: 0 0 auto;
  margin-right: 14px;
  color: var(--bb-green);
  content: "\f002";
  font-family: "Font Awesome 6 Free";
  font-size: 1rem;
  font-weight: 900;
}

.search-input.form-control {
  height: 52px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--bb-ink);
  font-size: 1.05rem;
}

.search-input.form-control::placeholder {
  color: var(--bb-ink-muted);
}

.search-input.form-control:focus {
  outline: 0;
  background: transparent;
  box-shadow: none;
}

.home-search-form .btn-primary {
  flex: 0 0 auto;
  min-height: 52px;
  padding-right: 1.5rem;
  padding-left: 1.5rem;
  border-radius: 12px;
}

.home-search-form .btn-primary::after {
  font-family: "Font Awesome 6 Free";
  font-size: 0.8rem;
  font-weight: 900;
  content: "\f061";
}

.hero .error-message {
  margin-left: 14px;
}

.hero-marks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 26px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.hero-marks li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--bb-ink);
  font-size: 0.92rem;
  font-weight: 500;
}

.hero-marks li + li {
  padding-left: 26px;
  border-left: 1px solid var(--bb-line-strong);
}

.hero-marks i {
  color: var(--bb-green);
  font-size: 1rem;
}

/* Floating phones inside a glowing ring: outer layer follows the pointer, inner image floats */
.hero-art {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  aspect-ratio: 1 / 0.66;
}

.hero-ring {
  position: absolute;
  top: -14%;
  left: 8%;
  width: 84%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(59, 130, 255, 0) 0%, #3b82ff 30%, #8fd82b 58%, rgba(143, 216, 43, 0) 80%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  filter: drop-shadow(0 0 14px rgba(143, 216, 43, 0.55));
  animation: nx-spin 22s linear infinite;
}

.hero-ring--outer {
  top: -22%;
  left: 1%;
  width: 98%;
  opacity: 0.4;
  animation-direction: reverse;
  animation-duration: 34s;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  animation: nx-glow 6s ease-in-out infinite;
}

.hero-glow--blue { top: 10%; left: 4%; width: 46%; height: 60%; background: rgba(59, 130, 255, 0.4); }
.hero-glow--lime { right: 4%; bottom: 0; width: 40%; height: 46%; background: rgba(143, 216, 43, 0.28); animation-delay: -3s; }

.art-layer {
  position: absolute;
  transform: translate3d(calc(var(--mx, 0) * var(--depth, 10) * 1px), calc(var(--my, 0) * var(--depth, 10) * 1px), 0);
  transition: transform 300ms ease-out;
  will-change: transform;
}

.art-layer--main {
  --depth: 20;
  inset: 0;
}

.art-img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: radial-gradient(ellipse 60% 62% at 50% 50%, #000 48%, transparent 100%);
  mask-image: radial-gradient(ellipse 60% 62% at 50% 50%, #000 48%, transparent 100%);
  animation: nx-float 8s ease-in-out infinite;
}

/* ------------------------------------------------------------------
   Homepage: the advantage
   ------------------------------------------------------------------ */
.advantage {
  padding: 74px 0 78px;
  border-bottom: 1px solid var(--bb-line);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--bb-green);
  font-family: var(--bb-font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.section-header {
  max-width: 46em;
  margin: 0 auto 44px;
  text-align: center;
}

.section-header h2 {
  margin: 0 0 8px;
  font-size: clamp(2.2rem, 4.4vw, 3.3rem);
  font-weight: 700;
  text-transform: uppercase;
}

.section-header .lead {
  margin: 0;
  color: var(--bb-ink-muted);
  font-size: 1.08rem;
}

.section-header--split {
  display: block;
  max-width: 46em;
}

.section-header--split > div {
  max-width: none;
}

.section-header--split .btn {
  display: none;
}

.adv-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.adv-item {
  padding: 8px 32px;
}

.adv-item + .adv-item {
  border-left: 1px solid var(--bb-line);
}

.adv-icon {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin-bottom: 20px;
  border: 1px solid var(--bb-line);
  border-radius: 50%;
  background: var(--bb-surface-2);
  color: var(--bb-green);
  font-size: 1.6rem;
  box-shadow: 0 0 0 0 rgba(143, 216, 43, 0);
  transition: box-shadow 320ms ease, border-color 260ms ease, transform 380ms var(--bb-ease);
}

.adv-item:hover .adv-icon {
  border-color: var(--bb-green);
  box-shadow: 0 0 34px rgba(143, 216, 43, 0.3);
  transform: translateY(-6px) scale(1.06);
}

.adv-item h3 {
  margin: 0 0 8px;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.adv-item p {
  margin: 0;
  color: var(--bb-ink-muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

/* ------------------------------------------------------------------
   Category selection (carousel on the home page, grids elsewhere)
   ------------------------------------------------------------------ */
.home-section {
  padding: 78px 0 84px;
}

.cat-carousel {
  position: relative;
}

.cat-track {
  display: flex;
  gap: 18px;
  padding: 8px 4px 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.cat-track::-webkit-scrollbar {
  display: none;
}

.cat-track > .category-card {
  flex: 0 0 calc((100% - 54px) / 4);
  min-width: 210px;
  scroll-snap-align: start;
}

.cat-arrow {
  position: absolute;
  top: 42%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--bb-line-strong);
  border-radius: 50%;
  background: rgba(13, 19, 36, 0.92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  color: var(--bb-ink);
  cursor: pointer;
  transition: border-color 200ms ease, box-shadow 260ms ease, color 200ms ease, transform 300ms var(--bb-ease);
}

.cat-arrow--prev { left: -23px; }
.cat-arrow--next { right: -23px; }

.cat-arrow:hover,
.cat-arrow:focus-visible {
  border-color: var(--bb-green);
  box-shadow: 0 0 26px rgba(143, 216, 43, 0.4);
  color: var(--bb-green);
  transform: scale(1.1);
}

.cat-arrow[disabled] {
  opacity: 0.3;
  pointer-events: none;
}

.cat-carousel.is-static .cat-arrow,
.cat-carousel.is-static .cat-dots {
  display: none;
}

.cat-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.cat-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: background-color 200ms ease, transform 260ms var(--bb-ease), box-shadow 260ms ease;
}

.cat-dots button.is-active {
  background: var(--bb-green);
  box-shadow: 0 0 12px rgba(143, 216, 43, 0.8);
  transform: scale(1.3);
}

.pick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.device-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.pick-grid > *,
.device-grid > *,
.cat-track > * { --edge: #8fd82b; --edge-rgb: 143, 216, 43; }
.pick-grid > :nth-child(4n + 1),
.pick-grid > :nth-child(4n + 2),
.device-grid > :nth-child(4n + 1),
.device-grid > :nth-child(4n + 2),
.cat-track > :nth-child(4n + 1),
.cat-track > :nth-child(4n + 2) { --edge: #3b82ff; --edge-rgb: 59, 130, 255; }

.category-card,
.device-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding: 18px 16px 20px;
  border: 1px solid var(--bb-line);
  border-radius: 18px;
  background: var(--bb-glass);
  color: var(--bb-ink);
  text-align: center;
  text-decoration: none;
  transition: border-color 220ms ease, box-shadow 320ms ease, transform 380ms var(--bb-ease);
}

.category-card::before,
.device-card::before {
  position: absolute;
  top: 8%;
  left: 15%;
  width: 70%;
  height: 46%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--edge-rgb), 0.28), transparent 70%);
  content: "";
  opacity: 0.55;
  transition: opacity 320ms ease, transform 420ms var(--bb-ease);
}

.category-card:hover,
.category-card:focus,
.device-card:hover,
.device-card:focus {
  border-color: var(--edge);
  box-shadow: 0 0 0 1px var(--edge), 0 22px 56px rgba(var(--edge-rgb), 0.28);
  color: var(--bb-ink);
  transform: translateY(-8px);
}

.category-card:hover::before,
.device-card:hover::before {
  opacity: 1;
  transform: scale(1.25);
}

.category-media,
.device-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.category-media {
  height: 190px;
  padding: 8px;
}

.device-media {
  height: 210px;
  padding: 10px;
}

.pick-grid--brands .category-media {
  height: 130px;
}

.category-image,
.device-media img {
  position: relative;
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.6));
  animation: nx-float 6.5s ease-in-out infinite;
}

.pick-grid > :nth-child(2n) .category-image,
.device-grid > :nth-child(2n) .device-media img,
.cat-track > :nth-child(2n) .category-image {
  animation-delay: -2s;
  animation-duration: 7.5s;
}

.pick-grid > :nth-child(3n) .category-image,
.device-grid > :nth-child(3n) .device-media img,
.cat-track > :nth-child(3n) .category-image {
  animation-delay: -3.5s;
}

.category-card:hover .category-image,
.device-card:hover .device-media img {
  animation-duration: 2.8s;
}

.category-name {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0 16px;
  font-family: var(--bb-font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.category-go {
  display: none;
}

.category-card::after {
  position: relative;
  margin-top: auto;
  padding: 8px 22px;
  border: 1.5px solid var(--edge);
  border-radius: 10px;
  color: var(--edge);
  content: "Get a quote";
  font-family: var(--bb-font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 220ms ease, color 220ms ease, box-shadow 260ms ease;
}

.category-card:hover::after {
  background: var(--edge);
  box-shadow: 0 0 24px rgba(var(--edge-rgb), 0.55);
  color: #071204;
}

.device-body {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
}

.device-name {
  margin: 0;
  color: inherit;
  font-size: 1.5rem;
  line-height: 1.1;
}

.device-text {
  display: -webkit-box;
  overflow: hidden;
  color: var(--bb-ink-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.device-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 8px 22px;
  border: 1.5px solid var(--edge);
  border-radius: 10px;
  color: var(--edge);
  font-family: var(--bb-font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.device-card:hover .device-cta {
  background: var(--edge);
  box-shadow: 0 0 24px rgba(var(--edge-rgb), 0.55);
  color: #071204;
}

.device-grid--wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Inner page heading */
.page-head {
  position: relative;
  padding: 66px 0 58px;
  overflow: hidden;
  border-bottom: 1px solid var(--bb-line);
  background:
    radial-gradient(640px 320px at 88% 10%, rgba(59, 130, 255, 0.22), transparent 70%),
    linear-gradient(180deg, #080d1d, #060a16);
}

.page-head::before {
  position: absolute;
  top: -120%;
  right: -6%;
  width: 640px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(59, 130, 255, 0) 0%, #3b82ff 30%, #8fd82b 58%, rgba(143, 216, 43, 0) 80%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  content: "";
  opacity: 0.75;
  animation: nx-spin 40s linear infinite;
}

.page-head::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 140px;
  height: 3px;
  background: var(--bb-green);
  box-shadow: 0 0 20px rgba(143, 216, 43, 0.8);
  content: "";
}

.page-head > .container {
  position: relative;
  z-index: 1;
}

.page-head h1 {
  max-width: 14em;
  margin: 0 0 10px;
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  font-weight: 700;
  text-transform: uppercase;
}

.page-lede {
  max-width: 36em;
  margin: 0;
  color: var(--bb-ink-muted);
  font-size: 1.15rem;
}

.page-body {
  padding: 50px 0 100px;
}

.page-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 30px;
  border: 1px dashed var(--bb-line-strong);
  border-radius: 16px;
  color: var(--bb-ink-muted);
  text-align: center;
}

.filters-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 34px;
  padding: 22px;
  border: 1px solid var(--bb-line);
  border-radius: 18px;
  background: var(--bb-glass);
}

.filters-form .form-label {
  display: block;
  margin: 0 0 6px;
  color: var(--bb-green);
  font-family: var(--bb-font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.form-select {
  display: block;
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--bb-line-strong);
  border-radius: 12px;
  background-color: var(--bb-surface-2);
  color: var(--bb-ink);
  font-size: 1rem;
}

.form-select:focus {
  border-color: var(--bb-green);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(143, 216, 43, 0.22);
}

/* ------------------------------------------------------------------
   Homepage: how it works (a real sequence, so it is numbered)
   ------------------------------------------------------------------ */
.steps-section {
  position: relative;
  padding: 84px 0 92px;
  border-top: 1px solid var(--bb-line);
  border-bottom: 1px solid var(--bb-line);
  background: linear-gradient(180deg, rgba(13, 19, 36, 0.7), rgba(7, 11, 24, 0.4));
}

.steps-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

/* A dashed line links the four circles */
.steps-list::before {
  position: absolute;
  top: 40px;
  right: 12.5%;
  left: 12.5%;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(143, 216, 43, 0.75) 0 10px, transparent 10px 24px);
  content: "";
  animation: nx-dash 1.2s linear infinite;
}

.step-item {
  position: relative;
  padding: 0 8px;
  text-align: center;
  counter-increment: step;
}

.step-num {
  display: none;
}

.step-icon {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 82px;
  height: 82px;
  margin-bottom: 22px;
  border: 1.5px solid var(--bb-green);
  border-radius: 50%;
  background: var(--bb-bg);
  box-shadow: 0 0 0 8px var(--bb-bg), 0 0 30px rgba(143, 216, 43, 0.25);
  color: var(--bb-green);
  font-size: 1.7rem;
  transition: background-color 260ms ease, color 260ms ease, transform 380ms var(--bb-ease), box-shadow 300ms ease;
}

.step-icon::after {
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bb-green);
  color: var(--bb-on-neon);
  content: counter(step);
  font-family: var(--bb-font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.step-item:hover .step-icon {
  background: var(--bb-green);
  box-shadow: 0 0 0 8px var(--bb-bg), 0 0 44px rgba(143, 216, 43, 0.5);
  color: var(--bb-on-neon);
  transform: translateY(-6px) scale(1.06);
}

.step-item:hover .step-icon::after {
  background: var(--bb-bg);
  color: var(--bb-green);
}

.step-item h3 {
  margin: 0 0 8px;
  font-size: 1.6rem;
}

.step-item p {
  max-width: 18em;
  margin: 0 auto;
  color: var(--bb-ink-muted);
  font-size: 0.98rem;
}

/* ------------------------------------------------------------------
   Homepage: why sell with us
   ------------------------------------------------------------------ */
.why-choose-us {
  padding: 84px 0 30px;
  overflow-x: clip;
}

.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  align-items: center;
}

.why-intro h2 {
  margin: 0 0 16px;
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.why-intro p {
  max-width: 26em;
  margin: 0 0 26px;
  color: var(--bb-ink-muted);
  font-size: 1.1rem;
}

.feature-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-box {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  column-gap: 20px;
  align-items: center;
  padding: 22px 26px;
  border: 1px solid var(--bb-line);
  border-radius: 18px;
  background: var(--bb-glass);
  transition: border-color 240ms ease, box-shadow 320ms ease, transform 380ms var(--bb-ease);
}

.feature-box:hover {
  border-color: var(--bb-green);
  box-shadow: 0 0 0 1px var(--bb-green), 0 18px 50px rgba(143, 216, 43, 0.2);
  transform: translateX(-8px);
}

.feature-icon {
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid var(--bb-line-strong);
  border-radius: 50%;
  background: var(--bb-surface-2);
  color: var(--bb-green);
  font-size: 1.3rem;
}

.feature-box h3 {
  margin: 0 0 2px;
  font-size: 1.5rem;
}

.feature-box p {
  margin: 0;
  color: var(--bb-ink-muted);
  font-size: 1rem;
}

/* ------------------------------------------------------------------
   Homepage: closing call to action
   ------------------------------------------------------------------ */
.cta-section {
  padding: 60px 0 100px;
}

.cta-band {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 64px 56px;
  overflow: hidden;
  border: 1px solid rgba(143, 216, 43, 0.45);
  border-radius: 28px;
  background:
    radial-gradient(520px 300px at 88% 50%, rgba(59, 130, 255, 0.3), transparent 70%),
    radial-gradient(420px 260px at 4% 100%, rgba(143, 216, 43, 0.16), transparent 70%),
    linear-gradient(120deg, #0b1230, #070b18);
  box-shadow: 0 0 60px rgba(59, 130, 255, 0.12);
}

.cta-band > * {
  position: relative;
  z-index: 2;
}

.cta-band h2 {
  max-width: 9.5em;
  margin: 0 0 10px;
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.cta-band p {
  margin: 0;
  color: var(--bb-ink-muted);
  font-size: 1.12rem;
}

.cta-device {
  position: absolute;
  z-index: 1;
  right: 240px;
  bottom: -56px;
  width: min(34%, 400px);
  pointer-events: none;
}

.cta-device img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: radial-gradient(ellipse 60% 62% at 50% 50%, #000 48%, transparent 100%);
  mask-image: radial-gradient(ellipse 60% 62% at 50% 50%, #000 48%, transparent 100%);
  animation: nx-float 8s ease-in-out infinite;
}

/* ------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */
footer {
  position: relative;
  padding: 70px 0 0;
  border-top: 1px solid var(--bb-line);
  background: linear-gradient(180deg, #060a16, #050813);
  color: var(--bb-ink-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.9fr 1.1fr;
  padding-bottom: 46px;
}

.footer-brand,
.footer-col {
  padding: 4px 34px;
}

.footer-brand {
  padding-left: 0;
}

.footer-col {
  border-left: 1px solid var(--bb-line);
}

.logo-img-footer {
  display: block;
  width: auto;
  height: auto;
  max-width: 200px;
  max-height: 44px;
  padding: 10px 18px;
  border-radius: 12px;
  background: #eef2fb;
  box-sizing: content-box;
}

.footer-tagline {
  margin: 18px 0 8px;
  color: var(--bb-ink);
  font-family: var(--bb-font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
}

.footer-intro {
  max-width: 21em;
  margin: 0;
  color: var(--bb-ink-muted);
  font-size: 0.98rem;
}

.footer-col h3 {
  margin: 4px 0 18px;
  color: var(--bb-green);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col li + li {
  margin-top: 6px;
}

.footer-col li a,
.footer-col li > span {
  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
  padding: 3px 0;
  color: var(--bb-ink);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
}

.footer-col li i {
  width: 18px;
  margin-top: 5px;
  color: var(--bb-green);
  font-size: 0.95rem;
  text-align: center;
}

.footer-col li a:hover,
.footer-col li a:focus {
  color: var(--bb-green);
  transform: translateX(4px);
}

.footer-col img[alt="checkmend logo"] {
  width: 110px;
  height: auto;
  margin-top: 8px;
  border-radius: 8px;
}

.social ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col .social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bb-surface-3);
  color: #fff;
  font-size: 1.05rem;
  text-decoration: none;
  transition: transform 300ms var(--bb-ease), box-shadow 260ms ease;
}

.footer-col .social a[aria-label="Facebook"] { background: #2d5be3; }
.footer-col .social a[aria-label="X"] { background: #1d9bf0; }
.footer-col .social a[aria-label="Instagram"] { background: linear-gradient(135deg, #f9a03f, #e1306c 55%, #833ab4); }
.footer-col .social a[aria-label="LinkedIn"] { background: #0a66c2; }
.footer-col .social a[aria-label="YouTube"] { background: #e02424; }

.footer-col .social a:hover,
.footer-col .social a:focus {
  box-shadow: 0 0 26px rgba(255, 255, 255, 0.35);
  color: #fff;
  transform: translateY(-5px) scale(1.08);
}

.footer-secure {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid var(--bb-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.footer-secure i {
  color: var(--bb-green);
  font-size: 1.7rem;
}

.footer-secure strong {
  display: block;
  color: var(--bb-ink);
  font-family: var(--bb-font-display);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}

.footer-secure span {
  display: block;
  font-size: 0.82rem;
  line-height: 1.4;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 36px;
  padding: 22px 0 28px;
  border-top: 1px solid var(--bb-line);
  text-align: center;
}

.footer-base p {
  margin: 0;
  color: var(--bb-ink-muted);
  font-size: 0.92rem;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-legal li + li {
  margin-left: 22px;
  padding-left: 22px;
  border-left: 1px solid var(--bb-line-strong);
}

.footer-legal a {
  color: var(--bb-ink-muted);
  font-size: 0.92rem;
}

.footer-legal a:hover,
.footer-legal a:focus {
  color: var(--bb-green);
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 18px;
  border: 1.5px solid var(--bb-green);
  border-radius: 999px;
  color: var(--bb-green);
  font-family: var(--bb-font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.to-top:hover,
.to-top:focus {
  background: var(--bb-green);
  box-shadow: 0 0 26px rgba(143, 216, 43, 0.5);
  color: var(--bb-on-neon);
  transform: translateY(-3px);
}

/* ------------------------------------------------------------------
   Content pages (CMS pages such as How it works, Support, Terms)
   ------------------------------------------------------------------ */
.page-content {
  max-width: 820px;
  color: var(--bb-ink);
  font-size: 1.05rem;
  line-height: 1.7;
}

.page-content h1,
.page-content h2,
.page-content h3 {
  margin: 1.6em 0 0.5em;
}

.page-content h1:first-child,
.page-content h2:first-child {
  margin-top: 0;
}

.page-content img {
  height: auto;
  border-radius: var(--bb-radius-sm);
}

.page-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.page-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
}









/* ------------------------------------------------------------------
   Account area, customer dashboard and checkout flow
   ------------------------------------------------------------------ */
.acct-page {
  padding: 36px 0 90px;
}

.acct-heading {
  margin: 0 0 8px;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  text-align: center;
}

.acct-lede {
  max-width: 34em;
  margin: 0 auto 30px;
  color: var(--bb-ink-muted);
  font-size: 1.05rem;
  text-align: center;
}

/* Sign in, register and password screens */
.auth-shell {
  display: flex;
  justify-content: center;
  padding: 52px 15px 96px;
}

.auth-card {
  position: relative;
  width: 100%;
  max-width: 500px;
  padding: 38px 34px;
  border: 1.5px solid var(--bb-line);
  border-radius: 22px;
  background: var(--bb-surface);
  box-shadow: 0 18px 40px rgba(43, 24, 70, 0.14);
  text-align: center;
}

.auth-card--wide {
  max-width: 940px;
  text-align: left;
}

.auth-card h1 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 3.6vw, 2.3rem);
}

.auth-card > p,
.auth-lede {
  margin: 0 0 22px;
  color: var(--bb-ink-muted);
  line-height: 1.6;
}

.auth-card a:not(.btn) {
  color: var(--bb-ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--bb-blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.auth-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--bb-surface-2);
  color: var(--bb-ink);
  font-size: 1.7rem;
}

.auth-icon--warn {
  background: rgba(255, 42, 85, 0.16);
  color: var(--bb-red);
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.auth-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  max-width: 1080px;
  margin: 52px auto 96px;
  overflow: hidden;
  border: 1.5px solid var(--bb-line);
  border-radius: 22px;
  background: var(--bb-surface);
  box-shadow: 0 18px 40px rgba(43, 24, 70, 0.14);
}

.auth-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 52px 46px;
}

.auth-main h1 {
  margin: 0 0 6px;
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
}

.auth-main .auth-lede {
  margin-bottom: 26px;
}

.auth-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 38px;
  overflow: hidden;
  background: var(--bb-surface-2);
  color: var(--bb-ink);
  text-align: center;
}

.auth-aside::before {
  position: absolute;
  right: -90px;
  bottom: -90px;
  width: 300px;
  height: 300px;
  border: 46px solid rgba(239, 239, 241, 0.07);
  border-radius: 50%;
  content: "";
}

.auth-aside h2 {
  position: relative;
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.auth-aside p {
  position: relative;
  margin: 0 0 22px;
  color: rgba(239, 239, 241, 0.82);
}

.auth-aside img {
  position: relative;
  width: auto;
  max-width: 100%;
  max-height: 230px;
  margin-top: 26px;
  border-radius: 18px;
}

/* Forms (works with hand-written fields and Django's as_p output) */
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  text-align: left;
}

.form-stack p,
.form-stack .field {
  margin: 0;
}

.form-stack label {
  display: block;
  margin: 0 0 6px;
  color: var(--bb-ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.form-stack input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="hidden"]),
.form-stack select,
.form-stack textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 0.7rem 1.05rem;
  border: 2px solid var(--bb-line);
  border-radius: 18px;
  background: var(--bb-bg);
  box-shadow: none;
  color: var(--bb-ink);
  font-family: inherit;
  font-size: 0.98rem;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.form-stack textarea {
  min-height: 130px;
}

.form-stack input:focus,
.form-stack select:focus,
.form-stack textarea:focus {
  border-color: var(--bb-line-strong);
  outline: 0;
  background: var(--bb-surface);
  box-shadow: 0 0 0 4px rgba(43, 24, 70, 0.12);
}

.form-stack input[type="checkbox"],
.form-stack input[type="radio"] {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: -3px;
  accent-color: var(--bb-surface-2);
}

.form-stack .helptext,
.form-stack small {
  display: block;
  margin-top: 6px;
  color: var(--bb-ink-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.form-stack .errorlist,
.form-stack .text-danger {
  margin: 0 0 6px;
  padding: 0;
  list-style: none;
  color: var(--bb-danger) !important;
  font-size: 0.85rem;
  font-weight: 600;
}

.form-stack .btn,
.form-stack button[type="submit"] {
  width: 100%;
}

.form-note {
  margin: 0;
  text-align: center;
}

.form-section {
  margin: 12px 0 4px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bb-line-strong);
  color: var(--bb-ink);
  font-family: var(--bb-font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
}

.form-grid > .span-2 {
  grid-column: 1 / -1;
}

.auth-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.auth-fieldset legend {
  width: auto;
  margin: 0 0 14px;
  padding: 0 0 10px;
  border-bottom: 2px solid var(--bb-line-strong);
  color: var(--bb-ink);
  font-family: var(--bb-font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

/* Alerts */
.auth-alert,
.auth-alert.alert {
  position: relative;
  width: 100%;
  margin: 0 0 20px;
  padding: 16px 44px 16px 18px;
  border: 2px solid var(--bb-danger);
  border-radius: 18px;
  background: rgba(255, 42, 85, 0.12);
  color: var(--bb-ink);
  font-size: 0.92rem;
  text-align: left;
}

.auth-alert h3 {
  margin: 0 0 8px;
  color: var(--bb-danger);
  font-family: var(--bb-font-body);
  font-size: 1rem;
  font-weight: 800;
}

.auth-alert ul {
  margin: 4px 0 0;
  padding-left: 18px;
}

.auth-alert p {
  margin: 0 0 4px;
}

.auth-alert-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--bb-danger);
  cursor: pointer;
}

.auth-alert-close:hover {
  background: rgba(180, 35, 24, 0.1);
}

.auth-note {
  margin: 0 0 20px;
  padding: 14px 18px;
  border-radius: 18px;
  background: var(--bb-surface-2);
  color: var(--bb-ink);
  font-size: 0.92rem;
  text-align: left;
}

.auth-note p {
  margin: 0;
}

.auth-success {
  margin: 0 0 22px;
  padding: 14px 18px;
  border: 2px solid var(--bb-success);
  border-radius: 18px;
  background: rgba(143, 216, 43, 0.1);
  color: var(--bb-success);
  font-weight: 700;
}

/* Customer dashboard tabs */
.acct-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 32px;
  padding: 6px;
  border: 1.5px solid var(--bb-line);
  border-radius: 18px;
  background: var(--bb-surface);
}

.acct-tabs .tab-link {
  padding: 10px 20px;
  border-radius: 18px;
  color: var(--bb-ink);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.acct-tabs .tab-link:hover,
.acct-tabs .tab-link:focus {
  background: var(--bb-surface-2);
  color: var(--bb-ink);
}

.acct-tabs .tab-link.active {
  background: var(--bb-surface-2);
  color: #fff;
}

.panel {
  margin-bottom: 28px;
  padding: 30px;
  border: 1.5px solid var(--bb-line);
  border-radius: 22px;
  background: var(--bb-surface);
  box-shadow: var(--bb-shadow-sm);
}

.panel h2,
.panel h3 {
  margin-top: 0;
}

.panel-title {
  margin: 0 0 18px;
  font-size: 1.4rem;
}

.welcome-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
  padding: 26px 30px;
  border-radius: 22px;
  background: var(--bb-surface-2);
  color: var(--bb-ink);
}

.welcome-band h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.welcome-band p {
  margin: 4px 0 0;
  color: rgba(239, 239, 241, 0.8);
}

/* Tables */
.data-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.95rem;
}

.data-table th {
  font-family: var(--bb-font-body);
  font-weight: 500;
  padding: 12px 16px;
  border: 0;
  border-bottom: 2px solid var(--bb-line-strong);
  background: transparent;
  color: var(--bb-ink);
  font-size: 0.85rem;
  text-align: left;
}

.data-table td {
  padding: 15px 16px;
  border: 0;
  border-bottom: 1px solid var(--bb-line);
  text-align: left;
  vertical-align: middle;
}

.data-table tbody tr:hover td {
  background: var(--bb-bg);
}

.data-table tbody tr[data-order-id] {
  cursor: pointer;
}

.data-table td.revised-price {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 201, 74, 0.12);
  text-align: center;
}

.data-table td.revised-price p {
  margin: 4px 0;
  font-size: 0.88rem;
}

.data-table td.revised-price form {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.data-table td.revised-price .user-response {
  font-weight: 700;
}

.btn-chip {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 5px 13px;
  border: 0;
  border-radius: 18px;
  background: var(--bb-surface-2);
  color: var(--bb-ink);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  transition: background-color 160ms ease, color 160ms ease;
}

.btn-chip:hover {
  background: var(--bb-surface-2);
  color: #fff;
}

.btn-chip--solid {
  background: var(--bb-surface-2);
  color: #fff;
}

.btn-chip--solid:hover {
  background: var(--bb-surface-3);
}

.btn-accept,
.btn-reject {
  padding: 8px 18px;
  border: 0;
  border-radius: 18px;
  color: #fff;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
}

.btn-accept {
  background: var(--bb-success-bg);
}

.btn-reject {
  background: var(--bb-danger-bg);
}

.was-price {
  color: var(--bb-danger);
  text-decoration: line-through;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 0.9rem;
}

.pager a {
  padding: 7px 14px;
  border-radius: 18px;
  background: var(--bb-surface-2);
  color: var(--bb-ink);
  font-weight: 700;
  text-decoration: none;
}

.pager a:hover {
  background: var(--bb-surface-2);
  color: #fff;
}

.status-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.status-legend .status-item {
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--bb-bg);
}

.status-legend .status {
  display: block;
  color: var(--bb-ink);
  font-size: 0.95rem;
  font-weight: 800;
}

.status-legend .description {
  display: block;
  margin-top: 2px;
  color: var(--bb-ink-muted);
  font-size: 0.86rem;
}

/* Sale flow: progress, layout and summary */
.flow-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 30px;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}

.flow-steps li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 18px 8px 9px;
  border: 2px solid var(--bb-line);
  border-radius: 18px;
  background: var(--bb-surface);
  color: var(--bb-ink-muted);
  font-size: 0.9rem;
  font-weight: 700;
  counter-increment: flow;
}

.flow-steps li::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bb-bg);
  color: var(--bb-ink-muted);
  content: counter(flow);
  font-size: 0.8rem;
}

.flow-steps li.is-done {
  border-color: var(--bb-line-strong);
  color: var(--bb-ink);
}

.flow-steps li.is-done::before {
  background: var(--bb-surface-2);
  color: #fff;
}

.flow-steps li.is-current {
  border-color: var(--bb-line-strong);
  background: var(--bb-surface-2);
  color: #fff;
}

.flow-steps li.is-current::before {
  background: var(--bb-blue);
  color: var(--bb-on-neon);
}

.flow-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr);
  gap: 26px;
  align-items: start;
}

.flow-side {
  position: sticky;
  top: 110px;
}

.total-card {
  padding: 28px;
  border: 1.5px solid var(--bb-line);
  box-shadow: 0 18px 40px rgba(43, 24, 70, 0.14);
  border-radius: 22px;
  background: var(--bb-surface-2);
  color: var(--bb-ink);
}

.total-card h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 1.25rem;
}

.total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--bb-line-inv);
  font-size: 0.95rem;
}

.total-row:last-of-type {
  border-bottom: 0;
}

.total-row--big {
  padding-top: 16px;
  font-weight: 700;
}

.total-row--big .total-figure {
  color: #fff;
  font-family: var(--bb-font-display);
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1;
}

.total-card .btn {
  width: 100%;
  margin-top: 14px;
}

.total-card .btn-outline {
  border-color: rgba(239, 239, 241, 0.5);
  color: var(--bb-ink);
}

.total-card .btn-outline:hover {
  border-color: #fff;
  background: var(--bb-surface);
  color: var(--bb-ink);
}

.choice {
  position: relative;
  margin-bottom: 10px;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 15px 18px;
  border: 2px solid var(--bb-line);
  border-radius: 18px;
  background: var(--bb-surface);
  cursor: pointer;
  font-weight: 600;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.choice label::before {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border: 2px solid var(--bb-line-strong);
  border-radius: 50%;
  content: "";
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.choice label:hover {
  border-color: var(--bb-line-strong);
}

.choice input:checked + label {
  border-color: var(--bb-line-strong);
  background: var(--bb-surface-2);
}

.choice input:checked + label::before {
  border-color: var(--bb-line-strong);
  background: var(--bb-surface-2);
  box-shadow: inset 0 0 0 4px var(--bb-surface-2);
}

.choice input:focus-visible + label {
  outline: 3px solid var(--bb-blue);
  outline-offset: 2px;
}

.confirm-note {
  margin: 18px 0;
  padding: 15px 18px;
  border-radius: 18px;
  background: var(--bb-bg);
  font-size: 0.9rem;
  line-height: 1.55;
}

.confirm-note p {
  margin: 0;
}

.confirm-note a {
  color: var(--bb-ink);
  font-weight: 700;
  text-decoration: underline;
}

.success-hero {
  padding: 40px 30px;
  border-radius: 22px;
  background: var(--bb-surface-2);
  color: var(--bb-ink);
  text-align: center;
}

.success-hero h1 {
  margin: 14px 0 6px;
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}

.success-hero p {
  margin: 0;
  color: rgba(239, 239, 241, 0.85);
}

.success-hero .auth-icon {
  margin: 0;
  background: var(--bb-blue);
  color: var(--bb-on-neon);
}

.order-chip {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 18px;
  border: 1.5px dashed rgba(239, 239, 241, 0.5);
  border-radius: 18px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ship-label {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin: 16px 0;
  padding: 22px;
  border: 2px dashed var(--bb-line-strong);
  border-radius: 22px;
  background: var(--bb-surface);
  text-align: left;
}

.ship-label p {
  margin: 2px 0;
}

.ship-label .sender-details {
  font-weight: 700;
  line-height: 1.6;
}

.ship-label .postage-info-box {
  padding: 12px 18px;
  border: 2px dashed var(--bb-line-strong);
  border-radius: 18px;
  background: var(--bb-bg);
  font-weight: 700;
  text-align: center;
}

.modal-content {
  border: 0;
  border-radius: 22px;
  overflow: hidden;
}

.modal-header {
  border-bottom: 0;
  background: var(--bb-surface-2);
  color: #fff;
}

.modal-header .close {
  color: #fff;
  opacity: 0.85;
  text-shadow: none;
}

@media (max-width: 991.98px) {
  .flow-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .flow-side {
    position: static;
  }

  .auth-split {
    grid-template-columns: minmax(0, 1fr);
    margin-right: 12px;
    margin-left: 12px;
  }

  .auth-main,
  .auth-aside {
    padding: 38px 26px;
  }
}

@media (max-width: 767.98px) {
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-card {
    padding: 30px 22px;
  }

  .panel {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .acct-tabs {
    border-radius: 22px;
  }

  .acct-tabs .tab-link {
    padding: 9px 14px;
    font-size: 0.85rem;
  }
}





/* Primary buttons that sit on a blue surface switch to the lime accent so they stay visible */
.auth-aside .btn-primary,
.total-card .btn-primary,
.welcome-band .btn-primary,
.success-hero .btn-primary,
.cbp-spmenu .btn-primary {
  background: var(--bb-blue);
  color: var(--bb-on-neon);
}

.auth-aside .btn-primary:hover,
.auth-aside .btn-primary:focus,
.total-card .btn-primary:hover,
.total-card .btn-primary:focus,
.welcome-band .btn-primary:hover,
.welcome-band .btn-primary:focus,
.success-hero .btn-primary:hover,
.success-hero .btn-primary:focus {
  background: var(--bb-blue-hover);
  box-shadow: 0 12px 25px rgba(43, 24, 70, 0.28);
  color: var(--bb-on-neon);
}


/* Primary buttons that sit on a plum surface switch to sun-yellow so they stay visible */
.auth-aside .btn-primary,
.total-card .btn-primary,
.welcome-band .btn-primary,
.success-hero .btn-primary,
.cbp-spmenu .btn-primary {
  border-color: var(--bb-line);
  background: var(--bb-blue);
  color: var(--bb-on-neon);
}




/* ------------------------------------------------------------------
   Dark-surface refinements for account, dashboard and checkout screens
   ------------------------------------------------------------------ */
.panel,
.auth-card {
  border-color: var(--bb-line);
  background: var(--bb-glass);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.auth-split {
  border-color: var(--bb-line-strong);
  background: var(--bb-glass);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.total-card,
.welcome-band,
.success-hero,
.auth-aside {
  border: 1px solid rgba(59, 130, 255, 0.45);
  background:
    radial-gradient(460px 240px at 100% 0%, rgba(59, 130, 255, 0.26), transparent 70%),
    radial-gradient(380px 220px at 0% 100%, rgba(143, 216, 43, 0.14), transparent 70%),
    linear-gradient(150deg, #101a3f, #080d20);
  box-shadow: 0 0 44px rgba(59, 130, 255, 0.14), 0 24px 60px rgba(0, 0, 0, 0.5);
  color: var(--bb-ink);
}

.total-card h2,
.welcome-band h2,
.success-hero h1,
.auth-aside h2 {
  color: var(--bb-ink);
  text-transform: uppercase;
}

.total-card .btn-primary,
.welcome-band .btn-primary,
.success-hero .btn-primary,
.auth-aside .btn-primary {
  background: linear-gradient(135deg, #a6e64a, #7fcc1f);
  color: var(--bb-on-neon);
}

.flow-steps li.is-current {
  border-color: var(--bb-green);
  background: rgba(143, 216, 43, 0.12);
  box-shadow: 0 0 22px rgba(143, 216, 43, 0.25);
  color: var(--bb-green);
}

.flow-steps li.is-done {
  border-color: rgba(143, 216, 43, 0.5);
  color: var(--bb-green);
}

.data-table th {
  color: var(--bb-green);
}

.auth-card h1,
.auth-main h1,
.acct-heading {
  text-transform: uppercase;
}

.modal-content,
.card,
.dropdown-menu {
  border: 1px solid var(--bb-line-strong);
  background: var(--bb-surface);
  color: var(--bb-ink);
}

.modal-header,
.modal-footer {
  border-color: var(--bb-line);
  background: var(--bb-surface-2);
  color: var(--bb-ink);
}

.modal-header .close,
.close {
  color: var(--bb-ink);
  text-shadow: none;
  opacity: 0.8;
}

.table,
.table td,
.table th {
  border-color: var(--bb-line);
  color: var(--bb-ink);
}

.alert {
  border-color: var(--bb-line-strong);
  background: var(--bb-surface-2);
  color: var(--bb-ink);
}

.list-unstyled a {
  color: inherit;
}


/* ------------------------------------------------------------------
   Reduced motion: everything is visible immediately and nothing moves
   ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }

  .page-loader {
    display: none !important;
  }

  html.js [data-animate],
  html.js [data-animate]:not(.animate__animated):not(.is-done) {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
  }

  .art-layer,
  .art-img,
  .hero-ring,
  .hero-glow,
  .hero-badge::before,
  .category-image,
  .device-media img,
  .cta-device img,
  .steps-list::before,
  .page-head::before {
    animation: none !important;
    transform: none !important;
  }

  html.js .hero-title .type-word::after {
    display: none;
  }

  .category-card:hover,
  .device-card:hover,
  .adv-item:hover .adv-icon,
  .step-item:hover .step-icon,
  .feature-box:hover,
  .btn-primary:hover,
  .btn-ink:hover {
    transform: none;
  }
}
