:root {
  --navy: #102a43;
  --navy-deep: #0b223b;
  --navy-soft: #173654;
  --blue: #1769ff;
  --blue-dark: #0a54df;
  --blue-pale: #eaf2ff;
  --canvas: #f5f7fb;
  --white: #fff;
  --text: #172b4d;
  --muted: #667085;
  --border: #e4e9f1;
  --green: #12805c;
  --green-pale: #e9f7f0;
  --amber: #a75a0a;
  --amber-pale: #fff5e8;
  --red: #b42318;
  --red-pale: #fff0ee;
  --shadow: 0 16px 44px rgba(16, 42, 67, 0.055);
  --radius: 18px;
  --sidebar: 256px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: Inter, "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--blue);
}
svg {
  display: inline-block;
  vertical-align: middle;
  flex: none;
}
img {
  max-width: 100%;
}
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  letter-spacing: -0.035em;
}
h1 {
  font-size: 32px;
  line-height: 1.17;
}
h2 {
  font-size: 21px;
  line-height: 1.25;
}
h3 {
  font-size: 16px;
  line-height: 1.35;
}
p {
  line-height: 1.65;
}
:focus-visible {
  outline: 3px solid #78acff;
  outline-offset: 3px;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  background: var(--navy);
  color: #fff;
  padding: 12px 16px;
  z-index: 1000;
  border-radius: 8px;
}
.skip-link:focus {
  top: 12px;
  color: #fff;
}
.icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-xs {
  width: 16px;
  height: 16px;
}
.icon-lg {
  width: 24px;
  height: 24px;
}
/* Public authentication screens */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(400px, 47%) minmax(480px, 53%);
  background: white;
}
.auth-visual {
  position: relative;
  isolation: isolate;
  min-height: 760px;
  overflow: hidden;
  background: #102a43;
  color: white;
  padding: 46px clamp(35px, 5vw, 84px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-visual:before {
  content: "";
  position: absolute;
  inset: auto -180px -260px auto;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, #2862ba45 0%, #173e6b4d 44%, transparent 71%);
  z-index: -1;
}
.auth-visual:after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#ffffff22 1px, transparent 1px);
  background-size: 27px 27px;
  mask-image: linear-gradient(105deg, transparent 20%, black 100%);
  opacity: 0.4;
  z-index: -1;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.05em;
  white-space: nowrap;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--blue);
  border-radius: 12px;
  box-shadow: 0 7px 18px #1769ff44;
}
.brand-mark svg {
  width: 27px;
  height: 27px;
}
.brand-inverse {
  color: white;
}
.auth-story {
  max-width: 560px;
  margin: 20px 0 0;
}
.auth-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #91b9ff;
  margin-bottom: 20px;
}
.auth-story h1 {
  font-size: clamp(40px, 4.4vw, 68px);
  letter-spacing: -0.065em;
  line-height: 1.04;
  font-weight: 680;
  margin-bottom: 24px;
}
.auth-story h1 em {
  color: #91b9ff;
  font-style: normal;
}
.auth-story > p {
  max-width: 430px;
  color: #b7c9df;
  font-size: 16px;
  line-height: 1.75;
}
.auth-orbit {
  height: 250px;
  margin: 20px -20px 5px;
  position: relative;
}
.auth-orbit svg {
  width: min(100%, 560px);
  height: 100%;
  overflow: visible;
}
.auth-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #9eb6cd;
  font-size: 12px;
}
.auth-foot span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}
.auth-content {
  padding: 40px clamp(28px, 5vw, 82px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
}
.auth-top {
  position: absolute;
  top: 40px;
  right: clamp(28px, 5vw, 82px);
  font-size: 13px;
  color: var(--muted);
}
.auth-top button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--blue);
  font-weight: 750;
}
.auth-card {
  width: min(100%, 460px);
  margin: 0 auto;
}
.auth-mini-brand {
  display: none;
  margin-bottom: 34px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.auth-card h2 {
  font-size: 32px;
  line-height: 1.15;
  margin-bottom: 10px;
}
.auth-card .intro {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 30px;
}
.auth-form {
  display: grid;
  gap: 18px;
}
.form-group {
  display: grid;
  gap: 8px;
}
.form-group > label,
.field-label {
  font-size: 13px;
  font-weight: 720;
  color: #283d59;
}
.form-hint {
  color: #7b8798;
  font-size: 12px;
  line-height: 1.5;
}
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-wrap .input-icon {
  position: absolute;
  left: 14px;
  color: #8495aa;
  width: 18px;
  height: 18px;
  pointer-events: none;
}
.input-wrap .input {
  padding-left: 43px;
}
.input,
.select,
.textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  color: var(--text);
  border: 1px solid #dce3ec;
  border-radius: 10px;
  background: white;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  outline: none;
}
.input::placeholder,
.textarea::placeholder {
  color: #9aa8b8;
}
.input:focus,
.select:focus,
.textarea:focus {
  border-color: #74a5ff;
  box-shadow: 0 0 0 4px #1769ff14;
}
.input:disabled,
.select:disabled {
  background: #f4f6f9;
}
.textarea {
  min-height: 130px;
  resize: vertical;
  padding: 13px;
}
.input-end {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 7px;
  display: flex;
}
.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  cursor: pointer;
}
.check-row input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--blue);
  flex: none;
}
.text-link {
  border: 0;
  background: none;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  padding: 0;
  text-decoration: none;
}
.text-link:hover {
  text-decoration: underline;
}
.form-error {
  padding: 11px 13px;
  background: var(--red-pale);
  border: 1px solid #fac8c4;
  border-radius: 9px;
  color: var(--red);
  font-size: 13px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.form-success {
  padding: 11px 13px;
  background: var(--green-pale);
  border: 1px solid #bcdfce;
  border-radius: 9px;
  color: var(--green);
  font-size: 13px;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #98a5b4;
  margin: 23px 0;
  font-size: 12px;
}
.auth-divider:before,
.auth-divider:after {
  content: "";
  height: 1px;
  background: var(--border);
  flex: 1;
}
.auth-demo-note {
  margin-top: 23px;
  padding: 14px 16px;
  border-radius: 11px;
  background: #f6f9ff;
  border: 1px solid #e4edfd;
  color: #5d6d82;
  font-size: 12px;
  line-height: 1.6;
}
.auth-bottom {
  max-width: 460px;
  width: 100%;
  margin: 50px auto 0;
  color: #98a5b4;
  font-size: 12px;
}
.auth-bottom a {
  color: var(--blue);
}
/* Shared application chrome */
.app-shell {
  min-height: 100vh;
}
.sidebar {
  width: var(--sidebar);
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--navy-deep);
  color: #acc0d7;
  padding: 27px 16px 21px;
  display: flex;
  flex-direction: column;
  z-index: 80;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #355471 transparent;
}
/* Sur ordinateur, masquer le curseur sans désactiver le défilement ni déplacer le menu. */
@media (hover: hover) and (pointer: fine) {
  .sidebar { scrollbar-color: transparent transparent; }
  .sidebar:hover, .sidebar:focus-within { scrollbar-color: #91d8ab transparent; }
  .sidebar::-webkit-scrollbar { width: 6px; }
  .sidebar::-webkit-scrollbar-thumb { background-color: transparent; border-radius: 6px; }
  .sidebar:hover::-webkit-scrollbar-thumb,
  .sidebar:focus-within::-webkit-scrollbar-thumb { background-color: #91d8ab; }
}
.sidebar .brand {
  margin: 1px 13px 34px;
  color: white;
  font-size: 21px;
}
.sidebar .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
}
.sidebar-section {
  margin: 13px 12px 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #6f90ae;
  text-transform: uppercase;
}
.side-nav {
  display: grid;
  gap: 3px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  color: #aec1d5;
  border: 0;
  background: transparent;
  border-radius: 10px;
  text-align: left;
  font-weight: 590;
  font-size: 13px;
  transition:
    background 0.2s,
    color 0.2s;
}
.nav-item:hover {
  background: #1e3b5a;
  color: #fff;
}
.nav-item.active {
  background: #22528e;
  color: #fff;
  box-shadow: inset 3px 0 #7eb0ff;
}
.nav-item .icon {
  width: 18px;
  height: 18px;
  opacity: 0.87;
}
.nav-item.active .icon {
  opacity: 1;
}
.nav-item .nav-count {
  margin-left: auto;
  background: var(--blue);
  color: #fff;
  min-width: 21px;
  height: 20px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  padding: 0 5px;
}
.sidebar-spacer {
  flex: 1;
  min-height: 20px;
}
.side-tip {
  margin: 16px 4px 17px;
  padding: 17px 15px;
  border: 1px solid #2b4c6e;
  border-radius: 13px;
  background: linear-gradient(145deg, #173b61, #102e4e);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.side-tip:after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border: 1px solid #7199c43d;
  border-radius: 50%;
  right: -50px;
  top: -55px;
  box-shadow:
    0 0 0 24px #638fc414,
    0 0 0 50px #638fc40b;
}
.side-tip .mini-icon {
  color: #a6caff;
  margin-bottom: 10px;
}
.side-tip strong {
  display: block;
  color: #fff;
  font-size: 13px;
  margin-bottom: 5px;
}
.side-tip p {
  font-size: 11px;
  color: #9eb7ce;
  margin: 0;
  max-width: 155px;
}
.side-tip a {
  display: inline-flex;
  margin-top: 11px;
  color: #b7d1ff;
  font-weight: 750;
  font-size: 11px;
}
.sidebar-bottom {
  border-top: 1px solid #28435f;
  padding: 14px 12px 0;
  color: #7191ae;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  gap: 5px;
}
.shell-main {
  margin-left: var(--sidebar);
  min-width: 0;
}
.topbar {
  height: 76px;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 0 38px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.crumb {
  display: flex;
  gap: 9px;
  align-items: center;
  color: #8492a4;
  font-size: 13px;
  white-space: nowrap;
}
.crumb strong {
  color: var(--text);
  font-weight: 720;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.top-search {
  height: 39px;
  width: 260px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f7f9fc;
  color: #8c9bad;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  text-align: left;
  font-size: 12px;
}
.top-search:hover {
  border-color: #aec8f8;
  color: var(--blue);
}
.top-search kbd {
  margin-left: auto;
  border: 1px solid #dce3ec;
  background: #fff;
  border-radius: 5px;
  padding: 1px 5px;
  font: 11px/1.5 inherit;
  color: #9ba9b9;
}
.icon-button {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 10px;
  color: #64758a;
  position: relative;
}
.icon-button:hover {
  background: #f2f5fa;
  color: var(--blue);
}
.dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  right: 7px;
  top: 6px;
  background: #fa9a52;
  border: 2px solid white;
}
.profile-button {
  border: 0;
  border-left: 1px solid var(--border);
  padding: 0 0 0 18px;
  background: none;
  display: flex;
  gap: 10px;
  align-items: center;
  text-align: left;
  color: var(--text);
}
.avatar {
  width: 34px;
  height: 34px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dceaff;
  color: #1659c2;
  font-weight: 850;
  font-size: 12px;
  flex: none;
}
.avatar { overflow:hidden; }
.avatar img { width:100%; height:100%; display:block; border-radius:inherit; object-fit:cover; }
.profile-button strong {
  display: block;
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
}
.profile-button small {
  display: block;
  font-size: 10px;
  color: #8d9aad;
}
.menu-toggle {
  display: none;
}
.mobile-backdrop {
  display: none;
}
.page-wrap {
  max-width: 1470px;
  margin: 0 auto;
  padding: 28px 38px 70px;
}
.demo-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 15px;
  background: #eef5ff;
  border: 1px solid #d6e7ff;
  border-radius: 11px;
  color: #2e5a91;
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 28px;
}
.demo-banner strong {
  color: #16467c;
}
.demo-banner .icon {
  width: 17px;
  height: 17px;
  margin-top: 1px;
}
.page-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.page-title-row h1 {
  margin: 3px 0 7px;
}
.page-title-row p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.page-kicker {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 800;
  color: var(--blue);
  text-transform: uppercase;
}
.page-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.page-footer {
  margin-top: 35px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: #96a3b2;
  font-size: 11px;
}
.page-footer button {
  border: 0;
  background: none;
  color: #6983a1;
  font-weight: 600;
  padding: 0;
}
/* Components */
.btn {
  border: 1px solid transparent;
  border-radius: 10px;
  min-height: 42px;
  padding: 9px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 740;
  white-space: nowrap;
  transition:
    background 0.18s,
    transform 0.18s,
    border-color 0.18s,
    box-shadow 0.18s;
}
.btn:not(:disabled):hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 14px #1769ff2e;
}
.btn-primary:not(:disabled):hover {
  background: var(--blue-dark);
  box-shadow: 0 9px 18px #1769ff30;
  color: #fff;
}
.btn-secondary {
  background: #fff;
  color: var(--text);
  border-color: #dce4ed;
}
.btn-secondary:not(:disabled):hover {
  border-color: #a9bfdb;
  background: #f8fbff;
}
.btn-quiet {
  background: #eef4ff;
  color: #175ad4;
}
.btn-quiet:not(:disabled):hover {
  background: #e3efff;
}
.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--blue);
}
.btn-danger {
  background: #fff0ee;
  color: var(--red);
  border-color: #f7d1cc;
}
.btn-white {
  background: #fff;
  color: #12468d;
}
.btn-white:not(:disabled):hover {
  background: #eef5ff;
}
.btn-block {
  width: 100%;
}
.btn-sm {
  min-height: 34px;
  padding: 6px 11px;
  font-size: 12px;
  border-radius: 8px;
}
.btn-lg {
  min-height: 49px;
  padding: 12px 20px;
  font-size: 14px;
  border-radius: 11px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-pad {
  padding: 23px;
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
.card-header h2 {
  font-size: 18px;
  margin: 0;
}
.card-header p {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 0;
}
.mini-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--blue);
  font-weight: 760;
  font-size: 12px;
  border: 0;
  background: none;
  padding: 3px;
  white-space: nowrap;
}
.mini-link:hover {
  text-decoration: underline;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 760;
  white-space: nowrap;
  line-height: 1.1;
}
.badge:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge-blue {
  background: #e9f1ff;
  color: #2461bc;
}
.badge-green {
  background: #e6f6ec;
  color: #168052;
}
.badge-amber {
  background: #fff2df;
  color: #9a5c11;
}
.badge-red {
  background: #fff0ed;
  color: #b42318;
}
.badge-gray {
  background: #eef1f5;
  color: #546477;
}
.section-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 13px 14px;
  border-radius: 10px;
  background: #f4f7fc;
  color: #5b7088;
  font-size: 12px;
  line-height: 1.6;
}
.section-note .icon {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 1px;
  color: #4775ae;
}
.section-note.warning {
  background: #fff7eb;
  color: #8b5b20;
}
.section-note.warning .icon {
  color: #b67421;
}
.inline-sep {
  display: inline-block;
  color: #afbac7;
  padding: 0 5px;
}
.divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}
.empty-state {
  text-align: center;
  padding: 55px 25px;
  color: var(--muted);
}
.empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 17px;
  border-radius: 17px;
  background: #eff4ff;
  color: var(--blue);
  display: grid;
  place-items: center;
}
.empty-state h3 {
  color: var(--text);
  margin-bottom: 6px;
  font-size: 17px;
}
.empty-state p {
  max-width: 340px;
  margin: 0 auto 18px;
  font-size: 13px;
}
.skeleton {
  background: linear-gradient(90deg, #edf1f7 25%, #f8faff 45%, #edf1f7 65%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  to {
    background-position-x: -200%;
  }
}
/* Dashboard */
.dashboard-hero {
  min-height: 240px;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(115deg, #102b49, #153c68 64%, #1b4779);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 37px 45px;
  margin-bottom: 20px;
  box-shadow: 0 18px 38px #102a4324;
}
.dashboard-hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#ffffff38 0.8px, transparent 0.8px);
  background-size: 24px 24px;
  mask-image: linear-gradient(90deg, transparent 35%, black);
  opacity: 0.4;
  pointer-events: none;
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 530px;
}
.hero-overline {
  color: #accbfa;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 13px;
}
.hero-copy h2 {
  font-size: clamp(27px, 2.45vw, 37px);
  line-height: 1.16;
  letter-spacing: -0.045em;
  margin: 0 0 11px;
  color: white;
}
.hero-copy p {
  color: #c1d3e7;
  font-size: 13px;
  max-width: 420px;
  margin-bottom: 19px;
}
.hero-art {
  width: 360px;
  height: 218px;
  position: relative;
  z-index: 1;
  flex: none;
  margin: -10px -15px -10px 5px;
}
.hero-art .orbit {
  position: absolute;
  border: 1px solid #a4c7ff50;
  border-radius: 50%;
  left: 47%;
  top: 48%;
  transform: translate(-50%, -50%);
}
.hero-art .orbit.one {
  width: 200px;
  height: 200px;
}
.hero-art .orbit.two {
  width: 292px;
  height: 292px;
  border-style: dashed;
  opacity: 0.65;
}
.hero-art .orbit.three {
  width: 370px;
  height: 370px;
  opacity: 0.35;
}
.hero-art .globe {
  position: absolute;
  left: 47%;
  top: 48%;
  transform: translate(-50%, -50%);
  width: 146px;
  height: 146px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 25%, #68a3ff, #3074e1 45%, #1c4f9b 86%);
  box-shadow:
    0 0 70px #5e99ff66,
    inset -20px -18px 40px #082d6f66;
  display: grid;
  place-items: center;
  color: #d8e9ff;
}
.hero-art .globe svg {
  width: 96px;
  height: 96px;
  opacity: 0.8;
}
.hero-art .orbit-point {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #fff;
  color: #1769ff;
  box-shadow: 0 8px 24px #07172e50;
}
.hero-art .orbit-point.a {
  top: 18px;
  left: 55px;
}
.hero-art .orbit-point.b {
  bottom: 14px;
  right: 25px;
}
.hero-art .orbit-point.c {
  top: 35px;
  right: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #78cebc;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.stat-card {
  padding: 20px 22px;
  min-height: 135px;
}
.stat-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  gap: 8px;
}
.stat-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #eef4ff;
  color: #3875d3;
}
.stat-icon.green {
  background: #e9f7f0;
  color: #16805b;
}
.stat-icon.amber {
  background: #fff4e8;
  color: #bd7922;
}
.stat-value {
  font-size: 28px;
  font-weight: 780;
  letter-spacing: -0.045em;
  color: var(--text);
  line-height: 1.18;
  margin: 7px 0 1px;
}
.stat-caption {
  font-size: 11px;
  color: #8a99a9;
}
.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.68fr) minmax(285px, 0.82fr);
  gap: 18px;
  align-items: start;
}
.stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-content: start;
  min-width: 0;
}
.recent-list {
  display: grid;
}
.recent-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid #eff2f6;
}
.recent-row:first-child {
  border-top: 0;
  padding-top: 0;
}
.person-icon {
  height: 38px;
  width: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #edf4ff;
  color: #2369c6;
  font-size: 12px;
  font-weight: 800;
  flex: none;
}
.person-icon.lilac {
  background: #f1edff;
  color: #7354b1;
}
.person-icon.mint {
  background: #e9f8f3;
  color: #27846b;
}
.recent-info {
  min-width: 0;
  flex: 1;
}
.recent-info strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 740;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recent-info span {
  font-size: 11px;
  color: var(--muted);
}
.recent-amount {
  text-align: right;
  white-space: nowrap;
}
.recent-amount strong {
  display: block;
  font-size: 13px;
}
.recent-amount small {
  font-size: 11px;
  color: #8b99a8;
}
.verify-card {
  border: 1px solid #dceaff;
  border-radius: 12px;
  background: #f5f9ff;
  padding: 17px;
}
.verify-card .verify-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 10px;
  background: #e2edff;
  color: var(--blue);
  margin-bottom: 11px;
}
.verify-card strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}
.verify-card p {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 9px;
}
.rate-preview {
  display: grid;
  gap: 11px;
}
.rate-pair {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf1f6;
}
.rate-pair:last-child {
  border: 0;
  padding-bottom: 0;
}
.rate-pair span {
  color: var(--muted);
}
.rate-pair strong {
  font-size: 12px;
}
/* Tables, filters, detail */
.table-wrap {
  overflow: auto;
  width: 100%;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 760px;
}
.data-table th {
  color: #8795a5;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 800;
  background: #fafbfe;
  border-bottom: 1px solid var(--border);
  padding: 13px 16px;
  white-space: nowrap;
}
.data-table th:first-child {
  padding-left: 22px;
}
.data-table td {
  padding: 15px 16px;
  border-bottom: 1px solid #edf0f4;
  font-size: 12px;
  color: #5c6e82;
  white-space: nowrap;
}
.data-table td:first-child {
  padding-left: 22px;
}
.data-table tr:last-child td {
  border-bottom: 0;
}
.data-table tbody tr {
  transition: background 0.15s;
}
.data-table tbody tr:hover {
  background: #f9fbff;
}
.table-person {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 135px;
}
.table-person .person-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 10px;
}
.table-person strong {
  display: block;
  color: var(--text);
  font-size: 12px;
}
.table-person small {
  display: block;
  color: #93a1b1;
  font-size: 10px;
}
.table-main {
  color: var(--text);
  font-weight: 730;
}
.table-muted {
  color: #8c9bac;
  font-size: 11px;
}
/* Grille KryptaPay (admin) : compacte pour tenir sans défilement latéral */
#pricing-grid .data-table { min-width: 0; }
#pricing-grid .data-table th { white-space: normal; padding: 11px 10px; line-height: 1.3; }
#pricing-grid .data-table td { white-space: normal; padding: 12px 10px; line-height: 1.35; }
#pricing-grid .data-table th:first-child, #pricing-grid .data-table td:first-child { padding-left: 18px; }
#pricing-grid .table-muted { display: block; font-size: 10.5px; }
.sort-button {
  border: 0;
  background: none;
  padding: 0;
  color: inherit;
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  font-weight: inherit;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.sort-button:hover {
  color: var(--blue);
}
.table-action {
  border: 0;
  background: #edf4ff;
  color: #2462b4;
  width: 29px;
  height: 29px;
  border-radius: 8px;
  display: grid;
  place-items: center;
}
.table-action:hover {
  background: #dceaff;
}
.filter-panel {
  padding: 17px 19px;
  margin-bottom: 17px;
}
.filter-grid {
  display: grid;
  grid-template-columns: minmax(190px, 1.4fr) repeat(3, minmax(105px, 1fr));
  gap: 10px;
}
.filter-grid .input,
.filter-grid .select {
  min-height: 40px;
  font-size: 12px;
}
.filter-extra {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  flex-wrap: wrap;
}
.filter-extra label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #718095;
}
.filter-extra input {
  min-height: 34px;
  padding: 5px 8px;
  font-size: 11px;
  max-width: 150px;
}
.filter-extra .select {
  min-height: 34px;
  width: auto;
  font-size: 11px;
}
.filter-extra .clear-filters {
  margin-left: auto;
}
.table-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--muted);
}
.pagination {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pagination button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: white;
  border-radius: 7px;
  color: var(--muted);
}
.pagination button:hover:not(:disabled),
.pagination button.current {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
  gap: 18px;
  align-items: start;
}
.detail-head {
  padding: 25px;
}
.detail-head-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}
.detail-head h2 {
  font-size: 23px;
  margin: 9px 0 4px;
}
.detail-head p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}
.route-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 25px;
  padding: 15px 17px;
  background: #f7f9fd;
  border-radius: 11px;
}
.route-flag {
  font-size: 22px;
}
.route-line strong {
  font-size: 13px;
}
.route-line span {
  font-size: 11px;
  color: var(--muted);
}
.route-arrow {
  color: #9db0c6;
  flex: none;
}
.detail-list {
  display: grid;
}
.detail-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  padding: 13px 0;
  border-bottom: 1px solid #eef1f5;
  font-size: 12px;
}
.detail-line:last-child {
  border: 0;
}
.detail-line span {
  color: #75859a;
}
.detail-line strong {
  font-size: 12px;
  text-align: right;
  font-weight: 730;
}
.detail-line.total {
  border-top: 1px solid var(--border);
  padding-top: 17px;
  margin-top: 5px;
}
.detail-line.total strong {
  font-size: 17px;
  color: var(--blue);
}
.timeline {
  list-style: none;
  padding: 0 0 0 3px;
  margin: 0;
}
.timeline li {
  position: relative;
  padding: 0 0 24px 30px;
  border-left: 1px solid #dce5f0;
  margin-left: 9px;
}
.timeline li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}
.timeline li:before {
  content: "";
  position: absolute;
  left: -6px;
  top: 1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #8fb8ff;
  box-shadow: 0 0 0 4px #eaf2ff;
}
.timeline li.current:before {
  background: #f4ae54;
  box-shadow: 0 0 0 4px #fff1db;
}
.timeline li.failed:before {
  background: #d24d47;
  box-shadow: 0 0 0 4px #ffefed;
}
.timeline strong {
  display: block;
  font-size: 12px;
  margin-bottom: 3px;
}
.timeline span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.timeline time {
  display: block;
  color: #9aa8b7;
  font-size: 10px;
  margin-top: 4px;
}
/* Wizard */
.wizard-stepper {
  display: flex;
  gap: 0;
  align-items: center;
  overflow: auto;
  padding: 2px 0 26px;
  scrollbar-width: none;
}
.wizard-stepper::-webkit-scrollbar {
  display: none;
}
.step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 126px;
  color: #98a6b5;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}
.step-item:after {
  content: "";
  height: 1px;
  background: #d8e2ee;
  flex: 1;
  min-width: 18px;
  margin: 0 12px 0 5px;
}
.step-item:last-child {
  flex: 0;
}
.step-item:last-child:after {
  display: none;
}
.step-index {
  width: 28px;
  height: 28px;
  border: 1px solid #d8e2ee;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: white;
  color: #97a8bc;
  font-size: 11px;
  font-weight: 800;
}
.step-item.current {
  color: var(--blue);
}
.step-item.current .step-index {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
  box-shadow: 0 4px 10px #1769ff38;
}
.step-item.done {
  color: #3f6eaa;
}
.step-item.done .step-index {
  background: #eaf2ff;
  border-color: #cfe1ff;
  color: var(--blue);
}
.wizard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(290px, 0.82fr);
  gap: 19px;
  align-items: start;
}
.wizard-main {
  padding: 29px 30px;
}
.wizard-main h2 {
  font-size: 24px;
  margin: 0 0 5px;
}
.wizard-sub {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 23px;
}
.wizard-section-title {
  font-size: 11px;
  font-weight: 800;
  color: #7f90a4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 24px 0 12px;
}
.corridor-list {
  display: grid;
  gap: 10px;
}
.choice-card {
  border: 1.5px solid #e3e9f1;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 14px;
  text-align: left;
  color: var(--text);
  transition:
    border-color 0.15s,
    background 0.15s,
    box-shadow 0.15s;
}
.choice-card:not(:disabled):hover {
  border-color: #a8c7f7;
  background: #fbfdff;
}
.choice-card.selected {
  border-color: var(--blue);
  background: #f7faff;
  box-shadow: 0 0 0 3px #1769ff12;
}
.choice-card .choice-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #eef4ff;
  color: #3974ca;
  display: grid;
  place-items: center;
  flex: none;
}
.choice-main {
  flex: 1;
  min-width: 0;
}
.choice-main strong {
  display: block;
  font-size: 13px;
  font-weight: 760;
}
.choice-main small {
  display: block;
  color: #8a98aa;
  font-size: 11px;
  line-height: 1.5;
}
.choice-card .choice-radio {
  width: 18px;
  height: 18px;
  border: 1.5px solid #c9d5e3;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
}
.choice-card.selected .choice-radio {
  border-color: var(--blue);
}
.choice-card.selected .choice-radio:after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}
.country-pair {
  display: flex;
  align-items: center;
  gap: 11px;
  max-width: 100%;
  overflow: hidden;
}
.country-box {
  flex: 1;
  min-width: 0;
  padding: 15px;
  background: #f7f9fd;
  border: 1px solid #e9eef5;
  border-radius: 11px;
}
.country-box small {
  display: block;
  color: #8a99aa;
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.country-box strong {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.country-box .flag {
  font-size: 18px;
  margin-right: 6px;
}
.country-pair > .icon {
  color: #a1b3c8;
}
.wizard-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid #edf1f5;
}
.wizard-actions .right-actions {
  display: flex;
  gap: 9px;
  margin-left: auto;
}
.amount-direction {
  display: flex;
  background: #f2f5fa;
  padding: 4px;
  border-radius: 10px;
  width: max-content;
  max-width: 100%;
  margin-bottom: 21px;
}
.amount-direction button {
  border: 0;
  background: transparent;
  color: #7a8aa1;
  padding: 8px 14px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 740;
}
.amount-direction button.active {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 2px 8px #193d7017;
}
.amount-input-wrap {
  position: relative;
}
.amount-input-wrap input {
  min-height: 68px;
  font-size: 28px;
  font-weight: 770;
  letter-spacing: -0.03em;
  padding: 12px 85px 12px 17px;
}
.amount-input-wrap .currency-label {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 750;
  color: #6b7b90;
  font-size: 15px;
}
.quote-highlight {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 17px 18px;
  background: #f0f6ff;
  border: 1px solid #dbe9ff;
  border-radius: 12px;
  margin-top: 20px;
}
.quote-highlight span {
  display: block;
  color: #6680a2;
  font-size: 11px;
  font-weight: 650;
}
.quote-highlight strong {
  display: block;
  color: #1457b8;
  font-size: 23px;
  letter-spacing: -0.04em;
}
.quote-lines {
  margin-top: 10px;
}
.quote-lines .detail-line {
  padding: 10px 0;
}
.quote-lines .detail-line strong {
  font-weight: 700;
}
.quote-expiry {
  margin-top: 13px;
  font-size: 11px;
  color: #8b9aab;
}
.summary-card {
  padding: 24px;
  position: sticky;
  top: 95px;
}
.summary-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #8898aa;
  font-weight: 800;
  text-transform: uppercase;
}
.summary-card h3 {
  margin: 6px 0 20px;
  font-size: 18px;
}
.summary-big {
  padding: 17px 18px;
  border-radius: 12px;
  background: #f1f6ff;
  border: 1px solid #deebff;
}
.summary-big small {
  display: block;
  color: #6984a7;
  font-size: 11px;
  margin-bottom: 4px;
}
.summary-big strong {
  display: block;
  color: #185bb8;
  font-size: 24px;
  letter-spacing: -0.04em;
}
.summary-card .detail-line {
  padding: 12px 0;
}
.summary-card .section-note {
  margin-top: 15px;
}
.review-block {
  padding: 17px 0;
  border-top: 1px solid var(--border);
}
.review-block:first-of-type {
  border-top: 0;
}
.review-block h3 {
  margin: 0 0 12px;
  font-size: 14px;
}
.review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.review-grid small {
  color: #8a99a9;
  font-size: 11px;
  display: block;
}
.review-grid strong {
  font-size: 12px;
  display: block;
  margin-top: 3px;
}
.review-amount {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 10px 0;
}
.review-amount span {
  color: #75859a;
}
.review-amount strong {
  font-size: 20px;
  color: var(--blue);
}
.receipt-success {
  padding: 30px;
  text-align: center;
}
.receipt-success .receipt-symbol {
  width: 66px;
  height: 66px;
  border-radius: 18px;
  background: #e8f5ee;
  color: #16805b;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
}
.receipt-success h2 {
  font-size: 27px;
  margin-bottom: 8px;
}
.receipt-success p {
  max-width: 530px;
  margin: 0 auto 18px;
  color: var(--muted);
}
.receipt-success .ref-box {
  background: #f5f8fc;
  padding: 14px 20px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px dashed #b9cce5;
  border-radius: 10px;
  font-weight: 800;
  font-size: 15px;
}
.receipt-success .actions {
  display: flex;
  justify-content: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 23px;
}
/* Beneficiaries, payments, rates, notifications, help, profile */
.benef-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.benef-card {
  padding: 20px;
  min-width: 0;
}
.benef-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.benef-card .person-icon {
  height: 45px;
  width: 45px;
  font-size: 14px;
}
.benef-card h3 {
  font-size: 16px;
  margin: 15px 0 3px;
}
.benef-card p {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 14px;
}
.benef-channel {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #60748b;
  font-size: 11px;
  padding: 10px 0;
  border-top: 1px solid #edf1f6;
}
.benef-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid #edf1f6;
}
.star-button {
  border: 0;
  background: none;
  color: #a5b2c1;
  padding: 5px;
  display: grid;
  place-items: center;
}
.star-button.active {
  color: #e3a340;
}
.star-button.active svg {
  fill: #e3a34033;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.service-card {
  padding: 24px;
  min-height: 235px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.service-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: #edf4ff;
  color: #266bce;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.service-card h3 {
  margin-bottom: 7px;
}
.service-card p {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 18px;
}
.service-card .badge {
  margin-top: auto;
}
.rates-list {
  display: grid;
  gap: 11px;
}
.rates-row {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1.2fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
}
.rates-row:hover {
  border-color: #bdd4fa;
}
.rates-row strong {
  font-size: 13px;
}
.rates-row small {
  display: block;
  color: #8b99a9;
  font-size: 11px;
  margin-top: 3px;
}
.rates-row .route-compact {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 12px;
}
.rates-row .route-compact .flag {
  font-size: 19px;
}
.rates-head {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1.2fr auto;
  gap: 16px;
  padding: 0 20px;
  color: #8796a7;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  font-size: 10px;
}
.notification-list {
  display: grid;
  gap: 10px;
}
.notification-row {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
}
.notification-row:hover {
  border-color: #b8d2fb;
}
.notification-row.unread {
  background: #f8fbff;
  border-color: #dceaff;
}
.notification-row .service-icon {
  width: 37px;
  height: 37px;
  border-radius: 10px;
  margin: 0;
  flex: none;
}
.notification-row strong {
  display: block;
  font-size: 13px;
}
.notification-row p {
  font-size: 12px;
  color: var(--muted);
  margin: 3px 0 6px;
}
.notification-row time {
  font-size: 10px;
  color: var(--muted);
}
.notification-row .unread-dot {
  width: 8px;
  height: 8px;
  background: var(--blue);
  border-radius: 50%;
  margin: 7px 0 0 auto;
  flex: none;
}
.faq-list {
  border-top: 1px solid var(--border);
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  padding: 18px 0;
  background: none;
  border: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  gap: 14px;
  font-weight: 740;
  color: var(--text);
  font-size: 13px;
}
.faq-question:hover {
  color: var(--blue);
}
.faq-answer {
  padding: 0 30px 18px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}
.faq-answer p {
  margin: 0;
}
.help-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.85fr);
  gap: 18px;
}
.help-side {
  background: #f0f6ff;
  border: 1px solid #dceafe;
  border-radius: 15px;
  padding: 23px;
  align-self: start;
}
.help-side h3 {
  font-size: 17px;
}
.help-side p {
  font-size: 12px;
  color: #617894;
}
.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(270px, 0.75fr);
  gap: 18px;
  align-items: start;
}
.profile-head {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.profile-head .avatar {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  font-size: 17px;
}
.profile-head strong {
  display: block;
  font-size: 17px;
}
.profile-head small {
  color: var(--muted);
}
.profile-photo-visual { position:relative; display:inline-grid; flex:none; }
.profile-head-copy { min-width:0; }
.profile-photo-camera { position:absolute; display:grid; place-items:center; right:-5px; bottom:-4px; width:26px; height:26px; border:2px solid #fffefa; border-radius:50%; background:var(--gold); color:#244b34; box-shadow:0 5px 13px #173e291f; }
.profile-photo-camera .icon { width:13px; height:13px; }
.profile-photo-actions { display:flex; align-items:center; flex-wrap:wrap; gap:7px; margin-top:9px; }
.profile-photo-button { min-height:34px; padding:6px 10px; border-radius:10px; font-size:11px; }
.profile-photo-remove { min-height:34px; padding:7px; font-size:11px; }
.profile-photo-note { display:flex; align-items:flex-start; gap:8px; margin:-6px 0 18px; padding:10px 12px; border:1px solid #dfebda; border-radius:12px; background:#f3f8ef; color:#617668; font-size:10px; line-height:1.55; }
.profile-photo-note .icon { flex:none; width:15px; height:15px; margin-top:1px; color:#26805c; }
.form-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
/* Les aides sous les champs ne doivent ni décaler ni étirer leurs voisins. */
form[data-form="profile"] .form-two { align-items: start; }
/* Sous 1 100 px, la carte profil ne laisse pas assez de place à deux libellés entiers. */
@media (min-width:768px) and (max-width:1099px) {
  form[data-form="profile"] .form-two { grid-template-columns:minmax(0,1fr); }
}
.setting-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid #edf1f6;
}
.setting-line:last-child {
  border-bottom: 0;
}
.setting-line strong {
  font-size: 13px;
}
.setting-line p {
  font-size: 11px;
  color: var(--muted);
  margin: 4px 0 0;
}
.toggle {
  width: 40px;
  height: 23px;
  border: 0;
  background: #cbd5e1;
  border-radius: 30px;
  position: relative;
  flex: none;
  transition: background 0.18s;
}
.toggle:after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 4px #0002;
  transition: transform 0.18s;
}
.toggle.on {
  background: var(--blue);
}
.toggle.on:after {
  transform: translateX(17px);
}
.info-list {
  display: grid;
  gap: 11px;
}
.info-list div {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: #5e738a;
}
.info-list .icon {
  width: 17px;
  height: 17px;
  color: #1a7c5b;
  flex: none;
  margin-top: 1px;
}
/* Dialogs, search, toast */
.overlay {
  position: fixed;
  inset: 0;
  background: #0d274384;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 20px;
  backdrop-filter: blur(3px);
}
.modal {
  background: #fff;
  width: min(100%, 520px);
  max-height: min(88vh, 850px);
  overflow: auto;
  border-radius: 18px;
  box-shadow: 0 30px 90px #061e3c4d;
}
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  padding: 24px 25px 16px;
}
.modal-header h2 {
  font-size: 21px;
  margin: 0 0 4px;
}
.modal-header p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.modal-body {
  padding: 0 25px 25px;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 22px;
}
.modal .form-group {
  margin-bottom: 15px;
}
.modal .form-group:last-of-type {
  margin-bottom: 0;
}
.search-overlay {
  align-items: start;
  padding-top: min(15vh, 135px);
}
.search-dialog {
  width: min(100%, 590px);
  overflow: hidden;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  color: #8a9aac;
}
.search-field input {
  border: 0;
  outline: 0;
  width: 100%;
  font-size: 15px;
  color: var(--text);
}
.search-results {
  padding: 12px;
  max-height: 400px;
  overflow: auto;
}
.search-label {
  font-size: 10px;
  color: #99a7b7;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 9px 10px;
}
.search-result {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 11px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--text);
}
.search-result:hover {
  background: #f2f6fd;
}
.search-result .icon {
  color: #6987ad;
  width: 18px;
  height: 18px;
}
.search-result span {
  flex: 1;
  font-size: 13px;
  font-weight: 680;
}
.search-result small {
  color: #8f9eaf;
}
.search-footer {
  border-top: 1px solid var(--border);
  padding: 10px 20px;
  font-size: 11px;
  color: #a2adba;
}
.toast-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 300;
  display: grid;
  gap: 9px;
  max-width: min(370px, calc(100vw - 30px));
}
.toast {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 13px 15px;
  background: #15324f;
  color: #fff;
  border-radius: 11px;
  box-shadow: 0 14px 35px #0d274340;
  font-size: 12px;
  line-height: 1.5;
}
.toast.error {
  background: #a92d28;
}
.toast .icon {
  width: 17px;
  height: 17px;
  margin-top: 1px;
}
.toast button {
  margin-left: auto;
  background: none;
  border: 0;
  color: white;
  opacity: 0.8;
  padding: 0;
}
.loading-spin {
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* Responsive */
@media (max-width: 1200px) {
  .topbar {
    padding: 0 26px;
  }
  .page-wrap {
    padding: 25px 26px 60px;
  }
  .dash-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(255px, 0.8fr);
  }
  .hero-art {
    width: 280px;
  }
  .benef-grid,
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rates-row,
  .rates-head {
    grid-template-columns: 1.2fr 0.85fr 0.8fr 1fr auto;
    gap: 9px;
  }
}
@media (max-width: 980px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.24s ease;
    width: 265px;
  }
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  .mobile-backdrop.open {
    display: block;
    position: fixed;
    inset: 0;
    background: #081a2e99;
    z-index: 70;
  }
  .shell-main {
    margin-left: 0;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .topbar {
    height: 68px;
  }
  .auth-shell {
    grid-template-columns: 42% 58%;
  }
  .auth-visual {
    padding: 35px;
  }
  .auth-story h1 {
    font-size: 42px;
  }
  .auth-orbit {
    height: 190px;
  }
  .auth-content {
    padding: 40px 35px;
  }
  .auth-top {
    right: 35px;
  }
  .wizard-grid,
  .detail-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.8fr);
  }
}
@media (max-width: 767px) {
  .auth-shell {
    display: block;
  }
  .auth-visual {
    min-height: auto;
    padding: 24px 25px 28px;
  }
  .auth-story {
    margin: 40px 0 0;
  }
  .auth-story h1 {
    font-size: 34px;
    max-width: 450px;
    margin-bottom: 11px;
  }
  .auth-story > p {
    font-size: 13px;
    margin-bottom: 0;
  }
  .auth-orbit,
  .auth-foot {
    display: none;
  }
  .auth-content {
    min-height: auto;
    padding: 34px 24px 42px;
  }
  .auth-top {
    position: static;
    text-align: right;
    margin: -5px 0 10px;
  }
  .auth-mini-brand {
    display: none;
  }
  .auth-bottom {
    margin-top: 35px;
  }
  .topbar {
    padding: 0 17px;
    gap: 10px;
  }
  .top-search {
    width: 38px;
    height: 38px;
    padding: 0;
    display: grid;
    place-items: center;
    background: transparent;
    border: 0;
  }
  .top-search span,
  .top-search kbd {
    display: none;
  }
  .top-actions {
    gap: 5px;
  }
  .profile-button {
    padding-left: 8px;
  }
  .profile-button strong,
  .profile-button small,
  .profile-button > .icon {
    display: none;
  }
  .crumb {
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .page-wrap {
    padding: 20px 17px 50px;
  }
  .page-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }
  .page-title-row h1 {
    font-size: 27px;
  }
  .dashboard-hero {
    padding: 28px;
    min-height: 230px;
  }
  .hero-art {
    position: absolute;
    right: -165px;
    top: 0;
    opacity: 0.38;
  }
  .hero-copy {
    max-width: 430px;
  }
  .hero-copy h2 {
    font-size: 28px;
  }
  .dash-grid,
  .wizard-grid,
  .detail-grid,
  .help-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .summary-card {
    position: static;
  }
  .stats-grid {
    gap: 10px;
  }
  .stat-card {
    padding: 15px;
    min-height: 123px;
  }
  .stat-value {
    font-size: 23px;
  }
  .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .filter-grid .input-wrap {
    grid-column: span 2;
  }
  .rates-row,
  .rates-head {
    grid-template-columns: 1.1fr 0.9fr 1fr auto;
  }
  .rates-row > :nth-child(4),
  .rates-head > :nth-child(4) {
    display: none;
  }
}
@media (max-width: 540px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stats-grid .stat-card:last-child {
    grid-column: span 2;
  }
  .stat-card {
    min-height: 106px;
  }
  .stat-value {
    font-size: 24px;
  }
  .benef-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }
  .wizard-main {
    padding: 21px 18px;
  }
  .wizard-main h2 {
    font-size: 21px;
  }
  .wizard-stepper {
    margin-right: -17px;
  }
  .step-item {
    min-width: 91px;
    font-size: 0;
    flex: 1;
  }
  .step-item:last-child {
    min-width: 28px;
  }
  .step-item:after {
    margin: 0 12px 0 5px;
  }
  .step-index {
    font-size: 11px;
  }
  .country-box {
    padding: 11px;
  }
  .country-box strong {
    font-size: 11px;
  }
  .page-actions {
    width: 100%;
  }
  .page-actions .btn {
    flex: 1;
  }
  .filter-grid {
    grid-template-columns: 1fr 1fr;
  }
  .filter-extra .clear-filters {
    margin-left: 0;
  }
  .rates-row,
  .rates-head {
    grid-template-columns: 1.3fr 0.8fr auto;
  }
  .rates-row > :nth-child(3),
  .rates-head > :nth-child(3) {
    display: none;
  }
  .card-pad {
    padding: 18px;
  }
  .form-two,
  .review-grid {
    grid-template-columns: 1fr;
  }
  .page-footer {
    flex-direction: column;
  }
  .auth-card h2 {
    font-size: 28px;
  }
  .auth-story h1 {
    font-size: 30px;
  }
  .auth-content {
    padding: 28px 19px;
  }
  .auth-visual {
    padding: 21px 19px;
  }
  .receipt-success {
    padding: 15px 3px;
  }
  .modal-header {
    padding: 20px 20px 14px;
  }
  .modal-body {
    padding: 0 20px 20px;
  }
}
.trust-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}
.trust-step {
  padding: 14px 12px;
  background: #f7f9fd;
  border: 1px solid #eaf0f8;
  border-radius: 11px;
}
.trust-step-icon {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 8px;
  background: #e6efff;
  color: #2766be;
  margin-bottom: 11px;
}
.trust-step strong {
  display: block;
  font-size: 11px;
  line-height: 1.4;
  margin-bottom: 4px;
}
.trust-step small {
  display: block;
  font-size: 10px;
  line-height: 1.5;
  color: #7c8da0;
}
@media (max-width: 540px) {
  .trust-steps {
    grid-template-columns: 1fr;
  }
  .trust-step {
    display: grid;
    grid-template-columns: 29px 1fr;
    column-gap: 12px;
    align-items: center;
  }
  .trust-step-icon {
    grid-row: span 2;
    margin: 0;
  }
  .trust-step strong {
    margin: 0;
  }
  .trust-step small {
    grid-column: 2;
  }
}
/* Text country codes remain legible even when the browser has no emoji font. */
.flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 27px;
  padding: 3px 5px;
  border-radius: 5px;
  background: #eaf2ff;
  color: #2868be;
  font-size: 10px !important;
  font-weight: 800;
  line-height: 1.2;
}
.route-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  padding: 6px;
  border-radius: 6px;
  background: #eaf2ff;
  color: #2868be;
  font-size: 11px;
  font-weight: 800;
}
@media (max-height: 900px) and (min-width: 981px) {
  .side-tip {
    display: none;
  }
}
.rates-filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
@media (min-width: 768px) and (max-width: 1100px) {
  .top-search {
    width: 170px;
  }
  .top-actions {
    gap: 8px;
  }
  .profile-button strong,
  .profile-button small,
  .profile-button > .icon {
    display: none;
  }
  .crumb > span,
  .crumb > .icon {
    display: none;
  }
  .crumb {
    min-width: 0;
  }
}
@media (max-width: 767px) {
  .dash-grid,
  .wizard-grid,
  .detail-grid,
  .help-grid,
  .profile-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .dash-grid > *,
  .dash-grid .stack,
  .wizard-grid > *,
  .detail-grid > * {
    min-width: 0;
  }
  .table-wrap {
    max-width: 100%;
  }
  .topbar > div:first-child {
    min-width: 0;
    flex: 1;
  }
  .topbar .crumb {
    min-width: 0;
    flex: 1;
  }
  .topbar .crumb > span,
  .topbar .crumb > .icon {
    display: none;
  }
  .top-actions {
    flex: none;
  }
}
@media (max-width: 540px) {
  .top-actions > a[href="#/help"] {
    display: none;
  }
  .wizard-actions {
    flex-wrap: wrap;
  }
  .wizard-actions .btn {
    white-space: normal;
    line-height: 1.3;
  }
  .wizard-actions .right-actions {
    margin-left: auto;
  }
  .quote-highlight {
    flex-wrap: wrap;
  }
  .quote-highlight strong {
    font-size: 20px;
  }
  .rates-filter-panel {
    flex-direction: column;
    align-items: stretch;
  }
  .rates-filter-panel select {
    width: 100% !important;
    min-width: 0 !important;
  }
  .rates-head {
    display: none;
  }
  .rates-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .rates-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 8px;
    padding: 15px;
  }
  .rates-row > div:first-child {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }
  .rates-row > div:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
  }
  .rates-row > button {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
  .rates-row .route-compact {
    flex-wrap: wrap;
    gap: 4px;
    font-size: 11px;
  }
  .rates-row strong {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
.reduce-motion *,
.reduce-motion *:before,
.reduce-motion *:after {
  scroll-behavior: auto !important;
  animation-duration: 0.01ms !important;
  transition-duration: 0.01ms !important;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
/* Back-office de démonstration : identité distincte, mêmes composants accessibles. */
.admin-shell .sidebar {
  background: #0c2238;
}
.admin-shell .sidebar .brand {
  margin-bottom: 5px;
}
.admin-brand-sub {
  display: block;
  margin: 0 13px 30px;
  color: #7ca6cc;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}
.admin-shell .nav-item.active {
  background: #20517a;
  box-shadow: inset 3px 0 #89d4dc;
}
.admin-sidebar-note {
  margin: 12px 4px 18px;
  border: 1px solid #36516b;
  background: #143451;
  border-radius: 13px;
  padding: 17px;
  color: #bdd5e5;
  font-size: 11px;
  line-height: 1.6;
}
.admin-sidebar-note strong {
  display: block;
  color: #fff;
  margin-bottom: 5px;
  font-size: 12px;
}
.admin-sidebar-note .icon {
  color: #8bd4d7;
  margin-bottom: 9px;
}
.admin-access-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #edf6f6;
  color: #246b70;
  border: 1px solid #d8eaea;
  padding: 7px 11px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 800;
}
.admin-banner {
  background: #f1f6fb;
  border-color: #dbe6f1;
  color: #446382;
}
.admin-banner strong {
  color: #18476e;
}
.admin-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  min-height: 218px;
  background: linear-gradient(110deg, #102a43, #173b59 76%, #1b4c68);
  border-radius: 19px;
  padding: 34px 39px;
  color: #fff;
  box-shadow: 0 17px 38px #0f304323;
  margin-bottom: 19px;
}
.admin-hero:after {
  content: "";
  position: absolute;
  right: -80px;
  top: -160px;
  width: 440px;
  height: 440px;
  border: 1px solid #8dc6df36;
  border-radius: 50%;
  box-shadow:
    0 0 0 45px #8dc6df0b,
    0 0 0 95px #8dc6df08;
  z-index: -1;
}
.admin-hero-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9ac9e3;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 850;
  margin-bottom: 12px;
}
.admin-hero h2 {
  max-width: 555px;
  margin: 0 0 11px;
  color: #fff;
  font-size: 31px;
  line-height: 1.13;
  letter-spacing: -0.045em;
}
.admin-hero p {
  max-width: 505px;
  margin: 0;
  color: #c4d6e5;
  font-size: 12px;
}
.admin-hero-right {
  flex: none;
  width: 210px;
  padding: 20px;
  border: 1px solid #6e9bb454;
  border-radius: 14px;
  background: #ffffff0d;
  backdrop-filter: blur(4px);
}
.admin-hero-right small {
  display: block;
  color: #a9c9db;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
}
.admin-hero-right strong {
  display: block;
  color: #fff;
  font-size: 29px;
  letter-spacing: -0.05em;
  margin: 5px 0;
}
.admin-hero-right span {
  color: #a9c7d7;
  font-size: 11px;
}
.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 19px;
}
.admin-metric {
  padding: 18px 19px;
  min-height: 130px;
  position: relative;
  overflow: hidden;
}
.admin-metric:after {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #f4f8ff;
  right: -35px;
  top: -32px;
}
.admin-metric-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #71829a;
  font-size: 11px;
  font-weight: 660;
  gap: 6px;
}
.admin-metric .stat-icon {
  width: 33px;
  height: 33px;
  position: relative;
  z-index: 1;
}
.admin-metric strong {
  display: block;
  font-size: 27px;
  letter-spacing: -0.05em;
  color: #162e4b;
  line-height: 1.2;
  margin: 13px 0 2px;
}
.admin-metric small {
  color: #96a4b4;
  font-size: 10px;
}
.admin-money-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}
.admin-money-card {
  padding: 25px;
  min-width: 0;
}
.admin-money-card .card-header {
  margin-bottom: 5px;
}
.admin-money-card .card-header h2 {
  font-size: 19px;
}
.admin-money-sub {
  font-size: 11px;
  color: #8695a6;
  margin: 0 0 15px;
}
.admin-amount-list {
  display: grid;
  gap: 0;
  min-height: 90px;
}
.admin-amount-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid #ecf0f4;
}
.admin-amount-line:first-child {
  border-top: 0;
}
.admin-amount-line span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #61768d;
  font-size: 12px;
}
.admin-amount-line .currency-dot {
  height: 9px;
  width: 9px;
  border-radius: 3px;
  background: #8ab1ef;
}
.admin-amount-line:nth-child(2n) .currency-dot {
  background: #67bda9;
}
.admin-amount-line:nth-child(3n) .currency-dot {
  background: #e0b16e;
}
.admin-amount-line strong {
  font-size: 18px;
  letter-spacing: -0.035em;
  color: #173754;
  white-space: nowrap;
}
.admin-amount-line small {
  font-size: 10px;
  color: #9aa9b8;
  margin-left: 6px;
}
.admin-money-foot {
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid #eef1f6;
  color: #8293a5;
  font-size: 11px;
  line-height: 1.5;
}
.admin-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.8fr);
  gap: 18px;
  align-items: start;
}
.admin-status-list {
  display: grid;
  gap: 13px;
}
.admin-status-row {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr) 35px;
  align-items: center;
  gap: 11px;
  font-size: 12px;
}
.admin-status-row span {
  color: #687d92;
}
.admin-status-row strong {
  text-align: right;
  color: #1c3554;
  font-size: 12px;
}
.admin-meter {
  height: 7px;
  background: #ecf1f7;
  border-radius: 9px;
  overflow: hidden;
}
.admin-meter i {
  height: 100%;
  display: block;
  background: #6c9bea;
  border-radius: 9px;
}
.admin-status-row.success .admin-meter i {
  background: #54b994;
}
.admin-status-row.pending .admin-meter i {
  background: #e3b562;
}
.admin-status-row.failed .admin-meter i {
  background: #dc817b;
}
.admin-corridor-list {
  display: grid;
  gap: 0;
}
.admin-corridor-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-top: 1px solid #eef1f6;
  gap: 10px;
  font-size: 12px;
}
.admin-corridor-row:first-child {
  border-top: 0;
}
.admin-corridor-row strong {
  color: #1e3856;
}
.admin-corridor-row small {
  color: #8da0b1;
  display: block;
}
.admin-corridor-row .count {
  border-radius: 8px;
  background: #eaf2ff;
  color: #2669bd;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 800;
}
.admin-filters {
  padding: 20px;
  margin-bottom: 16px;
}
.admin-filters-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}
.admin-filters-head strong {
  font-size: 13px;
}
.admin-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
}
.admin-filter-grid .form-group {
  gap: 6px;
  min-width: 0;
}
.admin-filter-grid .form-group label {
  color: #8190a2;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.075em;
  font-weight: 800;
}
.admin-filter-grid .input,
.admin-filter-grid .select {
  font-size: 12px;
  min-height: 41px;
}
.admin-filter-grid .wide {
  grid-column: span 2;
}
.admin-filter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 17px;
}
.admin-table .data-table {
  min-width: 1060px;
}
.admin-source {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 6px;
  background: #eff3f7;
  color: #6c7c8d;
  font-size: 10px;
  font-weight: 750;
}
.admin-source.user {
  background: #e8f5f3;
  color: #27766b;
}
.admin-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(285px, 0.8fr);
  gap: 18px;
  align-items: start;
}
.admin-detail-grid > *,
.admin-detail-grid .detail-head-top > div {
  min-width: 0;
}
.admin-detail-grid .detail-head-top {
  flex-wrap: wrap;
}
.admin-detail-grid .detail-head h2,
.admin-detail-grid .detail-line strong {
  overflow-wrap: anywhere;
}
.admin-reconcile {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 20px;
  background: #eef5fb;
  border: 1px solid #dce8f3;
  border-radius: 13px;
  color: #426381;
  font-size: 12px;
  line-height: 1.6;
}
.admin-reconcile strong {
  color: #234f72;
}
.admin-integration-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.admin-integration {
  padding: 22px;
  min-height: 175px;
}
.admin-integration h3 {
  margin: 13px 0 6px;
}
.admin-integration p {
  font-size: 12px;
  color: #708196;
  margin: 0 0 12px;
}
.admin-login-visual {
  background: #0e2c45;
}
.admin-login-visual:before {
  background: radial-gradient(circle, #407fa653 0%, #173e6b48 50%, transparent 75%);
}
.admin-login-visual .auth-story h1 em {
  color: #9fdae0;
}
.admin-login-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  background: #ffffff15;
  border: 1px solid #9dc8d84d;
  border-radius: 18px;
  color: #a6dbe0;
  margin: 25px 0;
}
.admin-login-card .auth-demo-note {
  background: #eef6f7;
  border-color: #d9ebed;
  color: #58747b;
}
.admin-login-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #368069;
  font-weight: 800;
  margin-bottom: 20px;
}
.admin-login-status:before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4fae82;
}
.admin-login-status.unconfigured {
  color: #a2611b;
}
.admin-login-status.unconfigured:before {
  background: #e2a350;
}
@media (max-width: 1200px) {
  .admin-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .admin-hero-right {
    width: 170px;
  }
}
@media (max-width: 980px) {
  .admin-shell .sidebar {
    transform: translateX(-100%);
  }
  .admin-shell .sidebar.mobile-open {
    transform: translateX(0);
  }
  .admin-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .admin-hero {
    padding: 26px;
    min-height: 195px;
  }
  .admin-hero h2 {
    font-size: 25px;
  }
  .admin-hero-right {
    display: none;
  }
  .admin-money-grid,
  .admin-lower-grid,
  .admin-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .admin-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-integration-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 540px) {
  .admin-detail-grid .detail-head-top > div {
    flex: 1 1 100%;
  }
  .admin-detail-grid .detail-head h2 {
    font-size: 19px;
    line-height: 1.25;
  }
  .admin-metrics {
    gap: 10px;
  }
  .admin-metric {
    padding: 14px;
    min-height: 117px;
  }
  .admin-metric strong {
    font-size: 25px;
  }
  .admin-money-card {
    padding: 19px;
  }
  .admin-amount-line strong {
    font-size: 15px;
  }
  .admin-filter-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .admin-filter-grid .wide {
    grid-column: span 1;
  }
  .admin-filter-actions {
    flex-wrap: wrap;
  }
  .admin-filter-actions .btn {
    flex: 1;
  }
  .admin-status-row {
    grid-template-columns: 115px minmax(0, 1fr) 25px;
    gap: 7px;
  }
  .admin-hero h2 {
    font-size: 23px;
  }
}
/* Connexion : composition corail sur téléphone, abstraction rose/violette sur desktop. */
.public-auth {
  display: grid;
  grid-template-columns: 49% 51%;
  width: min(1040px, calc(100% - 72px));
  min-height: min(700px, calc(100svh - 72px));
  margin: max(26px, calc((100svh - 700px) / 2)) auto;
  background: #fff;
  border: 3px solid #ee66a2;
  border-radius: 23px;
  overflow: hidden;
  box-shadow: 0 32px 82px #5d416121;
  color: #19151b;
}
.public-auth .auth-visual {
  position: relative;
  padding: 0;
  min-height: 640px;
  background: white;
  overflow: hidden;
}
.public-auth .auth-visual::before,
.public-auth .auth-visual::after {
  display: none;
}
.auth-art-canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.public-auth .auth-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 640px;
  padding: 62px clamp(28px, 5vw, 76px) 56px;
  background: #fff;
}
.public-auth .auth-desktop-brand {
  position: absolute;
  top: 27px;
  right: 37px;
  color: #7b3c86;
  opacity: 0.88;
}
.public-auth .auth-desktop-brand .brand {
  font-size: 15px;
  gap: 7px;
}
.public-auth .auth-desktop-brand .brand-mark {
  width: 25px;
  height: 25px;
  border-radius: 7px;
  background: linear-gradient(135deg, #ff8581, #a343a4);
  box-shadow: none;
}
.public-auth .auth-desktop-brand .brand-mark svg {
  width: 18px;
  height: 18px;
}
.public-auth .auth-mobile-stage {
  display: none;
}
.public-auth .auth-card {
  width: min(100%, 355px);
  margin: 0 auto;
}
.public-auth .auth-card h2 {
  color: #1c1921;
  text-align: center;
  font-size: 29px;
  font-weight: 760;
  line-height: 1.18;
  letter-spacing: -0.043em;
  margin: 0 0 7px;
}
.public-auth .auth-card .intro {
  color: #8f8890;
  text-align: center;
  font-size: 11px;
  line-height: 1.4;
  margin: 0 0 21px;
}
.public-auth .auth-passkey-button {
  display: flex;
  gap: 11px;
  min-height: 45px;
  border-radius: 999px;
  border: 1px solid #dedde0;
  box-shadow: inset 0 0 0 1px #f6f5f6;
  background: #fff;
  color: #322d32;
  font-size: 13px;
  font-weight: 650;
  white-space: normal;
  text-align: center;
}
.public-auth .auth-passkey-button svg {
  width: 17px;
  height: 17px;
  color: #ac4597;
}
.public-auth .auth-passkey-button:not(:disabled):hover {
  border-color: #be83b9;
  color: #742d81;
  background: #fff8fd;
}
.public-auth .auth-divider {
  justify-content: center;
  margin: 14px 0 14px;
  color: #8b878b;
  font-size: 12px;
  line-height: 1.3;
}
.public-auth .auth-divider::before,
.public-auth .auth-divider::after {
  display: none;
}
.public-auth .auth-form {
  gap: 9px;
}
.public-auth .auth-form .form-group {
  gap: 0;
  min-width: 0;
}
.public-auth .auth-form .input,
.public-auth .auth-form .select {
  height: 46px;
  min-height: 46px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 26px;
  background: #f2f2f2;
  box-shadow: none;
  color: #282429;
  font-size: 12px;
}
.public-auth .auth-form .input::placeholder {
  color: #9c999e;
  opacity: 1;
}
.public-auth .auth-form .input:focus,
.public-auth .auth-form .select:focus {
  border-color: #d074b5;
  box-shadow: 0 0 0 3px #f4dceb;
  background: #fff;
}
.public-auth .auth-form .input-wrap .input-icon {
  left: 14px;
  width: 17px;
  height: 17px;
  color: #858185;
}
.public-auth .auth-login-form .input-wrap .input {
  padding-left: 43px;
}
.public-auth .auth-password-wrap .input {
  padding-right: 54px;
}
.public-auth .auth-password-wrap .input-end {
  display: grid;
  place-items: center;
  right: 0;
  top: 0;
  transform: none;
  height: 46px;
  width: 46px;
  padding: 0;
  color: #716c72;
  background: #ededed;
  border-left: 3px solid #fff;
  border-radius: 0 26px 26px 0;
}
.public-auth .auth-password-wrap .input-end:hover {
  color: #8f328f;
}
.public-auth .auth-password-wrap .input-end .icon {
  width: 16px;
  height: 16px;
}
.public-auth .auth-submit {
  min-height: 47px;
  margin-top: 9px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(100deg, #ff956f 0%, #f85888 52%, #8a329b 100%);
  box-shadow: 0 8px 18px #cf56a12b;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.public-auth .auth-submit:not(:disabled):hover {
  background: linear-gradient(100deg, #f67d61, #e5477b 52%, #762b89);
  box-shadow: 0 12px 22px #bf549b38;
  color: #fff;
}
.public-auth .auth-recovery-link {
  display: block;
  width: fit-content;
  margin: 12px auto 0;
  color: #969096;
  font-size: 11px;
  text-decoration: underline;
  text-decoration-color: #d5cfd4;
  text-underline-offset: 3px;
}
.public-auth .auth-signup-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 4px;
  margin: 22px 0 0;
  padding: 0;
  border: 0;
  color: #2d282e;
  font-size: 12px;
  font-weight: 650;
}
.public-auth .auth-signup-row a,
.public-auth .auth-terms a {
  color: #2a252a;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.public-auth .auth-signup-row a:hover,
.public-auth .auth-terms a:hover {
  color: #a53692;
}
.public-auth .auth-passkey-hint {
  margin: 12px 0 0;
  color: #868087;
  text-align: center;
  font-size: 10px;
  line-height: 1.45;
}
.public-auth .auth-security-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 16px;
  padding: 0;
  color: #878189;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 10px;
  line-height: 1.45;
}
.public-auth .auth-security-note svg {
  flex: none;
  width: 14px;
  height: 14px;
  color: #8e528c;
}
.public-auth .auth-explore-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 5px;
  margin: 11px 0 0;
  padding: 4px;
  color: #7e6482;
  background: none;
  border: 0;
  font-size: 11px;
  font-weight: 650;
}
.public-auth .auth-explore-link:hover {
  color: #a53692;
}
.public-auth .auth-explore-link svg {
  width: 14px;
  height: 14px;
}
.public-auth .auth-disclosure {
  margin: 9px 0 0;
  color: #aaa4ac;
  text-align: center;
  font-size: 9px;
  line-height: 1.45;
}
.public-auth .auth-aftercard {
  width: min(100%, 355px);
  margin: 14px auto 0;
}
.public-auth .auth-bottom {
  display: none;
}
.public-auth .auth-name-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4px;
}
.public-auth .auth-name-grid .input {
  width: 100%;
  min-width: 0;
}
.public-auth .auth-name-grid .form-group:first-child .input {
  border-radius: 26px 7px 7px 26px;
}
.public-auth .auth-name-grid .form-group:last-child .input {
  border-radius: 7px 26px 26px 7px;
}
.public-auth .auth-form .select {
  padding-right: 32px;
  appearance: auto;
}
.public-auth .auth-terms {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  margin: 8px 2px 0;
  color: #858087;
  text-align: left;
  font-size: 10px;
  line-height: 1.45;
}
.public-auth .auth-terms input {
  width: 15px;
  height: 15px;
  flex: none;
  margin: 0;
  accent-color: #99449f;
}
.public-auth.auth-view-register .auth-card .intro {
  margin-bottom: 16px;
}
.public-auth.auth-view-register .auth-signup-row {
  margin-top: 20px;
}
@media (max-width: 980px) and (min-width: 768px) {
  .public-auth {
    width: calc(100% - 36px);
    grid-template-columns: 46% 54%;
  }
  .public-auth .auth-content {
    padding: 50px 28px;
  }
  .public-auth .auth-card {
    width: min(100%, 345px);
  }
}
@media (max-width: 767px) {
  .public-auth {
    display: block;
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: 100svh;
    margin: 0;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    background:
      radial-gradient(ellipse 58% 34% at -3% 71%, #edf7fc 0%, #d9eaf4 54%, transparent 100%),
      radial-gradient(ellipse 64% 48% at 94% 27%, #d8e9f4 0%, transparent 78%),
      linear-gradient(129deg, #bed0e5 0%, #cee0ee 38%, #aec8df 100%);
  }
  .public-auth::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(137deg, transparent 0 46%, #ffffff32 46.4% 57%, transparent 57.5%),
      radial-gradient(ellipse 48% 20% at 0% 40%, #ffffff59, transparent 100%),
      radial-gradient(ellipse 52% 31% at 104% 89%, #ffffff43, transparent 100%);
  }
  .public-auth::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    opacity: 0.13;
    background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNzYiIGhlaWdodD0iMTc2Ij48ZmlsdGVyIGlkPSJuIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iMC42OSIgbnVtT2N0YXZlcz0iMyIgc2VlZD0iNSIgc3RpdGNoVGlsZXM9InN0aXRjaCIvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPSIxNzYiIGhlaWdodD0iMTc2IiBmaWx0ZXI9InVybCgjbikiIG9wYWNpdHk9Ii41MyIvPjwvc3ZnPg==")
      repeat;
    background-size: 176px 176px;
  }
  .public-auth .auth-visual,
  .public-auth .auth-desktop-brand {
    display: none;
  }
  .public-auth .auth-content {
    display: flow-root;
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100svh;
    padding: 0 18px 56px;
    background: transparent;
  }
  .public-auth .auth-mobile-stage {
    position: relative;
    display: block;
    width: min(100%, 340px);
    height: 173px;
    overflow: hidden;
    margin: clamp(48px, 10svh, 86px) auto 0;
    border-radius: 29px 29px 0 0;
    background: linear-gradient(128deg, #ec957d 0%, #ee896a 48%, #e5785e 100%);
  }
  .public-auth.auth-view-login .auth-mobile-stage { margin-top: clamp(65px, 13svh, 112px); }
  .public-auth.auth-view-register .auth-mobile-stage { margin-top: clamp(56px, 11svh, 94px); }
  .public-auth .auth-stage-yellow {
    position: absolute;
    left: -55px;
    top: 48px;
    width: 112px;
    height: 138px;
    border-radius: 50%;
    transform: rotate(-27deg);
    background: linear-gradient(130deg, #f6d397, #ddc578);
    box-shadow: 13px -9px 27px #ddb37850 inset;
  }
  .public-auth .auth-stage-green {
    position: absolute;
    right: -63px;
    top: 79px;
    width: 159px;
    height: 133px;
    border-radius: 54% 46% 0 0;
    transform: rotate(-24deg);
    background: linear-gradient(143deg, #72d598, #42bd82);
  }
  .public-auth .auth-mobile-logo {
    position: absolute;
    display: inline-flex;
    z-index: 2;
    top: 16px;
    left: 18px;
    margin: 0;
    color: white;
  }
  .public-auth .auth-mobile-logo .brand {
    color: white;
    font-size: 14px;
    gap: 6px;
    letter-spacing: -0.04em;
  }
  .public-auth .auth-mobile-logo .brand-mark {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: #ffffff42;
    box-shadow: none;
  }
  .public-auth .auth-mobile-logo .brand-mark svg {
    width: 16px;
    height: 16px;
  }
  .public-auth .auth-mobile-title {
    position: relative;
    z-index: 1;
    display: block;
    padding: 58px 20px 0;
    color: white;
    font-size: 26px;
    line-height: 1.1;
    font-weight: 790;
    letter-spacing: -0.035em;
    text-align: center;
    text-shadow: 0 1px 2px #955f5638;
  }
  .public-auth.auth-view-register .auth-mobile-title { padding-top: 46px; }
  .public-auth .auth-card {
    position: relative;
    z-index: 2;
    width: min(100%, 340px);
    margin: -28px auto 0;
    padding: 47px 21px 25px;
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 25px 52px #54718d35;
  }
  .public-auth.auth-view-login .auth-card { margin-top: -49px; }
  .public-auth.auth-view-register .auth-card { margin-top: -39px; padding-top: 38px; }
  .public-auth.auth-view-register .auth-divider { margin: 12px 0 10px; }
  .public-auth .auth-aftercard { width: min(100%, 340px); margin: 13px auto 0; }
  .public-auth .auth-aftercard .auth-passkey-hint { color: #4c6179; margin-top: 0; }
  .public-auth .auth-aftercard .auth-security-note { color: #456077; margin-top: 8px; }
  .public-auth .auth-aftercard .auth-explore-link { color: #2a466b; margin-top: 6px; }
  .public-auth .auth-aftercard .auth-disclosure { color: #546982; margin-top: 3px; }
  .public-auth.auth-view-login .auth-card h2,
  .public-auth.auth-view-register .auth-card h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
  .public-auth.auth-view-login .auth-card .intro,
  .public-auth.auth-view-register .auth-card .intro {
    display: none;
  }
  .public-auth .auth-passkey-button {
    min-height: 45px;
    font-size: 12px;
  }
  .public-auth .auth-divider {
    margin: 17px 0 17px;
  }
  .public-auth .auth-login-form .input-icon {
    display: none;
  }
  .public-auth .auth-login-form .input-wrap .input {
    padding-left: 18px;
  }
  .public-auth .auth-form .input,
  .public-auth .auth-form .select {
    height: 46px;
    min-height: 46px;
    background: #f3f3f3;
  }
  .public-auth .auth-submit,
  .public-auth .auth-submit:not(:disabled):hover {
    min-height: 47px;
    margin-top: 14px;
    background: #0b0b0b;
    color: #fff;
    box-shadow: none;
  }
  .public-auth .auth-recovery-link {
    margin-top: 21px;
  }
  .public-auth .auth-signup-row {
    margin-top: 23px;
  }
  .public-auth .auth-security-note {
    margin-top: 14px;
  }
  .public-auth.auth-view-register .auth-submit {
    margin-top: 11px;
  }
  .public-auth.auth-view-register .auth-terms {
    margin-top: 4px;
  }
}
@media (max-width: 370px) {
  .public-auth .auth-content {
    padding-left: 15px;
    padding-right: 15px;
  }
  .public-auth .auth-card {
    padding-left: 18px;
    padding-right: 18px;
  }
  .public-auth .auth-mobile-title {
    font-size: 24px;
  }
  .public-auth .auth-passkey-button {
    font-size: 11px;
  }
}

/* Confirmation locale et gestion des passkeys. */
/* Choix volontaire de la passkey : aucune biométrie demandée avant « Oui ». */
.pk-overlay {
  background: #11243caa;
  backdrop-filter: blur(9px);
}
.passkey-dialog {
  width: min(100%, 440px);
  max-height: min(92dvh, 760px);
  overflow: auto;
  border-radius: 29px;
  box-shadow: 0 35px 100px #10243b61;
  scrollbar-width: thin;
}
.pk-offer-hero,
.pk-setup-head {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: white;
  background: linear-gradient(132deg, #ef9872 0%, #ed7377 53%, #ae489d 100%);
  padding: 26px 32px 49px;
}
.pk-setup-head {
  background: linear-gradient(133deg, #d55b93 0%, #ae489d 58%, #733792 100%);
}
.pk-orbit {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
}
.pk-orbit-left {
  width: 148px;
  height: 170px;
  left: -71px;
  top: 94px;
  background: linear-gradient(145deg, #f9d69b, #f5ac78);
  transform: rotate(-25deg);
}
.pk-orbit-right {
  width: 158px;
  height: 148px;
  right: -69px;
  bottom: -20px;
  background: linear-gradient(145deg, #79dba1, #6dc6a2);
  transform: rotate(-27deg);
}
.pk-dialog-close,
.pk-dialog-back {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  top: 22px;
  border: 1px solid #ffffff73;
  border-radius: 50%;
  background: #ffffff26;
  color: white;
}
.pk-dialog-close {
  right: 23px;
}
.pk-dialog-back {
  left: 23px;
}
.pk-dialog-close:hover,
.pk-dialog-back:hover {
  background: #ffffff53;
}
.pk-offer-brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
}
.pk-offer-brand .brand {
  font-size: 17px;
  color: #fff;
  gap: 7px;
}
.pk-offer-brand .brand-mark {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 8px;
  background: #ffffff3b;
  box-shadow: none;
}
.pk-offer-brand .brand-mark svg {
  width: 19px;
  height: 19px;
}
.pk-offer-symbol,
.pk-setup-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 24px 0 14px;
  border-radius: 18px;
  border: 1px solid #ffffff6e;
  background: #ffffff31;
  box-shadow: 0 15px 25px #83458636;
}
.pk-offer-symbol .icon,
.pk-setup-icon .icon {
  width: 31px;
  height: 31px;
  stroke-width: 1.65;
}
.pk-offer-kicker,
.pk-setup-chip {
  display: block;
  color: #fff6ee;
  font-size: 9px;
  font-weight: 820;
  letter-spacing: 0.18em;
}
.pk-offer-hero h2,
.pk-setup-head h2 {
  position: relative;
  z-index: 1;
  margin: 9px 0 9px;
  color: #fff;
  font-size: clamp(25px, 5vw, 31px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.047em;
}
.pk-offer-hero p,
.pk-setup-head p {
  position: relative;
  z-index: 1;
  max-width: 330px;
  margin: 0;
  color: #fff9;
  font-size: 12px;
  line-height: 1.5;
}
.pk-offer-hero p {
  color: #fff;
  opacity: 0.9;
}
.pk-offer-body,
.pk-setup-body {
  position: relative;
  z-index: 1;
  margin-top: -25px;
  padding: 24px 32px 27px;
  border-radius: 27px 27px 0 0;
  background: #fff;
}
.pk-offer-benefits {
  display: grid;
  gap: 13px;
  margin: 0 0 19px;
}
.pk-offer-benefits > div {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-width: 0;
}
.pk-benefit-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #fbeaf3;
  color: #a14291;
}
.pk-benefit-icon .icon {
  width: 17px;
  height: 17px;
}
.pk-offer-benefits strong {
  display: block;
  color: #232431;
  font-size: 12px;
  font-weight: 780;
}
.pk-offer-benefits small {
  display: block;
  color: #7b8290;
  font-size: 10px;
  line-height: 1.43;
}
.pk-offer-account {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  margin: 0 0 18px;
  border: 1px solid #eee4f0;
  border-radius: 10px;
  background: #fbf7fc;
  color: #748091;
  font-size: 10px;
  line-height: 1.4;
}
.pk-offer-account strong {
  color: #8c3c88;
  font-size: 11px;
  letter-spacing: 0.018em;
  text-align: right;
  overflow-wrap: anywhere;
}
.pk-offer-actions {
  display: grid;
  gap: 8px;
}
.pk-offer-primary,
.pk-offer-secondary {
  width: 100%;
  min-height: 47px;
  white-space: normal;
  border-radius: 999px;
  font-size: 12px;
  text-align: center;
}
.pk-offer-primary {
  border: 0;
  color: #fff;
  background: linear-gradient(96deg, #ff9072, #e95988 50%, #96399d 100%);
  box-shadow: 0 9px 18px #d4609a2e;
}
.pk-offer-primary:not(:disabled):hover {
  color: #fff;
  background: linear-gradient(96deg, #f47860, #d84c7d 50%, #7f3189);
}
.pk-offer-secondary {
  border: 1px solid #e7dce8;
  color: #50485a;
  background: #fff;
}
.pk-offer-secondary:not(:disabled):hover {
  border-color: #bf8abc;
  background: #fdf8fc;
}
.pk-offer-foot {
  margin: 15px 0 0;
  color: #8d8e9c;
  font-size: 10px;
  text-align: center;
  line-height: 1.5;
}
.pk-offer-foot strong {
  color: #656177;
}
.pk-setup-head {
  padding-top: 27px;
}
.pk-setup-head .pk-offer-brand {
  margin-left: 38px;
}
.pk-setup-chip {
  margin-top: 19px;
}
.pk-setup-icon {
  margin-top: 12px;
  margin-bottom: 11px;
}
.pk-setup-head h2 {
  margin-top: 0;
}
.pk-setup-body {
  padding-top: 25px;
}
.pk-setup-body .auth-form {
  gap: 8px;
}
.pk-setup-body .form-group > label {
  color: #3c3a4b;
}
.pk-setup-body .input {
  min-height: 46px;
  border-radius: 11px;
}
.pk-setup-body .passkey-onboarding {
  display: grid;
  gap: 10px;
  margin: 0 0 20px;
}
.pk-setup-body .passkey-onboarding > div {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.pk-setup-body .passkey-onboarding > div > span {
  display: grid;
  place-items: center;
  flex: none;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #fbeaf3;
  color: #a14291;
  font-size: 11px;
  font-weight: 800;
}
.pk-setup-body .passkey-onboarding p {
  margin: 1px 0 0;
  color: #647080;
  font-size: 11px;
  line-height: 1.5;
}
.pk-setup-body .form-group {
  margin-bottom: 9px;
}
.pk-setup-body .pk-offer-secondary {
  min-height: 39px;
  border-color: transparent;
  font-weight: 700;
}
.pk-setup-body .pk-offer-secondary:not(:disabled):hover {
  background: #fdf8fc;
}
@media (max-width: 390px) {
  .pk-offer-hero,
  .pk-setup-head {
    padding-left: 24px;
    padding-right: 24px;
  }
  .pk-offer-body,
  .pk-setup-body {
    padding-left: 22px;
    padding-right: 22px;
  }
  .pk-offer-hero h2,
  .pk-setup-head h2 {
    font-size: 26px;
  }
  .pk-dialog-close {
    right: 19px;
  }
  .pk-dialog-back {
    left: 19px;
  }
}
@media (max-width: 360px) and (max-height: 720px) {
  .pk-offer-hero { padding: 20px 20px 35px; }
  .pk-offer-symbol { width: 47px; height: 47px; margin: 14px 0 9px; }
  .pk-offer-symbol .icon { width: 26px; height: 26px; }
  .pk-offer-hero h2 { font-size: 24px; margin: 6px 0; }
  .pk-offer-hero p { font-size: 11px; line-height: 1.42; }
  .pk-offer-body { padding: 15px 20px 16px; }
  .pk-offer-benefits { gap: 8px; margin-bottom: 11px; }
  .pk-offer-account { margin-bottom: 10px; padding: 8px 10px; }
  .pk-offer-actions { gap: 6px; }
  .pk-offer-actions .btn { min-height: 43px; }
  .pk-offer-foot { margin-top: 8px; }
}

.account-id-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 14px;
  margin: 16px 0 20px;
  border-radius: 10px;
  background: #f0f6ff;
  border: 1px solid #dde9f8;
  color: #65809e;
  font-size: 11px;
}
.account-id-row strong {
  color: #173f67;
  font-size: 13px;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}
.account-id-row button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 7px;
  background: #e1ecfc;
  color: #1769ff;
  margin-left: auto;
}
.passkey-devices {
  margin-top: 22px;
  border-top: 1px solid #e8edf3;
  padding-top: 18px;
}
.passkey-devices h3 {
  margin: 0 0 10px;
  font-size: 13px;
}
.passkey-device {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #edf1f5;
}
.passkey-device:last-child {
  border-bottom: 0;
}
.passkey-device .stat-icon {
  flex: none;
}
.passkey-device > div {
  flex: 1;
  min-width: 0;
}
.passkey-device strong {
  display: block;
  color: #173754;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.passkey-device small {
  display: block;
  color: #8796a8;
  font-size: 10px;
}
.passkey-device .btn {
  flex: none;
}
.passkey-confirm-box {
  display: flex;
  gap: 13px;
  padding: 17px 18px;
  margin-top: 20px;
  border-radius: 13px;
  border: 1px solid #d7e7ed;
  background: linear-gradient(115deg, #eef7f7, #f5faff);
  color: #173e56;
}
.passkey-confirm-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 35px;
  height: 35px;
  border-radius: 10px;
  background: #dceefa;
  color: #286eb5;
}
.passkey-confirm-box strong {
  font-size: 13px;
}
.passkey-confirm-box p {
  margin: 5px 0 4px;
  font-size: 11px;
  line-height: 1.5;
  color: #53728a;
}
.passkey-confirm-box small {
  display: block;
  color: #6e8b9b;
  font-size: 10px;
  line-height: 1.4;
}
.passkey-fallback {
  margin-top: 12px;
}
@media (max-width: 540px) {
  .passkey-device {
    flex-wrap: wrap;
  }
  .passkey-device .btn {
    margin-left: 45px;
  }
  .passkey-confirm-box {
    padding: 14px;
  }
}
/* Identité ZaloPay : vert forêt, sauge et or chaud, cohérente sur toutes les vues. */
:root {
  --navy: #163b2f; --navy-deep: #0e3026; --navy-soft: #205540;
  --blue: #176d4e; --blue-dark: #0d503a; --blue-pale: #eaf5eb;
  --canvas: #f7f8f2; --white: #fffefa; --text: #17372b; --muted: #607365;
  --border: #dce7db; --green: #177c57; --green-pale: #e9f6ec;
  --amber: #96631a; --amber-pale: #fcf5e6;
  --gold: #d8b56e; --gold-light: #f5e7c3;
  --shadow: 0 16px 48px #1039280c; --radius: 19px; --sidebar: 248px;
}
body { background: var(--canvas); color: var(--text); }
/* Le défilement implicite (focus/formulaires) doit rester stable sur mobile. */
html { scroll-behavior: auto; }
:focus-visible { outline-color: #c59432; }
.brand-mark { background: linear-gradient(145deg, #d5b369, #a78038); box-shadow: 0 7px 17px #71572529; }
.page-kicker, .mini-link, .btn-ghost { color: var(--blue); }
.btn-primary { border-radius: 11px; background: linear-gradient(110deg,#0e5a41,#18835a); box-shadow: 0 9px 17px #124d3530; }
.btn-primary:not(:disabled):hover { background: linear-gradient(110deg,#084d38,#0b6848); box-shadow: 0 12px 22px #124d3538; }
.btn-quiet, .badge-blue, .table-action { color:#14694a; background:#e8f4e9; }
.btn-quiet:not(:disabled):hover, .table-action:hover { background:#d8ecd9; }
.btn-secondary { border-color:#d6e3d5; background:#fffefa; }
.btn-secondary:not(:disabled):hover { border-color:#91baa0; background:#f5fbf3; }
.btn-white { color:#17583f; }
.btn-white:not(:disabled):hover { color:#154f38; background:#f8f1df; }
.card { background:#fffefa; border-color:#e2eadf; box-shadow:0 16px 38px #173e2910; }
.badge-green { color:#166747; background:#e4f3e7; }
.badge-amber { color:#805719; background:#faf0d6; }
.icon-button:hover { color:var(--blue); background:#edf5ec; }
.input:focus, .select:focus, .textarea:focus { border-color:#63a27a; box-shadow:0 0 0 3px #cce8d197; }
.sidebar, .admin-shell .sidebar { background:linear-gradient(173deg,#0d3027,#164433 67%,#1c5439); color:#d5e6d9; border-right:1px solid #476b4e; }
.sidebar .brand-mark { background:linear-gradient(145deg,#dcb967,#ac8038); }
.sidebar-section { color:#abcaaf; }
.nav-item { color:#d0e4d3; }
.nav-item:hover { background:#ffffff19; color:#fff; }
.nav-item.active, .admin-shell .nav-item.active { background:linear-gradient(92deg,#f3e4bd,#e1c98c); color:#173f2e; box-shadow:inset 3px 0 #a77a29,0 6px 16px #092d1836; font-weight:790; }
.nav-item .nav-count { background:#c9a555; color:#183c2b; }
.side-tip, .admin-sidebar-note { border-color:#55775e; background:linear-gradient(145deg,#2a6347,#184534); }
.side-tip .mini-icon, .side-tip a { color:#eed7a0; }
.topbar { background:#fffefbea; border-bottom-color:#e2eadf; backdrop-filter:blur(16px); }
.top-search { background:#f5f8f1; border-color:#dfe8da; color:#788b7b; }
.top-search:hover { border-color:#b5d1b5; }
.avatar, .person-icon { background:#e6f1e4; color:#235a40; }
.page-wrap { max-width:1500px; }
.demo-banner { background:#f6f4e9; color:#5a673f; border-color:#e7e4c7; margin-bottom:25px; }
.demo-banner strong { color:#30583d; }
.panel-overline { display:block; color:#9b793b; font-size:10px; font-weight:850; letter-spacing:.14em; margin-bottom:5px; }
.detail-line { border-bottom-color:#e9eee7; }
.detail-line span { color:#667a6e; }
.table-action, .badge-blue { color:#185d44; }
.section-note { background:#f0f7ed; color:#41664e; border:1px solid #e1eddc; }
.section-note .icon { color:#257453; }
.section-note.warning { background:#fff7e9; border-color:#f0e3c4; color:#765c2e; }
.section-note.warning .icon { color:#a77a2f; }
.form-group label, .field-label { color:#29503a; }
.input, .select, .textarea { border-color:#d6e3d5; color:#1d3f30; background:#fffefa; }
.input::placeholder, .textarea::placeholder { color:#8a9c89; }
.form-hint, .table-muted, .page-footer, .rates-row small, .rates-head, .crumb { color:var(--muted); }
.info-list div, .help-side p { color:#4c6855; }
.info-list .icon { color:#15805a; }
.route-flag, .flag { color:#276b4a; background:#edf4e6; border:1px solid #e1eddc; }
.flag { font-size:17px !important; min-width:29px; }
.route-flag { font-size:17px; }
.rates-row, .notification-row { background:#fffefa; border-color:#dce8da; }
.rates-row:hover, .notification-row:hover { border-color:#9ec9a6; }
.notification-row.unread { background:#f3f9ef; border-color:#c6dfc5; }
.help-side { background:#f2f8eb; border-color:#d5e7d1; }
.person-icon.lilac { color:#856129; background:#f9edcb; }
.person-icon.mint { color:#24684e; background:#dff1e1; }
.choice-card:not(:disabled):hover { border-color:#9ecaa6; background:#f6fbf4; }
.step-item.done { color:#52765a; }
.wizard-section-title { color:#9b7c46; }
.toast { background:#143a2e; }
.data-table tbody tr:hover { background:#f5f9f1; }
.timeline li:before { background:#bbd7b7; box-shadow:0 0 0 4px #edf6eb; }
.route-line, .trust-step { background:#f7faf4; border-color:#e4ebdf; }
.admin-banner, .admin-hero { border-color:#d7e8d7; }
.admin-hero { background:linear-gradient(117deg,#174e3a,#257358); }
.admin-metric:after { background:var(--gold); }
.admin-reconcile { color:#4b7355; background:#f0f8ed; border-color:#d8e9d3; }
.admin-reconcile strong { color:#27593e; }
.admin-login-visual { background:radial-gradient(circle at 75% 90%,#2c725250,transparent 44%),linear-gradient(150deg,#0d352b,#1a563d); }
.admin-login-visual:before { background:radial-gradient(circle,#b99a5340 0%,#3f84503b 54%,transparent 77%); }
.admin-login-visual .auth-story h1 em, .admin-login-visual .auth-eyebrow { color:#f0d49b; }
.admin-login-icon { background:#f2e0b024; color:#f3dba4; border-color:#e6d29165; }
.admin-login-card .auth-demo-note { background:#eff7ec; border-color:#d6e7d3; color:#4f7355; }
.admin-brand-sub { color:#d9bf81; }
/* Connexion : illustration originale, formes douces et carte de simulation. */
.public-auth { width:min(1100px,calc(100% - 60px)); min-height:690px; margin:max(25px,calc((100svh - 690px)/2)) auto; grid-template-columns:49% 51%; border:1px solid #d6d8b9; background:#fffefa; border-radius:27px; box-shadow:0 32px 96px #143c281f; color:var(--text); }
.public-auth .auth-visual { min-height:685px; display:block; isolation:isolate; overflow:hidden; background:radial-gradient(circle at 42% 40%,#267557 0%,transparent 40%),linear-gradient(150deg,#0e3b2d,#144d39 63%,#1e6242); color:#fff; }
.auth-premium-visual .premium-orbit { position:absolute; border:1px solid #f2dfb56e; border-radius:50%; pointer-events:none; }
.auth-premium-visual .orbit-a { width:550px; height:550px; top:10%; left:-28%; }
.auth-premium-visual .orbit-b { width:350px; height:350px; top:25%; right:-33%; border-style:dashed; opacity:.8; }
.auth-premium-visual .orbit-c { width:190px; height:190px; left:-95px; bottom:-70px; background:#cba6592e; border:0; }
.premium-visual-top { position:absolute; top:32px; left:38px; display:flex; gap:10px; align-items:center; color:#f3e9d1; font-size:10px; font-weight:800; letter-spacing:.13em; }
.premium-visual-star { display:grid; place-items:center; width:33px; height:33px; border-radius:11px; color:#173b29; background:#e4c883; font-size:19px; }
.premium-phone { position:absolute; z-index:2; width:226px; height:394px; top:121px; left:50%; transform:translateX(-54%) rotate(-5deg); padding:8px; border-radius:34px; border:3px solid #c0ddbf; background:#071b19; box-shadow:25px 32px 65px #082117a6,-10px -9px 30px #c3e8a02f; }
.premium-phone-notch { position:absolute; top:10px; left:50%; z-index:3; width:66px; height:11px; transform:translateX(-50%); border-radius:0 0 12px 12px; background:#071b19; }
.premium-phone-screen { height:100%; overflow:hidden; border-radius:26px; padding:37px 17px 18px; background:linear-gradient(160deg,#eaf2e6,#fffdf4 73%); color:#173b2d; }
.premium-phone-brand .brand { color:#124e39; font-size:12px; gap:5px; }
.premium-phone-brand .brand-mark { width:20px; height:20px; border-radius:7px; }
.premium-phone-brand .brand-mark svg { width:13px; height:13px; }
.premium-phone-greeting { display:block; margin:20px 0 2px; color:#668373; font-size:9px; }
.premium-phone-screen > strong { display:block; font-size:17px; letter-spacing:-.04em; line-height:1.19; }
.premium-phone-card { display:flex; flex-direction:column; gap:8px; margin-top:18px; padding:16px 13px; border-radius:15px; background:linear-gradient(115deg,#165a40,#238061); color:#fff; box-shadow:0 12px 20px #1850383b; }
.premium-phone-card > span { color:#d5e9d9; font-size:6.5px; letter-spacing:.09em; }
.premium-phone-card strong { font-size:13px; white-space:nowrap; }
.premium-phone-card strong i { color:#e5c983; font-style:normal; }
.premium-phone-card small { color:#e6eedc; font-size:7px; }
.premium-phone-actions { display:flex; justify-content:space-between; margin-top:22px; padding:0 7px; }
.premium-phone-actions span { display:grid; place-items:center; width:32px; height:32px; color:#196049; background:#e3eee0; border-radius:11px; }
.premium-phone-rows { display:grid; gap:9px; margin-top:17px; }
.premium-phone-rows i { height:16px; border-radius:8px; background:linear-gradient(90deg,#dce9d9 25%,#eff5e9 60%,#dce9d9 80%); }
.premium-phone-rows i:last-child { width:70%; }
.premium-visual-bottom { position:absolute; left:40px; right:40px; bottom:34px; display:grid; gap:6px; max-width:370px; }
.premium-visual-bottom strong { color:#f2e8ce; font-size:21px; line-height:1.1; }
.premium-visual-bottom span { color:#c8ddcb; font-size:11px; line-height:1.55; }
.public-auth .auth-content { background:linear-gradient(130deg,#fffefa,#f9fbf5); }
.public-auth .auth-desktop-brand { color:#1b694a; }
.public-auth .auth-desktop-brand .brand-mark { background:linear-gradient(140deg,#d6b166,#96752f); }
/* Sur la connexion, le logo ZaloPay gagne légèrement en présence sans changer la grille. */
.public-auth.auth-view-login .auth-desktop-brand .brand { font-size:18px; gap:9px; }
.public-auth.auth-view-login .auth-desktop-brand .brand-mark { width:31px; height:31px; border-radius:9px; }
.public-auth.auth-view-login .auth-desktop-brand .brand-mark svg { width:22px; height:22px; }
.public-auth.auth-view-login .premium-phone-brand .brand { font-size:13px; }
.public-auth.auth-view-login .premium-phone-brand .brand-mark { width:22px; height:22px; }
.public-auth.auth-view-login .premium-phone-brand .brand-mark svg { width:15px; height:15px; }
@media (max-width:767px) {
  .public-auth.auth-view-login .auth-mobile-logo .brand { font-size:17px; gap:7px; }
  .public-auth.auth-view-login .auth-mobile-logo .brand-mark { width:28px; height:28px; border-radius:8px; }
  .public-auth.auth-view-login .auth-mobile-logo .brand-mark svg { width:20px; height:20px; }
}
.public-auth .auth-card h2 { color:#193c2d; }
.public-auth .auth-card .intro { color:#6f8071; }
.public-auth .auth-passkey-button { border-color:#d5decf; color:#1b4c36; box-shadow:inset 0 0 0 1px #f7f8f0; }
.public-auth .auth-passkey-button svg { color:#ae8636; }
.public-auth .auth-passkey-button:not(:disabled):hover { border-color:#a8cba7; color:#105b42; background:#f7fbf3; }
.public-auth .auth-form .input, .public-auth .auth-form .select { background:#f1f6ec; color:#163d2d; }
.public-auth .auth-form .input::placeholder { color:#879788; }
.public-auth .auth-form .input:focus, .public-auth .auth-form .select:focus { border-color:#97b993; background:#fffefa; box-shadow:0 0 0 3px #deeddb; }
.public-auth .auth-password-wrap .input-end { background:#e7f0e2; color:#426950; border-left-color:#fffefa; }
.public-auth .auth-password-wrap .input-end:hover { color:#0c6446; }
.public-auth .auth-submit, .public-auth .auth-submit:not(:disabled):hover { background:linear-gradient(100deg,#0d5840,#23805a); box-shadow:0 10px 20px #175a3c3d; color:#fff; }
.public-auth .auth-signup-row a, .public-auth .auth-terms a, .public-auth .auth-explore-link, .public-auth .auth-bottom a { color:#17684b; }
.public-auth .auth-signup-row a:hover, .public-auth .auth-terms a:hover { color:#a0742c; }
.public-auth .auth-security-note, .public-auth .auth-passkey-hint { color:#687f6c; }
.public-auth .auth-security-note svg, .public-auth .auth-terms input { color:#b58e44; accent-color:#177b57; }
.public-auth .auth-explore-link:hover, .public-auth .auth-recovery-link:hover { color:#a47b34; }
/* Popups Face ID et moyens : même charte que la connexion. */
.pk-overlay { background:#102b24ab; }
.pk-offer-hero { background:linear-gradient(135deg,#1b6043,#126043 56%,#29573b); }
.pk-setup-head { background:linear-gradient(137deg,#174c39,#1b704e 66%,#c4a353); }
.pk-orbit-left { background:linear-gradient(145deg,#e8ce91,#b58a3e); }
.pk-orbit-right { background:linear-gradient(145deg,#b8d8a8,#80b78a); }
.pk-offer-brand .brand-mark { background:#ffffff32; }
.pk-offer-benefits .pk-benefit-icon, .pk-setup-body .passkey-onboarding > div > span { background:#f8f0db; color:#715c2f; }
.pk-offer-account { background:#f4f8ee; border-color:#dfe9d7; }
.pk-offer-account strong { color:#216345; }
.pk-offer-primary { color:#fff; background:linear-gradient(100deg,#0d6347,#257e52 70%,#39784b); box-shadow:0 10px 18px #175a3a32; }
.pk-offer-primary:not(:disabled):hover { background:linear-gradient(100deg,#094d38,#146344 65%,#256947); }
.pk-offer-secondary { border-color:#dae5d6; color:#2a503d; }
.pk-offer-secondary:not(:disabled):hover { border-color:#88b895; background:#f5f9ef; }
.method-offer-head { position:relative; overflow:hidden; padding:32px 32px 38px; color:white; background:radial-gradient(circle at 100% 0,#d9b96d72,transparent 42%),linear-gradient(130deg,#0d523a,#217651); }
.method-offer-head > .icon-button { position:absolute; top:21px; right:20px; color:white; border:1px solid #ffffff72; border-radius:50%; }
.method-offer-seal { display:grid; place-items:center; width:54px; height:54px; margin-bottom:20px; color:#654d1c; background:#efd998; border-radius:18px; }
.method-offer-kicker { display:block; color:#eadbb0; font-weight:800; letter-spacing:.15em; font-size:10px; }
.method-offer-head h2 { margin:8px 0 9px; font-size:28px; line-height:1.11; color:white; }
.method-offer-head p { max-width:340px; margin:0; color:#e2f0e0; font-size:12px; line-height:1.6; }
.method-offer-body { position:relative; padding:23px 30px 29px; display:grid; gap:10px; }
.method-offer-choice { display:flex; align-items:center; gap:12px; width:100%; padding:13px 15px; color:#214c36; text-align:left; background:#f9fbf5; border:1px solid #dce9d7; border-radius:13px; }
.method-offer-choice:hover { border-color:#81b28d; background:#f2f8ed; }
.method-offer-choice > span { display:grid; place-items:center; width:35px; height:35px; color:#936c26; background:#f8efd3; border-radius:10px; }
.method-offer-choice strong { flex:1; font-size:12px; }
.method-offer-body > p { margin:5px 0 0; color:#6b7d70; font-size:10px; text-align:center; }
.method-modal-head { background:linear-gradient(90deg,#f7faf2,#fffefa); }
.method-modal-head .flow-kicker { margin-bottom:5px; }
.method-modal-body .section-note { margin-bottom:14px; }
.method-modal-body .form-hint { line-height:1.45; }
/* Une ligne carte ne doit pas étirer le select lorsque l'autre champ est plus court. */
.method-modal-body .form-two { align-items:start; }
/* Espace client : carte de bienvenue, indicateurs et activité respirante. */
.dashboard-hero { min-height:258px; margin-bottom:26px; padding:39px 44px; border:1px solid #407658; border-radius:24px; background:radial-gradient(circle at 78% 35%,#3e926576,transparent 35%),linear-gradient(120deg,#124b37,#1b6447 68%,#266d47); box-shadow:0 23px 45px #174a3126; }
.dashboard-hero:after { background-image:radial-gradient(#f1db9f43 .8px,transparent .8px); }
.hero-overline { color:#ebd7a0; }
.hero-copy h2 em { color:#f6e7bb; font-style:normal; }
.hero-copy p { color:#daeadc; max-width:430px; }
.hero-art { width:330px; height:230px; margin:-20px 0 -20px 10px; }
.hero-plastic-card { position:absolute; z-index:2; right:22px; top:13px; width:255px; height:175px; display:flex; flex-direction:column; padding:19px 20px; border:1px solid #f9ebbc91; border-radius:16px; background:linear-gradient(120deg,#23583e,#0f382d 62%,#1c5541); box-shadow:22px 24px 38px #082e2694,inset 0 0 0 1px #ffffff0e; transform:rotate(-9deg); }
.hero-plastic-top { display:flex; justify-content:space-between; color:#f6e0a8; font-size:18px; }
.hero-plastic-top .brand { color:#fff; font-size:13px; gap:6px; }
.hero-plastic-top .brand-mark { width:20px; height:20px; border-radius:6px; }
.hero-plastic-top .brand-mark svg { width:14px; height:14px; }
.hero-plastic-mid { margin-top:20px; color:#adc9ad; font-size:8px; font-weight:800; letter-spacing:.16em; }
.hero-plastic-card > strong { margin-top:6px; color:#fffbea; font-size:18px; letter-spacing:.11em; white-space:nowrap; }
.hero-plastic-bottom { display:flex; align-items:center; justify-content:space-between; margin-top:auto; color:#d4e2cc; font-size:8px; }
.hero-plastic-bottom b { color:#ebd695; font-size:11px; }
.hero-gold-circle { position:absolute; width:206px; height:206px; right:-10px; top:-32px; border-radius:50%; border:35px solid #dbbd6c9c; opacity:.75; }
.hero-mini-proof { position:absolute; z-index:3; right:75px; bottom:-8px; display:flex; align-items:center; gap:5px; padding:8px 11px; border-radius:10px; background:#fff9e9; color:#39553a; font-weight:700; font-size:10px; box-shadow:0 13px 22px #0c322549; }
.dashboard-overview-bar { display:flex; justify-content:space-between; align-items:flex-end; gap:12px; margin:0 0 14px; }
.dashboard-overview-bar h2 { margin:3px 0 0; font-size:20px; }
.dashboard-period { color:#69806a; font-size:11px; display:inline-flex; align-items:center; gap:7px; padding:8px 11px; border:1px solid #dce9d7; background:#fffefa; border-radius:9px; text-transform:capitalize; }
.stat-card { border-top:3px solid #dfc585; padding:21px 22px; }
.stat-card:nth-child(2) { border-color:#86b797; }
.stat-card:nth-child(3) { border-color:#237c58; }
.stat-icon { color:#1c6a4c; background:#e8f3e7; }
.stat-icon.amber { color:#936d28; background:#faf0d8; }
.stat-icon.green { color:#166247; background:#dff2e4; }
.stat-value { display:flex; align-items:baseline; gap:8px; }
.stat-value small { color:#728776; font-size:10px; font-weight:690; }
.dashboard-workspace { grid-template-columns:minmax(0,1.35fr) minmax(300px,.85fr); gap:20px; }
.dashboard-activity-list { display:grid; }
.dashboard-activity-row { display:flex; align-items:center; gap:11px; padding:13px 0; border-top:1px solid #e9eee7; min-width:0; }
.dashboard-activity-row:hover { background:#f7faf2; }
.has-photo { padding:0; overflow:hidden; }
.has-photo img { width:100%; height:100%; object-fit:cover; display:block; }
.activity-avatar { display:grid; place-items:center; flex:none; width:36px; height:36px; border-radius:12px; color:#86682e; background:#f9edce; font-weight:800; font-size:11px; }
.activity-copy, .activity-amount { display:grid; gap:2px; min-width:0; }
.activity-copy { flex:1; }
.activity-copy strong, .activity-amount strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; }
.activity-copy small, .activity-amount small { color:#758776; font-size:10px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.activity-amount { text-align:right; }
.dashboard-activity-row > .icon { color:#a5b59f; }
.dashboard-wallet .dash-method-list { display:grid; gap:8px; }
.dash-method { display:flex; align-items:center; gap:11px; padding:10px; border:1px solid #e4ede0; border-radius:11px; background:#f9fbf5; min-width:0; }
.dash-method > span { display:grid; place-items:center; width:33px; height:33px; border-radius:9px; flex:none; background:#faefd7; color:#a57931; }
.dash-method div { min-width:0; }
.dash-method strong, .dash-method small { display:block; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.dash-method strong { font-size:11px; }
.dash-method small { color:#748274; font-size:10px; }
.wallet-empty-state { display:grid; justify-items:start; gap:8px; background:#f6faf2; border:1px dashed #c8dfc7; border-radius:13px; padding:18px; }
.wallet-empty-state > span { display:grid; place-items:center; width:42px; height:42px; background:#e7f0e0; color:#276b4f; border-radius:12px; }
.wallet-empty-state strong { font-size:13px; }
.wallet-empty-state p { margin:0; color:#6e8070; font-size:11px; }
.trust-step-icon { color:#a07831; background:#fbf1d9; }
.rate-pair strong { color:#1b7151; }
/* Simulateur : gestes clairs, cartes et pays lisibles. */
.step-item.current .step-index { background:#176d4e; border-color:#176d4e; box-shadow:0 5px 11px #146a4940; }
.step-item.done .step-index { background:#e1f3e4; border-color:#9cc9a8; color:#195d41; }
.choice-card.selected { background:#f2f9ef; border-color:#7daf89; box-shadow:0 0 0 2px #dcefd9; }
.choice-card .choice-icon { color:#1c684b; background:#ebf4e8; }
.choice-card.selected .choice-radio { border-color:#19734f; }
.choice-card.selected .choice-radio:after { background:#19734f; }
.flow-main { border:1px solid #deebd9; }
.flow-kicker { display:block; color:#a1772e; font-size:10px; font-weight:850; letter-spacing:.15em; margin-bottom:10px; }
.flow-methods { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:27px 0 23px; }
.flow-method { display:flex; flex-direction:column; position:relative; gap:11px; min-height:182px; padding:19px; border:1px solid #dae6d8; border-radius:16px; background:linear-gradient(160deg,#fffefa,#f8faf4); text-align:left; color:#1d422f; box-shadow:0 12px 25px #193d2610; }
.flow-method:hover { border-color:#8fbd98; transform:translateY(-2px); }
.flow-method.selected { border-color:#3c946b; background:linear-gradient(160deg,#f3fbef,#fffdfa); box-shadow:0 0 0 3px #d8edda,0 16px 28px #175c3222; }
.flow-method-icon { display:grid; place-items:center; width:49px; height:49px; border-radius:14px; color:#195a3d; background:#e5f2e2; }
.flow-method-icon.card { color:#705623; background:linear-gradient(140deg,#f9ebc2,#e9cb83); }
.flow-method-copy { display:grid; gap:5px; padding-right:13px; }
.flow-method-copy strong { font-size:15px; line-height:1.25; }
.flow-method-copy small { color:#697d6f; font-size:11px; line-height:1.4; }
.flow-method-copy em { font-style:normal; font-weight:800; color:#285f42; }
.flow-method .choice-radio { position:absolute; top:20px; right:18px; border:2px solid #a9c5ac; border-radius:50%; width:17px; height:17px; }
.flow-method.selected .choice-radio { border-color:#258057; }
.flow-method.selected .choice-radio:after { content:''; display:block; background:#258057; border-radius:50%; width:7px; height:7px; margin:3px; }
.flow-safety { display:flex; align-items:flex-start; gap:8px; padding:12px 13px; color:#47654f; background:#f3f8ed; border:1px solid #dcebd5; border-radius:10px; font-size:11px; line-height:1.45; }
.flow-safety > svg { color:#257754; width:17px; height:17px; }
.flow-main .wizard-actions { margin-top:23px; }
.flow-summary { background:#fafff7; border:1px solid #dae8d4; }
.summary-eyebrow { display:flex; align-items:center; gap:5px; color:#98712c; font-size:10px; letter-spacing:.1em; font-weight:800; }
.flow-summary .summary-big { background:linear-gradient(130deg,#155940,#287b57); border-radius:14px; padding:18px; color:#fff; }
.flow-summary .summary-big small, .flow-summary .summary-big strong { color:#fff; }
.flow-summary .summary-big span { display:block; margin-top:8px; color:#d7edd8; font-size:10px; }
.flow-summary .detail-line strong { overflow-wrap:anywhere; }
.flow-summary .section-note { background:#f6f0e1; border-color:#eadcb4; color:#6d613f; }
.flow-method-list { margin:12px 0; }
.flow-add { margin:12px 0 18px; }
.flow-empty { display:flex; align-items:flex-start; gap:8px; padding:14px; color:#677b67; background:#f8faf5; border-radius:10px; font-size:11px; }
.flow-origin { margin-top:10px; }
.flow-origin label { display:block; font-weight:700; margin-bottom:7px; }
.flow-origin .form-hint { display:block; margin-top:6px; }
.flow-recipient-form { margin-top:20px; }
.flow-recipient-form .form-group { margin-bottom:15px; }
.flow-recipient-form .form-hint { margin-top:7px; display:block; }
.detect-pending, .detect-result { display:flex; align-items:center; gap:10px; padding:10px 12px; margin-top:10px; border-radius:10px; color:#637668; background:#f5f7ef; font-size:11px; }
.detect-result.valid { color:#285a40; background:#e9f6ea; border:1px solid #c8e4cd; }
.detect-result.blocked { color:#815e22; background:#fcf5e8; border:1px solid #ecdcb9; }
.detect-flag { display:grid; place-items:center; flex:none; width:35px; height:35px; border:1px solid #e6ebdd; border-radius:10px; background:#fffefa; font-size:23px; line-height:1; }
.detect-result strong, .detect-result small { display:block; }
.detect-result strong { font-size:12px; }
.detect-result small { color:inherit; opacity:.88; line-height:1.4; }
.flow-saved-recipients { margin:20px 0 0; border-top:1px solid var(--border); padding-top:13px; }
.flow-saved-recipient { display:flex; align-items:center; gap:10px; width:100%; padding:9px; border:1px solid #e1eade; border-radius:10px; background:#fffefa; text-align:left; color:var(--text); margin:7px 0; }
.flow-saved-recipient > span:nth-child(2) { flex:1; min-width:0; }
.flow-saved-recipient strong, .flow-saved-recipient small { display:block; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.flow-saved-recipient strong { font-size:11px; }
.flow-saved-recipient small { color:#6f806f; font-size:10px; }
.flow-saved-recipient:hover { border-color:#90bf9d; background:#f6fbf4; }
.flow-recipient-selected { display:flex; align-items:center; gap:11px; padding:17px; margin:22px 0; background:#f5faf0; border:1px solid #cce3c7; border-radius:13px; }
.flow-recipient-selected > span:nth-child(2) { flex:1; min-width:0; }
.flow-recipient-selected strong, .flow-recipient-selected small { display:block; }
.flow-recipient-selected strong { font-size:13px; }
.flow-recipient-selected small { color:#69806d; font-size:11px; overflow-wrap:anywhere; }
.flow-quick-amounts { display:flex; gap:7px; margin:12px 0 17px; flex-wrap:wrap; }
.flow-amount-chip { border:1px solid #d7e5d2; border-radius:999px; padding:7px 13px; background:#f7faf4; color:#25644a; font-weight:700; font-size:11px; }
.flow-amount-chip:hover { background:#e6f4e5; border-color:#9dc7a4; }
.flow-quote-empty { margin-top:18px; }
.quote-highlight { background:linear-gradient(105deg,#e5f3e3,#f8f5e8); border-color:#cae4c8; }
.quote-highlight strong, .quote-lines .detail-line.total strong, .review-amount strong { color:#155e43; }
.review-amount { background:#eaf7e9; border-color:#cde4c7; }
/* Portefeuille de démo. */
.wallet-head { display:flex; align-items:center; gap:17px; margin:23px 0 19px; padding:19px 23px; background:linear-gradient(110deg,#194e37,#267152); color:#fff; border-radius:18px; }
.wallet-head-mark { display:grid; place-items:center; width:43px; height:43px; flex:none; color:#f4dda3; background:#ffffff1f; border-radius:12px; }
.wallet-head > div { flex:1; min-width:0; }
.wallet-head strong { display:block; font-size:15px; }
.wallet-head p { margin:4px 0 0; color:#e0eee0; font-size:11px; line-height:1.5; }
.wallet-head-count { display:grid; justify-items:center; color:#f8e7b7; font-size:25px; font-weight:800; line-height:1; }
.wallet-head-count small { font-size:9px; font-weight:650; margin-top:4px; }
.wallet-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:19px; }
.wallet-panel { padding:22px; min-width:0; }
.wallet-panel-top { display:flex; justify-content:space-between; align-items:center; color:#96732d; font-weight:800; letter-spacing:.12em; font-size:10px; margin-bottom:18px; }
.wallet-visual { display:flex; flex-direction:column; width:min(100%,340px); min-height:176px; padding:18px 20px; border-radius:17px; color:#fff; background:radial-gradient(circle at 95% 0,#5f9d7466,transparent 42%),linear-gradient(124deg,#11523e,#0e362b 72%); box-shadow:0 17px 30px #143f2e33; }
.wallet-visual-brand .brand { color:white; font-size:14px; gap:7px; }
.wallet-visual-brand .brand-mark { width:25px; height:25px; border-radius:7px; }
.wallet-visual-brand .brand-mark svg { width:17px; height:17px; }
.wallet-visual-chip { margin:15px 0 5px; color:#e5cb89; font-size:21px; }
.wallet-visual > strong { font-size:17px; letter-spacing:.07em; white-space:nowrap; }
.wallet-visual > span:last-child { display:flex; justify-content:space-between; align-items:center; margin-top:auto; color:#d6e5ce; font-size:8px; letter-spacing:.08em; }
.wallet-visual b { color:#f3dd9c; font-size:12px; }
.wallet-mobile-visual { display:flex; align-items:center; gap:16px; width:min(100%,340px); min-height:176px; padding:21px; background:radial-gradient(circle at 95% 9%,#f5e1a9 0,transparent 37%),#e5f3e3; border:1px solid #cce5cf; border-radius:17px; }
.wallet-mobile-visual > span { display:grid; place-items:center; flex:none; width:52px; height:52px; color:#195f45; background:#fffefa; border-radius:16px; }
.wallet-mobile-visual strong, .wallet-mobile-visual small { display:block; }
.wallet-mobile-visual strong { color:#235037; font-size:16px; line-height:1.23; }
.wallet-mobile-visual small { color:#668069; margin-top:8px; font-size:10px; }
.wallet-list { display:grid; align-content:start; min-height:116px; padding:15px 0 10px; }
.wallet-item { display:flex; align-items:center; gap:10px; padding:9px 0; border-bottom:1px solid #e9eee6; min-width:0; }
.wallet-item-icon { display:grid; place-items:center; flex:none; width:32px; height:32px; border-radius:9px; color:#87682b; background:#f9efd8; }
.wallet-item-icon.mobile { color:#1a6b49; background:#e7f4e6; }
.wallet-item-copy { min-width:0; flex:1; }
.wallet-item-copy strong, .wallet-item-copy small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.wallet-item-copy strong { font-size:11px; }
.wallet-item-copy small { color:#718272; font-size:10px; }
.wallet-empty { color:#718272; font-size:12px; line-height:1.55; margin:auto 0; }
.wallet-add { width:100%; justify-content:center; white-space:normal; }
.wallet-safety { margin-top:20px; }
/* Barre de navigation mobile, sans masquer le menu complet. */
.mobile-tabbar, .mobile-brand { display:none; }
@media (max-width: 1000px) {
  .dashboard-workspace { grid-template-columns:minmax(0,1fr) minmax(255px,.85fr); }
  .hero-art { width:250px; }
  .hero-plastic-card { right:0; }
}
@media (max-width: 767px) {
  .public-auth .auth-visual { display:none; }
  .public-auth { width:100%; min-height:100svh; margin:0; border:0; border-radius:0; box-shadow:none; background:radial-gradient(circle at 5% 5%,#eaf4dc 0,transparent 38%),radial-gradient(circle at 97% 76%,#d4e8d7 0,transparent 45%),linear-gradient(145deg,#e1eccc,#f4f4e6 48%,#d1e7da); }
  .public-auth .auth-content { background:transparent; }
  .public-auth.auth-view-login .auth-mobile-stage { margin-top:clamp(43px,7svh,65px); }
  .public-auth.auth-view-register .auth-mobile-stage { margin-top:clamp(35px,6svh,57px); }
  .public-auth .auth-mobile-stage { background:radial-gradient(circle at 40% 15%,#39916c,transparent 43%),linear-gradient(126deg,#165c43,#1c6649 63%,#114a38); }
  .public-auth .auth-stage-yellow { background:linear-gradient(130deg,#f6e4b5,#d4b465); }
  .public-auth .auth-stage-green { background:linear-gradient(145deg,#7db68a,#529a70); opacity:.65; }
  .public-auth .auth-card { background:#fffefa; box-shadow:0 24px 50px #1b47332d; }
  .public-auth .auth-form .input, .public-auth .auth-form .select { background:#f0f5ec; }
  .public-auth .auth-submit, .public-auth .auth-submit:not(:disabled):hover { background:linear-gradient(100deg,#0d5840,#218058); box-shadow:0 9px 18px #16543c33; }
  .public-auth.auth-view-register .auth-submit, .public-auth.auth-view-register .auth-submit:not(:disabled):hover { margin-top:11px; }
  .public-auth .auth-aftercard .auth-passkey-hint, .public-auth .auth-aftercard .auth-security-note, .public-auth .auth-aftercard .auth-disclosure { color:#3e624a; }
  .public-auth .auth-aftercard .auth-explore-link { color:#185b41; }
  .mobile-brand { display:inline-flex; }
  .mobile-brand .brand { color:#185c40; font-size:16px; gap:6px; }
  .mobile-brand .brand-mark { width:27px; height:27px; border-radius:8px; }
  .mobile-brand .brand-mark svg { width:18px; height:18px; }
  .topbar .crumb { display:none; }
  .topbar { padding:0 20px; height:67px; }
  .page-wrap { padding-bottom:calc(120px + env(safe-area-inset-bottom)); }
  .mobile-tabbar { position:fixed; display:flex; align-items:stretch; justify-content:space-around; gap:3px; left:50%; bottom:0; transform:translateX(-50%); width:min(100%,520px); padding:8px 8px calc(8px + env(safe-area-inset-bottom)); z-index:65; background:#fffefaed; border:1px solid #d8e6d4; border-bottom:0; border-radius:18px 18px 0 0; box-shadow:0 -10px 30px #14402c1f; backdrop-filter:blur(17px); }
  .mobile-tabbar a { display:grid; justify-items:center; align-content:center; gap:3px; flex:1; min-width:0; min-height:48px; color:#69806a; font-size:9px; font-weight:730; }
  .mobile-tabbar a > span { display:grid; place-items:center; width:34px; height:27px; border-radius:10px; }
  .mobile-tabbar a.active { color:#135f43; }
  .mobile-tabbar a.active > span { color:#165f43; background:#e4f2e3; }
  .mobile-tabbar a small { font-size:9px; }
  .dashboard-workspace, .wallet-grid { grid-template-columns:1fr; }
  .dashboard-hero { min-height:260px; padding:28px; }
  .hero-art { right:-85px; opacity:.38; }
  .hero-plastic-card { transform:rotate(-11deg) scale(.9); transform-origin:center; }
  .dashboard-overview-bar { align-items:flex-start; }
  .dashboard-period { white-space:nowrap; }
}
@media (max-width: 540px) {
  .wizard-stepper { overflow:hidden; justify-content:space-between; }
  .step-item { min-width:0; flex:1 1 auto; }
  .step-item:last-child { flex:0 0 auto; }
  .step-item:after { min-width:0; margin:0 6px; }
  .step-index { flex:none; width:27px; height:27px; }
  .dashboard-hero { min-height:256px; padding:25px 23px; }
  .hero-copy h2 { font-size:26px; }
  .hero-copy p { font-size:11px; max-width:250px; }
  .hero-art { top:63px; right:-185px; opacity:.24; }
  .hero-copy .btn-white { position:relative; z-index:4; white-space:normal; text-align:center; font-size:11px; }
  .dashboard-overview-bar h2 { font-size:17px; }
  .dashboard-period { display:none; }
  .activity-amount strong { font-size:11px; }
  .flow-methods { grid-template-columns:1fr; gap:9px; margin:18px 0; }
  .flow-method { min-height:98px; flex-direction:row; align-items:center; padding:13px; }
  .flow-method-icon { width:43px; height:43px; flex:none; }
  .flow-method-copy { gap:3px; padding-right:22px; }
  .flow-method-copy strong { font-size:13px; }
  .flow-method-copy small { font-size:10px; }
  .flow-method .choice-radio { top:18px; right:13px; }
  .flow-recipient-selected { flex-wrap:wrap; padding:13px; }
  .flow-recipient-selected .btn { margin-left:auto; }
  .wallet-head { padding:17px; gap:9px; }
  .wallet-head strong { font-size:13px; }
  .wallet-head p { font-size:10px; }
  .wallet-panel { padding:17px; }
  .wallet-visual,.wallet-mobile-visual { width:100%; }
  .method-offer-head { padding:26px 24px 32px; }
  .method-offer-body { padding:20px 22px 24px; }
  .method-offer-head h2 { font-size:26px; }
  .wizard-actions .right-actions .btn { white-space:normal; text-align:center; }
}
@media (max-width: 370px) {
  .stats-grid { grid-template-columns:minmax(0,1fr); }
  .stats-grid .stat-card:last-child { grid-column:auto; }
  .stat-card { min-width:0; }
}
/* Une entrée légère ; seuls les actifs nécessaires sont chargés après le bootstrap. */
.demo-banner-short,.mobile-dashboard { display:none; }
@media (max-width: 767px) {
  :root { --canvas:#f5f7f1; }
  html { scroll-padding-top:76px; }
  body { background:#f5f7f1; }
  .desktop-dashboard { display:none; }
  .mobile-dashboard { display:block; padding-bottom:8px; }
  .topbar { height:66px; padding:0 17px; border-bottom:1px solid #e8ede4; background:#f8faf6ee; box-shadow:0 4px 20px #153c2710; backdrop-filter:blur(20px); }
  .topbar > div:first-child { gap:9px !important; }
  .topbar .menu-toggle { border-radius:12px; background:#e9f0e7; color:#23543c; width:39px; height:39px; }
  .mobile-brand .brand { color:#174c38; font-size:17px; letter-spacing:-.04em; }
  .mobile-brand .brand-mark { width:29px; height:29px; border-radius:9px; }
  .top-actions { gap:3px; }
  .top-actions .profile-button, .top-actions > a[href="#/help"] { display:none; }
  .top-actions .top-search, .top-actions > a[href="#/notifications"] { width:40px; height:40px; color:#295540; border-radius:13px; }
  .top-actions .top-search { background:none; }
  .top-actions > a[href="#/notifications"] { background:#e9f0e7; }
  .page-wrap { padding:15px 17px calc(110px + env(safe-area-inset-bottom)); }
  .demo-banner { padding:9px 12px; border-radius:12px; border:1px solid #dce7d7; background:#eff5ea; color:#48644e; font-size:11px; margin-bottom:19px; align-items:center; }
  .demo-banner > svg { width:16px; height:16px; color:#277453; }
  .demo-banner-full { display:none; }
  .demo-banner-short { display:inline; }
  .route-dashboard .demo-banner, .route-dashboard .page-footer { display:none; }
  .route-dashboard { padding-top:20px; }
  .mobile-tabbar { left:0; width:100%; max-width:none; transform:none; height:auto; min-height:76px; justify-content:space-between; padding:10px 9px calc(7px + env(safe-area-inset-bottom)); border:1px solid #e1e9df; border-bottom:0; border-radius:24px 24px 0 0; background:#fffefaf4; box-shadow:0 -12px 36px #153f2a21; }
  .mobile-tabbar a { gap:2px; min-height:56px; color:#789080; font-weight:730; }
  .mobile-tabbar a > span { width:40px; height:34px; border-radius:12px; }
  .mobile-tabbar a svg { width:20px; height:20px; }
  .mobile-tabbar a small { font-size:10px; letter-spacing:-.01em; }
  .mobile-tabbar a.active:not(.mobile-tab-send) > span { background:#e6f2e5; color:#146045; }
  .mobile-tabbar a.mobile-tab-send { color:#1b5941; }
  .mobile-tabbar a.mobile-tab-send > span, .mobile-tabbar a.mobile-tab-send.active > span { width:48px; height:48px; margin-top:-16px; border:3px solid #fffefa; border-radius:16px; color:#fff; background:linear-gradient(135deg,#27845b,#0e553d); box-shadow:0 8px 16px #1354374d; }
  .mobile-tabbar a.mobile-tab-send svg { width:22px; height:22px; }
  .app-welcome { padding:0 1px 17px; }
  .app-kicker { color:#825b25; font-size:10px; font-weight:850; letter-spacing:.16em; }
  .app-welcome h1 { margin:5px 0 2px; color:#153d2e; font-size:30px; line-height:1.14; letter-spacing:-.055em; }
  .app-welcome h1 span { color:#825b25; }
  .app-welcome p { margin:0; color:#596f5e; font-size:12px; }
  .app-overview-card { position:relative; overflow:hidden; display:flex; flex-direction:column; min-height:215px; padding:21px 23px 18px; border:1px solid #2c7855; border-radius:24px; color:#fff; background:radial-gradient(circle at 85% 8%,#72ac6a70,transparent 40%),linear-gradient(125deg,#103d2e,#126649 74%,#1d7955); box-shadow:0 18px 33px #17483136; }
  .app-overview-card:before { content:''; position:absolute; width:190px; height:190px; right:-95px; top:52px; border-radius:50%; border:1px solid #f5d8946e; box-shadow:0 0 0 30px #d6ba6a12,0 0 0 62px #d6ba6a0b; pointer-events:none; }
  .app-overview-card:after { content:'✦'; position:absolute; right:36px; top:84px; color:#f3d89793; font-size:44px; line-height:1; pointer-events:none; }
  .app-overview-top,.app-overview-foot { display:flex; align-items:center; justify-content:space-between; gap:9px; position:relative; z-index:1; }
  .app-overview-top { font-size:10px; font-weight:780; letter-spacing:.13em; color:#e2f0df; }
  .app-demo-pill { padding:5px 8px; border:1px solid #e7d3a476; border-radius:999px; background:#f9ecc21c; color:#f6dda3; font-size:9px; letter-spacing:.06em; white-space:nowrap; }
  .app-overview-number { position:relative; z-index:1; margin-top:18px; font-size:58px; font-weight:750; line-height:.96; letter-spacing:-.07em; font-variant-numeric:tabular-nums; }
  .app-overview-label { position:relative; z-index:1; margin-top:5px; font-size:12px; color:#e1eedc; }
  .app-overview-foot { margin-top:auto; padding-top:13px; border-top:1px solid #e9f1db36; color:#e4ead5; font-size:10px; }
  .app-overview-foot > span:first-child { display:inline-flex; align-items:center; gap:6px; }
  .app-overview-foot svg { width:14px; height:14px; }
  .app-overview-symbol { color:#f4ddae; font-size:13px; font-weight:850; letter-spacing:-.03em; }
  .app-overview-symbol span { font-size:12px; margin-left:3px; }
  .app-snapshot { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; margin:13px 0 24px; }
  .app-snapshot > div { min-width:0; display:grid; grid-template-columns:29px 1fr; grid-template-rows:27px 19px; align-items:center; column-gap:7px; padding:13px 12px; border-radius:17px; border:1px solid #e5ecdf; background:#fffefa; box-shadow:0 7px 18px #173b2710; }
  .app-snapshot-icon { width:27px; height:27px; display:grid; place-items:center; grid-row:span 2; color:#1d7550; border-radius:9px; background:#e7f3e7; }
  .app-snapshot-icon.gold { color:#906c29; background:#f7ebca; }
  .app-snapshot-icon svg { width:15px; height:15px; }
  .app-snapshot strong { align-self:end; color:#183e30; line-height:1; font-size:20px; font-variant-numeric:tabular-nums; }
  .app-snapshot small { align-self:start; margin-top:3px; color:#5b735e; font-size:10px; white-space:nowrap; }
  .app-section-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:24px 1px 12px; }
  .app-section-head h2 { margin:0; color:#193e2f; font-size:18px; letter-spacing:-.035em; line-height:1.2; }
  .app-section-head a { display:inline-flex; align-items:center; gap:4px; color:#267351; font-weight:750; font-size:11px; white-space:nowrap; }
  .app-section-head a svg { width:14px; height:14px; }
  .app-shortcuts { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
  .app-shortcut { min-width:0; display:flex; flex-direction:column; align-items:center; min-height:96px; padding:13px 4px 9px; border:1px solid #e7ebe3; border-radius:17px; background:#fffefa; color:#254836; text-align:center; box-shadow:0 6px 16px #163b2810; }
  .app-shortcut:hover, .app-shortcut:focus-visible { color:#175a40; border-color:#afd1b3; background:#f8fcf6; }
  .app-shortcut-icon { width:36px; height:36px; display:grid; place-items:center; margin-bottom:7px; border-radius:12px; background:#e4f2e8; color:#17694c; }
  .app-shortcut-icon.color-1 { background:#f7eccb; color:#906b29; }
  .app-shortcut-icon.color-2 { background:#e9eee4; color:#527955; }
  .app-shortcut-icon.color-3 { background:#efe9da; color:#94713f; }
  .app-shortcut-icon svg { width:18px; height:18px; }
  .app-shortcut strong { font-size:11px; line-height:1.2; }
  .app-shortcut small { display:block; margin-top:3px; color:#617665; font-size:9px; line-height:1.25; }
  .app-activity-list,.app-method-list { padding:3px 15px; border:1px solid #e4eae0; border-radius:20px; background:#fffefa; box-shadow:0 10px 23px #173b2812; }
  .app-activity-item { display:flex; align-items:center; gap:10px; padding:13px 0; border-bottom:1px solid #eaf0e7; min-width:0; }
  .app-activity-item:last-child,.app-method-row:last-child { border-bottom:0; }
  .app-activity-avatar { flex:none; width:37px; height:37px; display:grid; place-items:center; border-radius:12px; background:#e8f2e7; color:#246648; font-size:11px; font-weight:800; }
  .app-activity-item:nth-child(2n) .app-activity-avatar { background:#f7efd8; color:#785d28; }
  .app-activity-copy { min-width:0; flex:1; }
  .app-activity-copy strong,.app-activity-copy small { display:block; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
  .app-activity-copy strong { color:#204330; font-size:12px; }
  .app-activity-copy small { color:#607666; font-size:10px; }
  .app-activity-amount { flex:none; text-align:right; }
  .app-activity-amount strong,.app-activity-amount small { display:block; }
  .app-activity-amount strong { color:#224a37; font-size:11px; font-variant-numeric:tabular-nums; }
  .app-activity-amount small { margin-top:2px; color:#617865; font-size:9px; }
  .app-empty { padding:26px 10px; text-align:center; }
  .app-empty-icon { width:40px; height:40px; display:grid; place-items:center; margin:0 auto 10px; border-radius:13px; background:#eaf3e6; color:#b08d4a; }
  .app-empty strong { color:#1d4b35; font-size:13px; }
  .app-empty p { margin:4px 0 0; font-size:11px; color:#657967; }
  .app-method-row,.app-method-empty { display:flex; gap:11px; align-items:center; padding:12px 0; border-bottom:1px solid #eaf0e7; }
  .app-method-icon { flex:none; display:grid; place-items:center; width:36px; height:36px; border-radius:11px; background:#f4ecd1; color:#816521; }
  .app-method-row > span:nth-child(2),.app-method-empty > div { flex:1; min-width:0; }
  .app-method-row strong,.app-method-row small { display:block; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
  .app-method-row strong,.app-method-empty strong { color:#204634; font-size:12px; }
  .app-method-row small,.app-method-empty p { margin:2px 0 0; color:#657968; font-size:10px; }
  .app-method-row > svg { color:#23815b; width:16px; height:16px; }
  .app-trust-foot { display:flex; gap:7px; align-items:flex-start; margin:17px 2px 5px; color:#5e7662; font-size:10px; }
  .app-trust-foot svg { flex:none; width:15px; height:15px; }
  .page-title-row h1 { font-size:25px; letter-spacing:-.04em; }
  .page-title-row p { font-size:12px; }
  .route-send .page-title-row { margin-bottom:12px; }
  .route-send .page-title-row p { display:none; }
  .route-send .page-actions .btn { width:auto; min-height:34px; padding:7px 11px; background:#edf4eb; border-color:#e0eadc; color:#296147; font-size:11px; }
  .route-send .wizard-stepper { margin-top:16px; margin-bottom:17px; }
  .route-send .wizard-main { padding:20px 18px; border-radius:21px; }
  .route-send .wizard-main h2 { font-size:21px; line-height:1.24; }
  .route-send .wizard-sub { font-size:12px; line-height:1.5; margin-bottom:16px; }
  .route-send .flow-methods { margin:14px 0 17px; }
  .route-send .flow-method { min-height:90px; padding:13px; border-radius:15px; }
  .route-send .flow-safety { font-size:10px; }
  .route-send .wizard-actions { padding-top:16px; }
  .route-payment-methods .wallet-head { margin:15px 0; border-radius:19px; }
  .route-payment-methods .wallet-grid .wallet-panel { border-radius:20px; }
}
@media (max-width: 360px) {
  .app-welcome h1 { font-size:27px; }
  .app-overview-card { min-height:208px; padding:19px 18px 16px; }
  .app-overview-number { font-size:54px; }
  .app-shortcut { min-height:85px; padding:11px 2px 8px; }
  .app-shortcut strong { font-size:10px; }
  .app-shortcut small { display:none; }
  .app-activity-list,.app-method-list { padding:2px 11px; }
  .app-activity-amount strong { font-size:10px; }
  .app-activity-amount small { display:none; }
  .mobile-tabbar { padding-left:4px; padding-right:4px; }
  .mobile-tabbar a small { font-size:10px; }
}
/* Indicateur de notification assorti aux accents dorés. */
.top-actions .dot { background:#c39d4d; border-color:#fffefa; }
/* Bascule clair / sombre : visible même avant la connexion, sans perdre les champs saisis. */
.theme-toggle { display:grid; place-items:center; flex:none; width:40px; height:40px; padding:0; border:1px solid #d9e6d8; border-radius:12px; background:#f2f7ef; color:#235b41; }
.theme-toggle .icon { width:19px; height:19px; }
.theme-toggle:not(:disabled):hover { background:#e6f0e4; color:#17543d; }
.theme-toggle:focus-visible { outline:3px solid #d5ba73; outline-offset:2px; }
.public-auth .auth-desktop-brand { right:94px; }
.public-auth .auth-theme-desktop { position:absolute; z-index:4; top:22px; right:32px; }
.public-auth .auth-theme-mobile { display:none; }
.admin-auth .auth-top { display:flex; align-items:center; gap:12px; }
.admin-auth .auth-top .theme-toggle { width:40px; height:40px; padding:0; border:1px solid #d9e6d8; background:#f2f7ef; color:#235b41; }
@media (max-width:767px) {
  .top-actions .top-theme-toggle { width:40px; height:40px; border-radius:13px; }
  .public-auth .auth-theme-desktop { display:none; }
  .public-auth .auth-theme-mobile { position:absolute; z-index:4; display:grid; top:14px; right:18px; width:36px; height:36px; border:1px solid #ffffff63; background:#ffffff2b; color:#fff; }
  .public-auth .auth-theme-mobile:not(:disabled):hover { color:#fff; background:#ffffff45; }
  .admin-auth .auth-top { justify-content:space-between; }
}
/* Évite un contraste transitoirement illisible lors du changement de palette. */
html.theme-changing *, html.theme-changing *::before, html.theme-changing *::after { transition-duration:0s !important; }
/* Thème sombre : fond noir, surfaces graphite et texte blanc ; vert/or restent des accents. */
html[data-theme="light"] { color-scheme:light; }
html[data-theme="dark"] {
  color-scheme:dark;
  --navy:#ecf5ed; --navy-deep:#0c110e; --navy-soft:#1b3022;
  --blue:#92dfad; --blue-dark:#b0efc6; --blue-pale:#1a3222;
  --canvas:#0b0e0d; --white:#181e1a; --text:#f0f6ef; --muted:#b0c3b2;
  --border:#3a4b3d; --green:#91d8ab; --green-pale:#193323;
  --amber:#ebd197; --amber-pale:#32291b; --gold:#e2c27d;
  --shadow:0 17px 44px #0007;
  --night:#0b0e0d; --surface:#181e1a; --raised:#202820;
  --soft:#253027; --stroke:#3a4b3d; --ink:#f0f6ef; --subtle:#b0c3b2;
  --mint:#a6e9ba; --honey:#efd397;
}
html[data-theme="dark"] body { background:var(--night); color:var(--ink); }
html[data-theme="dark"] :focus-visible { outline-color:var(--honey); }
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .admin-auth .auth-top .theme-toggle { background:#263329; color:var(--honey); border-color:#547055; }
html[data-theme="dark"] .theme-toggle:hover,
html[data-theme="dark"] .admin-auth .auth-top .theme-toggle:hover { background:#354536; color:#fff1bf; }
/* Chromes client et admin. */
html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .admin-shell .sidebar { background:linear-gradient(165deg,#111813,#0b110d 72%,#121d15); color:#d9eadd; border-color:var(--stroke); }
html[data-theme="dark"] .sidebar-section,
html[data-theme="dark"] .sidebar-bottom { color:#adbea9; border-color:var(--stroke); }
html[data-theme="dark"] .nav-item { color:#d3e1d1; }
html[data-theme="dark"] .nav-item:hover { color:#fff; background:#26342a; }
html[data-theme="dark"] .nav-item.active,
html[data-theme="dark"] .admin-shell .nav-item.active { background:#30372c; color:var(--honey); box-shadow:inset 3px 0 #dfbb6d,0 7px 16px #0005; }
html[data-theme="dark"] .side-tip,
html[data-theme="dark"] .admin-sidebar-note { background:#1b2820; border-color:#4e674f; }
html[data-theme="dark"] .side-tip p { color:var(--subtle); }
html[data-theme="dark"] .topbar { color:var(--ink); background:#141a16f2; border-bottom-color:var(--stroke); }
html[data-theme="dark"] .top-actions .dot { background:var(--honey); border-color:#141a16; }
html[data-theme="dark"] .crumb,
html[data-theme="dark"] .profile-button small,
html[data-theme="dark"] .page-footer { color:var(--subtle); }
html[data-theme="dark"] .crumb strong,
html[data-theme="dark"] .profile-button strong { color:var(--ink); }
html[data-theme="dark"] .profile-button { color:var(--ink); border-color:var(--stroke); }
html[data-theme="dark"] .top-search { color:#c6d5c4; background:#202820; border-color:var(--stroke); }
html[data-theme="dark"] .top-search:hover { color:#fff; border-color:#6b936e; }
html[data-theme="dark"] .top-search kbd { color:var(--subtle); background:#27332a; border-color:#4b604f; }
html[data-theme="dark"] .icon-button { color:#d4e4d3; }
html[data-theme="dark"] .icon-button:not(.theme-toggle):hover { color:var(--mint); background:#283c2c; }
html[data-theme="dark"] .avatar,
html[data-theme="dark"] .person-icon { background:#294430; color:#e2f5e5; }
html[data-theme="dark"] .mobile-tabbar { color:var(--ink); background:#161d18f7; border-color:var(--stroke); box-shadow:0 -12px 34px #0008; }
html[data-theme="dark"] .mobile-tabbar a { color:#bac8b9; }
html[data-theme="dark"] .mobile-tabbar a.active { color:var(--mint); }
html[data-theme="dark"] .mobile-tabbar a.active:not(.mobile-tab-send)>span { background:#294b34; color:#b9efc7; }
html[data-theme="dark"] .mobile-tabbar a.mobile-tab-send { color:var(--mint); }
html[data-theme="dark"] .mobile-tabbar a.mobile-tab-send>span,
html[data-theme="dark"] .mobile-tabbar a.mobile-tab-send.active>span { background:linear-gradient(135deg,#26895a,#164d36); border-color:#171e18; }
html[data-theme="dark"] .mobile-brand .brand { color:var(--ink); }
html[data-theme="dark"] .topbar .menu-toggle,
html[data-theme="dark"] .top-actions>a[href="#/notifications"] { background:#27382b; color:var(--ink); }
/* Surfaces et typographie communes. */
html[data-theme="dark"] .card,
html[data-theme="dark"] .rates-row,
html[data-theme="dark"] .notification-row,
html[data-theme="dark"] .filter-panel,
html[data-theme="dark"] .benef-card { background:var(--surface); border-color:var(--stroke); color:var(--ink); box-shadow:0 13px 35px #0003; }
html[data-theme="dark"] :is(.page-title-row h1,.page-title-row h2,.card h2,.card h3,.card h4,.card-header h2,.card-header h3,.stat-value,.admin-metric strong,.table-main,.detail-line strong,.rate-pair strong,.rate-preview strong,.recent-info strong,.benef-card h3,.wallet-item-copy strong,.service-card h3,.notification-row strong,.amount-input-wrap input,.wizard-main h2) { color:var(--ink); }
html[data-theme="dark"] :is(.page-title-row p,.card-header p,.stat-caption,.stat-value small,.dashboard-period,.dashboard-overview-bar p,.form-hint,.table-muted,.rates-row small,.rates-head,.section-description,.activity-copy small,.activity-amount small,.rate-pair span,.recent-info span,.recent-row small,.wallet-item-copy small,.wallet-empty,.help-side p,.info-list div,.faq-answer,.notification-row p,.notification-row time,.service-card p,.summary-label,.wizard-sub,.route-line small) { color:var(--subtle); }
html[data-theme="dark"] .page-kicker,
html[data-theme="dark"] .panel-overline,
html[data-theme="dark"] .mini-link,
html[data-theme="dark"] .summary-eyebrow,
html[data-theme="dark"] .flow-kicker { color:var(--honey); }
html[data-theme="dark"] .mini-link:hover { color:#fff3cc; }
html[data-theme="dark"] :is(.demo-banner,.section-note,.flow-safety,.flow-empty,.wallet-safety,.admin-reconcile,.help-side) { color:#c8dec8; background:#1d2d22; border-color:#38513c; }
html[data-theme="dark"] .demo-banner strong,
html[data-theme="dark"] .section-note strong,
html[data-theme="dark"] .admin-reconcile strong { color:#e8f2de; }
html[data-theme="dark"] :is(.section-note.warning,.demo-banner.warning) { background:#332a1d; border-color:#80623a; color:#f1d9ab; }
html[data-theme="dark"] .section-note.warning strong { color:#fff0c6; }
html[data-theme="dark"] .demo-banner .icon,
html[data-theme="dark"] .section-note .icon { color:var(--mint); }
html[data-theme="dark"] .section-note.warning .icon { color:var(--honey); }
html[data-theme="dark"] :is(.dashboard-activity-row,.recent-row,.rate-pair,.detail-line,.wallet-item,.app-activity-item,.app-method-row,.faq-item,.data-table td,.data-table th) { border-color:var(--stroke); }
html[data-theme="dark"] :is(.dashboard-activity-row:hover,.data-table tbody tr:hover,.notification-row:hover) { background:#222d24; }
html[data-theme="dark"] .btn-primary { color:#fff; border-color:#4d9b67; background:linear-gradient(115deg,#236947,#2c885c); box-shadow:0 10px 20px #0005; }
html[data-theme="dark"] .btn-primary:not(:disabled):hover { color:#fff; background:linear-gradient(115deg,#287e54,#339669); }
html[data-theme="dark"] :is(.btn-secondary,.btn-quiet,.btn-white,.btn-ghost,.clear-filters) { color:var(--ink); background:var(--raised); border-color:var(--stroke); }
html[data-theme="dark"] :is(.btn-secondary,.btn-quiet,.btn-white,.btn-ghost):not(:disabled):hover { color:#fff; background:#304333; border-color:#79a682; }
html[data-theme="dark"] :is(.badge-gray,.badge-blue,.badge-green,.badge-amber,.badge-red,.table-action,.route-flag,.flag) { color:#ddeddb; background:#27362b; border-color:#4a5c48; }
html[data-theme="dark"] .badge-amber { color:var(--honey); background:#3c321e; }
html[data-theme="dark"] .badge-red { color:#ffc0b7; background:#382822; }
html[data-theme="dark"] :is(.stat-icon,.service-icon,.wallet-item-icon,.person-icon.lilac,.person-icon.mint,.activity-avatar,.trust-step-icon,.app-method-icon) { color:var(--honey); background:#353323; }
html[data-theme="dark"] .stat-icon.green { color:var(--mint); background:#224433; }
html[data-theme="dark"] .stat-icon.amber { color:var(--honey); background:#3b3425; }
html[data-theme="dark"] .input,
html[data-theme="dark"] .select,
html[data-theme="dark"] .textarea,
html[data-theme="dark"] .public-auth .auth-form .input,
html[data-theme="dark"] .public-auth .auth-form .select { color:var(--ink); background:#202a22; border-color:#4a604c; }
html[data-theme="dark"] :is(.input,.textarea)::placeholder { color:#b1c0af; opacity:1; }
html[data-theme="dark"] :is(.input,.select,.textarea):focus,
html[data-theme="dark"] .public-auth .auth-form .input:focus { color:#fff; background:#29392b; border-color:#8ec597; box-shadow:0 0 0 3px #71ba7970; }
html[data-theme="dark"] :is(.input,.select,.textarea):disabled { color:#b4c2b3; background:#171e19; }
html[data-theme="dark"] :is(.form-group label,.field-label,.check-row,.auth-terms) { color:#e0eee0; }
html[data-theme="dark"] :is(.form-error,.form-success) { background:#2d281f; color:#ffdda6; border-color:#6b5039; }
html[data-theme="dark"] :is(.avatar,.app-activity-avatar) { color:#e3f4e3; background:#294932; }
/* Tableaux de bord, cartes illustratives et panneaux client. */
html[data-theme="dark"] .dashboard-hero,
html[data-theme="dark"] .admin-hero { background:radial-gradient(circle at 85% 20%,#25604355,transparent 42%),linear-gradient(115deg,#111b15,#19291c 72%,#1b3425); border-color:#486b50; box-shadow:0 18px 36px #0006; }
html[data-theme="dark"] .hero-plastic-card { background:linear-gradient(115deg,#18251d,#101813 66%,#193022); border-color:#b59a5a9e; }
html[data-theme="dark"] .hero-mini-proof { color:var(--honey); background:#262d22; }
html[data-theme="dark"] .hero-copy p,
html[data-theme="dark"] .admin-hero p { color:#d7e6d3; }
html[data-theme="dark"] .dashboard-period { background:var(--surface); border-color:var(--stroke); }
html[data-theme="dark"] .wallet-empty-state,
html[data-theme="dark"] .dash-method,
html[data-theme="dark"] .route-line,
html[data-theme="dark"] .trust-step,
html[data-theme="dark"] .country-box,
html[data-theme="dark"] .summary-card { color:var(--ink); background:var(--raised); border-color:var(--stroke); }
html[data-theme="dark"] .wallet-empty-state p,
html[data-theme="dark"] .dash-method small { color:var(--subtle); }
html[data-theme="dark"] .wallet-head { background:linear-gradient(115deg,#151e17,#263124); border:1px solid #53644e; }
html[data-theme="dark"] .wallet-head p { color:#d3e2cf; }
html[data-theme="dark"] .wallet-visual { background:radial-gradient(circle at 92% 5%,#3c624580,transparent 44%),linear-gradient(126deg,#182720,#0e1812 75%); border:1px solid #45604a; }
html[data-theme="dark"] .wallet-mobile-visual { background:#202d22; border-color:var(--stroke); }
html[data-theme="dark"] .wallet-mobile-visual > span { color:var(--mint); background:#183924; }
html[data-theme="dark"] .wallet-mobile-visual strong { color:var(--ink); }
html[data-theme="dark"] .wallet-mobile-visual small { color:var(--subtle); }
html[data-theme="dark"] .wallet-item-icon.mobile { color:var(--mint); background:#24432e; }
html[data-theme="dark"] .admin-access-pill { color:var(--mint); background:#203327; border-color:#47674b; }
html[data-theme="dark"] .admin-money-card,
html[data-theme="dark"] .admin-metric,
html[data-theme="dark"] .admin-integration { background:var(--surface); border-color:var(--stroke); }
html[data-theme="dark"] .admin-hero-kicker { color:var(--honey); }
html[data-theme="dark"] :is(.admin-metric-head,.admin-metric small,.admin-money-sub,.admin-amount-line span,.admin-amount-line small,.admin-money-foot,.admin-status-row span,.admin-corridor-row small,.admin-hero-right small,.admin-hero-right span) { color:var(--subtle); }
html[data-theme="dark"] :is(.admin-amount-line strong,.admin-status-row strong,.admin-corridor-row strong,.admin-corridor-row .count) { color:var(--ink); }
html[data-theme="dark"] :is(.admin-amount-line,.admin-money-foot) { border-color:var(--stroke); }
html[data-theme="dark"] .admin-amount-line .currency-dot { background:var(--honey); }
html[data-theme="dark"] .admin-amount-line:nth-child(2n) .currency-dot { background:var(--mint); }
html[data-theme="dark"] .admin-reconcile { background:#202e22; }
/* Véritable écran mobile sombre, sans faux solde. */
html[data-theme="dark"] .app-welcome h1,
html[data-theme="dark"] .app-section-head h2 { color:var(--ink); }
html[data-theme="dark"] .app-welcome p,
html[data-theme="dark"] .app-trust-foot { color:var(--subtle); }
html[data-theme="dark"] .app-overview-card { background:radial-gradient(circle at 88% 16%,#31563a88,transparent 44%),linear-gradient(125deg,#0d1711,#19271b 78%,#152a1b); border-color:#567355; box-shadow:0 18px 33px #0008; }
html[data-theme="dark"] .app-snapshot > div,
html[data-theme="dark"] .app-shortcut,
html[data-theme="dark"] .app-activity-list,
html[data-theme="dark"] .app-method-list { color:var(--ink); background:var(--surface); border-color:var(--stroke); box-shadow:0 8px 18px #0004; }
html[data-theme="dark"] .app-shortcut:hover { background:#263529; border-color:#648a66; }
html[data-theme="dark"] :is(.app-snapshot strong,.app-shortcut strong,.app-activity-copy strong,.app-activity-amount strong,.app-method-row strong,.app-method-empty strong,.app-empty strong) { color:var(--ink); }
html[data-theme="dark"] :is(.app-snapshot small,.app-shortcut small,.app-activity-copy small,.app-activity-amount small,.app-method-row small,.app-method-empty p,.app-empty p) { color:var(--subtle); }
html[data-theme="dark"] .app-shortcut-icon,
html[data-theme="dark"] .app-snapshot-icon { background:#263e2c; color:var(--mint); }
html[data-theme="dark"] :is(.app-shortcut-icon.color-1,.app-shortcut-icon.color-3,.app-snapshot-icon.gold) { background:#3a321f; color:var(--honey); }
html[data-theme="dark"] .app-shortcut-icon.color-2 { background:#2e3d2f; color:#bde0bd; }
html[data-theme="dark"] .app-activity-item:nth-child(2n) .app-activity-avatar { color:var(--honey); background:#3b321f; }
html[data-theme="dark"] .empty-icon,
html[data-theme="dark"] .app-empty-icon { color:var(--mint); background:#243c2b; }
/* Parcours, devise, frais, filtres et récapitulatif. */
html[data-theme="dark"] .flow-main,
html[data-theme="dark"] .flow-summary { background:var(--surface); border-color:var(--stroke); }
html[data-theme="dark"] .flow-method,
html[data-theme="dark"] .choice-card,
html[data-theme="dark"] .flow-saved,
html[data-theme="dark"] .flow-saved-recipient { color:var(--ink); background:var(--raised); border-color:var(--stroke); box-shadow:none; }
html[data-theme="dark"] .flow-method:hover,
html[data-theme="dark"] .choice-card:not(:disabled):hover { background:#2a382b; border-color:#709e76; }
html[data-theme="dark"] .flow-method.selected,
html[data-theme="dark"] .choice-card.selected,
html[data-theme="dark"] .flow-saved.selected { background:#243c2a; border-color:#8ac397; box-shadow:0 0 0 2px #3a6545; }
html[data-theme="dark"] :is(.flow-method-copy strong,.choice-main strong,.flow-saved strong,.flow-recipient-selected strong,.flow-saved-recipient strong) { color:var(--ink); }
html[data-theme="dark"] :is(.flow-method-copy small,.flow-saved small,.choice-main small,.flow-recipient-selected small,.flow-saved-recipient small,.flow-origin .form-hint) { color:var(--subtle); }
html[data-theme="dark"] .flow-method-icon,
html[data-theme="dark"] .choice-card .choice-icon { color:var(--mint); background:#2b4632; }
html[data-theme="dark"] .flow-method-icon.card { color:var(--honey); background:#43351e; }
html[data-theme="dark"] .flow-method-copy em { color:var(--mint); }
html[data-theme="dark"] .step-index { color:#c6d7c4; background:#263229; border-color:#5e725f; }
html[data-theme="dark"] .step-item.current .step-index { color:white; background:#23794e; border-color:#4fae70; }
html[data-theme="dark"] .step-item.done .step-index { color:#d5f4da; background:#2b4932; border-color:#709f77; }
html[data-theme="dark"] .step-item:after { background:#526551; }
html[data-theme="dark"] .flow-amount-chip { color:var(--mint); background:#223729; border-color:#4e7352; }
html[data-theme="dark"] .route-send .page-actions .btn { color:var(--mint); background:#203027; border-color:#4c6b50; }
html[data-theme="dark"] .route-send .page-actions .btn:hover { color:#fff; background:#294b34; }
html[data-theme="dark"] :is(.flow-recipient-selected,.detect-pending,.detect-result,.flow-recipient-form,.flow-origin) { color:var(--ink); background:#202d23; border-color:var(--stroke); }
html[data-theme="dark"] .detect-result.valid { color:#b7f2c5; background:#1e3927; }
html[data-theme="dark"] .detect-result.blocked { color:var(--honey); background:#3b3020; }
html[data-theme="dark"] .detect-flag { background:#2d392f; border-color:var(--stroke); }
html[data-theme="dark"] .flow-summary .summary-big { background:linear-gradient(120deg,#123924,#1e5234); border:1px solid #4f7d57; }
html[data-theme="dark"] :is(.quote-highlight,.review-amount) { background:#203c28; border-color:#547a56; }
html[data-theme="dark"] :is(.quote-highlight strong,.review-amount strong,.quote-lines .detail-line.total strong) { color:#c8f3d1; }
html[data-theme="dark"] :is(.quote-highlight span,.quote-expiry) { color:#c0d5c0; }
html[data-theme="dark"] .amount-direction { background:#202a22; }
html[data-theme="dark"] .amount-direction button { color:var(--subtle); }
html[data-theme="dark"] .amount-direction button.active { color:var(--ink); background:#2d4834; }
html[data-theme="dark"] .amount-input-wrap .currency-label { color:#d9e9d6; }
html[data-theme="dark"] .rates-row,
html[data-theme="dark"] .notification-row { background:var(--surface); }
html[data-theme="dark"] .notification-row.unread { background:#223428; border-color:#527155; }
html[data-theme="dark"] .rates-filter-panel { background:var(--surface); }
html[data-theme="dark"] :is(.filter-chip,.filter-tab,.segmented button,.admin-source) { color:var(--ink); background:var(--raised); border-color:var(--stroke); }
html[data-theme="dark"] .filter-chip.active { color:#d8f2db; background:#264e31; border-color:#759d78; }
html[data-theme="dark"] .data-table thead,
html[data-theme="dark"] .data-table th { color:var(--subtle); background:#202820; border-color:var(--stroke); }
html[data-theme="dark"] .data-table td { color:#e7f0e5; }
html[data-theme="dark"] .toggle:not(.on) { background:#3a4a3e; }
html[data-theme="dark"] .admin-status-row,
html[data-theme="dark"] .admin-corridor-row { border-color:var(--stroke); }
html[data-theme="dark"] .admin-meter { background:#2d362b; }
/* Dialogues, passkeys et aide. */
html[data-theme="dark"] :is(.overlay,.pk-overlay) { background:#07120cc2; }
html[data-theme="dark"] .search-result .icon { color:var(--mint); }
html[data-theme="dark"] .search-result small,
html[data-theme="dark"] .search-label { color:var(--subtle); }
html[data-theme="dark"] .modal,
html[data-theme="dark"] .modal-header,
html[data-theme="dark"] .modal-body,
html[data-theme="dark"] .search-results,
html[data-theme="dark"] .search-field,
html[data-theme="dark"] .search-footer { color:var(--ink); background:var(--surface); border-color:var(--stroke); }
html[data-theme="dark"] :is(.modal-header h2,.modal-body h2,.search-result strong) { color:var(--ink); }
html[data-theme="dark"] :is(.modal-header p,.modal-body p,.search-footer) { color:var(--subtle); }
html[data-theme="dark"] .search-field input { color:var(--ink); background:transparent; }
html[data-theme="dark"] .search-result:hover { background:var(--raised); }
html[data-theme="dark"] .pk-offer-body,
html[data-theme="dark"] .pk-setup-body,
html[data-theme="dark"] .method-offer-body { background:var(--surface); }
html[data-theme="dark"] .pk-offer-hero,
html[data-theme="dark"] .pk-setup-head,
html[data-theme="dark"] .method-offer-head { background:radial-gradient(circle at 100% 0,#5c6b3f5c,transparent 48%),linear-gradient(125deg,#0f2719,#1a4230); }
html[data-theme="dark"] .pk-offer-benefits strong,
html[data-theme="dark"] .method-offer-choice strong { color:var(--ink); }
html[data-theme="dark"] :is(.pk-offer-benefits small,.pk-offer-foot,.method-offer-body > p) { color:var(--subtle); }
html[data-theme="dark"] :is(.pk-offer-account,.method-offer-choice,.method-modal-head,.pk-offer-secondary) { color:var(--ink); background:var(--raised); border-color:var(--stroke); }
html[data-theme="dark"] .pk-offer-account strong { color:var(--mint); }
html[data-theme="dark"] .pk-offer-secondary:hover,
html[data-theme="dark"] .method-offer-choice:hover { background:#2b3d2e; border-color:#799b7e; }
html[data-theme="dark"] .pk-setup-body .form-group > label,
html[data-theme="dark"] .pk-setup-body .passkey-onboarding p { color:var(--ink); }
html[data-theme="dark"] .pk-setup-body .input { background:#202a22; border-color:#4a604c; color:var(--ink); }
html[data-theme="dark"] .pk-setup-body .passkey-onboarding > div > span,
html[data-theme="dark"] .pk-offer-benefits .pk-benefit-icon { background:#37321d; color:var(--honey); }
/* Authentification client, inscription et accès administrateur. */
html[data-theme="dark"] .public-auth { color:var(--ink); background:#151a16; border-color:#485548; box-shadow:0 32px 96px #0008; }
html[data-theme="dark"] .public-auth .auth-visual { background:radial-gradient(circle at 42% 40%,#27583b84,transparent 42%),linear-gradient(145deg,#0b110d,#142119 70%,#1a3020); }
html[data-theme="dark"] .public-auth .auth-content { background:#151a16; }
html[data-theme="dark"] .public-auth .auth-card { background:#1a211b; box-shadow:0 22px 52px #0007; }
html[data-theme="dark"] .public-auth .auth-card h2,
html[data-theme="dark"] .public-auth .auth-mobile-title { color:var(--ink); }
html[data-theme="dark"] .public-auth .auth-card .intro,
html[data-theme="dark"] .public-auth .auth-passkey-hint,
html[data-theme="dark"] .public-auth .auth-security-note,
html[data-theme="dark"] .public-auth .auth-disclosure,
html[data-theme="dark"] .public-auth .auth-bottom,
html[data-theme="dark"] .public-auth .auth-recovery-link { color:var(--subtle); }
html[data-theme="dark"] .public-auth .auth-mobile-stage { background:radial-gradient(circle at 68% 20%,#315d4182,transparent 42%),linear-gradient(125deg,#0d1810,#193722 70%,#213c25); }
html[data-theme="dark"] .public-auth .auth-stage-yellow { background:linear-gradient(130deg,#b29a61,#856b38); }
html[data-theme="dark"] .public-auth .auth-stage-green { background:linear-gradient(135deg,#55775c,#335a43); }
html[data-theme="dark"] .public-auth .auth-password-wrap .input-end { color:#e2f2df; background:#2b392d; border-color:#1b251e; }
html[data-theme="dark"] .public-auth .auth-passkey-button { color:#d9efdc; background:#232e26; border-color:#4e7055; box-shadow:none; }
html[data-theme="dark"] .public-auth .auth-passkey-button:not(:disabled):hover { color:white; background:#304737; }
html[data-theme="dark"] .public-auth .auth-submit { color:#fff; background:linear-gradient(115deg,#257047,#2e8358); box-shadow:0 10px 20px #0005; }
html[data-theme="dark"] .public-auth .auth-signup-row { color:var(--ink); }
html[data-theme="dark"] .public-auth :is(.auth-signup-row a,.auth-terms a,.auth-explore-link,.auth-bottom a) { color:var(--mint); }
html[data-theme="dark"] .public-auth .auth-divider { color:var(--subtle); }
html[data-theme="dark"] .public-auth .auth-demo-note { background:#1d3022; border-color:#466049; color:#d5ead5; }
html[data-theme="dark"] .public-auth .auth-desktop-brand,
html[data-theme="dark"] .premium-phone-brand .brand { color:#d4efd5; }
html[data-theme="dark"] .premium-phone { background:#050806; border-color:#759c77; box-shadow:25px 32px 65px #000a; }
html[data-theme="dark"] .premium-phone-screen { background:linear-gradient(150deg,#1e2d21,#151d17 75%); color:#eff6ec; }
html[data-theme="dark"] .premium-phone-greeting { color:#b6cbb2; }
html[data-theme="dark"] .premium-phone-card { background:linear-gradient(120deg,#17442d,#296043); }
html[data-theme="dark"] .premium-phone-actions span { color:var(--mint); background:#293e2e; }
html[data-theme="dark"] .premium-phone-rows i { background:linear-gradient(90deg,#324b36,#26372b,#324b36); }
html[data-theme="dark"] .premium-visual-bottom span { color:#c4dac4; }
html[data-theme="dark"] .admin-auth { background:var(--night); color:var(--ink); }
html[data-theme="dark"] .admin-auth .auth-content { background:#161c18; }
html[data-theme="dark"] .admin-login-visual { background:linear-gradient(140deg,#0b110d,#1e3526); }
html[data-theme="dark"] .admin-login-card h2,
html[data-theme="dark"] .admin-login-card .eyebrow { color:var(--ink); }
html[data-theme="dark"] .admin-login-card .intro { color:var(--subtle); }
html[data-theme="dark"] .admin-login-card .auth-demo-note { background:#223228; color:#d9e8d4; border-color:#496a50; }
html[data-theme="dark"] .admin-login-status { color:var(--mint); }
@media (min-width:768px) {
  /* Le formulaire desktop repose directement sur son panneau : plus de bloc sombre devant le logo. */
  html[data-theme="dark"] .public-auth:is(.auth-view-login,.auth-view-register) .auth-card { background:transparent; box-shadow:none; }
}
@media (max-width:767px) {
  html[data-theme="dark"] body { background:var(--night); }
  html[data-theme="dark"] .topbar { background:#151b17f5; }
  html[data-theme="dark"] .public-auth { background:radial-gradient(circle at 18% 7%,#26433088,transparent 43%),radial-gradient(circle at 88% 84%,#283b2980,transparent 48%),#0b0e0d; }
  html[data-theme="dark"] .public-auth .auth-content { background:transparent; }
  html[data-theme="dark"] .public-auth .auth-card { background:#181e19; }
  html[data-theme="dark"] .public-auth .auth-theme-mobile { color:#f8edc9; background:#ffffff19; border-color:#d8c78a78; }
  html[data-theme="dark"] .admin-auth .auth-content { background:#161c18; }
}
html[data-theme="dark"] .route-profile .profile-photo-camera { border-color:var(--surface); background:var(--honey); color:#25452f; }
html[data-theme="dark"] .route-profile .profile-photo-note { border-color:var(--stroke); background:var(--raised); color:var(--subtle); }
html[data-theme="dark"] .route-profile .profile-photo-note .icon { color:var(--mint); }
/* Même crédit sur les pieds de page visibles du client et de la console mobile. */
.mobile-footer-credit { display:none; }
.mobile-footer-credit a { color:inherit; font-weight:700; text-decoration:underline; text-underline-offset:2px; }
/* Historique client : tableau sémantique sur ordinateur, cartes tactiles sur téléphone. */
.route-transactions .tx-results-card { overflow:hidden; }
.route-transactions .tx-mobile-layout { display:none; }
@media (max-width:767px) {
  /* Masquer uniquement la barre du document, jamais son défilement (y compris #/register). */
  html, body { scrollbar-width:none; -ms-overflow-style:none; }
  html::-webkit-scrollbar, body::-webkit-scrollbar { display:none; width:0; height:0; }
  .page-footer { margin-top:26px; padding:13px 0 0; border-top:0; justify-content:center; align-items:center; text-align:center; color:var(--muted); }
  .page-footer > :not(.mobile-footer-credit) { display:none; }
  .page-footer .mobile-footer-credit { display:block; }
  .admin-login-footer { text-align:center; }
  .admin-login-footer .admin-login-footer-desktop { display:none; }
  .admin-login-footer .mobile-footer-credit { display:block; }
  .mobile-tabbar .mobile-tab-photo { display:block; width:26px; height:26px; aspect-ratio:1; border-radius:50%; object-fit:cover; border:1px solid #c8dcc8; }
  .route-profile .profile-head { flex-direction:column; gap:12px; padding-bottom:18px; margin-bottom:0; text-align:center; }
  .route-profile .profile-photo-avatar { width:88px; height:88px; border-radius:50%; font-size:26px; }
  .route-profile .profile-photo-camera { position:absolute; display:grid; place-items:center; right:-7px; bottom:-5px; width:33px; height:33px; border:3px solid #fffefa; border-radius:50%; background:var(--gold); color:#244b34; box-shadow:0 5px 13px #173e291f; }
  .route-profile .profile-photo-camera .icon { width:16px; height:16px; }
  .route-profile .profile-head-copy { display:block; width:100%; }
  .route-profile .profile-head-copy strong { color:var(--text); font-size:17px; }
  .route-profile .profile-photo-actions { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:8px; margin-top:13px; }
  .route-profile .profile-photo-button { min-height:40px; border-radius:11px; font-size:12px; }
  .route-profile .profile-photo-remove { padding:9px; }
  .route-profile .profile-photo-note { display:flex; align-items:flex-start; gap:8px; margin:14px 0 21px; padding:10px 12px; border:1px solid #dfebda; border-radius:12px; background:#f3f8ef; color:#617668; font-size:10px; line-height:1.55; }
  .route-profile .profile-photo-note .icon { flex:none; width:15px; height:15px; margin-top:1px; color:#26805c; }
  html[data-theme="dark"] .mobile-tabbar .mobile-tab-photo { border-color:#56745a; }
  .route-transactions .filter-panel { padding:12px; }
  .route-transactions .filter-grid { display:block; }
  .route-transactions .filter-grid > .select,
  .route-transactions .filter-extra { display:none; }
  .route-transactions .filter-grid .input-wrap { width:100%; min-width:0; }
  .route-transactions #tx-search { min-height:44px; }
  .route-transactions .tx-desktop-table { display:none; }
  .route-transactions .tx-mobile-layout { display:block; }
  .route-transactions .tx-results-card:not(.is-empty),
  html[data-theme="dark"] .route-transactions .tx-results-card:not(.is-empty) {
    overflow:visible; background:transparent; border:0; box-shadow:none;
  }
  .route-transactions .tx-mobile-toolbar { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:13px; }
  .route-transactions .tx-mobile-title { display:grid; gap:1px; color:var(--text); font-size:14px; line-height:1.3; font-weight:800; }
  .route-transactions .tx-mobile-title small { color:var(--muted); font-size:11px; font-weight:500; }
  .route-transactions .tx-mobile-sort { display:flex; align-items:center; gap:4px; width:min(55%,198px); min-width:0; min-height:42px; padding:0 5px 0 10px; border:1px solid #d7e5d5; border-radius:12px; background:#fffefa; color:#286449; }
  .route-transactions .tx-mobile-sort:focus-within { border-color:#63a27a; box-shadow:0 0 0 3px #cce8d197; }
  .route-transactions .tx-mobile-sort .select { flex:1; min-width:0; min-height:40px; padding:0 12px 0 0; border:0; border-radius:0; background:transparent; box-shadow:none; color:inherit; font-size:11px; font-weight:700; }
  .route-transactions .tx-mobile-list { display:grid; gap:12px; list-style:none; margin:0; padding:0; }
  .route-transactions .tx-mobile-list li { min-width:0; }
  .route-transactions .tx-mobile-card { display:block; min-width:0; padding:16px; border:1px solid #dfe9dd; border-radius:19px; background:#fffefa; color:var(--text); box-shadow:0 10px 24px #173e2910; }
  .route-transactions .tx-mobile-card:hover { color:var(--text); border-color:#a9c8ac; box-shadow:0 14px 28px #173e291a; }
  .route-transactions .tx-mobile-card:focus-visible { outline:3px solid #c59432; outline-offset:3px; }
  .route-transactions .tx-mobile-head, .route-transactions .tx-mobile-person { display:flex; align-items:center; min-width:0; }
  .route-transactions .tx-mobile-head { justify-content:space-between; gap:10px; margin-bottom:14px; }
  .route-transactions .tx-mobile-person { gap:10px; flex:1; }
  .route-transactions .tx-mobile-person .person-icon { width:39px; height:39px; border-radius:13px; }
  .route-transactions .tx-mobile-identity { display:block; min-width:0; }
  .route-transactions .tx-mobile-identity strong, .route-transactions .tx-mobile-identity small { display:block; overflow-wrap:anywhere; }
  .route-transactions .tx-mobile-identity strong { color:var(--text); font-size:13px; line-height:1.3; }
  .route-transactions .tx-mobile-identity small { margin-top:2px; color:var(--muted); font-size:10px; }
  .route-transactions .tx-mobile-arrow { display:grid; place-items:center; flex:none; width:34px; height:34px; border-radius:11px; background:#edf5e9; color:#277553; }
  .route-transactions .tx-mobile-amounts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0; min-width:0; padding:13px 14px; border:1px solid #e2eee0; border-radius:14px; background:#f4f9f1; }
  .route-transactions .tx-mobile-amounts > span { display:block; min-width:0; }
  .route-transactions .tx-mobile-amounts > span + span { border-left:1px solid #d7e7d7; padding-left:13px; margin-left:8px; }
  .route-transactions .tx-mobile-amounts small { display:block; color:#536f58; font-size:9px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
  .route-transactions .tx-mobile-amounts strong { display:block; margin-top:5px; color:#183e2b; font-size:15px; font-weight:800; line-height:1.35; letter-spacing:-.035em; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
  .route-transactions .tx-mobile-amounts > span + span strong { color:#166b4b; }
  .route-transactions .tx-mobile-route { display:flex; align-items:center; gap:9px; min-width:0; margin-top:13px; }
  .route-transactions .tx-mobile-flag { display:grid; place-items:center; flex:none; width:28px; height:28px; border-radius:9px; background:#e9f3e6; color:#246a4c; font-size:10px; font-weight:850; letter-spacing:.025em; }
  .route-transactions .tx-mobile-route > span:last-child { display:block; min-width:0; }
  .route-transactions .tx-mobile-route strong, .route-transactions .tx-mobile-route small { display:block; overflow-wrap:anywhere; }
  .route-transactions .tx-mobile-route strong { color:var(--text); font-size:11px; line-height:1.25; }
  .route-transactions .tx-mobile-route small { color:var(--muted); font-size:10px; }
  .route-transactions .tx-mobile-foot { display:flex; align-items:flex-end; justify-content:space-between; gap:8px 12px; flex-wrap:wrap; margin-top:13px; padding-top:12px; border-top:1px solid #e7eee3; }
  .route-transactions .tx-mobile-meta { display:grid; gap:2px; min-width:0; }
  .route-transactions .tx-mobile-meta strong { color:var(--text); font-size:11px; letter-spacing:.005em; }
  .route-transactions .tx-mobile-meta time { color:var(--muted); font-size:10px; }
  .route-transactions .tx-mobile-foot .badge { max-width:100%; white-space:normal; overflow-wrap:anywhere; font-size:10px; border-radius:9px; }
  .route-transactions .tx-results-card .table-bottom { flex-wrap:wrap; padding:16px 0 0; border-top:0; font-size:11px; }
  .route-transactions .tx-results-card.is-empty .table-bottom { padding:14px; border-top:1px solid var(--border); }
  .route-transactions .pagination-number:not(.current) { display:none; }
  html[data-theme="dark"] .route-transactions .tx-mobile-sort { background:var(--surface); border-color:var(--stroke); color:var(--ink); }
  html[data-theme="dark"] .route-transactions .tx-mobile-sort .select { color:var(--ink); background:transparent; border:0; box-shadow:none; }
  html[data-theme="dark"] .route-transactions .tx-mobile-card { background:var(--surface); border-color:var(--stroke); box-shadow:0 13px 30px #0004; }
  html[data-theme="dark"] .route-transactions .tx-mobile-card:hover { border-color:#608c68; }
  html[data-theme="dark"] .route-transactions .tx-mobile-arrow,
  html[data-theme="dark"] .route-transactions .tx-mobile-flag { background:#263c2b; color:var(--mint); }
  html[data-theme="dark"] .route-transactions .tx-mobile-amounts { background:#1d3023; border-color:#33533b; }
  html[data-theme="dark"] .route-transactions .tx-mobile-amounts > span + span { border-left-color:#365b40; }
  html[data-theme="dark"] .route-transactions .tx-mobile-amounts strong { color:var(--ink); }
  html[data-theme="dark"] .route-transactions .tx-mobile-amounts > span + span strong { color:var(--mint); }
  html[data-theme="dark"] .route-transactions .tx-mobile-amounts small { color:#b4ceaf; }
  html[data-theme="dark"] .route-transactions .tx-mobile-foot { border-top-color:var(--stroke); }
}
@media (min-width:680px) and (max-width:767px) {
  .route-transactions .tx-mobile-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .route-transactions .tx-mobile-card { display:flex; flex-direction:column; height:100%; }
  .route-transactions .tx-mobile-route { margin-bottom:13px; }
  .route-transactions .tx-mobile-foot { margin-top:auto; }
}
@media (max-width:360px) {
  .route-transactions .tx-mobile-amounts { grid-template-columns:minmax(0,1fr); gap:10px; }
  .route-transactions .tx-mobile-amounts > span + span { border-left:0; border-top:1px solid #d7e7d7; padding:10px 0 0; margin:0; }
  html[data-theme="dark"] .route-transactions .tx-mobile-amounts > span + span { border-top-color:#365b40; }
  .route-transactions .tx-results-card .table-bottom { justify-content:center; }
  .route-transactions .tx-results-card .table-bottom > span { width:100%; text-align:center; }
}
/* Le logo fourni remplace le pictogramme et le mot-symbole dessinés en CSS.
   Les deux PNG transparents préservent le dessin et garantissent le contraste. */
.brand.brand-artwork { position:relative; display:inline-block; flex:none; width:155px; height:auto; aspect-ratio:713 / 361; font-size:0; line-height:0; white-space:normal; vertical-align:middle; }
.brand-artwork img { position:absolute; inset:0; display:block; width:100%; height:100%; object-fit:contain; pointer-events:none; }
.brand-artwork .brand-art-dark { display:none; }
.brand-artwork.brand-inverse .brand-art-light,
html[data-theme="dark"] .brand-artwork:not(.brand-inverse) .brand-art-light { display:none; }
.brand-artwork.brand-inverse .brand-art-dark,
html[data-theme="dark"] .brand-artwork:not(.brand-inverse) .brand-art-dark { display:block; }
.sidebar .brand.brand-artwork { width:150px; margin:0 0 18px 8px; }
.admin-shell .sidebar .brand.brand-artwork { margin-bottom:5px; }
.public-auth .auth-desktop-brand { top:21px; left:34px; right:auto; opacity:1; }
.public-auth .auth-desktop-brand .brand.brand-artwork { width:104px; }
.public-auth.auth-view-login .auth-desktop-brand .brand.brand-artwork { width:126px; }
.premium-phone-brand .brand.brand-artwork { width:63px; }
.hero-plastic-top .brand.brand-artwork { width:70px; }
.wallet-visual-brand .brand.brand-artwork { width:81px; }
.pk-offer-brand .brand.brand-artwork { width:89px; }
/* Accueil animé, sans pourcentage fictif ni attente ajoutée au chargement réel. */
.launch-screen { position:fixed; inset:0; z-index:1000; display:grid; place-items:center; min-height:100svh; padding:24px; overflow:hidden; isolation:isolate; text-align:center; color:#164b37; background:radial-gradient(ellipse 60% 55% at 50% 43%,#e5f1e5 0,transparent 76%),radial-gradient(circle at 82% 86%,#f5ecd7 0,transparent 30%),#f7f9f4; transition:opacity .28s ease,visibility .28s ease; }
.launch-screen::before { content:""; position:absolute; inset:-12%; pointer-events:none; background:radial-gradient(circle at center,#ffffffb8 0,transparent 37%); animation:launchGlow 4s ease-in-out infinite alternate; }
.launch-screen.is-complete { opacity:0; visibility:hidden; pointer-events:none; }
.launch-core { position:relative; z-index:1; display:flex; flex-direction:column; align-items:center; width:min(100%,360px); animation:launchEnter .55s cubic-bezier(.2,.7,.2,1) both; }
.launch-visual { position:relative; display:grid; place-items:center; width:218px; height:198px; margin-bottom:9px; }
.launch-visual::before { content:""; position:absolute; inset:15px 23px; border-radius:50%; background:radial-gradient(circle,#ffffffed 0 40%,#e2efe0b8 68%,#e2efe000 74%); box-shadow:0 0 0 1px #ffffffa8,0 23px 65px #2e75531d; }
.launch-orbit { position:absolute; inset:5px 14px; border-radius:50%; background:conic-gradient(from 25deg,transparent 0 47%,#d7ae68 54%,transparent 61% 73%,#579e75 84%,transparent 91%); -webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 2px),#000 calc(100% - 1px)); mask:radial-gradient(farthest-side,transparent calc(100% - 2px),#000 calc(100% - 1px)); animation:launchOrbit 4s linear infinite; }
.launch-visual img { position:relative; z-index:1; display:block; width:188px; height:auto; filter:drop-shadow(0 10px 13px #24583c21); animation:launchFloat 2.8s ease-in-out infinite; }
.launch-visual .launch-logo-dark { display:none; }
html[data-theme="dark"] .launch-visual .launch-logo-light { display:none; }
html[data-theme="dark"] .launch-visual .launch-logo-dark { display:block; }
/* Les éléments textuels n'apparaissent qu'en cas d'échec du chargement. */
.launch-title { display:none; margin:0; font-size:18px; font-weight:760; line-height:1.35; letter-spacing:-.025em; }
.launch-caption { display:none; margin:7px 0 0; color:#6d8273; font-size:12px; line-height:1.5; }
.launch-track { position:relative; display:block; width:148px; height:3px; margin-top:18px; overflow:hidden; border-radius:99px; background:#dbe8da; }
.launch-track::after { content:""; display:block; width:43%; height:100%; border-radius:inherit; background:linear-gradient(90deg,#348c62,#d4ad62); box-shadow:0 0 10px #49a87362; animation:launchSweep 1.5s ease-in-out infinite; }
.launch-retry { display:none; align-items:center; justify-content:center; min-height:42px; margin-top:23px; padding:9px 21px; border-radius:12px; background:#1b6547; color:#fff; font-size:13px; font-weight:700; text-decoration:none; }
.launch-retry:hover { background:#124e38; }
.launch-retry:focus-visible { outline:3px solid #b59650; outline-offset:3px; }
.launch-screen.has-error .launch-track { display:none; }
.launch-screen.has-error .launch-title,.launch-screen.has-error .launch-caption { display:block; }
.launch-screen.has-error .launch-retry { display:inline-flex; }
.launch-screen.has-error::before,.launch-screen.has-error .launch-orbit,.launch-screen.has-error .launch-visual img { animation:none; }
html[data-theme="dark"] .launch-screen { color:#eaf5e9; background:radial-gradient(ellipse 60% 55% at 50% 43%,#1c3425 0,transparent 76%),radial-gradient(circle at 82% 86%,#302719 0,transparent 30%),#0b0e0d; }
html[data-theme="dark"] .launch-screen::before { background:radial-gradient(circle at center,#43745227 0,transparent 39%); }
html[data-theme="dark"] .launch-visual::before { background:radial-gradient(circle,#24382a 0 40%,#17291bbb 68%,#17291b00 74%); box-shadow:0 0 0 1px #71927521,0 23px 70px #0007; }
html[data-theme="dark"] .launch-orbit { background:conic-gradient(from 25deg,transparent 0 47%,#e4c47d 54%,transparent 61% 73%,#83ca93 84%,transparent 91%); }
html[data-theme="dark"] .launch-visual img { filter:drop-shadow(0 12px 18px #0008); }
html[data-theme="dark"] .launch-caption { color:#a4b7a6; }
html[data-theme="dark"] .launch-track { background:#344738; }
html[data-theme="dark"] .launch-retry { background:#b9d8bb; color:#173623; }
@keyframes launchEnter { from { opacity:0; transform:translateY(10px) scale(.98); } to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes launchOrbit { to { transform:rotate(360deg); } }
@keyframes launchFloat { 50% { transform:translateY(-4px); } }
@keyframes launchGlow { from { opacity:.55; transform:scale(.94); } to { opacity:1; transform:scale(1.06); } }
@keyframes launchSweep { from { transform:translateX(-110%); } to { transform:translateX(340%); } }
@media (max-width:480px) { .launch-visual { width:200px; height:180px; } .launch-visual::before { inset:14px 20px; } .launch-orbit { inset:4px 11px; } .launch-visual img { width:174px; } .launch-title { font-size:17px; } }
.reduce-motion .launch-screen,.reduce-motion .launch-core,.reduce-motion .launch-screen::before,.reduce-motion .launch-orbit,.reduce-motion .launch-visual img,.reduce-motion .launch-track::after { animation:none !important; transition:none !important; }
@media (prefers-reduced-motion:reduce) { .launch-screen,.launch-core,.launch-screen::before,.launch-orbit,.launch-visual img,.launch-track::after { animation:none !important; transition:none !important; } }
@media (max-width:767px) {
  /* Le nouveau logo, plus panoramique, reste lisible sans gêner les commandes. */
  .mobile-brand .brand.brand-artwork { width:92px; }
  .sidebar .brand.brand-artwork { width:158px; margin-bottom:14px; }
  .public-auth .auth-mobile-logo .brand.brand-artwork { width:104px; }
  .public-auth .auth-mobile-title { padding-top:89px; }
  .public-auth.auth-view-register .auth-mobile-title { padding-top:94px; }
}
@media (min-width:380px) and (max-width:767px) {
  .mobile-brand .brand.brand-artwork { width:108px; }
}
/* Un aperçu circulaire manipulable avant l'envoi du JPEG carré validé par le serveur. */
.photo-crop-dialog { width:min(100%,450px); border:1px solid #dce8d9; }
.photo-crop-dialog .modal-header { padding-bottom:12px; }
.photo-crop-body { text-align:center; }
.photo-crop-frame { position:relative; width:min(226px,58vw); aspect-ratio:1; margin:7px auto 17px; overflow:hidden; border:4px solid #fffefa; border-radius:50%; background:#dcebdc; box-shadow:0 0 0 2px #c3a85a,0 18px 30px #1439282e; cursor:grab; touch-action:none; user-select:none; }
.photo-crop-frame:active { cursor:grabbing; }
.photo-crop-frame:focus-visible { outline:3px solid #28765a; outline-offset:5px; }
.photo-crop-frame img { position:absolute; max-width:none; display:block; user-select:none; pointer-events:none; }
.photo-crop-frame::after { content:""; position:absolute; inset:0; border-radius:50%; box-shadow:inset 0 0 0 2px #ffffffa1,inset 0 0 20px #102c2428; pointer-events:none; }
.photo-crop-guide { display:inline-flex; align-items:center; gap:6px; margin:0 0 16px; color:#567260; font-size:11px; }
.photo-crop-guide .icon { width:14px; height:14px; color:#247e55; }
.photo-crop-controls { margin:0 auto; max-width:316px; text-align:left; }
.photo-crop-controls label { display:flex; align-items:center; justify-content:space-between; gap:12px; color:var(--text); font-size:12px; font-weight:750; }
.photo-crop-controls label output { color:#237453; font-variant-numeric:tabular-nums; }
.photo-crop-controls input { width:100%; margin:13px 0 7px; accent-color:#18794e; cursor:pointer; }
.photo-crop-help { margin:2px 0 0; color:var(--muted); font-size:11px; line-height:1.5; }
.photo-crop-dialog .modal-footer { justify-content:space-between; margin-top:23px; }
html[data-theme="dark"] .photo-crop-dialog { border-color:var(--stroke); }
html[data-theme="dark"] .photo-crop-frame { border-color:var(--surface); background:#273c2c; box-shadow:0 0 0 2px var(--honey),0 18px 30px #0006; }
html[data-theme="dark"] .photo-crop-guide,
html[data-theme="dark"] .photo-crop-help { color:var(--subtle); }
html[data-theme="dark"] .photo-crop-controls label { color:var(--ink); }
html[data-theme="dark"] .photo-crop-controls label output,
html[data-theme="dark"] .photo-crop-guide .icon { color:var(--mint); }
@media (max-width:420px) {
  .photo-crop-dialog { max-height:calc(100svh - 24px); }
  .photo-crop-dialog .modal-footer { gap:8px; }
  .photo-crop-dialog .modal-footer .btn { padding:11px 13px; font-size:11px; }
}
/* Phase 2 : mêmes repères visuels dans les trois compositions, sans remplacer les vues. */
:root {
  --space-sm:8px; --space-md:16px; --space-lg:20px;
  --radius-control:11px; --radius-panel:19px;
  --focus-ring:#895817;
}
html[data-theme="dark"] { --focus-ring:#f2d28d; }
.card { border-radius:var(--radius-panel); }
.stats-grid { gap:var(--space-md); }
.dashboard-workspace { gap:var(--space-lg); }
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline:3px solid var(--focus-ring); outline-offset:2px;
}
.sidebar :where(a,button):focus-visible { outline-color:#f2d28d; outline-offset:1px; }
@media (max-width:980px) {
  .sidebar { visibility:hidden; pointer-events:none; transition:transform .24s ease, visibility 0s linear .24s; }
  .sidebar.mobile-open { visibility:visible; pointer-events:auto; transition:transform .24s ease, visibility 0s; }
  body.nav-drawer-open { overflow:hidden; }
}
/* Tablette : les statistiques ne se compriment plus en trois colonnes étroites. */
@media (min-width:768px) and (max-width:1023px) {
  .page-wrap { padding:24px 26px 58px; }
  .stats-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .stats-grid .stat-card:last-child { grid-column:1 / -1; min-height:112px; }
  .stat-value small { font-size:12px; }
  .dashboard-workspace, .wizard-grid, .detail-grid { grid-template-columns:minmax(0,1fr); }
  .dashboard-workspace > .stack:last-child { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .dashboard-rates { grid-column:1 / -1; }
  .table-wrap { max-width:100%; }
}
@media (max-width:767px) {
  .mobile-tabbar a small { font-size:10px; }
  .app-snapshot small { font-size:11px; }
  .mobile-tabbar a:focus-visible { outline-offset:-2px; border-radius:12px; }
  /* Le toast ne recouvre jamais l'onglet Envoyer ni les autres raccourcis. */
  #app:has(.mobile-tabbar) + .toast-stack {
    left:12px; right:12px; bottom:calc(94px + env(safe-area-inset-bottom)); max-width:none;
  }
}
/* Phase 3 : QR de démonstration. Composants nouveaux, palette et boutons existants. */
.qr-demo-notice { margin-bottom:20px; }
.qr-hero { position:relative; overflow:hidden; display:flex; align-items:center; gap:24px; min-height:202px;
  padding:32px 35px; margin:0 0 20px; border-radius:var(--radius-panel); color:#f7fff7;
  background:linear-gradient(125deg,#103d2f,#186647 79%); box-shadow:0 18px 38px #14432b24; }
.qr-hero:before { content:''; position:absolute; width:340px; height:340px; right:10%; top:-230px; border-radius:50%; border:55px solid #e5c87624; pointer-events:none; }
.qr-hero > div { position:relative; z-index:1; flex:1; }
.qr-hero .panel-overline { color:#e7c989; }
.qr-hero h2 { max-width:640px; margin:8px 0; color:#fff; font-size:clamp(24px,2.5vw,34px); line-height:1.14; letter-spacing:-.045em; }
.qr-hero p { max-width:610px; margin:0; color:#dbece0; font-size:13px; line-height:1.55; }
.qr-hero .btn { position:relative; z-index:1; flex:none; }
.qr-hero-symbol { position:relative; z-index:1; display:grid; place-items:center; flex:none; width:67px; height:67px;
  border:1px solid #f3ddab5c; border-radius:21px; background:#ffffff1b; color:#f6db9b; }
.qr-hero-symbol svg { width:37px; height:37px; }
.qr-tile-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-bottom:22px; }
.qr-tile { display:flex; position:relative; flex-direction:column; min-width:0; min-height:172px; padding:22px; color:var(--text); border:1px solid var(--border); box-shadow:var(--shadow); }
.qr-tile:hover { border-color:#9ac9a5; transform:translateY(-2px); }
.qr-tile > strong { margin:14px 0 3px; font-size:16px; }
.qr-tile > small { color:var(--muted); font-size:12px; line-height:1.45; }
.qr-tile > svg { position:absolute; right:20px; top:22px; width:17px; color:var(--green); }
.qr-tile-icon,.qr-aside-icon { display:grid; place-items:center; width:43px; height:43px; border-radius:14px; background:#e5f2e6; color:#176a4a; }
.qr-tile-icon.gold { background:#f9edce; color:#815c1e; }
.qr-tile-icon svg,.qr-aside-icon svg { width:22px; height:22px; }
.qr-ledger .card-header { align-items:center; }
.qr-ledger-row { display:flex; align-items:center; gap:12px; padding:15px 2px; border-top:1px solid var(--border); color:var(--text); }
.qr-ledger-row:hover { color:var(--blue); background:#f5faf4; }
.qr-ledger-row > span:nth-child(2) { display:grid; flex:1; min-width:0; gap:4px; }
.qr-ledger-row strong,.qr-ledger-row small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.qr-ledger-row small,.qr-ledger-amount small { color:var(--muted); font-size:11px; }
.qr-ledger-icon { display:grid; place-items:center; flex:none; width:38px; height:38px; border-radius:12px; background:#e7f3e9; color:#217452; }
.qr-ledger-amount { display:grid; gap:2px; flex:none; text-align:right; font-weight:750; }
.qr-ledger-foot { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:14px; padding-top:12px; border-top:1px solid var(--border); color:var(--muted); font-size:11px; }
.qr-subnav { display:flex; flex-wrap:wrap; gap:8px; margin:24px 0; }
.qr-subnav a { display:inline-flex; align-items:center; min-height:40px; padding:8px 13px; border:1px solid var(--border); border-radius:999px; color:var(--blue); background:var(--white); font-size:12px; font-weight:720; }
.qr-subnav a:hover,.qr-subnav a[aria-current] { border-color:#7eb394; background:var(--green-pale); }
.qr-scan-grid,.qr-code-panel,.qr-request-grid,.qr-merchant-grid,.qr-confirm-grid { display:grid; grid-template-columns:minmax(0,1.28fr) minmax(285px,.8fr); gap:18px; align-items:start; }
.qr-receive-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.qr-scan-card { overflow:hidden; padding:17px; }
.qr-viewfinder { position:relative; display:grid; place-items:center; min-height:300px; overflow:hidden; border-radius:16px;
  background:radial-gradient(circle at center,#245842,#103a2d 70%); }
.qr-viewfinder:before { content:''; position:absolute; inset:12%; opacity:.18; border:1px solid #e4d393; border-radius:14px; }
.qr-viewfinder:after { content:'▦'; color:#f6dc9b; font-size:78px; opacity:.48; }
.qr-video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:1; }
.qr-video:not([hidden]) ~ .qr-scan-hint { background:#102d21c9; }
.qr-video[hidden] { display:none; }
.qr-scan-corners { position:absolute; z-index:2; width:min(56%,230px); aspect-ratio:1; border:3px solid #e7c579; border-radius:17px; box-shadow:0 0 0 999px #071c142b; pointer-events:none; }
.qr-scan-hint { position:absolute; z-index:2; bottom:17px; max-width:90%; padding:7px 11px; border-radius:999px; color:#fff; font-size:11px; text-align:center; background:#102d21a6; }
.qr-status { min-height:52px; display:flex; align-items:center; margin:15px 0; padding:12px 13px; border-radius:12px; border:1px solid #d8e9d7; background:#f2f8ef; color:#315b42; font-size:12px; line-height:1.5; }
.qr-status.qr-error,.qr-error { color:#9c382b; }
.qr-status.qr-error { border-color:#edc7bc; background:#fff4f0; }
.qr-scan-actions,.qr-actions,.qr-inline-links { display:flex; flex-wrap:wrap; align-items:center; gap:9px; }
.qr-scan-actions .btn { min-height:43px; }
.qr-scan-aside { display:grid; grid-template-columns:minmax(0,1fr); gap:13px; }
.qr-scan-aside .btn { white-space:normal; line-height:1.35; text-align:center; }
.qr-scan-aside h2 { margin:0; color:var(--text); font-size:20px; }
.qr-scan-aside p { margin:0; color:var(--muted); font-size:13px; line-height:1.6; }
.qr-scan-aside .section-note { margin:5px 0 0; }
.qr-code-panel { padding:34px; align-items:center; }
.qr-code-copy h2 { margin:8px 0 3px; font-size:29px; letter-spacing:-.04em; }
.qr-code-copy p { max-width:440px; color:var(--muted); font-size:13px; line-height:1.6; }
.qr-identity { display:inline-block; margin:4px 0 12px; padding:10px 13px; border:1px solid var(--border); border-radius:9px; color:var(--blue); background:var(--green-pale); font-size:14px; overflow-wrap:anywhere; }
.qr-canvas-wrap { display:grid; justify-items:center; align-content:center; gap:11px; min-width:0; padding:18px; border:1px dashed #cadfca; border-radius:18px; background:#f7faf5; text-align:center; }
.qr-canvas-wrap canvas,.qr-zoom-body canvas { display:block; width:min(100%,270px); height:auto; aspect-ratio:1; background:#fff; border:8px solid #fff; border-radius:11px; image-rendering:pixelated; }
.qr-canvas-wrap small { color:#5a7360; font-size:11px; }
.qr-request-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.qr-request-preview { scroll-margin-top:82px; }
.qr-request-preview .qr-canvas-wrap canvas { width:min(100%,220px); }
.qr-request-details { display:grid; gap:3px; margin:15px 0; color:var(--muted); font-size:12px; }
.qr-request-details strong { color:var(--text); font-size:22px; }
.qr-request-details span { overflow-wrap:anywhere; }
.qr-merchant-head { display:flex; align-items:center; gap:15px; padding:0 0 20px; border-bottom:1px solid var(--border); }
.qr-merchant-head h2 { margin:4px 0 8px; color:var(--text); font-size:22px; }
.qr-merchant-avatar { display:grid; place-items:center; flex:none; width:58px; height:58px; border-radius:18px; background:#e1f0e2; color:#206949; font-weight:800; }
.qr-facts { margin:17px 0; }
.qr-facts > div { display:flex; justify-content:space-between; align-items:baseline; gap:16px; padding:12px 0; border-bottom:1px solid var(--border); }
.qr-facts dt,.qr-facts > div > span { color:var(--muted); font-size:12px; }
.qr-facts dd,.qr-facts > div > strong { margin:0; color:var(--text); text-align:right; font-size:13px; font-weight:720; overflow-wrap:anywhere; }
.qr-fees { margin:20px 0; }
.qr-amount-panel h2,.qr-confirm-wallet h2 { margin:6px 0 20px; color:var(--text); font-size:20px; }
.qr-amount-panel p,.qr-confirm-wallet p { color:var(--muted); font-size:12px; line-height:1.55; }
.qr-amount-strong { margin:8px 0; color:var(--text); font-size:34px; font-weight:790; letter-spacing:-.05em; }
.qr-confirm-grid { grid-template-columns:minmax(0,1.35fr) minmax(285px,.75fr); }
.qr-confirm-wallet { display:grid; gap:12px; }
.qr-confirm-wallet h2 { margin:0; }
.qr-total { font-weight:800; }
.qr-total dd { font-size:19px !important; color:var(--blue) !important; }
.qr-balance { display:grid; gap:5px; padding:15px; border:1px solid var(--border); border-radius:12px; background:var(--green-pale); }
.qr-balance span { color:var(--muted); font-size:11px; }
.qr-balance strong { color:var(--text); font-size:22px; }
.qr-confirm-disclaimer { color:var(--muted); font-size:11px; line-height:1.5; }
.qr-receipt { max-width:790px; margin:auto; padding:34px 43px; box-shadow:var(--shadow); }
.qr-receipt-top { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.qr-receipt-top .brand-artwork { width:104px; }
.qr-receipt-mark { display:grid; place-items:center; width:56px; height:56px; margin:26px 0 13px; border-radius:17px; color:#17684a; background:#e3f3e3; }
.qr-receipt h2 { margin:0; font-size:28px; color:var(--text); }
.qr-receipt > p { margin:8px 0; color:var(--muted); font-size:13px; }
.qr-receipt-warning { margin:21px 0; padding:13px; border:1px solid #e7d399; border-radius:11px; color:#785521; background:#fcf5e7; font-size:12px; font-weight:780; }
.qr-receipt-actions { display:flex; flex-wrap:wrap; gap:9px; margin:20px 0; }
.qr-receipt > small { color:var(--muted); }
.qr-zoom-dialog { width:min(100%,470px); }
.qr-zoom-body { display:grid; justify-items:center; gap:14px; }
.qr-zoom-body canvas { width:min(100%,360px); }
.qr-zoom-body p { color:var(--muted); font-size:12px; text-align:center; }
.app-qr-shortcut { display:flex; align-items:center; gap:11px; min-height:72px; margin:12px 0 3px; padding:12px 14px;
  border:1px solid #bbd9bd; border-radius:16px; background:#eaf5e9; color:#174a34; }
.app-qr-shortcut-icon { display:grid; place-items:center; flex:none; width:40px; height:40px; border-radius:11px; color:#f6db99; background:#166146; }
.app-qr-shortcut > span:nth-child(2) { display:grid; flex:1; min-width:0; gap:2px; }
.app-qr-shortcut strong { font-size:13px; }
.app-qr-shortcut small { color:#52745b; font-size:11px; line-height:1.4; }
.app-qr-shortcut > svg { width:18px; flex:none; }
.dashboard-qr .qr-inline-links { margin-top:14px; }
html[data-theme="dark"] :is(.qr-tile,.qr-code-panel,.qr-scan-card,.qr-scan-aside,.qr-ledger,.qr-request-preview,.qr-receipt,.qr-amount-panel,.qr-confirm-wallet) { background:var(--surface); border-color:var(--stroke); }
html[data-theme="dark"] .qr-tile:hover,html[data-theme="dark"] .qr-ledger-row:hover { background:var(--raised); }
html[data-theme="dark"] .qr-tile-icon,html[data-theme="dark"] .qr-aside-icon,html[data-theme="dark"] .qr-ledger-icon,html[data-theme="dark"] .qr-merchant-avatar { color:var(--mint); background:#294531; }
html[data-theme="dark"] .qr-tile-icon.gold { color:var(--honey); background:#3b3423; }
html[data-theme="dark"] .qr-canvas-wrap,html[data-theme="dark"] .qr-balance { background:#222d23; border-color:var(--stroke); }
html[data-theme="dark"] .qr-canvas-wrap small,html[data-theme="dark"] .qr-request-details { color:var(--subtle); }
html[data-theme="dark"] .qr-status { color:var(--mint); background:#203c2a; border-color:#42684a; }
html[data-theme="dark"] .qr-status.qr-error { color:#ffd5c8; background:#3b2520; border-color:#8b5044; }
html[data-theme="dark"] .qr-error { color:#ffbba9; }
html[data-theme="dark"] .qr-receipt-warning { color:var(--honey); border-color:#775d33; background:#302b1e; }
html[data-theme="dark"] .qr-receipt-mark { background:#294c34; color:var(--mint); }
html[data-theme="dark"] .app-qr-shortcut { color:var(--ink); background:#213728; border-color:#3b6447; }
html[data-theme="dark"] .app-qr-shortcut small { color:var(--subtle); }
@media (max-width:1023px) {
  .qr-hero { flex-wrap:wrap; }
  .qr-hero .btn { margin-left:auto; }
  .qr-scan-grid,.qr-merchant-grid,.qr-confirm-grid { grid-template-columns:minmax(0,1fr); }
}
@media (max-width:767px) {
  .qr-hero { display:block; min-height:0; padding:25px; }
  .qr-hero-symbol { width:46px; height:46px; margin-bottom:15px; border-radius:14px; }
  .qr-hero-symbol svg { width:26px; height:26px; }
  .qr-hero h2 { font-size:25px; }
  .qr-hero .btn { margin-top:18px; }
  .qr-tile-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .qr-tile { min-height:150px; padding:18px 14px; }
  .qr-tile:first-child { grid-column:1 / -1; min-height:120px; }
  .qr-receive-grid { grid-template-columns:minmax(0,1fr); }
  .qr-scan-grid,.qr-code-panel,.qr-request-grid,.qr-merchant-grid,.qr-confirm-grid { grid-template-columns:minmax(0,1fr); }
  .qr-scan-card { padding:11px; }
  .qr-viewfinder { min-height:285px; }
  .qr-scan-actions .btn { flex:1 1 100%; justify-content:center; }
  .qr-code-panel,.qr-receipt { padding:22px 18px; }
  .qr-canvas-wrap canvas { width:min(100%,250px); }
  .qr-actions .btn,.qr-receipt-actions .btn { flex:1 1 auto; justify-content:center; }
  .qr-ledger-row { flex-wrap:wrap; }
  .qr-ledger-amount { margin-left:50px; }
  .qr-ledger-foot { flex-wrap:wrap; }
  .qr-facts > div { align-items:flex-start; }
  .qr-facts dd { max-width:60%; }
  .qr-subnav { justify-content:center; padding-bottom:8px; }
}
@media (max-width:360px) {
  .qr-tile-grid { grid-template-columns:minmax(0,1fr); }
  .qr-tile:first-child { grid-column:auto; }
  .qr-receipt-top { flex-wrap:wrap; }
}
/* Phase 6 : lisibilité des contrôles sur surfaces claires et sombres. */
html[data-theme="dark"] .pagination button:is(.current,:hover:not(:disabled)) { color:#153626; }
html[data-theme="dark"] :is(.app-kicker,.app-welcome h1 span) { color:var(--honey); }
html[data-theme="dark"] .app-section-head a { color:var(--mint); }
/* Phase 5 : états pédagogiques, demandes de support et notifications. */
.security-state { display:flex; justify-content:space-between; align-items:center; gap:9px; padding:11px 0; border-bottom:1px solid var(--border); }
.security-state > span:first-child { font-size:12px; color:var(--text); }
.security-state .badge { flex:none; font-size:10px; }
.security-roadmap-links { display:flex; flex-wrap:wrap; gap:15px; margin-top:17px; }
@media (max-width:360px) { .security-state { flex-wrap:wrap; } }
/* Phase 5 : demandes de support simulées et notifications explicites. */
.help-ticket-row { color:var(--text); text-decoration:none; gap:9px; }
.help-ticket-row:hover,.help-ticket-row:focus-visible { background:var(--green-pale); }
.help-ticket-row .badge { white-space:nowrap; }
.help-ticket-row .recent-info { min-width:0; overflow-wrap:anywhere; }
.help-ticket-row .recent-info > span { overflow-wrap:anywhere; }
.help-ticket-detail { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(250px,.75fr); gap:18px; align-items:start; }
.help-ticket-head { display:flex; flex-wrap:wrap; align-items:center; gap:11px; margin:9px 0 18px; }
.help-ticket-head h2 { margin:0; font-size:23px; overflow-wrap:anywhere; }
.help-ticket-detail .detail-line { gap:13px; }
.help-ticket-detail .detail-line strong { overflow-wrap:anywhere; text-align:right; }
.help-ticket-message { padding:15px; border:1px solid var(--border); border-radius:12px; color:var(--text); background:var(--green-pale); white-space:pre-wrap; overflow-wrap:anywhere; }
.help-ticket-detail aside .service-icon { margin-bottom:15px; }
.help-ticket-detail aside > p { font-size:12px; color:var(--muted); line-height:1.6; }
.help-ticket-detail aside .btn { margin-top:16px; }
.help-consent { margin:5px 0 17px; }
@media (max-width:767px) {
  .help-ticket-detail { grid-template-columns:minmax(0,1fr); }
  .help-ticket-row { flex-wrap:wrap; }
  .help-ticket-row .badge { margin-left:40px; }
}
@media (min-width:768px) and (max-width:1023px) { .help-ticket-detail { grid-template-columns:minmax(0,1fr); } }
.notification-tools { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin:0 0 17px; }
.notification-categories { display:flex; flex:1 1 520px; gap:7px; max-width:100%; overflow-x:auto; padding:4px 0; scrollbar-width:thin; }
.notification-chip,.notification-unread { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:37px; padding:7px 11px; border:1px solid var(--border); border-radius:10px; color:var(--muted); background:var(--white); font:inherit; font-size:11px; font-weight:740; white-space:nowrap; cursor:pointer; }
.notification-chip small { display:grid; place-items:center; min-width:18px; height:18px; border-radius:8px; color:var(--muted); background:var(--green-pale); font-size:9px; }
.notification-chip.selected,.notification-unread.selected { color:var(--blue); border-color:#9bcbae; background:var(--green-pale); }
.notification-copy { flex:1; min-width:0; }
.notification-label { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.notification-label strong { overflow-wrap:anywhere; }
.notification-label .badge { font-size:9px; white-space:nowrap; }
.notification-row { cursor:pointer; }
html[data-theme="dark"] .notification-chip.selected,html[data-theme="dark"] .notification-unread.selected { border-color:#527155; }
@media (max-width:767px) {
  .notification-categories { flex-basis:100%; }
  .notification-unread { width:100%; }
  .notification-row { padding:14px; }
  .notification-row .service-icon { width:31px; height:31px; }
}
/* Phase 4 : portefeuille et convertisseur de scénarios locaux. */
.app-wallet-shortcut { margin-top:7px; background:#f6f7ea; border-color:#e8dfb8; }
.app-wallet-shortcut .app-qr-shortcut-icon { color:#fff0c7; background:#8a703c; }
.wizard-receipt-grid { grid-template-columns:minmax(0,1fr); max-width:820px; margin-inline:auto; }
.finance-dash-wallet { display:flex; align-items:center; gap:9px; min-width:0; margin:0 0 16px; padding:12px; border:1px solid var(--border); border-radius:12px; background:var(--green-pale); color:var(--text); text-decoration:none; }
.finance-dash-wallet > span { display:flex; align-items:center; flex:1; min-width:0; gap:6px; font-size:11px; color:var(--muted); }
.finance-dash-wallet strong { font-size:12px; overflow-wrap:anywhere; }
.finance-wallet-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:13px; margin:20px 0; }
.finance-wallet-card { position:relative; display:flex; align-items:center; gap:12px; min-width:0; padding:19px; background:var(--white); }
.finance-wallet-card:first-child { color:#fff; background:linear-gradient(132deg,#123d2f,#176948); border-color:#297050; }
.finance-wallet-card.is-preferred:not(:first-child) { border-color:#d8b56e; }
.finance-wallet-symbol { display:grid; flex:none; place-items:center; width:39px; height:39px; border-radius:13px; color:#197354; background:var(--green-pale); }
.finance-wallet-card:first-child .finance-wallet-symbol { color:#ffe3a0; background:#ffffff1f; }
.finance-wallet-card > div { min-width:0; flex:1; }
.finance-wallet-card small,.finance-wallet-card strong { display:block; }
.finance-wallet-card small { font-size:9px; font-weight:750; letter-spacing:.08em; color:var(--muted); }
.finance-wallet-card strong { display:flex; flex-wrap:wrap; column-gap:5px; margin-top:6px; font-size:clamp(14px,1.4vw,18px); letter-spacing:-.025em; overflow-wrap:anywhere; }
.finance-wallet-card strong em { align-self:baseline; font-size:11px; font-style:normal; letter-spacing:.025em; }
.finance-wallet-card .badge { position:absolute; right:10px; top:10px; font-size:9px; }
.finance-wallet-card small { padding-right:40px; }
.finance-wallet-card:first-child small { color:#b9d8c4; }
.finance-wallet-card:first-child .badge { background:#e1f3de; color:#176747; }
.finance-wallet-grid { align-items:start; }
.finance-wallet-grid .note-card { position:relative; display:block; aspect-ratio:2.05/1; padding:0; border:0; overflow:hidden; min-width:0; background-color:#1b2a22; background-repeat:no-repeat; background-size:cover; background-position:center; box-shadow:0 12px 24px -14px #000; }
.finance-wallet-grid .note-card.is-preferred { box-shadow:0 0 0 2px #f2d27a, 0 12px 24px -14px #000; }
.note-glass { position:absolute; left:0; right:0; bottom:0; top:24%; z-index:1; display:flex; flex-direction:column; justify-content:flex-end; padding:10px 16px 13px; border-radius:16px 16px 0 0; color:#fff; background:linear-gradient(180deg,#0b141038,#0b14108c 55%,#0b1410b0); -webkit-backdrop-filter:blur(3px) saturate(1.15); backdrop-filter:blur(3px) saturate(1.15); border-top:1px solid #ffffff59; box-shadow:inset 0 1px 0 #ffffff26,0 -6px 14px -8px #00000066; }
.finance-wallet-grid .note-card.stable-usdt { background:linear-gradient(135deg,#0a4d3b,#26a17b); }
.finance-wallet-grid .note-card.stable-usdc { background:linear-gradient(135deg,#0f3a85,#2775ca); }
.stable-logo { position:absolute; right:14px; top:48%; transform:translateY(-58%); z-index:2; width:44%; max-width:150px; aspect-ratio:1; border-radius:50%; background-repeat:no-repeat; background-position:center; box-shadow:0 10px 24px -8px #000a; pointer-events:none; }
.note-blur, .note-img { position:absolute; pointer-events:none; background-repeat:no-repeat; background-position:center; }
.note-blur { inset:-24px; background-size:cover; filter:blur(18px) saturate(1.2) brightness(.85); }
.note-img { inset:0; background-size:contain; }
.ws-card.ws-note { padding:0; border:0; background:#10261c; }
.ws-card.ws-note::before, .ws-card.ws-note::after, .ws-card.ws-note .ws-chip, .ws-card.ws-note .ws-brand, .ws-card.ws-note .ws-card-code { display:none; }
.ws-glass { position:absolute; left:0; right:0; bottom:0; top:30%; z-index:1; display:flex; flex-direction:column; justify-content:flex-end; gap:2px; padding:12px 20px 16px; border-radius:18px 18px 0 0; color:#fff; background:linear-gradient(180deg,#0b141038,#0b14108c 55%,#0b1410b0); -webkit-backdrop-filter:blur(3px) saturate(1.15); backdrop-filter:blur(3px) saturate(1.15); border-top:1px solid #ffffff59; box-shadow:inset 0 1px 0 #ffffff26; }
.ws-card.ws-note .ws-glass .ws-card-name, .ws-card.ws-note .ws-glass .ws-card-amount { position:static; left:auto; bottom:auto; margin:0; color:#fff; text-shadow:0 1px 6px #0009; }
.ws-card.ws-note .ws-glass .ws-card-name { font-size:13px; }
.ws-card.ws-note .ws-glass .ws-card-amount { font-size:26px; }
.finance-wallet-grid .note-card small { display:block; padding:0; font-size:10px; font-weight:700; letter-spacing:.08em; color:#fff; text-shadow:0 1px 5px #0009; }
.finance-wallet-grid .note-card strong { display:block; margin-top:2px; font-size:21px; letter-spacing:-.02em; color:#fff; text-shadow:0 1px 6px #0009; }
.finance-wallet-grid .note-card .badge { position:absolute; top:9px; right:9px; z-index:1; display:inline-block; font-size:10px; font-weight:700; padding:4px 9px; border-radius:9px; background:#0b1410a6; color:#fff; border:1px solid #ffffff38; -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); }
.finance-wallet-grid .note-card.is-preferred .badge { background:#5a430ecc; border-color:#f2d27a99; color:#ffe9b0; }
.note-dots { display:none; justify-content:center; gap:7px; margin:-8px 0 14px; }
.note-dots button { width:8px; height:8px; padding:0; border:0; border-radius:50%; background:#b7c4bb; cursor:pointer; transition:width .2s,background .2s; }
.note-dots button[aria-current="true"] { width:22px; border-radius:5px; background:#176948; }
html[data-theme="dark"] .note-dots button { background:#3a5446; }
html[data-theme="dark"] .note-dots button[aria-current="true"] { background:#7fd1a1; }
.wallet-open-wrap { max-width:420px; margin:0 0 18px; }
@media (max-width:767px) {
  .finance-wallet-grid.note-slider { display:flex !important; overflow-x:auto; scroll-snap-type:x mandatory; gap:12px; scrollbar-width:none; -webkit-overflow-scrolling:touch; padding:0 7%; scroll-padding:0 7%; margin-inline:-16px; align-items:flex-start; }
  .finance-wallet-grid.note-slider::-webkit-scrollbar { display:none; }
  .finance-wallet-grid.note-slider > .card { flex:0 0 86%; scroll-snap-align:center; }
  .note-dots { display:flex; }
}
.finance-actions { display:flex; flex-wrap:wrap; gap:10px; margin:15px 0 21px; }
.finance-operation { max-width:790px; margin:0 0 22px; }
.finance-operation .auth-form { max-width:570px; }
.finance-operation .section-note { margin:5px 0 16px; }
.finance-wallet-history { margin-top:18px; }
.finance-movement-list { display:grid; }
.finance-movement-row { display:grid; grid-template-columns:40px minmax(0,1fr) auto 16px; align-items:center; gap:11px; padding:13px 4px; color:var(--text); border-bottom:1px solid var(--border); text-decoration:none; }
.finance-movement-row:hover,.finance-movement-row:focus-visible { background:var(--green-pale); border-radius:9px; }
.finance-movement-avatar { width:36px; height:36px; }
.finance-movement-icon { display:grid; place-items:center; width:36px; height:36px; border-radius:11px; background:var(--green-pale); color:var(--blue); }
.finance-movement-row > span:nth-child(2) { min-width:0; }
.finance-movement-row strong,.finance-movement-row small { display:block; overflow-wrap:anywhere; }
.finance-movement-row strong { font-size:12px; }
.finance-movement-row small { color:var(--muted); font-size:10px; line-height:1.5; }
.finance-movement-amount { text-align:right; }
.finance-reset { margin-top:17px; }
.finance-converter { margin-bottom:19px; }
.finance-converter-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:22px; }
.finance-quote { min-width:0; padding:17px; background:var(--green-pale); border:1px solid var(--border); border-radius:13px; }
.finance-quote-top { display:grid; gap:4px; }
.finance-quote-top small { color:var(--muted); letter-spacing:.08em; font-size:10px; font-weight:750; }
.finance-quote-top strong { font-size:clamp(19px,2.2vw,29px); color:var(--blue); overflow-wrap:anywhere; }
.finance-quote-top span,.finance-quote > small { color:var(--muted); font-size:11px; line-height:1.5; }
.finance-quote .detail-line { gap:10px; }
.finance-limit { margin-top:17px; }
.finance-tabs { display:flex; flex-wrap:wrap; gap:7px; margin:0 0 17px; padding:5px; border:1px solid var(--border); border-radius:14px; background:var(--white); }
.finance-tab { display:flex; align-items:center; gap:9px; flex:1 1 auto; justify-content:center; min-height:42px; padding:9px 13px; border:0; border-radius:10px; background:transparent; color:var(--muted); font:inherit; font-size:12px; font-weight:750; cursor:pointer; }
.finance-tab.selected { background:var(--green-pale); color:var(--blue); box-shadow:inset 0 0 0 1px var(--border); }
.finance-tab span { display:grid; place-items:center; min-width:22px; height:22px; padding:0 5px; border-radius:9px; background:var(--white); color:var(--muted); font-size:10px; }
.finance-local-filters { margin-bottom:17px; }
.finance-local-filters > .input-wrap { max-width:410px; }
.finance-filter-desktop { display:flex; flex-wrap:wrap; align-items:end; gap:10px; margin-top:10px; }
.finance-filter-desktop label { display:grid; gap:4px; color:var(--muted); font-size:10px; min-width:115px; }
.finance-filter-desktop label .select,.finance-filter-desktop label .input { min-height:37px; font-size:11px; }
.finance-filter-desktop .mini-link { min-height:36px; }
.finance-local-results { overflow:hidden; }
.finance-local-table { overflow-x:auto; }
.finance-local-table small { color:var(--muted); }
.finance-local-mobile { display:none; }
.finance-local-results .table-bottom { padding:15px 18px; }
.finance-local-results .pagination { align-items:center; }
.finance-local-results .pagination > span { color:var(--muted); font-size:11px; }
.finance-local-results .empty-state { padding:35px 18px; }
.flow-saved-recipients #wizard-recipient-search { margin:10px 0 8px; }
.flow-saved-recipients #wizard-saved-results { max-height:340px; overflow-y:auto; }
.benef-filter-panel .input-wrap { max-width:390px; }
.benef-filter-controls { display:flex; flex-wrap:wrap; align-items:end; gap:9px; margin-top:11px; }
.benef-filter-controls label { display:grid; gap:4px; min-width:150px; color:var(--muted); font-size:10px; }
.benef-filter-controls .select { min-height:37px; font-size:11px; }
.benef-filter-controls .mini-link { min-height:36px; }
html[data-theme="dark"] .finance-tab.selected { background:#203d2a; color:var(--mint); }
html[data-theme="dark"] .app-wallet-shortcut { background:#312e20; border-color:#6c5b34; }
html[data-theme="dark"] .app-wallet-shortcut .app-qr-shortcut-icon { background:#886736; }
html[data-theme="dark"] .finance-wallet-card:first-child { background:linear-gradient(132deg,#17462f,#225f43); }
html[data-theme="dark"] .finance-wallet-symbol,html[data-theme="dark"] .finance-movement-icon { background:#253f2c; color:var(--mint); }
html[data-theme="dark"] .finance-wallet-card:first-child .finance-wallet-symbol { background:#ffffff1f; color:var(--honey); }
html[data-theme="dark"] .finance-quote { background:#202f23; border-color:var(--stroke); }
@media (max-width:767px) {
  .finance-wallet-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
  .finance-wallet-card { display:block; padding:14px; }
  .finance-wallet-symbol { width:30px; height:30px; margin-bottom:12px; }
  .finance-wallet-symbol svg { width:16px; height:16px; }
  .finance-wallet-card .badge { display:none; }
  .finance-wallet-card small { padding-right:0; }
  .finance-wallet-card strong { font-size:15px; }
  .finance-converter-grid { grid-template-columns:minmax(0,1fr); }
  .finance-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:3px; padding:4px; }
  .finance-tab { flex-wrap:wrap; gap:3px; min-width:0; padding:8px 3px; text-align:center; line-height:1.25; font-size:10px; }
  .finance-filter-desktop,.finance-local-table { display:none !important; }
  .finance-local-mobile { display:grid; gap:9px; padding:14px; }
  .finance-local-mobile .tx-mobile-sort { justify-self:end; }
  .finance-local-card { display:grid; gap:7px; padding:14px; border:1px solid var(--border); border-radius:13px; background:var(--white); color:var(--text); text-decoration:none; }
  .finance-local-card > span { display:flex; justify-content:space-between; gap:5px; align-items:center; flex-wrap:wrap; }
  .finance-local-card strong { font-size:12px; }
  .finance-local-card small { color:var(--muted); font-size:10px; overflow-wrap:anywhere; }
  .finance-local-card b { font-size:15px; overflow-wrap:anywhere; }
  /* Historique du portefeuille (mobile) : montant à droite, frais lisibles, « Reçu » en petit lien, onglets de même largeur. */
  .finance-movement-row { grid-template-columns:36px minmax(0,1fr) auto; gap:2px 10px; align-items:start; }
  .finance-movement-row > :first-child { grid-row:1 / span 3; }
  .finance-movement-amount { display:contents; }
  .finance-movement-amount > strong { grid-column:3; grid-row:1; text-align:right; white-space:nowrap; }
  .finance-movement-amount > small { grid-column:3; grid-row:2; text-align:right; white-space:nowrap; }
  .finance-movement-amount > .fm-balance { display:none; }
  .finance-movement-amount > .btn { grid-column:2; justify-self:start; min-height:0; height:auto; padding:4px 0; gap:4px; font-size:11px; background:none; box-shadow:none; color:#177c57; }
  .finance-movement-row > svg { display:none; }
  .fm-amt.fm-in { color:#177c57; }
  html[data-theme="dark"] .fm-amt.fm-in, html[data-theme="dark"] .finance-movement-amount > .btn { color:#91d8ab; }
  .finance-tabs-history .finance-tab { flex-wrap:nowrap; flex-direction:row; gap:5px; white-space:nowrap; padding:9px 2px; font-size:11px; }
  .finance-tabs-history .finance-tab .ft-long { display:none; }
  .finance-tabs-history .finance-tab .ft-short { display:inline; }
}
.finance-tab em { font-style:normal; }
.finance-tabs-history .ft-short { display:none; }
@media (max-width:360px) {
  .finance-wallet-grid { grid-template-columns:minmax(0,1fr); }
}
@media print {
  .qr-receipt { max-width:100%; padding:0; border:0; box-shadow:none; color:#17372b; }
  body:has(.qr-receipt) { background:white; }
  body:has(.qr-receipt) :is(.sidebar,.topbar,.mobile-tabbar,.demo-banner,.page-title-row,.page-footer,.qr-receipt-actions,.skip-link,.toast-stack) { display:none !important; }
  body:has(.qr-receipt) .shell-main { margin:0; }
  body:has(.qr-receipt) .page-wrap { max-width:none; padding:0; }
  .qr-receipt-warning { color:#775420; background:#fcf5e6; print-color-adjust:exact; }
}
/* Mobile : les fenêtres de confirmation empilent leurs boutons (le bouton principal en haut) au lieu de déborder. */
@media (max-width:560px) {
  .modal-footer.modal-footer-stack { flex-direction:column-reverse; align-items:stretch; }
  .modal-footer.modal-footer-stack .btn { width:100%; justify-content:center; text-align:center; white-space:normal; }
}
/* Transfert ZaloPay : les longs noms (pays, bénéficiaire) passent à la ligne au lieu d'élargir la carte au-delà de l'écran. */
#wallet-p2p .auth-form > *, #wallet-p2p .form-two > * { min-width:0; }
#p2p-contacts .btn { max-width:100%; height:auto; min-height:44px; white-space:normal; align-items:center; }
#p2p-contacts .btn > span:last-child { min-width:0; overflow-wrap:anywhere; }
#login-country-group[hidden] { display:none; }
#register-relocation-group[hidden] { display:none; }

/* Types de compte, vérification d'identité par caméra et revue en console. */
.tier-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr)); gap:14px; margin-bottom:14px; }
.tier-card.current { border:2px solid #177c57; }
.tier-price { font-size:20px; font-weight:800; margin:6px 0 2px; }
.kyc-steps { display:grid; gap:10px; }
.kyc-step { display:grid; grid-template-columns:56px minmax(0,1fr) auto; gap:12px; align-items:center; padding:10px; border:1px solid var(--border); border-radius:14px; }
.kyc-step strong, .kyc-step small { display:block; }
.kyc-step small { color:var(--muted); font-size:11px; }
.kyc-thumb { display:grid; place-items:center; width:56px; height:56px; border-radius:12px; background:var(--green-pale); color:var(--blue); overflow:hidden; }
.kyc-thumb img { width:100%; height:100%; object-fit:cover; }
.kyc-cam { position:relative; aspect-ratio:3 / 4; max-height:62vh; margin:0 auto; background:#0b0f0c; border-radius:16px; overflow:hidden; }
.kyc-cam video { width:100%; height:100%; object-fit:cover; display:block; }
.kyc-guide { position:absolute; inset:0; pointer-events:none; }
.kyc-guide-doc::after { content:""; position:absolute; left:8%; right:8%; top:30%; bottom:30%; border:3px dashed #ffffffcc; border-radius:14px; box-shadow:0 0 0 999px #00000055; }
.kyc-guide-face::after { content:""; position:absolute; left:18%; right:18%; top:12%; bottom:18%; border:3px solid #ffffffcc; border-radius:50%; box-shadow:0 0 0 999px #00000055; }
.kyc-count { position:absolute; inset:auto 0 18px 0; text-align:center; color:#fff; font-size:54px; font-weight:800; text-shadow:0 2px 12px #000; }
.kyc-cam-text { margin:12px 0 4px; font-weight:700; text-align:center; }
.kyc-review { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr)); gap:10px; margin:10px 0; }
.kyc-fig { margin:0; }
.kyc-fig figcaption { font-size:11px; color:var(--muted); margin-top:4px; }
.kyc-img-btn { display:block; width:100%; padding:0; border:0; background:none; cursor:pointer; border-radius:12px; overflow:hidden; }
.kyc-img { display:block; width:100%; aspect-ratio:4 / 3; object-fit:cover; background:#e6ebe6; transition:filter .2s; }
.kyc-img.blurred { filter:blur(18px); }
.tier-price-grid { display:grid; grid-template-columns:52px minmax(0,1fr) minmax(0,1fr); gap:8px; align-items:center; }
.tier-price-cur { font-weight:700; font-size:12px; }
.tier-limit-grid { display:grid; grid-template-columns:52px 64px minmax(0,1fr) minmax(0,1fr); gap:6px 8px; align-items:center; }
.tier-limit-grid .input { min-height:0; height:34px; padding:6px 10px; font-size:13px; }
.tier-limit-grid .tier-price-cur { align-self:start; padding-top:9px; }
.tier-limit-head { font-size:10px; font-weight:800; letter-spacing:.09em; text-transform:uppercase; color:#8795a5; }
.tier-limit-tier { font-size:12px; color:#5c6e82; }
/* Pages publiques longues (inscription, contact, conditions…) : le formulaire commence sous le logo, sans le chevaucher. */
@media (min-width: 768px) {
  .public-auth:is(.auth-view-register,.auth-view-contact,.auth-view-terms,.auth-view-legal,.auth-view-forgot-password,.auth-view-reset-password) .auth-content { padding-top:112px; }
}
/* Sélecteur de langue (FR / EN) */
.lang-switch { display:inline-flex; gap:2px; padding:3px; border:1px solid #d9e6d8; border-radius:999px; background:#f2f7ef; }
.lang-switch button { min-width:34px; height:28px; padding:0 9px; border:0; border-radius:999px; background:transparent; color:#4a6a58; font:inherit; font-size:11.5px; font-weight:760; letter-spacing:.03em; cursor:pointer; }
.lang-switch button[aria-pressed="true"] { background:#176d4e; color:#fff; }
.lang-switch button:focus-visible { outline:3px solid #d5ba73; outline-offset:1px; }
html[data-theme="dark"] .lang-switch { background:#1c231e; border-color:#3a4b3d; }
html[data-theme="dark"] .lang-switch button { color:#cfe0d3; }
html[data-theme="dark"] .lang-switch button[aria-pressed="true"] { background:#2f8f68; color:#fff; }
.top-lang { margin-right:2px; }
.public-auth .auth-lang-desktop { position:absolute; z-index:4; top:25px; right:84px; }
.public-auth .auth-lang-mobile { display:none; }
@media (max-width: 767px) {
  .public-auth .auth-lang-desktop { display:none; }
  .public-auth .auth-lang-mobile { position:absolute; z-index:4; display:inline-flex; top:17px; right:62px; background:#ffffff2b; border-color:#ffffff63; }
  .public-auth .auth-lang-mobile button { color:#fff; }
  .public-auth .auth-lang-mobile button[aria-pressed="true"] { background:#fff; color:#176d4e; }
}
/* Section portefeuille : solde, pile de cartes (un compte par monnaie), onglets, actions — échelle alignée sur le reste du tableau de bord */
.wallet-section { position:relative; overflow:hidden; isolation:isolate; margin-bottom:24px; padding:30px 34px; border-radius:22px; border:1px solid #e8c77a2e; background:radial-gradient(110% 90% at 100% 0%, #1f6249 0%, #1f624900 60%), linear-gradient(165deg,#103d2e 0%,#0a2a20 100%); color:#f4f1e6; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,.9fr); grid-template-areas:"head cards" "amount cards" "sub cards" "tabs cards" "actions cards"; grid-template-rows:auto auto auto auto auto; column-gap:32px; align-content:center; box-shadow:0 22px 44px #07201738, inset 0 1px 0 #ffffff12; }
.ws-rings { position:absolute; inset:0; z-index:-1; pointer-events:none; }
.ws-rings i { position:absolute; border:1px solid #e8c77a1f; border-radius:50%; }
.ws-rings i:nth-child(1) { width:380px; height:380px; right:-70px; top:-190px; }
.ws-rings i:nth-child(2) { width:500px; height:500px; right:-130px; top:-250px; border-color:#e8c77a16; }
.ws-rings i:nth-child(3) { width:620px; height:620px; right:-190px; top:-310px; border-color:#e8c77a0e; }
.ws-head { grid-area:head; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.ws-title { display:none; margin:0; color:#f6f2e6; font-size:22px; font-weight:700; letter-spacing:-.01em; }
.ws-label { color:#b9cfc1; font-size:11px; font-weight:760; letter-spacing:.2em; }
.ws-eye { position:relative; width:34px; height:34px; padding:0; display:grid; place-items:center; border:1px solid #ffffff26; border-radius:50%; background:#ffffff0d; color:#dcebe0; cursor:pointer; transition:background .15s; }
.ws-eye .icon { width:16px; height:16px; }
.ws-eye:hover { background:#ffffff1f; }
.ws-eye.is-off::after { content:""; position:absolute; width:18px; height:2px; border-radius:2px; background:currentColor; transform:rotate(-40deg); }
.ws-eye:focus-visible { outline:2px solid #e8c77a; outline-offset:2px; }
.ws-amount { grid-area:amount; display:flex; align-items:center; gap:12px; margin-top:12px; min-width:0; }
.ws-num { font-size:clamp(32px, 3.4vw, 48px); line-height:1.05; font-weight:760; letter-spacing:-.02em; font-variant-numeric:tabular-nums; color:#f8f4e8; white-space:nowrap; text-shadow:0 2px 14px #00000040; }
.ws-code { padding:3px 11px; border:1px solid #e8c77a80; border-radius:999px; background:#e8c77a1a; color:#efd08a; font-size:12.5px; font-weight:760; letter-spacing:.1em; }
.ws-code:empty { display:none; }
.ws-sub { grid-area:sub; margin:8px 0 0; color:#a9c1b3; font-size:13.5px; }
.ws-net-short { display:none; }
.ws-tabs { grid-area:tabs; justify-self:start; max-width:100%; margin-top:20px; display:inline-flex; gap:4px; padding:5px; border:1px solid #ffffff1a; border-radius:14px; background:#00000026; overflow-x:auto; scrollbar-width:none; }
.ws-tabs::-webkit-scrollbar { display:none; }
.ws-tab { flex:none; display:inline-flex; align-items:center; gap:8px; height:36px; padding:0 14px; border:0; border-radius:10px; background:transparent; color:#cfe0d4; font:inherit; font-size:13.5px; cursor:pointer; white-space:nowrap; transition:background .15s; }
.ws-tab:hover { background:#ffffff14; }
.ws-tab b { font-weight:760; color:inherit; }
.ws-tab-amt { color:#9db8a8; font-size:12.5px; font-variant-numeric:tabular-nums; }
.ws-tab[aria-selected="true"] { background:linear-gradient(180deg,#fcf8ec,#ebe3cd); color:#0d2f24; box-shadow:0 5px 12px #00000038; }
.ws-tab[aria-selected="true"] .ws-tab-amt { color:#3d5a49; }
.ws-tab:focus-visible { outline:2px solid #e8c77a; outline-offset:2px; }
.ws-actions { grid-area:actions; display:flex; flex-wrap:wrap; gap:10px; margin-top:20px; align-items:center; }
.ws-btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:0 18px; border:1px solid #ffffff1f; border-radius:12px; background:#ffffff12; color:#f4f1e6; font-size:14px; font-weight:700; text-decoration:none; transition:background .15s, transform .15s; }
.ws-btn:hover { background:#ffffff22; }
.ws-btn:active { transform:scale(.98); }
.ws-btn-gold { border-color:#f1d489; background:linear-gradient(135deg,#f4daa0,#deb75d); color:#1d2a1c; box-shadow:0 10px 20px #e8c77a33; }
.ws-btn-gold:hover { background:linear-gradient(135deg,#f8e2b0,#e6c26d); }
.ws-btn-icon { width:44px; padding:0; }
.ws-btn .icon { width:17px; height:17px; }
.ws-btn:focus-visible, .ws-history:focus-visible { outline:2px solid #e8c77a; outline-offset:2px; }
.ws-history { display:none; }
.ws-cards { grid-area:cards; align-self:center; justify-self:center; width:100%; max-width:400px; }
.ws-stack { position:relative; height:226px; outline:none; touch-action:pan-y; user-select:none; cursor:grab; }
.ws-stack:active { cursor:grabbing; }
.ws-stack:focus-visible { box-shadow:0 0 0 2px #e8c77a; border-radius:22px; }
.ws-card { position:absolute; left:0; top:20px; width:calc(100% - 52px); height:190px; box-sizing:border-box; padding:22px 24px; border-radius:20px; overflow:hidden; color:#f4f1e6; border:1px solid #ffffff1f; box-shadow:0 18px 32px #00000052, inset 0 1px 0 #ffffff2e; transform-origin:left bottom; z-index:calc(10 - var(--o)); transform:translate(calc(var(--o) * 26px), calc(var(--o) * -11px)) rotate(calc(var(--o) * 2.2deg)) scale(calc(1 - var(--o) * .035)); transition:transform .5s cubic-bezier(.2,.7,.2,1), opacity .4s ease; }
.ws-card::before { content:""; position:absolute; inset:0; background:radial-gradient(120% 90% at 0% 0%, #ffffff29, #ffffff00 56%); pointer-events:none; }
.ws-card::after { content:""; position:absolute; right:-70px; bottom:-90px; width:230px; height:230px; border:30px solid #ffffff0d; border-radius:50%; pointer-events:none; }
.ws-card-0 { background:linear-gradient(135deg,#1d7154,#0e4132); }
.ws-card-1 { background:linear-gradient(135deg,#1c6065,#0c3a40); }
.ws-card-2 { background:linear-gradient(135deg,#76632d,#3b3218); }
.ws-card.is-past { opacity:0; pointer-events:none; transform:translateX(-70%) rotate(-9deg); }
.ws-card.is-far { opacity:0; }
.ws-chip { position:absolute; right:24px; top:22px; width:44px; height:32px; border-radius:7px; background:linear-gradient(135deg,#f0d58d,#cfa94e); box-shadow:inset 0 0 0 1px #ffffff55; z-index:1; }
.ws-chip::before { content:""; position:absolute; inset:7px 13px; border:2px solid #5a431a55; border-radius:3px; }
.ws-brand { position:relative; z-index:1; display:flex; flex-direction:column; color:#cfe0d4; font-size:11px; font-weight:760; letter-spacing:.18em; }
.ws-brand b { margin-top:5px; color:#f0d38d; font-size:20px; letter-spacing:.05em; }
.ws-card-name { position:absolute; z-index:1; left:24px; bottom:60px; color:#d8e8dc; font-size:13px; }
.ws-card-amount { position:absolute; z-index:1; left:24px; bottom:22px; color:#fffbea; font-size:26px; font-weight:760; letter-spacing:-.01em; font-variant-numeric:tabular-nums; }
.ws-card-code { position:absolute; z-index:1; right:22px; bottom:16px; color:#ffffff24; font-size:46px; font-weight:800; letter-spacing:-.02em; }
.ws-nav { display:flex; align-items:center; justify-content:center; gap:14px; margin-top:14px; }
.ws-arrow { display:grid; place-items:center; flex:none; width:38px; height:38px; padding:0; border:1px solid #ffffff2b; border-radius:50%; background:#ffffff0d; color:#f4f1e6; cursor:pointer; transition:background .15s; }
.ws-arrow .icon { width:17px; height:17px; }
.ws-arrow:hover { background:#ffffff1f; }
.ws-arrow.is-edge { opacity:.38; }
.ws-arrow:focus-visible { outline:2px solid #e8c77a; outline-offset:2px; }
.ws-dots { display:flex; gap:7px; align-items:center; }
.ws-dot { width:8px; height:8px; padding:0; border:0; border-radius:50%; background:#ffffff4d; cursor:pointer; transition:width .2s, background .2s; }
.ws-dot[aria-current="true"] { width:24px; border-radius:5px; background:#e8c77a; }
.ws-pos { color:#a9c1b3; font-size:13px; letter-spacing:.05em; min-width:36px; text-align:center; }
/* Tablette et ordinateurs à contenu étroit (jusqu'à 1360 px avec le menu latéral) : solde et pile de cartes en haut, onglets et boutons en pleine largeur dessous */
@media (min-width: 768px) and (max-width: 1360px) {
  .wallet-section { padding:26px 28px 24px; column-gap:28px; grid-template-columns:minmax(0,1fr) minmax(0,.95fr); grid-template-areas:"head cards" "amount cards" "sub cards" "tabs tabs" "actions actions"; grid-template-rows:1fr auto 1fr auto auto; }
  .ws-head { align-self:end; }
  .ws-sub { align-self:start; }
  .ws-cards { max-width:350px; align-self:start; }
  .ws-stack { height:204px; }
  .ws-card { height:170px; padding:18px 20px; width:calc(100% - 44px); }
  .ws-card-name { bottom:54px; }
  .ws-card-amount { font-size:23px; bottom:18px; left:20px; }
  .ws-card-code { font-size:40px; }
  .ws-brand b { font-size:18px; }
  .ws-chip { right:20px; top:18px; width:40px; height:28px; }
  .ws-chip::before { inset:6px 11px; }
  .ws-nav { margin-top:10px; }
  .ws-tabs { justify-self:stretch; display:flex; margin-top:6px; }
  .ws-tab { flex:1 1 0; justify-content:center; }
  .ws-actions { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) minmax(0,1fr) auto; gap:10px; margin-top:14px; }
  .ws-btn { width:100%; padding:0 12px; }
  .ws-btn-icon { width:44px; }
}
@media (min-width: 1001px) and (max-width: 1360px) {
  .ws-tabs { justify-self:start; display:inline-flex; margin-top:14px; }
  .ws-tab { flex:none; padding:0 18px; }
  .ws-actions { display:flex; margin-top:14px; }
  .ws-btn { width:auto; padding:0 18px; }
  .ws-btn-icon { width:44px; padding:0; }
}
@media (max-width: 767px) {
  .wallet-section { margin:12px 0 16px; padding:22px 18px 18px; border-radius:24px; grid-template-columns:minmax(0,1fr); grid-template-areas:"head" "amount" "sub" "cards" "tabs" "actions" "history"; }
  .ws-rings i:nth-child(1) { width:280px; height:280px; right:-110px; top:-140px; }
  .ws-rings i:nth-child(2) { width:380px; height:380px; right:-160px; top:-190px; }
  .ws-rings i:nth-child(3) { width:480px; height:480px; right:-210px; top:-240px; }
  .ws-head { align-items:center; }
  .ws-title { display:block; order:1; flex:1 1 auto; }
  .ws-eye { order:2; }
  .ws-label { order:3; flex:0 0 100%; margin-top:12px; font-size:10.5px; }
  .ws-amount { margin-top:6px; gap:10px; }
  .ws-num { font-size:clamp(34px, 10vw, 44px); }
  .ws-code { font-size:11.5px; padding:2px 10px; }
  .ws-sub { font-size:12.5px; margin-top:6px; }
  .ws-net-long { display:none; }
  .ws-net-short { display:inline; }
  .ws-cards { max-width:none; margin-top:0; }
  .ws-stack { height:196px; margin-top:6px; }
  .ws-card { top:30px; width:100%; height:162px; padding:16px 18px; transform:translateY(calc(var(--o) * -14px)) scale(calc(1 - var(--o) * .05)); transform-origin:center bottom; }
  .ws-card.is-past { transform:translateX(-80%) rotate(-8deg); }
  .ws-card::after { right:-60px; bottom:-80px; width:190px; height:190px; border-width:24px; }
  .ws-brand { font-size:10px; }
  .ws-brand b { font-size:17px; margin-top:4px; }
  .ws-chip { right:18px; top:16px; width:38px; height:27px; }
  .ws-chip::before { inset:6px 10px; }
  .ws-card-name { display:block; left:18px; bottom:50px; font-size:12px; }
  .ws-card-amount { left:18px; bottom:16px; font-size:22px; }
  .ws-card-code { right:16px; bottom:10px; font-size:36px; }
  .ws-nav { display:none; }
  .ws-tabs { justify-self:stretch; display:flex; margin-top:16px; padding:4px; border-radius:13px; }
  .ws-tab { flex:1 1 0; justify-content:center; height:36px; padding:0 6px; font-size:13.5px; }
  .ws-tab-amt { display:none; }
  .ws-actions { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(0,1fr) minmax(0,1fr); gap:8px; margin-top:14px; }
  .ws-btn { flex-direction:column; gap:6px; min-height:66px; padding:8px 4px; border-radius:14px; font-size:clamp(11.5px, 3.2vw, 13px); text-align:center; }
  .ws-btn-icon { display:none; }
  .ws-btn .icon { width:19px; height:19px; }
  .ws-history { grid-area:history; display:flex; align-items:center; gap:10px; margin-top:14px; min-height:48px; padding:0 16px; border:1px solid #ffffff1f; border-radius:14px; background:#ffffff0d; color:#f4f1e6; font-size:14px; font-weight:700; text-decoration:none; }
  .ws-history .icon { width:17px; height:17px; }
  .ws-history span { flex:1; }
}
/* Vérification du profil (pourcentage) et vérification de la photo par trois gestes */
.verif-card { margin-bottom:16px; }

.wizard-compact { display:none; }
@media (max-width:1099px) {
  .wizard-stepper { display:none !important; }
  .wizard-compact { display:grid; gap:8px; margin:6px 0 14px; }
  .wc-count { font-size:12px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); }
  .wc-count strong { color:var(--green); font-weight:800; }
  .wc-bar { display:grid; grid-template-columns:repeat(7,1fr); gap:5px; }
  .wc-bar i { height:6px; border-radius:99px; background:#dfe9df; }
  .wc-bar i.done { background:#9cc9a8; }
  .wc-bar i.current { background:var(--green); }
  .wc-nav { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:8px; }
  .wc-now { font-weight:800; font-size:16px; text-align:center; color:var(--ink, #12372a); padding:4px 12px; border-radius:99px; background:var(--green-pale); }
  .wc-side { display:flex; align-items:center; gap:4px; font-size:13px; color:var(--muted); min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .wc-prev { justify-content:flex-start; } .wc-next { justify-content:flex-end; }
}
.wallet-close { position:absolute; right:10px; bottom:10px; z-index:3; font-size:11px; font-weight:700; padding:4px 11px; border-radius:99px; background:#ffffffe6; border:1px solid #0002; color:#8a2b2b; cursor:pointer; }
.wallet-close:hover { background:#fff; }
.finance-wallet-card .wallet-close { background:var(--green-pale); }
.phone-row { display:flex; align-items:stretch; }
.phone-prefix { display:flex; align-items:center; padding:0 12px; min-width:58px; justify-content:center; font-weight:700; border:1px solid var(--border); border-right:0; border-radius:12px 0 0 12px; background:var(--green-pale); color:var(--green); }
.phone-row .input { border-radius:0 12px 12px 0; flex:1; min-width:0; }
.chw { max-width:980px; margin-left:auto; margin-right:auto; display:block; }
.chw-top h2 { margin:0 0 4px; }
.chw-steps { list-style:none; display:flex; align-items:center; gap:0; margin:14px 0 18px; padding:0; }
.chw-step { display:flex; align-items:center; gap:8px; font-size:13px; color:var(--muted); white-space:nowrap; }
.chw-step + .chw-step { flex:1; }
.chw-step + .chw-step::before { content:""; flex:1; height:2px; min-width:18px; margin:0 10px; background:var(--border); }
.chw-step.is-done + .chw-step::before, .chw-step.is-now::before { background:var(--green); }
.chw-dot { width:26px; height:26px; border-radius:50%; display:grid; place-items:center; font-size:12px; font-weight:700; border:1px solid var(--border); color:var(--muted); background:var(--surface-1,#fff); flex:none; }
.chw-step.is-now .chw-dot, .chw-step.is-done .chw-dot { background:var(--green); border-color:var(--green); color:#fff; }
.chw-step.is-now { color:var(--ink,#12372a); font-weight:700; }
.chw-step.is-done { color:var(--green); }
.chw-head h3 { margin:0 0 2px; font-size:18px; } .chw-head p { margin:0 0 14px; color:var(--muted); font-size:13px; }
.chw-pane[hidden] { display:none; }
.chw-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.chw-grid3 { grid-template-columns:repeat(3,minmax(0,1fr)); }
.chw-one { margin-top:12px; } .chw .form-group { margin:0; } .chw .input { width:100%; box-sizing:border-box; min-width:0; }
.chw-two { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); gap:18px; align-items:start; }
.chw-guide { border:1px solid var(--border); border-radius:14px; background:var(--green-pale); padding:14px 16px; font-size:13px; }
.chw-guide ul { list-style:none; margin:8px 0 10px; padding:0; display:grid; gap:7px; }
.chw-guide li { display:flex; gap:8px; align-items:flex-start; } .chw-guide li svg { color:var(--green); flex:none; margin-top:2px; }
.chw-guide small { display:block; color:var(--muted); border-top:1px solid var(--border); padding-top:8px; }
.chw-consent { display:flex; gap:10px; align-items:flex-start; margin:16px 0 0; }
.chw-consent input { margin-top:4px; }
.chw-nav { display:flex; align-items:center; gap:10px; margin-top:20px; padding-top:14px; border-top:1px solid var(--border); }
.chw-nav-gap { flex:1; } .chw-nav .btn[hidden] { display:none; }
.ch-drop-thumb { max-width:100%; max-height:120px; border-radius:8px; object-fit:contain; margin-bottom:6px; }
.ch-drop-thumb[hidden] { display:none; }
.ch-drop-status { font-size:11px; font-weight:600; margin-top:4px; }
.ch-drop-status.ok { color:var(--green); } .ch-drop-status.ko { color:#a32d2d; }
.ch-drop { min-height:130px; align-content:center; }
@media (max-width:760px) {
  .chw-two, .chw-grid, .chw-grid3 { grid-template-columns:1fr; }
  .chw-step .chw-lab { display:none; } .chw-step.is-now .chw-lab { display:inline; }
  .chw-nav { position:sticky; bottom:76px; background:var(--surface-1,#fff); z-index:4; }
  .chw-nav .btn { flex:1; justify-content:center; } .chw-nav-gap { display:none; }
}
.cz-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(400px,34%); gap:20px; align-items:start; width:100%; }
.cz-main { display:grid; gap:18px; min-width:0; }
.cz-side { display:grid; gap:18px; }
.cz-box { display:grid; gap:14px; justify-items:start; }
.cz-box > svg { justify-self:center; }
.cz-bar { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; width:100%; }
.cz-bal strong { font-size:20px; } .cz-bal .cz-st { color:var(--muted); font-size:13px; margin-left:6px; }
.cz-actions { display:flex; gap:8px; flex-wrap:wrap; }
.cz-btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; border-radius:12px; padding:10px 16px; font-size:14px; font-weight:600; border:1px solid var(--border); background:var(--white); color:inherit; cursor:pointer; }
.cz-btn-main { background:var(--green); border-color:var(--green); color:#fff; }
.cz-btn:disabled { opacity:.6; cursor:default; }
.cz-info { padding:24px 26px; } .cz-info-head { display:flex; align-items:center; gap:14px; flex-wrap:wrap; } .cz-info h3 { margin:0; font-size:21px; flex:1 1 auto; } .cz-info ul { list-style:none; margin:18px 0; padding:0; display:grid; gap:13px; font-size:15.5px; line-height:1.4; }
.cz-info h4 { margin:20px 0 8px; font-size:16px; } .cz-info p { margin:0; font-size:14.5px; color:var(--muted); line-height:1.6; } .cz-info ul.cz-fees { font-size:14.5px; color:var(--muted); gap:8px; margin:0 0 4px; } .cz-info ul.cz-fees li::before { content:"•"; color:var(--green); margin-right:2px; }
.cz-info-toggle { display:none; padding:8px 12px; font-size:13px; }
.cz-info li { display:flex; gap:10px; align-items:center; } .cz-info li svg { color:var(--green); flex:none; }
.cz-logos { display:flex; align-items:center; gap:18px; border-top:1px solid var(--border); padding-top:14px; margin-top:6px; }
.cz-tag { font-style:italic; font-family:Georgia,serif; color:var(--muted); margin:14px 0 0; }
.cz-tag::after { content:""; display:block; width:34px; height:3px; border-radius:2px; background:var(--green); margin-top:8px; }
.cz-art { display:grid; justify-items:center; gap:6px; text-align:center; padding:6px 0 14px; }
.cz-buy { display:grid; gap:14px; } .cz-buy [hidden] { display:none !important; }
.cz-buy-head { display:flex; gap:14px; align-items:center; } .cz-buy-head h2 { margin:0; font-size:20px; } .cz-buy-head p { margin:2px 0 0; font-size:13px; color:var(--muted); }
.cz-tile { width:46px; height:46px; border-radius:14px; background:var(--green-pale); color:var(--green); display:grid; place-items:center; flex:none; }
.cz-buy-cols { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.4fr); gap:20px; align-items:start; }
.cz-opt { display:flex; align-items:center; gap:12px; padding:6px 0; cursor:pointer; font-weight:600; }
.cz-opt .cz-logo { margin-left:auto; }
.cz-price { background:var(--green-pale); border-radius:14px; padding:12px 14px; display:grid; gap:10px; }
.cz-price > div { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.cz-price .cz-coin { width:34px; height:34px; border-radius:50%; background:var(--green); color:#fff; display:grid; place-items:center; flex:none; font-weight:700; }
.cz-price .cz-total { font-size:20px; font-weight:700; }
.cz-buy-actions { display:flex; gap:8px; flex-wrap:wrap; } .cz-buy-actions .cz-btn-main { flex:1 1 220px; padding:14px 18px; font-size:15px; }
.cz-box { grid-template-columns:minmax(0,1.5fr) minmax(220px,1fr); align-items:stretch; justify-items:stretch; gap:16px; }
.cz-card-col { min-width:0; display:flex; align-items:center; justify-content:center; }
.cz-panel { background:var(--white); border:1px solid var(--border); border-radius:16px; padding:12px; display:flex; flex-direction:column; gap:8px; min-width:0; }
.cz-ph { display:flex; justify-content:space-between; align-items:center; gap:8px; } .cz-ph strong { display:block; font-size:15px; } .cz-ph small { color:var(--muted); font-size:12px; }
.cz-rows { display:grid; gap:6px; flex:1; grid-auto-rows:minmax(40px,1fr); }
.cz-row { display:flex; align-items:center; gap:10px; padding:4px 10px; border:1px solid var(--border); border-radius:12px; background:var(--white); text-align:left; cursor:pointer; color:inherit; width:100%; box-sizing:border-box; font:inherit; }
.cz-row:disabled { opacity:.6; cursor:default; }
.cz-row .cz-ic { width:30px; height:30px; border-radius:50%; display:grid; place-items:center; flex:none; background:var(--green-pale); color:var(--green); }
.cz-row-main .cz-ic { background:var(--green); color:#fff; }
.cz-row .cz-tx { flex:1; line-height:1.2; min-width:0; } .cz-row b { display:block; font-size:13px; font-weight:600; } .cz-row small { color:var(--muted); font-size:11px; }
.cz-row > svg { color:var(--muted); flex:none; } .cz-extra { grid-column:1 / -1; min-width:0; }
@media (max-width:760px) { .cz-box { grid-template-columns:1fr; } }
@media (max-width:1020px) { .cz-grid { grid-template-columns:1fr; } .cz-info { padding:18px; } .cz-info-toggle { display:inline-flex; } .cz-info:not(.is-open) .cz-info-body { display:none; } }
@media (max-width:640px) { .cz-buy-cols { grid-template-columns:1fr; } .cz-actions { width:100%; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); } .cz-btn { padding:10px 6px; font-size:12px; flex-direction:column; gap:4px; } }
.ch-form { display:grid; gap:6px; }
.ch-section { border:1px solid var(--border); border-radius:16px; padding:14px; display:grid; gap:8px; background:var(--surface, #fff); }
.ch-step { display:flex; gap:12px; align-items:center; padding-bottom:8px; border-bottom:1px solid var(--border); margin-bottom:2px; }
.ch-step strong { display:block; font-size:15px; } .ch-step small { color:var(--muted); font-size:12px; }
.ch-num { width:28px; height:28px; border-radius:50%; background:var(--green); color:#fff; display:grid; place-items:center; font-weight:700; font-size:13px; flex:none; }
.ch-row { display:grid; grid-template-columns:repeat(auto-fit,minmax(128px,1fr)); gap:10px; }
.ch-row > * { min-width:0; }
.ch-tiles { display:grid; grid-template-columns:repeat(auto-fit,minmax(128px,1fr)); gap:10px; }
.ch-tile { position:relative; cursor:pointer; }
.ch-tile input { position:absolute; opacity:0; inset:0; cursor:pointer; }
.ch-tile-body { display:flex; gap:10px; align-items:center; border:1.5px solid var(--border); border-radius:14px; padding:12px; min-height:64px; }
.ch-tile-body strong { display:block; font-size:13px; } .ch-tile-body small { display:block; font-size:11px; color:var(--muted); }
.ch-tile input:checked + .ch-tile-body { border-color:var(--green); background:var(--green-pale); box-shadow:0 0 0 2px var(--green-pale); }
.ch-tile input:focus-visible + .ch-tile-body { outline:2px solid var(--green); outline-offset:2px; }
.ch-drop { position:relative; display:grid; gap:2px; justify-items:center; text-align:center; border:1.5px dashed var(--border); border-radius:14px; padding:16px 10px; cursor:pointer; }
.ch-drop[hidden] { display:none; }
.ch-drop input { position:absolute; inset:0; opacity:0; cursor:pointer; width:100%; height:100%; }
.ch-drop-ic { width:34px; height:34px; border-radius:50%; background:var(--green-pale); color:var(--green); display:grid; place-items:center; margin-bottom:4px; }
.ch-drop strong { font-size:13px; } .ch-drop small { font-size:11px; color:var(--muted); }
.ch-drop-file { font-size:11px; color:var(--green); font-weight:600; word-break:break-all; }
.ch-form .input { min-width:0; width:100%; box-sizing:border-box; }
@media (min-width:900px) { .ch-form { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; align-items:start; } .ch-form > h2, .ch-form > p, .ch-form > label, .ch-form > button, .ch-form > .ch-wide { grid-column:1 / -1; } .ch-form > button { justify-self:start; min-width:280px; } .ch-section.ch-sec3 { grid-column:1 / -1; } }
@media (min-width:1360px) { .ch-form { grid-template-columns:repeat(3,minmax(0,1fr)); } .ch-section.ch-sec3 { grid-column:auto; } }
@media (min-width:900px) { .ch-form { gap:12px; } .ch-section { padding:20px 22px; gap:12px; } .ch-row.ch-3 { grid-template-columns:repeat(3,1fr); } .ch-drop { padding:24px 14px; } }
@media (max-width:420px) { .ch-section { padding:12px; } .ch-tile-body { padding:10px; gap:8px; } .ch-tile-body svg { flex:none; } }
@media (max-width:330px) { .ch-row, .ch-tiles { grid-template-columns:1fr; } }
.ch-drop.has-file { border-style:solid; border-color:var(--green); background:var(--green-pale); }

.verif-top { display:flex; align-items:center; gap:16px; }
.verif-top svg { flex:none; }
.verif-top h2 { margin:4px 0 2px; font-size:18px; }
.verif-top p { margin:0; font-size:12px; color:var(--muted); }
.verif-track { fill:none; stroke:#dfe8e1; stroke-width:8; }
.verif-arc { fill:none; stroke:#176948; stroke-width:8; stroke-linecap:round; }
.verif-pct { font-size:19px; font-weight:800; fill:#12382a; }
.verif-list { list-style:none; margin:14px 0 0; padding:0; }
.verif-row { display:flex; align-items:center; gap:10px; padding:9px 0; border-top:1px solid #e3ebe5; }
.verif-tick { flex:none; width:22px; height:22px; border-radius:50%; display:grid; place-items:center; font-size:13px; font-weight:700; border:1.5px solid #b9c9be; color:transparent; }
.verif-row.is-ok .verif-tick { background:#176948; border-color:#176948; color:#fff; }
.verif-label { flex:1; min-width:0; font-size:13px; color:#4d6356; }
.verif-row.is-ok .verif-label { color:inherit; }
.verif-gain { font-size:12px; font-weight:700; color:#176948; }
.verif-cta { font:inherit; font-size:12px; font-weight:700; color:#176948; text-decoration:none; padding:5px 10px; border:0; border-radius:9px; background:#e6f2ea; white-space:nowrap; cursor:pointer; }
.verif-main { display:flex; align-items:center; justify-content:center; gap:8px; width:100%; box-sizing:border-box; margin-top:14px; padding:14px 16px; border:0; border-radius:13px; background:linear-gradient(135deg,#1d7154,#0e4132); color:#fff; font:inherit; font-weight:700; font-size:15px; text-decoration:none; box-shadow:0 10px 20px -12px #0e4132; cursor:pointer; }
.verif-next { margin:8px 0 0; text-align:center; font-size:12px; color:var(--muted); }
html[data-theme="dark"] .verif-track { stroke:#2c4538; }
html[data-theme="dark"] .verif-arc { stroke:#7fd1a1; }
html[data-theme="dark"] .verif-pct { fill:#e8f0ea; }
html[data-theme="dark"] .verif-row { border-color:#2c4538; }
html[data-theme="dark"] .verif-label { color:#b9cdbf; }
html[data-theme="dark"] .verif-cta { background:#1f3a2c; color:#8fdcae; }
.face-cam video { transform:scaleX(-1); }
.face-steps { display:flex; justify-content:center; gap:10px; margin:12px 0 0; }
.face-steps i { width:10px; height:10px; border-radius:50%; background:#cfd9d1; transition:background .2s,transform .2s; }
.face-steps i[data-state="active"] { background:#e0b64a; transform:scale(1.25); }
.face-steps i[data-state="done"] { background:#176948; }
.face-consent-label { display:flex; gap:10px; align-items:flex-start; margin:12px 0 4px; font-size:13px; }
.face-consent-label input { margin-top:3px; flex:none; width:18px; height:18px; }
/* Détail d'un envoi : rien ne dépasse de l'écran (référence longue, statut, pays) */
.detail-head-top { flex-wrap:wrap; }
.detail-head-top > div, .route-line > div { min-width:0; }
.detail-head h2, .route-line strong, .detail-line strong { overflow-wrap:anywhere; min-width:0; }
.route-line strong { overflow-wrap:break-word; }
@media (max-width:480px) {
  .route-line { flex-direction:column; align-items:flex-start; gap:8px; }
  .route-line .route-arrow { transform:rotate(90deg); margin-left:6px; }
}
/* Application mobile : pas de zoom automatique à la saisie (iOS zoome tout champ dont le texte fait moins de 16 px) */
html { -webkit-text-size-adjust:100%; text-size-adjust:100%; touch-action:manipulation; }
@media (max-width:1024px) and (pointer:coarse), (max-width:767px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]):not([type="submit"]):not([type="button"]),
  select, textarea, .input, .select, .textarea { font-size:16px !important; }
}
