/* Jokko Digital — Design System & Styles Globaux Premium */
:root {
  --navy: #0b1120;
  --navy-surface: #131b2e;
  --navy-card: rgba(22, 32, 54, 0.75);
  --navy-card-hover: rgba(30, 44, 75, 0.85);
  --line: rgba(70, 95, 145, 0.25);
  --line-strong: rgba(70, 95, 145, 0.45);
  --cream: #f8f6f0;
  --cream-card: #ffffff;
  --ink: #0d1527;
  --muted: #64748b;
  --soft: #94a3b8;
  --teal: #14b8a6;
  --teal-dark: #0d9488;
  --teal-glow: rgba(20, 184, 166, 0.35);
  --teal2: #2dd4bf;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --orange-glow: rgba(249, 115, 22, 0.35);
  --white: #f8fafc;
  --red: #ef4444;
  --red-bg: rgba(239, 68, 68, 0.15);
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.15);
  --font-title: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.18);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 25px rgba(20, 184, 166, 0.22);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-full: 9999px;
  --tr: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--navy);
  background-image: 
    radial-gradient(at 0% 0%, rgba(20, 184, 166, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(249, 115, 22, 0.12) 0px, transparent 45%),
    radial-gradient(at 50% 100%, rgba(30, 58, 110, 0.25) 0px, transparent 60%);
  background-attachment: fixed;
  color: var(--white);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .logo {
  font-family: var(--font-title);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

a {
  color: var(--teal2);
  text-decoration: none;
  transition: var(--tr);
}
a:hover {
  color: #fff;
}

button, input, select, textarea {
  font: inherit;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   Header & Barre supérieure
   ========================================================================== */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 28px;
  background: rgba(11, 17, 32, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.logo b {
  color: var(--orange);
}
.logo:hover {
  color: var(--teal2);
}

.tag-role {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: var(--r-full);
  background: rgba(20, 184, 166, 0.15);
  color: var(--teal2);
  border: 1px solid rgba(20, 184, 166, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tag-role::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.tag-role.admin {
  background: rgba(249, 115, 22, 0.15);
  color: var(--orange);
  border-color: rgba(249, 115, 22, 0.4);
}

.top .sp {
  flex: 1;
}

.top .nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top .who-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  font-size: 13px;
  color: var(--soft);
}
.top .who-badge strong {
  color: var(--white);
}

/* ==========================================================================
   Boutons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--tr);
  color: var(--navy);
  background: linear-gradient(135deg, var(--teal2), var(--teal));
  box-shadow: 0 4px 14px rgba(20, 184, 166, 0.25);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(20, 184, 166, 0.4);
  color: var(--navy);
}
.btn:active {
  transform: translateY(0);
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-orange {
  background: linear-gradient(135deg, #fb923c, var(--orange));
  color: #fff;
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.3);
}
.btn-orange:hover {
  box-shadow: 0 8px 28px rgba(249, 115, 22, 0.45);
  color: #fff;
}

.btn-line {
  background: rgba(255, 255, 255, 0.03);
  color: var(--white);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn-line:hover {
  border-color: var(--teal2);
  background: rgba(20, 184, 166, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  color: #fff;
}

.btn-red {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
  box-shadow: none;
}
.btn-red:hover {
  background: var(--red);
  color: #fff;
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.35);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
  border-radius: 8px;
}

/* ==========================================================================
   Mise en page des espaces
   ========================================================================== */
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.layout {
  display: grid;
  gap: 28px;
}
@media (min-width: 960px) {
  .layout {
    grid-template-columns: 240px 1fr;
  }
}

.side {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-content: flex-start;
}
@media (min-width: 960px) {
  .side {
    flex-direction: column;
    position: sticky;
    top: 90px;
  }
}
.side button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  color: var(--soft);
  padding: 12px 16px;
  border-radius: var(--r-md);
  cursor: pointer;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  transition: var(--tr);
}
.side button:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateX(3px);
}
.side button[aria-selected="true"] {
  color: #fff;
  background: linear-gradient(90deg, rgba(20, 184, 166, 0.22), rgba(20, 184, 166, 0.05));
  border-color: rgba(20, 184, 166, 0.45);
  box-shadow: inset 3px 0 0 var(--teal2);
}
.side .count {
  margin-left: auto;
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  border-radius: var(--r-full);
  padding: 2px 8px;
  box-shadow: 0 2px 8px var(--orange-glow);
}

.head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.head h1 {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
}
.head p {
  color: var(--soft);
  margin: 6px 0 0;
  font-size: 15px;
}

/* ==========================================================================
   Cartes & Glassmorphism
   ========================================================================== */
.card {
  background: var(--navy-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow-md);
  transition: var(--tr);
}
.card:hover {
  border-color: var(--line-strong);
}

.grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 720px) {
  .grid.g2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.kpis {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 24px;
}
.kpi {
  position: relative;
  overflow: hidden;
  border-left: 4px solid var(--c, var(--teal2));
  background: linear-gradient(135deg, rgba(255,255,255,0.03), transparent);
}
.kpi .v {
  font: 800 36px var(--font-title);
  color: #fff;
  line-height: 1.1;
  margin-bottom: 4px;
}
.kpi .l {
  color: var(--soft);
  font-size: 13px;
  font-weight: 500;
}
.kpi::after {
  content: "";
  position: absolute;
  right: -25px;
  top: -25px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--c, var(--teal));
  opacity: 0.12;
  filter: blur(14px);
  pointer-events: none;
}

.fade {
  animation: fadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Formulaires modernes
   ========================================================================== */
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--soft);
  margin: 14px 0 6px;
}
input, select, textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(11, 17, 32, 0.7);
  color: var(--white);
  font-size: 14px;
  transition: var(--tr);
}
input:focus, select:focus, textarea:focus {
  outline: 0;
  border-color: var(--teal2);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.2);
  background: rgba(15, 23, 42, 0.9);
}
.pw-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.pw-wrap input {
  padding-right: 46px;
  width: 100%;
}
.pw-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: var(--soft);
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--tr);
}
.pw-toggle:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}
.pw-toggle:focus-visible {
  outline: 2px solid var(--teal2);
}
/* 2FA Double Authentification */
.box-2fa {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px;
  margin: 16px 0;
  text-align: center;
}
.box-2fa .badge-device {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(249, 115, 22, 0.15);
  color: var(--orange);
  border: 1px solid rgba(249, 115, 22, 0.35);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--r-full);
  margin-bottom: 12px;
}
.box-2fa p {
  color: var(--soft);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 14px;
}
.code-input {
  font-family: var(--font-title);
  font-size: 26px !important;
  font-weight: 800 !important;
  letter-spacing: 8px !important;
  text-align: center !important;
  color: var(--teal2) !important;
  max-width: 240px;
  margin: 10px auto 14px !important;
  display: block;
}
.channels-choice {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
}
.channels-choice button {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--white);
  padding: 6px 14px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--tr);
}
.channels-choice button:hover {
  border-color: var(--teal2);
  background: rgba(20, 184, 166, 0.12);
}
.channels-choice button.active {
  background: linear-gradient(135deg, var(--teal2), var(--teal));
  color: var(--navy);
  border-color: transparent;
}
.hint-2fa {
  font-size: 12px;
  color: var(--soft);
  margin-top: 8px;
}
.demo-code-pill {
  display: inline-block;
  background: rgba(45, 212, 191, 0.15);
  border: 1px dashed var(--teal2);
  color: var(--teal2);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  margin-top: 8px;
  user-select: all;
}
input::placeholder, textarea::placeholder {
  color: rgba(148, 163, 184, 0.6);
}
textarea {
  min-height: 96px;
  resize: vertical;
}
select option {
  background: #131b2e;
  color: #fff;
}
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 400;
  color: var(--white);
  cursor: pointer;
  margin-top: 14px;
}
.check input {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--teal2);
  cursor: pointer;
}
.row {
  display: grid;
  gap: 0 16px;
}
@media (min-width: 640px) {
  .row {
    grid-template-columns: 1fr 1fr;
  }
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.err {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  font-size: 13px;
  min-height: 0;
  margin-top: 12px;
  display: none;
}
.err:not(:empty) {
  display: block;
}

/* ==========================================================================
   Tableaux de données
   ========================================================================== */
.tbl-wrap {
  overflow-x: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--navy-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 760px;
}
th {
  text-align: left;
  font-weight: 700;
  color: var(--soft);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 14px 18px;
  background: rgba(11, 17, 32, 0.85);
  border-bottom: 1px solid var(--line);
}
td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(70, 95, 145, 0.18);
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr {
  transition: background 0.15s;
}
tbody tr:hover {
  background: rgba(255, 255, 255, 0.035);
}
td small {
  color: var(--soft);
}
td select {
  padding: 6px 10px;
  font-size: 13px;
  width: auto;
  border-radius: var(--r-sm);
}
.toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.toolbar input, .toolbar select {
  width: auto;
  flex: 1;
  min-width: 180px;
}

/* ==========================================================================
   Pastilles de statut
   ========================================================================== */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.s-en_attente, .s-nouvelle {
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.35);
}
.s-publie, .s-client {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.s-refuse, .s-abandon {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}
.s-contactee, .s-essai {
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.35);
}
.s-attente_validation {
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.35);
}
.s-valide {
  background: rgba(20, 184, 166, 0.15);
  color: #2dd4bf;
  border: 1px solid rgba(20, 184, 166, 0.35);
}

/* ==========================================================================
   Fiches commerces (Espaces)
   ========================================================================== */
.shop {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.shop h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}
.shop .ph {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.shop .ph div {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
}
.shop .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.shop .ph div:hover img {
  transform: scale(1.06);
}
.shop .ph button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 0;
  background: rgba(15, 23, 42, 0.85);
  color: #f87171;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 14px;
  line-height: 1;
  transition: var(--tr);
}
.shop .ph button:hover {
  background: var(--red);
  color: #fff;
  transform: scale(1.15);
}
.shop .meta {
  color: var(--soft);
  font-size: 14px;
  line-height: 1.6;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips span {
  font-size: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: var(--r-full);
  color: var(--white);
}
.note-admin {
  font-size: 13px;
  background: rgba(239, 68, 68, 0.12);
  border-left: 3px solid var(--red);
  padding: 10px 14px;
  border-radius: 6px;
  color: #fecaca;
}
.empty {
  color: var(--soft);
  text-align: center;
  padding: 48px 24px;
  border: 2px dashed var(--line);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.02);
}

/* ==========================================================================
   Graphiques Dashboard
   ========================================================================== */
.bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 150px;
  padding-top: 15px;
  border-bottom: 1px solid var(--line);
}
.bars div {
  flex: 1;
  background: linear-gradient(180deg, var(--teal2), var(--teal));
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  position: relative;
  transition: height 0.4s ease;
  cursor: pointer;
}
.bars div:hover {
  background: linear-gradient(180deg, #fff, var(--teal2));
  filter: drop-shadow(0 0 6px var(--teal-glow));
}
.bars div:hover::after {
  content: attr(data-t);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: #fff;
  border: 1px solid var(--teal2);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.hbar {
  margin: 10px 0;
}
.hbar .t {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--soft);
  font-weight: 500;
}
.hbar .b {
  height: 8px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-top: 5px;
}
.hbar .b i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--orange), #fb923c);
  border-radius: var(--r-full);
  box-shadow: 0 0 8px var(--orange-glow);
}

/* ==========================================================================
   Écran de connexion & Inscription
   ========================================================================== */
.auth {
  min-height: calc(100vh - 75px);
  display: grid;
  place-items: center;
  padding: 40px 20px;
}
.auth .card {
  width: 100%;
  max-width: 460px;
  padding: 36px;
  border: 1px solid rgba(70, 95, 145, 0.35);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(20, 184, 166, 0.08);
}
.auth h1 {
  font-size: 30px;
  margin-bottom: 8px;
  color: #fff;
}
.auth p.sub {
  color: var(--soft);
  margin: 0 0 16px;
  font-size: 14px;
}
.tabs {
  display: flex;
  background: rgba(11, 17, 32, 0.85);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 4px;
  margin: 18px 0 12px;
}
.tabs button {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--soft);
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  transition: var(--tr);
}
.tabs button:hover {
  color: #fff;
}
.tabs button[aria-selected="true"] {
  background: linear-gradient(135deg, var(--teal2), var(--teal));
  color: var(--navy);
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

/* ==========================================================================
   Modale Premium
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(5, 9, 20, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 24px;
  animation: fadeIn 0.25s ease;
}
.modal .card {
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-lg), 0 0 50px rgba(0, 0, 0, 0.6);
}
.modal h2 {
  font-size: 24px;
  color: #fff;
  margin-bottom: 6px;
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: rgba(19, 27, 46, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--teal2);
  color: var(--white);
  padding: 14px 24px;
  border-radius: var(--r-full);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.5), 0 0 20px var(--teal-glow);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 80;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}
#toast::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--teal2);
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
}
#toast.show {
  transform: translateX(-50%) translateY(0);
}
#toast.bad {
  border-color: var(--red);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.5), 0 0 20px var(--red-bg);
}
#toast.bad::before {
  content: "✕";
  background: var(--red);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
