/* =====================================================================
   Afruxia — FOSSBilling theme
   Converted from the Afruxia design (Made in Abidjan)
   ===================================================================== */

:root {
  --afx-bg: #ffffff;
  --afx-bg-alt: #F5F5F6;
  --afx-ink: #23282C;
  --afx-ink-soft: #404040;
  --afx-muted: #6B7379;
  --afx-muted-2: #B0B7BC;
  --afx-line: #ECEAE5;
  --afx-line-2: #ededed;
  --afx-card: #ffffff;
  --afx-blue: #40C0E8;
  --afx-blue-rgb: 64, 192, 232;
  --afx-blue-lt: #1A90C4;
  --afx-blue-lt-rgb: 26, 144, 196;
  --afx-blue-bg: #EAF7FC;
  --afx-blue-deep: #116E99;
  --afx-green: #1A9E5F;
  --afx-green-bg: #EAF8F1;
  --afx-amber: #D94A3D;
  --afx-amber-bg: #FDF2F1;
  --afx-radius: 8px;
  --afx-pill: 100px;
  --afx-btn-radius: 6px;
  --afx-serif: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --afx-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --afx-mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  --afx-black: #000000;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--afx-bg);
  font-family: var(--afx-sans);
  color: var(--afx-ink);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.afx-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

/* ---------- typography ---------- */
.afx-serif {
  font-family: var(--afx-serif);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.afx-eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--afx-blue);
}

.afx-mono {
  font-family: var(--afx-mono);
}

/* ---------- brand ---------- */
.afx-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.afx-brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--afx-blue-lt), var(--afx-blue));
  display: flex;
  align-items: center;
  justify-content: center;
}

.afx-brand__name {
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.afx-brand--sm .afx-brand__mark {
  width: 32px;
  height: 32px;
}

.afx-brand--sm .afx-brand__name {
  font-size: 21px;
}

/* ---------- buttons ---------- */
.afx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--afx-sans);
  font-size: 15px;
  font-weight: 500;
  padding: 11px 20px;
  border-radius: var(--afx-btn-radius);
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity .15s, transform .05s;
}

.afx-btn:active {
  transform: translateY(1px);
}

.afx-btn--dark {
  background: var(--afx-ink);
  color: var(--afx-bg);
}

.afx-btn--blue {
  background: var(--afx-blue);
  color: #ffffff;
  font-weight: 500;
}

.afx-btn--ghost {
  background: transparent;
  border-color: #d6cfc3;
  color: var(--afx-ink);
}

.afx-btn--block {
  width: 100%;
}

.afx-btn:hover {
  opacity: .92;
}

/* ---------- promo banner ---------- */
.afx-promo {
  background: var(--afx-ink);
  color: var(--afx-bg);
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 24px;
  letter-spacing: 0.01em;
}

.afx-promo strong {
  color: var(--afx-blue-lt);
}

/* ---------- public nav ---------- */
.afx-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  border-bottom: 1px solid var(--afx-line);
}

.afx-nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 15px;
  font-weight: 500;
  color: #4a4640;
}

.afx-nav__burger {
  display: none;
}

.afx-nav__cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Submenu dropdown styles */
.afx-nav__item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.afx-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4a4640;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 10px 0;
  transition: color .2s;
  cursor: pointer;
}

.afx-nav__link:hover {
  color: #1487BE;
}

.afx-nav__caret {
  transition: transform .2s ease;
  opacity: 0.7;
}

.afx-nav__item:hover .afx-nav__caret {
  transform: rotate(180deg);
  color: #1487BE;
}

.afx-nav__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #ffffff;
  min-width: 340px;
  border-radius: var(--afx-radius);
  border: 1px solid var(--afx-line-2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 100;
}

.afx-nav__dropdown--grid {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #ffffff;
  min-width: 680px;
  border-radius: var(--afx-radius);
  border: 1px solid var(--afx-line-2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 100;
}

.afx-nav__item:hover .afx-nav__dropdown,
.afx-nav__item:hover .afx-nav__dropdown--grid {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.afx-nav__dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .2s, transform .2s;
}

.afx-nav__dropdown-item:hover {
  background: #f8fafc;
}

.afx-nav__dropdown-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #475569;
  flex-shrink: 0;
  transition: background .2s, color .2s;
}

.afx-nav__dropdown-item:hover .afx-nav__dropdown-icon {
  background: rgba(20, 135, 190, 0.1);
  color: #1487BE;
}

.afx-nav__dropdown-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.afx-nav__dropdown-content .title {
  font-size: 14px;
  font-weight: 500;
  color: #0f172a;
}

.afx-nav__dropdown-content .desc {
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

/* ---------- hero ---------- */
.afx-hero {
  padding: 80px 0 60px;
  text-align: center;
}

.afx-hero h1 {
  font-family: var(--afx-serif);
  font-weight: 400;
  font-size: 74px;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 auto 26px;
  max-width: 880px;
}

.afx-hero h1 em {
  font-style: italic;
  color: var(--afx-blue);
}

.afx-hero p {
  font-size: 19px;
  line-height: 1.6;
  color: var(--afx-muted);
  margin: 0 auto 36px;
  max-width: 600px;
}

.afx-hero__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 64px;
}

.afx-hero__media {
  width: 100%;
  height: 440px;
  border-radius: 20px;
  background: var(--afx-blue-bg);
  object-fit: cover;
}

/* ---------- section headings ---------- */
.afx-section {
  padding: 80px 0;
}

.afx-section__head {
  text-align: center;
  margin-bottom: 48px;
}

.afx-section__head h2 {
  font-family: var(--afx-serif);
  font-weight: 400;
  font-size: 42px;
  letter-spacing: -0.01em;
  margin: 6px 0 0;
}

/* ---------- grids / cards ---------- */
.afx-grid {
  display: grid;
  gap: 22px;
}

.afx-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.afx-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.afx-card {
  background: var(--afx-card);
  border: 1px solid var(--afx-line);
  border-radius: var(--afx-radius);
  padding: 26px;
}

.afx-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--afx-blue-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.afx-card__title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}

.afx-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--afx-muted);
  margin: 0;
}

/* ---------- pricing ---------- */
.afx-price {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.afx-plan {
  background: var(--afx-bg);
  border: 1px solid var(--afx-line);
  border-radius: 18px;
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.afx-plan--featured {
  background: var(--afx-ink);
  color: var(--afx-bg);
  border-color: var(--afx-ink);
}

.afx-plan__name {
  font-family: var(--afx-serif);
  font-size: 24px;
  margin-bottom: 2px;
}

.afx-plan__sub {
  font-size: 13px;
  color: var(--afx-muted-2);
  margin-bottom: 16px;
}

.afx-plan--featured .afx-plan__sub {
  color: #9a9d9f;
}

.afx-plan__price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 18px;
}

.afx-plan__price b {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.afx-plan__price span {
  font-size: 14px;
  color: var(--afx-muted-2);
}

.afx-plan__feats {
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 14px;
  color: #4a4640;
  margin-bottom: 26px;
  flex: 1;
}

.afx-plan--featured .afx-plan__feats {
  color: #cfcdc8;
}

.afx-badge-pop {
  font-size: 12px;
  font-weight: 500;
  background: var(--afx-blue-bg);
  color: var(--afx-blue);
  padding: 4px 11px;
  border-radius: var(--afx-pill);
}

/* ---------- status pills ---------- */
.afx-pill {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--afx-pill);
}

.afx-pill--ok {
  color: var(--afx-green);
  background: var(--afx-green-bg);
}

.afx-pill--warn {
  color: var(--afx-amber);
  background: var(--afx-amber-bg);
}

.afx-pill--info {
  color: var(--afx-blue);
  background: var(--afx-blue-bg);
}

.afx-pill--err {
  color: #9a342c;
  background: #fdeceb;
}

/* ---------- CTA band ---------- */
.afx-cta {
  background: var(--afx-ink);
  border-radius: 24px;
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.afx-cta::after {
  display: none;
}

.afx-cta h2 {
  font-family: var(--afx-serif);
  font-size: 46px;
  font-weight: 400;
  color: var(--afx-bg);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
  position: relative;
}

.afx-cta p {
  font-size: 18px;
  color: #bdb8b0;
  margin: 0 auto 32px;
  max-width: 520px;
  position: relative;
}

.afx-cta__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  position: relative;
}

.afx-cta .afx-btn--ghost {
  border-color: #45413c;
  color: var(--afx-bg);
}

/* ---------- footer ---------- */
.afx-footer {
  background: var(--afx-ink);
  color: #a59c8c;
}

.afx-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 56px 0 40px;
}

.afx-footer h4 {
  color: var(--afx-bg);
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 14px;
}

.afx-footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.afx-footer__bar {
  border-top: 1px solid #2e2b27;
  padding: 22px 32px;
  text-align: center;
  font-size: 13px;
  color: #776f64;
}

/* =====================================================================
   AUTH (login / signup)
   ===================================================================== */
.afx-auth {
  min-height: 100vh;
  display: flex;
}

.afx-auth__brand {
  flex: 0 0 46%;
  background: var(--afx-ink);
  color: var(--afx-bg);
  padding: 56px 56px 48px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.afx-auth__brand::before {
  display: none;
}

.afx-auth__pitch {
  margin: auto 0;
  position: relative;
}

.afx-auth__pitch h2 {
  font-family: var(--afx-serif);
  font-size: 46px;
  line-height: 1.06;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 0 32px;
  max-width: 420px;
}

.afx-auth__list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.afx-auth__list-item {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  font-size: 16px;
  color: #cfcdc8;
}

.afx-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--afx-blue-lt);
  margin-top: 7px;
  flex: 0 0 8px;
}

.afx-auth__sig {
  position: relative;
  font-size: 13px;
  color: #8f877c;
  font-family: var(--afx-mono);
}

.afx-auth__form {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
}

.afx-auth__box {
  width: 100%;
  max-width: 404px;
}

/* ---------- form fields ---------- */
.afx-field {
  margin-bottom: 16px;
}

.afx-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--afx-muted);
  margin-bottom: 7px;
  display: block;
}

.afx-input {
  width: 100%;
  font-family: var(--afx-sans);
  font-size: 15px;
  color: var(--afx-ink);
  background: var(--afx-card);
  border: 1px solid #d6cfc3;
  border-radius: 12px;
  padding: 14px 16px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.afx-input:focus {
  border-color: var(--afx-blue);
  box-shadow: 0 0 0 3px rgba(20, 135, 190, .12);
}

.afx-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.afx-check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: var(--afx-muted);
  cursor: pointer;
}

.afx-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--afx-blue);
}

.afx-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 34px 0 18px;
}

.afx-divider span:first-child,
.afx-divider span:last-child {
  flex: 1;
  height: 1px;
  background: #e6ddcf;
}

.afx-divider em {
  font-style: normal;
  font-size: 13px;
  color: var(--afx-muted-2);
}

/* =====================================================================
   CLIENT AREA (dashboard / app)
   ===================================================================== */
.afx-app {
  min-height: 100vh;
  background: var(--afx-bg-alt);
  display: flex;
  flex-direction: column;
}

.afx-topbar {
  height: 66px;
  background: var(--afx-bg);
  border-bottom: 1px solid var(--afx-line-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  flex: 0 0 66px;
}

.afx-topbar__left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.afx-topbar__right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.afx-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 10px;
  color: var(--afx-ink);
  flex: none;
}

.afx-burger:hover {
  background: var(--afx-bg-alt);
}

.afx-side-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 15, .45);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
}

.afx-chip {
  font-size: 12px;
  font-weight: 500;
  color: var(--afx-blue);
  background: var(--afx-blue-bg);
  padding: 4px 10px;
  border-radius: var(--afx-pill);
  margin-left: 4px;
}

.afx-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--afx-ink);
  color: var(--afx-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.afx-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.afx-user__name {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.1;
}

.afx-user__org {
  font-size: 12px;
  color: var(--afx-muted-2);
}

/* User dropdown */
.afx-usermenu {
  position: relative;
}

.afx-usermenu__trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 10px;
  font-family: var(--afx-sans);
  color: inherit;
  text-align: left;
  transition: background .15s ease;
}

.afx-usermenu__trigger:hover {
  background: var(--afx-bg-alt);
}

.afx-usermenu__caret {
  color: var(--afx-muted-2);
  transition: transform .2s ease;
}

.afx-usermenu.is-open .afx-usermenu__caret {
  transform: rotate(180deg);
}

.afx-usermenu__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: var(--afx-bg);
  border: 1px solid var(--afx-line-2);
  border-radius: var(--afx-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  z-index: 50;
}

.afx-usermenu.is-open .afx-usermenu__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.afx-usermenu__head {
  padding: 10px 12px 8px;
  border-bottom: 1px solid var(--afx-line);
  margin-bottom: 6px;
}

.afx-usermenu__head .n {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

.afx-usermenu__head .e {
  font-size: 12px;
  color: var(--afx-muted-2);
  margin-top: 2px;
  word-break: break-all;
}

.afx-usermenu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--afx-ink);
  text-decoration: none;
  cursor: pointer;
}

.afx-usermenu__item:hover {
  background: var(--afx-bg-alt);
}

.afx-usermenu__item svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.afx-usermenu__item--danger {
  color: #c0392b;
}

.afx-usermenu__sep {
  height: 1px;
  background: var(--afx-line);
  margin: 6px 4px;
}

.afx-body {
  display: flex;
  flex: 1;
  align-items: stretch;
}

/* ---------- sidebar ---------- */
.afx-side {
  width: 252px;
  flex: 0 0 252px;
  background: var(--afx-bg);
  border-right: 1px solid var(--afx-line-2);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.afx-side__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--afx-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 11px;
  border-radius: var(--afx-radius);
  margin-bottom: 14px;
}

.afx-side__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--afx-muted-2);
  padding: 4px 10px 8px;
}

.afx-side__label--sp {
  padding-top: 16px;
}

.afx-nav-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  transition: all .15s ease;
  margin-bottom: 2px;
}

.afx-nav-item:hover {
  background: #F1F5F9;
  color: #0F172A;
}

.afx-nav-item svg {
  flex: none;
  color: #64748B;
  transition: all .15s ease;
}

.afx-nav-item:hover svg,
.afx-nav-item.is-active svg {
  color: #0F172A;
}

.afx-nav-item.is-active {
  background: #F1F5F9;
  color: #0F172A;
  font-weight: 600;
  border-radius: 10px;
  padding-left: 12px;
}

.afx-nav-badge {
  margin-left: auto;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 12px;
  background: #F1F5F9;
  color: #64748B;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.afx-nav-item:hover .afx-nav-badge,
.afx-nav-item.is-active .afx-nav-badge {
  background: #E2E8F0;
  color: #0F172A;
}

.afx-side__foot {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--afx-line);
}

.afx-side__foot a {
  font-size: 13px;
  color: var(--afx-muted-2);
  padding: 6px 13px;
  display: block;
}

/* ---------- main content ---------- */
.afx-main {
  flex: 1;
  padding: 36px 40px;
  overflow: auto;
}

.afx-page {
  /* max-width: 980px; */
  margin: 0 auto;
}

.afx-page h1 {
  font-family: var(--afx-serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}

.afx-page__sub {
  font-size: 16px;
  color: var(--afx-muted);
  margin: 0 0 28px;
}

/* ---------- stat cards ---------- */
.afx-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

.afx-stat {
  background: var(--afx-card);
  border: 1px solid var(--afx-line-2);
  border-radius: var(--afx-radius);
  padding: 22px;
}

.afx-stat--dark {
  background: var(--afx-ink);
  color: var(--afx-bg);
}

.afx-stat__label {
  font-size: 13px;
  color: var(--afx-muted-2);
  margin-bottom: 10px;
}

.afx-stat--dark .afx-stat__label {
  color: #b9b4ab;
}

.afx-stat__big {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.afx-stat__num {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.afx-stat__note {
  font-size: 13px;
  margin-top: 6px;
  color: var(--afx-muted);
}

.afx-stat__link {
  font-size: 13px;
  color: var(--afx-blue-lt);
  margin-top: 8px;
  font-weight: 600;
  display: inline-block;
}

/* ---------- panels / tables ---------- */
.afx-panel {
  background: var(--afx-card);
  border: 1px solid var(--afx-line-2);
  border-radius: var(--afx-radius);
  overflow: hidden;
  margin-bottom: 24px;
}

.afx-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid #f0eadf;
}

.afx-panel__head h3 {
  font-size: 17px;
  font-weight: 500;
  margin: 0;
}

.afx-panel__more {
  font-size: 14px;
  font-weight: 600;
  color: var(--afx-blue);
}

.afx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.afx-table thead th {
  text-align: left;
  padding: 12px 22px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a59c8c;
  border-bottom: 1px solid #f0eadf;
}

.afx-table tbody td {
  padding: 16px 22px;
  border-bottom: 1px solid #f6f1e8;
  vertical-align: middle;
}

.afx-table tbody tr:last-child td {
  border-bottom: none;
}

.afx-table .t-strong {
  font-weight: 600;
}

.afx-table .t-muted {
  color: var(--afx-muted-2);
  font-size: 13px;
}

.afx-table .t-right {
  text-align: right;
}

/* ---------- order steps ---------- */
.afx-steps {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}

.afx-step {
  display: flex;
  align-items: center;
  gap: 9px;
}

.afx-step__num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #eee7da;
  color: #a59c8c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
}

.afx-step.is-on .afx-step__num {
  background: var(--afx-ink);
  color: var(--afx-bg);
}

.afx-step__txt {
  font-size: 14px;
  font-weight: 500;
  color: #a59c8c;
}

.afx-step.is-on .afx-step__txt {
  color: var(--afx-ink);
}

.afx-step__line {
  flex: 0 0 36px;
  height: 1px;
  background: #dcd4c6;
}

/* ---------- invoice ---------- */
.afx-inv {
  max-width: 760px;
  margin: 0 auto;
}

.afx-inv__doc {
  background: var(--afx-card);
  border: 1px solid var(--afx-line-2);
  border-radius: 18px;
  overflow: hidden;
}

.afx-inv__head {
  padding: 32px 36px;
  border-bottom: 1px solid #f0eadf;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.afx-inv__meta {
  padding: 28px 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  border-bottom: 1px solid #f0eadf;
}

.afx-inv__lbl {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a59c8c;
  margin-bottom: 8px;
}

.afx-inv__totals {
  padding: 8px 36px 32px;
  display: flex;
  justify-content: flex-end;
}

.afx-inv__totals-box {
  width: 280px;
}

.afx-inv__row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 8px 0;
  color: var(--afx-muted);
}

.afx-inv__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid #f0eadf;
}

/* ---------- alerts / messages ---------- */
.afx-alert {
  background: var(--afx-blue-bg);
  border: 1px solid #c9e9f7;
  border-radius: var(--afx-radius);
  padding: 16px 20px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #3a6b82;
}

.afx-alert--error {
  background: #fdeceb;
  border-color: #f5c9c5;
  color: #9a342c;
}

.afx-alert--ok {
  background: var(--afx-green-bg);
  border-color: #bfe6d2;
  color: var(--afx-green);
}

/* =====================================================================
   responsive
   ===================================================================== */

/* prevent flex/grid children from forcing horizontal overflow */
.afx-main {
  min-width: 0;
}

.afx-body {
  min-width: 0;
}

/* ---- Tablet ---- */
@media (max-width: 1024px) {
  .afx-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .afx-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .afx-price,
  .afx-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .afx-main {
    padding: 30px 28px;
  }
}

/* ---- Mobile / small tablet: off-canvas sidebar ---- */
@media (max-width: 860px) {
  .afx-hero h1 {
    font-size: 48px;
  }

  /* authenticated area nav */
  .afx-nav__links {
    display: none;
  }

  .afx-auth__brand {
    display: none;
  }

  .afx-burger {
    display: inline-flex;
  }

  .afx-chip {
    display: none;
  }

  /* public nav burger */
  .afx-nav__burger {
    display: inline-flex !important;
  }

  .afx-nav__links.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #ebe6dd;
    padding: 10px 20px;
    z-index: 100;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .06);
  }

  .afx-nav__links.is-open .afx-nav__item {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-bottom: 1px solid #f0ece4;
  }

  .afx-nav__links.is-open .afx-nav__item:last-child {
    border-bottom: none;
  }

  .afx-nav__links.is-open .afx-nav__link {
    width: 100%;
    justify-content: space-between;
    padding: 14px 0;
  }

  .afx-nav__links.is-open .afx-nav__dropdown,
  .afx-nav__links.is-open .afx-nav__dropdown--grid {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 14px 12px;
    min-width: 0;
    display: none;
    opacity: 1;
    visibility: visible;
    gap: 6px;
    grid-template-columns: 1fr;
  }

  .afx-nav__links.is-open .afx-nav__item.is-active .afx-nav__dropdown {
    display: flex;
  }

  .afx-nav__links.is-open .afx-nav__item.is-active .afx-nav__dropdown--grid {
    display: grid;
  }

  .afx-nav__links.is-open .afx-nav__item.is-active .afx-nav__caret {
    transform: rotate(180deg);
  }

  .afx-nav__links.is-open .afx-nav__dropdown-item {
    padding: 8px 0;
  }

  .afx-nav__links.is-open .afx-nav__dropdown-icon {
    width: 32px;
    height: 32px;
  }

  /* sidebar becomes a slide-in drawer */
  .afx-side {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 200;
    width: 280px;
    max-width: 84vw;
    height: 100vh;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform .25s ease;
    box-shadow: 0 0 50px rgba(0, 0, 0, .18);
  }

  .afx-side.is-open {
    transform: translateX(0);
  }

  .afx-side-overlay {
    display: block;
  }

  .afx-side-overlay.is-open {
    opacity: 1;
    visibility: visible;
  }

  .afx-grid--3,
  .afx-grid--4,
  .afx-price,
  .afx-stats {
    grid-template-columns: 1fr;
  }

  .afx-main {
    padding: 24px 18px;
  }

  .afx-wrap {
    padding-left: 18px;
    padding-right: 18px;
  }

  .afx-topbar {
    padding: 0 14px;
  }

  .afx-topbar__right {
    gap: 10px;
  }

  .afx-page h1 {
    font-size: 23px;
  }

  .afx-page__sub {
    font-size: 15px;
    margin-bottom: 22px;
  }

  /* horizontal scroll for wide tables */
  .afx-panel {
    overflow-x: auto;
  }

  .afx-table {
    min-width: 540px;
  }

  /* order steps wrap instead of overflowing */
  .afx-steps {
    flex-wrap: wrap;
    gap: 10px !important;
  }

  .afx-step__line {
    flex-basis: 20px;
  }

  /* invoice meta single column */
  .afx-inv__meta {
    grid-template-columns: 1fr;
  }

  .afx-inv__totals-box {
    width: 100%;
  }
}

/* ---- Phones ---- */
@media (max-width: 560px) {
  .afx-help {
    display: none;
  }

  .afx-brand__name {
    font-size: 18px;
  }

  .afx-brand--sm .afx-brand__name {
    font-size: 17px;
  }

  /* compact user menu: keep avatar only */
  .afx-usermenu__trigger .afx-user__name,
  .afx-usermenu__trigger .afx-user__org,
  .afx-usermenu__caret {
    display: none;
  }

  .afx-usermenu__panel {
    position: fixed;
    top: 60px;
    right: 10px;
    left: 10px;
    min-width: 0;
  }

  .afx-page h1 {
    font-size: 21px;
  }

  .afx-stat__big {
    font-size: 28px;
  }

  .afx-main {
    padding: 18px 14px;
  }

  /* public marketing nav + footer */
  .afx-nav {
    flex-wrap: wrap;
    gap: 12px;
    height: auto;
    padding: 14px 0;
  }

  .afx-nav__cta {
    gap: 12px;
  }

  .afx-footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .afx-hero h1 {
    font-size: 38px;
  }
}

/* ---- Collapse inline multi-column grids on small screens ----
   Many content templates set grid columns via inline styles (no class),
   so we target them by attribute and force a single column. */
@media (max-width: 680px) {

  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:2fr 1fr"],
  [style*="grid-template-columns: 2fr 1fr"],
  [style*="grid-template-columns:repeat(2"],
  [style*="grid-template-columns: repeat(2"],
  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns: repeat(3"] {
    grid-template-columns: 1fr !important;
  }
}

/* =====================================================================
   LOGO WALL
   ===================================================================== */
.afx-logowall {
  padding: 24px 0 64px;
}

.afx-logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  align-items: center;
}

.afx-logo-img {
  width: 100%;
  height: 60px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .7;
}

/* =====================================================================
   FEATURED DARK CARD (IA)
   ===================================================================== */
.afx-card--dark {
  background: var(--afx-ink);
  color: var(--afx-bg);
  border-radius: var(--afx-radius);
  padding: 26px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.afx-card--dark__glow {
  display: none;
}

.afx-badge-sur-mesure {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  background: var(--afx-blue-bg);
  color: var(--afx-blue);
  padding: 3px 10px;
  border-radius: var(--afx-pill);
}

.afx-ia-bullets {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.afx-ia-bullets div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #9a9d9f;
}

.afx-ia-bullets div::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--afx-blue-lt);
  flex: 0 0 6px;
  display: inline-block;
}

/* =====================================================================
   IA SECTION
   ===================================================================== */
.afx-ia-section {
  padding-top: 0;
}

.afx-ia-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.afx-ia-left h2 {
  font-family: var(--afx-serif);
  font-size: 44px;
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 8px 0 18px;
}

.afx-ia-left p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--afx-muted);
  margin: 0 0 28px;
}

.afx-ia-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.afx-ia-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--afx-ink-soft);
}

.afx-ia-koffi-note {
  margin-top: 28px;
  padding: 16px 20px;
  background: #f5f3ef;
  border-radius: 12px;
}

.afx-ia-koffi-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--afx-blue);
  margin-bottom: 4px;
}

.afx-ia-koffi-note div:last-child {
  font-size: 14px;
  color: #4a4640;
}

/* IA widget */
.afx-ia-widget {
  background: var(--afx-ink);
  border-radius: var(--afx-radius);
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.afx-ia-widget__label {
  color: #8f877c;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.afx-ia-missions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.afx-ia-mission {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #242120;
  border-radius: 10px;
}

.afx-ia-mission__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(61, 189, 234, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
}

.afx-ia-mission__title {
  color: var(--afx-bg);
  font-size: 13px;
  font-weight: 500;
}

.afx-ia-mission__sub {
  color: #776f64;
  font-size: 12px;
  margin-top: 2px;
}

.afx-ia-dot-green {
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22d39a;
  flex: 0 0 8px;
}

.afx-ia-widget__foot {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #2e2b27;
  font-family: var(--afx-mono);
  font-size: 11px;
  color: #776f64;
  text-align: center;
}

/* =====================================================================
   TÉMOIGNAGES
   ===================================================================== */
.afx-testi {
  background: var(--afx-card);
  border: 1px solid var(--afx-line);
  border-radius: 18px;
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.afx-testi__quote {
  font-size: 22px;
  color: var(--afx-blue-lt);
  margin-bottom: 14px;
  font-family: var(--afx-serif);
}

.afx-testi p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--afx-ink-soft);
  margin: 0 0 24px;
  flex: 1;
}

.afx-testi__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.afx-testi__name {
  font-size: 15px;
  font-weight: 600;
}

.afx-testi__role {
  font-size: 13px;
  color: var(--afx-muted-2);
}

/* =====================================================================
   TARIFS background strip
   ===================================================================== */
.afx-tarifs-bg {
  background: #fff;
  border-top: 1px solid var(--afx-line);
  border-bottom: 1px solid var(--afx-line);
}

/* =====================================================================
   NEWSLETTER
   ===================================================================== */
.afx-newsletter {
  background: var(--afx-card);
  border: 1px solid var(--afx-line);
  border-radius: 24px;
  padding: 48px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.afx-newsletter__left {
  max-width: 460px;
}

.afx-newsletter__left h2 {
  font-family: var(--afx-serif);
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 8px 0 10px;
}

.afx-newsletter__left p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--afx-muted);
  margin: 0;
}

.afx-newsletter__form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 360px;
  flex: 1;
  max-width: 440px;
}

.afx-newsletter__input {
  flex: 1;
  min-width: 200px;
  font-family: var(--afx-sans);
  font-size: 16px;
  color: var(--afx-ink);
  background: var(--afx-bg);
  border: 1px solid #d6cfc3;
  border-radius: var(--afx-pill);
  padding: 15px 22px;
  outline: none;
  transition: border-color .15s;
}

.afx-newsletter__input:focus {
  border-color: var(--afx-blue);
}

/* =====================================================================
   RESPONSIVE — new sections
   ===================================================================== */
@media (max-width: 1024px) {
  .afx-logos {
    grid-template-columns: repeat(3, 1fr);
  }

  .afx-ia-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .afx-ia-left h2 {
    font-size: 36px;
  }
}

@media (max-width: 860px) {
  .afx-logos {
    grid-template-columns: repeat(2, 1fr);
  }

  .afx-newsletter {
    flex-direction: column;
    padding: 36px 28px;
  }

  .afx-newsletter__form {
    min-width: 0;
    width: 100%;
  }

  .afx-grid--3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .afx-logos {
    grid-template-columns: repeat(2, 1fr);
  }

  .afx-newsletter {
    padding: 28px 20px;
  }

  .afx-ia-left h2 {
    font-size: 30px;
  }

  .afx-ia-widget {
    padding: 18px;
  }
}

/* =====================================================================
   BOOTSTRAP COMPAT LAYER
   Pages without an Afruxia template fall back to the FOSSBilling module
   templates, which are written with Bootstrap 5 classes. This maps the
   most common ones onto the Afruxia design tokens so those pages stay
   presentable (email history, knowledge base, payment thank-you, bank
   transfer instructions, maintenance page, …).
   ===================================================================== */
.container,
.container-fluid {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 24px 20px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 0;
  margin: 0 -10px;
}

.row>* {
  padding: 0 10px;
  flex: 1 1 0;
  min-width: 0;
}

[class*="col-"] {
  flex: 0 0 auto;
  width: 100%;
}

@media (min-width: 768px) {
  .col-md-4 {
    width: 33.333%;
  }

  .col-md-6 {
    width: 50%;
  }

  .col-md-8 {
    width: 66.666%;
  }

  .col-md-12 {
    width: 100%;
  }
}

@media (min-width: 992px) {
  .col-lg-4 {
    width: 33.333%;
  }

  .col-lg-6 {
    width: 50%;
  }

  .col-lg-8 {
    width: 66.666%;
  }
}

.justify-content-center {
  justify-content: center;
}

.align-items-center {
  align-items: center;
}

.d-flex {
  display: flex;
}

.w-100 {
  width: 100%;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--afx-muted-2);
}

.text-danger {
  color: #9a342c;
}

.mb-3 {
  margin-bottom: 16px;
}

.mb-4 {
  margin-bottom: 22px;
}

.my-4 {
  margin-top: 22px;
  margin-bottom: 22px;
}

.m-4 {
  margin: 22px;
}

.card {
  background: var(--afx-card);
  border: 1px solid var(--afx-line-2);
  border-radius: var(--afx-radius);
  overflow: hidden;
  width: 100%;
}

.card-header {
  padding: 18px 22px;
  border-bottom: 1px solid #f0eadf;
}

.card-header h1,
.card-header h2,
.card-header h3,
.card-header h5 {
  font-family: var(--afx-serif);
  font-weight: 400;
  margin: 0 0 4px;
}

.card-body {
  padding: 22px;
}

.card-footer {
  padding: 16px 22px;
  border-top: 1px solid #f0eadf;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--afx-sans);
  font-size: 15px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: var(--afx-btn-radius);
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: opacity .15s;
  line-height: 1.2;
}

.btn:hover {
  opacity: .9;
}

.btn-primary {
  background: var(--afx-ink);
  color: var(--afx-bg);
}

.btn-secondary,
.btn-outline-primary,
.btn-outline-secondary {
  background: transparent;
  border-color: #d6cfc3;
  color: var(--afx-ink);
}

.btn-danger {
  background: #9a342c;
  color: #fff;
}

.btn-success {
  background: var(--afx-green);
  color: #fff;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--afx-muted);
  margin-bottom: 7px;
  display: block;
}

.form-control,
.form-select,
textarea.form-control {
  width: 100%;
  font-family: var(--afx-sans);
  font-size: 15px;
  color: var(--afx-ink);
  background: var(--afx-card);
  border: 1px solid #d6cfc3;
  border-radius: var(--afx-radius);
  padding: 12px 15px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--afx-blue);
  box-shadow: 0 0 0 3px rgba(20, 135, 190, .12);
}

.form-text,
.form-hint {
  font-size: 13px;
  color: var(--afx-muted-2);
  margin-top: 5px;
  display: block;
}

.alert {
  border-radius: var(--afx-radius);
  padding: 14px 18px;
  margin-bottom: 18px;
  font-size: 14px;
  border: 1px solid transparent;
}

.alert-success {
  background: var(--afx-green-bg);
  border-color: #bfe6d2;
  color: var(--afx-green);
}

.alert-danger {
  background: #fdeceb;
  border-color: #f5c9c5;
  color: #9a342c;
}

.alert-warning {
  background: var(--afx-amber-bg);
  border-color: #eed6ab;
  color: var(--afx-amber);
}

.alert-info {
  background: var(--afx-blue-bg);
  border-color: #c9e9f7;
  color: #3a6b82;
}

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--afx-pill);
}

.badge.bg-success {
  color: var(--afx-green);
  background: var(--afx-green-bg);
}

.badge.bg-warning {
  color: var(--afx-amber);
  background: var(--afx-amber-bg);
}

.badge.bg-danger {
  color: #9a342c;
  background: #fdeceb;
}

.badge.bg-info {
  color: var(--afx-blue);
  background: var(--afx-blue-bg);
}

.badge.bg-secondary {
  color: var(--afx-muted);
  background: var(--afx-bg-alt);
}

.badge.bg-primary {
  color: var(--afx-blue);
  background: var(--afx-blue-bg);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #a59c8c;
  border-bottom: 1px solid #f0eadf;
}

.table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f6f1e8;
  vertical-align: middle;
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  font-size: 13px;
  color: var(--afx-muted-2);
}

.breadcrumb-item+.breadcrumb-item::before {
  content: "/";
  margin-right: 8px;
  color: var(--afx-line-2);
}

.breadcrumb-item a {
  color: var(--afx-blue);
}

.progress {
  height: 8px;
  background: var(--afx-bg-alt);
  border-radius: var(--afx-pill);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--afx-green);
  border-radius: var(--afx-pill);
}

.pagination {
  display: flex;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.page-link {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--afx-line-2);
  border-radius: var(--afx-radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--afx-ink);
}

.page-item.active .page-link {
  background: var(--afx-ink);
  color: var(--afx-bg);
  border-color: var(--afx-ink);
}

.page-item.disabled .page-link {
  opacity: .45;
  pointer-events: none;
}

/* Barre du haut sur petit écran : le nom de marque cède la place au panier */
@media (max-width: 560px) {
  .afx-topbar .afx-brand .afx-brand__name { display: none !important; }
}
