/* ===== Safekids — feuille de style commune ===== */

:root {
  --brand: #2f6df6;
  --brand-dark: #1d4ed8;
  --brand-soft: #eaf1ff;
  --accent: #14b8a6;
  --accent-soft: #e3f8f5;
  --ok: #16a34a;
  --ok-soft: #e6f8ec;
  --warn: #f59e0b;
  --warn-soft: #fef4e2;
  --danger: #ef4444;
  --danger-soft: #fdecec;
  --bg: #f4f6fb;
  --card: #ffffff;
  --text: #171d2e;
  --muted: #6c7488;
  --line: #e6e9f2;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 4px 16px rgba(23, 29, 46, .07);
  --shadow-lg: 0 14px 40px rgba(23, 29, 46, .12);
  --nav-h: 68px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
  max-width: 100vw;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
button { font-family: inherit; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap-narrow { max-width: 720px; }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrap-flex { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 11.5px; }
.mt0 { margin-top: 0; }
.mt8 { margin-top: 8px; }
.mt12 { margin-top: 12px; }
.mt16 { margin-top: 16px; }
.mt24 { margin-top: 24px; }
.mb0 { margin-bottom: 0; }
.mb8 { margin-bottom: 8px; }
.mb16 { margin-bottom: 16px; }
.mb24 { margin-bottom: 24px; }

/* ---------- En-tete ---------- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.app-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-logo {
  width: 36px; height: 36px; border-radius: 11px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0;
}
.brand-logo svg { width: 20px; height: 20px; }
.brand-name { font-weight: 700; font-size: 17px; letter-spacing: -.2px; }
.brand-sub { font-size: 11.5px; color: var(--muted); margin-top: -3px; }
.header-actions { display: flex; align-items: center; gap: 8px; }

/* ---------- Barre de navigation du bas ---------- */
.bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 80;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  gap: 2px;
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border-top: 1px solid rgba(230, 233, 242, .9);
}
.bottom-nav a {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 7px 2px 6px;
  border-radius: 14px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .1px;
  transition: transform .12s ease, color .2s ease, background .2s ease;
}
.bottom-nav a svg { width: 22px; height: 22px; }
.bottom-nav a.active { color: var(--brand-dark); background: var(--brand-soft); }
.bottom-nav a:active { transform: scale(.97); }
.bottom-nav .dot {
  position: absolute; top: 5px; right: 50%; margin-right: -20px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--danger);
}

/* espace pour la nav basse */
.page { padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 24px); }
.page-tight { padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 8px); }

/* ---------- Cartes ---------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 14px;
}
.card-flat { box-shadow: none; border: 1px solid var(--line); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.card-title { font-weight: 700; font-size: 15.5px; margin: 0; }
.card-sub { color: var(--muted); font-size: 12.5px; margin: 2px 0 0; }

.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.stack { display: grid; gap: 14px; grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-stats { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; align-items: start; }
}
@media (min-width: 980px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Statistiques ---------- */
.stat {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}
.stat .stat-ico {
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--brand-soft); color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center; margin-bottom: 10px;
}
.stat .stat-ico svg { width: 20px; height: 20px; }
.stat .stat-val { font-size: 24px; font-weight: 700; letter-spacing: -.5px; line-height: 1.1; }
.stat .stat-lbl { font-size: 12px; color: var(--muted); margin-top: 2px; }
.stat.green .stat-ico { background: var(--ok-soft); color: var(--ok); }
.stat.amber .stat-ico { background: var(--warn-soft); color: #b47404; }
.stat.red .stat-ico { background: var(--danger-soft); color: var(--danger); }
.stat.teal .stat-ico { background: var(--accent-soft); color: #0d8c7f; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: var(--brand);
  color: #fff;
  font-size: 14.5px;
  font-weight: 650;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  text-align: center;
  line-height: 1.2;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--brand); box-shadow: 0 6px 18px rgba(47, 109, 246, .26); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: var(--card); color: var(--text); border-color: var(--line); }
.btn-soft { background: var(--brand-soft); color: var(--brand-dark); }
.btn-ok { background: var(--ok); }
.btn-danger { background: var(--danger); }
.btn-danger-soft { background: var(--danger-soft); color: #b91c1c; }
.btn-warn { background: var(--warn); color: #4a2c00; }
.btn-block { display: flex; width: 100%; }
.btn-sm { padding: 8px 12px; font-size: 13px; border-radius: 11px; }
.btn-sm svg { width: 15px; height: 15px; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn-icon {
  width: 38px; height: 38px; padding: 0; border-radius: 12px;
  background: var(--card); color: var(--text); border: 1px solid var(--line);
}
.btn-icon svg { width: 18px; height: 18px; }

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

/* ---------- Formulaires ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field .hint { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
input[type=text], input[type=email], input[type=password], input[type=number],
input[type=tel], input[type=time], input[type=search], input[type=date], select, textarea {
  width: 100%;
  max-width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color .18s ease, box-shadow .18s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(47, 109, 246, .15);
}
textarea { min-height: 96px; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c7488' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 38px; }
.form-two { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 640px) { .form-two { grid-template-columns: 1fr 1fr; } }

.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { width: 44px; height: 26px; appearance: none; background: #d3d8e4; border-radius: 999px; position: relative; transition: background .2s ease; flex-shrink: 0; padding: 0; border: none; cursor: pointer; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s ease; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked { background: var(--brand); }
.switch input:checked::after { transform: translateX(18px); }

/* ---------- Listes ---------- */
.list { display: flex; flex-direction: column; gap: 10px; }
.item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  background: var(--card);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.item.click { cursor: pointer; transition: transform .12s ease; }
.item.click:active { transform: scale(.97); }
.item .ico {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand-dark);
  font-weight: 700; font-size: 15px;
}
.item .ico svg { width: 20px; height: 20px; }
.item .t { font-weight: 650; font-size: 14.5px; }
.item .s { font-size: 12.5px; color: var(--muted); }

.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}
.avatar-lg { width: 58px; height: 58px; font-size: 21px; }

/* ---------- Badges / puces ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700;
  background: var(--brand-soft); color: var(--brand-dark);
  white-space: nowrap;
}
.badge.ok { background: var(--ok-soft); color: #146c33; }
.badge.warn { background: var(--warn-soft); color: #9a6403; }
.badge.red { background: var(--danger-soft); color: #b91c1c; }
.badge.grey { background: #eef0f6; color: #59617a; }

/* ---------- Barre de progression ---------- */
.progress { height: 9px; border-radius: 999px; background: #e9ecf4; overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--accent)); transition: width .5s ease; }
.progress.over > span { background: linear-gradient(90deg, #f59e0b, var(--danger)); }

/* ---------- Notes / etoiles ---------- */
.stars { display: inline-flex; gap: 3px; }
.stars svg { width: 18px; height: 18px; }
.stars.lg svg { width: 30px; height: 30px; cursor: pointer; transition: transform .12s ease; }
.stars.lg svg:active { transform: scale(.9); }
.star-on { color: #f5a524; }
.star-on svg { fill: currentColor; }
.star-off { color: #d8dce6; }

/* ---------- Tableaux ---------- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .4px;
  color: var(--muted); padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.data td { padding: 11px 10px; border-bottom: 1px solid #f1f3f9; vertical-align: middle; }
table.data tr:last-child td { border-bottom: none; }

/* ---------- Onglets ---------- */
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; }
.tabs button {
  flex: 0 0 auto; padding: 9px 15px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card);
  color: var(--muted); font-weight: 650; font-size: 13.5px; cursor: pointer;
  transition: transform .12s ease, background .2s ease, color .2s ease;
}
.tabs button:active { transform: scale(.97); }
.tabs button.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Alertes liste ---------- */
.alert-item { display: flex; gap: 12px; padding: 13px 14px; border-radius: var(--radius-sm); background: var(--card); box-shadow: var(--shadow); }
.alert-item.unread { border-left: 4px solid var(--brand); }
.alert-item .a-ico { width: 36px; height: 36px; border-radius: 11px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand-dark); }
.alert-item .a-ico svg { width: 18px; height: 18px; }
.alert-item.limite .a-ico { background: var(--warn-soft); color: #b47404; }
.alert-item.blocage .a-ico { background: var(--danger-soft); color: var(--danger); }
.alert-item.demande .a-ico { background: var(--accent-soft); color: #0d8c7f; }

/* ---------- Vide ---------- */
.empty { text-align: center; padding: 34px 16px; color: var(--muted); }
.empty svg { width: 42px; height: 42px; margin: 0 auto 10px; color: #c3c9d8; }

/* ---------- Fil d'ariane / hero public ---------- */
.public-hero {
  position: relative;
  color: #fff;
  background: linear-gradient(160deg, #1d4ed8 0%, #2f6df6 45%, #14b8a6 130%);
  padding: 52px 0 64px;
  overflow: hidden;
}
.public-hero .wrap { position: relative; z-index: 2; }
.public-hero h1 { font-size: 31px; line-height: 1.18; margin: 14px 0 12px; letter-spacing: -.7px; }
.public-hero p.lead { font-size: 16px; color: rgba(255,255,255,.92); margin: 0 0 22px; max-width: 560px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25);
  padding: 6px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 650;
}
.pill svg { width: 15px; height: 15px; }
.hero-art {
  margin-top: 26px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.25);
}
.hero-art img { width: 100%; height: 240px; object-fit: cover; }

.section { padding: 46px 0; }
.section-alt { background: #fff; }
.section-title { font-size: 24px; letter-spacing: -.5px; margin: 0 0 8px; }
.section-intro { color: var(--muted); margin: 0 0 26px; max-width: 620px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }

.feature { background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.feature .f-ico { width: 44px; height: 44px; border-radius: 13px; background: var(--brand-soft); color: var(--brand-dark); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.feature .f-ico svg { width: 22px; height: 22px; }
.feature h3 { margin: 0 0 6px; font-size: 16px; }
.feature p { margin: 0; color: var(--muted); font-size: 13.8px; }

.steps { display: grid; gap: 16px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.step-num { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 12px; }
.step h3 { margin: 0 0 6px; font-size: 15.5px; }
.step p { margin: 0; color: var(--muted); font-size: 13.5px; }

.review { background: var(--card); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.review p { margin: 10px 0 12px; font-size: 14px; color: #333c52; }
.review .who { font-weight: 650; font-size: 13.5px; }

.cta-band {
  background: linear-gradient(140deg, #1d4ed8, #14b8a6);
  border-radius: 22px; color: #fff; padding: 30px 22px; text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { margin: 0 0 8px; font-size: 23px; letter-spacing: -.5px; }
.cta-band p { margin: 0 0 18px; color: rgba(255,255,255,.92); }

.site-footer { background: #101728; color: #b9c0d4; padding: 34px 0 90px; margin-top: 10px; }
.site-footer a { color: #dbe1f0; }
.site-footer .f-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 768px) { .site-footer .f-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: 13.5px; margin: 0 0 10px; text-transform: uppercase; letter-spacing: .6px; }
.site-footer p { font-size: 13.5px; margin: 0 0 8px; }
.site-footer .links { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 26px; padding-top: 16px; font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }

/* ---------- Pages auth ---------- */
.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; background: linear-gradient(170deg, #1d4ed8 0%, #2f6df6 40%, #14b8a6 120%); padding: env(safe-area-inset-top, 0px) 0 calc(var(--nav-h) + env(safe-area-inset-bottom, 0px)); }
.auth-head { text-align: center; color: #fff; padding: 34px 20px 24px; }
.auth-head .brand-logo { width: 56px; height: 56px; border-radius: 17px; margin: 0 auto 14px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3); }
.auth-head .brand-logo svg { width: 28px; height: 28px; }
.auth-head h1 { margin: 0 0 6px; font-size: 23px; letter-spacing: -.4px; }
.auth-head p { margin: 0; color: rgba(255,255,255,.9); font-size: 14px; }
.auth-card { background: #fff; border-radius: 22px 22px 0 0; padding: 24px 20px 28px; box-shadow: var(--shadow-lg); flex: 1; }
.auth-foot { text-align: center; margin-top: 18px; font-size: 13.5px; color: var(--muted); }

/* ---------- Modale ---------- */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(16, 23, 40, .5);
  padding: 0;
}
.modal .modal-box {
  background: #fff; width: 100%; max-width: 560px;
  border-radius: 22px 22px 0 0;
  padding: 20px 18px calc(22px + env(safe-area-inset-bottom, 0px));
  max-height: 92vh; overflow-y: auto;
  animation: sheetUp .24s ease;
}
@media (min-width: 640px) {
  .modal { align-items: center; padding: 20px; }
  .modal .modal-box { border-radius: 22px; padding-bottom: 22px; }
}
@keyframes sheetUp { from { transform: translateY(28px); opacity: .4; } to { transform: translateY(0); opacity: 1; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.modal-head h3 { margin: 0; font-size: 17px; }
.modal-close { width: 34px; height: 34px; border-radius: 50%; border: none; background: #f0f2f8; color: var(--muted); font-size: 18px; cursor: pointer; line-height: 1; }

/* ---------- Toasts ---------- */
#toasts { position: fixed; left: 12px; right: 12px; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 14px); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  background: #101728; color: #fff; padding: 12px 16px; border-radius: 14px;
  font-size: 13.8px; box-shadow: var(--shadow-lg); max-width: 480px; width: 100%;
  animation: toastIn .22s ease; display: flex; gap: 9px; align-items: center;
}
.toast.ok { background: #12813f; }
.toast.err { background: #b91c1c; }
.toast svg { width: 17px; height: 17px; flex-shrink: 0; }
@keyframes toastIn { from { transform: translateY(14px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ---------- Graphiques ---------- */
.chart-box { position: relative; height: 240px; width: 100%; }
.chart-box.sm { height: 190px; }

/* ---------- Ecran d'ouverture ---------- */
#app-splash {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #2f6df6;
  color: #fff;
}
#app-splash img { width: 96px; height: 96px; border-radius: 22px; }
#app-splash .splash-name { font-size: 20px; font-weight: 700; letter-spacing: -.3px; }
#app-splash.show { display: flex; animation: splashOut .4s ease 1.2s forwards; }
@keyframes splashOut { to { opacity: 0; visibility: hidden; } }

/* ---------- Divers ---------- */
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.link-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid #f1f3f9; }
.link-row:last-child { border-bottom: none; }
.link-row .lr-t { font-weight: 600; font-size: 14.5px; }
.link-row .lr-s { font-size: 12.5px; color: var(--muted); }
.article-body { font-size: 14.8px; color: #39415a; }
.article-body h2 { font-size: 18px; margin: 22px 0 8px; color: var(--text); }
.article-body p { margin: 0 0 12px; }
.page-head { padding: 20px 0 6px; }
.page-head h1 { font-size: 22px; margin: 0 0 4px; letter-spacing: -.5px; }
.page-head p { margin: 0; color: var(--muted); font-size: 13.5px; }
.kpi-inline { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: #eef1f8; font-size: 12.5px; font-weight: 600; color: #4c5470; }

/* ---------- Administration ---------- */
.admin-body { --brand: #0d8c7f; --brand-dark: #0a6d63; --brand-soft: #e2f6f3; --bg: #f2f6f6; }
.admin-body .brand-logo { background: linear-gradient(135deg, #1d2333, #0d8c7f); }
.admin-body .app-header { background: #101728; border-bottom-color: #1f2b45; }
.admin-body .app-header .brand-name { color: #fff; }
.admin-body .app-header .brand-sub { color: #96a0bb; }
.admin-body .header-actions .btn-icon { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: #e7ebf5; }
.admin-body .bottom-nav { background: rgba(16, 23, 40, .88); border-top-color: rgba(255,255,255,.1); }
.admin-body .bottom-nav a { color: #98a3bd; }
.admin-body .bottom-nav a.active { color: #fff; background: rgba(13, 140, 127, .35); }
.admin-body .btn-primary { background: #0d8c7f; box-shadow: 0 6px 18px rgba(13,140,127,.24); }
.admin-body .btn-soft { background: #e2f6f3; color: #0a6d63; }
.admin-body .tabs button.active { background: #0d8c7f; border-color: #0d8c7f; }
.admin-body .avatar { background: linear-gradient(135deg, #1d2333, #0d8c7f); }
.admin-body .stat .stat-ico { background: #e2f6f3; color: #0a6d63; }
.admin-body .progress > span { background: linear-gradient(90deg, #0d8c7f, #2f6df6); }

.admin-card-alert { border-left: 4px solid var(--warn); }
.gate-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 24px); }
.gate-box { width: 100%; max-width: 420px; }
.gate-brand { text-align: center; margin-bottom: 22px; }
.gate-brand .brand-logo { width: 58px; height: 58px; border-radius: 18px; margin: 0 auto 12px; background: linear-gradient(135deg, #1d2333, #0d8c7f); }
.gate-brand h1 { color: #fff; font-size: 21px; margin: 0 0 4px; }
.gate-brand p { color: #96a0bb; font-size: 13.5px; margin: 0; }
.gate-body { background: #fff; border-radius: 20px; padding: 22px 20px; box-shadow: var(--shadow-lg); }
.admin-lock { background: #101728; min-height: 100vh; padding-top: env(safe-area-inset-top, 0px); }
