:root {
  --bg: #f4f2ec;
  --bg-2: #ebe6dc;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-solid: #ffffff;
  --ink: #1a1610;
  --muted: #7a7264;
  --line: rgba(90, 68, 28, 0.1);
  --gold: #b48430;
  --gold-2: #c9a24a;
  --gold-deep: #7a5820;
  --bronze: #604818;
  --champagne: #e8d5a3;
  --sand: #f3ead6;
  --ok: #2f9d6a;
  --warn: #d98a2d;
  --danger: #d45757;
  --radius: 28px;
  --radius-sm: 18px;
  --shadow: 0 18px 50px rgba(96, 72, 24, 0.12);
  --font: "Manrope", sans-serif;
  --display: "Sora", sans-serif;
}

* { box-sizing: border-box; }

body.dash-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 0% 0%, rgba(201, 162, 74, 0.22), transparent 55%),
    radial-gradient(800px 480px at 100% 10%, rgba(232, 213, 163, 0.35), transparent 50%),
    linear-gradient(160deg, #f7f4ee 0%, #efe9df 45%, #f5f1ea 100%);
}

a { color: var(--gold-deep); text-decoration: none; }
a:hover { color: var(--bronze); }

.dash-frame {
  display: grid;
  grid-template-columns: 232px 1fr;
  gap: 1rem;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 1rem 1.25rem;
  min-height: 100vh;
  box-sizing: border-box;
}

.dash-rail {
  position: sticky;
  top: 1rem;
  height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  padding: 1.1rem 0.75rem;
  border-radius: 32px;
  background: linear-gradient(180deg, #2a2114 0%, #1a1610 55%, #120e09 100%);
  box-shadow: var(--shadow);
  color: #fff;
  border: 1px solid rgba(201, 162, 74, 0.22);
}

.dash-rail__brand {
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0 0.45rem;
  background: linear-gradient(145deg, #e8d5a3, #b48430);
  color: #1a1610;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  backdrop-filter: blur(8px);
}
.dash-rail__brand > span:first-child {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(26, 22, 16, 0.12);
  flex-shrink: 0;
}
.dash-rail__brand-name {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.15;
}

.dash-rail__nav {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  flex: 1;
  width: 100%;
  align-items: stretch;
  overflow-y: auto;
  padding-right: 0.1rem;
}

.dash-rail__link,
.dash-rail__logout button {
  width: 100%;
  min-height: 42px;
  height: auto;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  padding: 0.4rem 0.7rem;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
  text-align: left;
  font: inherit;
}

.dash-rail__link svg,
.dash-rail__logout button svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.dash-rail__label {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-rail__link:hover,
.dash-rail__logout button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.dash-rail__link.is-active {
  color: #1a1610;
  background: linear-gradient(145deg, #e8d5a3, #c9a24a);
  box-shadow: 0 6px 16px rgba(180, 132, 48, 0.35);
}

.dash-rail__logout {
  width: 100%;
  margin: 0;
}

.dash-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dash-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(96, 72, 24, 0.06);
}

.dash-search {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
  max-width: 420px;
  color: var(--muted);
}

.dash-search svg { width: 18px; height: 18px; flex-shrink: 0; }
.dash-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  color: var(--ink);
}

.dash-top__user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  border-radius: 999px;
  padding: 0.2rem 0.35rem 0.2rem 0.55rem;
  transition: background 0.2s ease;
}
.dash-top__user:hover {
  background: rgba(180, 132, 48, 0.1);
  color: inherit;
}

.dash-top__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
}
.dash-top__meta strong { font-size: 0.92rem; }
.dash-top__meta span { color: var(--muted); font-size: 0.75rem; }

.dash-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #e8d5a3, #b48430);
  color: #1a1610;
  font-weight: 700;
}

.dash-flash {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(47, 157, 106, 0.12);
  border: 1px solid rgba(47, 157, 106, 0.25);
  color: #1f6b48;
}

.dash-flash--error,
.admin-flash--error {
  background: rgba(212, 87, 87, 0.12);
  border-color: rgba(212, 87, 87, 0.28);
  color: #8f2f2f;
}

.dash-content { min-width: 0; }

.dash-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1rem;
}
.dash-kicker {
  margin: 0 0 0.35rem;
  color: var(--gold-2);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}
.dash-intro h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.dash-intro__lead {
  margin: 0.4rem 0 0;
  color: var(--muted);
  max-width: 36rem;
}
.dash-intro__actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.dash-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.88rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dash-btn:hover {
  transform: translateY(-1px);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(96, 72, 24, 0.1);
}
.dash-btn--primary {
  background: linear-gradient(135deg, var(--gold-2), var(--gold-deep));
  border-color: transparent;
  color: #fff;
}
.dash-btn--primary:hover { color: #fff; }
.dash-btn--danger {
  border-color: rgba(212, 87, 87, 0.35);
  color: var(--danger);
  background: rgba(212, 87, 87, 0.08);
}

.dash-board {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.85fr);
  gap: 1rem;
}
.dash-board__main,
.dash-board__side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.dash-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1rem;
  color: #fff;
  background:
    radial-gradient(500px 240px at 90% 10%, rgba(232, 213, 163, 0.35), transparent 55%),
    linear-gradient(145deg, #c9a24a 0%, #b48430 45%, #604818 100%);
  box-shadow: var(--shadow);
  animation: dash-rise 0.55s ease both;
}
.dash-hero-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.dash-hero-card__head p {
  margin: 0;
  opacity: 0.75;
  font-size: 0.85rem;
}
.dash-hero-card__head h2 {
  margin: 0.25rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
}
.dash-hero-card__head h2 span {
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.7;
}
.dash-chip {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.dash-chart {
  position: relative;
  height: 140px;
  margin: 1rem 0 0.75rem;
}
.dash-chart svg {
  width: 100%;
  height: 100%;
  display: block;
}
.dash-chart__tip {
  position: absolute;
  top: 8%;
  transform: translateX(-50%);
  padding: 0.35rem 0.55rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--gold-deep);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  text-align: center;
  line-height: 1.15;
}
.dash-chart__tip strong { display: block; font-size: 0.85rem; }
.dash-chart__tip span { font-size: 0.68rem; color: var(--muted); }

.dash-hero-card__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}
.dash-hero-card__stats > div {
  padding: 0.75rem 0.85rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}
.dash-hero-card__stats span {
  display: block;
  font-size: 0.72rem;
  opacity: 0.75;
}
.dash-hero-card__stats strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.25rem;
  font-family: var(--display);
}

.dash-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.dash-glow-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem;
  border-radius: var(--radius);
  color: #1a1610;
  box-shadow: var(--shadow);
  animation: dash-rise 0.6s ease both;
}
.dash-glow-card--gold {
  background: linear-gradient(145deg, #c9a24a, #8a6424);
  color: #1a1610;
}
.dash-glow-card--champagne {
  background: linear-gradient(145deg, #e8d5a3, #b48430);
  color: #1a1610;
}
.dash-glow-card--gold .dash-glow-card__cta,
.dash-glow-card--champagne .dash-glow-card__cta {
  color: #1a1610;
}
.dash-glow-card--purple {
  background: linear-gradient(145deg, #c9a24a, #8a6424);
}
.dash-glow-card--pink {
  background: linear-gradient(145deg, #e8d5a3, #b48430);
}
.dash-glow-card p {
  margin: 0;
  font-size: 0.78rem;
  opacity: 0.85;
}
.dash-glow-card h3 {
  margin: 0.2rem 0 0;
  font-size: 1.05rem;
  font-family: var(--display);
  font-weight: 700;
}
.dash-glow-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(26, 22, 16, 0.12);
}
.dash-glow-card__icon svg { width: 22px; height: 22px; }
.dash-glow-card__cta {
  color: #1a1610;
  font-weight: 700;
  font-size: 0.82rem;
  opacity: 0.9;
}
.dash-glow-card__cta:hover { color: #1a1610; opacity: 1; }

.dash-progress-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}
.dash-progress-card {
  display: block;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: var(--surface-solid);
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(96, 72, 24, 0.06);
  color: var(--ink);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  animation: dash-rise 0.65s ease both;
}
.dash-progress-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(96, 72, 24, 0.12);
  color: var(--ink);
}
.dash-progress-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 0.75rem;
  font-weight: 800;
  color: #fff;
}
.tone-0 .dash-progress-card__icon { background: linear-gradient(145deg, #c9a24a, #7a5820); }
.tone-1 .dash-progress-card__icon { background: linear-gradient(145deg, #d4b56a, #a87830); }
.tone-2 .dash-progress-card__icon { background: linear-gradient(145deg, #e8d5a3, #b48430); }
.dash-progress-card h3 {
  margin: 0;
  font-size: 0.98rem;
  font-family: var(--display);
}
.dash-progress-card p {
  margin: 0.3rem 0 0.75rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}
.dash-progress-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(180, 132, 48, 0.08);
  overflow: hidden;
}
.dash-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-2), var(--champagne));
}
.tone-1 .dash-progress-bar span { background: linear-gradient(90deg, #d4b56a, #e8d5a3); }
.tone-2 .dash-progress-bar span { background: linear-gradient(90deg, #b48430, #e8d5a3); }
.dash-progress-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
  font-size: 0.82rem;
}
.dash-pill {
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(180, 132, 48, 0.08);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.72rem;
}

.dash-panel,
.dash-side-card,
.admin-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(96, 72, 24, 0.05);
}
.dash-panel__head,
.admin-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.dash-panel__head h2,
.admin-panel__head h2 {
  margin: 0;
  font-size: 1rem;
  font-family: var(--display);
}

.dash-list { display: grid; gap: 0.55rem; }
.dash-list__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem 0.8rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  color: var(--ink);
  transition: background 0.2s ease, transform 0.2s ease;
}
.dash-list__row:hover {
  background: #fff;
  transform: translateX(2px);
  color: var(--ink);
}
.dash-list__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(180, 132, 48, 0.15), rgba(201, 162, 74, 0.2));
  color: var(--gold);
  font-weight: 800;
}
.dash-list__body strong,
.dash-friends strong { display: block; font-size: 0.9rem; }
.dash-list__body span,
.dash-friends span {
  color: var(--muted);
  font-size: 0.75rem;
}
.dash-list__meta {
  text-align: right;
  display: grid;
  gap: 0.25rem;
  justify-items: end;
}
.dash-list__meta strong { font-size: 0.85rem; }

.dash-friends {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.dash-friends li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.55rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.65);
}
.dash-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(180, 132, 48, 0.08);
  color: var(--gold);
}
.dash-icon-btn svg { width: 16px; height: 16px; }

.dash-side-card--live {
  background:
    radial-gradient(300px 160px at 100% 0%, rgba(201, 162, 74, 0.18), transparent 60%),
    var(--surface);
}
.dash-live {
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(201, 162, 74, 0.16);
  color: var(--gold-deep);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.dash-live-list { display: grid; gap: 0.55rem; }
.dash-live-item {
  display: grid;
  gap: 0.15rem;
  padding: 0.75rem 0.85rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  color: var(--ink);
}
.dash-live-item:hover { color: var(--ink); background: #fff; }
.dash-live-item span { color: var(--muted); font-size: 0.8rem; }
.dash-live-item small { color: var(--champagne); font-size: 0.72rem; font-weight: 700; }

.dash-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.dash-mini-stats > div {
  padding: 0.75rem 0.5rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  text-align: center;
}
.dash-mini-stats span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
}
.dash-mini-stats strong {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--display);
  font-size: 1.15rem;
}

.dash-empty,
.admin-empty {
  color: var(--muted);
  text-align: center;
  padding: 1.25rem 0.5rem;
  margin: 0;
}
.dash-empty--wide { grid-column: 1 / -1; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.badge--pending { background: rgba(217, 138, 45, 0.14); color: #a86410; }
.badge--confirmed { background: rgba(47, 157, 106, 0.14); color: #1f6b48; }
.badge--cancelled { background: rgba(212, 87, 87, 0.14); color: #8f2f2f; }
.badge--completed { background: rgba(180, 132, 48, 0.16); color: var(--bronze); }
.badge--no_show { background: rgba(122, 115, 144, 0.12); color: #5c5670; }

/* Pages liste / détail — réutilise le shell fluide */
.admin-top { display: none; }
.admin-content > .admin-filters,
.admin-content > .admin-panel,
.admin-content > .admin-grid-2,
.admin-content > .admin-hero,
.admin-content > .admin-stats {
  animation: dash-rise 0.45s ease both;
}

.admin-filters {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr) auto;
  gap: 0.75rem;
  margin-bottom: 1rem;
  align-items: end;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.admin-filters label,
.admin-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}
.admin-filters input,
.admin-filters select,
.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  border-radius: 14px;
  padding: 0.7rem 0.8rem;
  font: inherit;
}
.admin-filters__actions,
.admin-form__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.admin-form { display: grid; gap: 0.9rem; }
.admin-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.admin-check {
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0.6rem !important;
  width: fit-content;
  max-width: 100%;
  cursor: pointer;
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
}

.admin-check input[type="checkbox"] {
  width: 1.1rem !important;
  min-width: 1.1rem;
  max-width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  border-radius: 4px;
  accent-color: var(--gold-deep, #b48430);
  cursor: pointer;
}

.admin-check > span {
  flex: 0 1 auto;
  white-space: nowrap;
  line-height: 1.3;
  color: var(--ink);
  font-weight: 500;
}
.admin-danger {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.admin-table-wrap { overflow-x: auto; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.8rem 0.55rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.admin-table th {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.admin-table small {
  display: block;
  color: var(--muted);
  margin-top: 0.15rem;
}
.admin-table .col-num {
  width: 2.75rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.admin-table-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.table-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

/* Couleurs de lignes selon statut / validité */
.admin-table tbody tr.row-status--expire {
  background: rgba(212, 87, 87, 0.12);
}
.admin-table tbody tr.row-status--expire:hover {
  background: rgba(212, 87, 87, 0.18);
}
.admin-table tbody tr.row-status--en-cours {
  background: rgba(47, 157, 106, 0.08);
}
.admin-table tbody tr.row-status--en-cours:hover {
  background: rgba(47, 157, 106, 0.14);
}
.admin-table tbody tr.row-status--unknown {
  background: rgba(122, 115, 144, 0.06);
}
.admin-table tbody tr.row-status--pending {
  background: rgba(217, 138, 45, 0.1);
}
.admin-table tbody tr.row-status--confirmed {
  background: rgba(47, 157, 106, 0.08);
}
.admin-table tbody tr.row-status--cancelled {
  background: rgba(212, 87, 87, 0.12);
}
.admin-table tbody tr.row-status--completed {
  background: rgba(180, 132, 48, 0.1);
}
.admin-table tbody tr.row-status--no_show {
  background: rgba(122, 115, 144, 0.1);
}

.badge-validity {
  border-radius: 12px;
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
}
.badge-validity--en_cours {
  background: rgba(47, 157, 106, 0.16);
  color: #1f6b48;
}
.badge-validity--expire {
  background: rgba(212, 87, 87, 0.16);
  color: #9b2c2c;
}
.badge-validity--inconnu {
  background: rgba(122, 115, 144, 0.12);
  color: #5c5670;
}
.badge-validity--invite {
  background: rgba(201, 162, 74, 0.18);
  color: #7a5820;
}

.visitor-pass-layout {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: 1.25rem;
  align-items: start;
}
.visitor-pass-preview {
  padding: 1rem;
  background: #d6e8f2;
}
.visitor-pass-preview img {
  width: 100%;
  display: block;
  border-radius: 22px;
}
.visitor-pass-meta {
  display: grid;
  gap: 0.65rem;
  margin: 1.25rem 0 0;
}
.visitor-pass-meta div {
  display: grid;
  gap: 0.15rem;
}
.visitor-pass-meta dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.visitor-pass-meta dd {
  margin: 0;
  font-weight: 700;
}
@media (max-width: 900px) {
  .visitor-pass-layout { grid-template-columns: 1fr; }
  .visitor-pass-actions { order: -1; }
}

.print-only-price { display: none; }

@media print {
  .dash-rail,
  .dash-top,
  .dash-mobile-bar,
  .dash-intro__actions,
  .admin-filters,
  .table-tools,
  .no-print,
  .admin-pagination,
  .dash-hero-card__stats,
  .dash-flash {
    display: none !important;
  }
  .dash-frame,
  .dash-main,
  .admin-panel {
    box-shadow: none !important;
    background: #fff !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  body.is-printing-table .dash-intro,
  body.is-printing-table #price-create {
    display: none !important;
  }
  .print-only-price { display: block !important; }
  .admin-table tbody tr.row-status--expire td {
    background: #fde2e1 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .admin-table tbody tr.row-status--en-cours td,
  .admin-table tbody tr.row-status--confirmed td {
    background: #e3f6ea !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .admin-table tbody tr.row-status--pending td {
    background: #fff3cd !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .admin-table tbody tr.row-status--cancelled td {
    background: #fde2e1 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .admin-table th,
  .admin-table td {
    border: 1px solid #ccc !important;
  }
}
.admin-link { font-weight: 700; white-space: nowrap; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: var(--gold-deep); }
.admin-link--danger { color: var(--danger); }
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.75rem;
  align-items: center;
}
.admin-actions form { display: inline; margin: 0; }
.admin-pagination { margin-top: 1.1rem; }

.admin-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}
.admin-pager__info {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
}
.admin-pager__info strong {
  color: var(--bronze);
  font-weight: 700;
}
.admin-pager__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.admin-pager__list li {
  list-style: none;
  margin: 0;
  padding: 0;
}
.admin-pager__list a,
.admin-pager__list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.15rem;
  height: 2.15rem;
  padding: 0 0.65rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: #fff;
  color: var(--bronze);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
  box-sizing: border-box;
}
.admin-pager__list a:hover {
  border-color: rgba(180, 132, 48, 0.45);
  color: var(--gold-deep);
  background: rgba(201, 162, 74, 0.1);
}
.admin-pager__list .is-active span {
  background: linear-gradient(135deg, var(--gold-2), var(--gold-deep));
  border-color: transparent;
  color: #fff;
}
.admin-pager__list .is-disabled span {
  opacity: 0.45;
  cursor: default;
  background: rgba(255, 255, 255, 0.5);
}

/* Ancien markup Bootstrap (si cache / vues compilées) */
.admin-pagination .pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.admin-pagination .page-item { list-style: none; }
.admin-pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.15rem;
  height: 2.15rem;
  padding: 0 0.65rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: #fff;
  color: var(--bronze);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}
.admin-pagination .page-item.active .page-link {
  background: linear-gradient(135deg, var(--gold-2), var(--gold-deep));
  border-color: transparent;
  color: #fff;
}
.admin-pagination .page-item.disabled .page-link { opacity: 0.45; }
.admin-pagination .d-sm-none { display: none !important; }
.admin-pagination .d-none.d-sm-flex,
.admin-pagination .d-none.flex-sm-fill {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  width: 100%;
}

@media (max-width: 640px) {
  .admin-pager {
    flex-direction: column;
    align-items: flex-start;
  }
}

.badge-activity {
  border-radius: 12px;
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-size: 0.74rem;
  font-weight: 700;
}
.badge-activity--success { background: rgba(47, 157, 106, 0.16); color: #1f6b48; }
.badge-activity--warn { background: rgba(217, 138, 45, 0.16); color: #a86410; }
.badge-activity--danger { background: rgba(212, 87, 87, 0.16); color: #9b2c2c; }
.badge-activity--info { background: rgba(59, 130, 180, 0.14); color: #1f4f78; }
.badge-activity--muted { background: rgba(122, 115, 144, 0.12); color: #5c5670; }

.admin-table tbody tr.row-activity--danger { background: rgba(212, 87, 87, 0.08); }
.admin-table tbody tr.row-activity--success { background: rgba(47, 157, 106, 0.06); }

.menu-checkboxes {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 1rem 1rem;
  margin: 0;
}
.menu-checkboxes legend {
  padding: 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.menu-checkboxes__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.45rem 0.75rem;
}
.menu-check {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.88rem;
  cursor: pointer;
}
.menu-checkboxes__hint {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}
.menu-perm-list {
  display: grid;
  gap: 0.65rem;
}
.menu-perm {
  display: grid;
  gap: 0.4rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
}
.menu-perm__crud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  padding-left: 1.55rem;
}
.menu-perm__ability-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.menu-perm__ability-label input {
  width: auto !important;
  margin: 0;
}
.menu-tag small {
  display: block;
  font-weight: 600;
  opacity: 0.75;
}
.menu-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.menu-tag {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(180, 132, 48, 0.12);
  color: var(--bronze);
  font-size: 0.72rem;
  font-weight: 700;
}
.user-edit-details {
  position: relative;
}
.user-edit-form {
  margin-top: 0.65rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  min-width: min(22rem, 80vw);
}
.profile-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.profile-menu-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}
.profile-menu-list li.is-on strong { color: #1f6b48; }
.profile-menu-list li.is-off {
  opacity: 0.55;
}
.profile-menu-list li.is-off strong { color: var(--muted); }

/* Budget */
.budget-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}
.budget-kpi {
  padding: 1.1rem 1.15rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  display: grid;
  gap: 0.25rem;
}
.budget-kpi span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
}
.budget-kpi strong {
  font-size: 1.55rem;
  font-family: var(--display);
  line-height: 1.15;
}
.budget-kpi small {
  color: var(--muted);
  font-size: 0.78rem;
}
.budget-kpi--income strong { color: #1f6b48; }
.budget-kpi--expense strong { color: #9b2c2c; }
.budget-kpi--balance.is-positive strong { color: #176644; }
.budget-kpi--balance.is-negative strong { color: #9b2c2c; }

.budget-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.budget-chart-card { min-height: 100%; }

.budget-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.55rem;
  min-height: 180px;
  padding: 0.5rem 0.25rem 0;
}
.budget-bars__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}
.budget-bars__tracks {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.25rem;
  width: 100%;
  height: 140px;
}
.budget-bars__bar {
  width: 42%;
  max-width: 1.35rem;
  border-radius: 8px 8px 4px 4px;
  min-height: 4px;
}
.budget-bars__bar--income {
  background: linear-gradient(180deg, #3cb371, #1f6b48);
}
.budget-bars__bar--expense {
  background: linear-gradient(180deg, #e07a7a, #9b2c2c);
}
.budget-bars__label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--bronze);
}
.budget-bars__col small {
  font-size: 0.68rem;
  color: var(--muted);
}

.budget-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.85rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.budget-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.budget-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  display: inline-block;
}
.budget-dot--income { background: #1f6b48; }
.budget-dot--expense { background: #9b2c2c; }

.budget-donut-wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
}
.budget-donut { width: 160px; height: 160px; }
.budget-donut__value {
  font-size: 15px;
  font-weight: 800;
  fill: var(--bronze);
}
.budget-donut__unit {
  font-size: 10px;
  fill: var(--muted);
}
.budget-breakdown {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.budget-breakdown li {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 0.45rem;
  align-items: center;
  font-size: 0.82rem;
}
.budget-breakdown em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.75rem;
}

.budget-stack-bars {
  display: grid;
  gap: 0.7rem;
}
.budget-stack-row__head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.84rem;
  margin-bottom: 0.3rem;
}
.budget-stack-row__bar {
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(90, 68, 28, 0.08);
  overflow: hidden;
}
.budget-stack-row__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e07a7a, #9b2c2c);
}

@media (max-width: 720px) {
  .budget-donut-wrap {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

.admin-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.admin-dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1rem;
  margin: 0;
}
.admin-dl dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.admin-dl dd { margin: 0.25rem 0 0; font-size: 0.98rem; }
.admin-dl--full { grid-column: 1 / -1; }

/* Compat anciens boutons */
.admin-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.admin-btn--primary {
  background: linear-gradient(135deg, var(--gold-2), var(--gold-deep));
  border-color: transparent;
  color: #fff;
}
.admin-btn--danger {
  border-color: rgba(212, 87, 87, 0.35);
  color: var(--danger);
  background: rgba(212, 87, 87, 0.08);
}
.admin-flash {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(47, 157, 106, 0.12);
  border: 1px solid rgba(47, 157, 106, 0.25);
  color: #1f6b48;
  margin-bottom: 1rem;
}

/* Login fluide */
.admin-login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 0% 0%, rgba(232, 213, 163, 0.28), transparent 55%),
    radial-gradient(800px 480px at 100% 10%, rgba(180, 132, 48, 0.22), transparent 50%),
    linear-gradient(160deg, #f7f4ee 0%, #efe9df 45%, #f5f1ea 100%);
}
.admin-login__card {
  width: min(420px, 100%);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 1.6rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.admin-brand {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}
.admin-brand__mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--gold-2), var(--champagne));
  color: #1a1610;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
}
.admin-brand strong { display: block; }
.admin-brand small { color: var(--muted); font-size: 0.75rem; }
.admin-login h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.9rem;
  margin: 1.2rem 0 0.35rem;
}
.admin-login__lead { color: var(--muted); margin: 0 0 1.2rem; }

.admin-login__home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.35rem;
  padding: 0.65rem 0.25rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  transition: color 0.2s ease;
}
.admin-login__home:hover {
  color: var(--gold-2);
}

.dash-mobile-bar {
  display: none;
}

@keyframes dash-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
  .dash-board { grid-template-columns: 1fr; }
  .dash-progress-grid { grid-template-columns: 1fr 1fr; }
  .admin-filters { grid-template-columns: 1fr 1fr; }
  .admin-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 840px) {
  .dash-frame {
    grid-template-columns: 1fr;
    padding: 0.75rem 0.75rem 5.5rem;
  }
  .dash-rail { display: none; }
  .dash-stack { grid-template-columns: 1fr; }
  .dash-progress-grid { grid-template-columns: 1fr; }
  .dash-intro { flex-direction: column; align-items: flex-start; }
  .dash-top__meta { display: none; }
  .dash-hero-card__stats { grid-template-columns: 1fr; }
  .dash-mobile-bar {
    display: flex;
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    z-index: 40;
    padding: 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--line);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
    justify-content: flex-start;
    gap: 0.25rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .dash-mobile-bar a {
    flex: 0 0 auto;
    text-align: center;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.55rem 0.7rem;
    border-radius: 999px;
    white-space: nowrap;
  }
  .dash-mobile-bar a.is-active,
  .dash-mobile-bar a:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--gold-2), var(--gold-deep));
  }
}

/* Calendrier (ancienne app → Legacy) */
.cal-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.cal-toolbar__filters label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 700;
}
.cal-toolbar__filters select {
  min-width: 220px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  font: inherit;
  color: var(--ink);
}
.cal-toolbar__nav {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.cal-toolbar__nav strong {
  min-width: 7rem;
  text-align: center;
  font-family: var(--display);
  text-transform: capitalize;
}
.cal-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 700;
}
.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-bottom: 0.85rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.cal-legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.cal-legend i {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  display: inline-block;
}
.cal-board {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(96, 72, 24, 0.06);
}
.cal-head,
.cal-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.cal-head {
  background: #f7f4ee;
  border-bottom: 1px solid var(--line);
}
.cal-head > div {
  padding: 0.65rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: lowercase;
}
.cal-toolbar__view {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.cal-day {
  position: relative;
  min-height: 110px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.45rem;
}
.cal-week .cal-day:nth-child(7n) { border-right: 0; }
.cal-day.is-muted { background: #faf9f6; color: #b0a89c; }
.cal-day:hover {
  background: rgba(180, 132, 48, 0.04);
}
.cal-day.is-muted:hover {
  background: #f5f2eb;
}
.cal-day__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
  min-height: 1.6rem;
}
.cal-day__adds {
  display: inline-flex;
  gap: 0.2rem;
}
.cal-day__add {
  display: inline-grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--gold-deep) !important;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.cal-day:hover .cal-day__add,
.cal-day:focus-within .cal-day__add,
.cal-day__add:focus-visible {
  opacity: 1;
}
.cal-day__add--membership:hover,
.cal-day__add--membership:focus-visible {
  background: #5b7c99;
  border-color: #5b7c99;
  color: #fff !important;
}
.cal-day__add--event:hover,
.cal-day__add--event:focus-visible {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff !important;
}
.cal-day.is-today .cal-day__num {
  background: var(--gold);
  color: #fff;
  border-radius: 50%;
  width: 1.6rem;
  height: 1.6rem;
  display: inline-grid;
  place-items: center;
}
.cal-day__num {
  margin-left: auto;
  text-align: right;
  font-size: 0.78rem;
  color: var(--muted);
}
.admin-kind {
  margin-bottom: 1.1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
}
.admin-kind__label {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.55rem;
  font-weight: 700;
}
.admin-kind__options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.admin-kind__option {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.88rem;
}
.admin-kind__option:has(input:checked) {
  border-color: var(--gold);
  background: rgba(180, 132, 48, 0.1);
  color: var(--gold-deep);
}
.admin-kind__option input {
  accent-color: var(--gold);
}
.cal-day__events { display: grid; gap: 0.25rem; }
.cal-event {
  display: block;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  color: #fff !important;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-more {
  font-size: 0.68rem;
  color: var(--muted);
  padding-left: 0.25rem;
}
.dash-catalog { display: grid; gap: 0.45rem; }
.dash-catalog__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  font-size: 0.88rem;
}
.dash-catalog__row span {
  font-weight: 800;
  color: var(--gold-deep);
  white-space: nowrap;
}
.pay-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}
.pay-badge--en_cours { background: #fff3cd; color: #8a6d1d; }
.pay-badge--expire { background: #fde2e1; color: #9b2c2c; }
.pay-badge--solde_1_mois { background: #e3f6ea; color: #1f6b48; }
.pay-badge--solde_3_mois { background: #d5f0df; color: #176644; }
.pay-badge--solde_1_an { background: #b9e8c9; color: #0f5132; }
.pay-badge--non_applicable { background: #f0eeea; color: #7a7264; }

.admin-show-side {
  display: grid;
  gap: 1rem;
  align-content: start;
}
.chrono-panel {
  background:
    radial-gradient(circle at top right, rgba(143, 173, 92, 0.18), transparent 42%),
    #fff;
}
.chrono-panel.is-running {
  box-shadow: 0 0 0 1px rgba(143, 173, 92, 0.35), 0 12px 30px rgba(96, 72, 24, 0.08);
}
.chrono-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  background: #f0eeea;
  color: #7a7264;
}
.chrono-pill--live {
  background: #e3f6ea;
  color: #1f6b48;
  animation: chronoPulse 1.4s ease-in-out infinite;
}
.chrono-pill--idle {
  background: #eef3e4;
  color: #5f7340;
}
@keyframes chronoPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
.chrono-display {
  text-align: center;
  padding: 1.1rem 0.75rem 0.85rem;
}
.chrono-display__time {
  font-family: var(--display), "Sora", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #3d4f28;
  font-variant-numeric: tabular-nums;
}
.chrono-display__hint {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.chrono-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.chrono-meta > div {
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
}
.chrono-meta span {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.chrono-meta strong {
  font-size: 0.88rem;
}
.chrono-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.dash-flash--error {
  background: #fde2e1;
  color: #9b2c2c;
  border-color: #f5c2c0;
}

/* Fiche membre / photo */
.member-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.35rem 1.75rem;
  padding: 1.35rem 1.4rem;
  margin-bottom: 1.25rem;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 12% 20%, rgba(201, 162, 74, 0.18), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(244, 242, 236, 0.9));
  box-shadow: 0 10px 28px rgba(96, 72, 24, 0.06);
}
.member-hero__photo-col {
  display: grid;
  gap: 0.55rem;
  justify-items: center;
  align-content: start;
}
.member-photo {
  width: 148px;
  height: 148px;
  border-radius: 28px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #2a2114, #604818);
  color: #f4e7c8;
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 28px rgba(96, 72, 24, 0.18);
}
.member-photo--sm {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  border-width: 2px;
}
.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.member-photo__initials {
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.member-photo--sm .member-photo__initials { font-size: 1.25rem; }
.member-photo-form { width: 100%; }
.member-photo-upload {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 2.2rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px dashed rgba(180, 132, 48, 0.45);
  background: rgba(255, 255, 255, 0.75);
  color: var(--gold-deep);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.member-photo-upload:hover {
  background: #fff;
  border-color: var(--gold);
}
.member-photo-upload input { display: none; }
.member-photo-upload--compact {
  width: auto;
  display: inline-flex;
}
.member-photo-remove {
  background: none;
  border: 0;
  color: #9b2c2c;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}
.member-photo-error {
  margin: 0;
  color: #9b2c2c;
  font-size: 0.78rem;
  text-align: center;
}
.member-photo-inline {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.member-hero__body { min-width: 0; }
.member-hero__top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.member-hero__ref {
  margin: 0 0 0.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.member-hero__body h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  color: var(--bronze);
}
.member-hero__formule {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.member-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.member-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}
.member-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}
.member-meta-chip svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--gold-deep);
}
.member-meta-chip:hover { color: var(--gold-deep); }
.member-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.65rem;
  margin-top: 1.15rem;
}
.member-stats > div {
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}
.member-stats span {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.member-stats strong {
  font-size: 0.95rem;
  color: var(--bronze);
}
.member-stats strong.is-danger { color: #9b2c2c; }

.member-cell {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}
.member-cell__photo,
.member-cell__avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  flex-shrink: 0;
  object-fit: cover;
}
.member-cell__avatar {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(180, 132, 48, 0.2), rgba(96, 72, 24, 0.18));
  color: var(--gold-deep);
  font-size: 0.72rem;
  font-weight: 800;
}

.nfc-card-panel {
  margin-bottom: 1.25rem;
}
.nfc-card-panel__lead {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.nfc-card-panel__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem;
  align-items: start;
}
.nfc-card-panel__link label span {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.nfc-link-row {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.nfc-link-row input {
  flex: 1;
  min-width: 12rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
}
.nfc-card-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}
.nfc-card-panel__qr {
  text-align: center;
}
.nfc-card-panel__qr img {
  display: block;
  width: 180px;
  height: 180px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.4rem;
}
.nfc-card-panel__qr span {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.72rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .cal-day { min-height: 88px; }
  .cal-event { font-size: 0.6rem; }
  .cal-toolbar { flex-direction: column; align-items: stretch; }
  .cal-day__add { opacity: 1; }
  .member-hero {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .member-hero__top { justify-content: center; }
  .member-hero__meta { justify-content: center; }
  .member-hero__badges { justify-content: center; }
  .nfc-card-panel__grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .nfc-card-panel__link { width: 100%; }
}
