/* ═══════════════════════════════════════════════════════════════════
   BULTER LIVRAISON FOOD — Design System v2
   Direction : Dark Luxury Food — élégant, premium, belge
   Polices   : Playfair Display (titres) + DM Sans (corps)
   Palette   : Charbon profond + Violet Bulter #7268b1 + Crème ivoire
   ═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,800;1,700&family=DM+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Couleurs */
  --b-ink:       #0f0e17;
  --b-ink2:      #1c1b29;
  --b-ink3:      #2a2840;
  --b-purple:    #7268b1;
  --b-purple-lt: #9b8fd4;
  --b-purple-dk: #5a5192;
  --b-cream:     #faf6ef;
  --b-cream2:    #f2ebe0;
  --b-lavender:  #c4bcf0;
  --b-green:     #2d9e6b;
  --b-green-lt:  #e6f7f0;
  --b-red:       #c94040;
  --b-red-lt:    #fdeaea;
  --b-muted:     #8a8799;
  --b-border:    rgba(255,255,255,.08);
  --b-border-lt: #e8e2d9;

  /* Typographie */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;

  /* Espacements & effets */
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  28px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.12);
  --shadow-md: 0 6px 24px rgba(0,0,0,.18);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.28);
  --shadow-glow: 0 0 32px rgba(114,104,177,.25);

  /* Transitions */
  --ease: cubic-bezier(.4,0,.2,1);
}

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

/* ── Base ── */
.blf-app, .blf-restaurants-page, .blf-suivi-page, .blf-merci-page,
.blf-panier-page, .blf-dashboard {
  font-family: var(--font-body);
  color: var(--b-ink);
  -webkit-font-smoothing: antialiased;
}

/* ════════════════════════════════════════
   SPINNER & LOADING
════════════════════════════════════════ */
.blf-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  gap: 16px;
  color: var(--b-muted);
  font-size: .9rem;
}
.blf-spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--b-cream2);
  border-top-color: var(--b-purple);
  border-radius: 50%;
  animation: blf-spin .7s linear infinite;
}
@keyframes blf-spin { to { transform: rotate(360deg); } }

/* ════════════════════════════════════════
   BOUTONS
════════════════════════════════════════ */
.blf-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px;
  font-family: var(--font-body); font-weight: 600; font-size: .9rem;
  border-radius: 50px; border: none; cursor: pointer;
  transition: all .22s var(--ease);
  text-decoration: none; letter-spacing: .01em;
  position: relative; overflow: hidden;
}
.blf-btn::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,.12);
  opacity: 0;
  transition: opacity .2s;
}
.blf-btn:hover::after { opacity: 1; }

.blf-btn-primary {
  background: var(--b-purple);
  color: #fff;
  box-shadow: 0 4px 16px rgba(114,104,177,.35);
}
.blf-btn-primary:hover {
  background: var(--b-purple-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(114,104,177,.45);
}

.blf-btn-dark {
  background: var(--b-ink);
  color: var(--b-cream);
  border: 1px solid var(--b-border);
}
.blf-btn-dark:hover { background: var(--b-ink2); transform: translateY(-1px); }

.blf-btn-outline {
  background: transparent;
  color: var(--b-purple);
  border: 1.5px solid var(--b-purple);
}
.blf-btn-outline:hover {
  background: var(--b-purple);
  color: #fff;
}

.blf-btn-ghost {
  background: rgba(255,255,255,.07);
  color: #fff;
  border: 1px solid rgba(255,255,255,.15);
}
.blf-btn-ghost:hover { background: rgba(255,255,255,.14); }

.blf-btn-success { background: var(--b-green); color: #fff; box-shadow: 0 4px 12px rgba(45,158,107,.3); }
.blf-btn-success:hover { filter: brightness(1.1); transform: translateY(-1px); }

.blf-btn-danger { background: var(--b-red); color: #fff; }
.blf-btn-danger:hover { filter: brightness(1.1); }

.blf-btn-accent { background: var(--b-lavender); color: var(--b-ink); font-weight: 700; }
.blf-btn-accent:hover { filter: brightness(.95); transform: translateY(-1px); }

.blf-btn-lg { padding: 15px 36px; font-size: 1rem; }
.blf-btn-sm { padding: 7px 16px; font-size: .8rem; }
.blf-btn:disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }

/* ════════════════════════════════════════
   NOTIFICATION BAR (top)
════════════════════════════════════════ */
.blf-notif-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  padding: 14px 24px;
  background: var(--b-ink);
  color: var(--b-cream);
  font-family: var(--font-body); font-weight: 500; font-size: .9rem;
  text-align: center;
  border-bottom: 2px solid var(--b-purple);
  animation: blf-slide-down .35s var(--ease);
  letter-spacing: .02em;
}
@keyframes blf-slide-down { from { transform: translateY(-100%); } to { transform: translateY(0); } }

/* ════════════════════════════════════════
   CART FAB
════════════════════════════════════════ */
.blf-cart-fab {
  position: fixed; bottom: 32px; right: 32px; z-index: 999;
  width: 64px; height: 64px;
  background: var(--b-ink);
  border: 2px solid var(--b-purple);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; cursor: pointer;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transition: transform .22s var(--ease), box-shadow .22s;
  animation: blf-pop-in .4s var(--ease);
}
@keyframes blf-pop-in { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.blf-cart-fab:hover { transform: scale(1.1) rotate(-5deg); box-shadow: var(--shadow-lg), 0 0 40px rgba(114,104,177,.4); }
.blf-cart-count {
  position: absolute; top: -6px; right: -6px;
  background: var(--b-purple); color: #fff;
  font-size: .65rem; font-weight: 700;
  width: 22px; height: 22px;
  border-radius: 50%; border: 2px solid var(--b-ink);
  display: flex; align-items: center; justify-content: center;
}

/* ════════════════════════════════════════
   PAGE HEADER — RESTAURANTS
════════════════════════════════════════ */
.blf-page-header {
  position: relative;
  background: var(--b-ink);
  color: var(--b-cream);
  padding: 72px 24px 56px;
  text-align: center;
  overflow: hidden;
}
.blf-page-header::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(114,104,177,.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 30%, rgba(232,200,117,.08) 0%, transparent 60%);
}
.blf-page-header::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--b-purple), transparent);
}
.blf-page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 12px;
  position: relative;
}
.blf-page-header h1 em {
  font-style: italic;
  color: var(--b-purple-lt);
}
.blf-page-header p {
  font-size: 1.05rem;
  opacity: .7;
  max-width: 500px;
  margin: 0 auto;
  font-weight: 300;
  position: relative;
}

/* ════════════════════════════════════════
   SEARCH BAR
════════════════════════════════════════ */
.blf-search-bar {
  max-width: 640px;
  margin: -28px auto 40px;
  padding: 0 16px;
  position: relative;
  z-index: 2;
}
.blf-search-input {
  width: 100%;
  padding: 16px 24px 16px 52px;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 50px;
  font-family: var(--font-body); font-size: .95rem;
  color: var(--b-ink);
  box-shadow: var(--shadow-md);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.blf-search-input::placeholder { color: var(--b-muted); }
.blf-search-input:focus {
  border-color: var(--b-purple);
  box-shadow: var(--shadow-md), 0 0 0 4px rgba(114,104,177,.12);
}
.blf-search-bar::before {
  content: '🔍';
  position: absolute; left: 32px; top: 50%;
  transform: translateY(-50%);
  font-size: 1rem; pointer-events: none; z-index: 1;
}

/* ════════════════════════════════════════
   RESTAURANTS GRID
════════════════════════════════════════ */
.blf-restaurants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

.blf-resto-card {
  background: #fff;
  border-radius: var(--r-xl);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--b-border-lt);
  box-shadow: var(--shadow-sm);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
  animation: blf-card-in .5s var(--ease) both;
}
.blf-resto-card:nth-child(1) { animation-delay: .05s; }
.blf-resto-card:nth-child(2) { animation-delay: .10s; }
.blf-resto-card:nth-child(3) { animation-delay: .15s; }
.blf-resto-card:nth-child(4) { animation-delay: .20s; }
.blf-resto-card:nth-child(5) { animation-delay: .25s; }
.blf-resto-card:nth-child(6) { animation-delay: .30s; }
@keyframes blf-card-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.blf-resto-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.blf-resto-card-img {
  width: 100%; height: 200px;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--ease);
}
.blf-resto-card:hover .blf-resto-card-img { transform: scale(1.04); }
.blf-resto-card-img-placeholder {
  height: 200px;
  background: linear-gradient(135deg, var(--b-ink) 0%, var(--b-ink3) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
  position: relative;
  overflow: hidden;
}
.blf-resto-card-img-placeholder::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(114,104,177,.2), transparent 70%);
}

.blf-resto-card-body { padding: 20px 22px 16px; }
.blf-resto-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--b-ink);
}
.blf-resto-card-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: .82rem; color: var(--b-muted); margin-bottom: 10px;
  flex-wrap: wrap;
}
.blf-resto-stars { color: var(--b-lavender); letter-spacing: 1px; }

.blf-resto-badge-open {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--b-green-lt); color: var(--b-green);
  padding: 3px 10px; border-radius: 50px;
  font-size: .74rem; font-weight: 600; letter-spacing: .02em;
}
.blf-resto-badge-close {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--b-red-lt); color: var(--b-red);
  padding: 3px 10px; border-radius: 50px;
  font-size: .74rem; font-weight: 600;
}

.blf-resto-card-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 22px;
  border-top: 1px solid var(--b-border-lt);
  background: var(--b-cream);
}

/* ════════════════════════════════════════
   MODAL
════════════════════════════════════════ */
.blf-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.blf-modal-overlay {
  position: absolute; inset: 0;
  background: rgba(15,14,23,.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.blf-modal-content {
  position: relative; z-index: 1;
  background: #fff;
  border-radius: var(--r-xl);
  width: 100%; max-width: 680px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: blf-modal-in .3s var(--ease);
  scrollbar-width: thin; scrollbar-color: var(--b-cream2) transparent;
}
.blf-modal-content::-webkit-scrollbar { width: 4px; }
.blf-modal-content::-webkit-scrollbar-track { background: transparent; }
.blf-modal-content::-webkit-scrollbar-thumb { background: var(--b-cream2); border-radius: 2px; }
@keyframes blf-modal-in {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.blf-modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 10;
  width: 36px; height: 36px;
  background: var(--b-cream); color: var(--b-ink);
  border: none; border-radius: 50%; cursor: pointer;
  font-size: 1rem; display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
}
.blf-modal-close:hover { background: var(--b-cream2); transform: rotate(90deg); }

/* ════════════════════════════════════════
   MENU MODAL — intérieur
════════════════════════════════════════ */
.blf-menu-modal-content { max-width: 760px; }

.blf-menu-resto-header {
  background: var(--b-ink);
  color: var(--b-cream);
  padding: 36px 28px 28px;
  position: relative; overflow: hidden;
}
.blf-menu-resto-header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 100% at 90% 50%, rgba(114,104,177,.18), transparent);
}
.blf-menu-resto-header h2 {
  font-family: var(--font-display);
  font-size: 1.8rem; font-weight: 800;
  margin-bottom: 8px; position: relative;
}
.blf-menu-resto-meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  font-size: .82rem; opacity: .75;
  position: relative;
}

.blf-menu-categories { padding: 8px 0; }
.blf-menu-cat-title {
  font-family: var(--font-display);
  font-size: .8rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--b-purple);
  padding: 20px 28px 10px;
  border-bottom: 1px solid var(--b-border-lt);
  margin-bottom: 4px;
}

.blf-plat-card {
  display: flex; gap: 0;
  margin: 0 16px 8px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--b-border-lt);
  transition: box-shadow .2s, transform .2s;
}
.blf-plat-card:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }
.blf-plat-img { width: 96px; height: 96px; object-fit: cover; flex-shrink: 0; }
.blf-plat-img-placeholder {
  width: 96px; height: 96px; flex-shrink: 0;
  background: var(--b-cream2);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--b-muted);
}
.blf-plat-info { flex: 1; padding: 14px 16px; display: flex; flex-direction: column; }
.blf-plat-nom {
  font-weight: 600; font-size: .95rem;
  color: var(--b-ink); margin-bottom: 4px;
}
.blf-plat-desc {
  font-size: .8rem; color: var(--b-muted);
  flex: 1; line-height: 1.4;
}
.blf-plat-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px;
}
.blf-plat-prix {
  font-weight: 700; font-size: 1rem; color: var(--b-purple);
  font-family: var(--font-display);
}
.blf-plat-temps { font-size: .74rem; color: var(--b-muted); }

.blf-qty-ctrl {
  display: flex; align-items: center; gap: 8px;
}
.blf-qty-btn {
  width: 30px; height: 30px;
  background: var(--b-ink); color: var(--b-cream);
  border: none; border-radius: 50%; cursor: pointer;
  font-size: 1.1rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .15s;
}
.blf-qty-btn:hover { background: var(--b-purple); transform: scale(1.1); }
.blf-qty-num {
  font-weight: 700; font-size: .95rem; min-width: 20px; text-align: center;
}

/* ════════════════════════════════════════
   CHECKOUT MODAL
════════════════════════════════════════ */
.blf-checkout-modal-content { max-width: 520px; }
.blf-checkout-modal-content h2 {
  font-family: var(--font-display);
  font-size: 1.4rem; padding: 28px 28px 8px;
  border-bottom: 1px solid var(--b-border-lt);
}
.blf-checkout-items { padding: 16px 28px; }
.blf-checkout-item {
  display: flex; justify-content: space-between;
  padding: 8px 0; font-size: .9rem;
  border-bottom: 1px dashed var(--b-border-lt);
}
.blf-checkout-totals { padding: 12px 28px 0; }
.blf-checkout-total-row {
  display: flex; justify-content: space-between;
  padding: 8px 0; font-size: .9rem; color: var(--b-muted);
}
.blf-checkout-total-row.total {
  font-size: 1.1rem; font-weight: 700;
  color: var(--b-ink);
  border-top: 2px solid var(--b-ink);
  margin-top: 4px; padding-top: 14px;
}

/* ════════════════════════════════════════
   FORMULAIRES
════════════════════════════════════════ */
.blf-form-group { margin-bottom: 18px; padding: 0 28px; }
.blf-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.blf-form-group label {
  display: block; font-size: .82rem; font-weight: 600;
  color: var(--b-muted); margin-bottom: 6px;
  letter-spacing: .04em; text-transform: uppercase;
}
.blf-input, .blf-textarea, .blf-select {
  width: 100%; padding: 12px 16px;
  background: var(--b-cream); border: 1.5px solid var(--b-border-lt);
  border-radius: var(--r-md); font-family: var(--font-body); font-size: .93rem;
  color: var(--b-ink); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.blf-input:focus, .blf-textarea:focus, .blf-select:focus {
  border-color: var(--b-purple);
  box-shadow: 0 0 0 3px rgba(114,104,177,.12);
  background: #fff;
}
.blf-textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
.blf-input-file {
  width: 100%; padding: 12px 16px;
  background: var(--b-cream); border: 1.5px dashed var(--b-purple);
  border-radius: var(--r-md); cursor: pointer; font-size: .85rem;
  color: var(--b-muted);
}
.blf-form-actions {
  display: flex; gap: 12px; justify-content: flex-end;
  padding: 20px 28px 28px; border-top: 1px solid var(--b-border-lt);
  margin-top: 8px;
}

/* ════════════════════════════════════════
   PANIER PAGE
════════════════════════════════════════ */
.blf-panier-page {
  max-width: 720px; margin: 0 auto; padding: 40px 20px 80px;
}
.blf-panier-page h1 {
  font-family: var(--font-display);
  font-size: 2rem; margin-bottom: 28px;
}

/* ════════════════════════════════════════
   PAGE SUIVI
════════════════════════════════════════ */
.blf-suivi-page { max-width: 720px; margin: 0 auto; padding: 0 0 80px; }
#blf-suivi-app { min-height: 200px; }

.blf-suivi-card {
  background: #fff;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--b-border-lt);
  margin: 24px 16px;
  animation: blf-card-in .5s var(--ease);
}
.blf-suivi-card-header {
  background: var(--b-ink);
  color: var(--b-cream);
  padding: 28px 28px 24px;
  position: relative; overflow: hidden;
}
.blf-suivi-card-header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 85% 50%, rgba(114,104,177,.2), transparent);
}
.blf-suivi-ref {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 700;
  margin-bottom: 4px; position: relative;
}
.blf-suivi-card-header > div:not(.blf-suivi-ref) {
  font-size: .82rem; opacity: .65; position: relative;
}

.blf-statut-hero {
  display: flex; align-items: center; gap: 20px;
  padding: 28px;
  background: var(--b-cream);
  border-bottom: 1px solid var(--b-border-lt);
}
.blf-statut-icon { font-size: 3rem; line-height: 1; }
.blf-statut-label { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; }

/* Progress track */
.blf-progress-track {
  display: flex; padding: 24px 28px;
  border-bottom: 1px solid var(--b-border-lt);
  position: relative; gap: 0;
}
.blf-progress-track::before {
  content: '';
  position: absolute;
  top: 40px; left: 44px; right: 44px; height: 2px;
  background: var(--b-border-lt);
  z-index: 0;
}
.blf-step {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  opacity: .35; transition: opacity .4s; z-index: 1;
}
.blf-step.done, .blf-step.active { opacity: 1; }
.blf-step-dot {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--b-cream2); border: 2px solid var(--b-border-lt);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700; transition: all .3s;
}
.blf-step.done .blf-step-dot {
  background: var(--b-green); color: #fff; border-color: var(--b-green);
}
.blf-step.active .blf-step-dot {
  background: var(--b-purple); color: #fff; border-color: var(--b-purple);
  box-shadow: 0 0 0 5px rgba(114,104,177,.18);
  animation: blf-step-pulse 2s infinite;
}
@keyframes blf-step-pulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(114,104,177,.18); }
  50%       { box-shadow: 0 0 0 10px rgba(114,104,177,.06); }
}
.blf-step-lbl {
  font-size: .68rem; font-weight: 600; text-align: center;
  letter-spacing: .03em; text-transform: uppercase; color: var(--b-muted);
}
.blf-step.active .blf-step-lbl { color: var(--b-purple); }

/* Commande items */
.blf-commande-items { padding: 20px 28px; border-bottom: 1px solid var(--b-border-lt); }
.blf-commande-items h3 {
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--b-muted); margin-bottom: 14px;
}
.blf-item-row {
  display: flex; justify-content: space-between;
  padding: 8px 0; font-size: .9rem;
  border-bottom: 1px dashed var(--b-border-lt);
}
.blf-item-row:last-child { border: none; }
.blf-commande-total {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 28px; font-weight: 700;
  font-size: 1.1rem; color: var(--b-ink);
}

/* Livreur card */
.blf-livreur-card {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 28px;
  background: var(--b-ink);
  border-bottom: 1px solid var(--b-border-lt);
}
.blf-livreur-avatar-sm {
  width: 48px; height: 48px;
  background: rgba(114,104,177,.2);
  border: 1.5px solid var(--b-purple);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.blf-livreur-info h4 { font-size: .95rem; font-weight: 600; color: var(--b-cream); margin: 0 0 3px; }
.blf-livreur-info p  { font-size: .8rem; color: rgba(250,246,239,.5); margin: 0; }

/* Avis */
.blf-avis-section { padding: 24px 28px; }
.blf-avis-section h3 {
  font-family: var(--font-display);
  font-size: 1.1rem; margin-bottom: 16px;
}
.blf-stars-picker { display: flex; gap: 6px; margin-bottom: 14px; }
.blf-star-btn {
  background: none; border: none; cursor: pointer;
  font-size: 2.2rem; color: var(--b-cream2);
  transition: color .15s, transform .15s;
  padding: 0; line-height: 1;
}
.blf-star-btn:hover { transform: scale(1.25); color: var(--b-lavender); }

/* ════════════════════════════════════════
   PAGE MERCI
════════════════════════════════════════ */
.blf-merci-page {
  min-height: 60vh;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 16px;
  background: var(--b-cream);
}
.blf-merci-card {
  background: #fff; text-align: center;
  max-width: 520px; width: 100%;
  border-radius: var(--r-xl);
  padding: 56px 40px;
  box-shadow: var(--shadow-lg);
  animation: blf-card-in .5s var(--ease);
}
.blf-merci-icon {
  font-size: 4rem; margin-bottom: 16px;
  animation: blf-bounce .6s var(--ease);
}
@keyframes blf-bounce {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}
.blf-merci-card h1 {
  font-family: var(--font-display);
  font-size: 1.8rem; margin-bottom: 12px;
}
.blf-merci-ref { color: var(--b-muted); font-size: .9rem; margin-bottom: 8px; }
.blf-merci-total {
  margin: 20px 0 28px;
  padding: 16px 24px;
  background: var(--b-cream);
  border-radius: var(--r-md);
  font-size: 1.1rem; color: var(--b-ink);
}
.blf-merci-total strong { color: var(--b-purple); font-family: var(--font-display); }

/* ════════════════════════════════════════
   DASHBOARD — HEADER COMMUN
════════════════════════════════════════ */
.blf-dashboard {
  min-height: 100vh;
  background: var(--b-cream);
  font-family: var(--font-body);
}

.blf-dash-header {
  background: var(--b-ink);
  color: var(--b-cream);
  padding: 24px 32px;
  display: flex; justify-content: space-between; align-items: center;
  position: relative; overflow: hidden;
}
.blf-dash-header::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--b-purple) 30%, var(--b-lavender) 70%, transparent);
}
.blf-dash-header-left { display: flex; align-items: center; gap: 18px; }

.blf-resto-avatar {
  width: 56px; height: 56px; border-radius: var(--r-sm);
  object-fit: cover;
  border: 2px solid rgba(114,104,177,.4);
}
.blf-dash-header-left h1 {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 800;
  margin: 0 0 2px;
}
.blf-dash-subtitle {
  font-size: .78rem; opacity: .55;
  letter-spacing: .04em; text-transform: uppercase;
  margin: 0;
}
.blf-dash-header-right { display: flex; align-items: center; gap: 20px; }

/* TABS */
.blf-dash-tabs {
  background: #fff;
  display: flex; gap: 0;
  border-bottom: 1px solid var(--b-border-lt);
  padding: 0 32px;
  overflow-x: auto; scrollbar-width: none;
}
.blf-dash-tabs::-webkit-scrollbar { display: none; }
.blf-tab-btn {
  background: none; border: none; cursor: pointer;
  padding: 16px 20px;
  font-family: var(--font-body); font-size: .85rem; font-weight: 600;
  color: var(--b-muted);
  border-bottom: 3px solid transparent; margin-bottom: -1px;
  transition: color .2s, border-color .2s;
  white-space: nowrap; letter-spacing: .02em;
}
.blf-tab-btn:hover { color: var(--b-purple); }
.blf-tab-btn.active { color: var(--b-purple); border-bottom-color: var(--b-purple); }

.blf-tab-content { padding: 28px 32px; }
.blf-tab-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px;
}
.blf-tab-toolbar h2 {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 700; margin: 0;
}

/* ════════════════════════════════════════
   COMMANDES GRID (restaurant)
════════════════════════════════════════ */
.blf-orders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.blf-order-card {
  background: #fff; border-radius: var(--r-lg);
  border: 1px solid var(--b-border-lt);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  animation: blf-card-in .4s var(--ease) both;
}
.blf-order-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.blf-order-card-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px;
  background: var(--b-ink); color: var(--b-cream);
}
.blf-order-ref {
  font-family: var(--font-display);
  font-weight: 700; font-size: .95rem;
  letter-spacing: .02em;
}
.blf-order-time { font-size: .75rem; opacity: .55; }
.blf-order-card-body { padding: 16px 18px; }
.blf-order-client { font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
.blf-order-items-list { font-size: .82rem; color: var(--b-muted); margin-bottom: 12px; line-height: 1.5; }
.blf-order-total {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.1rem; color: var(--b-purple);
  margin-bottom: 12px;
}
.blf-order-card-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--b-border-lt);
  display: flex; gap: 8px; flex-wrap: wrap;
  background: var(--b-cream);
}

.blf-statut-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 50px;
  font-size: .75rem; font-weight: 600;
  background: var(--b-cream2); color: var(--b-muted);
  letter-spacing: .02em;
}

/* ════════════════════════════════════════
   MENU PLATS (restaurant dashboard)
════════════════════════════════════════ */
.blf-menu-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.blf-menu-plat-card {
  background: #fff; border-radius: var(--r-lg);
  border: 1px solid var(--b-border-lt);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.blf-menu-plat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.blf-menu-plat-img { width: 100%; height: 140px; object-fit: cover; }
.blf-menu-plat-body { padding: 14px; flex: 1; }
.blf-menu-plat-nom { font-weight: 700; font-size: .95rem; margin: 0 0 4px; }
.blf-menu-plat-desc { font-size: .8rem; color: var(--b-muted); margin: 0 0 8px; line-height: 1.4; }
.blf-menu-plat-prix {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1rem; color: var(--b-purple);
}
.blf-menu-plat-footer {
  padding: 10px 14px;
  border-top: 1px solid var(--b-border-lt);
  display: flex; gap: 8px; justify-content: flex-end;
  background: var(--b-cream);
}

/* ════════════════════════════════════════
   MODAL PLAT (restaurant)
════════════════════════════════════════ */
#blf-plat-modal .blf-modal-content { max-width: 560px; }
#blf-plat-modal .blf-modal-content h2 {
  font-family: var(--font-display); font-size: 1.4rem;
  padding: 28px 28px 20px;
  border-bottom: 1px solid var(--b-border-lt);
  margin-bottom: 8px;
}
.blf-photo-preview { margin-top: 8px; }
.blf-photo-preview img { max-height: 100px; border-radius: var(--r-sm); }

/* ════════════════════════════════════════
   LIVREUR DASHBOARD
════════════════════════════════════════ */
.blf-livreur-avatar {
  width: 52px; height: 52px;
  background: rgba(114,104,177,.15);
  border: 2px solid rgba(114,104,177,.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}

.blf-livreur-stats {
  display: flex; gap: 12px;
  padding: 20px 32px;
  background: var(--b-ink2);
}
.blf-lstat {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--b-border);
  border-radius: var(--r-md);
  padding: 14px 20px; text-align: center;
  flex: 1; min-width: 0;
}
.blf-lstat span {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 700;
  color: var(--b-purple);
}
.blf-lstat small { font-size: .75rem; color: rgba(250,246,239,.5); letter-spacing: .04em; text-transform: uppercase; }

.blf-missions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.blf-mission-card {
  background: #fff; border-radius: var(--r-lg);
  border: 1px solid var(--b-border-lt);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  animation: blf-card-in .4s var(--ease) both;
}
.blf-mission-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.blf-mission-card.new {
  border: 2px solid var(--b-purple);
  box-shadow: var(--shadow-sm), 0 0 0 0 rgba(114,104,177,.3);
  animation: blf-card-in .4s var(--ease) both, blf-new-pulse 2s 1s infinite;
}
@keyframes blf-new-pulse {
  0%, 100% { box-shadow: var(--shadow-sm), 0 0 0 0 rgba(114,104,177,.3); }
  50%       { box-shadow: var(--shadow-sm), 0 0 0 8px rgba(114,104,177,.0); }
}

.blf-mission-card-header {
  background: var(--b-ink);
  color: var(--b-cream);
  padding: 16px 20px;
  display: flex; justify-content: space-between; align-items: center;
}
.blf-mission-card-header strong {
  font-family: var(--font-display);
  font-size: 1rem; letter-spacing: .02em;
}
.blf-mission-card-body { padding: 18px 20px; }
.blf-mission-info-row {
  display: flex; gap: 12px; align-items: flex-start;
  margin-bottom: 12px; font-size: .87rem;
}
.blf-mission-info-icon {
  font-size: 1.1rem; flex-shrink: 0; margin-top: 1px;
  width: 28px; height: 28px;
  background: var(--b-cream); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
}
.blf-mission-info-text strong {
  display: block; font-size: .7rem; font-weight: 600;
  color: var(--b-muted); text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: 2px;
}
.blf-mission-card-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--b-border-lt);
  display: flex; gap: 10px;
  background: var(--b-cream);
}

/* ════════════════════════════════════════
   STATUS TOGGLE
════════════════════════════════════════ */
.blf-status-toggle { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: rgba(250,246,239,.75); font-weight: 500; }
.blf-toggle { position: relative; width: 46px; height: 24px; flex-shrink: 0; }
.blf-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.blf-toggle-slider {
  position: absolute; cursor: pointer; inset: 0;
  background: rgba(255,255,255,.15); border-radius: 12px;
  transition: background .3s;
}
.blf-toggle-slider::before {
  content: ''; position: absolute;
  width: 16px; height: 16px; border-radius: 50%;
  left: 4px; top: 4px; background: rgba(255,255,255,.7);
  transition: transform .3s;
}
.blf-toggle input:checked + .blf-toggle-slider { background: var(--b-green); }
.blf-toggle input:checked + .blf-toggle-slider::before {
  background: #fff; transform: translateX(22px);
}

/* ════════════════════════════════════════
   NOTIFICATION BELL
════════════════════════════════════════ */
.blf-notif-bell {
  position: relative; cursor: pointer;
  font-size: 1.3rem; color: rgba(250,246,239,.8);
  user-select: none;
  transition: color .2s;
}
.blf-notif-bell:hover { color: var(--b-purple-lt); }
.blf-notif-badge {
  position: absolute; top: -6px; right: -10px;
  background: var(--b-purple); color: #fff;
  font-size: .6rem; font-weight: 700;
  padding: 2px 5px; border-radius: 10px;
  border: 1.5px solid var(--b-ink);
}

/* ════════════════════════════════════════
   AVIS
════════════════════════════════════════ */
.blf-avis-card {
  background: var(--b-cream);
  border-radius: var(--r-md);
  padding: 14px 16px; margin-bottom: 10px;
  border-left: 3px solid var(--b-purple);
}
.blf-avis-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.blf-avis-stars { color: var(--b-lavender); letter-spacing: 2px; font-size: .9rem; }
.blf-avis-comment { font-size: .85rem; color: var(--b-muted); line-height: 1.5; }

/* ════════════════════════════════════════
   ALERT
════════════════════════════════════════ */
.blf-alert { padding: 16px 20px; border-radius: var(--r-md); margin: 20px; }
.blf-alert-warning { background: #fff8e1; border: 1px solid var(--b-lavender); color: #7d5a00; }

/* ════════════════════════════════════════
   STATUT BADGE COLORS
════════════════════════════════════════ */
.blf-statut-badge[style*="payee"] { background: var(--b-green-lt) !important; color: var(--b-green) !important; }

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 640px) {
  .blf-restaurants-grid { grid-template-columns: 1fr; padding: 0 12px 60px; }
  .blf-orders-grid, .blf-missions-grid, .blf-menu-list { grid-template-columns: 1fr; }
  .blf-form-row { grid-template-columns: 1fr; }
  .blf-tab-content { padding: 20px 16px; }
  .blf-dash-header { padding: 18px 20px; }
  .blf-dash-tabs { padding: 0 16px; }
  .blf-tab-toolbar h2 { font-size: 1.1rem; }
  .blf-progress-track { padding: 16px 12px; }
  .blf-progress-track::before { left: 28px; right: 28px; top: 34px; }
  .blf-step-dot { width: 28px; height: 28px; }
  .blf-step-lbl { font-size: .6rem; }
  .blf-commande-items, .blf-avis-section { padding: 16px 20px; }
  .blf-livreur-stats { padding: 16px 20px; }
  .blf-merci-card { padding: 40px 24px; }
  .blf-form-group { padding: 0 20px; }
  .blf-form-actions { padding: 16px 20px 24px; }
  .blf-cart-fab { bottom: 16px; right: 16px; width: 56px; height: 56px; }
  .blf-checkout-modal-content h2, .blf-checkout-items, .blf-checkout-totals,
  .blf-commande-total { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 400px) {
  .blf-livreur-stats { flex-direction: column; }
  .blf-page-header { padding: 56px 16px 40px; }
}

/* ════════════════════════════════════════
   EMPTY STATES
════════════════════════════════════════ */
.blf-empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--b-muted);
  animation: blf-card-in .4s var(--ease);
}
.blf-empty-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
  opacity: .5;
}
.blf-empty-state p {
  font-weight: 600; font-size: 1rem;
  color: var(--b-ink); margin-bottom: 6px;
}
.blf-empty-state small {
  font-size: .82rem; display: block;
  max-width: 280px; margin: 0 auto;
  line-height: 1.5;
}

/* ════════════════════════════════════════
   ADMIN VIEWS — tables WP améliorées
════════════════════════════════════════ */
.blf-admin-wrap .wp-list-table {
  border-radius: var(--r, 12px);
  overflow: hidden;
  box-shadow: var(--shadow, 0 4px 20px rgba(0,0,0,.1));
  border: 1px solid var(--ba-border, #e8e2d9);
}

/* Dashboard aliases */
.blf-resto-dashboard,
.blf-livreur-dashboard { /* inherits .blf-dashboard */ }

/* ════════════════════════════════════════
   LOGO RESTAURANT — Carte client
════════════════════════════════════════ */
.blf-resto-card-img-wrap { position: relative; }
.blf-resto-card-header-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.blf-resto-card-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid var(--b-border-lt);
  flex-shrink: 0;
}
.blf-resto-card-logo-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--b-cream2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ════════════════════════════════════════
   PROFIL RESTAURANT — Onglet logo
════════════════════════════════════════ */
.blf-profil-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 700px) { .blf-profil-grid { grid-template-columns: 1fr; } }

.blf-profil-card {
  background: #fff;
  border: 1px solid var(--b-border-lt);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.blf-profil-card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--b-ink);
}
.blf-profil-card-desc {
  font-size: .84rem;
  color: var(--b-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}
.blf-logo-current {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  padding: 16px;
  background: var(--b-cream);
  border-radius: var(--r-md);
}
.blf-logo-current img {
  max-height: 90px;
  border-radius: 10px;
  border: 2px solid var(--b-border-lt);
}
.blf-logo-label { font-size: .78rem; color: var(--b-muted); font-weight: 500; }
.blf-logo-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--b-muted); font-size: .85rem;
}
.blf-logo-placeholder span { font-size: 2rem; }

.blf-logo-upload-zone {
  border: 2px dashed var(--b-border-lt);
  border-radius: var(--r-md);
  padding: 16px;
  text-align: center;
  transition: border-color .2s, background .2s;
}
.blf-logo-upload-zone:hover { border-color: var(--b-purple); background: #f6f4ff; }
#blf-logo-input { display: none; }
.blf-logo-upload-label {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  cursor: pointer;
}
.blf-logo-upload-icon { font-size: 1.6rem; }
.blf-logo-upload-text { font-size: .9rem; font-weight: 600; color: var(--b-ink); }
.blf-logo-upload-hint { font-size: .76rem; color: var(--b-muted); }
.blf-logo-new-preview { margin-top: 10px; }
.blf-logo-msg { margin-top: 10px; font-size: .88rem; font-weight: 500; }

.blf-profil-info-list { display: flex; flex-direction: column; gap: 0; }
.blf-profil-info-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--b-border-lt);
  font-size: .88rem;
}
.blf-profil-info-item:last-child { border-bottom: none; }
.blf-profil-info-label { color: var(--b-muted); font-weight: 500; flex-shrink: 0; }
.blf-profil-info-value { color: var(--b-ink); font-weight: 500; text-align: right; }

/* ════════════════════════════════════════
   SETUP PENDING
════════════════════════════════════════ */
.blf-setup-pending {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  padding: 40px 24px;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}
.blf-setup-pending-icon { font-size: 4rem; margin-bottom: 20px; }
.blf-setup-pending h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: var(--b-ink);
}
.blf-setup-pending p { color: var(--b-muted); line-height: 1.6; }

/* =====================================================================
   Section Paiement — Dashboard Livreur
   ===================================================================== */
.blf-paiement-info-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: linear-gradient(135deg, rgba(114,104,177,.18), rgba(114,104,177,.06));
  border: 1px solid rgba(114,104,177,.35);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 20px 0 24px;
}
.blf-paiement-info-icon { font-size: 1.8rem; line-height: 1; }
.blf-paiement-info-banner strong { display: block; color: #7268b1; font-size: 1rem; margin-bottom: 4px; }
.blf-paiement-info-banner p { margin: 0; font-size: .88rem; color: #aaa; }

.blf-paiement-mode-selector {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
}
.blf-mode-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 12px;
  background: rgba(255,255,255,.04);
  border: 2px solid rgba(255,255,255,.1);
  border-radius: 12px;
  color: #ccc;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.blf-mode-btn .blf-mode-icon { font-size: 1.8rem; }
.blf-mode-btn:hover { border-color: #7268b1; color: #fff; }
.blf-mode-btn.active { border-color: #7268b1; background: rgba(114,104,177,.18); color: #fff; }

.blf-paiement-form {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 24px;
}
.blf-form-group { margin-bottom: 18px; }
.blf-form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: #bbb;
  margin-bottom: 7px;
}
.blf-form-input {
  width: 100%;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 10px 14px;
  color: #fff;
  font-size: .95rem;
  box-sizing: border-box;
  transition: border-color .2s;
}
.blf-form-input:focus { outline: none; border-color: #7268b1; background: rgba(255,255,255,.1); }
.blf-form-input::placeholder { color: rgba(255,255,255,.3); }
.blf-form-group small { display: block; margin-top: 5px; font-size: .78rem; color: #888; }

.blf-paiement-saved {
  margin-top: 16px;
  padding: 12px 18px;
  background: rgba(39,174,96,.15);
  border: 1px solid rgba(39,174,96,.4);
  border-radius: 8px;
  color: #2ecc71;
  font-weight: 600;
  font-size: .9rem;
}
