/* yadiyar-afrik admin (D5b1) — dark theme dashboard pro vitrona */
body.admin { background: #0a0a0a; color: #e8e8e8; min-height: 100vh; padding-bottom: 60px; }

.admin-header { background: #050505; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,.08); position: sticky; top: 0; z-index: 100; }
.admin-logo { color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; }
.admin-avatar { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; text-decoration: none; }

.admin-main { max-width: 480px; margin: 0 auto; padding: 16px; }

/* Nav bottom */
.admin-nav { position: fixed; bottom: 0; left: 0; right: 0; background: #050505; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-around; padding: 6px 0; z-index: 100; }
.admin-nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; color: rgba(255,255,255,.4); text-decoration: none; font-size: 11px; }
.admin-nav-item .ni-ico { font-size: 16px; }
.admin-nav-item.on { color: #FFA500; }
.admin-nav-item.on::before { content: ''; position: absolute; top: 0; width: 36px; height: 2px; background: #FFA500; border-radius: 0 0 2px 2px; }

/* KPIs */
.admin-section-title { font-size: 18px; font-weight: 700; margin-bottom: 12px; color: #fff; }
.admin-kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.admin-kpi { background: linear-gradient(145deg, #1a1a1a, #111); border: 1px solid rgba(255,255,255,.06); border-radius: 12px; padding: 12px; }
.admin-kpi.primary { background: linear-gradient(145deg, #FFA500, #cc8400); color: #1a1a1a; }
.admin-kpi.green { background: linear-gradient(145deg, #0F6E56, #0a5242); }
.admin-kpi.blue { background: linear-gradient(145deg, #1565C0, #0d4a8a); }
.admin-kpi-label { font-size: 11px; opacity: .7; text-transform: uppercase; letter-spacing: .5px; }
.admin-kpi-value { font-size: 24px; font-weight: 700; margin-top: 4px; }
.admin-kpi-sub { font-size: 11px; opacity: .6; margin-top: 2px; }

/* Cards actions */
.admin-card-list { display: flex; flex-direction: column; gap: 8px; }
.admin-card { background: #1a1a1a; border: 1px solid rgba(255,255,255,.06); border-radius: 12px; padding: 12px; display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.admin-card:active { transform: scale(.98); }
.admin-card-ico { font-size: 24px; }
.admin-card-body { flex: 1; }
.admin-card-title { font-weight: 600; font-size: 14px; color: #fff; }
.admin-card-sub { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 2px; }
.admin-card-arrow { color: rgba(255,255,255,.3); }

/* Forms admin */
.admin-form { background: #1a1a1a; border-radius: 12px; padding: 16px; }
.admin-form .form-row label { color: rgba(255,255,255,.7); }
.admin-form .form-row input, .admin-form .form-row textarea, .admin-form .form-row select {
  background: #0a0a0a; color: #fff; border-color: rgba(255,255,255,.1);
}
.admin-form .form-row input:focus, .admin-form .form-row textarea:focus { outline-color: #FFA500; }

/* Catalogue admin liste */
.admin-articles { display: flex; flex-direction: column; gap: 8px; }
.admin-article { background: #1a1a1a; border-radius: 12px; padding: 10px; display: flex; gap: 10px; align-items: center; }
.admin-article-img { width: 56px; height: 56px; border-radius: 8px; background: #333 url(/static/article-placeholder.svg) center/cover; flex-shrink: 0; }
.admin-article-body { flex: 1; min-width: 0; }
.admin-article-name { font-weight: 600; color: #fff; font-size: 14px; }
.admin-article-meta { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 2px; }
.admin-article-status.actif { color: #25D366; }
.admin-article-status.brouillon { color: #FFA500; }
.admin-article-edit { padding: 6px 12px; background: rgba(255,165,0,.2); border: 1px solid rgba(255,165,0,.4); border-radius: 8px; color: #FFA500; font-size: 12px; text-decoration: none; }

/* Factures liste */
.admin-facture { background: #1a1a1a; border-radius: 12px; padding: 12px; margin-bottom: 8px; }
.admin-facture-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.admin-facture-num { font-weight: 700; color: #fff; }
.admin-facture-statut { font-size: 11px; padding: 3px 8px; border-radius: 6px; font-weight: 600; }
.admin-facture-statut.proforma { background: rgba(255,165,0,.2); color: #FFA500; }
.admin-facture-statut.validee { background: rgba(15,110,86,.3); color: #25D366; }
.admin-facture-meta { font-size: 12px; color: rgba(255,255,255,.5); }
.admin-facture-actions { margin-top: 10px; display: flex; gap: 6px; }
.btn-valider { flex: 1; padding: 8px; background: #0F6E56; color: #fff; border: none; border-radius: 8px; cursor: pointer; font-weight: 600; }

/* Boutons admin */
.btn-action { padding: 10px 16px; background: #FFA500; color: #1a1a1a; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; }
.btn-secondary-dark { padding: 10px 16px; background: rgba(255,255,255,.06); color: #fff; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; cursor: pointer; }

/* =============================================================================
 * V2.0 — Refonte layout admin nav 2 niveaux + hub 12 cards (Ronde 31a)
 * Palette dark fidèle aux maquettes 4_* (ph #f5f4f0 content + #0a0a0a header/nav).
 * ============================================================================= */

/* Body refonte : content area light beige (#f5f4f0) avec header+nav dark */
body.admin-v2 { background: #f5f4f0; color: #1a1a1a; min-height: 100vh; padding-bottom: 60px; }
body.admin-v2 .admin-header { background: #0a0a0a; padding: 14px 16px 10px; gap: 10px; border-bottom: .5px solid rgba(255,255,255,.08); }
body.admin-v2 .admin-header-left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
body.admin-v2 .admin-back { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; cursor: pointer; }
body.admin-v2 .admin-hdr-title { font-size: 14px; font-weight: 600; color: #fff; line-height: 1.2; }
body.admin-v2 .admin-breadcrumb { font-size: 9px; color: rgba(255,255,255,.25); margin-top: 1px; }
body.admin-v2 .admin-hdr-counter { background: rgba(255,255,255,.08); font-size: 11px; color: rgba(255,255,255,.6); padding: 3px 9px; border-radius: 10px; }
body.admin-v2 .admin-main { background: #f5f4f0; padding: 10px 12px; max-width: 480px; }

/* Page intro */
.page-intro { margin-bottom: 10px; }
.page-title { font-size: 14px; font-weight: 700; color: #1a1a1a; letter-spacing: -0.3px; }
.page-sub { font-size: 9px; color: #999; margin-top: 2px; line-height: 1.4; }

/* Loc-card avec mini-map Leaflet */
.loc-card { background: #fff; border: .5px solid #e8e6e0; border-radius: 13px; overflow: hidden; margin-bottom: 10px; position: relative; }
.loc-map { width: 100%; height: 120px; }
.loc-body { padding: 8px 12px; display: flex; align-items: center; gap: 8px; }
.loc-icon { width: 26px; height: 26px; border-radius: 8px; background: rgba(15,110,86,.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #0F6E56; }
.loc-info { flex: 1; min-width: 0; }
.loc-title { font-size: 10px; font-weight: 700; color: #1a1a1a; line-height: 1.3; }
.loc-sub { font-size: 8.5px; color: #999; margin-top: 1px; }
.loc-edit { padding: 5px 10px; border-radius: 8px; background: #0F6E56; color: #E1F5EE; font-size: 9px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 4px; flex-shrink: 0; text-decoration: none; }

/* Jetons-card pleine largeur */
.jetons-card { background: linear-gradient(135deg, #0a0a0a 0%, #0F6E56 55%, #E6850A 130%); border-radius: 14px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; cursor: pointer; transition: transform .15s; position: relative; overflow: hidden; margin-bottom: 8px; text-decoration: none; }
.jetons-card:active { transform: scale(.98); }
.jetons-card::before { content: ''; position: absolute; width: 140px; height: 140px; border-radius: 50%; background: rgba(255,255,255,.06); top: -40px; right: -30px; pointer-events: none; }
.jetons-card::after { content: ''; position: absolute; width: 70px; height: 70px; border-radius: 50%; background: rgba(230,133,10,.22); bottom: -25px; right: 40px; pointer-events: none; filter: blur(12px); }
.jetons-coin { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(145deg, #FFB84D, #E6850A); display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 10px rgba(230,133,10,.45); border: 1.5px solid rgba(255,230,180,.4); flex-shrink: 0; position: relative; z-index: 1; color: #3a1f00; font-weight: 700; font-size: 13px; }
.jetons-body { flex: 1; min-width: 0; position: relative; z-index: 1; }
.jetons-title { font-size: 12.5px; font-weight: 700; color: #fff; letter-spacing: -0.2px; display: flex; align-items: center; gap: 6px; }
.jetons-badge { font-size: 7.5px; font-weight: 700; padding: 2px 6px; border-radius: 5px; background: #E6850A; color: #fff; text-transform: uppercase; letter-spacing: .5px; }
.jetons-sub { font-size: 9px; color: rgba(255,255,255,.7); margin-top: 3px; line-height: 1.35; }
.jetons-solde-row { display: flex; align-items: baseline; gap: 3px; margin-top: 5px; }
.jetons-solde-val { font-size: 13px; font-weight: 700; color: #FFC870; }
.jetons-solde-unit { font-size: 8.5px; color: rgba(255,255,255,.55); }
.jetons-solde-sep { color: rgba(255,255,255,.3); margin: 0 4px; font-size: 9px; }
.jetons-solde-abo { font-size: 9px; color: rgba(255,255,255,.65); font-weight: 500; }
.jetons-arrow { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.15); border: .5px solid rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; z-index: 1; color: #fff; }

/* Grille hub V2.0 — 2 colonnes big-cards */
.hub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 6px; }
.big-card { border-radius: 13px; padding: 9px 10px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; transition: transform .15s; position: relative; overflow: hidden; min-height: 90px; text-decoration: none; }
.big-card:active { transform: scale(.97); }
.big-card::before { content: ''; position: absolute; width: 70px; height: 70px; border-radius: 50%; background: rgba(255,255,255,.04); top: -15px; right: -15px; pointer-events: none; }
.big-card .card-icon-wrap { width: 32px; height: 32px; border-radius: 9px; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px; }
.big-card .card-title { font-size: 12px; font-weight: 700; color: #fff; letter-spacing: -0.2px; line-height: 1.2; }
.big-card .card-desc { font-size: 8.5px; color: rgba(255,255,255,.55); line-height: 1.4; flex: 1; }
.big-card .card-arrow { display: flex; align-items: center; justify-content: flex-end; margin-top: auto; }
.big-card .card-arrow-circle { width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; color: #fff; }

/* 12 gradients par fonction (palette fidèle maquettes 4_*) */
.big-card.catalogue { background: linear-gradient(145deg, #0F6E56, #0a5242); }
.big-card.stock { background: linear-gradient(145deg, #7B3FA0, #5a2d78); }
.big-card.proforma { background: linear-gradient(145deg, #2d5a27, #1a3a16); }
.big-card.suivi { background: linear-gradient(145deg, #0d7a8a, #085f6d); }
.big-card.vue3d { background: linear-gradient(145deg, #1a1a2e, #0d0d1f); }
.big-card.repere { background: linear-gradient(145deg, #b5451b, #8a3213); }
.big-card.vendeur { background: linear-gradient(145deg, #1565C0, #0d4a8a); }
.big-card.privacy { background: linear-gradient(145deg, #37474F, #1c2a30); }
.big-card.chaine { background: linear-gradient(145deg, #b91c1c, #7f1d1d); }
.big-card.profil { background: linear-gradient(145deg, #4a1942, #2d0f28); }
.big-card.commentaires { background: linear-gradient(145deg, #7B3FA0, #5a2d78); }
.big-card.dons { background: linear-gradient(145deg, #E11D48, #BE123C); }
.big-card.validation { background: linear-gradient(145deg, #E6850A, #b5620a); }
.big-card.edition { background: linear-gradient(145deg, #37474F, #1c2a30); }

/* Nav globale haut (uniquement hub /admin/) — 4 onglets Vitrona/Vidéo/Photo/Pro */
.admin-global-nav { background: #0a0a0a; height: 44px; display: flex; align-items: center; justify-content: space-around; border-top: .5px solid rgba(255,255,255,.05); border-bottom: .5px solid rgba(255,255,255,.08); }
.admin-global-nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; color: rgba(255,255,255,.3); font-size: 9px; text-decoration: none; position: relative; }
.admin-global-nav-item .gn-ico { font-size: 14px; }
.admin-global-nav-item.on { color: #0F6E56; font-weight: 500; }
.admin-global-nav-item.on::before { content: ''; position: absolute; bottom: -1px; left: 22%; right: 22%; height: 2px; background: #0F6E56; border-radius: 2px 2px 0 0; }

/* Nav interne contextuelle bottom — 4 onglets configurables via .InnerNav */
.admin-inner-nav { position: fixed; bottom: 0; left: 0; right: 0; height: 54px; background: #0a0a0a; border-top: .5px solid rgba(255,255,255,.08); display: flex; align-items: center; z-index: 100; }
.admin-inner-nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; position: relative; cursor: pointer; color: rgba(255,255,255,.3); font-size: 9px; text-decoration: none; }
.admin-inner-nav-item .iv-ico { font-size: 14px; }
.admin-inner-nav-item.on { color: #0F6E56; font-weight: 500; }
.admin-inner-nav-item.on::before { content: ''; position: absolute; top: -1px; left: 22%; right: 22%; height: 2px; background: #0F6E56; border-radius: 0 0 2px 2px; }

/* Hero section pages 4_* (header dark sur sous-pages V2) */
.admin-hero { background: #0a0a0a; padding: 14px 16px; color: #fff; display: flex; align-items: center; gap: 8px; }
.admin-hero-title { font-size: 14px; font-weight: 600; }
.admin-hero-counter { margin-left: auto; background: #FFA500; color: #0a0a0a; font-size: 10px; padding: 3px 9px; border-radius: 10px; font-weight: 700; }

/* Cards V2.0 communes (light theme content area) */
.v2-card { background: #fff; border: .5px solid #e8e6e0; border-radius: 11px; padding: 11px 12px; margin-bottom: 9px; }
.v2-card.danger { border-color: #fca5a5; }
.v2-card-row { display: flex; align-items: center; gap: 10px; }
.v2-avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 14px; flex-shrink: 0; background: linear-gradient(135deg, #1e40af, #7c3aed); }
.v2-avatar.danger { background: #fee2e2; color: #991b1b; }
.v2-body { flex: 1; min-width: 0; }
.v2-name { font-size: 12px; font-weight: 600; color: #0a0a0a; }
.v2-meta { font-size: 9.5px; color: #888; margin-top: 2px; line-height: 1.3; }

/* Boutons V2.0 (light theme) */
.btn-v2-acc { background: #16a34a; color: #fff; border: none; padding: 8px 14px; border-radius: 7px; font-size: 11px; font-weight: 700; cursor: pointer; font-family: inherit; }
.btn-v2-ref { background: #fee2e2; color: #991b1b; border: none; padding: 8px 14px; border-radius: 7px; font-size: 11px; font-weight: 600; cursor: pointer; font-family: inherit; }
.btn-v2-pri { background: #0F6E56; color: #fff; border: none; padding: 11px; border-radius: 10px; font-size: 13px; font-weight: 700; cursor: pointer; width: 100%; font-family: inherit; }
.btn-v2-orange { background: #FFA500; color: #0a0a0a; border: none; padding: 6px 11px; border-radius: 7px; font-size: 10px; font-weight: 700; cursor: pointer; flex-shrink: 0; font-family: inherit; }
.btn-v2-gris { background: #dcfce7; color: #15803d; border: none; padding: 5px 10px; border-radius: 6px; font-size: 10px; font-weight: 600; cursor: pointer; font-family: inherit; }

/* Filtres pills */
.v2-filters { padding: 10px 12px 0; display: flex; gap: 6px; overflow-x: auto; }
.v2-filter-pill { flex-shrink: 0; font-size: 10px; padding: 5px 12px; border-radius: 14px; background: #fff; border: .5px solid #e0e0e0; color: #666; font-weight: 500; cursor: pointer; }
.v2-filter-pill.on { background: #0F6E56; color: #fff; border-color: #0F6E56; }

/* Section title (light theme) */
.v2-section-title { font-size: 11px; font-weight: 600; color: #666; text-transform: uppercase; letter-spacing: 1px; margin: 14px 0 8px; padding: 0 4px; }

/* Type badges (visiteurs) */
.v2-type-badge { display: inline-block; padding: 1px 6px; border-radius: 4px; font-weight: 600; font-size: 9px; margin-right: 4px; }
.v2-type-badge.profil { background: #dbeafe; color: #1e40af; }
.v2-type-badge.catalogue { background: #fce7f3; color: #9d174d; }
.v2-type-badge.visite_360 { background: #dcfce7; color: #166534; }
.v2-type-badge.article { background: #fef3c7; color: #92400e; }

/* Hero variant rouge (blocklist) */
.admin-hero.danger { background: #7f1d1d; }

/* Intro card (callout vert ou bleu) */
.v2-callout { font-size: 10.5px; color: #666; line-height: 1.5; padding: 9px 11px; border-radius: 8px; margin-bottom: 12px; border: .5px solid; }
.v2-callout.green { background: #dcfce7; border-color: #86efac; color: #15803d; }
.v2-callout.blue { background: #dbeafe; border-color: #93c5fd; color: #1e40af; }
.v2-callout.amber { background: rgba(255,165,0,.1); border-color: rgba(255,165,0,.3); color: #92400e; }
.v2-callout b { font-weight: 700; }
