/* =========================
   BSF ACADEMY • Modern Design System
   Version 2.0 - January 2026
   Based on app.css - Blue Night Theme
   ========================= */

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =========================
   DESIGN TOKENS
   ========================= */
:root {
  --max: 1320px;
  --page-pad: 24px;
  --page-max: 1440px;
  --quickbar-max: 1100px;

  /* Colors - Light theme (BSF Palette – Professional) */
  --bg0: #F4F6F8;
  --bg1: #EDF0F4;
  --bg2: #FFFFFF;
  --bg-alt: #EDF0F4;

  --brand: #0C304C;
  --brand-dark: #091E33;
  --brand-light: #1A4A6E;
  --accent: #1E70B8;
  --cta-primary: #1E70B8;
  --cta-secondary: #0C304C;
  --cta-warning: #C2820A;

  --glass: rgba(255,255,255,.88);
  --glass2: rgba(255,255,255,.96);
  --stroke: rgba(12,48,76,.12);
  --stroke2: rgba(12,48,76,.07);

  --text: #1A2D42;
  --text2: #0C304C;
  --muted: #6B7A8D;
  --muted2: #8A97A6;

  --shadow: 0 20px 60px rgba(20,30,50,.12);
  --shadow-sm: 0 8px 24px rgba(20,30,50,.08);
  --shadow-xs: 0 4px 12px rgba(20,30,50,.06);

  --r-xl: 24px;
  --r-lg: 18px;
  --r-md: 14px;
  --r-sm: 10px;
  --r-xs: 6px;
}

/* Dark theme */
html[data-theme="dark"] {
  --bg0: #0B1E33;
  --bg1: #102840;
  --bg2: #19334E;
  --bg-alt: #102840;

  --brand: #4D9ED0;
  --brand-dark: #0B1E33;
  --brand-light: #1E70B8;
  --accent: #4D9ED0;
  --cta-primary: #4D9ED0;
  --cta-secondary: #4D9ED0;
  --cta-warning: #D4920E;

  --glass: rgba(11,30,51,.90);
  --glass2: rgba(16,40,64,.96);
  --stroke: rgba(77,158,208,.16);
  --stroke2: rgba(77,158,208,.08);

  --text: #E8EDF2;
  --text2: #E8EDF2;
  --muted: #8A97A6;
  --muted2: #6B7A8D;

  --shadow: 0 20px 60px rgba(0,0,0,.40);
  --shadow-sm: 0 8px 24px rgba(0,0,0,.30);
  --shadow-xs: 0 4px 12px rgba(0,0,0,.20);
}

/* Responsive padding */
@media (max-width: 640px){
  :root{ --page-pad: 14px; }
}

/* Background */
body {
  color: var(--text);
  background-color: var(--bg0);
  min-height: 100vh;
}

/* =========================
   LUCIDE ICONS BASE
   ========================= */
[data-lucide] {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  flex-shrink: 0;
}

.spinIcon {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* =========================
   HELPERS
   ========================= */
.hideOnMobile { display: inline-flex; }
.hideOnSmall { display: table-cell; }
.hideOnMedium { display: table-cell; }

@media (max-width: 900px) {
  .hideOnMedium { display: none !important; }
}
@media (max-width: 680px) {
  .hideOnSmall { display: none !important; }
}
@media (max-width: 580px) {
  .hideOnMobile { display: none !important; }
}

/* =========================
   TOPBAR
   ========================= */
.topbar {
  position: sticky;
  top: 12px;
  z-index: 1000;
  padding: 0 24px;
}

.topbar .wrap {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;

  background: var(--glass2);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 8px 14px;

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.logoRing {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--brand);
  padding: 2px;
  box-shadow: 0 4px 12px rgba(12,48,76,.20);
}

.logoImg {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  display: block;
}

.logoShine {
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
}

.brandText {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brandName {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.brandTag {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.2px;
}

.spacer { flex: 1; }

/* Stats Badge */
.statsBadge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 20%, transparent);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand);
}

.statsBadge .statIcon {
  width: 14px;
  height: 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--glass2);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .18s ease;
  box-shadow: var(--shadow-xs);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  border-color: var(--brand);
}

.btn:active {
  transform: translateY(0);
}

.btnIconSvg {
  width: 16px;
  height: 16px;
}

.btnCaret {
  width: 14px;
  height: 14px;
  opacity: .6;
}

.btnPrimary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(30,112,184,.25);
}

.btnPrimary:hover {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 6px 20px rgba(12,48,76,.30);
}

.btnGhost {
  background: color-mix(in srgb, var(--cta-secondary) 8%, var(--bg2));
  border-color: var(--cta-secondary);
  color: var(--cta-secondary);
}

.btnLogout {
  border-color: #B91C1C;
  color: #B91C1C;
}

.btnLogout:hover {
  border-color: #991B1B;
  color: #991B1B;
  background: color-mix(in srgb, #B91C1C 8%, var(--bg2));
}

/* Topbar widget buttons (Chat / Berg IA) */
.tbar-widget-btn {
  transition: all .18s ease;
}
.tbar-widget-btn[aria-expanded="true"] {
  background: color-mix(in srgb, var(--accent) 12%, var(--bg2));
  border-color: var(--accent);
  color: var(--accent);
}
@media (max-width: 580px) {
  .tbar-widget-btn {
    width: 40px;
    padding: 0;
    justify-content: center;
  }
}

.btnOutline {
  background: transparent;
  border: 1.5px solid var(--stroke);
}

.btnOutline:hover {
  background: color-mix(in srgb, var(--brand) 8%, transparent);
  border-color: var(--brand);
  color: var(--brand);
}

.btnFull {
  width: 100%;
}

.iconBtn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--bg2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .18s ease;
  box-shadow: var(--shadow-xs);
  color: var(--text);
}

.iconBtn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  border-color: var(--brand);
  color: var(--brand);
}

.iconBtn .iconSun { display: none; }
html[data-theme="dark"] .iconBtn .iconMoon { display: none; }
html[data-theme="dark"] .iconBtn .iconSun { display: block; }

/* Dropdown */
.dropdown { position: relative; }

.menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(320px, 85vw);
  background: var(--bg2);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 8px;
  display: none;
  max-height: 380px;
  overflow: auto;
}

.dropdown[aria-expanded="true"] .menu { display: block; }

.menuItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  transition: all .15s ease;
}

.menuItem:hover {
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  color: var(--brand);
}

.tickIcon {
  width: 16px;
  height: 16px;
  color: var(--brand);
}

/* =========================
   PAGE GRID
   ========================= */
.page, .quickbar{ width:100%; }

.page {
  max-width: var(--max);
  margin: 24px auto 0;
  padding: 0 24px;
}

.pageInner{
  max-width: var(--page-max);
  margin: 0 auto;
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
}

.quickbarInner{
  max-width: var(--quickbar-max);
  margin: 0 auto;
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
}

.quickbar{
  margin-top: 32px;
  margin-bottom: 8px;
}

@media (max-width: 640px){
  .quickbar{ margin-top: 22px; margin-bottom: 6px; }
}

.gridTwo {
  display: grid;
  grid-template-columns: 38% 62%;
  grid-template-rows: auto auto;
  align-items: start;
  column-gap: 20px;
  row-gap: 24px;
}

.colPlot { grid-column: 1; grid-row: 1; }
.colFilters { grid-column: 1; grid-row: 2; }
.colMap { grid-column: 2; grid-row: 1 / span 2; }

@media (max-width: 1080px) {
  .gridTwo {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    column-gap: 12px;
    row-gap: 12px;
  }
  .colPlot { grid-column: 1; grid-row: auto; order: 1; }
  .colMap { grid-column: 1; grid-row: auto; order: 2; }
  .colFilters { grid-column: 1; grid-row: auto; order: 3; }
}

/* Cards */
.card {
  background: var(--glass2);
  border: 1px solid var(--stroke);
  border-radius: var(--r-xl);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: cardIn .35s ease both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Disable animation on left column cards to stabilize spacing */
.colPlot.card, .colFilters.card {
  animation: cardInFade .35s ease both;
}

@keyframes cardInFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cardTitleWrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.cardTitleIcon {
  width: 18px;
  height: 18px;
  color: var(--brand);
}

.cardTitle {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.3px;
}

.filtersToggle {
  margin-left: auto;
  display: none;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--bg2);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.filtersToggleIcon {
  width: 14px;
  height: 14px;
}

.filtersBody {
  display: block;
}

/* =========================
   VIDEO PLOT CARD
   ========================= */
.plotVideoCard{
  padding:0;
  overflow:hidden;
  background: transparent !important;
  min-height: 200px;
  height: auto;
}

.plotVideo{
  width:100%;
  height: 240px;
  display:block;
  object-fit: cover;
  object-position: center;
  pointer-events:none;
  user-select:none;
  background: transparent;
}

.plotVideo::-webkit-media-controls,
.plotVideo::-webkit-media-controls-panel,
.plotVideo::-webkit-media-controls-play-button,
.plotVideo::-webkit-media-controls-start-playback-button{
  display:none !important;
  -webkit-appearance:none;
}

@media (max-width: 1080px){
  .plotVideo{ height: 200px; }
}

@media (max-width: 640px){
  .plotVideo{ height: 180px; }
}

/* =========================
   QUICK ACTION BUTTONS
   ========================= */
.quickbarCard{
  background: transparent;
  border: none;
  padding: 0;
}

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

@media (max-width: 640px){
  .quickBtns{ gap: 8px; }
}

.qbtn{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .2px;
  text-decoration: none;
  outline: none;
  border: none;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all .18s ease;
  white-space: nowrap;
}

@media (max-width: 640px){
  .qbtn{
    height: 38px;
    font-size: 10px;
    gap: 5px;
    border-radius: 10px;
  }
}

html[data-theme="light"] .qbtn{
  color: #ffffff;
  background: var(--brand);
  box-shadow: 0 4px 12px rgba(12, 48, 76, .25);
}

html[data-theme="light"] .qbtn:hover{
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(12, 48, 76, .35);
  filter: brightness(1.08);
}

html[data-theme="dark"] .qbtn{
  color: #E8EDF2;
  background: var(--brand-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .4);
}

html[data-theme="dark"] .qbtn:hover{
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(30, 58, 95, .35);
  filter: brightness(1.12);
}

.qbtn:active{
  transform: translateY(0px);
  transition-duration: .1s;
}

.qbtnIcon{
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  opacity: .95;
}

@media (max-width: 640px){
  .qbtnIcon{ width: 15px; height: 15px; }
}

/* =========================
   PLOT CARD
   ========================= */
.cardPlot { padding: 16px; }

.plotTop {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.plotCategoryBadge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg2);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  box-shadow: var(--shadow-xs);
}

.plotCatIcon {
  width: 16px;
  height: 16px;
  color: var(--brand);
}

.plotCategoryText {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plotCanvas {
  width: 100%;
  height: 170px;
  display: block;
  border-radius: var(--r-md);
  background: var(--bg0);
  border: 1px solid var(--stroke2);
}

html[data-theme="dark"] .plotCanvas {
  background: rgba(0,0,0,.25);
}

.plotBottom {
  margin-top: 12px;
}

.plotBottomInner {
  display: flex;
  justify-content: center;
}

.plotStatBox {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: color-mix(in srgb, var(--brand) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 15%, transparent);
  border-radius: var(--r-lg);
}

.plotStatIcon {
  width: 28px;
  height: 28px;
  color: var(--brand);
}

.plotStatContent {
  display: flex;
  flex-direction: column;
}

.plotCount {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
  color: var(--text);
}

.plotUnit {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 2px;
}

/* =========================
   MAP CARD
   ========================= */
.cardMap { padding: 16px; }

.bsfMapWrap { position: relative; }

.bsfMap {
  width: 100%;
  height: 480px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: var(--bg0);
}

html[data-theme="dark"] .bsfMap {
  border-color: var(--stroke);
}

.bsfHud {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.bsfHudLeft, .bsfHudRight {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bsfStatus, .bsfCount {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg2);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  box-shadow: var(--shadow-xs);
}

.bsfStatus .spinIcon,
.countIcon {
  width: 14px;
  height: 14px;
  color: var(--brand);
}

.bsfLocateBtn {
  pointer-events: auto;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--bg2);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: all .18s ease;
}

.bsfLocateBtn:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.bsfLocateBtn [data-lucide] {
  width: 18px;
  height: 18px;
}

/* =========================
   MERCHANTS TABLE (REDESIGNED)
   ========================= */
.mTableWrap {
  margin-top: 16px;
}

.mTableHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.mTableTitleWrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mTableIcon {
  width: 18px;
  height: 18px;
  color: var(--brand);
}

.mTableTitle {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.3px;
  color: var(--text);
}

.mTableHint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  color: var(--brand);
  padding: 5px 10px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hintIcon {
  width: 12px;
  height: 12px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

.mTableScroll {
  border-radius: var(--r-md);
  border: 1px solid var(--stroke);
  background: var(--bg2);
  overflow: hidden;
  height: 320px;
  overflow-y: auto;
}

.mTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  table-layout: fixed;
}

.mTable thead th {
  position: sticky;
  top: 0;
  text-align: left;
  padding: 10px 10px;
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  background: var(--bg1);
  border-bottom: 1px solid var(--stroke);
  white-space: nowrap;
}

.mTable thead th > span,
.mTable thead th > i {
  vertical-align: middle;
}

.thIcon {
  width: 12px;
  height: 12px;
  margin-right: 4px;
  opacity: .7;
  vertical-align: middle;
}

.mTable tbody td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--stroke2);
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text2);
}

.mRow {
  transition: background .15s ease;
}

.mRow:hover {
  background: color-mix(in srgb, var(--brand) 6%, transparent);
}

.mRow:last-child td {
  border-bottom: none;
}

.mName {
  font-weight: 700;
  color: var(--text);
  font-size: 11px;
}

.mCategory {
  font-weight: 600;
  color: var(--muted);
  font-size: 10px;
}

.mProduct {
  font-weight: 500;
  color: var(--muted2);
  font-size: 10px;
}

.mDiscount {
  font-weight: 700;
  color: var(--brand);
  font-size: 10px;
}

.mPrice {
  font-weight: 600;
  color: var(--text2);
  font-size: 10px;
}

.mDate {
  font-weight: 500;
  color: var(--muted2);
  font-size: 10px;
}

.mTableEmpty {
  text-align: center;
  padding: 24px 12px !important;
  color: var(--muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mTableEmpty .spinIcon {
  width: 16px;
  height: 16px;
}

/* =========================
   FILTERS CARD
   ========================= */
.cardFilters { padding: 16px; }

.filtersGrid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filterBlock {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filterLabel {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.filterLabelIcon {
  width: 13px;
  height: 13px;
  opacity: .7;
}

.selectWrap {
  position: relative;
}

.filterInput {
  width: 100%;
  height: 42px;
  border-radius: var(--r-sm);
  border: 1px solid var(--stroke);
  background: var(--bg2);
  color: var(--text);
  padding: 0 36px 0 12px;
  font-size: 13px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: all .18s ease;
}

.filterInput:hover {
  border-color: var(--brand);
}

.filterInput:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent);
}

.filterInput:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.selectArrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
}

.filtersActions {
  margin-top: 14px;
}

/* =========================
   FOOTER
   ========================= */
.footer {
  margin-top: 32px;
  padding: 20px 16px 28px;
  text-align: center;
}

.footerInner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footerText {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.footerIcon {
  width: 13px;
  height: 13px;
  opacity: .7;
}

.footerDot {
  color: var(--muted2);
  font-size: 10px;
}

/* =========================
   MOBILE TWEAKS
   ========================= */
@media (max-width: 680px) {
  .topbar { padding: 0 10px; top: 6px; }
  .topbar .wrap { padding: 4px 8px; gap: 6px; }

  .logoRing { width: 32px; height: 32px; }
  .brandName { font-size: 14px; }
  .brandTag { display: none; }

  .btn, .iconBtn { height: 32px; }
  .btn { padding: 0 10px; font-size: 11px; }
  .iconBtn { width: 32px; }

  .page { padding: 0 14px; margin-top: 18px; }
  .gridTwo { gap: 14px; }

  .card { padding: 14px; border-radius: var(--r-lg); }

  .plotCanvas { height: 140px; }
  .plotCount { font-size: 22px; }
  .plotStatBox { padding: 10px 16px; }
  .plotStatIcon { width: 24px; height: 24px; }

  .bsfMap { height: 340px; border-radius: var(--r-md); }
  .bsfStatus, .bsfCount { padding: 6px 10px; font-size: 11px; }
  .bsfLocateBtn { width: 34px; height: 34px; }

  .mTableScroll { max-height: 260px; }
  .mTable { font-size: 10px; }
  .mTable thead th { padding: 8px 8px; font-size: 9px; }
  .mTable tbody td { padding: 7px 8px; }

  .filterInput { height: 38px; font-size: 12px; }

  .home-hero { padding: 22px; }
  .home-hero h1 { font-size: 22px; }
  .section-hero { padding: 22px; }
  .section-hero h1 { font-size: 22px; }

  .story-band,
  .contact-slab {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .contact-slab-actions {
    justify-content: flex-start;
  }

  .gallery-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .gallery-item {
    min-width: 72vw;
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
}

@media (max-width: 860px) {
  .cardFilters {
    position: sticky;
    top: 0px;
    z-index: 900;
  }

  .filtersToggle { display: inline-flex; }

  .cardFilters[data-open="false"] .filtersBody {
    display: none;
  }
}

/* =========================
   RTL SUPPORT
   ========================= */
html[dir="rtl"] .topbar .wrap { direction: rtl; }
html[dir="rtl"] .menu { left: 0; right: auto; }
html[dir="rtl"] .mTable thead th { text-align: right; }
html[dir="rtl"] .mTable tbody td { text-align: right; }
html[dir="rtl"] .thIcon { margin-right: 0; margin-left: 4px; }
html[dir="rtl"] .selectArrow { right: auto; left: 12px; }
html[dir="rtl"] .filterInput { padding: 0 12px 0 36px; }

/* =========================
   LEAFLET CUSTOMIZATION
   ========================= */
.leaflet-popup-content-wrapper {
  border-radius: var(--r-md) !important;
  box-shadow: var(--shadow-sm) !important;
}

.leaflet-popup-content {
  margin: 12px 14px !important;
  font-family: Inter, system-ui, sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

.bsf-tooltip-wrap {
  background: var(--bg2) !important;
  color: var(--text) !important;
  border: 1px solid var(--stroke) !important;
  border-radius: var(--r-sm) !important;
  padding: 8px 12px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  box-shadow: var(--shadow-xs) !important;
}

.bsf-tooltip-wrap::before {
  border-top-color: var(--bg2) !important;
}

/* Scrollbar styling */
.mTableScroll::-webkit-scrollbar,
.menu::-webkit-scrollbar {
  width: 6px;
}

.mTableScroll::-webkit-scrollbar-track,
.menu::-webkit-scrollbar-track {
  background: transparent;
}

.mTableScroll::-webkit-scrollbar-thumb,
.menu::-webkit-scrollbar-thumb {
  background: var(--muted2);
  border-radius: 3px;
}

.mTableScroll::-webkit-scrollbar-thumb:hover,
.menu::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

/* === Merchants table : 3 columns full width === */
.mTable {
  table-layout: fixed;
  width: 100%;
}

.mTable th,
.mTable td {
  width: 33.3333%;
}

/* alignement specifique */
.mTable th:nth-child(3),
.mTable td:nth-child(3) {
  text-align: center; /* Discount centre */
}

/* =========================
   FORMATIONS GRID (BSF Tunisie specific)
   ========================= */
.formations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.formation-card {
  background: var(--glass2);
  border: 1px solid var(--stroke);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all .25s ease;
}

.mission-hero {
  position: relative;
  padding: 42px;
  border-radius: var(--r-xl);
  margin: 8px 0 28px;
  background:
    linear-gradient(120deg, rgba(4, 20, 40, 0.88), rgba(4, 20, 40, 0.55)),
    url('../wp-content/uploads/2025/12/young-woman-presenting-on-digital-evolution-concepts-1024x684.jpeg') center/cover no-repeat;
  color: #fff;
  box-shadow: var(--shadow);
}

.mission-hero h1 {
  margin: 0 0 10px 0;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.4px;
}

.mission-hero p {
  margin: 0 0 18px 0;
  color: rgba(255,255,255,0.85);
  max-width: 760px;
}

.mission-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.section-hero {
  padding: 34px;
  border-radius: var(--r-xl);
  margin: 8px 0 28px;
  background: var(--glass2);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-sm);
}

.section-hero h1 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.4px;
}

.section-hero p {
  margin: 0 0 16px;
  color: var(--muted);
}

.home-hero {
  padding: 34px;
  border-radius: var(--r-xl);
  margin: 8px 0 24px;
  background: linear-gradient(120deg, rgba(7, 24, 46, 0.92), rgba(7, 24, 46, 0.65));
  color: #fff;
  box-shadow: var(--shadow);
}

.home-hero h1 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.4px;
}

.home-hero p {
  margin: 0 0 18px;
  color: rgba(255,255,255,0.85);
  max-width: 720px;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-links {
  margin: 8px 0 32px;
}

.home-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.home-link-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  padding: 18px;
  border-radius: var(--r-lg);
  border: 1px solid var(--stroke);
  background: var(--glass2);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.home-link-card span {
  font-size: 12px;
  color: var(--muted);
}

.home-link-card strong {
  font-size: 14px;
  font-weight: 800;
}

.home-link-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--brand);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2px;
  border: 1px solid var(--stroke);
  background: var(--bg2);
  color: var(--text2);
}

.badge.primary {
  background: color-mix(in srgb, var(--cta-primary) 18%, var(--bg2));
  border-color: color-mix(in srgb, var(--cta-primary) 50%, var(--stroke));
  color: #0C304C;
}

.badge.secondary {
  background: color-mix(in srgb, var(--cta-secondary) 16%, var(--bg2));
  border-color: color-mix(in srgb, var(--cta-secondary) 50%, var(--stroke));
  color: var(--brand);
}

.badge.warning {
  background: color-mix(in srgb, var(--cta-warning) 18%, var(--bg2));
  border-color: color-mix(in srgb, var(--cta-warning) 55%, var(--stroke));
  color: #213743;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 18px;
}

.filter-chip {
  border: 1px solid var(--stroke);
  background: var(--bg2);
  color: var(--text2);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.filter-chip[data-active="true"] {
  border-color: var(--cta-secondary);
  color: var(--cta-secondary);
  box-shadow: var(--shadow-xs);
}

.story-band {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  padding: 28px;
  border-radius: var(--r-xl);
  background: linear-gradient(120deg, rgba(9, 22, 41, 0.95), rgba(9, 22, 41, 0.6));
  color: #fff;
  box-shadow: var(--shadow);
  margin: 10px 0 28px;
}

.story-kicker {
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  font-weight: 700;
}

.story-title {
  margin: 6px 0 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.4px;
}

.story-text {
  margin: 0 0 18px;
  color: rgba(255,255,255,0.85);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.story-side {
  display: grid;
  gap: 12px;
}

.story-tile {
  padding: 14px;
  border-radius: var(--r-lg);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
}

.story-tile h4 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 800;
}

.story-tile p {
  margin: 0;
  font-size: 12px;
  color: rgba(255,255,255,0.78);
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 8px 0 28px;
}

.insight-card {
  padding: 18px;
  border-radius: var(--r-lg);
  border: 1px solid var(--stroke);
  background: var(--glass2);
  box-shadow: var(--shadow-sm);
}

.insight-card h4 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
}

.insight-card p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.value-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  padding: 18px;
  border-radius: var(--r-xl);
  background: var(--glass2);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-sm);
  margin: 6px 0 28px;
}

.value-pill {
  padding: 12px;
  border-radius: var(--r-md);
  background: rgba(9, 22, 41, 0.06);
  border: 1px dashed var(--stroke);
  font-size: 12px;
  font-weight: 700;
  color: var(--text2);
}

.contact-slab {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: center;
  padding: 24px;
  border-radius: var(--r-xl);
  background: linear-gradient(120deg, rgba(16, 34, 60, 0.92), rgba(16, 34, 60, 0.6));
  color: #fff;
  box-shadow: var(--shadow);
  margin: 16px 0 12px;
}

.contact-slab p {
  margin: 0;
  color: rgba(255,255,255,0.85);
}

.contact-slab-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 10px 0 26px;
}

.timeline-card {
  padding: 16px;
  border-radius: var(--r-lg);
  background: var(--glass2);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-sm);
}

.timeline-card h4 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 800;
}

.timeline-card p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 8px 0 24px;
}

.proof-card {
  padding: 14px;
  border-radius: var(--r-md);
  background: rgba(9, 22, 41, 0.06);
  border: 1px solid var(--stroke);
  font-size: 12px;
  color: var(--text2);
}

.quote-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 18px;
  border-radius: var(--r-xl);
  background: var(--glass2);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-sm);
  margin: 8px 0 26px;
}

.quote-strip blockquote {
  margin: 0;
  font-size: 13px;
  color: var(--text2);
}

.quote-strip span {
  font-size: 12px;
  color: var(--muted);
}

.detail-card {
  padding: 20px;
  border-radius: var(--r-lg);
  background: var(--glass2);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-sm);
  line-height: 1.7;
  color: var(--text2);
}

.detail-card p {
  margin: 0 0 12px;
}

.media-gallery {
  margin: 18px 0 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.media-card {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: var(--bg2);
  box-shadow: var(--shadow-xs);
}

.media-card img,
.media-card video {
  width: 100%;
  display: block;
}


.pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 8px 0 28px;
}

.pack-card {
  padding: 18px;
  border-radius: var(--r-lg);
  border: 1px solid var(--stroke);
  background: var(--glass2);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.pack-card .tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: color-mix(in srgb, var(--cta-secondary) 15%, var(--bg2));
  color: var(--brand);
  border: 1px solid var(--cta-secondary);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
}

.pack-card h4 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 900;
}

.pack-price {
  font-size: 22px;
  font-weight: 900;
  color: var(--brand);
  margin: 0 0 8px;
}

.pack-card ul {
  margin: 0 0 12px;
  padding-left: 18px;
  color: var(--text2);
  font-size: 12px;
}

.sector-cta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 8px 0 24px;
}

.sector-cta {
  text-decoration: none;
  padding: 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--stroke);
  background: var(--glass2);
  color: var(--text);
  box-shadow: var(--shadow-xs);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.sector-cta strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 4px;
}

.sector-cta span {
  font-size: 12px;
  color: var(--muted);
}

.sector-cta:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: var(--shadow-sm);
}

.mission-image {
  width: 100%;
  height: 160px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg1);
}

.formation-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--brand);
}

.formation-image {
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg1);
}

.formation-content {
  padding: 20px;
}

.formation-content h3 {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
}

.formation-content p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sector-section {
  margin: 10px 0 28px;
}

.sector-section > p {
  margin: 0 0 18px;
  color: var(--muted);
}

.sector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.sector-card {
  background: var(--glass2);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.sector-card h4 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}

.sector-card ul {
  margin: 0;
  padding-left: 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.split-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: center;
  margin: 16px 0 32px;
}

.split-content p {
  margin: 0 0 12px;
  color: var(--muted);
}

.split-media {
  min-height: 320px;
  border-radius: var(--r-xl);
  background:
    linear-gradient(120deg, rgba(10, 18, 30, 0.7), rgba(10, 18, 30, 0.2)),
    url('../wp-content/uploads/2025/12/1765126686905_Firefly_A-realistic-professional-photo-style-scene-symbolizing-streamlined-business-operatio-693941.jpg') center/cover no-repeat;
  box-shadow: var(--shadow);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}

.pill-list li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--glass2);
  border: 1px solid var(--stroke);
  font-size: 12px;
  color: var(--text2);
}

.feature-section {
  margin: 12px 0 32px;
}

.muted-text {
  margin: 0 0 14px;
  color: var(--muted);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.featured-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--glass2);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.featured-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--brand);
}

.featured-img {
  height: 140px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg1);
}

.featured-body {
  padding: 14px;
}

.featured-body h4 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 800;
}

.featured-body p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.tool-card {
  padding: 12px 14px;
  border-radius: 999px;
  text-align: center;
  background: var(--glass2);
  border: 1px solid var(--stroke);
  font-size: 12px;
  color: var(--text2);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.impact-card {
  padding: 16px;
  border-radius: var(--r-lg);
  background: var(--glass2);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-sm);
}

.impact-card h4 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 800;
}

.impact-card p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.testi-card {
  padding: 16px;
  border-radius: var(--r-lg);
  background: var(--glass2);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-sm);
}

.testi-card p {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--text2);
}

.testi-meta {
  font-size: 12px;
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.gallery-item {
  position: relative;
  height: 180px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-sm);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.55));
}

.gallery-item span {
  position: absolute;
  left: 12px;
  bottom: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.3px;
  z-index: 1;
}

.stats-band {
  margin: 18px 0 32px;
  padding: 24px;
  border-radius: var(--r-xl);
  background: linear-gradient(120deg, rgba(18, 30, 52, 0.9), rgba(18, 30, 52, 0.6));
  color: #fff;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  box-shadow: var(--shadow);
}

.stat-item h3 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 900;
}

.stat-item p {
  margin: 0;
  font-size: 12px;
  color: rgba(255,255,255,0.85);
}

.newsletter {
  margin: 16px 0 32px;
  padding: 22px;
  border-radius: var(--r-xl);
  background: var(--glass2);
  border: 1px solid var(--stroke);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}

.newsletter h2 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 900;
}

.newsletter p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.newsletter-form input {
  min-width: 220px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--stroke);
  background: var(--bg2);
  color: var(--text);
}

.logo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  align-items: center;
}

.logo-strip img {
  width: 100%;
  max-height: 64px;
  object-fit: contain;
  opacity: 0.8;
  filter: grayscale(0.4);
  transition: opacity .2s ease, filter .2s ease, transform .2s ease;
}

.logo-strip img:hover {
  opacity: 1;
  filter: grayscale(0);
  transform: translateY(-2px);
}

.commit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.commit-card {
  padding: 16px;
  border-radius: var(--r-lg);
  background: var(--glass2);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-sm);
}

.commit-card h4 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 800;
}

.commit-card p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.quick-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.choice-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border-radius: var(--r-lg);
  border: 1px solid var(--stroke);
  background: var(--glass2);
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.choice-card strong {
  font-size: 14px;
  font-weight: 800;
}

.choice-card span {
  font-size: 12px;
  color: var(--muted);
}

.choice-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--brand);
}

.format-choices {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.faq-accordion {
  display: grid;
  gap: 10px;
}

.faq-row {
  padding: 12px 14px;
  border-radius: var(--r-lg);
  border: 1px solid var(--stroke);
  background: var(--glass2);
}

.faq-row summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
}

.faq-row p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.roadmap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.road-step {
  padding: 18px;
  border-radius: var(--r-lg);
  background: var(--glass2);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-sm);
}

.road-badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 16%, transparent);
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 8px;
}

.road-step h4 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
}

.road-step p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.promise-band {
  padding: 22px;
  border-radius: var(--r-xl);
  background: linear-gradient(120deg, rgba(20, 34, 58, 0.9), rgba(20, 34, 58, 0.6));
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: var(--shadow);
}

.promise-band h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 900;
}

.promise-band p {
  margin: 0;
  color: rgba(255,255,255,0.85);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.feature-card {
  background: var(--glass2);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.feature-card h4 {
  margin: 12px 0 6px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}

.feature-card p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.iconBadge {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
}

.steps-section {
  margin: 12px 0 32px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.step-card {
  background: var(--glass2);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.step-num {
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 6px;
}

.step-card h4 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
}

.step-card p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.faq-section {
  margin: 12px 0 32px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.faq-item {
  background: var(--glass2);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.faq-item h4 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
}

.faq-item p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.cta-banner {
  margin: 16px 0 36px;
  padding: 28px;
  border-radius: var(--r-xl);
  background:
    linear-gradient(120deg, rgba(16, 26, 44, 0.9), rgba(16, 26, 44, 0.6)),
    url('../wp-content/uploads/2025/12/woman-gives-presentation-with-pie-chart-on-1536x1025.jpeg') center/cover no-repeat;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow);
}

.cta-banner h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 900;
}

.cta-banner p {
  margin: 0;
  color: rgba(255,255,255,0.85);
}

.contact-hero {
  margin: 0 0 18px;
}

.contact-hero p {
  margin: 0;
  color: var(--muted);
}

.contact-card {
  max-width: 720px;
  background: var(--glass2);
  border: 1px solid var(--stroke);
  border-radius: var(--r-xl);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--text);
  font-size: 13px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--stroke);
  border-radius: var(--r-sm);
  background: var(--bg2);
  color: var(--text);
  font-size: 14px;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Page title */
.page h1 {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--text);
  margin: 0 0 8px 0;
}

@media (max-width: 680px) {
  .mission-hero {
    padding: 28px 22px;
  }

  .mission-hero h1 {
    font-size: 22px;
  }

  .formations-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .formation-image {
    height: 150px;
  }

  .formation-content {
    padding: 16px;
  }

  .page h1 {
    font-size: 22px;
  }
}

@media (max-width: 900px) {
  .split-section {
    grid-template-columns: 1fr;
  }
  .split-media {
    min-height: 240px;
  }
  .cta-banner {
    padding: 22px;
  }
}

/* Admin chat */
.adminChatPage .pageInner.adminChat {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
  align-items: start;
}

.adminChatSidebar {
  background: var(--bg2);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  padding: 12px;
  box-shadow: var(--shadow-xs);
}

.adminChatSidebar h2 {
  margin: 0 0 10px;
  font-size: 16px;
}

.adminChatList {
  display: grid;
  gap: 8px;
}

.adminChatItem {
  display: block;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--stroke);
  background: var(--bg1);
  text-decoration: none;
  color: var(--text1);
}

.adminChatItem.active {
  border-color: var(--cta-primary);
  background: color-mix(in srgb, var(--cta-primary) 10%, var(--bg2));
}

.adminChatTitle {
  font-weight: 700;
  font-size: 13px;
}

.adminChatMeta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.adminChatMain {
  background: var(--bg2);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  padding: 12px;
  min-height: 360px;
  display: grid;
  gap: 10px;
}

.adminChatMessages {
  display: grid;
  gap: 8px;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.adminChatBubble {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.5;
  max-width: 70%;
}

.adminChatSender {
  font-weight: 600;
  font-size: 11px;
  margin-bottom: 4px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.adminChatBadge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--bg2);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.adminChatBadge.adherent {
  background: color-mix(in srgb, var(--cta-secondary) 14%, var(--bg2));
  color: var(--text);
}

.adminChatBadge.societe {
  background: color-mix(in srgb, var(--cta-primary) 14%, var(--bg2));
  color: var(--text);
}

.adminChatBubble.admin {
  background: color-mix(in srgb, var(--cta-primary) 18%, var(--bg2));
  justify-self: end;
}

.adminChatBubble.client {
  background: color-mix(in srgb, var(--cta-secondary) 12%, var(--bg2));
  border: 1px solid var(--stroke);
}

.adminChatTime {
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
}

.adminChatForm {
  display: grid;
  gap: 8px;
}

.adminChatForm textarea {
  border-radius: var(--r-md);
  border: 1px solid var(--stroke);
  padding: 10px 12px;
  resize: vertical;
}

.adminChatEmpty {
  color: var(--muted);
  font-size: 13px;
}

/* Admin inbox */
.adminInboxPage .pageInner.adminInbox {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 16px;
  align-items: start;
}

.adminInboxSidebar {
  background: var(--bg2);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  padding: 12px;
  box-shadow: var(--shadow-xs);
}

.adminInboxSidebar h2 {
  margin: 0 0 10px;
  font-size: 16px;
}

.adminInboxList {
  display: grid;
  gap: 8px;
  max-height: 640px;
  overflow: auto;
  padding-right: 4px;
}

.adminInboxItem {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--stroke);
  background: var(--bg1);
  text-decoration: none;
  color: var(--text1);
}

.adminInboxItem.unread {
  border-color: color-mix(in srgb, var(--cta-primary) 45%, var(--stroke));
  background: color-mix(in srgb, var(--cta-primary) 10%, var(--bg2));
}

.adminInboxItem.active {
  border-color: var(--cta-primary);
  background: color-mix(in srgb, var(--cta-primary) 12%, var(--bg2));
}

.adminInboxTitle {
  font-weight: 700;
  font-size: 13px;
}

.adminInboxMeta {
  font-size: 11px;
  color: var(--muted);
}

.adminInboxSnippet {
  font-size: 11px;
  color: var(--text2);
}

.adminInboxTime {
  font-size: 10px;
  color: var(--muted);
}

.adminInboxMain {
  background: var(--bg2);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  padding: 14px;
  min-height: 360px;
  display: grid;
  gap: 12px;
}

.adminInboxHeader {
  display: grid;
  gap: 6px;
}

.adminInboxSubject {
  font-size: 16px;
  font-weight: 700;
}

.adminInboxDetail {
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}

.adminInboxAttachments {
  border: 1px dashed var(--stroke);
  border-radius: var(--r-md);
  padding: 10px;
  background: var(--bg1);
}

.adminInboxAttachmentsTitle {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}

.adminInboxAttachmentsList {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.adminInboxAttachment {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--cta-secondary) 12%, var(--bg2));
  border: 1px solid var(--stroke);
  font-size: 11px;
}

.adminInboxBody {
  border-top: 1px solid var(--stroke);
  padding-top: 10px;
}

.adminInboxBodyText {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text1);
  white-space: normal;
}

.adminInboxEmpty {
  color: var(--muted);
  font-size: 13px;
}

.adminInboxReply {
  border-top: 1px solid var(--stroke);
  padding-top: 12px;
  display: grid;
  gap: 8px;
}

.adminInboxReply h3 {
  margin: 0;
  font-size: 14px;
}

.adminInboxNotice {
  padding: 8px 10px;
  border-radius: var(--r-sm);
  font-size: 12px;
  border: 1px solid var(--stroke);
  background: var(--bg1);
}

.adminInboxNotice.success {
  border-color: color-mix(in srgb, var(--cta-primary) 40%, var(--stroke));
  background: color-mix(in srgb, var(--cta-primary) 10%, var(--bg2));
}

.adminInboxNotice.error {
  border-color: #cc4b4b;
  background: color-mix(in srgb, #cc4b4b 10%, var(--bg2));
}

.adminInboxReplyForm {
  display: grid;
  gap: 8px;
}

.adminInboxReplyForm label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.adminInboxReplyForm input,
.adminInboxReplyForm textarea {
  border-radius: var(--r-md);
  border: 1px solid var(--stroke);
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text1);
  background: var(--bg1);
}

.adminInboxReplyLog {
  border-top: 1px dashed var(--stroke);
  padding-top: 10px;
  display: grid;
  gap: 8px;
}

.adminInboxReplyLogTitle {
  font-size: 12px;
  font-weight: 700;
}

.adminInboxReplyItem {
  border: 1px solid var(--stroke);
  border-radius: var(--r-md);
  padding: 10px;
  background: var(--bg1);
  display: grid;
  gap: 4px;
}

.adminInboxReplySubject {
  font-size: 12px;
  font-weight: 700;
}

.adminInboxReplyMeta {
  font-size: 10px;
  color: var(--muted);
}

.adminInboxReplyBody {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text1);
}

.adminInboxReplyAttachments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

/* =========================
   BSF GO • Modern Design System
   Version 2.0 - January 2026
   ========================= */

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =========================
   DESIGN TOKENS
   ========================= */
:root {
  --max: 1320px;
  --page-pad: 24px;
  --page-max: 1440px;
  --quickbar-max: 1100px;

  /* Colors - Light theme (BSF palette) */
  --bg0: #f1f2f2;
  --bg1: #e8ebec;
  --bg2: #ffffff;

  --brand: #00e501;
  --brand-dark: #0ab2e8;
  --brand-light: #fcde1b;
  --accent: #0ab2e8;

  --cta-primary: #00e501;
  --cta-secondary: #0ab2e8;
  --cta-warning: #fcde1b;

  --glass: rgba(255,255,255,.75);
  --glass2: rgba(255,255,255,.92);
  --stroke: rgba(134,159,157,.55);
  --stroke2: rgba(134,159,157,.25);

  --text: #213743;
  --text2: #0c304c;
  --muted: #869f9d;
  --muted2: #869f9d;

  --shadow: 0 20px 60px rgba(10,40,30,.12);
  --shadow-sm: 0 8px 24px rgba(10,40,30,.08);
  --shadow-xs: 0 4px 12px rgba(10,40,30,.06);

  --r-xl: 24px;
  --r-lg: 18px;
  --r-md: 14px;
  --r-sm: 10px;
  --r-xs: 6px;
}

/* Dark theme */
html[data-theme="dark"] {
  --bg0: #0c304c;
  --bg1: #213743;
  --bg2: #213743;

  --brand: #00e501;
  --brand-dark: #0ab2e8;
  --brand-light: #fcde1b;
  --accent: #0ab2e8;

  --cta-primary: #00e501;
  --cta-secondary: #0ab2e8;
  --cta-warning: #fcde1b;

  --glass: rgba(33,55,67,.82);
  --glass2: rgba(33,55,67,.92);
  --stroke: rgba(134,159,157,.55);
  --stroke2: rgba(134,159,157,.25);

  --text: #f1f2f2;
  --text2: #ffffff;
  --muted: #869f9d;
  --muted2: #869f9d;

  --shadow: 0 20px 60px rgba(0,0,0,.35);
  --shadow-sm: 0 8px 24px rgba(0,0,0,.25);
  --shadow-xs: 0 4px 12px rgba(0,0,0,.18);
}

/* Responsive padding */
@media (max-width: 640px){
  :root{ --page-pad: 14px; }
}

/* Background */
body {
  color: var(--text);
  background-color: var(--bg0);
  min-height: 100vh;
}

/* Typographic rhythm */
h1, h2, h3, h4 {
  color: var(--text2);
  letter-spacing: -0.2px;
}

p {
  color: var(--text);
}

.pageInner > section {
  margin-bottom: 26px;
  scroll-margin-top: 90px;
}

/* =========================
   LUCIDE ICONS BASE
   ========================= */
[data-lucide] {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  flex-shrink: 0;
}

.spinIcon {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* =========================
   HELPERS
   ========================= */
.hideOnMobile { display: inline-flex; }
.hideOnSmall { display: table-cell; }
.hideOnMedium { display: table-cell; }

@media (max-width: 900px) {
  .hideOnMedium { display: none !important; }
}
@media (max-width: 680px) {
  .hideOnSmall { display: none !important; }
}
@media (max-width: 580px) {
  .hideOnMobile { display: none !important; }
}

/* =========================
   TOPBAR
   ========================= */
.topbar {
  position: sticky;
  top: 12px;
  z-index: 1000;
  padding: 0 24px;
}

.topbar .wrap {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;

  background: var(--glass2);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 8px 14px;

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.logoRing {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--brand);
  padding: 2px;
  box-shadow: 0 4px 12px rgba(12,48,76,.20);
}

.logoImg {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  display: block;
}

.logoShine {
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
}

.brandText {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brandName {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.brandTag {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.2px;
}

.spacer { flex: 1; }

/* Stats Badge */
.statsBadge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 20%, transparent);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand);
}

.statsBadge .statIcon {
  width: 14px;
  height: 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--glass2);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .18s ease;
  box-shadow: var(--shadow-xs);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  border-color: var(--brand);
}

.btn:active {
  transform: translateY(0);
}

.btnIconSvg {
  width: 16px;
  height: 16px;
}

.btnCaret {
  width: 14px;
  height: 14px;
  opacity: .6;
}

.btnPrimary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(30,112,184,.25);
}

.btnPrimary:hover {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 6px 20px rgba(12,48,76,.30);
}

.btnGhost {
  background: var(--bg2);
  border-color: var(--stroke);
}

.btnOutline {
  background: transparent;
  border: 1.5px solid var(--stroke);
}

.btnOutline:hover {
  background: color-mix(in srgb, var(--brand) 8%, transparent);
  border-color: var(--brand);
  color: var(--brand);
}

.btnFull {
  width: 100%;
}

.iconBtn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--bg2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .18s ease;
  box-shadow: var(--shadow-xs);
  color: var(--text);
}

.iconBtn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  border-color: var(--brand);
  color: var(--brand);
}

.iconBtn .iconSun { display: none; }
html[data-theme="dark"] .iconBtn .iconMoon { display: none; }
html[data-theme="dark"] .iconBtn .iconSun { display: block; }

/* Dropdown */
.dropdown { position: relative; }

.menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(320px, 85vw);
  background: var(--bg2);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 8px;
  display: none;
  max-height: 380px;
  overflow: auto;
}

.dropdown[aria-expanded="true"] .menu { display: block; }

.menuItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  transition: all .15s ease;
}

.menuItem:hover {
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  color: var(--brand);
}

.tickIcon {
  width: 16px;
  height: 16px;
  color: var(--brand);
}

/* =========================
   PAGE GRID
   ========================= */
.page, .quickbar{ width:100%; }

.page {
  max-width: var(--max);
  margin: 24px auto 0;
  padding: 0 24px;
}

.pageInner{
  max-width: var(--page-max);
  margin: 0 auto;
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
}

.quickbarInner{
  max-width: var(--quickbar-max);
  margin: 0 auto;
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
}

.quickbar{
  margin-top: 32px;
  margin-bottom: 8px;
}

@media (max-width: 640px){
  .quickbar{ margin-top: 22px; margin-bottom: 6px; }
}

/* =========================
   HOME INTRO
   ========================= */
.homeIntro {
  margin: 18px 0 6px;
  padding: 16px 18px;
  border-radius: var(--r-lg);
  border: 1px solid var(--stroke);
  background: var(--glass2);
  box-shadow: var(--shadow-sm);
}

.homeLead {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

/* =========================
   ACADEMY SECTIONS
   ========================= */
.academy-hero {
  margin: 8px 0 26px;
  padding: 28px;
  border-radius: var(--r-xl);
  background:
    linear-gradient(120deg, rgba(12, 48, 76, 0.9), rgba(12, 48, 76, 0.7)),
    url('../erp1/doc/images/dolibarr_screenshot4_1920x1080.jpg') center/cover no-repeat;
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 22px;
  box-shadow: var(--shadow);
}

.academy-hero-content {
  max-width: 720px;
}

.academy-hero .btnPrimary,
.academy-hero .btnGhost {
  min-width: 180px;
}

.academy-hero .btnGhost {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: rgba(255,255,255,0.2);
}

.academy-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  font-weight: 700;
}

.academy-hero h1 {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.4px;
}

.academy-lead {
  margin: 0 0 16px;
  color: rgba(255,255,255,0.82);
  max-width: 720px;
}

.academy-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.academy-hero-stats {
  display: grid;
  gap: 10px;
  align-content: start;
}

.academy-stat {
  padding: 12px;
  border-radius: var(--r-lg);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
}

.academy-stat-num {
  display: block;
  font-weight: 800;
  font-size: 16px;
}

.academy-stat-label {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.75);
}

.academy-section {
  margin: 0 0 28px;
}

.academy-section h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 900;
}

.academy-sub {
  margin: 0 0 16px;
  color: var(--muted);
}

.academy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.academy-card {
  background: var(--glass2);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.academy-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 800;
}

.academy-card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.academy-card ul {
  margin: 0;
  padding-left: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

/* Unified hover lift */
.academy-card:hover,
.academy-step:hover,
.academy-program-card:hover,
.cv-card:hover,
.startup-card:hover,
.startup-form:hover,
.usecase-card:hover,
.journey-card:hover,
.portfolio-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.academy-steps {
  margin-top: 8px;
}

.academy-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.academy-step {
  padding: 16px;
  border-radius: var(--r-lg);
  border: 1px solid var(--stroke);
  background: var(--glass2);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.academy-step-num {
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 6px;
}

.academy-step h4 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 800;
}

.academy-step p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.academy-cta {
  margin: 0 0 30px;
  padding: 22px;
  border-radius: var(--r-xl);
  background: var(--brand);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: var(--shadow);
}

.academy-cta .btnPrimary {
  min-width: 190px;
}

.academy-cta h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 900;
}

.academy-cta p {
  margin: 0;
  color: rgba(255,255,255,0.82);
}

.academy-team {
  margin-top: 8px;
}

.academy-programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.academy-program-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border-radius: var(--r-lg);
  border: 1px solid var(--stroke);
  background: var(--glass2);
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  overflow: hidden;
}

.academy-program-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--brand);
}

.program-cover {
  height: 120px;
  border-radius: var(--r-md);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--stroke2);
  filter: saturate(1.08);
}

.academy-program-card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  min-height: 34px;
}

.academy-program-card p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.program-tag {
  display: inline-flex;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 18%, transparent);
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.cv-section {
  margin-top: 6px;
}

.cv-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.cv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.cv-card {
  padding: 16px;
  border-radius: var(--r-lg);
  border: 1px solid var(--stroke);
  background: var(--glass2);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 8px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.cv-cover {
  height: 110px;
  border-radius: var(--r-md);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--stroke2);
  filter: saturate(1.08);
}

.cv-card h3 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 800;
  min-height: 32px;
}

.cv-card p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.startup-section {
  margin-top: 6px;
}

.startup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.startup-card {
  padding: 16px;
  border-radius: var(--r-lg);
  border: 1px solid var(--stroke);
  background: var(--glass2);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 8px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.startup-cover {
  height: 120px;
  border-radius: var(--r-md);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--stroke2);
  filter: saturate(1.08);
}

.startup-card h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
  min-height: 32px;
}

.startup-card ul {
  margin: 0;
  padding-left: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  max-height: 3.6em;
  overflow: hidden;
}

.startup-cta {
  margin-top: 16px;
  padding: 18px;
  border-radius: var(--r-lg);
  background:
    linear-gradient(120deg, rgba(12, 48, 76, 0.9), rgba(33, 55, 67, 0.6));
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow);
}

.startup-cta h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 900;
}

.startup-cta p {
  margin: 0;
  color: rgba(255,255,255,0.82);
}

.visual-mosaic {
  margin: 4px 0 26px;
}

.mosaic-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.mosaic-tile {
  position: relative;
  overflow: hidden;
  height: 150px;
  border-radius: var(--r-lg);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--stroke2);
  box-shadow: var(--shadow-sm);
}

.mosaic-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.35));
}

.mosaic-wide {
  grid-column: span 3;
}

.mosaic-tall {
  grid-row: span 2;
  height: auto;
  min-height: 310px;
}

@media (max-width: 900px) {
  .mosaic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mosaic-wide {
    grid-column: span 2;
  }
  .mosaic-tall {
    min-height: 220px;
  }
}

.startup-intake {
  display: grid;
  gap: 16px;
}

.startup-form {
  padding: 18px;
  border-radius: var(--r-lg);
  border: 1px solid var(--stroke);
  background: var(--glass2);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.startup-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.startup-form label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--text);
  font-weight: 600;
}

.startup-form label span {
  letter-spacing: 0.2px;
}

.startup-form input,
.startup-form select {
  padding: 10px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--stroke);
  background: var(--bg2);
  color: var(--text);
  font-size: 13px;
}

.startup-form-full {
  grid-column: 1 / -1;
}

.startup-form-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.startup-form-note {
  font-size: 12px;
  color: var(--muted);
}

.usecase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.usecase-card {
  padding: 16px;
  border-radius: var(--r-lg);
  border: 1px solid var(--stroke);
  background: var(--glass2);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 8px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.usecase-card h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  min-height: 32px;
}

.usecase-card p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.journey-card {
  padding: 16px;
  border-radius: var(--r-lg);
  border: 1px solid var(--stroke);
  background: var(--glass2);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.journey-step {
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 6px;
}

.journey-card h3 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 800;
}

.journey-card p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.portfolio-card {
  padding: 16px;
  border-radius: var(--r-lg);
  border: 1px solid var(--stroke);
  background: var(--glass2);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 6px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.portfolio-cover {
  height: 120px;
  border-radius: var(--r-md);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--stroke2);
  filter: saturate(1.08);
}

.portfolio-tag {
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 18%, transparent);
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
}

.portfolio-card h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  min-height: 32px;
}

.portfolio-card p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 900px) {
  .academy-hero {
    grid-template-columns: 1fr;
  }
  .academy-hero {
    padding: 20px;
  }
  .academy-hero h1 {
    font-size: 22px;
  }
  .academy-hero .btnPrimary,
  .academy-hero .btnGhost {
    min-width: 0;
    width: 100%;
  }
  .academy-hero-actions {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .academy-hero {
    padding: 18px;
  }
  .academy-hero h1 {
    font-size: 20px;
  }
  .academy-kicker {
    letter-spacing: 0.12em;
  }
  .page {
    margin-top: 18px;
    padding: 0 16px;
  }
  .pageInner {
    padding-left: 0;
    padding-right: 0;
  }
  .academy-section {
    margin-bottom: 20px;
  }
  .academy-card,
  .academy-step,
  .academy-program-card,
  .cv-card,
  .startup-card,
  .startup-form,
  .usecase-card,
  .journey-card,
  .portfolio-card {
    padding: 14px;
  }
  .program-cover,
  .portfolio-cover,
  .startup-cover,
  .cv-cover {
    height: 110px;
  }
  .mosaic-tile {
    height: 140px;
  }
  .academy-programs-grid,
  .portfolio-grid,
  .usecase-grid,
  .startup-grid,
  .cv-grid,
  .journey-grid {
    grid-template-columns: 1fr;
  }
  .mosaic-grid {
    grid-template-columns: 1fr;
  }
  .mosaic-wide {
    grid-column: span 1;
  }
  .academy-cta {
    padding: 18px;
  }
}

.gridTwo {
  display: grid;
  grid-template-columns: 38% 62%;
  grid-template-rows: auto auto;
  align-items: start;
  column-gap: 20px;
  row-gap: 24px;
}

.colPlot { grid-column: 1; grid-row: 1; }
.colFilters { grid-column: 1; grid-row: 2; }
.colMap { grid-column: 2; grid-row: 1 / span 2; }

@media (max-width: 1080px) {
  .gridTwo {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    column-gap: 12px;
    row-gap: 12px;
  }
  .colPlot { grid-column: 1; grid-row: auto; order: 1; }
  .colMap { grid-column: 1; grid-row: auto; order: 2; }
  .colFilters { grid-column: 1; grid-row: auto; order: 3; }
}

/* Cards */
.card {
  background: var(--glass2);
  border: 1px solid var(--stroke);
  border-radius: var(--r-xl);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: cardIn .35s ease both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Disable animation on left column cards to stabilize spacing */
.colPlot.card, .colFilters.card {
  animation: cardInFade .35s ease both;
}

@keyframes cardInFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cardTitleWrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.cardTitleIcon {
  width: 18px;
  height: 18px;
  color: var(--brand);
}

.cardTitle {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.3px;
}

.filtersToggle {
  margin-left: auto;
  display: none;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--bg2);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.filtersToggleIcon {
  width: 14px;
  height: 14px;
}

.filtersBody {
  display: block;
}

/* =========================
   VIDEO PLOT CARD
   ========================= */
.plotVideoCard{
  padding:0;
  overflow:hidden;
  background: transparent !important;
  min-height: 200px;
  height: auto;
}

.plotVideo{
  width:100%;
  height: 240px;
  display:block;
  object-fit: cover;
  object-position: center;
  pointer-events:none;
  user-select:none;
  background: transparent;
}

.plotVideo::-webkit-media-controls,
.plotVideo::-webkit-media-controls-panel,
.plotVideo::-webkit-media-controls-play-button,
.plotVideo::-webkit-media-controls-start-playback-button{
  display:none !important;
  -webkit-appearance:none;
}

@media (max-width: 1080px){
  .plotVideo{ height: 200px; }
}

@media (max-width: 640px){
  .plotVideo{ height: 180px; }
}

/* =========================
   QUICK ACTION BUTTONS
   ========================= */
.quickbarCard{
  background: transparent;
  border: none;
  padding: 0;
}

.quickBtns{
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 1024px){
  .quickBtns{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px){
  .quickBtns{ gap: 8px; }
}

.qbtn{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .2px;
  text-decoration: none;
  outline: none;
  border: none;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all .18s ease;
  white-space: nowrap;
}

@media (max-width: 640px){
  .qbtn{
    height: 38px;
    font-size: 10px;
    gap: 5px;
    border-radius: 10px;
  }
}

html[data-theme="light"] .qbtn{
  color: #ffffff;
  background: var(--brand);
  box-shadow: 0 4px 12px rgba(12, 48, 76, .25);
}

html[data-theme="light"] .qbtn:hover{
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(12, 48, 76, .35);
  filter: brightness(1.08);
}

html[data-theme="dark"] .qbtn{
  color: #E8EDF2;
  background: var(--brand-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .4);
}

html[data-theme="dark"] .qbtn:hover{
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(6, 160, 120, .35);
  filter: brightness(1.12);
}

.qbtn:active{
  transform: translateY(0px);
  transition-duration: .1s;
}

.qbtnIcon{
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  opacity: .95;
}

@media (max-width: 640px){
  .qbtnIcon{ width: 15px; height: 15px; }
}

/* =========================
   PLOT CARD
   ========================= */
.cardPlot { padding: 16px; }

.plotTop {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.plotCategoryBadge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg2);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  box-shadow: var(--shadow-xs);
}

.plotCatIcon {
  width: 16px;
  height: 16px;
  color: var(--brand);
}

.plotCategoryText {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plotCanvas {
  width: 100%;
  height: 170px;
  display: block;
  border-radius: var(--r-md);
  background: var(--bg0);
  border: 1px solid var(--stroke2);
}

html[data-theme="dark"] .plotCanvas {
  background: rgba(0,0,0,.25);
}

.plotBottom {
  margin-top: 12px;
}

.plotBottomInner {
  display: flex;
  justify-content: center;
}

.plotStatBox {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: color-mix(in srgb, var(--brand) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 15%, transparent);
  border-radius: var(--r-lg);
}

.plotStatIcon {
  width: 28px;
  height: 28px;
  color: var(--brand);
}

.plotStatContent {
  display: flex;
  flex-direction: column;
}

.plotCount {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
  color: var(--text);
}

.plotUnit {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 2px;
}

/* =========================
   MAP CARD
   ========================= */
.cardMap { padding: 16px; }

.bsfMapWrap { position: relative; }

.bsfMap {
  width: 100%;
  height: 480px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: var(--bg0);
}

html[data-theme="dark"] .bsfMap {
  border-color: var(--stroke);
}

.bsfHud {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.bsfHudLeft, .bsfHudRight {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bsfStatus, .bsfCount {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg2);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  box-shadow: var(--shadow-xs);
}

.bsfStatus .spinIcon,
.countIcon {
  width: 14px;
  height: 14px;
  color: var(--brand);
}

.bsfLocateBtn {
  pointer-events: auto;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--bg2);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: all .18s ease;
}

.bsfLocateBtn:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.bsfLocateBtn [data-lucide] {
  width: 18px;
  height: 18px;
}

/* =========================
   MERCHANTS TABLE (REDESIGNED)
   ========================= */
.mTableWrap {
  margin-top: 16px;
}

.mTableHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.mTableTitleWrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mTableIcon {
  width: 18px;
  height: 18px;
  color: var(--brand);
}

.mTableTitle {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.3px;
  color: var(--text);
}

.mTableHint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  color: var(--brand);
  padding: 5px 10px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hintIcon {
  width: 12px;
  height: 12px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

.mTableScroll {
  border-radius: var(--r-md);
  border: 1px solid var(--stroke);
  background: var(--bg2);
  overflow: hidden;
  height: 320px;
  overflow-y: auto;
}

.mTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  table-layout: fixed;
}

.mTable thead th {
  position: sticky;
  top: 0;
  text-align: left;
  padding: 10px 10px;
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  background: var(--bg1);
  border-bottom: 1px solid var(--stroke);
  white-space: nowrap;
}

.mTable thead th > span,
.mTable thead th > i {
  vertical-align: middle;
}

.thIcon {
  width: 12px;
  height: 12px;
  margin-right: 4px;
  opacity: .7;
  vertical-align: middle;
}

.mTable tbody td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--stroke2);
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text2);
}

.mRow {
  transition: background .15s ease;
}

.mRow:hover {
  background: color-mix(in srgb, var(--brand) 6%, transparent);
}

.mRow:last-child td {
  border-bottom: none;
}

.mName {
  font-weight: 700;
  color: var(--text);
  font-size: 11px;
}

.mCategory {
  font-weight: 600;
  color: var(--muted);
  font-size: 10px;
}

.mProduct {
  font-weight: 500;
  color: var(--muted2);
  font-size: 10px;
}

.mDiscount {
  font-weight: 700;
  color: var(--brand);
  font-size: 10px;
}

.mPrice {
  font-weight: 600;
  color: var(--text2);
  font-size: 10px;
}

.mDate {
  font-weight: 500;
  color: var(--muted2);
  font-size: 10px;
}

.mTableEmpty {
  text-align: center;
  padding: 24px 12px !important;
  color: var(--muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mTableEmpty .spinIcon {
  width: 16px;
  height: 16px;
}

/* =========================
   FILTERS CARD
   ========================= */
.cardFilters { padding: 16px; }

.filtersGrid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filterBlock {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filterLabel {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.filterLabelIcon {
  width: 13px;
  height: 13px;
  opacity: .7;
}

.selectWrap {
  position: relative;
}

.filterInput {
  width: 100%;
  height: 42px;
  border-radius: var(--r-sm);
  border: 1px solid var(--stroke);
  background: var(--bg2);
  color: var(--text);
  padding: 0 36px 0 12px;
  font-size: 13px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: all .18s ease;
}

.filterInput:hover {
  border-color: var(--brand);
}

.filterInput:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent);
}

.filterInput:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.selectArrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
}

.filtersActions {
  margin-top: 14px;
}

/* =========================
   FOOTER
   ========================= */
.footer {
  margin-top: 32px;
  padding: 20px 16px 28px;
  text-align: center;
}

.footerInner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footerText {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.footerIcon {
  width: 13px;
  height: 13px;
  opacity: .7;
}

.footerDot {
  color: var(--muted2);
  font-size: 10px;
}

/* =========================
   MOBILE TWEAKS
   ========================= */
@media (max-width: 680px) {
  .topbar { padding: 0 10px; top: 6px; }
  .topbar .wrap { padding: 4px 8px; gap: 5px; }

  .logoRing { width: 32px; height: 32px; }
  .brandName { font-size: 13px; }
  .statsBadge { display: none; }

  .btn, .iconBtn { height: 32px; }
  .btn { padding: 0 10px; font-size: 11px; }
  .iconBtn { width: 32px; }

  .page { padding: 0 14px; margin-top: 18px; }
  .gridTwo { gap: 14px; }
  .homeIntro { padding: 12px 14px; }
  .homeLead { font-size: 13px; }

  .card { padding: 14px; border-radius: var(--r-lg); }

  .plotCanvas { height: 140px; }
  .plotCount { font-size: 22px; }
  .plotStatBox { padding: 10px 16px; }
  .plotStatIcon { width: 24px; height: 24px; }

  .bsfMap { height: 340px; border-radius: var(--r-md); }
  .bsfStatus, .bsfCount { padding: 6px 10px; font-size: 11px; }
  .bsfLocateBtn { width: 34px; height: 34px; }

  .mTableScroll { max-height: 260px; }
  .mTable { font-size: 10px; }
  .mTable thead th { padding: 8px 8px; font-size: 9px; }
  .mTable tbody td { padding: 7px 8px; }

  .filterInput { height: 38px; font-size: 12px; }

  .mosaic-grid.is-slider {
    display: flex;
    gap: 0;
    overflow: hidden;
  }

  .mosaic-grid.is-slider .mosaic-tile {
    flex: 0 0 100%;
    height: 190px;
    min-height: 0;
    display: none;
  }

  .mosaic-grid.is-slider .mosaic-tile.is-active {
    display: block;
  }
}

@media (max-width: 860px) {
  .cardFilters {
    position: sticky;
    top: 0px;
    z-index: 900;
  }

  .filtersToggle { display: inline-flex; }

  .cardFilters[data-open="false"] .filtersBody {
    display: none;
  }
}

/* =========================
   RTL SUPPORT
   ========================= */
html[dir="rtl"] .topbar .wrap { direction: rtl; }
html[dir="rtl"] .menu { left: 0; right: auto; }
html[dir="rtl"] .mTable thead th { text-align: right; }
html[dir="rtl"] .mTable tbody td { text-align: right; }
html[dir="rtl"] .thIcon { margin-right: 0; margin-left: 4px; }
html[dir="rtl"] .selectArrow { right: auto; left: 12px; }
html[dir="rtl"] .filterInput { padding: 0 12px 0 36px; }

/* =========================
   LEAFLET CUSTOMIZATION
   ========================= */
.leaflet-popup-content-wrapper {
  border-radius: var(--r-md) !important;
  box-shadow: var(--shadow-sm) !important;
}

.leaflet-popup-content {
  margin: 12px 14px !important;
  font-family: Inter, system-ui, sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

.bsf-tooltip-wrap {
  background: var(--bg2) !important;
  color: var(--text) !important;
  border: 1px solid var(--stroke) !important;
  border-radius: var(--r-sm) !important;
  padding: 8px 12px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  box-shadow: var(--shadow-xs) !important;
}

.bsf-tooltip-wrap::before {
  border-top-color: var(--bg2) !important;
}

/* Scrollbar styling */
.mTableScroll::-webkit-scrollbar,
.menu::-webkit-scrollbar {
  width: 6px;
}

.mTableScroll::-webkit-scrollbar-track,
.menu::-webkit-scrollbar-track {
  background: transparent;
}

.mTableScroll::-webkit-scrollbar-thumb,
.menu::-webkit-scrollbar-thumb {
  background: var(--muted2);
  border-radius: 3px;
}

.mTableScroll::-webkit-scrollbar-thumb:hover,
.menu::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

/* === Merchants table : 3 columns full width === */
.mTable {
  table-layout: fixed;
  width: 100%;
}

.mTable th,
.mTable td {
  width: 33.3333%;
}

/* alignement spécifique */
.mTable th:nth-child(3),
.mTable td:nth-child(3) {
  text-align: center; /* Discount centré */
}

/* =========================
   DESIGN V2 IMPROVEMENTS
   February 2026
   ========================= */

/* --- Smooth Theme Transition --- */
body,
.topbar .wrap,
.card,
.btn,
.iconBtn,
.formation-card,
.sector-cta,
.pack-card,
.insight-card,
.timeline-card,
.proof-card,
.value-pill,
.featured-card,
.menu,
.menuItem,
.badge,
.filter-chip,
.filter-btn,
.home-link-card,
.authCard,
.profileContent,
.profileSidebar .userCard,
.navItem,
footer.footer {
  transition: background-color .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease;
}

/* --- Missing CSS Variables --- */
:root {
  --surface: var(--bg2);
  --border: var(--stroke);
  --text-heading: var(--text);
}

html[data-theme="dark"] {
  --surface: var(--bg2);
  --border: var(--stroke);
  --text-heading: #F1F2F2;
}

/* --- Contact Page Styles --- */
.contact-hero {
  text-align: center;
  padding: 48px 0 32px;
}

.contact-hero h1 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 900;
  letter-spacing: -0.5px;
  margin: 0 0 12px;
  color: var(--text);
}

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

.contact-card {
  max-width: 720px;
  margin: 0 auto 60px;
  background: var(--glass2);
  border: 1px solid var(--stroke);
  border-radius: var(--r-xl);
  padding: 36px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.contact-card form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-card .form-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.contact-card .form-group input,
.contact-card .form-group select,
.contact-card .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--stroke);
  border-radius: var(--r-sm);
  background: var(--bg0);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.contact-card .form-group input:hover,
.contact-card .form-group select:hover,
.contact-card .form-group textarea:hover {
  border-color: var(--brand);
}

.contact-card .form-group input:focus,
.contact-card .form-group select:focus,
.contact-card .form-group textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent);
}

.contact-card .form-group input::placeholder,
.contact-card .form-group textarea::placeholder {
  color: var(--muted2);
}

.contact-card .form-group textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

.contact-card .form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23869F9D' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.contact-card .btn {
  align-self: flex-start;
  height: 48px;
  padding: 0 32px;
  font-size: 14px;
}

.contact-card .alertBox,
.contact-card div[style*="background: #d4edda"] {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 600;
  background: color-mix(in srgb, var(--cta-primary) 12%, var(--bg2)) !important;
  border: 1px solid color-mix(in srgb, var(--cta-primary) 30%, var(--stroke)) !important;
  color: var(--text) !important;
}

@media (max-width: 680px) {
  .contact-card {
    padding: 24px 18px;
    border-radius: var(--r-lg);
  }
  .contact-card .btn {
    width: 100%;
    justify-content: center;
  }
}

/* --- Video Section Styles --- */
.intro-videos-section {
  margin: 60px 0;
}

.video-card {
  background: var(--glass2);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg1);
  overflow: hidden;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 48, 76, 0.4);
  cursor: pointer;
  transition: background .3s ease;
}

.video-play-overlay:hover {
  background: rgba(12, 48, 76, 0.25);
}

.video-play-overlay.is-playing {
  background: transparent;
  opacity: 0;
  pointer-events: none;
}

.play-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform .2s ease;
}

.video-play-overlay:hover .play-icon {
  transform: scale(1.1);
}

.play-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--brand);
  margin-left: 3px;
}

.video-info {
  padding: 16px;
}

.video-info h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Swiper overrides for BSF theme */
.video-swiper .swiper-pagination-bullet {
  background: var(--muted);
  opacity: 0.5;
}

.video-swiper .swiper-pagination-bullet-active {
  background: var(--brand);
  opacity: 1;
}

.video-swiper .swiper-button-next,
.video-swiper .swiper-button-prev {
  color: var(--brand);
  background: var(--glass2);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-xs);
}

.video-swiper .swiper-button-next::after,
.video-swiper .swiper-button-prev::after {
  font-size: 16px;
  font-weight: 900;
}


/* --- Admin Dashboard Styles --- */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.admin-kpi {
  background: var(--glass2);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.admin-kpi:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.admin-kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-kpi-icon i,
.admin-kpi-icon [data-lucide] {
  width: 22px;
  height: 22px;
  color: var(--brand);
}

.admin-kpi-value {
  font-size: 24px;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
}

.admin-kpi-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 2px;
}

.admin-table-card {
  background: var(--glass2);
  border: 1px solid var(--stroke);
  border-radius: var(--r-xl);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  overflow: hidden;
}

.admin-table-card h2 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.admin-table thead th {
  text-align: left;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--muted);
  background: var(--bg1);
  border-bottom: 1px solid var(--stroke);
}

.admin-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--stroke2);
  color: var(--text2);
}

.admin-table tbody tr:hover {
  background: color-mix(in srgb, var(--brand) 5%, transparent);
}

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

.admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  transition: all .15s ease;
}

.admin-nav-item:hover {
  background: color-mix(in srgb, var(--brand) 8%, transparent);
  color: var(--text);
}

.admin-nav-item.active {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-xs);
}

.admin-nav-item [data-lucide] {
  width: 16px;
  height: 16px;
}

.admin-page-title {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin: 0 0 20px;
  color: var(--text);
}

.admin-actions-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-top: 24px;
}

.admin-quick-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.admin-sessions-list {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-session-item {
  padding: 12px;
  border: 1px solid var(--stroke2);
  border-radius: var(--r-sm);
  background: var(--bg0);
}

.admin-session-label {
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 4px;
}

.admin-session-meta {
  font-size: 12px;
  color: var(--muted);
}

.admin-session-empty {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  padding: 16px 0;
}

/* Card value for KPI */
.cardValue {
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
  margin-top: 6px;
}

/* =========================
   ADMIN UTILITY CLASSES
   ========================= */
.admin-form-grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.admin-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

@media (max-width: 680px) {
  .admin-form-grid-2 {
    grid-template-columns: 1fr;
  }
}

.admin-form-grid label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}

.admin-form-grid input,
.admin-form-grid select,
.admin-form-grid textarea,
.admin-form-grid-2 input,
.admin-form-grid-2 select,
.admin-form-grid-2 textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--stroke);
  border-radius: var(--r-sm);
  background: var(--bg0);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.admin-form-grid input:focus,
.admin-form-grid select:focus,
.admin-form-grid textarea:focus,
.admin-form-grid-2 input:focus,
.admin-form-grid-2 select:focus,
.admin-form-grid-2 textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent);
}

.admin-btn-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.admin-list-item {
  padding: 12px 14px;
  border: 1px solid var(--stroke2);
  border-radius: var(--r-sm);
  background: var(--bg0);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  transition: background .15s ease;
}

.admin-list-item:hover {
  background: color-mix(in srgb, var(--brand) 5%, var(--bg0));
}

.admin-list-item-title {
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
}

.admin-list-item-meta {
  font-size: 12px;
  color: var(--muted);
}

.admin-cards-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-bottom: 20px;
}

.admin-section {
  margin-top: 24px;
}

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

/* Admin page edit section */
.admin-edit-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--stroke2);
}

/* --- Page Heading Consistency --- */
.page h1,
.pageInner h1 {
  font-size: clamp(22px, 3.5vw, 28px);
  font-weight: 900;
  letter-spacing: -0.4px;
  margin: 32px 0 12px;
  color: var(--text);
}

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

.page > .pageInner > section > p:first-of-type {
  color: var(--muted);
  margin-bottom: 16px;
}

/* --- Image Container Fixes --- */
.formation-img-container {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.formation-img-container .formation-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* --- Featured formation image fix --- */
.featured-img {
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center center;
}

.formation-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center center;
}

/* --- Responsive Improvements --- */
@media (max-width: 900px) {
  .hero-art {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    padding: 40px 0 60px !important;
    min-height: auto !important;
    text-align: center;
  }

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

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

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

  .hero-visual {
    max-width: 480px;
    margin: 0 auto;
  }

  .hero-img-wrap {
    transform: none !important;
  }

  .hero-img-wrap:hover {
    transform: none !important;
  }

  .sector-cta-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .split-section {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .split-media {
    min-height: 200px;
    order: -1;
  }
}

@media (max-width: 580px) {
  .hero-art {
    padding: 24px 0 40px !important;
  }

  .hero-title {
    font-size: 32px !important;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .sector-cta-grid {
    grid-template-columns: 1fr !important;
  }

  .formations-grid {
    grid-template-columns: 1fr !important;
  }

  .featured-grid {
    grid-template-columns: 1fr !important;
  }

  .insight-grid,
  .timeline-grid,
  .proof-grid,
  .pack-grid,
  .commit-grid,
  .roadmap,
  .impact-grid,
  .testi-grid,
  .feature-grid {
    grid-template-columns: 1fr !important;
  }

  .value-strip {
    grid-template-columns: 1fr !important;
  }

  .stats-band {
    grid-template-columns: 1fr 1fr;
  }

  .contact-slab {
    grid-template-columns: 1fr !important;
    text-align: center;
    padding: 24px !important;
  }

  .contact-slab-actions {
    justify-content: center !important;
    flex-direction: column;
    align-items: stretch;
  }

  .story-band {
    grid-template-columns: 1fr !important;
  }

  .quote-strip {
    padding: 16px !important;
  }

  .promise-band {
    flex-direction: column;
    text-align: center;
  }

  .newsletter {
    flex-direction: column;
    text-align: center;
  }
}

/* --- Dark Mode Polish --- */
html[data-theme="dark"] .contact-card .form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23869F9D' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

html[data-theme="dark"] .alertSuccess,
html[data-theme="dark"] .alertBox.alertSuccess {
  background: rgba(43, 108, 176, 0.15);
  border-color: rgba(43, 108, 176, 0.3);
  color: #4da3e0;
}

html[data-theme="dark"] .alertError {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

html[data-theme="dark"] .badge.primary {
  color: var(--cta-primary);
}

html[data-theme="dark"] .badge.warning {
  color: var(--cta-warning);
}

html[data-theme="dark"] .proof-card {
  background: rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .value-pill {
  background: rgba(255, 255, 255, 0.06);
}

/* --- Consistent Footer --- */
.footer {
  margin-top: 48px;
  padding: 24px 16px 32px;
  border-top: 1px solid var(--stroke2);
}

/* --- Pack Card Polish --- */
.pack-card ul {
  list-style: none;
  padding: 0;
}

.pack-card ul li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
}

.pack-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cta-primary);
  opacity: 0.7;
}

.pack-card .btn {
  width: 100%;
  justify-content: center;
  margin-top: 12px;
}

/* --- Filter Bar & Buttons --- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--bg2);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all .25s ease;
}

.filter-btn:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--brand) 8%, var(--bg2));
}

.filter-btn.active {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
  box-shadow: var(--shadow-sm);
}

/* --- Section Spacing Consistency --- */
.page > .pageInner > section {
  margin-bottom: 28px;
}

/* --- Scrollbar Global Polish --- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--muted2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

/* --- Fix h1 in detail pages --- */
.pageInner > section > h1 {
  font-size: clamp(22px, 3.5vw, 28px);
  font-weight: 900;
  color: var(--text);
  margin: 28px 0 10px;
}

/* Homepage styles are inline in index.php */
