* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: #0f1117;
  color: #ffffff;
  min-height: 100vh;
}

.app-shell {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 100dvh;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  position: relative;
}

.sidebar-backdrop {
  display: none;
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.auth-card {
  width: min(980px, 100%);
  background: #1a1d27;
  border: 1px solid #2a2d3a;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.auth-brand {
  margin-bottom: 24px;
}

.auth-brand .logo {
  margin-bottom: 18px;
}

.auth-brand h1 {
  margin-bottom: 8px;
}

.auth-brand p {
  color: #a4a8ba;
  max-width: 620px;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.auth-panel {
  background: #10131c;
  border: 1px solid #2a2d3a;
  border-radius: 10px;
  padding: 18px;
}

.auth-panel label:not(.remember-row) {
  display: block;
  color: #8b8fa8;
  font-size: 12px;
  margin: 14px 0 8px;
  text-transform: uppercase;
}

.auth-panel input,
.auth-panel select {
  width: 100%;
  background: #1a1d27;
  border: 1px solid #383d50;
  border-radius: 8px;
  color: #ffffff;
  padding: 12px;
}

.remember-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  margin-top: 12px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

.remember-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--green);
  margin: 0;
}

.profile-login {
  width: 100%;
  text-align: left;
  background: #1a1d27;
  border: 1px solid #2a2d3a;
  border-radius: 8px;
  color: #ffffff;
  padding: 13px;
  margin-bottom: 10px;
  cursor: pointer;
}

.profile-login:hover {
  border-color: #4caf50;
  background: #202536;
}

.profile-login strong,
.profile-login span {
  display: block;
}

.profile-login span {
  color: #4caf50;
  font-size: 12px;
  margin-top: 3px;
}

/* SIDEBAR */
.sidebar {
  width: 250px;
  background: #1a1d27;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  align-self: stretch;
  min-height: 0;
  overflow-y: auto;
  border-right: 1px solid #2a2d3a;
  -webkit-overflow-scrolling: touch;
}

.logo {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 40px;
  letter-spacing: 1px;
}

.logo-coop { color: #ffffff; }
.logo-ledger { color: #4caf50; }

.login-panel {
  background: #10131c;
  border: 1px solid #2a2d3a;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 20px;
}

.login-panel label {
  display: block;
  color: #8b8fa8;
  font-size: 12px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.login-panel select {
  width: 100%;
  background: #1a1d27;
  border: 1px solid #383d50;
  border-radius: 6px;
  color: #ffffff;
  padding: 9px 10px;
  margin-bottom: 8px;
}

.profile-card {
  background: #1a1d27;
  border: 1px solid #2a2d3a;
  border-radius: 8px;
  padding: 10px;
}

.profile-card strong,
.profile-card span {
  display: block;
}

.profile-card strong {
  color: #ffffff;
  font-size: 14px;
  margin-bottom: 2px;
}

.profile-card span {
  color: #4caf50;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}

.login-panel p {
  color: #8b8fa8;
  font-size: 12px;
  line-height: 1.4;
}

.logout-button {
  width: 100%;
  background: transparent;
  border: 1px solid #383d50;
  color: #ffffff;
  border-radius: 8px;
  padding: 9px 10px;
  margin-top: 10px;
  cursor: pointer;
}

.logout-button:hover {
  background: #242838;
}

nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.nav-item {
  display: block;
  padding: 12px 16px;
  border-radius: 8px;
  color: #8b8fa8;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
}

.nav-item:hover, .nav-item.active {
  background: #4caf50;
  color: #ffffff;
}

.sidebar-footer {
  font-size: 12px;
  color: #4a4d5e;
  line-height: 1.8;
  margin-top: auto;
}

.feedback-link {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-3);
  text-decoration: none;
}
.feedback-link:hover {
  color: var(--green);
  text-decoration: underline;
}

/* MAIN CONTENT */
.mobile-nav-header {
  display: none;
}

.sidebar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid #383d50;
  background: #1a1d27;
  color: #ffffff;
  cursor: pointer;
}

.sidebar-toggle:hover {
  background: #242838;
}

.sidebar-toggle-bars,
.sidebar-toggle-bars::before,
.sidebar-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: #ffffff;
  border-radius: 1px;
  position: relative;
}

.sidebar-toggle-bars::before,
.sidebar-toggle-bars::after {
  content: '';
  position: absolute;
  left: 0;
}

.sidebar-toggle-bars::before {
  top: -7px;
}

.sidebar-toggle-bars::after {
  top: 7px;
}

.main-content {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  padding: 32px;
  -webkit-overflow-scrolling: touch;
}

.cotisations-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.cotisations-header-actions label {
  display: block;
  color: #8b8fa8;
  font-size: 12px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.cotisations-header-actions input {
  min-width: 120px;
}

.page { display: none; }
.page.active { display: block; }

h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #ffffff;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.page-header h1 {
  margin-bottom: 0;
}

/* SOLDE CARD */
.solde-card {
  background: linear-gradient(135deg, #1e7e34, #4caf50);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
}

.solde-label {
  font-size: 14px;
  opacity: 0.85;
  margin-bottom: 8px;
}

.solde-montant {
  font-size: 42px;
  font-weight: 900;
  margin-bottom: 8px;
}

.solde-blockchain {
  font-size: 12px;
  opacity: 0.75;
}

/* STATS GRID */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: #1a1d27;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #2a2d3a;
}

.stat-label {
  font-size: 12px;
  color: #8b8fa8;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #4caf50;
}

/* TABLE */
.table-container {
  background: #1a1d27;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  border: 1px solid #2a2d3a;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  color: #8b8fa8;
  border-bottom: 1px solid #2a2d3a;
  text-transform: uppercase;
}

td {
  padding: 14px 16px;
  font-size: 14px;
  border-bottom: 1px solid #1e2130;
}

.linked-member {
  display: block;
  color: #8b8fa8;
  font-size: 12px;
  margin-top: 4px;
}

.montant-positif { color: #4caf50; font-weight: 600; }
.montant-negatif { color: #f44336; font-weight: 600; }

.hash {
  font-family: monospace;
  font-size: 12px;
  color: #8b8fa8;
}

.badge-scelle {
  background: #1e3a2a;
  color: #4caf50;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
}

.badge-actif {
  background: #1e3a2a;
  color: #4caf50;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
}

.badge-inactif {
  background: #3a1e1e;
  color: #f44336;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
}

/* BOUTONS */
.btn-primary {
  background: #4caf50;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover { background: #388e3c; }

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.status-button {
  background: #242838;
  border: 1px solid #383d50;
  color: #ffffff;
  border-radius: 8px;
  cursor: pointer;
  padding: 8px 12px;
}

.status-button:hover {
  background: #30364a;
}

.member-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.delete-button {
  background: #3a1e1e;
  border: 1px solid #6b2a2a;
  color: #ffb4b4;
  border-radius: 8px;
  cursor: pointer;
  padding: 8px 12px;
}

.delete-button:hover {
  background: #4a2525;
}

/* VOTE */
.vote-card {
  background: #1a1d27;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
  border: 1px solid #2a2d3a;
}

.vote-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.vote-budget {
  font-size: 13px;
  color: #8b8fa8;
  margin-bottom: 16px;
}

.vote-barre {
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  height: 32px;
  margin-bottom: 8px;
}

.vote-pour {
  background: #4caf50;
  display: flex;
  align-items: center;
  padding-left: 12px;
  font-size: 13px;
  font-weight: 600;
}

.vote-contre {
  background: #f44336;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  font-size: 13px;
  font-weight: 600;
  flex: 1;
}

.vote-info {
  font-size: 12px;
  color: #8b8fa8;
  margin-bottom: 16px;
}

.vote-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.btn-pour {
  background: #4caf50;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.btn-contre {
  background: #f44336;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.vote-blockchain {
  font-size: 12px;
  color: #4caf50;
}

.proposal-panel {
  background: #111827;
  border: 1px solid #4caf50;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 18px;
}

.membres-stats {
  background: #1a1d27;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  border: 1px solid #2a2d3a;
  font-size: 14px;
  color: #8b8fa8;
}

.transparency-panel {
  background: #1a1d27;
  border: 1px solid #2a2d3a;
  border-radius: 12px;
  padding: 24px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: center;
}

.panel-label {
  color: #8b8fa8;
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.panel-score {
  color: #4caf50;
  font-size: 44px;
  font-weight: 900;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.proof-grid div {
  background: #10131c;
  border: 1px solid #2a2d3a;
  border-radius: 8px;
  padding: 16px;
}

.proof-grid span {
  display: block;
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
}

.proof-grid small {
  color: #8b8fa8;
  font-size: 12px;
}

.hash-button {
  background: none;
  border: none;
  color: #8bdf8e;
  cursor: pointer;
  font-family: monospace;
  font-size: 12px;
  padding: 0;
  text-decoration: underline;
}

.btn-secondary,
.demo-button {
  background: #242838;
  border: 1px solid #383d50;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.demo-button {
  width: 100%;
  margin-bottom: 20px;
}

.btn-secondary:hover,
.demo-button:hover {
  background: #30364a;
}

.receipt-panel {
  background: #111827;
  border: 1px solid #4caf50;
  border-radius: 12px;
  padding: 24px;
  margin-top: 24px;
}

.receipt-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.receipt-header h2 {
  font-size: 22px;
}

.receipt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.receipt-grid div {
  background: #1a1d27;
  border: 1px solid #2a2d3a;
  border-radius: 8px;
  padding: 14px;
}

.receipt-grid small {
  display: block;
  color: #8b8fa8;
  margin-bottom: 6px;
}

.receipt-grid strong,
.receipt-grid code {
  color: #ffffff;
  word-break: break-word;
}

.receipt-full {
  grid-column: 1 / -1;
}

.proof-link {
  color: #4caf50;
  font-weight: 700;
  text-decoration: none;
}

.proof-link:hover {
  text-decoration: underline;
}

.hidden {
  display: none !important;
}

.demo-mode-banner {
  background: linear-gradient(90deg, #1e3a5f 0%, #2d1f4e 100%);
  color: #f0f4ff;
  text-align: center;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #4a6fa5;
}

.badge-election {
  display: inline-block;
  background: #2e4057;
  color: #e8f1ff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin: 6px 6px 6px 0;
}

.demo-guide {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10;
}

.demo-card {
  width: min(520px, 100%);
  background: #1a1d27;
  border: 1px solid #4caf50;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
}

.demo-card h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.demo-card p {
  color: #d4d7e2;
}

.demo-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

@media (max-width: 900px) {
  .main-content {
    padding: 20px;
  }

  .stats-grid,
  .proof-grid,
  .receipt-grid,
  .transparency-panel {
    grid-template-columns: 1fr;
  }

  .page-header {
    align-items: stretch;
    flex-direction: column;
  }

  .auth-grid {
    display: block;
  }

  .auth-panel {
    margin-bottom: 16px;
  }
}

@media (max-width: 768px) {
  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 199;
    margin: 0;
    padding: 0;
    border: none;
    background: rgba(5, 6, 10, 0.55);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  #app-shell.sidebar-open .sidebar-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .app-shell {
    flex-direction: column;
  }

  .mobile-nav-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: -20px -20px 16px;
    padding: 12px 16px;
    background: #0f1117;
    border-bottom: 1px solid #2a2d3a;
    position: sticky;
    top: 0;
    z-index: 40;
    flex-shrink: 0;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(280px, 88vw);
    max-width: 100%;
    z-index: 200;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    box-shadow: none;
    border-right: 1px solid #2a2d3a;
  }

  @media (prefers-reduced-motion: reduce) {
    .sidebar,
    .sidebar-backdrop {
      transition: none;
    }
  }

  #app-shell.sidebar-open .sidebar {
    transform: translateX(0);
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.45);
  }

  body.sidebar-open {
    overflow: hidden;
  }

  .main-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 20px;
  }
}

/* —— Theme (cl_theme) + settings drawer —— */
:root {
  --cl-bg: #0f1117;
  --cl-surface: #1a1d27;
  --cl-surface-2: #10131c;
  --cl-border: #2a2d3a;
  --cl-border-input: #383d50;
  --cl-text: #ffffff;
  --cl-muted: #8b8fa8;
  --cl-muted-2: #4a4d5e;
  --cl-accent: #4caf50;
  --text-2: var(--cl-muted);
  --text-3: var(--cl-muted-2);
  --green: var(--cl-accent);
}

html[data-theme='light'] {
  --cl-bg: #f4f5f8;
  --cl-surface: #ffffff;
  --cl-surface-2: #eef0f5;
  --cl-border: #d8dce8;
  --cl-border-input: #c5cad8;
  --cl-text: #1a1d27;
  --cl-muted: #5c6178;
  --cl-muted-2: #8b90a8;
  --cl-accent: #2e7d32;
}

body {
  background: var(--cl-bg);
  color: var(--cl-text);
}

.auth-card,
.sidebar,
.login-panel,
.profile-card,
.auth-panel,
.receipt-panel,
.proposal-panel,
.transparency-panel,
.stat-card,
.solde-card,
.table-container,
.demo-card,
.cotisations-card {
  background: var(--cl-surface);
  border-color: var(--cl-border);
  color: var(--cl-text);
}

.auth-panel,
.login-panel {
  background: var(--cl-surface-2);
}

.profile-card,
.auth-panel input,
.auth-panel select,
.login-panel select,
.sidebar-toggle {
  background: var(--cl-surface);
  border-color: var(--cl-border-input);
  color: var(--cl-text);
}

.logo-coop {
  color: var(--cl-text);
}

.logo-ledger {
  color: var(--cl-accent);
}

.auth-brand p,
.login-panel label,
.login-panel p,
.sidebar-footer,
.stat-label,
.solde-label,
.panel-label {
  color: var(--cl-muted);
}

.nav-item {
  color: var(--cl-muted);
}

.nav-item:hover,
.nav-item.active {
  background: var(--cl-accent);
  color: #ffffff;
}

table th {
  color: var(--cl-muted);
}

table td {
  color: var(--cl-text);
}

.sidebar-footer-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.sidebar-footer-text {
  flex: 1;
  min-width: 0;
}

.settings-trigger {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--cl-border-input);
  background: var(--cl-surface);
  color: var(--cl-text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.settings-trigger:hover {
  border-color: var(--cl-accent);
}

.settings-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 380;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.settings-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.settings-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 100vw);
  max-width: 100%;
  background: var(--cl-surface);
  border-left: 1px solid var(--cl-border);
  z-index: 390;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.24s ease;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.2);
}

.settings-panel.is-open {
  transform: translateX(0);
}

.settings-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--cl-border);
  flex-shrink: 0;
}

.settings-panel-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
}

.settings-panel-close {
  border: none;
  background: transparent;
  color: var(--cl-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
}

.settings-panel-close:hover {
  color: var(--cl-text);
  background: var(--cl-surface-2);
}

.settings-panel-body {
  padding: 16px 18px 28px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.settings-section {
  margin-bottom: 22px;
}

.settings-section h3 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cl-muted);
  margin-bottom: 10px;
}

.settings-field {
  margin-bottom: 12px;
}

.settings-field label {
  display: block;
  font-size: 12px;
  color: var(--cl-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.settings-field select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--cl-border-input);
  background: var(--cl-surface-2);
  color: var(--cl-text);
}

.settings-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--cl-border);
  background: var(--cl-surface-2);
}

.settings-toggle-row span {
  font-size: 14px;
}

.settings-system-grid {
  display: grid;
  gap: 10px;
  font-size: 13px;
}

.settings-system-grid dt {
  color: var(--cl-muted);
  font-size: 11px;
  text-transform: uppercase;
}

.settings-system-grid dd {
  margin: 0;
  word-break: break-word;
}

.settings-system-grid code {
  font-size: 12px;
  background: var(--cl-bg);
  padding: 2px 6px;
  border-radius: 4px;
}

.settings-push-hint {
  margin-top: 10px;
  padding: 10px;
  font-size: 12px;
}

.paiement-retour-view {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 12, 22, 0.72);
  backdrop-filter: blur(6px);
}

[data-theme="light"] .paiement-retour-view {
  background: rgba(248, 249, 252, 0.85);
}

.paiement-retour-card {
  max-width: 400px;
  width: 100%;
  padding: 28px 24px;
  border-radius: 16px;
  background: var(--cl-panel, #1a1d2e);
  border: 1px solid var(--cl-border, #2d314a);
  text-align: center;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.paiement-retour-spinner {
  width: 44px;
  height: 44px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 3px solid var(--cl-border, #2d314a);
  border-top-color: var(--cl-accent, #6ea8fe);
  animation: paiement-retour-spin 0.85s linear infinite;
}

@keyframes paiement-retour-spin {
  to {
    transform: rotate(360deg);
  }
}

.paiement-retour-msg-main {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--cl-text, #e8eaf4);
}

.paiement-retour-msg-sub {
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
  color: var(--cl-muted, #8b8fa8);
}

.fedapay-pay-error {
  flex-basis: 100%;
  margin: 8px 0 0;
  font-size: 13px;
  color: #f87171;
}

@media (prefers-reduced-motion: reduce) {
  .settings-backdrop,
  .settings-panel {
    transition: none;
  }

  .paiement-retour-spinner {
    animation: none;
    border-top-color: var(--cl-border, #2d314a);
    opacity: 0.7;
  }
}
