/* Fargo Banque — Mobile Banking UI */

:root {
  --red-900: #7f1d1d;
  --red-800: #991b1b;
  --red-700: #c04040;
  --red-600: #c02525;
  --red-500: #ef4444;
  --gold: #f5c518;
  --gold-light: #fef9e7;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --green: #16a34a;
  --green-bg: #dcfce7;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --radius: 16px;
  --radius-sm: 12px;
  --nav-h: 72px;
  --font: 'DM Sans', system-ui, -apple-system, sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font);
  background: #1a1a1a;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  color: var(--gray-900);
}

.app {
  width: 100%;
  max-width: 430px;
  min-height: 100dvh;
  background: var(--red-700);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.4);
}

/* Screens */
.screen {
  display: none;
  flex-direction: column;
  min-height: 100dvh;
  animation: fadeIn 0.35s ease;
}

.screen--active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo__icon {
  color: var(--gold);
  font-size: 1.1rem;
}

.logo__text {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--white);
}

.logo--sm .logo__text { font-size: 0.75rem; }

.greeting {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.35rem;
  font-weight: 500;
  margin-top: 6px;
}

.greeting--brand {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.15;
  margin-top: 12px;
  text-transform: uppercase;
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* Login */
#screen-login.screen--active {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.login-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.login-header {
  padding: 48px 24px 24px;
  position: relative;
}

.login-header__brand { position: relative; z-index: 1; }

.login-main {
  flex: 1;
  padding: 0 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-card {
  padding: 28px 24px 24px;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-bottom: 4px;
}

.field input {
  width: 100%;
  border: none;
  border-bottom: 1.5px solid var(--gray-200);
  padding: 10px 0;
  font-size: 1.05rem;
  font-family: var(--font);
  background: transparent;
  outline: none;
  transition: border-color 0.2s;
}

.field input:focus { border-color: var(--red-600); }

.field input.field--error {
  border-color: var(--red-600);
  color: var(--red-700);
}

.login-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 18px;
  text-align: center;
}

.login-error[hidden] { display: none; }

.checkboxes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--gray-700);
  cursor: pointer;
}

.checkbox input { accent-color: var(--red-700); }

.btn {
  border: none;
  border-radius: 28px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--red-700);
  color: var(--white);
  padding: 16px 32px;
  box-shadow: 0 4px 14px rgba(185, 28, 28, 0.4);
}

.btn--primary:hover { background: var(--red-800); }

.btn--full { width: 100%; }

.link-muted {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--gray-500);
  text-decoration: none;
}

.promo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.promo-card {
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.promo-card__icon {
  width: 36px;
  height: 36px;
  background: var(--gold-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.promo-card p {
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--gray-700);
}

.promo-card strong { color: var(--gray-900); }

.promo-card span { color: var(--gray-500); }

/* Dashboard header */
.dash-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px 16px 12px;
  gap: 8px;
}

.dash-header__center {
  flex: 1;
  text-align: center;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.icon-btn--light { background: rgba(255, 255, 255, 0.2); }

.notif-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  border: 2px solid var(--red-700);
}

.notif-dot[hidden] { display: none; }

.icon-btn--dark {
  background: var(--gray-100);
  color: var(--gray-800);
}

.notif-panel {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.notif-panel[hidden] { display: none; }

.notif-panel__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.notif-panel__sheet {
  position: relative;
  width: 100%;
  max-width: 430px;
  max-height: 75vh;
  background: var(--white);
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  animation: notifSlideUp 0.28s ease;
}

@keyframes notifSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.notif-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px 12px;
  border-bottom: 1px solid var(--gray-200);
}

.notif-panel__header h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
}

.notif-panel__body {
  overflow-y: auto;
  padding: 8px 0 24px;
}

.notif-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
}

.notif-item--unread {
  background: #fef2f2;
}

.notif-item__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--red-700);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notif-item__content { flex: 1; min-width: 0; }

.notif-item__title {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-900);
}

.notif-item__message {
  margin: 0 0 6px;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--gray-600);
}

.notif-item__date {
  font-size: 0.75rem;
  color: var(--gray-400);
}

.notif-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--gray-500);
  font-size: 0.9rem;
}

@media (min-width: 1024px) {
  .notif-panel {
    align-items: flex-start;
    justify-content: flex-end;
    padding: 72px 24px 0 0;
  }

  .notif-panel__sheet {
    max-width: 380px;
    max-height: 520px;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    animation: notifFadeIn 0.2s ease;
  }

  @keyframes notifFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

.rewards-banner {
  margin: 0 16px 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.15s;
}

.rewards-banner:active { transform: scale(0.99); }

.rewards-banner__badge {
  font-weight: 600;
  font-size: 0.9rem;
}

.rewards-banner__pts {
  margin-left: auto;
  font-weight: 700;
  color: var(--red-700);
}

.rewards-banner__arrow {
  color: var(--gray-400);
  font-size: 1.2rem;
}

/* Account cards — écran 2 */
.dash-main {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px calc(var(--nav-h) + var(--safe-bottom) + 16px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.account-card {
  padding: 22px 20px 20px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  border: none;
}

.account-card:active { transform: scale(0.99); }

.account-card__title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--gray-700);
  text-transform: uppercase;
  line-height: 1.35;
}

.account-card__balance {
  font-size: 2.35rem;
  font-weight: 700;
  margin: 14px 0 2px;
  letter-spacing: -0.03em;
  color: var(--gray-900);
  line-height: 1.1;
}

.account-card__label {
  font-size: 0.78rem;
  color: var(--gray-500);
  font-weight: 400;
}

.offer-chip {
  margin-top: 16px;
  padding: 14px 16px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-800);
}

.offer-chip__star { color: var(--gold); font-size: 1.1rem; flex-shrink: 0; }

/* Account detail screen — écran 3 */
.account-header {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 16px 8px;
}

.account-header__info { flex: 1; padding-top: 4px; }

.account-header__name {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.account-header__balance {
  color: var(--white);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-top: 6px;
}

.tabs {
  display: flex;
  padding: 0 16px;
  gap: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 16px;
}

.tabs__item {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font);
  font-size: 0.82rem;
  padding: 10px 12px;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}

.tabs__item--active {
  color: var(--white);
  font-weight: 600;
}

.tabs__item--active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 3px;
  background: var(--gold);
  border-radius: 3px 3px 0 0;
}

.tab-panel {
  flex: 1;
  overflow-y: auto;
  padding-bottom: calc(var(--nav-h) + var(--safe-bottom) + 8px);
}

.tab-panel--active { display: block; }

.account-details {
  margin: 0 16px;
  padding: 20px;
}

.manage-panel {
  margin: 0 16px;
  padding: 20px;
}

.manage-panel h3 {
  font-size: 1rem;
  margin-bottom: 16px;
}

.manage-action {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid var(--gray-100);
  background: none;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-800);
  cursor: pointer;
}

.manage-action:last-child { border-bottom: none; }

.detail-grid {
  display: grid;
  gap: 16px;
}

.detail-item label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-500);
  margin-bottom: 4px;
}

.detail-item span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-900);
}

.detail-item span.mono {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.transactions-section {
  padding: 8px 16px 0;
}

.transactions-title {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.transactions-list {
  overflow: hidden;
  border-radius: var(--radius);
}

.tx-empty {
  padding: 32px 24px;
  text-align: center;
  color: var(--gray-400);
  font-size: 0.9rem;
}

.tx-item {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: start;
  gap: 12px;
  padding: 18px 16px;
  border-bottom: 1px solid var(--gray-100);
}

.tx-item:last-child { border-bottom: none; }

.tx-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.tx-icon--done { background: var(--green-bg); color: var(--green); }
.tx-icon--pending { background: #fef3c7; color: #d97706; }
.tx-icon--blocked { background: #fee2e2; color: #dc2626; }

.tx-amount--credit { color: var(--green); }

.account-card__badge {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.account-card--blocked {
  border: 1px solid #fecaca;
}

.tx-body { min-width: 0; }

.tx-status {
  font-size: 0.7rem;
  color: var(--gray-500);
  margin-bottom: 4px;
  font-weight: 400;
}

.tx-desc {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
  word-break: break-word;
  color: var(--gray-900);
  letter-spacing: 0.01em;
}

.tx-amount {
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  color: var(--gray-900);
  padding-top: 16px;
  letter-spacing: -0.01em;
}

/* Bottom nav mobile global */
#global-bottom-nav {
  display: none;
}

.app.app--banking #global-bottom-nav {
  display: flex;
}

.app.app--processing #global-bottom-nav {
  display: none !important;
}

.app.app--processing .sidebar {
  display: none !important;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: calc(var(--nav-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  z-index: 150;
}

.bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 0.65rem;
  color: var(--gray-500);
  cursor: pointer;
  padding: 8px 4px;
}

.bottom-nav__item svg {
  width: 22px;
  height: 22px;
}

.bottom-nav__item--active {
  color: var(--red-700);
}

.bottom-nav__item--active svg { stroke: var(--red-700); }

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal__content {
  position: relative;
  width: 100%;
  max-width: 360px;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal__close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

.virtual-card {
  border-radius: 20px;
  padding: 28px 24px;
  min-height: 200px;
  color: var(--white);
  box-shadow: var(--shadow);
}

/* Toast */
.toast {
  position: fixed;
  bottom: calc(var(--nav-h) + 24px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--gray-900);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 28px;
  font-size: 0.85rem;
  z-index: 300;
  animation: toastIn 0.3s ease;
  max-width: 90%;
  text-align: center;
}

.toast[hidden] { display: none; }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Scrollbar */
.dash-main::-webkit-scrollbar,
.transactions-section::-webkit-scrollbar { width: 4px; }

.dash-main::-webkit-scrollbar-thumb,
.transactions-section::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

/* ─── Utilitaires responsive ─── */
.sidebar { display: none; }
.login-hero { display: none; }
.login-card__title { display: none; }
.desktop-placeholder { display: none; }
.desktop-placeholder--hidden { display: none !important; }
.logo--mobile-only { display: flex; }

/* ─── Desktop (≥ 1024px) ─── */
@media (min-width: 1024px) {
  :root {
    --sidebar-w: 240px;
    --dash-col-w: 400px;
  }

  body {
    background: var(--gray-100);
    align-items: stretch;
  }

  .app {
    max-width: none;
    width: 100%;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
    box-shadow: none;
    overflow: visible;
  }

  .app.app--login {
    grid-template-columns: 1fr;
    background: var(--white);
  }

  .app.app--banking {
    grid-template-columns: var(--sidebar-w) var(--dash-col-w) 1fr;
  }

  .app.app--split {
    grid-template-columns: var(--sidebar-w) var(--dash-col-w) 1fr;
  }

  /* Sidebar */
  .sidebar {
    display: flex;
    flex-direction: column;
    background: var(--red-900);
    color: var(--white);
    padding: 28px 16px 24px;
    position: sticky;
    top: 0;
    height: 100dvh;
    z-index: 50;
    grid-column: 1;
    grid-row: 1;
  }

  .app.app--login .sidebar { display: none; }
  .app.app--login .desktop-placeholder { display: none !important; }

  .sidebar__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 16px;
  }

  .sidebar__brand .logo__text {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
  }

  .sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
  }

  .sidebar__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    background: none;
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s, color 0.15s;
  }

  .sidebar__item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  .sidebar__item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
  }

  .sidebar__item--active {
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
    font-weight: 600;
  }

  .sidebar__footer {
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .sidebar__logout {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    background: none;
    color: rgba(255, 255, 255, 0.65);
    font-family: var(--font);
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
  }

  .sidebar__logout:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
  }

  /* Login desktop — écran partagé */
  #screen-login.screen--active {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100dvh;
  }

  .login-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--red-800) 0%, var(--red-700) 50%, var(--red-600) 100%);
    padding: 48px;
    position: relative;
    overflow: hidden;
  }

  .login-hero__watermark {
    position: absolute;
    inset: 0;
    color: var(--white);
    pointer-events: none;
  }

  .login-hero__watermark svg {
    width: 100%;
    height: 100%;
  }

  .login-hero__content {
    position: relative;
    z-index: 1;
    max-width: 400px;
  }

  .logo--lg .logo__text { font-size: 1.1rem; }
  .logo--lg .logo__icon { font-size: 1.4rem; }

  .login-hero__tagline {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.25rem;
    margin: 20px 0 32px;
    font-weight: 400;
  }

  .login-hero__features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .login-hero__features li {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    padding-left: 24px;
    position: relative;
  }

  .login-hero__features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
  }

  .login-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--gray-50);
    padding: 48px 64px;
    overflow-y: auto;
  }

  .login-header {
    padding: 0 0 24px;
    background: none;
  }

  .login-header .greeting--brand {
    color: var(--red-700);
    font-size: 2.8rem;
    letter-spacing: 0.16em;
  }

  .login-main {
    padding: 0;
    max-width: 440px;
  }

  .login-card {
    padding: 36px 32px 32px;
    box-shadow: var(--shadow);
  }

  .login-card__title {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 24px;
  }

  .logo--mobile-only { display: none; }

  /* Dashboard desktop */
  #screen-dashboard.screen--active {
    display: flex;
    flex-direction: column;
    background: var(--red-700);
    min-height: 100dvh;
    overflow: hidden;
    grid-column: 2;
    grid-row: 1;
  }

  #screen-dashboard.screen--active {
    border-right: 1px solid rgba(255, 255, 255, 0.12);
  }

  .dash-header {
    padding: 24px 28px 16px;
  }

  .dash-header__center { text-align: left; }

  .dash-header .greeting {
    font-size: 1.6rem;
  }

  .icon-btn--mobile-only { display: none; }

  .rewards-banner {
    margin: 0 28px 20px;
  }

  .dash-main {
    padding: 0 28px 28px;
    gap: 12px;
  }

  .dash-main {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 28px;
  }

  .account-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
  }

  .account-card--selected {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
  }

  /* Placeholder desktop */
  .desktop-placeholder {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px;
    background: var(--gray-50);
    color: var(--gray-700);
    min-height: 100dvh;
  }

  .app.app--banking:not(.app--split) .desktop-placeholder:not(.desktop-placeholder--hidden) {
    display: flex;
    grid-column: 3;
    grid-row: 1;
  }


  .desktop-placeholder__icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--gold-light);
    color: var(--gold);
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
  }

  .desktop-placeholder h3 {
    font-size: 1.25rem;
    color: var(--gray-900);
    margin-bottom: 8px;
  }

  .desktop-placeholder p {
    font-size: 0.95rem;
    color: var(--gray-500);
    max-width: 320px;
  }

  /* Account panel desktop */
  #screen-account.screen--active {
    display: flex;
    flex-direction: column;
    background: var(--red-700);
    min-height: 100dvh;
    overflow: hidden;
    grid-column: 3;
    grid-row: 1;
  }

  .app.app--banking:not(.app--split) #screen-account.screen--active {
    display: none;
  }

  .account-header {
    padding: 24px 32px 12px;
  }

  .account-header__balance {
    font-size: 2.8rem;
  }

  .tabs {
    padding: 0 32px;
  }

  .transactions-section {
    padding: 8px 32px 32px;
  }

  .tab-panel {
    padding-bottom: 32px;
  }

  .account-details,
  .manage-panel {
    margin: 0 32px;
  }

  .detail-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .tx-desc { font-size: 0.85rem; }
  .tx-amount { font-size: 1rem; }

  /* Masquer bottom nav desktop */
  #global-bottom-nav { display: none !important; }

  /* Toast desktop */
  .toast {
    bottom: 32px;
  }
}

/* Tablette (768px – 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  body { background: var(--gray-200); }

  .app {
    max-width: 680px;
    margin: 24px auto;
    min-height: calc(100dvh - 48px);
    border-radius: 20px;
    overflow: hidden;
  }

  .dash-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-content: start;
  }

  .login-main {
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }

  .bottom-nav {
    border-radius: 0 0 20px 20px;
  }

  .page-main {
    max-width: 640px;
    margin: 0 auto;
  }

  .explore-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ─── Pages (virements, cartes, etc.) ─── */
.screen--page {
  background: var(--red-700);
}

.page-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
}

.page-header__title {
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
}

.page-main {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px calc(var(--nav-h) + var(--safe-bottom) + 16px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-desc {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 16px;
  line-height: 1.5;
}

.form-card {
  padding: 24px 20px;
  position: relative;
}

/* Page chargement virement — plein écran */
.screen--loading-page {
  background: var(--red-700);
  min-height: 100dvh;
}

.loading-page {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.loading-page__header {
  padding: 48px 24px 24px;
}

.loading-page__main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 48px;
}

.loading-page__card {
  width: 100%;
  max-width: 360px;
  padding: 40px 28px 36px;
  text-align: center;
  box-shadow: var(--shadow);
  animation: fadeIn 0.35s ease;
}

.loading-page__spinner {
  width: 56px;
  height: 56px;
  margin: 0 auto 28px;
  border: 4px solid var(--gray-200);
  border-top-color: var(--red-700);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}

.loading-page__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.loading-page__text {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.5;
  margin-bottom: 20px;
}

.loading-page__amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--red-700);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.loading-page__beneficiary {
  font-size: 0.85rem;
  color: var(--gray-700);
  font-weight: 500;
  margin-bottom: 24px;
}

.loading-page__progress {
  height: 6px;
  background: var(--gray-200);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 16px;
}

.loading-page__progress-bar {
  height: 100%;
  width: 30%;
  background: linear-gradient(90deg, var(--red-700), var(--gold));
  border-radius: 6px;
  animation: loadingProgress 2.8s ease-in-out infinite;
}

.loading-page__hint {
  font-size: 0.78rem;
  color: var(--gray-400);
}

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

@keyframes loadingProgress {
  0% { width: 8%; margin-left: 0; }
  50% { width: 70%; margin-left: 15%; }
  100% { width: 8%; margin-left: 92%; }
}

@media (min-width: 1024px) {
  .app.app--processing {
    grid-template-columns: 1fr;
  }

  #screen-transfer-loading.screen--active {
    grid-column: 1 / -1;
  }

  .loading-page__card {
    max-width: 420px;
    padding: 48px 36px;
  }
}

.form-section {
  margin-bottom: 24px;
}

.form-section h3 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
  margin-bottom: 14px;
}

.field--boxed label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.field--boxed input,
.field--boxed select {
  width: 100%;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: var(--font);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
}

.field--boxed input:focus,
.field--boxed select:focus {
  border-color: var(--red-600);
}

.field-hint {
  font-size: 0.82rem;
  color: var(--green);
  font-weight: 600;
  margin-top: 8px;
}

.optional {
  font-weight: 400;
  color: var(--gray-400);
}

.amount-row {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 12px;
}

.form-summary {
  padding: 16px;
  background: var(--gray-50);
  margin-bottom: 20px;
}

.form-summary p {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 6px 0;
}

.form-summary strong {
  color: var(--gray-900);
}

.beneficiaries-card {
  padding: 20px;
}

.beneficiaries-card h3 {
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.beneficiary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid var(--gray-100);
  background: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font);
}

.beneficiary-item:last-child { border-bottom: none; }

.beneficiary-item strong {
  display: block;
  font-size: 0.9rem;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.beneficiary-item .mono {
  font-size: 0.75rem;
  color: var(--gray-500);
  font-family: 'Courier New', monospace;
}

.beneficiary-item__arrow {
  color: var(--gray-400);
  font-size: 1.2rem;
}

.btn--secondary {
  background: var(--white);
  color: var(--red-700);
  border: 2px solid var(--red-700);
  padding: 12px 24px;
}

.btn--secondary:hover { background: var(--gray-50); }

.btn--sm {
  padding: 10px 18px;
  font-size: 0.85rem;
  border-radius: 20px;
}

.account-card__view-card {
  margin-top: 14px;
  padding: 0;
  border: none;
  background: none;
  color: var(--red-700);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.account-card__view-card:hover { text-decoration: underline; }

/* Carte bancaire — images fargo1 / fargo2 */
.fargo-card-wrap {
  perspective: 1200px;
}

.bank-card {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  perspective: 1200px;
}

.bank-card__inner {
  position: relative;
  width: 100%;
  aspect-ratio: 1.586;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.bank-card[data-flipped="true"] .bank-card__inner {
  transform: rotateY(180deg);
}

.bank-card__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.bank-card__face--back {
  transform: rotateY(180deg);
}

.bank-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Patches pour masquer le texte d'exemple sur les images */
.bank-card__patch {
  position: absolute;
  background: #c41230;
  border-radius: 2px;
}

.bank-card__patch--front-name {
  bottom: 5.5%;
  left: 3.5%;
  width: 38%;
  height: 7%;
}

.bank-card__patch--front-exp {
  bottom: 14%;
  right: 22%;
  width: 22%;
  height: 5%;
}

.bank-card__patch--front-number {
  bottom: 20%;
  left: 3%;
  width: 72%;
  height: 9%;
  background: linear-gradient(90deg, #c41230 0%, #d71e28 50%, #c41230 100%);
}

.bank-card__patch--back-number {
  bottom: 26%;
  left: 2.5%;
  width: 78%;
  height: 11%;
}

.bank-card__patch--back-exp {
  bottom: 17%;
  right: 18%;
  width: 24%;
  height: 5%;
}

.bank-card__patch--back-name {
  bottom: 4%;
  left: 2.5%;
  width: 34%;
  height: 7%;
}

.bank-card__patch--cvv {
  top: 41%;
  right: 27%;
  width: 8%;
  height: 7%;
  background: #a30f28;
}

.bank-card__name,
.bank-card__number,
.bank-card__exp,
.bank-card__cvv {
  position: absolute;
  color: #fff;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  z-index: 2;
  font-family: Arial, Helvetica, sans-serif;
}

.bank-card__name {
  bottom: 6%;
  left: 4%;
  font-size: clamp(0.55rem, 2.8vw, 0.85rem);
  letter-spacing: 0.06em;
}

.bank-card__name--back {
  bottom: 5%;
  font-size: clamp(0.5rem, 2.5vw, 0.78rem);
}

.bank-card__number {
  bottom: 21%;
  left: 4%;
  font-size: clamp(0.7rem, 3.2vw, 1rem);
  letter-spacing: 0.14em;
  font-family: 'Courier New', monospace;
}

.bank-card__number--back {
  bottom: 27%;
  font-size: clamp(0.65rem, 3vw, 0.95rem);
  letter-spacing: 0.1em;
}

.bank-card__exp {
  bottom: 14.5%;
  right: 23%;
  font-size: clamp(0.45rem, 2vw, 0.65rem);
  letter-spacing: 0.05em;
}

.bank-card__exp--back {
  bottom: 17.5%;
  right: 19%;
}

.bank-card__cvv {
  top: 42%;
  right: 28%;
  font-size: clamp(0.55rem, 2.4vw, 0.8rem);
  font-family: 'Courier New', monospace;
  letter-spacing: 0.15em;
}

.card-gallery-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.card-gallery-controls .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-gallery-item .bank-card {
  max-width: 100%;
}

/* Fargo Card (legacy) */
.fargo-card-wrap--legacy {
  perspective: 1000px;
}

.fargo-card {
  aspect-ratio: 1.586;
  border-radius: 18px;
  padding: 24px;
  color: var(--white);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.fargo-card--blue {
  background: linear-gradient(135deg, #7f1d1d 0%, #b91c1c 45%, #dc2626 100%);
}

.fargo-card--platinum {
  background: linear-gradient(135deg, #1f2937 0%, #4b5563 50%, #9ca3af 100%);
}

.fargo-card--back {
  background: linear-gradient(135deg, #374151, #1f2937);
  justify-content: flex-start;
  gap: 20px;
}

.fargo-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}

.fargo-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.fargo-card__brand {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.fargo-card__diamond { color: var(--gold); font-size: 1.2rem; }

.fargo-card__chip {
  width: 48px;
  height: 36px;
  background: linear-gradient(135deg, #f5c518, #d4a017);
  border-radius: 6px;
  position: relative;
  z-index: 1;
}

.fargo-card__number {
  font-family: 'Courier New', monospace;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  position: relative;
  z-index: 1;
}

.fargo-card__bottom {
  display: flex;
  gap: 24px;
  align-items: flex-end;
  position: relative;
  z-index: 1;
}

.fargo-card__bottom small {
  display: block;
  font-size: 0.6rem;
  opacity: 0.65;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}

.fargo-card__bottom span {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

.fargo-card__network {
  margin-left: auto;
  font-size: 1.1rem;
  font-weight: 700;
  opacity: 0.9;
}

.fargo-card__stripe {
  height: 48px;
  background: #111;
  margin: 0 -24px;
}

.fargo-card__cvv-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  color: var(--gray-900);
  padding: 10px 16px;
  border-radius: 6px;
  width: fit-content;
  margin-left: auto;
}

.fargo-card__cvv-row strong {
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
}

.fargo-card__back-text {
  font-size: 0.72rem;
  opacity: 0.7;
  line-height: 1.5;
}

/* Cards gallery */
.card-gallery-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-gallery-img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: none;
}

.card-gallery-info {
  padding: 0 4px;
}

.card-gallery-info h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-top: 12px;
  margin-bottom: 4px;
}

.card-gallery-info p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}

@media (min-width: 1024px) {
  .screen--page .card-gallery-info h3 { color: var(--gray-900); }
  .screen--page .card-gallery-info p { color: var(--gray-500); }
}

.card-gallery-btns {
  display: flex;
  gap: 10px;
}

.card-modal-img {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 16px;
  display: none;
}

.card-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.card-modal-actions .btn { flex: 1; }

/* Deposit */
.deposit-zones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.deposit-zone {
  border: 2px dashed var(--gray-200);
  border-radius: 12px;
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.deposit-zone:hover {
  border-color: var(--red-600);
  background: #fef2f2;
}

.deposit-zone span { font-size: 2rem; display: block; margin-bottom: 8px; }

.deposit-zone p {
  font-size: 0.82rem;
  color: var(--gray-500);
}

/* Explore */
.explore-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.explore-card {
  padding: 20px;
}

.explore-card__icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 10px;
}

.explore-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.explore-card p {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 14px;
}

/* Profile / Menu */
.profile-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
}

.profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--red-700);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.profile-card h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.profile-card p {
  font-size: 0.85rem;
  color: var(--gray-500);
}

.menu-list {
  padding: 8px 20px;
  overflow: hidden;
}

/* Paramètres sécurité */
.settings-section {
  padding: 4px 0;
  overflow: hidden;
}

.settings-section__title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-500);
  padding: 12px 20px 8px;
  margin: 0;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--gray-100);
}

.settings-row:last-child { border-bottom: none; }

.settings-row__info { flex: 1; min-width: 0; }

.settings-row__label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.settings-row__desc {
  display: block;
  font-size: 0.78rem;
  color: var(--gray-500);
  line-height: 1.4;
}

.settings-row--action {
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  font-family: var(--font);
  text-align: left;
}

.settings-row--action:hover { background: var(--gray-50); }

.settings-row__arrow {
  color: var(--gray-400);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.settings-toggle {
  position: relative;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
}

.settings-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.settings-toggle__track {
  position: absolute;
  inset: 0;
  background: var(--gray-300);
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.settings-toggle input:checked + .settings-toggle__track {
  background: var(--red-600);
}

.settings-toggle__track::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.settings-toggle input:checked + .settings-toggle__track::after {
  transform: translateX(20px);
}

.device-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--gray-100);
}

.device-row:last-child { border-bottom: none; }

.device-row__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.device-row__info { flex: 1; min-width: 0; }

.device-row__name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.device-row__meta {
  font-size: 0.78rem;
  color: var(--gray-500);
}

.device-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--red-700);
  background: #fef2f2;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 6px;
}

.device-row__remove {
  border: none;
  background: none;
  color: var(--red-600);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  padding: 4px 0;
}

.security-banner {
  padding: 16px 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: linear-gradient(135deg, #fef2f2, #fff);
}

.security-banner__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--red-700);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.security-banner p {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.45;
  margin: 0;
}

/* Centre d'aide */
.help-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--gray-50);
  border-radius: 12px;
  border: 1px solid var(--gray-200);
}

.help-search input {
  flex: 1;
  border: none;
  background: none;
  font-family: var(--font);
  font-size: 0.9rem;
  outline: none;
  color: var(--gray-900);
}

.help-search input::placeholder { color: var(--gray-400); }

.help-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.help-contact-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  font-family: var(--font);
  transition: border-color 0.15s, background 0.15s;
}

.help-contact-btn:hover {
  border-color: var(--red-300);
  background: #fef2f2;
}

.help-contact-btn__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--red-700);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.help-contact-btn span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-800);
  text-align: center;
}

.help-hours {
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-500);
  padding: 4px 0;
}

.help-faq__category {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-500);
  padding: 16px 20px 8px;
  margin: 0;
}

.faq-item {
  border-bottom: 1px solid var(--gray-100);
}

.faq-item:last-child { border-bottom: none; }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 20px;
  border: none;
  background: none;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-900);
  text-align: left;
  cursor: pointer;
}

.faq-question:hover { background: var(--gray-50); }

.faq-question__chevron {
  flex-shrink: 0;
  color: var(--gray-400);
  transition: transform 0.2s;
}

.faq-item--open .faq-question__chevron {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 20px 14px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--gray-600);
}

.faq-item--open .faq-answer { display: block; }

/* Confirmation e-mail virement */
.transfer-notify-row {
  margin-top: 4px;
  padding: 0 4px;
  font-size: 0.85rem;
  color: var(--gray-700);
  align-items: flex-start;
}

.transfer-notify-row span { line-height: 1.4; }

.email-modal__content {
  max-width: 480px;
  width: 100%;
}

.email-modal__title {
  font-size: 1.1rem;
  margin-bottom: 14px;
  color: var(--gray-900);
}

.email-preview {
  padding: 0;
  overflow: hidden;
  margin-bottom: 12px;
}

.email-preview__meta {
  padding: 14px 16px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.82rem;
  color: var(--gray-700);
}

.email-preview__meta p { margin: 0 0 6px; }
.email-preview__meta p:last-child { margin-bottom: 0; }

.email-preview__body {
  padding: 16px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--gray-800);
}

.email-preview__body p { margin: 0 0 8px; }

.email-preview__note {
  font-size: 0.78rem;
  color: var(--gray-500);
  margin: 0 0 14px;
  line-height: 1.45;
}

.email-preview-wf__banner {
  background: #b91c1c;
  padding: 16px;
  text-align: center;
}

.email-preview-wf__banner img {
  max-width: 220px;
  height: auto;
}

.email-preview-wf__body {
  padding: 16px;
}

.email-preview-wf__tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #b91c1c;
  margin: 0 0 12px;
}

.email-preview-wf__success {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.email-preview-wf__check {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.email-preview-wf__success h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--gray-900);
  line-height: 1.3;
}

.email-preview-wf__message {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.55;
  margin: 0 0 14px;
}

.email-preview-wf__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.email-preview-wf__table td {
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
}

.email-preview-wf__table td:first-child {
  color: var(--gray-500);
  width: 40%;
}

.email-preview-wf__table td:last-child {
  font-weight: 600;
  color: var(--gray-900);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
}

.modal__content {
  position: relative;
  width: 100%;
  max-width: 400px;
  animation: slideUp 0.3s ease;
}

.modal__close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

.mono {
  font-family: 'Courier New', monospace;
  letter-spacing: 0.04em;
}

/* Desktop pages */
@media (min-width: 1024px) {
  .app.app--page {
    grid-template-columns: var(--sidebar-w) 1fr;
  }

  .app.app--page .desktop-placeholder { display: none !important; }

  .screen--page.screen--active {
    display: flex;
    flex-direction: column;
    grid-column: 2 / -1;
    grid-row: 1;
    min-height: 100dvh;
    background: var(--gray-50);
  }

  .screen--page .page-header {
    background: var(--red-700);
    padding: 24px 40px;
  }

  .screen--page .page-header__title { font-size: 1.4rem; }

  .screen--page .page-main {
    padding: 32px 40px 40px;
    max-width: 720px;
  }

  .screen--page .form-card,
  .screen--page .beneficiaries-card,
  .screen--page .profile-card,
  .screen--page .menu-list,
  .screen--page .explore-card {
    box-shadow: var(--shadow-sm);
  }

  .screen--page .page-header .icon-btn--light {
    display: none;
  }

  .explore-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 800px;
  }

  .card-modal-actions {
    flex-wrap: wrap;
  }

  .card-modal-actions .btn {
    flex: 1 1 auto;
    min-width: 140px;
  }

  .page-main {
    padding-bottom: 40px;
  }

  .screen--page .page-main {
    padding-bottom: 40px;
  }
}
