/* Km Zero · espace client (s'appuie sur style.css) */

.account-page { background: var(--sable-clair); min-height: 100vh; }

.account-header { background: var(--blanc); border-bottom: 1px solid var(--ligne); }
.account-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.account-header-actions { display: flex; align-items: center; gap: 18px; }
@media (max-width: 520px) { .account-header-actions .link-arrow { display: none; } }

/* ---------- Connexion ---------- */
.login { padding: 32px 0 64px; }
.login-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .login-grid { grid-template-columns: 1.05fr 1fr; align-items: stretch; min-height: 600px; } }

.login-visual {
  position: relative; overflow: hidden;
  padding: 40px 28px; border-radius: var(--r-lg);
  background: radial-gradient(120% 90% at 100% 0%, #2F6A52 0%, var(--vert) 55%, var(--vert-fonce) 100%);
  color: var(--sable-clair);
  display: flex; flex-direction: column; justify-content: flex-end;
  animation: rise .8s cubic-bezier(.2, .7, .2, 1) both;
}
@media (min-width: 768px) { .login-visual { padding: 56px; } }
.login-visual::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%;
  border: 2px dashed rgba(227, 211, 180, .25); animation: spin 40s linear infinite;
}
.login-symbol { position: absolute; top: 40px; right: 40px; width: 96px; animation: orbit 7s ease-in-out infinite; }
.login-visual h1 { color: var(--sable-clair); font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); font-weight: 500; margin: 0 0 28px; }
.login-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.login-perks li { display: flex; align-items: center; gap: 14px; color: rgba(244, 237, 224, .9); }
.login-perks svg {
  flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 12px;
  background: rgba(244, 237, 224, .1); fill: none; stroke: var(--sable); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

.login-card {
  padding: 32px 24px; border-radius: var(--r-lg); background: var(--blanc); border: 1px solid var(--ligne);
  display: flex; flex-direction: column; justify-content: center;
  animation: rise .8s .15s cubic-bezier(.2, .7, .2, 1) both;
}
@media (min-width: 768px) { .login-card { padding: 56px; } }
.login-step { display: grid; gap: 18px; max-width: 420px; width: 100%; margin: 0 auto; }
.login-step[hidden] { display: none; }
.login-step:not([hidden]) { animation: rise .45s ease both; }
.login-step h2 { margin: 0; font-size: 2rem; }
.login-help { margin: -8px 0 0; color: var(--texte-doux); }
.login-submit { width: 100%; }
.login-alt, .login-demo { margin: 0; font-size: .88rem; color: var(--texte-doux); text-align: center; }
.login-alt a { color: var(--vert); font-weight: 600; }
.login-demo { padding: 10px; border-radius: 10px; background: #FFF6D6; color: #5A4300; }
.login-error { margin: -8px 0 0; min-height: 1.2em; font-size: .85rem; font-weight: 600; color: #8A1C14; }
.login-back { justify-self: start; border: 0; background: none; padding: 0; cursor: pointer; font: 600 .88rem var(--f-texte); color: var(--vert); }

.segmented { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: var(--sable-clair); }
.segmented-btn {
  min-height: 40px; border: 0; border-radius: 999px; cursor: pointer; background: transparent;
  font: 600 .9rem var(--f-texte); color: var(--texte-doux); transition: background-color .25s, color .25s;
}
.segmented-btn.is-active { background: var(--vert); color: var(--sable-clair); }

.code-inputs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.code-inputs input {
  width: 100%; aspect-ratio: 1 / 1.15; text-align: center;
  border: 1.5px solid var(--ligne); border-radius: 12px; background: var(--sable-clair);
  font: 600 1.5rem var(--f-titre); color: var(--vert);
  transition: border-color .2s, background-color .2s, transform .2s;
}
.code-inputs input:focus { outline: none; border-color: var(--vert); background: var(--blanc); transform: translateY(-2px); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.code-inputs.is-error { animation: shake .4s; }
.code-inputs.is-error input { border-color: #B3261E; }

/* ---------- Tableau de bord ---------- */
.dashboard { padding: 40px 0 80px; }
/* « backwards » et non « both » : un transform laissé après l'animation casserait la barre d'onglets fixe (mobile) */
.dashboard:not([hidden]) { animation: rise .6s ease backwards; }
.dash-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.dash-head h1 { margin: 0 0 6px; font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem); }
.dash-sub { margin: 0; color: var(--texte-doux); }
.dash-sub strong { color: var(--vert); }
.demo-badge { padding: 6px 14px; border-radius: 999px; background: #FFE9A8; color: #5A4300; border: 1px dashed #B48A00; font-size: .8rem; font-weight: 600; }

.dash-grid { display: grid; gap: 18px; }
@media (min-width: 900px) {
  .dash-grid { grid-template-columns: repeat(3, 1fr); }
  .dash-booking { grid-column: span 2; }
  .dash-housing { grid-column: span 2; }
}
.dash-card {
  padding: 26px; border-radius: var(--r-md); background: var(--blanc); border: 1px solid var(--ligne);
  display: flex; flex-direction: column; gap: 14px;
  animation: rise .6s cubic-bezier(.2, .7, .2, 1) both;
}
.dash-card:nth-child(2) { animation-delay: .08s; }
.dash-card:nth-child(3) { animation-delay: .16s; }
.dash-card:nth-child(4) { animation-delay: .24s; }
.dash-card:nth-child(5) { animation-delay: .32s; }
.dash-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dash-card h2 { margin: 0; font-size: 1.25rem; }
.dash-card p { margin: 0; color: var(--texte-doux); }
.dash-note { font-size: .8rem; }

.status { padding: 4px 12px; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.status-ok { background: rgba(143, 169, 143, .25); color: var(--vert); }
.status-wait { background: var(--sable); color: var(--vert); }

.booking-facts { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 20px; }
@media (min-width: 640px) { .booking-facts { grid-template-columns: repeat(3, 1fr); } }
.booking-facts dt { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--texte-doux); }
.booking-facts dd { margin: 2px 0 0; font-weight: 600; color: var(--encre); }

.progress-steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); font-size: .78rem; font-weight: 600; color: var(--texte-doux); }
.progress-steps li { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; }
.progress-steps li::before { content: ""; position: absolute; top: 8px; left: -50%; width: 100%; height: 2px; background: var(--ligne); z-index: 0; }
.progress-steps li:first-child::before { display: none; }
.progress-steps li.is-done::before, .progress-steps li.is-current::before { background: var(--vert); }
.progress-steps span { position: relative; z-index: 1; width: 18px; height: 18px; border-radius: 50%; background: var(--blanc); border: 2px solid var(--ligne); }
.progress-steps .is-done { color: var(--vert); }
.progress-steps .is-done span { background: var(--vert); border-color: var(--vert); }
.progress-steps .is-current { color: var(--vert); }
.progress-steps .is-current span { border-color: var(--vert); box-shadow: 0 0 0 4px rgba(143, 169, 143, .35); animation: glow 2.4s ease-in-out infinite; }

.pay-row { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px dashed var(--ligne); }
.pay-row em { font-style: normal; font-size: .75rem; font-weight: 600; color: var(--vert); background: rgba(143, 169, 143, .25); padding: 2px 8px; border-radius: 999px; margin-left: 4px; }
.pay-due strong { color: var(--vert); font-size: 1.1rem; }
.pay-bar { height: 8px; border-radius: 999px; background: var(--sable-clair); overflow: hidden; }
.pay-bar span { display: block; height: 100%; border-radius: inherit; background: var(--vert); transform-origin: left; animation: grow 1.2s .4s cubic-bezier(.6, 0, .2, 1) both; }
@keyframes grow { from { transform: scaleX(0); } }
.dash-payment .btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

.contact-person { display: flex; gap: 14px; align-items: flex-start; }
.contact-avatar { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--vert); }
.contact-avatar img { width: 30px; }
.contact-person p { font-size: .88rem; margin-top: 4px; }
.dash-contact .btn { margin-top: auto; }

@keyframes shimmer { to { background-position: -200% 0; } }
.housing-skeleton { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 640px) { .housing-skeleton { grid-template-columns: repeat(3, 1fr); } }
.housing-skeleton li { display: grid; gap: 8px; }
.housing-skeleton span {
  display: block; border-radius: 12px;
  background: linear-gradient(90deg, var(--sable-clair) 0%, #FBF7F0 50%, var(--sable-clair) 100%) 0 0 / 200% 100%;
  animation: shimmer 1.6s linear infinite;
}
.housing-skeleton span:first-child { height: 96px; }
.housing-skeleton span:last-child { height: 14px; width: 70%; }

.docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.docs li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--ligne); font-size: .9rem; }
.docs li:last-child { border-bottom: 0; }
.docs svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--sauge); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.docs span { flex: 1; }
.docs a { font-size: .75rem; font-weight: 600; color: var(--vert); padding: 4px 10px; border-radius: 999px; background: var(--sable-clair); text-decoration: none; }
.docs a[aria-disabled="true"] { opacity: .6; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .login-visual::after, .login-symbol { animation: none; }
}

/* =========================================================
   Fond blanc, touches de beige, onglets
   ========================================================= */
.account-page { background: var(--blanc); }
.login-card { background: var(--sable-clair); border-color: transparent; }
.login-card .field input { background: var(--blanc); }
.login-card .segmented { background: var(--blanc); border: 1px solid var(--ligne); }
.code-inputs input { background: var(--blanc); }
.demo-badge { background: var(--sable); color: var(--vert); border-color: rgba(30, 77, 59, .35); }

.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }

.dash-head { padding: 28px; border-radius: var(--r-lg); background: var(--sable-clair); position: relative; overflow: hidden; }
.dash-head::after { content: ""; position: absolute; right: -60px; top: -80px; width: 240px; height: 240px; border-radius: 50%; border: 2px dashed rgba(143, 169, 143, .45); animation: spin 40s linear infinite; pointer-events: none; }

.dash-layout { display: grid; gap: 20px; align-items: start; }
@media (min-width: 960px) { .dash-layout { grid-template-columns: 250px 1fr; gap: 28px; } }

/* Onglets : colonne à gauche sur ordinateur, défilement horizontal sur mobile */
.dash-nav { border-radius: var(--r-md); background: var(--sable-clair); padding: 10px; }
.dash-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.dash-nav ul::-webkit-scrollbar { display: none; }
.dash-nav a {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; white-space: nowrap;
  text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--texte-doux);
  transition: background-color .2s, color .2s;
}
.dash-nav a:hover { background: rgba(255, 255, 255, .7); color: var(--vert); }
.dash-nav a.is-active { background: var(--blanc); color: var(--vert); box-shadow: 0 6px 16px -10px rgba(19, 38, 30, .35); }
.dash-nav a.is-active svg { color: var(--vert); }
.dash-nav svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; color: var(--sauge); }
.dash-count { margin-left: auto; padding: 1px 8px; border-radius: 999px; background: var(--sable); color: var(--vert); font-style: normal; font-size: .72rem; }
.dash-nav-foot { display: none; }
@media (min-width: 960px) {
  .dash-nav { position: sticky; top: 24px; padding: 12px; }
  .dash-nav ul { flex-direction: column; overflow: visible; }
  .dash-nav-foot { display: block; padding: 12px 4px 4px; margin-top: 8px; border-top: 1px solid var(--ligne); }
  .dash-nav-foot .btn { width: 100%; }
}

.dash-panel:not([hidden]) { animation: rise .35s ease both; }
.dash-panel h2:focus { outline: none; }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.panel-head h2 { margin: 0; font-size: 1.6rem; }
.dash-card { border-color: var(--ligne); }
.dash-card h3 { margin: 0; font-size: 1.1rem; }
.dash-grid { grid-template-columns: 1fr; }
@media (min-width: 1100px) {
  .dash-grid { grid-template-columns: 1.5fr 1fr; }
  .dash-booking, .dash-housing { grid-column: auto; }
}
.dash-payment { background: var(--sable-clair); border-color: transparent; }
.dash-payment .pay-bar { background: var(--blanc); }

/* Filtre segmenté */
.seg-filter { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--sable-clair); }
.seg-filter button { min-height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font: 600 .82rem var(--f-texte); color: var(--texte-doux); transition: background-color .2s, color .2s; }
.seg-filter button.is-active { background: var(--vert); color: var(--sable-clair); }

/* Liste des réservations */
.bookings { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 12px; }
.bk {
  display: grid; gap: 14px 20px; padding: 20px; border-radius: var(--r-md); border: 1px solid var(--ligne); background: var(--blanc);
  grid-template-columns: auto 1fr; transition: box-shadow .3s, transform .3s;
}
.bk[hidden] { display: none; }
.bk:hover { box-shadow: var(--ombre); transform: translateY(-2px); }
@media (min-width: 760px) { .bk { grid-template-columns: auto 1fr auto; } .bk-actions { grid-column: 2 / -1; } }
.bk-date { width: 72px; height: 72px; border-radius: 18px; display: grid; place-content: center; text-align: center; background: var(--vert); color: var(--sable-clair); }
.bk-date strong { font: 600 1.6rem/1 var(--f-titre); color: var(--sable); }
.bk-date span { font-size: .68rem; text-transform: capitalize; }
.bk-past .bk-date { background: var(--sable); color: var(--vert); }
.bk-past .bk-date strong { color: var(--vert); }
.bk-ref { margin: 0 0 2px; font-size: .75rem; font-weight: 600; letter-spacing: .04em; color: var(--sauge); }
.bk h3 { margin: 0 0 4px; font-size: 1.2rem; }
.bk-meta { margin: 0; font-size: .86rem; color: var(--texte-doux); }
.bk-side { display: grid; justify-items: start; gap: 4px; grid-column: 1 / -1; }
@media (min-width: 760px) { .bk-side { grid-column: auto; justify-items: end; text-align: right; } }
.bk-side strong { font: 600 1.15rem var(--f-titre); color: var(--vert); }
.bk-side small { font-size: .78rem; color: var(--texte-doux); }
.bk-actions { display: flex; flex-wrap: wrap; gap: 8px; grid-column: 1 / -1; }
.bk-actions .btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.status-past { background: var(--sable-clair); color: var(--texte-doux); }

/* Factures */
.table-wrap { overflow-x: auto; border: 1px solid var(--ligne); border-radius: var(--r-md); margin-bottom: 14px; }
.invoices { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 620px; }
.invoices th { text-align: left; padding: 12px 16px; background: var(--sable-clair); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--texte-doux); }
.invoices td { padding: 14px 16px; border-top: 1px solid var(--ligne); }
.invoices td:first-child { font-weight: 600; }
.invoices tbody tr { transition: background-color .2s; }
.invoices tbody tr:hover { background: #FCFAF6; }
.dl { font-size: .75rem; font-weight: 600; color: var(--vert); padding: 4px 10px; border-radius: 999px; background: var(--sable-clair); text-decoration: none; }
.dl[aria-disabled="true"] { opacity: .6; }

/* Documents */
.docs-grid { display: grid; gap: 18px; }
@media (min-width: 900px) { .docs-grid { grid-template-columns: 1fr 1fr; } }
.drop {
  display: grid; justify-items: center; gap: 6px; padding: 28px 16px; border-radius: 16px; text-align: center;
  border: 2px dashed var(--sauge); background: var(--sable-clair); color: var(--vert);
}
.drop svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.drop small { color: var(--texte-doux); }

/* Profil */
.profile-form { gap: 22px; }
.profile-form .field input, .profile-form .field select { background: var(--blanc); }
.prefs { border: 0; margin: 0; padding: 18px; border-radius: 16px; background: var(--sable-clair); display: grid; gap: 12px; }
.prefs legend { float: left; width: 100%; margin-bottom: 4px; padding: 0; font-weight: 600; color: var(--vert); }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: .92rem; }
.switch input { position: absolute; opacity: 0; }
.switch span { flex: none; position: relative; width: 42px; height: 24px; border-radius: 999px; background: var(--blanc); border: 1.5px solid var(--ligne); transition: background-color .2s, border-color .2s; }
.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: var(--sauge); transition: transform .25s cubic-bezier(.2, .7, .2, 1.3), background-color .2s; }
.switch input:checked + span { background: var(--vert); border-color: var(--vert); }
.switch input:checked + span::after { transform: translateX(18px); background: var(--sable); }
.switch input:focus-visible + span { outline: 3px solid var(--sauge); outline-offset: 2px; }
.profile-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.profile-saved { margin: 0; font-weight: 600; color: var(--vert); font-size: .9rem; }
.text-btn { border: 0; background: none; padding: 0; color: #8A1C14; font: 600 .8rem var(--f-texte); text-decoration: underline; cursor: pointer; margin-left: 6px; }
.text-btn[disabled] { opacity: .6; cursor: not-allowed; }

/* Aide */
.help-grid { display: grid; gap: 14px; }
@media (min-width: 760px) { .help-grid { grid-template-columns: repeat(3, 1fr); } }
.help-card { text-decoration: none; color: inherit; transition: transform .3s, box-shadow .3s, background-color .3s; }
a.help-card:hover { transform: translateY(-4px); box-shadow: var(--ombre); }
.help-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--sable); color: var(--vert); }
.help-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.help-card strong { font: 600 1.15rem var(--f-titre); color: var(--vert); }

/* Corrections : bouton du menu lisible, bouton caché vraiment caché */
.dash-nav-foot .btn, .dash-nav-foot .btn:hover { color: var(--sable-clair); background: var(--vert); box-shadow: none; }

.dash-label-short { display: none; }

/* =========================================================
   En-tête fixe, pied de page, mobile
   ========================================================= */
.account-page { display: flex; flex-direction: column; min-height: 100vh; }
.account-page main { flex: 1; }
.account-header { position: sticky; top: 0; z-index: 50; }

.site-footer-mini { padding: 0 0 24px; }
.site-footer-mini .footer-bottom { margin-top: 0; border-top: 0; }

@media (max-width: 899px) {
  /* Le formulaire de connexion avant la présentation de l'espace client */
  .login-card { order: -1; }
  .login { padding-top: 20px; }
  .login-visual { padding-top: 120px; }
  .login-symbol { top: 28px; right: 28px; width: 72px; }
}

@media (max-width: 959px) {
  /* Onglets du tableau de bord : barre fixée en bas de l'écran */
  .dashboard { padding: 20px 0 40px; }
  .dash-nav {
    position: fixed; z-index: 70; inset-inline: 0; bottom: 0;
    padding: 0 0 env(safe-area-inset-bottom); border-radius: 0;
    background: var(--blanc); border-top: 1px solid var(--ligne);
    box-shadow: 0 -8px 24px -16px rgba(19, 38, 30, .4);
  }
  .dash-nav ul { height: 64px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; overflow: visible; }
  .dash-nav a {
    position: relative; height: 100%; padding: 0 2px; border-radius: 0;
    flex-direction: column; justify-content: center; gap: 3px;
    font-size: .66rem; line-height: 1.1; white-space: normal; text-align: center;
  }
  .dash-nav a:hover { background: none; }
  .dash-nav a.is-active { background: none; box-shadow: none; }
  .dash-nav svg { width: 22px; height: 22px; }
  .dash-label-long { display: none; }
  .dash-label-short { display: inline; }
  .dash-count { position: absolute; top: 8px; inset-inline-start: calc(50% + 6px); margin: 0; padding: 0 5px; font-size: .62rem; line-height: 1.4; }

  .dash-head { padding: 22px 20px; margin-bottom: 18px; }
  .dash-head::after { width: 160px; height: 160px; right: -50px; top: -60px; }
  .dash-card { padding: 20px; }
  .panel-head h2 { font-size: 1.35rem; }
  /* Pied de page au-dessus de la barre d'onglets */
  .account-page:has(.dashboard:not([hidden])) .site-footer-mini { padding-bottom: calc(24px + 64px + env(safe-area-inset-bottom)); }
}
@media (max-width: 640px) {
  /* Factures : une carte par ligne au lieu d'un tableau à faire défiler */
  .table-wrap { overflow: visible; border: 0; }
  .invoices { min-width: 0; }
  .invoices thead { display: none; }
  .invoices, .invoices tbody, .invoices tr, .invoices td { display: block; }
  .invoices tr { margin-bottom: 12px; padding: 14px 16px; border: 1px solid var(--ligne); border-radius: var(--r-md); background: var(--blanc); }
  .invoices td { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border: 0; }
  .invoices td::before { content: attr(data-label); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--texte-doux); }
  .invoices td:first-child { padding-top: 0; font: 600 1.05rem var(--f-titre); color: var(--vert); }
  .invoices td:first-child::before { content: none; }
  .invoices td:last-child::before { content: none; }
  .invoices td:last-child { justify-content: flex-end; padding-bottom: 0; }
}
@media (max-width: 520px) {
  .account-header-inner { min-height: 64px; }
  .account-header .brand img { width: 130px; height: auto; }
  .account-header-actions { gap: 10px; }
  .booking-facts { grid-template-columns: 1fr 1fr; gap: 12px 14px; }
  .progress-steps { font-size: .68rem; }
  .pay-row { font-size: .92rem; }
  .bk { padding: 16px; gap: 12px 14px; }
  .bk-date { width: 60px; height: 60px; border-radius: 14px; }
  .bk-actions .btn { flex: 1 1 auto; }
  .seg-filter { width: 100%; }
  .seg-filter button { flex: 1; padding: 0 8px; }
}
