:root {
  --bg: #0b162b;
  --bg-panel: #132646;
  --bg-panel-alt: #1a2f57;
  --line: rgba(109, 185, 222, 0.28);
  --text: #f5f9ff;
  --muted: #aac2da;
  --accent: #23b7d7;
  --accent-strong: #0f96ba;
  --danger: #e06045;
  --success: #43be79;
  --warning: #f4bf58;
  --reunion-lagoon: #1eb8d9;
  --reunion-volcano: #2a1718;
  --reunion-lava: #df5b3f;
  --reunion-sun: #f5c35d;
  --reunion-palm: #36a56f;
  --reunion-night: #122744;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at 12% 5%, rgba(30, 184, 217, 0.2), rgba(18, 39, 68, 0.98) 52%),
    radial-gradient(circle at 88% -10%, rgba(245, 195, 93, 0.2), rgba(11, 22, 43, 0.95) 55%),
    linear-gradient(180deg, #0a162c, #0d1e39 60%, #0b1830);
  color: var(--text);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: #7bd9ee;
}

.page-shell {
  width: min(1200px, 94vw);
  margin: 1.5rem auto 2rem;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.auth-card {
  width: min(460px, 94vw);
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(20, 41, 74, 0.96), rgba(14, 30, 56, 0.95));
  border-radius: 18px;
  padding: 1.6rem;
  box-shadow: 0 20px 56px rgba(5, 11, 22, 0.5);
}

body.login-page {
  background:
    linear-gradient(165deg, rgba(10, 16, 32, 0.8), rgba(12, 16, 30, 0.62)),
    url('/assets/images/famille-palmer-login.png') center center / cover no-repeat fixed,
    radial-gradient(circle at 15% 15%, rgba(30, 184, 217, 0.36), #0b162b 56%);
}

body.login-page .auth-shell {
  position: relative;
}

body.login-page .auth-shell::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 85% 18%, rgba(245, 195, 93, 0.26), rgba(8, 12, 20, 0.24) 52%),
    radial-gradient(circle at 20% 78%, rgba(30, 184, 217, 0.18), rgba(8, 12, 20, 0.14) 48%),
    linear-gradient(180deg, rgba(7, 10, 16, 0.2), rgba(7, 10, 16, 0.6));
}

body.login-page .auth-card {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(90, 199, 227, 0.38);
  background: linear-gradient(150deg, rgba(17, 27, 50, 0.92), rgba(12, 22, 43, 0.92));
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.62),
    inset 0 0 0 1px rgba(245, 195, 93, 0.13);
  backdrop-filter: blur(3px);
}

body.login-page .badge {
  border-color: rgba(245, 195, 93, 0.72);
  color: #ffe7bc;
  background: rgba(39, 24, 19, 0.52);
}

.badge {
  display: inline-block;
  border: 1px solid rgba(75, 195, 255, 0.6);
  color: #bce8ff;
  border-radius: 999px;
  padding: 0.16rem 0.62rem;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

h1,
h2,
h3 {
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(1.5rem, 2vw, 2rem);
}

h2 {
  font-size: 1.15rem;
}

p.muted,
small.muted {
  color: var(--muted);
}

.mdt-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 34, 53, 0.9);
  margin-bottom: 1rem;
}

.mdt-links {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.mdt-links a {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.35rem 0.56rem;
  color: var(--muted);
}

.mdt-links a.active,
.mdt-links a:hover {
  color: var(--text);
  border-color: var(--line);
  background: rgba(75, 195, 255, 0.12);
}

.top-right {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.panel {
  border: 1px solid var(--line);
  background: rgba(15, 34, 53, 0.88);
  border-radius: 12px;
  padding: 1rem;
}

.panel.alt {
  background: rgba(22, 43, 66, 0.92);
}

.stat {
  font-size: 1.7rem;
  font-weight: 600;
}

label {
  display: block;
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0.2rem 0 0.4rem;
}

input,
select,
textarea,
button {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(135, 177, 221, 0.3);
  background: #0d1f31;
  color: var(--text);
  padding: 0.62rem 0.7rem;
  font-size: 0.95rem;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

button {
  cursor: pointer;
  font-weight: 600;
  background: linear-gradient(180deg, #3db9f8, #1f8fd1);
  border: 1px solid rgba(174, 228, 255, 0.35);
  color: #03131f;
}

button:hover {
  filter: brightness(1.08);
}

button.secondary {
  background: #16334f;
  color: var(--text);
}

button.danger {
  background: linear-gradient(180deg, #ff8392, #f45d73);
  border-color: rgba(255, 179, 187, 0.5);
  color: #24080d;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.row > * {
  flex: 1;
  min-width: 130px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 840px;
}

th,
td {
  text-align: left;
  padding: 0.6rem;
  border-bottom: 1px solid rgba(135, 177, 221, 0.2);
  vertical-align: top;
}

th {
  color: #bfd6f2;
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
}

.status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0.16rem 0.6rem;
  font-size: 0.82rem;
}

.status.plan {
  color: #9fd9ff;
}

.status.run {
  color: var(--warning);
}

.status.done {
  color: var(--success);
}

.cards {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  border: 1px solid var(--line);
  background: rgba(12, 29, 45, 0.9);
  border-radius: 12px;
  padding: 0.9rem;
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 0.45rem;
}

.evidence-photo {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  margin: 0.6rem 0;
}

.photo-preview {
  margin: 0.8rem 0;
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 0.5rem;
  background: rgba(11, 30, 48, 0.6);
}

.photo-preview img {
  display: block;
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  border-radius: 8px;
}

.error,
.success {
  border-radius: 10px;
  margin-top: 0.8rem;
  padding: 0.66rem 0.76rem;
  font-size: 0.9rem;
}

.error {
  background: rgba(255, 107, 125, 0.16);
  border: 1px solid rgba(255, 107, 125, 0.35);
  color: #ffcad2;
}

.success {
  background: rgba(54, 209, 138, 0.16);
  border: 1px solid rgba(54, 209, 138, 0.35);
  color: #b6f5d7;
}

.empty {
  color: var(--muted);
  padding: 0.6rem 0;
}

.hidden {
  display: none;
}

@media (max-width: 700px) {
  .mdt-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-right {
    width: 100%;
    justify-content: space-between;
  }

  table {
    min-width: 620px;
  }
}




@media (max-width: 700px) {
  body.login-page {
    background-attachment: scroll;
    background-position: center top;
  }

  body.login-page .auth-card {
    backdrop-filter: none;
  }
}



body.dashboard-page {
  background:
    radial-gradient(circle at 5% -8%, rgba(30, 184, 217, 0.3), rgba(15, 31, 57, 0.98) 45%),
    radial-gradient(circle at 96% 0%, rgba(223, 91, 63, 0.26), rgba(12, 22, 42, 0.9) 43%),
    linear-gradient(180deg, #0d1b34, #122744 58%, #0c1d36);
}

body.dashboard-page .mdt-nav {
  background: rgba(22, 35, 63, 0.9);
  border-color: rgba(99, 185, 221, 0.34);
}

body.dashboard-page .panel {
  background: rgba(21, 35, 65, 0.9);
  border-color: rgba(90, 173, 208, 0.28);
}

body.dashboard-page .panel.alt {
  background: rgba(24, 40, 73, 0.92);
}

body.dashboard-page .badge {
  border-color: rgba(245, 195, 93, 0.72);
  color: #ffe9c0;
  background: rgba(43, 32, 26, 0.44);
}

body.dashboard-page .mdt-links a.active,
body.dashboard-page .mdt-links a:hover {
  border-color: rgba(100, 190, 222, 0.42);
  background: rgba(35, 183, 215, 0.16);
}

body.dashboard-page input,
body.dashboard-page select,
body.dashboard-page textarea {
  background: rgba(16, 31, 58, 0.95);
  border-color: rgba(100, 178, 212, 0.34);
}

body.dashboard-page button {
  background: linear-gradient(180deg, #f5c35d, #e89231);
  border-color: rgba(246, 205, 129, 0.55);
  color: #2b1708;
}

body.dashboard-page button.secondary {
  background: rgba(20, 56, 90, 0.94);
  color: #e6f8ff;
}

body.dashboard-page button.danger {
  background: linear-gradient(180deg, #ee7358, #c44636);
  color: #2a0d09;
}

body.dashboard-page th,
body.dashboard-page td {
  border-bottom-color: rgba(101, 180, 214, 0.24);
}

body.dashboard-page th {
  color: #d7ebff;
}

.actions-inline {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.actions-inline button {
  width: auto;
  min-width: 110px;
}

.user-inline-input {
  min-width: 170px;
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: none;
}
.delivery-page {
  background:
    radial-gradient(circle at 88% 0%, rgba(245, 195, 93, 0.24), rgba(17, 35, 65, 0.96) 45%),
    radial-gradient(circle at 8% -8%, rgba(30, 184, 217, 0.22), rgba(16, 31, 57, 0.92) 48%),
    linear-gradient(180deg, #0e1f3a, #133052 58%, #112846);
  color: #f4f7ff;
}

.delivery-page button {
  background: linear-gradient(180deg, #f5c35d, #e9902f);
  border-color: rgba(246, 210, 137, 0.62);
  color: #251306;
}

.delivery-page button.secondary {
  background: rgba(20, 56, 90, 0.96);
  border-color: rgba(118, 194, 222, 0.44);
  color: #e8f8ff;
}

.delivery-page th {
  color: #d7e5ff;
}

.delivery-page input,
.delivery-page select,
.delivery-page textarea {
  background: rgba(18, 42, 74, 0.94);
  border-color: rgba(118, 191, 220, 0.45);
  color: #eff5ff;
}

.delivery-shell {
  width: min(520px, 96vw);
  margin: 0 auto;
  padding: 0.72rem 0.36rem 1.5rem;
  display: grid;
  gap: 0.72rem;
}

.delivery-topbar,
.delivery-panel,
.delivery-hero,
.delivery-quick-grid,
.delivery-tiles-grid {
  border: 1px solid rgba(104, 183, 217, 0.32);
  background: linear-gradient(165deg, rgba(21, 43, 77, 0.97), rgba(19, 37, 69, 0.95));
  border-radius: 14px;
}

.delivery-topbar {
  padding: 0.62rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.62rem;
}

.delivery-brandline {
  display: grid;
  gap: 0.42rem;
}

.delivery-brand {
  font-size: 0.84rem;
  color: #d6edff;
}

.delivery-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.delivery-links a {
  border-radius: 8px;
  border: 1px solid rgba(117, 193, 220, 0.34);
  background: rgba(17, 45, 75, 0.9);
  color: #dff4ff;
  font-size: 0.8rem;
  padding: 0.22rem 0.52rem;
}

.delivery-links a.active {
  border-color: rgba(245, 195, 93, 0.72);
  color: #ffe1a2;
}

.delivery-logout {
  width: auto;
  min-width: 128px;
  white-space: nowrap;
}

.delivery-hero {
  padding: 0.86rem;
  display: grid;
  gap: 0.72rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(245, 195, 93, 0.45), rgba(223, 91, 63, 0.26) 42%, rgba(20, 42, 76, 0.9) 75%),
    linear-gradient(175deg, rgba(30, 184, 217, 0.16), rgba(20, 42, 76, 0.95));
  border-color: rgba(245, 195, 93, 0.48);
}

.delivery-hero h1 {
  font-size: 1.28rem;
  margin-bottom: 0.32rem;
}

.hero-stats-grid {
  display: grid;
  gap: 0.52rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-chip {
  border: 1px solid rgba(102, 183, 216, 0.34);
  border-radius: 10px;
  background: rgba(15, 40, 72, 0.78);
  padding: 0.48rem;
  display: grid;
  gap: 0.2rem;
}

.hero-chip small {
  color: #c0d7ef;
  font-size: 0.7rem;
}

.hero-chip strong {
  color: #ffe7bc;
  font-size: 1.06rem;
}

.delivery-quick-grid {
  padding: 0.62rem;
  display: grid;
  gap: 0.52rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.delivery-quick-grid button,
.quick-link {
  border-radius: 11px;
  border: 1px solid rgba(132, 161, 224, 0.38);
  background: rgba(20, 33, 64, 0.94);
  color: #edf2ff;
  min-height: 52px;
  display: grid;
  place-items: center;
  font-weight: 600;
  text-align: center;
}

.missions-link {
  position: relative;
  gap: 0.35rem;
}

.missions-link.with-alert {
  border-color: rgba(223, 91, 63, 0.7);
  box-shadow: 0 0 0 1px rgba(223, 91, 63, 0.26) inset;
}

.missions-alert-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #f07658, #cb4433);
  border: 1px solid rgba(255, 187, 173, 0.58);
  color: #fff5f2;
  font-size: 0.74rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.quick-link:hover {
  border-color: rgba(243, 182, 79, 0.66);
  color: #ffe3b0;
}

.delivery-panel {
  padding: 0.72rem;
}

.delivery-panel h2 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
  color: #f3f7ff;
}

.delivery-panel h3 {
  font-size: 0.92rem;
  margin: 0.78rem 0 0.45rem;
}

.delivery-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.45rem;
}

.badge-chip {
  width: auto;
  background: rgba(23, 33, 63, 0.95);
  color: #f4f7ff;
  border-color: rgba(125, 152, 216, 0.45);
  padding: 0.26rem 0.56rem;
}

.badge-grid {
  display: grid;
  gap: 0.42rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.badge-pill {
  border: 1px solid rgba(133, 161, 226, 0.34);
  background: rgba(20, 33, 64, 0.9);
  border-radius: 10px;
  min-height: 54px;
  padding: 0.38rem;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 0.18rem;
  font-size: 0.72rem;
}

.badge-pill.earned {
  border-color: rgba(246, 180, 77, 0.55);
  box-shadow: 0 0 0 1px rgba(246, 180, 77, 0.14) inset;
}

.badge-pill.locked {
  border-color: rgba(103, 123, 168, 0.34);
  background: rgba(16, 24, 45, 0.86);
}

.badge-pill.muted-badge {
  grid-column: 1 / -1;
  color: #b4c3e7;
}

.badge-icon {
  font-size: 0.64rem;
  color: #ffdb9f;
}

.badge-title {
  font-weight: 700;
}

.badge-goal {
  color: #9db0dd;
  font-size: 0.65rem;
  line-height: 1.15;
}

.badge-pill.earned .badge-goal {
  color: #c8e8d8;
}

.delivery-tiles-grid {
  padding: 0.62rem;
  display: grid;
  gap: 0.52rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tile {
  border: 1px solid rgba(130, 159, 224, 0.35);
  border-radius: 10px;
  padding: 0.55rem;
  display: grid;
  gap: 0.2rem;
  background: rgba(20, 33, 63, 0.88);
}

.tile small {
  color: #aebde4;
  font-size: 0.72rem;
}

.tile strong {
  font-size: 1.14rem;
  color: #ffd394;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  color: #adc0ea;
  font-size: 0.8rem;
}

.progress-bar {
  margin-top: 0.6rem;
  border-radius: 999px;
  height: 10px;
  background: rgba(13, 22, 45, 0.8);
  border: 1px solid rgba(125, 151, 213, 0.32);
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #f7aa3f, #ffd37f);
}

.delivery-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.42rem;
}

.delivery-list li {
  border: 1px solid rgba(126, 154, 219, 0.33);
  border-radius: 10px;
  background: rgba(17, 28, 56, 0.9);
  padding: 0.45rem 0.55rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.delivery-list li strong {
  display: block;
  color: #f6f8ff;
  font-size: 0.86rem;
}

.delivery-list li small {
  color: #9fb3df;
  font-size: 0.74rem;
}

.history-right {
  text-align: right;
  display: grid;
  gap: 0.12rem;
}

.proof-link {
  font-size: 0.75rem;
  color: #ffd18a;
}

.proof-link:hover {
  color: #ffe2b8;
}

.empty-row {
  color: #9ab0df;
  justify-content: flex-start;
}

.ranking-grid {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ranking-item {
  border: 1px solid rgba(127, 155, 220, 0.34);
  border-radius: 10px;
  background: rgba(20, 32, 62, 0.88);
  display: grid;
  gap: 0.15rem;
  text-align: center;
  padding: 0.52rem 0.3rem;
}

.ranking-item span {
  color: #ffcf88;
  font-weight: 700;
}

.ranking-item strong {
  font-size: 0.82rem;
}

.ranking-item small {
  color: #9eb2df;
}

.ranking-item.mine {
  border-color: rgba(248, 179, 67, 0.72);
  box-shadow: 0 0 0 1px rgba(248, 179, 67, 0.25) inset;
}

.delivery-page table {
  min-width: 0;
}

.delivery-page th,
.delivery-page td {
  border-bottom-color: rgba(125, 154, 219, 0.3);
}

.vehicles-grid {
  display: grid;
  gap: 0.46rem;
}

.vehicle-card {
  border: 1px solid rgba(128, 157, 221, 0.36);
  border-radius: 10px;
  background: rgba(19, 32, 61, 0.88);
  padding: 0.5rem;
  display: grid;
  gap: 0.16rem;
}

.vehicle-card small {
  color: #9eb2df;
}

.absence-weeks-grid {
  display: grid;
  gap: 0.36rem;
  margin-bottom: 0.58rem;
}

.absence-week-option {
  display: flex;
  gap: 0.52rem;
  align-items: center;
  border: 1px solid rgba(129, 158, 222, 0.34);
  border-radius: 10px;
  background: rgba(18, 30, 58, 0.88);
  padding: 0.42rem 0.54rem;
}

.absence-week-option input {
  width: auto;
  margin: 0;
}

.absence-week-option span {
  color: #e8eeff;
  font-size: 0.85rem;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  border-radius: 999px;
  border: 1px solid rgba(131, 158, 220, 0.42);
  padding: 0.17rem 0.44rem;
  font-size: 0.74rem;
}

.status-chip.done,
.status-chip.validee {
  color: #8bf0bb;
  border-color: rgba(121, 228, 176, 0.52);
}

.status-chip.planned,
.status-chip.en_attente {
  color: #ffd391;
  border-color: rgba(252, 189, 98, 0.48);
}

.status-chip.refusee {
  color: #ffb5bd;
  border-color: rgba(255, 122, 140, 0.52);
}

.dashboard-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 9, 19, 0.72);
  display: grid;
  place-items: center;
  z-index: 15;
  padding: 1rem;
}

.dashboard-modal.hidden {
  display: none;
}

.dashboard-modal-content {
  width: min(460px, 92vw);
  border: 1px solid rgba(131, 160, 223, 0.4);
  border-radius: 14px;
  background: linear-gradient(170deg, #1b2a50, #161f3f 65%, #151c38);
  padding: 0.86rem;
}

.dashboard-modal-content h3 {
  margin-bottom: 0.65rem;
}

@media (min-width: 760px) {
  .delivery-shell {
    width: min(1120px, 94vw);
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .delivery-topbar,
  .delivery-hero,
  .delivery-quick-grid,
  .delivery-panel,
  .delivery-tiles-grid {
    grid-column: 1 / -1;
  }

  .delivery-quick-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .delivery-tiles-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .badge-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .absence-weeks-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.dashboard-modal.hidden {
  display: none;
}

body.profile-page {
  background:
    radial-gradient(circle at 88% 0%, rgba(245, 195, 93, 0.22), rgba(14, 31, 57, 0.96) 44%),
    radial-gradient(circle at 8% -8%, rgba(30, 184, 217, 0.2), rgba(14, 31, 57, 0.92) 42%),
    linear-gradient(180deg, #0f2443, #133052 58%, #0f2846);
}

.profile-shell {
  width: min(860px, 94vw);
  margin: 1.2rem auto 2rem;
}

.profile-panel {
  border: 1px solid rgba(111, 190, 220, 0.36);
  border-radius: 16px;
  background: rgba(22, 42, 76, 0.92);
  padding: 1rem;
}

.profile-summary {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.profile-avatar-wrap {
  width: 128px;
  height: 128px;
  border: 3px solid rgba(245, 195, 93, 0.65);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(18, 39, 70, 0.92);
}

.profile-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-highlight {
  margin: 0;
  color: #f5cb76;
  font-size: 1.25rem;
  font-weight: 700;
}

.profile-separator {
  border: 0;
  border-top: 1px solid rgba(197, 212, 248, 0.32);
  margin: 1rem 0;
}

.profile-info-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.profile-info-grid small {
  display: block;
  color: #ccd8f5;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.profile-info-grid strong {
  color: #f2f6ff;
  font-size: 1.06rem;
  margin-top: 0.2rem;
  display: block;
}

@media (max-width: 720px) {
  .profile-summary {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* RED BROTHERHOOD red/black theme */
:root {
  --bg: #080808;
  --bg-panel: #141414;
  --bg-panel-alt: #1f1114;
  --line: rgba(214, 52, 69, 0.28);
  --text: #f8f1f2;
  --muted: #cfb3b8;
  --accent: #d63445;
  --accent-strong: #9d1624;
  --danger: #ff6370;
  --success: #47b96e;
  --warning: #f39a4a;
  --reunion-lagoon: #d63445;
  --reunion-volcano: #140607;
  --reunion-lava: #ff5b55;
  --reunion-sun: #ff9b69;
  --reunion-palm: #6e1f2a;
  --reunion-night: #12090b;
}

html,
body {
  background:
    radial-gradient(circle at 14% 12%, rgba(214, 52, 69, 0.18), rgba(10, 10, 11, 0.98) 46%),
    radial-gradient(circle at 88% -6%, rgba(255, 103, 94, 0.16), rgba(12, 11, 12, 0.96) 44%),
    linear-gradient(180deg, #060606, #0b090a 52%, #130709);
}

a:hover {
  color: #ffb6bf;
}

.auth-card,
.panel,
.card,
.profile-panel,
.delivery-topbar,
.delivery-panel,
.delivery-hero,
.delivery-quick-grid,
.delivery-tiles-grid,
.dashboard-modal-content {
  border-color: rgba(214, 52, 69, 0.28);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
}

.auth-card,
.panel,
.card {
  background: linear-gradient(160deg, rgba(25, 13, 15, 0.96), rgba(11, 10, 11, 0.96));
}

body.login-page {
  background:
    linear-gradient(155deg, rgba(8, 6, 7, 0.92), rgba(17, 7, 9, 0.8)),
    url('/assets/images/famille-palmer-login.png') center center / cover no-repeat fixed,
    radial-gradient(circle at 18% 16%, rgba(214, 52, 69, 0.3), rgba(8, 8, 8, 0.96) 54%);
}

body.login-page .auth-shell::before {
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 110, 98, 0.22), rgba(8, 6, 7, 0.2) 48%),
    radial-gradient(circle at 18% 78%, rgba(214, 52, 69, 0.2), rgba(8, 6, 7, 0.14) 44%),
    linear-gradient(180deg, rgba(5, 5, 6, 0.28), rgba(8, 5, 6, 0.72));
}

body.login-page .auth-card {
  border-color: rgba(214, 52, 69, 0.4);
  background: linear-gradient(160deg, rgba(22, 11, 13, 0.94), rgba(9, 8, 9, 0.94));
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.64),
    inset 0 0 0 1px rgba(255, 120, 120, 0.1);
}

.badge,
body.login-page .badge,
body.dashboard-page .badge {
  border-color: rgba(214, 52, 69, 0.62);
  color: #ffd7db;
  background: rgba(63, 14, 20, 0.5);
}

.mdt-nav,
body.dashboard-page .mdt-nav {
  background: rgba(18, 11, 12, 0.94);
  border-color: rgba(214, 52, 69, 0.3);
}

.mdt-links a.active,
.mdt-links a:hover,
body.dashboard-page .mdt-links a.active,
body.dashboard-page .mdt-links a:hover {
  border-color: rgba(214, 52, 69, 0.42);
  background: rgba(214, 52, 69, 0.14);
}

input,
select,
textarea,
button,
body.dashboard-page input,
body.dashboard-page select,
body.dashboard-page textarea,
.delivery-page input,
.delivery-page select,
.delivery-page textarea {
  border-color: rgba(214, 52, 69, 0.28);
  background: rgba(15, 10, 11, 0.96);
}

button,
body.dashboard-page button,
.delivery-page button {
  background: linear-gradient(180deg, #d63445, #8f1621);
  border-color: rgba(255, 135, 145, 0.38);
  color: #fff3f4;
}

button.secondary,
body.dashboard-page button.secondary,
.delivery-page button.secondary,
.badge-chip {
  background: rgba(33, 18, 20, 0.96);
  border-color: rgba(214, 52, 69, 0.3);
  color: #f7edef;
}

button.danger,
body.dashboard-page button.danger {
  background: linear-gradient(180deg, #ff6670, #bb2533);
  border-color: rgba(255, 159, 167, 0.5);
  color: #fff7f8;
}

th,
td,
body.dashboard-page th,
body.dashboard-page td,
.delivery-page th,
.delivery-page td {
  border-bottom-color: rgba(214, 52, 69, 0.16);
}

th,
body.dashboard-page th,
.delivery-page th {
  color: #f0d9dd;
}

body.dashboard-page {
  background:
    radial-gradient(circle at 5% -8%, rgba(214, 52, 69, 0.28), rgba(11, 10, 11, 0.98) 42%),
    radial-gradient(circle at 94% 2%, rgba(255, 103, 94, 0.18), rgba(15, 9, 10, 0.94) 40%),
    linear-gradient(180deg, #090809, #12090b 56%, #050505);
}

body.dashboard-page .panel,
body.dashboard-page .panel.alt {
  background: linear-gradient(160deg, rgba(26, 12, 15, 0.94), rgba(12, 10, 11, 0.94));
  border-color: rgba(214, 52, 69, 0.28);
}

.status.plan {
  color: #ffb2bb;
}

.status.run {
  color: #ffbc7c;
}

.delivery-page {
  background:
    radial-gradient(circle at 88% 0%, rgba(255, 108, 96, 0.18), rgba(16, 10, 11, 0.97) 42%),
    radial-gradient(circle at 8% -8%, rgba(214, 52, 69, 0.22), rgba(10, 8, 9, 0.94) 46%),
    linear-gradient(180deg, #090809, #14090c 58%, #050505);
  color: #f8f1f2;
}

.delivery-topbar,
.delivery-panel,
.delivery-hero,
.delivery-quick-grid,
.delivery-tiles-grid {
  border-color: rgba(214, 52, 69, 0.3);
  background: linear-gradient(165deg, rgba(25, 11, 13, 0.97), rgba(12, 10, 11, 0.96));
}

.delivery-brand,
.delivery-links a,
.hero-chip small,
.tile small,
.delivery-list li small,
.ranking-item small,
.badge-goal,
.progress-meta,
.absence-week-option span {
  color: #d9bec2;
}

.delivery-links a,
.quick-link,
.hero-chip,
.tile,
.badge-pill,
.ranking-item,
.delivery-list li,
.absence-week-option,
.vehicle-card {
  border-color: rgba(214, 52, 69, 0.28);
  background: rgba(21, 11, 13, 0.9);
}

.delivery-links a.active,
.quick-link:hover,
.ranking-item.mine,
.badge-pill.earned {
  border-color: rgba(255, 118, 118, 0.6);
  box-shadow: 0 0 0 1px rgba(214, 52, 69, 0.18) inset;
}

.delivery-hero {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 108, 96, 0.32), rgba(214, 52, 69, 0.16) 42%, rgba(20, 11, 12, 0.94) 72%),
    linear-gradient(175deg, rgba(214, 52, 69, 0.14), rgba(18, 10, 11, 0.96));
  border-color: rgba(255, 112, 112, 0.36);
}

.hero-chip strong,
.tile strong,
.ranking-item span,
.badge-icon,
.proof-link {
  color: #ffb0a0;
}

.missions-link.with-alert,
.missions-alert-badge,
.status-chip.refusee {
  border-color: rgba(255, 118, 118, 0.56);
}

.missions-alert-badge {
  background: linear-gradient(180deg, #ff6670, #b91f2e);
}

.progress-bar {
  background: rgba(22, 10, 12, 0.82);
  border-color: rgba(214, 52, 69, 0.24);
}

.progress-bar span {
  background: linear-gradient(90deg, #ff796b, #d63445);
}

body.profile-page {
  background:
    radial-gradient(circle at 88% 0%, rgba(255, 107, 95, 0.18), rgba(12, 9, 10, 0.96) 44%),
    radial-gradient(circle at 8% -8%, rgba(214, 52, 69, 0.22), rgba(12, 10, 11, 0.92) 42%),
    linear-gradient(180deg, #090809, #13090b 58%, #050505);
}

.profile-panel {
  border-color: rgba(214, 52, 69, 0.3);
  background: linear-gradient(160deg, rgba(24, 11, 13, 0.95), rgba(10, 9, 10, 0.94));
}

.profile-avatar-wrap {
  border-color: rgba(255, 115, 115, 0.6);
  background: rgba(19, 11, 12, 0.92);
}

.profile-highlight {
  color: #ffb3a5;
}

.profile-separator {
  border-top-color: rgba(214, 52, 69, 0.24);
}

.profile-info-grid small {
  color: #dcc6ca;
}
