/* ============================================================
   Bizna201 — Portail client web
   Surcouche du thème admin (styles.css) + spécificités client
   ============================================================ */

/* Puce de solde dans la barre supérieure */
.credits-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange-light);
  border: 1px solid rgba(255, 121, 0, 0.25);
  color: var(--orange-dark);
  border-radius: 999px;
  padding: 6px 14px 6px 10px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}
.credits-chip:hover { box-shadow: 0 4px 12px rgba(255, 121, 0, 0.2); transform: translateY(-1px); }
.credits-coin {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), #ff9a3d);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  box-shadow: 0 3px 8px rgba(255, 121, 0, 0.35);
}
.credits-chip strong { font-size: 14px; }
.credits-label { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.credits-validity {
  display: block;
  width: 100%;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--orange-dark);
  text-align: center;
  line-height: 1.25;
  opacity: 0.9;
}
.credits-chip .text-danger { color: var(--red); }

@media (max-width: 1020px) {
  .credits-validity { display: none; }
}

/* Sélecteur de contacts dans l'envoi */
.contacts-picker { margin-bottom: 16px; }
.field-label-inline {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.chip-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s ease;
}
.contact-chip:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-light); }
.contact-chip.used {
  background: var(--orange-light);
  border-color: var(--orange);
  color: var(--orange-dark);
}
.contact-chip.used::after { content: ' ✓'; }

/* Compense le coin arrondi du panel quand il est seul (rechargement) */
@media (max-width: 860px) {
  .topbar-right .credits-chip .credits-label { display: none; }
  .topbar-right { gap: 8px; }
}

/* ==================== Profil client (photo + édition) ==================== */

/* Photo dans la sidebar */
.admin-avatar img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.sidebar-profile-link {
  display: block;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}
.sidebar-profile-link:hover { color: var(--orange); background: #1d2839; }

/* Rendu du profil */
.profile-avatar-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}
.profile-avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--orange-light);
  border: 2px solid var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 800;
  color: var(--orange-dark);
  overflow: hidden;
  flex-shrink: 0;
}
.profile-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.profile-avatar-actions {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-direction: column;
}

/* Ligne « Expéditeur par défaut de la plateforme » dans la liste des expéditeurs */
.row-default-sender {
  background: rgba(39, 174, 96, 0.07);
}
.row-default-sender:hover {
  background: rgba(39, 174, 96, 0.12);
}
.row-default-sender .cell-main {
  color: var(--ink);
}

/* ==================== Grille de forfaits de crédits (rechargement) ==================== */
.packs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.pack-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.18s ease;
  position: relative;
}
.pack-card:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.pack-card.selected {
  border-color: var(--orange);
  background: var(--orange-light);
  box-shadow: 0 0 0 3px rgba(255, 121, 0, 0.12);
}
.pack-card.selected::after {
  content: '✓';
  position: absolute;
  top: 10px;
  right: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pack-credits { font-size: 17px; font-weight: 800; color: var(--ink); }
.pack-price { font-size: 15px; font-weight: 700; color: var(--orange-dark); }
.pack-per { font-size: 12px; color: var(--muted); }
.pack-validity {
  margin-top: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-bg);
  border-radius: 999px;
  padding: 3px 10px;
}
