/* ─────────────────────────────────────────────────────────────
   Solv360 — Direction Artistique "MotherDuck"
   "Crayon-coded terminal on cream paper" — néo-brutaliste pur.
   Règles :
   - Typo unique JetBrains Mono partout
   - Fond papier crème #f4efea, cartes #ffffff, encre #383838
   - Jamais de noir pur (#000000), jamais de flou (blur:0)
   - Rayons 2px sur tous les composants (cartes, boutons, modales)
   - Ombres dures franches : -6px 6px 0 0 #383838
   - Bouton primaire : Bleu ciel #6fc2ff
   - Accents Web3 / Surlignages : Jaune canari #ffde00
   - Bordures sketch arc-en-ciel sur les cartes
   ───────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  /* Surfaces */
  --cream: #f4efea;       /* Fond général de l'application */
  --white: #ffffff;       /* Fond des cartes et conteneurs */
  --chalk: #f8f8f7;       /* Fond secondaire / inputs / code */
  --ice: #ebf9ff;         /* Fond des items actifs / sélectionnés */
  --notebook: #f9fbe7;    /* Fond notes / montants / blueprints */
  --blush: #fdedda;       /* Fond alertes / urgent */
  --sand: #eae5de;        /* Séparateurs et badges neutres */

  /* Encre & Traits */
  --ink: #383838;         /* Couleur unique du texte, traits et ombres */
  --pencil: #a1a1a1;      /* Texte secondaire / placeholders */
  --graphite: #7a7a7a;    /* Texte tertiaire / métriques */
  --silver: #c8c8c8;      /* Séparateurs fins */

  /* Accents */
  --sky: #6fc2ff;         /* Action principale / Bouton primaire */
  --canary: #ffde00;      /* Badges Web3 / Surlignages / Crypto */
  --duck: #ff9538;        /* Badges d'urgence / Bounties élevés */
  --cement: #54b4de;      /* Accent technique */
  --green: #2eb872;       /* Validation séquestre & Sécurité A+ */

  /* Palette Arc-en-ciel Sketch (bordures supérieures des cartes) */
  --sk-0: #f38e84;
  --sk-1: #f5b161;
  --sk-2: #38c1b0;
  --sk-3: #b291de;
  --sk-4: #b3c419;
  --sk-5: #7597ee;
  --sk-6: #84a6bc;
  --sk-7: #e1c427;

  /* Structure & Géométrie */
  --font: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;
  --track: 0.02em;
  --r: 2px;
  --shadow: -6px 6px 0 0 var(--ink);
  --shadow-sm: -3px 3px 0 0 var(--ink);
  --shadow-lg: -10px 10px 0 0 var(--ink);
  --line: 2px solid var(--ink);
  --line-thin: 1.5px solid var(--ink);

  --dur: 150ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Reset & Bases ─────────────────────────────────────────── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 13.5px;
  line-height: 1.6;
  letter-spacing: var(--track);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}

::selection {
  background: var(--canary);
  color: var(--ink);
}

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-track {
  background: var(--cream);
}
::-webkit-scrollbar-thumb {
  background: var(--silver);
  border: 2px solid var(--cream);
  border-radius: var(--r);
}

/* ── Typographie ───────────────────────────────────────────── */
.eyebrow {
  font-size: 11px;
  line-height: 1.2;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.muted { color: var(--graphite); }
.mono { font-family: var(--font); }

.display {
  font-size: 46px;
  line-height: 1.05;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.heading {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 500;
}

/* ── Layout Conteneur ──────────────────────────────────────── */
.container {
  max-width: 1220px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Status Pulse Dots ─────────────────────────────────────── */
.pulse {
  display: inline-block;
  width: 8px !important;
  height: 8px !important;
  min-width: 8px !important;
  min-height: 8px !important;
  padding: 0 !important;
  box-sizing: content-box;
  flex-shrink: 0;
  background: var(--duck);
  border: 1.5px solid var(--ink);
  border-radius: 50% !important;
}
.pulse.pulse-ok { background: var(--green); }
.pulse.pulse-canary { background: var(--canary); }
.pulse.pulse-sky { background: var(--sky); }
.pulse.pulse-idle { background: var(--white); }

/* ── Navigation & Header ───────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: var(--line);
}
.nav-inner {
  max-width: 1560px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap !important;
}

/* ── Brand Wordmark & Odomètre ─────────────────────────────── */
.wordmark {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
}
.terminal-prompt {
  font-size: 20px;
  font-weight: 800;
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
}
.term-gt {
  color: var(--duck);
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), color 180ms var(--ease);
}
.term-cur {
  color: var(--sky);
  animation: term-cur-blink 1s steps(2, start) infinite;
}
@keyframes term-cur-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.brand-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.brand-solv {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--ink);
  transition: transform 180ms var(--ease);
}

.marker-highlight {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
}
.marker-ink {
  position: absolute;
  bottom: 0px;
  left: -2px;
  right: -2px;
  height: 9px;
  background: var(--canary);
  z-index: 0;
  border-radius: 1px;
  transform: rotate(-1.5deg);
  transition: height 180ms cubic-bezier(0.22, 1, 0.36, 1), background-color 180ms var(--ease);
}
.marker-digits {
  position: relative;
  z-index: 1;
  font-weight: 800;
  font-size: 14px;
  display: inline-flex;
}

/* Odomètre mécanique Solv360 (3-6-0) */
.odometer-reel {
  width: 12px;
  height: 20px;
  overflow: hidden;
  position: relative;
  font-variant-numeric: tabular-nums;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
}
.odometer-reel + .odometer-reel {
  border-left: 1px dashed rgba(56, 56, 56, 0.3);
}
.odometer-strip {
  display: flex;
  flex-direction: column;
  will-change: transform;
}
.odometer-strip > span {
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
@keyframes odometer-spin {
  0% { transform: translateY(0); }
  100% { transform: translateY(-160px); }
}
.wordmark:hover .odometer-reel:nth-child(1) .odometer-strip,
.wordmark.is-animating .odometer-reel:nth-child(1) .odometer-strip {
  animation: odometer-spin 650ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.wordmark:hover .odometer-reel:nth-child(2) .odometer-strip,
.wordmark.is-animating .odometer-reel:nth-child(2) .odometer-strip {
  animation: odometer-spin 800ms cubic-bezier(0.16, 1, 0.3, 1) 50ms forwards;
}
.wordmark:hover .odometer-reel:nth-child(3) .odometer-strip,
.wordmark.is-animating .odometer-reel:nth-child(3) .odometer-strip {
  animation: odometer-spin 950ms cubic-bezier(0.16, 1, 0.3, 1) 100ms forwards;
}

.wordmark:hover .term-gt,
.wordmark.is-animating .term-gt {
  transform: translateX(3px);
  color: var(--canary);
}
.wordmark:hover .term-cur,
.wordmark.is-animating .term-cur {
  color: var(--duck);
}
.wordmark:hover .brand-solv,
.wordmark.is-animating .brand-solv {
  transform: translateY(-1px);
}
.wordmark:hover .marker-ink,
.wordmark.is-animating .marker-ink {
  height: 20px;
  background: var(--canary);
}
.wordmark:active {
  transform: translateY(1px);
}

@keyframes easter-egg-pop {
  0% { transform: scale(1); }
  20% { transform: scale(1.15) rotate(-3deg); }
  40% { transform: scale(1.10) rotate(3deg); }
  60% { transform: scale(1.12) rotate(-2deg); }
  80% { transform: scale(1.04) rotate(1deg); }
  100% { transform: scale(1) rotate(0deg); }
}
.wordmark.is-easter-egg {
  animation: easter-egg-pop 650ms cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* ── Nav Actions & Currency Switcher ───────────────────────── */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: nowrap !important;
}

/* Toggle EUR / USDC */
.currency-toggle {
  display: inline-flex;
  border: var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.currency-btn {
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--white);
  color: var(--ink);
  white-space: nowrap !important;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.currency-btn + .currency-btn {
  border-left: var(--line);
}
.currency-btn:hover {
  background: var(--chalk);
}
.currency-btn.is-active {
  background: var(--canary);
  color: var(--ink);
}

/* Toggle Langues FR / EN / ES */
.lang-toggle {
  display: inline-flex;
  border: var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.lang-btn {
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--white);
  color: var(--ink);
  white-space: nowrap !important;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.lang-btn + .lang-btn {
  border-left: var(--line);
}
.lang-btn:hover {
  background: var(--chalk);
}
.lang-btn.is-active {
  background: var(--canary);
  color: var(--ink);
}

/* ── Boutons Néo-Brutalistes ───────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border: var(--line);
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: var(--shadow);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
  user-select: none;
}
.btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
/* Press into the shadow */
.btn:hover:not(:disabled) {
  transform: translate(-4px, 4px);
  box-shadow: -2px 2px 0 0 var(--ink);
}
.btn:active:not(:disabled) {
  transform: translate(-6px, 6px);
  box-shadow: 0 0 0 0 var(--ink);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Bouton Primaire (Bleu Ciel #6fc2ff) */
.btn-primary {
  background: var(--sky);
  color: var(--ink);
}
.btn-primary:hover:not(:disabled) {
  background: #5bb6f7;
}

/* Bouton Secondaire (Blanc #ffffff) */
.btn-secondary {
  background: var(--white);
  color: var(--ink);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--ice);
}

/* Bouton Web3 / Wallet (Jaune #ffde00) */
.btn-wallet {
  background: var(--canary);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  padding: 8px 14px;
  font-size: 12px;
}
.btn-wallet:hover:not(:disabled) {
  background: #f0cf00;
  transform: translate(-3px, 3px);
  box-shadow: 0 0 0 0 var(--ink);
}
.btn-wallet.is-connected {
  background: var(--chalk);
  border-color: var(--ink);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 11.5px;
  box-shadow: var(--shadow-sm);
}
.btn-sm:hover:not(:disabled) {
  transform: translate(-3px, 3px);
  box-shadow: 0 0 0 0 var(--ink);
}
.btn-icon {
  padding: 6px 8px;
}

/* ── Badges & Tags ─────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid var(--ink);
  border-radius: var(--r);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--white);
  flex-shrink: 0;
  line-height: 1.3;
}
.tag.mode-1to1 { background: var(--chalk); }
.tag.mode-race { background: var(--canary); }
.tag.mode-pool { background: var(--notebook); }

.tag.status-open { background: var(--sky); }
.tag.status-claimed { background: var(--blush); }
.tag.status-in_review { background: var(--canary); }
.tag.status-completed { background: #d4f7dc; color: #166534; border-color: #166534; }

.tag.vis-public { background: var(--ice); }
.tag.vis-private { background: #fae8ff; color: #6b21a8; border-color: #6b21a8; }

.tag.badge-audited {
  background: #d4f7dc;
  color: #166534;
  border-color: #166534;
}

/* ── Hero Section ──────────────────────────────────────────── */
.hero {
  padding-top: 60px;
  padding-bottom: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--canary);
  border: var(--line-thin);
  border-radius: var(--r);
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
}
.hero .lead {
  font-size: 17px;
  line-height: 1.5;
  max-width: 680px;
  color: var(--ink);
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 4px;
}

/* ── Marquee Néo-Brutaliste ────────────────────────────────── */
.marquee {
  margin-top: 50px;
  margin-bottom: 50px;
  background: var(--canary);
  border-top: var(--line);
  border-bottom: var(--line);
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 40px;
  padding: 13px 0;
  animation: marquee 32s linear infinite;
}
.marquee-track span {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ── Frame Métriques (solv360.live) ────────────────────────── */
.frame {
  background: var(--white);
  border: var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.frame-bar {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: var(--line);
  background: var(--chalk);
  flex-shrink: 0;
}
.frame-dots {
  display: flex;
  gap: 6px;
}
.frame-dots span {
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
}
.frame-dots span:nth-child(1) { background: var(--sk-0); }
.frame-dots span:nth-child(2) { background: var(--canary); }
.frame-dots span:nth-child(3) { background: var(--green); }

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, 1fr);
  flex: 1;
}
.metric {
  padding: 16px 18px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  background: var(--white);
}
.metric:nth-child(4n) { border-right: none; }
.metrics > .metric:nth-last-child(-n+4) { border-bottom: none; }

.metric-value {
  font-size: 26px;
  line-height: 1.15;
  font-weight: 300;
}
.metric-value small {
  font-size: 12px;
  color: var(--graphite);
  margin-left: 4px;
}
.metric-note {
  font-size: 11px;
  color: var(--graphite);
  line-height: 1.35;
}

/* ── Split Hero Grid ───────────────────────────────────────── */
.split-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: stretch;
  margin-bottom: 20px;
}

/* Carte mise en avant (Spotlight) */
.spotlight-card {
  background: var(--canary);
  border: var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  position: relative;
}
.spotlight-card .eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
}
.spotlight-card .heading {
  font-size: 19px;
  line-height: 1.35;
  font-weight: 600;
}
.spotlight-card p {
  font-size: 13px;
  line-height: 1.5;
}
.spotlight-card .divider {
  height: 1.5px;
  background: var(--ink);
}
.spotlight-card .kv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.spotlight-card .kv-grid div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.spotlight-card .kv-grid b {
  font-weight: 600;
  font-size: 13px;
}

/* ── Radar Toolbar & Filtres ───────────────────────────────── */
.toolbar {
  position: sticky;
  top: 66px;
  z-index: 40;
  background: var(--white);
  border-top: var(--line);
  border-bottom: var(--line);
  padding: 12px 0;
  margin-top: 40px;
}
.toolbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

/* Onglets Catégories */
.tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px;
  max-width: 100%;
}
.tab {
  padding: 6px 12px;
  border: 1.5px solid transparent;
  border-radius: var(--r);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.tab:hover {
  border-color: var(--ink);
}
.tab.is-active {
  background: var(--sky);
  border-color: var(--ink);
}
.tab .count {
  margin-left: 6px;
  color: var(--graphite);
}
.tab.is-active .count {
  color: var(--ink);
}

/* Contrôles secondaires */
.controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.field {
  height: 36px;
  padding: 0 12px;
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
  font-size: 12.5px;
  transition: border-color var(--dur) var(--ease);
}
.field:focus {
  outline: none;
  border-color: var(--sky);
  border-width: 2px;
}
.field::placeholder {
  color: var(--pencil);
}
select.field {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 30px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23383838' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.search-wrap {
  position: relative;
}
.search-wrap .field {
  width: 250px;
  padding-right: 32px;
}
.search-wrap kbd {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font);
  font-size: 10px;
  font-weight: 700;
  background: var(--canary);
  border: 1px solid var(--ink);
  border-radius: var(--r);
  padding: 0 5px;
  line-height: 16px;
}

/* ── Grille des Cartes de Défis ────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 24px;
  padding: 32px 0 100px 0;
}

/* Carte de Défi */
.card {
  --sketch: var(--ink);
  background: var(--white);
  border: var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  position: relative;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
/* Bordure supérieure sketch arc-en-ciel */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--sketch);
}
.card:hover {
  transform: translate(-3px, 3px);
  box-shadow: -3px 3px 0 0 var(--ink);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding-top: 4px;
}
.card-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.card-price-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  background: var(--notebook);
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
  padding: 4px 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  box-shadow: -2px 2px 0 0 var(--ink);
  white-space: nowrap;
}
.card-price-badge small {
  font-size: 10px;
  color: var(--graphite);
}

.card-title {
  font-size: 15.5px;
  line-height: 1.4;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
  transition: color var(--dur) var(--ease);
  min-height: 44px;
}
.card-title:hover {
  color: var(--cement);
}

.card-desc {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--graphite);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 56px;
}

.card-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: var(--chalk);
  border: 1px dashed var(--ink);
  border-radius: var(--r);
  font-size: 11px;
}
.card-meta-bar span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.card-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1.5px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* ── Fenêtres Modales ──────────────────────────────────────── */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(56, 56, 56, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms var(--ease);
}
.overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.panel {
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  background: var(--white);
  border: var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(12px);
  opacity: 0;
  transition: transform 250ms var(--ease), opacity 250ms var(--ease);
}
.overlay.is-open .panel {
  transform: translateY(0);
  opacity: 1;
}
.panel.sm { max-width: 540px; }
.panel.md { max-width: 720px; }

.panel-head {
  padding: 18px 24px;
  background: var(--cream);
  border-bottom: var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.panel-head h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  margin-top: 6px;
}

.panel-subnav {
  display: flex;
  gap: 0;
  border-bottom: var(--line);
  background: var(--chalk);
  overflow-x: auto;
}
.panel-tab {
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: transparent;
  border-right: 1.5px solid var(--ink);
  transition: background-color var(--dur) var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.panel-tab:hover {
  background: var(--cream);
}
.panel-tab.is-active {
  background: var(--white);
  box-shadow: inset 0 -2px 0 var(--sky);
}

.panel-body {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--white);
}

.panel-foot {
  padding: 16px 24px;
  border-top: var(--line);
  background: var(--chalk);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Blocs de Contenu Modaux ───────────────────────────────── */
.block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.block-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.well {
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.6;
}
.well.code {
  background: var(--ink);
  color: var(--cream);
  font-size: 12px;
  white-space: pre-wrap;
  max-height: 280px;
  overflow: auto;
}

/* ── Sandbox Interactive Runner ────────────────────────────── */
.sandbox-box {
  background: var(--chalk);
  border: var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.sandbox-topbar {
  background: var(--ink);
  color: var(--white);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}
.sandbox-dots {
  display: flex;
  gap: 5px;
}
.sandbox-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--silver);
}
.sandbox-inner {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sandbox-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.sandbox-table th {
  background: var(--sand);
  border: 1px solid var(--ink);
  padding: 6px 10px;
  text-align: left;
  font-weight: 600;
}
.sandbox-table td {
  border: 1px solid var(--silver);
  padding: 6px 10px;
  background: var(--white);
}

/* ── Rapport de Sécurité Certified A+ ──────────────────────── */
.audit-stamp-card {
  background: #f0fdf4;
  border: 2px solid #166534;
  border-radius: var(--r);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: -4px 4px 0 0 #166534;
}
.audit-grade-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background: #166534;
  color: #ffffff;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}
.audit-grade-badge span {
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.audit-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.audit-item {
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.audit-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

/* ── Escrow Timeline ───────────────────────────────────────── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 2px solid var(--ink);
  margin-left: 12px;
  padding-left: 16px;
}
.timeline-item {
  position: relative;
  padding-bottom: 20px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--white);
}
.timeline-item.done::before {
  background: var(--green);
}
.timeline-item.active::before {
  background: var(--duck);
  animation: pulse-ring 1.5s infinite;
}
@keyframes pulse-ring {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

.timeline-title {
  font-weight: 600;
  font-size: 13px;
}
.timeline-time {
  font-size: 11px;
  color: var(--graphite);
}

/* ── Formulaire Publier un Défi ────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group.full {
  grid-column: 1 / -1;
}
.form-group label {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
}

/* Assistant IA Box */
.ai-assistant-box {
  background: var(--chalk);
  border: 1.5px dashed var(--ink);
  border-radius: var(--r);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ai-assistant-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Wallet Connect Provider List ──────────────────────────── */
.wallet-providers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.wallet-card {
  background: var(--white);
  border: var(--line);
  border-radius: var(--r);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.wallet-card:hover {
  background: var(--canary);
  transform: translate(-3px, 3px);
  box-shadow: 0 0 0 0 var(--ink);
}
.wallet-icon {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}

/* ── Toasts ────────────────────────────────────────────────── */
.toasts {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 440px;
  background: var(--white);
  border: var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 250ms var(--ease), transform 250ms var(--ease);
}
.toast .pulse { margin-top: 5px; }
.toast-msg { flex: 1; }
.toast.is-open { opacity: 1; transform: translateY(0); }
.toast.toast-easter-egg {
  background: var(--chalk);
  border: 2px solid var(--ink);
  box-shadow: -5px 5px 0 0 var(--ink);
}

/* ── Navigation Links (Tabs Individuels Néo-Brutalistes) ────── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  white-space: nowrap !important;
}
.nav-link {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 11px;
  border: 1.5px solid transparent;
  border-radius: var(--r);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap !important;
  line-height: 1;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.nav-link:hover {
  background: var(--chalk);
  border-color: var(--ink);
}
.nav-link.is-active {
  background: var(--sky);
  border-color: var(--ink);
  box-shadow: -2px 2px 0 0 var(--ink);
}
.nav-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Gestion dynamique des libellés responsive (1 ligne garantie) */
.nav-sec-short,
.btn-text-short {
  display: none;
}
.nav-sec-full,
.btn-text-full {
  display: inline;
}

/* Nav Mobile Toggle & Drawer */
.nav-mobile-toggle {
  display: none;
}
.mobile-nav-drawer {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 2px solid var(--ink);
  padding: 16px 24px 20px;
  box-shadow: -4px 6px 0 0 var(--ink);
  z-index: 99;
}
.mobile-nav-drawer.is-open {
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: slideDownNav 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideDownNav {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1.5px dashed var(--silver);
  margin-bottom: 4px;
}
.mobile-nav-drawer .nav-link {
  padding: 11px 16px;
  font-size: 13px;
  border: 1.5px solid var(--ink);
  background: var(--chalk);
  box-shadow: -2px 2px 0 0 var(--ink);
  justify-content: flex-start;
  width: 100%;
}
.mobile-nav-drawer .nav-link:hover {
  background: var(--white);
  transform: translate(-1px, 1px);
}
.mobile-nav-drawer .nav-link.is-active {
  background: var(--sky);
  box-shadow: -3px 3px 0 0 var(--ink);
}

/* ── SPA Views Container ───────────────────────────────────── */
.app-view {
  display: none;
}
.app-view.is-active {
  display: block;
  animation: viewFadeIn 220ms var(--ease);
}
@keyframes viewFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── View Hero Header ──────────────────────────────────────── */
.view-hero {
  padding-top: 48px;
  padding-bottom: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.view-hero .display {
  font-size: 38px;
}
.view-hero .lead {
  font-size: 16px;
  max-width: 680px;
  color: var(--graphite);
}

/* ── Solv360 Hub Cards ─────────────────────────────────────── */
.hub-card {
  background: var(--white);
  border: var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.hub-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--sketch, var(--sky));
}
.hub-card:hover {
  transform: translate(-3px, 3px);
  box-shadow: -3px 3px 0 0 var(--ink);
}
.hub-card-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}
.hub-metrics-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 12px;
  background: var(--chalk);
  border: 1px dashed var(--ink);
  border-radius: var(--r);
  font-size: 11.5px;
  flex-wrap: wrap;
}
.hub-feature-bounties {
  background: var(--notebook);
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hub-fb-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  background: var(--white);
  border: 1px solid var(--ink);
  border-radius: var(--r);
  font-size: 12px;
}

/* ── Community Pools Cards ─────────────────────────────────── */
.pool-card {
  background: var(--white);
  border: var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.pool-card:hover {
  transform: translate(-3px, 3px);
  box-shadow: -3px 3px 0 0 var(--ink);
}
.pool-progress-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pool-progress-track {
  height: 12px;
  background: var(--chalk);
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
  position: relative;
  overflow: hidden;
}
.pool-progress-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  background: var(--canary);
  border-right: 1.5px solid var(--ink);
  transition: width 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.pool-progress-fill.funded {
  background: var(--green);
}
.pool-stats-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
}

/* ── Builder Dashboard & Terminal Runner ───────────────────── */
.builder-console {
  background: var(--white);
  border: var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.builder-profile-bar {
  padding: 16px 22px;
  background: var(--notebook);
  border-bottom: var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.terminal-runner-box {
  background: #1e1e1e;
  color: #d4d4d4;
  border: var(--line);
  border-radius: var(--r);
  padding: 16px;
  font-family: var(--font);
  font-size: 12px;
  line-height: 1.6;
  max-height: 320px;
  overflow-y: auto;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
}
.terminal-runner-line {
  margin-bottom: 4px;
}
.terminal-runner-line.success { color: #4ade80; }
.terminal-runner-line.info { color: #6fc2ff; }
.terminal-runner-line.warn { color: #facc15; }

/* ── Sécurité & Infographie Dual-Rail ──────────────────────── */
.flowchart-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.flowchart-step-card {
  background: var(--white);
  border: var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.flowchart-step-num {
  position: absolute;
  top: -12px;
  left: 14px;
  background: var(--canary);
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
  font-size: 11px;
  font-weight: 800;
  padding: 1px 8px;
}
.dual-rail-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: var(--white);
  border: var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.dual-rail-table th {
  background: var(--cream);
  border-bottom: var(--line);
  border-right: 1.5px solid var(--ink);
  padding: 12px 16px;
  text-align: left;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
}
.dual-rail-table td {
  border-bottom: 1px solid var(--sand);
  border-right: 1.5px solid var(--ink);
  padding: 12px 16px;
  font-size: 13px;
}
.dual-rail-table tr:last-child td {
  border-bottom: none;
}
.dual-rail-table th:last-child, .dual-rail-table td:last-child {
  border-right: none;
}

/* FAQ Accordion */
.faq-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}
.faq-item {
  background: var(--white);
  border: var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-question {
  padding: 14px 18px;
  background: var(--chalk);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 14px;
  user-select: none;
  transition: background-color var(--dur) var(--ease);
}
.faq-question:hover {
  background: var(--ice);
}
.faq-answer {
  padding: 16px 18px;
  font-size: 13px;
  line-height: 1.6;
  border-top: 1.5px solid var(--ink);
  display: none;
  background: var(--white);
}
.faq-item.is-open .faq-answer {
  display: block;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1360px) {
  .nav-inner {
    padding: 0 16px;
    gap: 12px;
  }
  .nav-links {
    gap: 4px;
  }
  .nav-link {
    padding: 6px 9px;
    font-size: 11px;
  }
  .nav-sec-full { display: none; }
  .nav-sec-short { display: inline; }
}

@media (max-width: 1200px) {
  .btn-text-full { display: none; }
  .btn-text-short { display: inline; }
  .currency-btn { padding: 6px 9px; }
  .nav-link { padding: 6px 7px; font-size: 10.5px; }
}

@media (max-width: 1020px) {
  .nav-links { display: none !important; }
  .nav-mobile-toggle { display: inline-flex !important; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-hero { grid-template-columns: 1fr; }
  .flowchart-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1021px) {
  .nav-mobile-toggle { display: none !important; }
  .mobile-nav-drawer { display: none !important; }
}
@media (max-width: 800px) {
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(4, auto);
  }
  .metric:nth-child(4n) { border-right: 1.5px solid var(--ink); }
  .metric:nth-child(2n) { border-right: none; }
  .metrics > .metric:nth-last-child(-n+4) { border-bottom: 1.5px solid var(--ink); }
  .metrics > .metric:nth-last-child(-n+2) { border-bottom: none; }
  .form-grid { grid-template-columns: 1fr; }
  .wallet-providers { grid-template-columns: 1fr; }
  .audit-checklist { grid-template-columns: 1fr; }
  .flowchart-steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr; }
  .metric { border-right: none !important; border-bottom: 1.5px solid var(--ink) !important; }
  .metrics > .metric:last-child { border-bottom: none !important; }
  .display { font-size: 32px; }
  .toolbar-inner { flex-direction: column; align-items: stretch; }
  .search-wrap .field { width: 100%; }
  .nav-inner { padding: 0 14px; gap: 8px; }
  .currency-btn { padding: 6px 8px; font-size: 11px; }
}

/* ══════════════════════════════════════════════════════════════
   ROOM TOUR INTERACTIF (MOTHERDUCK DA)
   ══════════════════════════════════════════════════════════════ */
.tour-launcher-btn {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: var(--canary);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: -4px 4px 0 0 var(--ink);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  z-index: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: transform 140ms var(--ease), box-shadow 140ms var(--ease), background 140ms var(--ease);
}
.tour-launcher-btn:hover {
  transform: translate(-2px, 2px);
  box-shadow: -2px 2px 0 0 var(--ink);
  background: #fff37a;
}
.tour-launcher-btn:active {
  transform: translate(0, 0);
  box-shadow: none;
}

.tour-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(40, 40, 40, 0.45);
  backdrop-filter: blur(2.5px);
  -webkit-backdrop-filter: blur(2.5px);
  z-index: 920;
  display: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms var(--ease), clip-path 260ms cubic-bezier(0.16, 1, 0.3, 1);
}
.tour-backdrop.is-active {
  display: block;
  opacity: 1;
}

.tour-card {
  position: fixed;
  z-index: 10050;
  width: min(420px, calc(100vw - 32px));
  bottom: 24px;
  right: 28px;
  top: auto !important;
  background: var(--white);
  border: 2.5px solid var(--ink);
  box-shadow: -8px 8px 0 0 var(--ink);
  padding: 18px 20px;
  display: none;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  transition: right 240ms cubic-bezier(0.16, 1, 0.3, 1), left 240ms cubic-bezier(0.16, 1, 0.3, 1), transform 200ms ease;
}
.tour-card.dock-left {
  right: auto;
  left: 28px;
}
@media (max-width: 768px) {
  .tour-card, .tour-card.dock-left {
    bottom: 14px;
    left: 14px;
    right: 14px;
    width: auto;
    max-width: none;
    box-shadow: -4px 4px 0 0 var(--ink);
    padding: 16px;
  }
}
.tour-card.is-active {
  display: flex;
  animation: tourPop 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes tourPop {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.tour-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tour-progress {
  width: 100%;
  height: 4px;
  background: var(--chalk);
  border: 1px solid var(--silver);
  overflow: hidden;
  border-radius: 1px;
}
.tour-progress-bar {
  height: 100%;
  width: 12.5%;
  background: var(--sky);
  transition: width 240ms cubic-bezier(0.16, 1, 0.3, 1);
}
.tour-title {
  font-size: 16.5px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
}
.tour-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
}
.tour-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--chalk);
  border: 1.5px solid var(--ink);
  box-shadow: -2px 2px 0 0 var(--ink);
  padding: 8px 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
}
.tour-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1.5px dashed var(--silver);
  padding-top: 12px;
  margin-top: 4px;
}

.tour-highlight {
  position: relative !important;
  z-index: 1000 !important;
  outline: 3.5px solid var(--canary) !important;
  outline-offset: 4px !important;
  box-shadow: -6px 6px 0 0 var(--ink), 0 0 0 6px var(--canary) !important;
  animation: tourPulseRing 1.4s infinite ease-in-out !important;
  pointer-events: auto !important;
}
@keyframes tourPulseRing {
  0%, 100% {
    outline-color: var(--canary);
    box-shadow: -6px 6px 0 0 var(--ink), 0 0 0 6px rgba(255, 222, 0, 0.7);
  }
  50% {
    outline-color: var(--sky);
    box-shadow: -6px 6px 0 0 var(--ink), 0 0 0 8px rgba(111, 194, 255, 0.8);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0ms !important;
    animation: none !important;
  }
}
