/* FOOTPASS Messenger v2 · app shell : accueil, messages, menu, agenda, appels, tab bar
   Thème : Modern Black brand (cohérent onboarding), accent vert --acc */

.hm {
  position: absolute; inset: 0; z-index: 40;
  background: #050506; color: #FAFAFA;
  display: flex; flex-direction: column;
  font-family: 'Inter', sans-serif;
  animation: hmIn 320ms cubic-bezier(0.2, 0, 0, 1);
}
@keyframes hmIn { from { opacity: 0; } }

.hm-page { flex: 1; display: flex; flex-direction: column; min-height: 0; position: relative; }
.hm-scroll { flex: 1; overflow-y: auto; min-height: 0; padding: 0 18px 14px; }
.hm-scroll::-webkit-scrollbar { display: none; }

/* ═══ En-têtes ═══ */
.hm-apphead {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 18px 6px;
}
.hm-logo { height: 13px; width: auto; display: block; opacity: 0.95; }
.hm-apphead-actions { display: flex; align-items: center; gap: 10px; }
.hm-iconbtn {
  position: relative; width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #131316; border: 1px solid rgba(255,255,255,0.09);
  color: #D4D4D8; cursor: pointer;
}
.hm-iconbtn.plain { background: none; border: none; color: var(--acc-bright, #00C49A); }
.hm-dot {
  position: absolute; top: 7px; right: 8px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--acc-bright, #00C49A);
  border: 2px solid #050506;
}
.hm-avatarbtn {
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer; overflow: hidden; padding: 0;
  background: linear-gradient(150deg, #2A2A30, #17171A);
  border: 1px solid rgba(255,255,255,0.13);
  font: 700 12px/1 'Inter', sans-serif; color: #FAFAFA;
}
.hm-avatarbtn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-pagehead {
  display: flex; align-items: center; justify-content: space-between;
  padding: 2px 18px 6px;
}
.hm-h1 {
  margin: 0; font: 800 26px/1.1 'Inter', sans-serif; letter-spacing: -0.03em;
}
.hm-scroll .hm-h1 { margin: 8px 0 14px; }

/* ═══ Pass status (or) ═══ */
.hm-pass {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; margin-bottom: 18px;
  border-radius: 15px; cursor: pointer; text-align: left;
  background: linear-gradient(140deg, #1A1610, #0E0C08);
  border: 1px solid rgba(212, 175, 55, 0.35);
}
.hm-pass-ic {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(212, 175, 55, 0.12); color: #E2C57B;
}
.hm-pass-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hm-pass-txt b { font: 700 11px/1 'Orbitron', sans-serif; letter-spacing: 0.14em; color: #E8C96A; }
.hm-pass-txt em { font: 500 11.5px/1.3 'SF Mono', ui-monospace, monospace; font-style: normal; color: #9C8F6E; }
.hm-pass-chev { color: #7A6F55; }

/* ═══ Sections & cartes ═══ */
.hm-sechead {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 4px 2px 8px;
}
.hm-sechead span {
  font: 700 10.5px/1 'Inter', sans-serif; letter-spacing: 0.14em; text-transform: uppercase;
  color: #71717A; white-space: nowrap;
}
.hm-seclink {
  background: none; border: none; padding: 0; cursor: pointer;
  font: 600 11.5px/1 'Inter', sans-serif; color: var(--acc-bright, #00C49A);
}
.hm-cardlist {
  border-radius: 16px; overflow: hidden; margin-bottom: 18px;
  background: #101013; border: 1px solid rgba(255,255,255,0.07);
}
.hm-row {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; min-height: 56px;
  background: none; border: none; cursor: pointer; text-align: left; color: inherit;
}
.hm-row + .hm-row, .hm-row + .hm-event, .hm-event + .hm-event, .hm-event + .hm-row,
.hm-row.static + .hm-row.static { border-top: 1px solid rgba(255,255,255,0.06); }
.hm-row:active { background: rgba(255,255,255,0.04); }
.hm-row.static { cursor: default; }
.hm-row-ic {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06); color: #D4D4D8;
}
.hm-row-ic.amber { background: rgba(226, 178, 72, 0.12); color: #E2B248; }
.hm-row-ic.green { background: color-mix(in srgb, var(--acc-bright, #00C49A) 13%, transparent); color: var(--acc-bright, #00C49A); }
.hm-row-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hm-row-txt b {
  font: 650 13.5px/1.25 'Inter', sans-serif; color: #FAFAFA;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hm-row-txt b.missed { color: #F26D6D; }
.hm-row-txt em {
  font: 400 11.5px/1.35 'Inter', sans-serif; font-style: normal; color: #8E8E96;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: flex; align-items: center; gap: 5px;
}
.hm-time { font: 500 11px/1 'Inter', sans-serif; color: #71717A; flex-shrink: 0; }
.hm-unread {
  flex-shrink: 0; min-width: 19px; height: 19px; border-radius: 99px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--acc-bright, #00C49A); color: #04130E;
  font: 700 10.5px/1 'Inter', sans-serif;
}
.hm-verif { color: var(--acc-bright, #00C49A) !important; }
.hm-calldir { display: inline-flex; color: var(--acc-bright, #00C49A); }
.hm-calldir.missed { color: #F26D6D; }

/* ═══ Avatars ═══ */
.hm-avatar {
  border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, #2A2A30, #17171A);
  border: 1px solid rgba(255,255,255,0.12);
  font-weight: 700; color: #EDEDF0;
}
.hm-avatar.big { width: 52px; height: 52px; font-size: 17px; }
.hm-avatar { overflow: hidden; }
.hm-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-profile {
  width: 100%; display: flex; align-items: center; gap: 13px;
  padding: 14px; margin-bottom: 18px; border-radius: 16px; cursor: pointer; text-align: left;
  background: #101013; border: 1px solid rgba(255,255,255,0.07); color: inherit;
}
.hm-profile .hm-row-txt b { font-size: 15.5px; }

/* ═══ Messages · liste ═══ */
.hm-search {
  display: flex; align-items: center; gap: 8px;
  margin: 0 18px 8px; padding: 0 11px; height: 34px; border-radius: 10px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
  font: 400 12.5px/1 'Inter', sans-serif; color: #6B6B73;
}
.hm-search svg { width: 15px; height: 15px; opacity: 0.8; }
.hm-convos {
  border-radius: 16px; overflow: hidden;
  background: #101013; border: 1px solid rgba(255,255,255,0.07);
}
.hm-convo {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; background: none; border: none; cursor: pointer; text-align: left; color: inherit;
}
.hm-convo + .hm-convo { border-top: 1px solid rgba(255,255,255,0.06); }
.hm-convo:active { background: rgba(255,255,255,0.04); }
.hm-convo-av { position: relative; flex-shrink: 0; }
.hm-online {
  position: absolute; right: 1px; bottom: 1px; width: 11px; height: 11px;
  border-radius: 50%; background: var(--acc-bright, #00C49A); border: 2.5px solid #101013;
}
.hm-convo-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hm-convo-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.hm-convo-top b { font: 650 14px/1.3 'Inter', sans-serif; color: #FAFAFA; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-convo-time { flex-shrink: 0; font: 500 10.5px/1 'Inter', sans-serif; color: #71717A; }
.hm-convo-time.acc { color: var(--acc-bright, #00C49A); font-weight: 700; }
.hm-convo-id {
  display: flex; align-items: center; gap: 5px;
  font: 500 11px/1.35 'Inter', sans-serif; color: #C7C7CF;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hm-convo-id svg { flex-shrink: 0; }
.hm-convo-prev { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 3px; }
.hm-convo-prev em {
  font: 400 12px/1.35 'Inter', sans-serif; font-style: normal; color: #7B7B83;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hm-listfoot {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 14px; font: 400 10.5px/1.4 'Inter', sans-serif; color: #5E5E66;
}
.hm-listfoot svg { color: var(--acc, #00A37E); }

/* ═══ Agenda ═══ */
.hm-event {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; background: none; border: none; cursor: pointer; text-align: left; color: inherit;
}
.hm-event:active { background: rgba(255,255,255,0.04); }
.hm-event-when {
  width: 46px; flex-shrink: 0; display: flex; flex-direction: column; gap: 1px;
  align-items: center; padding: 7px 0; border-radius: 10px;
  background: rgba(255,255,255,0.05);
}
.hm-event-when b { font: 700 12.5px/1 'Inter', sans-serif; color: #FAFAFA; }
.hm-event-when em { font: 500 9.5px/1 'Inter', sans-serif; font-style: normal; color: #8E8E96; }
.hm-event-tag {
  flex-shrink: 0; padding: 4px 8px; border-radius: 99px;
  font: 600 9.5px/1 'Inter', sans-serif; letter-spacing: 0.03em;
  background: rgba(255,255,255,0.07); color: #A1A1AA;
}
.hm-event-tag.ok {
  background: color-mix(in srgb, var(--acc-bright, #00C49A) 14%, transparent);
  color: var(--acc-bright, #00C49A);
}

/* ═══ Tab bar ═══ */
.hm-tabbar {
  flex-shrink: 0; display: flex; align-items: stretch;
  height: 70px; box-sizing: border-box;
  padding: 6px 8px calc(14px + 8px);
  background: rgba(10, 10, 12, 0.92);
  border-top: 1px solid rgba(255,255,255,0.07);
  backdrop-filter: blur(18px);
}
.hm-tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 5px 0 2px; background: none; border: none; cursor: pointer;
  color: #6E6E76;
}
.hm-tab.on { color: var(--acc-bright, #00C49A); }
.hm-tab-ic { position: relative; display: flex; }
.hm-tab-badge {
  position: absolute; top: -4px; right: -9px;
  min-width: 16px; height: 16px; border-radius: 99px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
  background: var(--acc-bright, #00C49A); color: #04130E;
  font: 700 9.5px/1 'Inter', sans-serif;
  border: 2px solid #0A0A0C;
}
.hm-tab-lbl { font: 600 9.5px/1 'Inter', sans-serif; letter-spacing: 0.02em; }

/* ═══ Menu : déconnexion + version ═══ */
.hm-logout {
  display: flex; align-items: center; gap: 8px; margin: 4px auto 8px;
  padding: 11px 18px; border-radius: 99px;
  background: rgba(242, 109, 109, 0.08); border: none; cursor: pointer;
  font: 600 12.5px/1 'Inter', sans-serif; color: #F26D6D;
}
.hm-version { text-align: center; font: 400 10px/1.4 'Inter', sans-serif; color: #5E5E66; padding-bottom: 10px; }

/* ═══ Toast ═══ */
.hm-toast {
  position: absolute; left: 50%; bottom: 92px; transform: translateX(-50%);
  white-space: nowrap; padding: 10px 16px; border-radius: 99px;
  background: rgba(28, 28, 32, 0.96); border: 1px solid rgba(255,255,255,0.12);
  font: 500 11.5px/1 'Inter', sans-serif; color: #EDEDF0;
  animation: hmIn 200ms; z-index: 5;
}

/* ═══ Filtres de la liste Messages (chips dynamiques + sous-filtres) ═══ */
.hm-filters { flex-shrink: 0; }
.hm-chips {
  display: flex; align-items: center; gap: 7px;
  padding: 2px 18px 8px; overflow-x: auto; scrollbar-width: none;
}
.hm-chips::-webkit-scrollbar { display: none; }
.hm-chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 13px; flex-shrink: 0; cursor: pointer; white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.15); border-radius: 999px; background: transparent;
  color: #C7C7CF; font: 550 12.5px/1 'Inter', sans-serif; letter-spacing: -0.01em;
  transition: transform 120ms, background 150ms, border-color 150ms;
}
.hm-chip:active { transform: scale(0.96); }
.hm-chip.on { background: #FAFAFA; border-color: #FAFAFA; color: #0F0F10; }
.hm-chip-badge {
  min-width: 17px; height: 17px; padding: 0 5px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--acc-bright, #00C49A); color: #04130E;
  font: 700 10px/1 'Inter', sans-serif;
}
.hm-chip.on .hm-chip-badge { background: var(--acc, #00A37E); color: #FFFFFF; }
.hm-chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--acc-bright, #00C49A); flex-shrink: 0; }
.hm-chip.on .hm-chip-dot { background: var(--acc, #00A37E); }
.hm-chip.add { border-style: dashed; color: #9A9AA2; gap: 4px; }
.hm-chip.add:active { background: rgba(255,255,255,0.04); }
.hm-chip.ghost { border-color: rgba(255,255,255,0.13); color: #C7C7CF; gap: 5px; }

.hm-mf-sub { padding-top: 0; padding-bottom: 8px; animation: hmMfSub 180ms cubic-bezier(0.2,0,0,1); }
@keyframes hmMfSub { from { transform: translateY(-4px); opacity: 0.6; } }
.hm-mf-arrow { color: #71717A; font-size: 13px; line-height: 1; flex-shrink: 0; padding-left: 6px; }
.hm-mf-count { font: 500 11px/1 'Inter', sans-serif; color: #8E8E96; flex-shrink: 0; padding: 0 2px; }
.hm-chip.sub { height: 28px; padding: 0 12px; font-size: 12px; }
.hm-chip.sub .hm-chip-badge { min-width: 15px; height: 15px; font-size: 9px; }
.hm-chip.sub.on {
  background: color-mix(in srgb, var(--acc-bright, #00C49A) 16%, transparent);
  border-color: color-mix(in srgb, var(--acc-bright, #00C49A) 45%, transparent);
  color: var(--acc-bright, #00C49A);
}
.hm-chip.sub.on .hm-chip-badge { background: var(--acc-bright, #00C49A); color: #04130E; }

/* ═══ Feuille « créer / modifier un filtre » ═══ */
.hm-flt-field { margin-bottom: 12px; }
.hm-flt-lbl { display: block; font: 700 10px/1 'Inter', sans-serif; letter-spacing: 0.12em; text-transform: uppercase; color: #71717A; margin: 2px 2px 8px; }
.hm-flt-input {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 13px;
  background: #1A1A1E; border: 1px solid rgba(255,255,255,0.1); color: #FAFAFA;
  font: 500 14px/1 'Inter', sans-serif; outline: none;
}
.hm-flt-input::placeholder { color: #6B6B73; font-weight: 400; }
.hm-flt-input:focus { border-color: color-mix(in srgb, var(--acc-bright, #00C49A) 55%, transparent); }
.hm-flt-fieldhead { display: flex; align-items: baseline; justify-content: space-between; margin: 2px 2px 8px; }
.hm-flt-fieldhead .hm-flt-lbl { margin: 0; }
.hm-flt-count { font: 500 11px/1 'Inter', sans-serif; color: var(--acc-bright, #00C49A); }
.hm-flt-list {
  border-radius: 14px; overflow: hidden; margin-bottom: 4px;
  background: #1A1A1E; border: 1px solid rgba(255,255,255,0.08);
  max-height: 280px; overflow-y: auto; scrollbar-width: none;
}
.hm-flt-list::-webkit-scrollbar { display: none; }
.hm-pickrow {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 10px 13px; background: none; border: none; cursor: pointer; text-align: left; color: inherit;
}
.hm-pickrow + .hm-pickrow { border-top: 1px solid rgba(255,255,255,0.06); }
.hm-pickrow:active { background: rgba(255,255,255,0.04); }
.hm-pickrow-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hm-pickrow-txt b { font: 650 13.5px/1.2 'Inter', sans-serif; color: #FAFAFA; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-pickrow-txt em { font: 400 11.5px/1.3 'Inter', sans-serif; font-style: normal; color: #8E8E96; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-pick-check {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(255,255,255,0.22); color: #FFFFFF; transition: all 160ms;
}
.hm-pickrow.on .hm-pick-check { background: var(--acc, #00A37E); border-color: var(--acc, #00A37E); }
.hm-flt-actions { display: grid; gap: 9px; margin-top: 14px; }
.hm-flt-actions .pg-btn.disabled { opacity: 0.4; pointer-events: none; }

